This repository has been archived by the owner on Jul 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 58
/
PSDailyRatedUsageLineItem.cs
291 lines (236 loc) · 9.3 KB
/
PSDailyRatedUsageLineItem.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace Microsoft.Store.PartnerCenter.PowerShell.Models.Invoices
{
using System;
using System.Collections.Generic;
using Extensions;
using PartnerCenter.Models.Invoices;
/// <summary>
/// Represents unbilled, billed recon line items for daily rated usage.
/// </summary>
public sealed class PSDailyRatedUsageLineItem : PSInvoiceLineItem
{
/// <summary>
/// Initializes a new instance of the <see cref="PSDailyRatedUsageLineItem" /> class.
/// </summary>
public PSDailyRatedUsageLineItem()
{ }
/// <summary>
/// Initializes a new instance of the <see cref="PSDailyRatedUsageLineItem" /> class.
/// </summary>
/// <param name="lineItem">The base line item for this instance.</param>
public PSDailyRatedUsageLineItem(DailyRatedUsageLineItem lineItem)
{
this.CopyFrom(lineItem);
}
/// <summary>
/// Gets or sets the partner Id.
/// </summary>
public string PartnerId { get; set; }
/// <summary>
/// Gets or sets the partner name.
/// </summary>
public string PartnerName { get; set; }
/// <summary>
/// Gets or sets the id of the customer that usage belongs to.
/// </summary>
public string CustomerId { get; set; }
/// <summary>
/// Gets or sets the name of the customer company that usage belongs to.
/// </summary>
public string CustomerName { get; set; }
/// <summary>
/// Gets or sets the domain name of the customer that usage belongs to.
/// </summary>
public string CustomerDomainName { get; set; }
/// <summary>
/// Gets or sets the id of the invoice that usage belongs to.
/// </summary>
public string InvoiceNumber { get; set; }
/// <summary>
/// Gets or sets the product unique identifier
/// </summary>
public string ProductId { get; set; }
/// <summary>
/// Gets or sets the sku unique identifier
/// </summary>
public string SkuId { get; set; }
/// <summary>
/// Gets or sets the availability unique identifier
/// </summary>
public string AvailabilityId { get; set; }
/// <summary>
/// Gets or sets the SKU name for the service.
/// </summary>
public string SkuName { get; set; }
/// <summary>
/// Gets or sets the name of the product.
/// </summary>
public string ProductName { get; set; }
/// <summary>
/// Gets or sets the name of publisher.
/// </summary>
public string PublisherName { get; set; }
/// <summary>
/// Gets or sets the id of the publisher.
/// </summary>
public string PublisherId { get; set; }
/// <summary>
/// Gets or sets the subscription id.
/// </summary>
public string SubscriptionId { get; set; }
/// <summary>
/// Gets or sets the subscription description.
/// </summary>
public string SubscriptionDescription { get; set; }
/// <summary>
/// Gets or sets the charge start date.
/// </summary>
public DateTime ChargeStartDate { get; set; }
/// <summary>
/// Gets or sets the charge end date.
/// </summary>
public DateTime ChargeEndDate { get; set; }
/// <summary>
/// Gets or sets the usage date.
/// </summary>
public DateTime UsageDate { get; set; }
/// <summary>
/// Gets or sets the meter type.
/// </summary>
public string MeterType { get; set; }
/// <summary>
/// Gets or sets the meter category.
/// </summary>
public string MeterCategory { get; set; }
/// <summary>
/// Gets or sets the meter id (GUID).
/// </summary>
public string MeterId { get; set; }
/// <summary>
/// Gets or sets the meter sub category.
/// </summary>
public string MeterSubCategory { get; set; }
/// <summary>
/// Gets or sets the meter name.
/// </summary>
public string MeterName { get; set; }
/// <summary>
/// Gets or sets the meter region.
/// </summary>
public string MeterRegion { get; set; }
/// <summary>
/// Gets or sets the unit of measure.
/// </summary>
public string UnitOfMeasure { get; set; }
/// <summary>
/// Gets or sets the location of resource.
/// </summary>
public string ResourceLocation { get; set; }
/// <summary>
/// Gets or sets the consumed service name.
/// </summary>
public string ConsumedService { get; set; }
/// <summary>
/// Gets or sets the name of resource group.
/// </summary>
public string ResourceGroup { get; set; }
/// <summary>
/// Gets or sets the uri of the resource instance that the usage is about.
/// </summary>
public string ResourceUri { get; set; }
/// <summary>
/// Gets or sets the customer added tags.
/// </summary>
public IDictionary<string, string> Tags { get; private set; }
/// <summary>
/// Gets or sets the service-specific metadata. For example, an image type for a virtual machine.
/// </summary>
public IDictionary<string, string> AdditionalInfo { get; private set; }
/// <summary>
/// Gets or sets internal Azure Service Metadata.
/// </summary>
public string ServiceInfo1 { get; set; }
/// <summary>
/// Gets or sets service information for example, an image type for a virtual machine and ISP name for ExpressRoute.
/// </summary>
public string ServiceInfo2 { get; set; }
/// <summary>
/// Gets or sets the country of the customer.
/// </summary>
public string CustomerCountry { get; set; }
/// <summary>
/// Gets or sets the MPN Id associated to this line item.
/// </summary>
public string MpnId { get; set; }
/// <summary>
/// Gets or sets the Reseller MPN Id of the Tier 2 partner associated to this line item.
/// </summary>
public string ResellerMpnId { get; set; }
/// <summary>
/// Gets or sets the type of charge.
/// </summary>
public string ChargeType { get; set; }
/// <summary>
/// Gets or sets the price of unit.
/// </summary>
public decimal UnitPrice { get; set; }
/// <summary>
/// Gets or sets the quantity of usage.
/// </summary>
public decimal Quantity { get; set; }
/// <summary>
/// Gets or sets the unit type like 1 Hour.
/// </summary>
public string UnitType { get; set; }
/// <summary>
/// Gets or sets the extended cost or total cost before tax in local currency of the customer or billing currency.
/// </summary>
public decimal BillingPreTaxTotal { get; set; }
/// <summary>
/// Gets or sets ISO currency in which the meter is charged in local currency of the customer or billing currency.
/// </summary>
public string BillingCurrency { get; set; }
/// <summary>
/// Gets or sets the extended cost or total cost before tax in USD or catalog currency used for rating.
/// </summary>
public decimal PricingPreTaxTotal { get; set; }
/// <summary>
/// Gets or sets ISO currency in which the meter is charged in USD or catalog currency used for rating.
/// </summary>
public string PricingCurrency { get; set; }
/// <summary>
/// Gets or sets the entitlement (azure's subscription) id.
/// </summary>
public string EntitlementId { get; set; }
/// <summary>
/// Gets or sets the entitlement (azure's subscription) description.
/// </summary>
public string EntitlementDescription { get; set; }
/// <summary>
/// Gets or sets the pricing currency to billing currency exchange rate.
/// </summary>
public decimal PCToBCExchangeRate { get; set; }
/// <summary>
/// Gets or sets the pricing currency to billing currency exchange rate date.
/// </summary>
public DateTime? PCToBCExchangeRateDate { get; set; }
/// <summary>
/// Gets or sets the effective unit price.
/// </summary>
public decimal EffectiveUnitPrice { get; set; }
/// <summary>
/// Gets or sets the rate of partner earned credit.
/// </summary>
public decimal RateOfPartnerEarnedCredit { get; set; }
/// <summary>
/// Returns the type of invoice line item
/// </summary>
public override InvoiceLineItemType InvoiceLineItemType => InvoiceLineItemType.UsageLineItems;
/// <summary>
/// Returns the billing provider
/// </summary>
public override BillingProvider BillingProvider => BillingProvider.Marketplace;
}
}