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 59
/
PSOneTimeInvoiceLineItem.cs
244 lines (199 loc) · 7.76 KB
/
PSOneTimeInvoiceLineItem.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
// 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 Extensions;
using PartnerCenter.Models.Invoices;
/// <summary>
/// Represents an invoice billing line item for one time purchases.
/// </summary>
public class PSOneTimeInvoiceLineItem : PSInvoiceLineItem
{
/// <summary>
/// Initializes a new instance of the <see cref="PSOneTimeInvoiceLineItem" /> class.
/// </summary>
public PSOneTimeInvoiceLineItem()
{ }
/// <summary>
/// Initializes a new instance of the <see cref="PSOneTimeInvoiceLineItem" /> class.
/// </summary>
/// <param name="lineItem">The base line item for this instance.</param>
public PSOneTimeInvoiceLineItem(OneTimeInvoiceLineItem lineItem)
{
this.CopyFrom(lineItem);
}
/// <summary>
/// Gets or sets the alternate identifier (quote identifier).
/// </summary>
public string AlternateId { get; set; }
/// <summary>
/// Gets or sets the availability unique identifier.
/// </summary>
public string AvailabilityId { get; set; }
/// <summary>
/// Gets or sets the billing frequency.
/// </summary>
public string BillingFrequency { get; set; }
/// <summary>
/// Gets or sets the units purchased.
/// </summary>
public decimal BillableQuantity { get; set; }
/// <summary>
/// Gets the billing provider.
/// </summary>
public override BillingProvider BillingProvider => BillingProvider.OneTime;
/// <summary>
/// Gets or sets the charge end date associated with this purchase.
/// </summary>
public DateTime ChargeEndDate { get; set; }
/// <summary>
/// Gets or sets the charge start date associated with this purchase.
/// </summary>
public DateTime ChargeStartDate { get; set; }
/// <summary>
/// Gets or sets the type of charge.
/// Examples: Purchase Fee, Cycle Fee, Prorate Fees when Purchase.
/// </summary>
/// <remarks>
/// Examples: Purchase Fee, Cycle Fee, Prorate Fees when Purchase.
/// </remarks>
public string ChargeType { get; set; }
/// <summary>
/// Gets or sets the currency used for this line item.
/// </summary>
public string Currency { get; set; }
/// <summary>
/// Gets or sets the customer's country.
/// </summary>
public string CustomerCountry { get; set; }
/// <summary>
/// Gets or sets the customer domain name.
/// </summary>
public string CustomerDomainName { get; set; }
/// <summary>
/// Gets or sets the customer identifier.
/// </summary>
public string CustomerId { get; set; }
/// <summary>
/// Gets or sets the customer name.
/// </summary>
public string CustomerName { get; set; }
/// <summary>
/// Gets or sets the discount details associated with this purchase.
/// </summary>
public string DiscountDetails { get; set; }
/// <summary>
/// Gets or sets the effective unit price.
/// </summary>
public decimal EffectiveUnitPrice { get; set; }
/// <summary>
/// Gets the the type of invoice line item.
/// </summary>
public override InvoiceLineItemType InvoiceLineItemType => InvoiceLineItemType.BillingLineItems;
/// <summary>
/// Gets or sets the invoice number.
/// </summary>
public string InvoiceNumber { get; set; }
/// <summary>
/// Gets or sets the description for the meter.
/// </summary>
public string MeterDescription { get; set; }
/// <summary>
/// Gets or sets the MPN identifier associated to this line item.
/// </summary>
public string MpnId { get; set; }
/// <summary>
/// Gets or sets the date when order created.
/// </summary>
public DateTime OrderDate { get; set; }
/// <summary>
/// Gets or sets the order unique identifier.
/// </summary>
public string OrderId { get; set; }
/// <summary>
/// Gets or sets the partner identifier.
/// </summary>
public string PartnerId { get; set; }
/// <summary>
/// Gets or sets the exchange rate date at which the pricing currency to billing currency exchange rate was determined.
/// </summary>
public DateTime? PCToBCExchangeRateDate { 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 price adjustment description.
/// </summary>
public string PriceAdjustmentDescription { get; set; }
/// <summary>
/// Gets or sets the pricing currency code.
/// </summary>
public string PricingCurrency { get; set; }
/// <summary>
/// Gets or sets the product unique identifier.
/// </summary>
public string ProductId { get; set; }
/// <summary>
/// Gets or sets the product name.
/// </summary>
public string ProductName { get; set; }
/// <summary>
/// Gets or sets the publisher identifier associated with this purchase.
/// </summary>
public string PublisherId { get; set; }
/// <summary>
/// Gets or sets the publisher name associated with this purchase.
/// </summary>
public string PublisherName { get; set; }
/// <summary>
/// Gets or sets the number of units associated with this line item.
/// </summary>
public int Quantity { get; set; }
/// <summary>
/// Gets or sets the Reseller MPN identifier of the indirect reseller associated to this line item.
/// </summary>
public int ResellerMpnId { get; set; }
/// <summary>
/// Gets or sets the SKU unique identifier.
/// </summary>
public string SkuId { get; set; }
/// <summary>
/// Gets or sets the SKU name.
/// </summary>
public string SkuName { get; set; }
/// <summary>
/// Gets or sets the subscription description associated with this purchase.
/// </summary>
public string SubscriptionDescription { get; set; }
/// <summary>
/// Gets or sets the subscription identifier associated with this purchase.
/// </summary>
public string SubscriptionId { get; set; }
/// <summary>
/// Gets or sets the amount after discount.
/// </summary>
public decimal Subtotal { get; set; }
/// <summary>
/// Gets or sets the taxes charged.
/// </summary>
public decimal TaxTotal { get; set; }
/// <summary>
/// Gets or sets the term and billing cycle associated with this purchase.
/// </summary>
public string TermAndBillingCycle { get; set; }
/// <summary>
/// Gets or sets the total amount after discount and tax.
/// </summary>
public decimal TotalForCustomer { get; set; }
/// <summary>
/// Gets or sets the unit price.
/// </summary>
public decimal UnitPrice { get; set; }
/// <summary>
/// Gets or sets the type of unit.
/// </summary>
public string UnitType { get; set; }
}
}