chargebee 2.26.0 → 2.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/lib/chargebee.js +1 -1
- package/lib/resources/api_endpoints.js +8 -1
- package/package.json +1 -1
- package/types/core.d.ts +1 -0
- package/types/resources/Address.d.ts +235 -5
- package/types/resources/AdvanceInvoiceSchedule.d.ts +78 -2
- package/types/resources/AttachedItem.d.ts +285 -13
- package/types/resources/Card.d.ts +375 -13
- package/types/resources/Comment.d.ts +160 -11
- package/types/resources/Contact.d.ts +54 -0
- package/types/resources/ContractTerm.d.ts +83 -0
- package/types/resources/Coupon.d.ts +628 -20
- package/types/resources/CouponCode.d.ts +46 -5
- package/types/resources/CouponSet.d.ts +194 -17
- package/types/resources/CreditNote.d.ts +1100 -44
- package/types/resources/CreditNoteEstimate.d.ts +75 -6
- package/types/resources/Customer.d.ts +1819 -73
- package/types/resources/DifferentialPrice.d.ts +246 -15
- package/types/resources/Discount.d.ts +107 -0
- package/types/resources/Download.d.ts +18 -0
- package/types/resources/EntitlementOverride.d.ts +101 -7
- package/types/resources/Estimate.d.ts +1021 -27
- package/types/resources/Event.d.ts +138 -8
- package/types/resources/Export.d.ts +622 -32
- package/types/resources/Feature.d.ts +287 -22
- package/types/resources/Gift.d.ts +296 -24
- package/types/resources/Hierarchy.d.ts +30 -0
- package/types/resources/HostedPage.d.ts +1046 -37
- package/types/resources/ImpactedItem.d.ts +41 -1
- package/types/resources/ImpactedSubscription.d.ts +36 -1
- package/types/resources/InAppSubscription.d.ts +369 -9
- package/types/resources/Invoice.d.ts +1942 -92
- package/types/resources/InvoiceEstimate.d.ts +75 -6
- package/types/resources/Item.d.ts +522 -16
- package/types/resources/ItemEntitlement.d.ts +162 -13
- package/types/resources/ItemFamily.d.ts +153 -15
- package/types/resources/ItemPrice.d.ts +951 -26
- package/types/resources/Media.d.ts +24 -0
- package/types/resources/NonSubscription.d.ts +46 -3
- package/types/resources/Order.d.ts +1172 -32
- package/types/resources/PaymentIntent.d.ts +293 -8
- package/types/resources/PaymentReferenceNumber.d.ts +24 -0
- package/types/resources/PaymentSource.d.ts +984 -55
- package/types/resources/PaymentVoucher.d.ts +252 -14
- package/types/resources/PortalSession.d.ts +154 -10
- package/types/resources/PromotionalCredit.d.ts +300 -16
- package/types/resources/Purchase.d.ts +206 -5
- package/types/resources/Quote.d.ts +1430 -62
- package/types/resources/QuoteLineGroup.d.ts +134 -5
- package/types/resources/QuotedCharge.d.ts +63 -5
- package/types/resources/QuotedSubscription.d.ts +192 -5
- package/types/resources/ResourceMigration.d.ts +68 -3
- package/types/resources/SiteMigrationDetail.d.ts +98 -5
- package/types/resources/Subscription.d.ts +2564 -137
- package/types/resources/SubscriptionEntitlement.d.ts +116 -8
- package/types/resources/SubscriptionEstimate.d.ts +36 -2
- package/types/resources/TaxWithheld.d.ts +32 -0
- package/types/resources/ThirdPartyPaymentMethod.d.ts +24 -0
- package/types/resources/TimeMachine.d.ts +82 -7
- package/types/resources/Token.d.ts +164 -7
- package/types/resources/Transaction.d.ts +567 -25
- package/types/resources/UnbilledCharge.d.ts +309 -14
- package/types/resources/Usage.d.ts +237 -13
- package/types/resources/VirtualBankAccount.d.ts +220 -17
|
@@ -1,297 +1,1437 @@
|
|
|
1
1
|
///<reference path='./../core.d.ts'/>
|
|
2
2
|
declare module 'chargebee' {
|
|
3
3
|
export interface Order {
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @description Uniquely identifies the order. It is the api identifier for the order
|
|
7
|
+
|
|
8
|
+
*/
|
|
9
|
+
|
|
4
10
|
id:string;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* @description The order's serial number
|
|
14
|
+
|
|
15
|
+
*/
|
|
16
|
+
|
|
5
17
|
document_number?:string;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* @description The invoice number which acts as an identifier for invoice and is generated sequentially.
|
|
21
|
+
|
|
22
|
+
*/
|
|
23
|
+
|
|
6
24
|
invoice_id?:string;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* @description The subscription for which the order is created
|
|
28
|
+
|
|
29
|
+
*/
|
|
30
|
+
|
|
7
31
|
subscription_id?:string;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* @description The customer for which the order is created
|
|
35
|
+
|
|
36
|
+
*/
|
|
37
|
+
|
|
8
38
|
customer_id?:string;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* @description The status of this order. \* complete - Order has been processed successfully. Applicable only if you are using Chargebee's legacy order management system \* partially_delivered - The order has been partially delivered to the customer. \* voided - Order has been voided. Applicable only if you are using Chargebee's legacy order management system \* on_hold - The order is paused from being processed. \* awaiting_shipment - The order has been picked up by an integration system, and synced to a shipping management platform \* shipped - The order has moved from order management system to a shipping system. \* queued - Order is yet to be processed by any system, these are scheduled orders created by Chargebee \* new - Order has been created. Applicable only if you are using Chargebee's legacy order management system. \* returned - The order has been returned after delivery. \* delivered - The order has been delivered to the customer. \* cancelled - Order has been cancelled. Applicable only if you are using Chargebee's legacy order management system \* processing - Order is being processed. Applicable only if you are using Chargebee's legacy order management system
|
|
42
|
+
|
|
43
|
+
*/
|
|
44
|
+
|
|
9
45
|
status?:'new' | 'partially_delivered' | 'queued' | 'delivered' | 'on_hold' | 'shipped' | 'processing' | 'cancelled' | 'voided' | 'complete' | 'awaiting_shipment' | 'returned';
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* @description Cancellation reason \* payment_declined - Payment declined. \* shipping_cut_off_passed - The invoice has been paid late and Chargebee cancel's the first order for the invoice. \* product_not_available - Product not available. \* alternative_found - Alternative found. \* others - Other reason \* order_resent - Order resent \* product_unsatisfactory - Product unsatisfactory. \* delivery_date_missed - Delivery date missed. \* fraudulent_transaction - Fraudulent transaction. \* invoice_voided - The invoice for which the order was createed has been voided. \* subscription_cancelled - The subsctiption for which the order was created has been cancelled. \* invoice_written_off - The invoice has been completely written off. Orders are generated by Chargebee in cancelled state. \* product_not_required - Product not required. \* third_party_cancellation - Third party cancellation.
|
|
49
|
+
|
|
50
|
+
*/
|
|
51
|
+
|
|
10
52
|
cancellation_reason?:'delivery_date_missed' | 'subscription_cancelled' | 'product_unsatisfactory' | 'fraudulent_transaction' | 'third_party_cancellation' | 'order_resent' | 'payment_declined' | 'product_not_required' | 'invoice_voided' | 'invoice_written_off' | 'product_not_available' | 'shipping_cut_off_passed' | 'others' | 'alternative_found';
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* @description The payment status of the order \* paid - PAID \* not_paid - NOT_PAID
|
|
56
|
+
|
|
57
|
+
*/
|
|
58
|
+
|
|
11
59
|
payment_status?:'paid' | 'not_paid';
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @description Order type \* manual - The order has been created by the the user using Chargebee's legacy order management system. \* system_generated - The order has been created by Chargebee automatically based on the preferences set by the user.
|
|
63
|
+
|
|
64
|
+
*/
|
|
65
|
+
|
|
12
66
|
order_type?:'system_generated' | 'manual';
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* @description The price type of the order \* tax_inclusive - All amounts in the document are inclusive of tax. \* tax_exclusive - All amounts in the document are exclusive of tax.
|
|
70
|
+
|
|
71
|
+
*/
|
|
72
|
+
|
|
13
73
|
price_type:PriceType;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* @description Reference id can be used to map the orders in the shipping/order management application to the orders in ChargeBee. The reference_id generally is same as the order id in the third party application.
|
|
77
|
+
|
|
78
|
+
*/
|
|
79
|
+
|
|
14
80
|
reference_id?:string;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* @description The fulfillment status of an order as reflected in the shipping/order management application. Typical statuses include Shipped,Awaiting Shipment,Not fulfilled etc;
|
|
84
|
+
|
|
85
|
+
*/
|
|
86
|
+
|
|
15
87
|
fulfillment_status?:string;
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* @description The date on which the order will start getting processed.
|
|
91
|
+
|
|
92
|
+
*/
|
|
93
|
+
|
|
16
94
|
order_date?:number;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* @description This is the date on which the order will be delivered to the customer.
|
|
98
|
+
|
|
99
|
+
*/
|
|
100
|
+
|
|
17
101
|
shipping_date?:number;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* @description The custom note for the order.
|
|
105
|
+
|
|
106
|
+
*/
|
|
107
|
+
|
|
18
108
|
note?:string;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* @description The tracking id of the order.
|
|
112
|
+
|
|
113
|
+
*/
|
|
114
|
+
|
|
19
115
|
tracking_id?:string;
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* @description The tracking url of the order.
|
|
119
|
+
|
|
120
|
+
*/
|
|
121
|
+
|
|
20
122
|
tracking_url?:string;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* @description Unique id to identify a group of orders.
|
|
126
|
+
|
|
127
|
+
*/
|
|
128
|
+
|
|
21
129
|
batch_id?:string;
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* @description The source (or the user) from where the order has been created.
|
|
133
|
+
|
|
134
|
+
*/
|
|
135
|
+
|
|
22
136
|
created_by?:string;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* @description Shipment carrier
|
|
140
|
+
|
|
141
|
+
*/
|
|
142
|
+
|
|
23
143
|
shipment_carrier?:string;
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* @description The total round off taken from the invoice level
|
|
147
|
+
|
|
148
|
+
*/
|
|
149
|
+
|
|
24
150
|
invoice_round_off_amount?:number;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* @description The total tax for the order.
|
|
154
|
+
|
|
155
|
+
*/
|
|
156
|
+
|
|
25
157
|
tax?:number;
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* @description Total amount paid for the order.
|
|
161
|
+
|
|
162
|
+
*/
|
|
163
|
+
|
|
26
164
|
amount_paid?:number;
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* @description Total amount adjusted for the order.
|
|
168
|
+
|
|
169
|
+
*/
|
|
170
|
+
|
|
27
171
|
amount_adjusted?:number;
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* @description The total amount issued as credits on behalf of this order.
|
|
175
|
+
|
|
176
|
+
*/
|
|
177
|
+
|
|
28
178
|
refundable_credits_issued?:number;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* @description The total amount that can be issued as credits for this order.
|
|
182
|
+
|
|
183
|
+
*/
|
|
184
|
+
|
|
29
185
|
refundable_credits?:number;
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* @description Rounding adjustment
|
|
189
|
+
|
|
190
|
+
*/
|
|
191
|
+
|
|
30
192
|
rounding_adjustement?:number;
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* @description The timestamp indicating the date \& time the order's invoice got paid.
|
|
196
|
+
|
|
197
|
+
*/
|
|
198
|
+
|
|
31
199
|
paid_on?:number;
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* @description The time after which an order becomes unservicable
|
|
203
|
+
|
|
204
|
+
*/
|
|
205
|
+
|
|
32
206
|
shipping_cut_off_date?:number;
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* @description The time at which the order was created
|
|
210
|
+
|
|
211
|
+
*/
|
|
212
|
+
|
|
33
213
|
created_at:number;
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* @description The time at which the order status was last updated.
|
|
217
|
+
|
|
218
|
+
*/
|
|
219
|
+
|
|
34
220
|
status_update_at?:number;
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* @description The time at which the order was delivered
|
|
224
|
+
|
|
225
|
+
*/
|
|
226
|
+
|
|
35
227
|
delivered_at?:number;
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* @description The time at which the order was shipped.
|
|
231
|
+
|
|
232
|
+
*/
|
|
233
|
+
|
|
36
234
|
shipped_at?:number;
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* @description Version number of this resource. The `resource_version` is updated with a new timestamp in milliseconds for every change made to the resource. This attribute will be present only if the resource has been updated after 2016-09-28.
|
|
238
|
+
|
|
239
|
+
*/
|
|
240
|
+
|
|
37
241
|
resource_version?:number;
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* @description The order's last modified time.
|
|
245
|
+
|
|
246
|
+
*/
|
|
247
|
+
|
|
38
248
|
updated_at?:number;
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* @description The time at which the order was cancelled.
|
|
252
|
+
|
|
253
|
+
*/
|
|
254
|
+
|
|
39
255
|
cancelled_at?:number;
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* @description Resent status of the order. \* fully_resent - Order is Fully resent \* partially_resent - Order is Partially resent
|
|
259
|
+
|
|
260
|
+
*/
|
|
261
|
+
|
|
40
262
|
resent_status?:'fully_resent' | 'partially_resent';
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* @description Show if the order is resent order or not.
|
|
266
|
+
|
|
267
|
+
*/
|
|
268
|
+
|
|
41
269
|
is_resent:boolean;
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* @description Refers to the original order id of the resent order.
|
|
273
|
+
|
|
274
|
+
*/
|
|
275
|
+
|
|
42
276
|
original_order_id?:string;
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* @description Total discount given for the order.
|
|
280
|
+
|
|
281
|
+
*/
|
|
282
|
+
|
|
43
283
|
discount?:number;
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* @description The order's sub-total
|
|
287
|
+
|
|
288
|
+
*/
|
|
289
|
+
|
|
44
290
|
sub_total?:number;
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* @description Total amount charged for the order.
|
|
294
|
+
|
|
295
|
+
*/
|
|
296
|
+
|
|
45
297
|
total?:number;
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
* @description Indicates that this resource has been deleted.
|
|
301
|
+
|
|
302
|
+
*/
|
|
303
|
+
|
|
46
304
|
deleted:boolean;
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* @description The currency code (ISO 4217 format) for the invoice
|
|
308
|
+
|
|
309
|
+
*/
|
|
310
|
+
|
|
47
311
|
currency_code?:string;
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* @description Boolean indicating whether this order is gifted or not.
|
|
315
|
+
|
|
316
|
+
*/
|
|
317
|
+
|
|
48
318
|
is_gifted?:boolean;
|
|
319
|
+
|
|
320
|
+
/**
|
|
321
|
+
* @description The gift message added by the gifter during purchase
|
|
322
|
+
|
|
323
|
+
*/
|
|
324
|
+
|
|
49
325
|
gift_note?:string;
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* @description The gift_id if the order is a gift order
|
|
329
|
+
|
|
330
|
+
*/
|
|
331
|
+
|
|
50
332
|
gift_id?:string;
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* @description Reason code for resending the order. Must be one from a list of reason codes set in the Chargebee app in **Settings \> Configure Chargebee \> Reason Codes \> Orders \> Order Resend**. Must be passed if set as mandatory in the app. The codes are case-sensitive
|
|
336
|
+
|
|
337
|
+
*/
|
|
338
|
+
|
|
51
339
|
resend_reason?:string;
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* @description The unique ID of the [business entity](/docs/api/advanced-features?prod_cat_ver=2#mbe) of this subscription. This is always the same as the [business entity](/docs/api/subscriptions?prod_cat_ver=2#subscription_customer_id) of the customer.
|
|
343
|
+
|
|
344
|
+
*/
|
|
345
|
+
|
|
52
346
|
business_entity_id?:string;
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* @description The list of line items for this order.
|
|
350
|
+
|
|
351
|
+
*/
|
|
352
|
+
|
|
53
353
|
order_line_items?:Order.OrderLineItem[];
|
|
354
|
+
|
|
355
|
+
/**
|
|
356
|
+
* @description Shipping address for the order.
|
|
357
|
+
|
|
358
|
+
*/
|
|
359
|
+
|
|
54
360
|
shipping_address?:Order.ShippingAddress;
|
|
361
|
+
|
|
362
|
+
/**
|
|
363
|
+
* @description Billing address for the order.
|
|
364
|
+
|
|
365
|
+
*/
|
|
366
|
+
|
|
55
367
|
billing_address?:Order.BillingAddress;
|
|
368
|
+
|
|
369
|
+
/**
|
|
370
|
+
* @description The list of taxes applied on the order line items.
|
|
371
|
+
|
|
372
|
+
*/
|
|
373
|
+
|
|
56
374
|
line_item_taxes?:Order.LineItemTax[];
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* @description The list of discounts applied for the order
|
|
378
|
+
|
|
379
|
+
*/
|
|
380
|
+
|
|
57
381
|
line_item_discounts?:Order.LineItemDiscount[];
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* @description The credit notes linked to the order
|
|
385
|
+
|
|
386
|
+
*/
|
|
387
|
+
|
|
58
388
|
linked_credit_notes?:Order.OrderLineItemLinkedCredit[];
|
|
389
|
+
|
|
390
|
+
/**
|
|
391
|
+
* @description The list of resent orders applied on the order.
|
|
392
|
+
|
|
393
|
+
*/
|
|
394
|
+
|
|
59
395
|
resent_orders?:Order.ResentOrder[];
|
|
60
396
|
}
|
|
61
397
|
export namespace Order {
|
|
62
|
-
export class OrderResource {
|
|
398
|
+
export class OrderResource {
|
|
399
|
+
/**
|
|
400
|
+
* @description This API is used to retrieve a list of all the available orders.
|
|
401
|
+
|
|
402
|
+
*/
|
|
403
|
+
|
|
63
404
|
list(input?:ListInputParam):ChargebeeRequest<ListResponse>;
|
|
405
|
+
|
|
406
|
+
/**
|
|
407
|
+
* @description #### Deprecated
|
|
408
|
+
|
|
409
|
+
Chargebee no longer supports this endpoint, see [here](https://www.chargebee.com/docs/1.0/manual_orders_deprecate.html) for more information. Contact [Support](https://chargebee.freshdesk.com/support/home/) for additional assistance or if you have concerns about this update.
|
|
410
|
+
|
|
411
|
+
*/
|
|
412
|
+
|
|
64
413
|
create(input:CreateInputParam):ChargebeeRequest<CreateResponse>;
|
|
414
|
+
|
|
415
|
+
/**
|
|
416
|
+
* @description Import an order for an invoice with one or more line items. The import order bulk operation is to be applied on an imported invoice.
|
|
417
|
+
|
|
418
|
+
*/
|
|
419
|
+
|
|
65
420
|
import_order(input:ImportOrderInputParam):ChargebeeRequest<ImportOrderResponse>;
|
|
421
|
+
|
|
422
|
+
/**
|
|
423
|
+
* @description Assigns order number to the order based on the settings, if not already assigned
|
|
424
|
+
|
|
425
|
+
*/
|
|
426
|
+
|
|
66
427
|
assign_order_number(order_id:string):ChargebeeRequest<AssignOrderNumberResponse>;
|
|
428
|
+
|
|
429
|
+
/**
|
|
430
|
+
* @description Resend an existing order. This will help in resending an existing order in full or partial. Upto 5 resend operations are allowed per . When resent fully, the original order is canceled.
|
|
431
|
+
|
|
432
|
+
*/
|
|
433
|
+
|
|
67
434
|
resend(order_id:string, input?:ResendInputParam):ChargebeeRequest<ResendResponse>;
|
|
435
|
+
|
|
436
|
+
/**
|
|
437
|
+
* @description This API is used to re-open a cancelled order
|
|
438
|
+
|
|
439
|
+
*/
|
|
440
|
+
|
|
68
441
|
reopen(order_id:string, input?:ReopenInputParam):ChargebeeRequest<ReopenResponse>;
|
|
442
|
+
|
|
443
|
+
/**
|
|
444
|
+
* @description Cancel order and create a refundable credit note for the order
|
|
445
|
+
|
|
446
|
+
*/
|
|
447
|
+
|
|
69
448
|
cancel(order_id:string, input:CancelInputParam):ChargebeeRequest<CancelResponse>;
|
|
449
|
+
|
|
450
|
+
/**
|
|
451
|
+
* @description Retrieves an order corresponding to the order id passed.
|
|
452
|
+
|
|
453
|
+
*/
|
|
454
|
+
|
|
70
455
|
retrieve(order_id:string):ChargebeeRequest<RetrieveResponse>;
|
|
456
|
+
|
|
457
|
+
/**
|
|
458
|
+
* @description Updates an order. If the status of an order is changed while updating the order, the status_update_at attribute is set with the current time.
|
|
459
|
+
|
|
460
|
+
*/
|
|
461
|
+
|
|
71
462
|
update(order_id:string, input?:UpdateInputParam):ChargebeeRequest<UpdateResponse>;
|
|
463
|
+
|
|
464
|
+
/**
|
|
465
|
+
* @description Deletes only [Imported Order](#import_an_order) .Delete does not happen if the order was refunded. It goes through if order refund was initiated and is in "refund_due" state.
|
|
466
|
+
|
|
467
|
+
*/
|
|
468
|
+
|
|
72
469
|
delete(order_id:string):ChargebeeRequest<DeleteResponse>;
|
|
470
|
+
|
|
471
|
+
/**
|
|
472
|
+
* @description This API is used to create a refundable credit note for the order
|
|
473
|
+
|
|
474
|
+
*/
|
|
475
|
+
|
|
73
476
|
create_refundable_credit_note(order_id:string, input?:CreateRefundableCreditNoteInputParam):ChargebeeRequest<CreateRefundableCreditNoteResponse>;
|
|
74
477
|
}
|
|
75
|
-
export interface ListResponse {
|
|
76
|
-
|
|
77
|
-
|
|
478
|
+
export interface ListResponse {
|
|
479
|
+
/**
|
|
480
|
+
* @description This API is used to retrieve a list of all the available orders.
|
|
481
|
+
|
|
482
|
+
*/
|
|
483
|
+
|
|
484
|
+
list:{order:Order}[];
|
|
485
|
+
|
|
486
|
+
/**
|
|
487
|
+
* @description This API is used to retrieve a list of all the available orders.
|
|
488
|
+
|
|
489
|
+
*/
|
|
490
|
+
|
|
491
|
+
next_offset?:string;
|
|
78
492
|
}
|
|
79
493
|
export interface ListInputParam {
|
|
80
|
-
[key : string]: any;
|
|
494
|
+
[key : string]: any;
|
|
495
|
+
/**
|
|
496
|
+
* @description The number of resources to be returned.
|
|
497
|
+
|
|
498
|
+
*/
|
|
499
|
+
|
|
81
500
|
limit?:number;
|
|
501
|
+
|
|
502
|
+
/**
|
|
503
|
+
* @description Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set \`offset\` to the value of \`next_offset\` obtained in the previous iteration of the API call.
|
|
504
|
+
|
|
505
|
+
*/
|
|
506
|
+
|
|
82
507
|
offset?:string;
|
|
508
|
+
|
|
509
|
+
/**
|
|
510
|
+
* @description Indicates whether to include deleted objects in the list. The deleted objects have the attribute \`deleted\` as \`true\`.
|
|
511
|
+
|
|
512
|
+
*/
|
|
513
|
+
|
|
83
514
|
include_deleted?:boolean;
|
|
515
|
+
|
|
516
|
+
/**
|
|
517
|
+
* @description This API is used to retrieve a list of all the available orders.
|
|
518
|
+
|
|
519
|
+
*/
|
|
520
|
+
|
|
84
521
|
exclude_deleted_credit_notes?:boolean;
|
|
522
|
+
|
|
523
|
+
/**
|
|
524
|
+
* @description Uniquely identifies the order. It is the api identifier for the order
|
|
525
|
+
|
|
526
|
+
*/
|
|
527
|
+
|
|
85
528
|
id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
|
|
529
|
+
|
|
530
|
+
/**
|
|
531
|
+
* @description The invoice number which acts as an identifier for invoice and is generated sequentially.
|
|
532
|
+
|
|
533
|
+
*/
|
|
534
|
+
|
|
86
535
|
invoice_id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
|
|
536
|
+
|
|
537
|
+
/**
|
|
538
|
+
* @description The subscription for which the order is created
|
|
539
|
+
|
|
540
|
+
*/
|
|
541
|
+
|
|
87
542
|
subscription_id?:{is?:string,is_not?:string,starts_with?:string};
|
|
543
|
+
|
|
544
|
+
/**
|
|
545
|
+
* @description The status of this order.
|
|
546
|
+
|
|
547
|
+
*/
|
|
548
|
+
|
|
88
549
|
status?:{in?:string,is?:'new' | 'partially_delivered' | 'queued' | 'delivered' | 'on_hold' | 'shipped' | 'processing' | 'cancelled' | 'voided' | 'complete' | 'awaiting_shipment' | 'returned',is_not?:'new' | 'partially_delivered' | 'queued' | 'delivered' | 'on_hold' | 'shipped' | 'processing' | 'cancelled' | 'voided' | 'complete' | 'awaiting_shipment' | 'returned',not_in?:string};
|
|
550
|
+
|
|
551
|
+
/**
|
|
552
|
+
* @description This is the date on which the order will be delivered to the customer.
|
|
553
|
+
|
|
554
|
+
*/
|
|
555
|
+
|
|
89
556
|
shipping_date?:{after?:string,before?:string,between?:string,on?:string};
|
|
557
|
+
|
|
558
|
+
/**
|
|
559
|
+
* @description The time at which the order was shipped.
|
|
560
|
+
|
|
561
|
+
*/
|
|
562
|
+
|
|
90
563
|
shipped_at?:{after?:string,before?:string,between?:string,on?:string};
|
|
564
|
+
|
|
565
|
+
/**
|
|
566
|
+
* @description Order type
|
|
567
|
+
|
|
568
|
+
*/
|
|
569
|
+
|
|
91
570
|
order_type?:{in?:string,is?:'system_generated' | 'manual',is_not?:'system_generated' | 'manual',not_in?:string};
|
|
571
|
+
|
|
572
|
+
/**
|
|
573
|
+
* @description The date on which the order will start getting processed.
|
|
574
|
+
|
|
575
|
+
*/
|
|
576
|
+
|
|
92
577
|
order_date?:{after?:string,before?:string,between?:string,on?:string};
|
|
578
|
+
|
|
579
|
+
/**
|
|
580
|
+
* @description The timestamp indicating the date \& time the order's invoice got paid.
|
|
581
|
+
|
|
582
|
+
*/
|
|
583
|
+
|
|
93
584
|
paid_on?:{after?:string,before?:string,between?:string,on?:string};
|
|
585
|
+
|
|
586
|
+
/**
|
|
587
|
+
* @description To filter based on updated at .
|
|
588
|
+
|
|
589
|
+
*/
|
|
590
|
+
|
|
94
591
|
updated_at?:{after?:string,before?:string,between?:string,on?:string};
|
|
592
|
+
|
|
593
|
+
/**
|
|
594
|
+
* @description The time at which the order was created
|
|
595
|
+
|
|
596
|
+
*/
|
|
597
|
+
|
|
95
598
|
created_at?:{after?:string,before?:string,between?:string,on?:string};
|
|
599
|
+
|
|
600
|
+
/**
|
|
601
|
+
* @description Resent order status.
|
|
602
|
+
|
|
603
|
+
*/
|
|
604
|
+
|
|
96
605
|
resent_status?:{in?:string,is?:'fully_resent' | 'partially_resent',is_not?:'fully_resent' | 'partially_resent',not_in?:string};
|
|
606
|
+
|
|
607
|
+
/**
|
|
608
|
+
* @description Order is resent order or not.
|
|
609
|
+
|
|
610
|
+
*/
|
|
611
|
+
|
|
97
612
|
is_resent?:{is?:'true' | 'false'};
|
|
613
|
+
|
|
614
|
+
/**
|
|
615
|
+
* @description If resent order what is the parent order id.
|
|
616
|
+
|
|
617
|
+
*/
|
|
618
|
+
|
|
98
619
|
original_order_id?:{is?:string,is_not?:string,starts_with?:string};
|
|
620
|
+
|
|
621
|
+
/**
|
|
622
|
+
* @description This API is used to retrieve a list of all the available orders.
|
|
623
|
+
|
|
624
|
+
*/
|
|
625
|
+
|
|
99
626
|
sort_by?:{asc?:'updated_at' | 'created_at',desc?:'updated_at' | 'created_at'};
|
|
100
627
|
}
|
|
101
|
-
export interface CreateResponse {
|
|
102
|
-
|
|
628
|
+
export interface CreateResponse {
|
|
629
|
+
order:Order;
|
|
103
630
|
}
|
|
104
631
|
export interface CreateInputParam {
|
|
632
|
+
|
|
633
|
+
/**
|
|
634
|
+
* @description Uniquely identifies the order. If not given, this will be auto-generated.
|
|
635
|
+
|
|
636
|
+
*/
|
|
637
|
+
|
|
105
638
|
id?:string;
|
|
639
|
+
|
|
640
|
+
/**
|
|
641
|
+
* @description The invoice number which acts as an identifier for invoice and is generated sequentially.
|
|
642
|
+
|
|
643
|
+
*/
|
|
644
|
+
|
|
106
645
|
invoice_id:string;
|
|
646
|
+
|
|
647
|
+
/**
|
|
648
|
+
* @description The order status. \* cancelled - Order has been cancelled. Applicable only if you are using Chargebee's legacy order management system \* new - Order has been created. Applicable only if you are using Chargebee's legacy order management system. \* voided - Order has been voided. Applicable only if you are using Chargebee's legacy order management system \* complete - Order has been processed successfully. Applicable only if you are using Chargebee's legacy order management system \* processing - Order is being processed. Applicable only if you are using Chargebee's legacy order management system
|
|
649
|
+
|
|
650
|
+
*/
|
|
651
|
+
|
|
107
652
|
status?:'new' | 'processing' | 'cancelled' | 'voided' | 'complete';
|
|
653
|
+
|
|
654
|
+
/**
|
|
655
|
+
* @description Reference id can be used to map the orders in the shipping/order management application to the orders in ChargeBee. The reference_id generally is same as the order id in the third party application.
|
|
656
|
+
|
|
657
|
+
*/
|
|
658
|
+
|
|
108
659
|
reference_id?:string;
|
|
660
|
+
|
|
661
|
+
/**
|
|
662
|
+
* @description The fulfillment status of an order as reflected in the shipping/order management application. Typical statuses include Shipped,Awaiting Shipment,Not fulfilled etc;.
|
|
663
|
+
|
|
664
|
+
*/
|
|
665
|
+
|
|
109
666
|
fulfillment_status?:string;
|
|
667
|
+
|
|
668
|
+
/**
|
|
669
|
+
* @description The custom note for the order.
|
|
670
|
+
|
|
671
|
+
*/
|
|
672
|
+
|
|
110
673
|
note?:string;
|
|
674
|
+
|
|
675
|
+
/**
|
|
676
|
+
* @description The tracking id of the order.
|
|
677
|
+
|
|
678
|
+
*/
|
|
679
|
+
|
|
111
680
|
tracking_id?:string;
|
|
681
|
+
|
|
682
|
+
/**
|
|
683
|
+
* @description The tracking url of the order.
|
|
684
|
+
|
|
685
|
+
*/
|
|
686
|
+
|
|
112
687
|
tracking_url?:string;
|
|
688
|
+
|
|
689
|
+
/**
|
|
690
|
+
* @description Unique id to identify a group of orders.
|
|
691
|
+
|
|
692
|
+
*/
|
|
693
|
+
|
|
113
694
|
batch_id?:string;
|
|
114
695
|
}
|
|
115
|
-
export interface ImportOrderResponse {
|
|
116
|
-
|
|
696
|
+
export interface ImportOrderResponse {
|
|
697
|
+
order:Order;
|
|
117
698
|
}
|
|
118
699
|
export interface ImportOrderInputParam {
|
|
700
|
+
|
|
701
|
+
/**
|
|
702
|
+
* @description Uniquely identifies the order. It is the api identifier for the order.
|
|
703
|
+
|
|
704
|
+
*Order id will always be assigned incrementally from the last generated Order ID.
|
|
705
|
+
|
|
706
|
+
|
|
707
|
+
If Orders imported has an Order ID which is a string, Chargebee will just validate if the Order ID is unique
|
|
708
|
+
|
|
709
|
+
Recommendation: For orders being imported, set the same prefix and the serial number that is used for the Document number, which will make this into a string. This will ensure that imported orders don't conflict with orders created by Chargebee. Chargebee will ensure there aren't orders with duplicate Order IDs.*.
|
|
710
|
+
|
|
711
|
+
*/
|
|
712
|
+
|
|
119
713
|
id?:string;
|
|
714
|
+
|
|
715
|
+
/**
|
|
716
|
+
* @description The order's serial number.
|
|
717
|
+
|
|
718
|
+
*Document number passed cannot be greater than the series mentioned in the configuration. For instance, if you have set Document number series in Order Configurations with a Prefix as 'ORDER' and Starting number as '1000', orders up to the sequence number 'ORDER999' can be imported into Chargebee*
|
|
719
|
+
|
|
720
|
+
*Recommendation: Set a different prefix at the Order Configuration, than the ones that are imported. If your Order Configuration has a Prefix of 'NEW', with Starting number as '1', i.e. 'NEW1', then, set Prefix for imported orders to be as 'OLD', with Starting number as '1', i.e, 'OLD1'*.
|
|
721
|
+
|
|
722
|
+
*/
|
|
723
|
+
|
|
120
724
|
document_number?:string;
|
|
725
|
+
|
|
726
|
+
/**
|
|
727
|
+
* @description The invoice number which acts as an identifier for invoice and is generated sequentially.
|
|
728
|
+
|
|
729
|
+
*/
|
|
730
|
+
|
|
121
731
|
invoice_id:string;
|
|
732
|
+
|
|
733
|
+
/**
|
|
734
|
+
* @description The status of this order. \* voided - Order has been voided. Applicable only if you are using Chargebee's legacy order management system \* complete - Order has been processed successfully. Applicable only if you are using Chargebee's legacy order management system \* shipped - The order has moved from order management system to a shipping system. \* processing - Order is being processed. Applicable only if you are using Chargebee's legacy order management system \* queued - Order is yet to be processed by any system, these are scheduled orders created by Chargebee \* on_hold - The order is paused from being processed. \* new - Order has been created. Applicable only if you are using Chargebee's legacy order management system. \* returned - The order has been returned after delivery. \* delivered - The order has been delivered to the customer. \* awaiting_shipment - The order has been picked up by an integration system, and synced to a shipping management platform \* cancelled - Order has been cancelled. Applicable only if you are using Chargebee's legacy order management system \* partially_delivered - The order has been partially delivered to the customer.
|
|
735
|
+
|
|
736
|
+
*/
|
|
737
|
+
|
|
122
738
|
status:'shipped' | 'partially_delivered' | 'queued' | 'cancelled' | 'delivered' | 'on_hold' | 'awaiting_shipment' | 'returned';
|
|
739
|
+
|
|
740
|
+
/**
|
|
741
|
+
* @description The subscription for which the order is created.
|
|
742
|
+
|
|
743
|
+
*/
|
|
744
|
+
|
|
123
745
|
subscription_id?:string;
|
|
746
|
+
|
|
747
|
+
/**
|
|
748
|
+
* @description The customer for which the order is created.
|
|
749
|
+
|
|
750
|
+
*/
|
|
751
|
+
|
|
124
752
|
customer_id?:string;
|
|
753
|
+
|
|
754
|
+
/**
|
|
755
|
+
* @description The time at which the order was created.
|
|
756
|
+
|
|
757
|
+
*/
|
|
758
|
+
|
|
125
759
|
created_at:number;
|
|
760
|
+
|
|
761
|
+
/**
|
|
762
|
+
* @description The date on which the order will start getting processed.
|
|
763
|
+
|
|
764
|
+
*/
|
|
765
|
+
|
|
126
766
|
order_date:number;
|
|
767
|
+
|
|
768
|
+
/**
|
|
769
|
+
* @description This is the date on which the order has to be shipped to the customer.
|
|
770
|
+
|
|
771
|
+
*/
|
|
772
|
+
|
|
127
773
|
shipping_date:number;
|
|
774
|
+
|
|
775
|
+
/**
|
|
776
|
+
* @description Reference id can be used to map the orders in the shipping/order management application to the orders in ChargeBee. The reference_id generally is the same as the order id in the third party application.
|
|
777
|
+
|
|
778
|
+
*Recommendation:
|
|
779
|
+
|
|
780
|
+
If this order is in any of these statuses, awaiting_shipment, on_hold, delivered, shipped, partially_delivered, returned, and has already been processed, through a 3rd party system, and you have a reference id of the entity in the 3rd party tool, pass in the entity id to this field. If not, set the same prefix and the serial number that is used for the Document number, which will make this into a string.*
|
|
781
|
+
|
|
782
|
+
*If this order hasn't been processed and is in 'queued' status, do not pass any value to this field. Chargebee, when it syncs your Orders through the fulfilment integrations such as Shipstation or Shopify, would auto assign the reference id from the connected system.*.
|
|
783
|
+
|
|
784
|
+
*/
|
|
785
|
+
|
|
128
786
|
reference_id?:string;
|
|
787
|
+
|
|
788
|
+
/**
|
|
789
|
+
* @description The fulfillment status of an order as reflected in the shipping/order management application. Typical statuses include Shipped,Awaiting Shipment,Not fulfilled etc;.
|
|
790
|
+
|
|
791
|
+
*If this order is in any of these statuses, awaiting_shipment, on_hold, delivered, shipped, partially_delivered, returned, and has already been processed, through a 3rd party system, and you have a corresponding status from the 3rd party tool, pass in the status to this field.
|
|
792
|
+
|
|
793
|
+
If this order hasn't been processed and is in 'queued' status, do not pass any value to this field. Chargebee, when it syncs your Orders through the fulfilment integrations such as Shipstation or Shopify, would auto assign the fulfilment status from the connected system.*.
|
|
794
|
+
|
|
795
|
+
*/
|
|
796
|
+
|
|
129
797
|
fulfillment_status?:string;
|
|
798
|
+
|
|
799
|
+
/**
|
|
800
|
+
* @description The custom note for the order.
|
|
801
|
+
|
|
802
|
+
*/
|
|
803
|
+
|
|
130
804
|
note?:string;
|
|
805
|
+
|
|
806
|
+
/**
|
|
807
|
+
* @description The tracking id of the order.
|
|
808
|
+
|
|
809
|
+
*/
|
|
810
|
+
|
|
131
811
|
tracking_id?:string;
|
|
812
|
+
|
|
813
|
+
/**
|
|
814
|
+
* @description The tracking url of the order.
|
|
815
|
+
|
|
816
|
+
*/
|
|
817
|
+
|
|
132
818
|
tracking_url?:string;
|
|
819
|
+
|
|
820
|
+
/**
|
|
821
|
+
* @description Unique id to identify a group of orders.
|
|
822
|
+
|
|
823
|
+
*/
|
|
824
|
+
|
|
133
825
|
batch_id?:string;
|
|
826
|
+
|
|
827
|
+
/**
|
|
828
|
+
* @description Shipment carrier.
|
|
829
|
+
|
|
830
|
+
*/
|
|
831
|
+
|
|
134
832
|
shipment_carrier?:string;
|
|
833
|
+
|
|
834
|
+
/**
|
|
835
|
+
* @description The time after which an order becomes unservicable.
|
|
836
|
+
|
|
837
|
+
*/
|
|
838
|
+
|
|
135
839
|
shipping_cut_off_date?:number;
|
|
840
|
+
|
|
841
|
+
/**
|
|
842
|
+
* @description The time at which the order was delivered.
|
|
843
|
+
|
|
844
|
+
*/
|
|
845
|
+
|
|
136
846
|
delivered_at?:number;
|
|
847
|
+
|
|
848
|
+
/**
|
|
849
|
+
* @description The time at which the order was shipped.
|
|
850
|
+
|
|
851
|
+
*/
|
|
852
|
+
|
|
137
853
|
shipped_at?:number;
|
|
854
|
+
|
|
855
|
+
/**
|
|
856
|
+
* @description The time at which the order was cancelled.
|
|
857
|
+
|
|
858
|
+
*/
|
|
859
|
+
|
|
138
860
|
cancelled_at?:number;
|
|
861
|
+
|
|
862
|
+
/**
|
|
863
|
+
* @description Cancellation reason. \* shipping_cut_off_passed - The invoice has been paid late and Chargebee cancel's the first order for the invoice. \* invoice_voided - The invoice for which the order was createed has been voided. \* alternative_found - Alternative found. \* others - Other reason \* order_resent - Order resent \* product_unsatisfactory - Product unsatisfactory. \* delivery_date_missed - Delivery date missed. \* subscription_cancelled - The subsctiption for which the order was created has been cancelled. \* fraudulent_transaction - Fraudulent transaction. \* invoice_written_off - The invoice has been completely written off. Orders are generated by Chargebee in cancelled state. \* product_not_required - Product not required. \* payment_declined - Payment declined. \* product_not_available - Product not available. \* third_party_cancellation - Third party cancellation.
|
|
864
|
+
|
|
865
|
+
*/
|
|
866
|
+
|
|
139
867
|
cancellation_reason?:'delivery_date_missed' | 'subscription_cancelled' | 'product_unsatisfactory' | 'fraudulent_transaction' | 'third_party_cancellation' | 'order_resent' | 'payment_declined' | 'product_not_required' | 'invoice_voided' | 'invoice_written_off' | 'product_not_available' | 'shipping_cut_off_passed' | 'others' | 'alternative_found';
|
|
868
|
+
|
|
869
|
+
/**
|
|
870
|
+
* @description If there are any credits that were issued at the order level, you can make use of the field, refundable_credits_issued. This will lead to Chargebee creating a Refundable Credit note against the order. When the next invoice is raised against the customer, this credit note will be utilised.
|
|
871
|
+
|
|
872
|
+
*/
|
|
873
|
+
|
|
140
874
|
refundable_credits_issued?:number;
|
|
875
|
+
|
|
876
|
+
/**
|
|
877
|
+
* @description Parameters for shipping_address
|
|
878
|
+
|
|
879
|
+
*/
|
|
880
|
+
|
|
141
881
|
shipping_address?:{city?:string,company?:string,country?:string,email?:string,first_name?:string,last_name?:string,line1?:string,line2?:string,line3?:string,phone?:string,state?:string,state_code?:string,validation_status?:ValidationStatus,zip?:string};
|
|
882
|
+
|
|
883
|
+
/**
|
|
884
|
+
* @description Parameters for billing_address
|
|
885
|
+
|
|
886
|
+
*/
|
|
887
|
+
|
|
142
888
|
billing_address?:{city?:string,company?:string,country?:string,email?:string,first_name?:string,last_name?:string,line1?:string,line2?:string,line3?:string,phone?:string,state?:string,state_code?:string,validation_status?:ValidationStatus,zip?:string};
|
|
143
889
|
}
|
|
144
|
-
export interface AssignOrderNumberResponse {
|
|
145
|
-
|
|
890
|
+
export interface AssignOrderNumberResponse {
|
|
891
|
+
order:Order;
|
|
146
892
|
}
|
|
147
893
|
|
|
148
|
-
export interface ResendResponse {
|
|
149
|
-
|
|
894
|
+
export interface ResendResponse {
|
|
895
|
+
order:Order;
|
|
150
896
|
}
|
|
151
897
|
export interface ResendInputParam {
|
|
898
|
+
|
|
899
|
+
/**
|
|
900
|
+
* @description The date on which the order should be shipped to the customer.
|
|
901
|
+
|
|
902
|
+
*/
|
|
903
|
+
|
|
152
904
|
shipping_date?:number;
|
|
905
|
+
|
|
906
|
+
/**
|
|
907
|
+
* @description Reason code for resending the order. Must be one from a list of reason codes set in the Chargebee app in **Settings \> Configure Chargebee \> Reason Codes \> Orders \> Order Resend**. Must be passed if set as mandatory in the app. The codes are case-sensitive.
|
|
908
|
+
|
|
909
|
+
*/
|
|
910
|
+
|
|
153
911
|
resend_reason?:string;
|
|
912
|
+
|
|
913
|
+
/**
|
|
914
|
+
* @description Parameters for order_line_items
|
|
915
|
+
|
|
916
|
+
*/
|
|
917
|
+
|
|
154
918
|
order_line_items?:{fulfillment_quantity?:number,id?:string}[];
|
|
155
919
|
}
|
|
156
|
-
export interface ReopenResponse {
|
|
157
|
-
|
|
920
|
+
export interface ReopenResponse {
|
|
921
|
+
order:Order;
|
|
158
922
|
}
|
|
159
923
|
export interface ReopenInputParam {
|
|
924
|
+
|
|
925
|
+
/**
|
|
926
|
+
* @description Flag to void credit notes created for cancellation if they are unused.
|
|
927
|
+
|
|
928
|
+
*/
|
|
929
|
+
|
|
160
930
|
void_cancellation_credit_notes?:boolean;
|
|
161
931
|
}
|
|
162
|
-
export interface CancelResponse {
|
|
163
|
-
|
|
932
|
+
export interface CancelResponse {
|
|
933
|
+
order:Order;
|
|
164
934
|
}
|
|
165
935
|
export interface CancelInputParam {
|
|
936
|
+
|
|
937
|
+
/**
|
|
938
|
+
* @description Cancellation reason. \* shipping_cut_off_passed - The invoice has been paid late and Chargebee cancel's the first order for the invoice. \* alternative_found - Alternative found. \* others - Other reason \* product_unsatisfactory - Product unsatisfactory. \* product_not_required - Product not required. \* delivery_date_missed - Delivery date missed. \* invoice_voided - The invoice for which the order was createed has been voided. \* payment_declined - Payment declined. \* product_not_available - Product not available. \* subscription_cancelled - The subsctiption for which the order was created has been cancelled. \* third_party_cancellation - Third party cancellation. \* fraudulent_transaction - Fraudulent transaction. \* order_resent - Order resent \* invoice_written_off - The invoice has been completely written off. Orders are generated by Chargebee in cancelled state.
|
|
939
|
+
|
|
940
|
+
*/
|
|
941
|
+
|
|
166
942
|
cancellation_reason:'delivery_date_missed' | 'subscription_cancelled' | 'product_unsatisfactory' | 'fraudulent_transaction' | 'third_party_cancellation' | 'order_resent' | 'payment_declined' | 'product_not_required' | 'invoice_voided' | 'invoice_written_off' | 'product_not_available' | 'shipping_cut_off_passed' | 'others' | 'alternative_found';
|
|
943
|
+
|
|
944
|
+
/**
|
|
945
|
+
* @description The Customer Notes to be filled in the Credit Notes created to capture this refund detail.
|
|
946
|
+
|
|
947
|
+
*/
|
|
948
|
+
|
|
167
949
|
customer_notes?:string;
|
|
950
|
+
|
|
951
|
+
/**
|
|
952
|
+
* @description Comment, if any, on the refund.
|
|
953
|
+
|
|
954
|
+
*/
|
|
955
|
+
|
|
168
956
|
comment?:string;
|
|
957
|
+
|
|
958
|
+
/**
|
|
959
|
+
* @description The time at which the order was cancelled.
|
|
960
|
+
|
|
961
|
+
*/
|
|
962
|
+
|
|
169
963
|
cancelled_at?:number;
|
|
964
|
+
|
|
965
|
+
/**
|
|
966
|
+
* @description Parameters for credit_note
|
|
967
|
+
|
|
968
|
+
*/
|
|
969
|
+
|
|
170
970
|
credit_note?:{total?:number};
|
|
171
971
|
}
|
|
172
|
-
export interface RetrieveResponse {
|
|
173
|
-
|
|
972
|
+
export interface RetrieveResponse {
|
|
973
|
+
order:Order;
|
|
174
974
|
}
|
|
175
975
|
|
|
176
|
-
export interface UpdateResponse {
|
|
177
|
-
|
|
976
|
+
export interface UpdateResponse {
|
|
977
|
+
order:Order;
|
|
178
978
|
}
|
|
179
979
|
export interface UpdateInputParam {
|
|
980
|
+
|
|
981
|
+
/**
|
|
982
|
+
* @description Reference id is the unique identifier of the order in the shipping/order management application.
|
|
983
|
+
|
|
984
|
+
*/
|
|
985
|
+
|
|
180
986
|
reference_id?:string;
|
|
987
|
+
|
|
988
|
+
/**
|
|
989
|
+
* @description Unique id to identify a group of orders.
|
|
990
|
+
|
|
991
|
+
*/
|
|
992
|
+
|
|
181
993
|
batch_id?:string;
|
|
994
|
+
|
|
995
|
+
/**
|
|
996
|
+
* @description The custom note for the order.
|
|
997
|
+
|
|
998
|
+
*/
|
|
999
|
+
|
|
182
1000
|
note?:string;
|
|
1001
|
+
|
|
1002
|
+
/**
|
|
1003
|
+
* @description The date on which the order should be shipped to the customer.
|
|
1004
|
+
|
|
1005
|
+
*/
|
|
1006
|
+
|
|
183
1007
|
shipping_date?:number;
|
|
1008
|
+
|
|
1009
|
+
/**
|
|
1010
|
+
* @description The order date.
|
|
1011
|
+
|
|
1012
|
+
*/
|
|
1013
|
+
|
|
184
1014
|
order_date?:number;
|
|
1015
|
+
|
|
1016
|
+
/**
|
|
1017
|
+
* @description The time at which the order was cancelled.
|
|
1018
|
+
|
|
1019
|
+
*/
|
|
1020
|
+
|
|
185
1021
|
cancelled_at?:number;
|
|
1022
|
+
|
|
1023
|
+
/**
|
|
1024
|
+
* @description Cancellation reason. \* shipping_cut_off_passed - The invoice has been paid late and Chargebee cancel's the first order for the invoice. \* invoice_voided - The invoice for which the order was createed has been voided. \* alternative_found - Alternative found. \* others - Other reason \* order_resent - Order resent \* product_unsatisfactory - Product unsatisfactory. \* delivery_date_missed - Delivery date missed. \* subscription_cancelled - The subsctiption for which the order was created has been cancelled. \* fraudulent_transaction - Fraudulent transaction. \* invoice_written_off - The invoice has been completely written off. Orders are generated by Chargebee in cancelled state. \* product_not_required - Product not required. \* payment_declined - Payment declined. \* product_not_available - Product not available. \* third_party_cancellation - Third party cancellation.
|
|
1025
|
+
|
|
1026
|
+
*/
|
|
1027
|
+
|
|
186
1028
|
cancellation_reason?:'delivery_date_missed' | 'subscription_cancelled' | 'product_unsatisfactory' | 'fraudulent_transaction' | 'third_party_cancellation' | 'order_resent' | 'payment_declined' | 'product_not_required' | 'invoice_voided' | 'invoice_written_off' | 'product_not_available' | 'shipping_cut_off_passed' | 'others' | 'alternative_found';
|
|
1029
|
+
|
|
1030
|
+
/**
|
|
1031
|
+
* @description The time at which the order was shipped.
|
|
1032
|
+
|
|
1033
|
+
*/
|
|
1034
|
+
|
|
187
1035
|
shipped_at?:number;
|
|
1036
|
+
|
|
1037
|
+
/**
|
|
1038
|
+
* @description The time at which the order was delivered.
|
|
1039
|
+
|
|
1040
|
+
*/
|
|
1041
|
+
|
|
188
1042
|
delivered_at?:number;
|
|
1043
|
+
|
|
1044
|
+
/**
|
|
1045
|
+
* @description The tracking url of the order.
|
|
1046
|
+
|
|
1047
|
+
*/
|
|
1048
|
+
|
|
189
1049
|
tracking_url?:string;
|
|
1050
|
+
|
|
1051
|
+
/**
|
|
1052
|
+
* @description The tracking id of the order.
|
|
1053
|
+
|
|
1054
|
+
*/
|
|
1055
|
+
|
|
190
1056
|
tracking_id?:string;
|
|
1057
|
+
|
|
1058
|
+
/**
|
|
1059
|
+
* @description The carrier used to ship the goods to the customer. Ex:- FedEx.
|
|
1060
|
+
|
|
1061
|
+
*/
|
|
1062
|
+
|
|
191
1063
|
shipment_carrier?:string;
|
|
1064
|
+
|
|
1065
|
+
/**
|
|
1066
|
+
* @description The fulfillment status of an order as reflected in the shipping/order management application. Typical statuses include Shipped,Awaiting Shipment,Not fulfilled etc;.
|
|
1067
|
+
|
|
1068
|
+
*/
|
|
1069
|
+
|
|
192
1070
|
fulfillment_status?:string;
|
|
1071
|
+
|
|
1072
|
+
/**
|
|
1073
|
+
* @description The order status. \* voided - Order has been voided. Applicable only if you are using Chargebee's legacy order management system \* complete - Order has been processed successfully. Applicable only if you are using Chargebee's legacy order management system \* shipped - The order has moved from order management system to a shipping system. \* processing - Order is being processed. Applicable only if you are using Chargebee's legacy order management system \* queued - Order is yet to be processed by any system, these are scheduled orders created by Chargebee \* on_hold - The order is paused from being processed. \* new - Order has been created. Applicable only if you are using Chargebee's legacy order management system. \* returned - The order has been returned after delivery. \* delivered - The order has been delivered to the customer. \* awaiting_shipment - The order has been picked up by an integration system, and synced to a shipping management platform \* cancelled - Order has been cancelled. Applicable only if you are using Chargebee's legacy order management system \* partially_delivered - The order has been partially delivered to the customer.
|
|
1074
|
+
|
|
1075
|
+
*/
|
|
1076
|
+
|
|
193
1077
|
status?:'new' | 'partially_delivered' | 'queued' | 'delivered' | 'on_hold' | 'shipped' | 'processing' | 'cancelled' | 'voided' | 'complete' | 'awaiting_shipment' | 'returned';
|
|
1078
|
+
|
|
1079
|
+
/**
|
|
1080
|
+
* @description Parameters for shipping_address
|
|
1081
|
+
|
|
1082
|
+
*/
|
|
1083
|
+
|
|
194
1084
|
shipping_address?:{city?:string,company?:string,country?:string,email?:string,first_name?:string,last_name?:string,line1?:string,line2?:string,line3?:string,phone?:string,state?:string,state_code?:string,validation_status?:ValidationStatus,zip?:string};
|
|
1085
|
+
|
|
1086
|
+
/**
|
|
1087
|
+
* @description Parameters for order_line_items
|
|
1088
|
+
|
|
1089
|
+
*/
|
|
1090
|
+
|
|
195
1091
|
order_line_items?:{id?:string,sku?:string,status?:'shipped' | 'partially_delivered' | 'queued' | 'cancelled' | 'delivered' | 'on_hold' | 'awaiting_shipment' | 'returned'}[];
|
|
196
1092
|
}
|
|
197
|
-
export interface DeleteResponse {
|
|
198
|
-
|
|
1093
|
+
export interface DeleteResponse {
|
|
1094
|
+
order:Order;
|
|
199
1095
|
}
|
|
200
1096
|
|
|
201
|
-
export interface CreateRefundableCreditNoteResponse {
|
|
202
|
-
|
|
1097
|
+
export interface CreateRefundableCreditNoteResponse {
|
|
1098
|
+
order:Order;
|
|
203
1099
|
}
|
|
204
1100
|
export interface CreateRefundableCreditNoteInputParam {
|
|
1101
|
+
|
|
1102
|
+
/**
|
|
1103
|
+
* @description The Customer Notes to be filled in the Credit Notes created to capture this refund detail.
|
|
1104
|
+
|
|
1105
|
+
*/
|
|
1106
|
+
|
|
205
1107
|
customer_notes?:string;
|
|
1108
|
+
|
|
1109
|
+
/**
|
|
1110
|
+
* @description Comment, if any, on the refund.
|
|
1111
|
+
|
|
1112
|
+
*/
|
|
1113
|
+
|
|
206
1114
|
comment?:string;
|
|
1115
|
+
|
|
1116
|
+
/**
|
|
1117
|
+
* @description Parameters for credit_note
|
|
1118
|
+
|
|
1119
|
+
*/
|
|
1120
|
+
|
|
207
1121
|
credit_note?:{reason_code:'other' | 'product_unsatisfactory' | 'subscription_pause' | 'order_cancellation' | 'service_unsatisfactory' | 'subscription_cancellation' | 'chargeback' | 'order_change' | 'write_off' | 'waiver' | 'subscription_change' | 'fraudulent',total:number};
|
|
208
1122
|
}
|
|
209
|
-
export interface OrderLineItem {
|
|
1123
|
+
export interface OrderLineItem {
|
|
210
1124
|
id?:string;
|
|
1125
|
+
|
|
211
1126
|
invoice_id?:string;
|
|
1127
|
+
|
|
212
1128
|
invoice_line_item_id?:string;
|
|
1129
|
+
|
|
213
1130
|
unit_price?:number;
|
|
1131
|
+
|
|
214
1132
|
description?:string;
|
|
1133
|
+
|
|
215
1134
|
amount?:number;
|
|
1135
|
+
|
|
216
1136
|
fulfillment_quantity?:number;
|
|
1137
|
+
|
|
217
1138
|
fulfillment_amount?:number;
|
|
1139
|
+
|
|
218
1140
|
tax_amount?:number;
|
|
1141
|
+
|
|
219
1142
|
amount_paid?:number;
|
|
1143
|
+
|
|
220
1144
|
amount_adjusted?:number;
|
|
1145
|
+
|
|
221
1146
|
refundable_credits_issued?:number;
|
|
1147
|
+
|
|
222
1148
|
refundable_credits?:number;
|
|
1149
|
+
|
|
223
1150
|
is_shippable?:boolean;
|
|
1151
|
+
|
|
224
1152
|
sku?:string;
|
|
1153
|
+
|
|
225
1154
|
status?:'shipped' | 'partially_delivered' | 'queued' | 'cancelled' | 'delivered' | 'on_hold' | 'awaiting_shipment' | 'returned';
|
|
1155
|
+
|
|
226
1156
|
entity_type?:'addon_item_price' | 'plan_item_price' | 'charge_item_price' | 'adhoc';
|
|
1157
|
+
|
|
227
1158
|
item_level_discount_amount?:number;
|
|
1159
|
+
|
|
228
1160
|
discount_amount?:number;
|
|
1161
|
+
|
|
229
1162
|
entity_id?:string;
|
|
230
1163
|
}
|
|
231
|
-
export interface ShippingAddress {
|
|
1164
|
+
export interface ShippingAddress {
|
|
1165
|
+
/**
|
|
1166
|
+
* @description The first name of the contact.
|
|
1167
|
+
|
|
1168
|
+
*/
|
|
1169
|
+
|
|
232
1170
|
first_name?:string;
|
|
1171
|
+
|
|
1172
|
+
/**
|
|
1173
|
+
* @description The last name of the contact.
|
|
1174
|
+
|
|
1175
|
+
*/
|
|
1176
|
+
|
|
233
1177
|
last_name?:string;
|
|
1178
|
+
|
|
1179
|
+
/**
|
|
1180
|
+
* @description The email address.
|
|
1181
|
+
|
|
1182
|
+
*/
|
|
1183
|
+
|
|
234
1184
|
email?:string;
|
|
1185
|
+
|
|
1186
|
+
/**
|
|
1187
|
+
* @description The company name.
|
|
1188
|
+
|
|
1189
|
+
*/
|
|
1190
|
+
|
|
235
1191
|
company?:string;
|
|
1192
|
+
|
|
1193
|
+
/**
|
|
1194
|
+
* @description The phone number.
|
|
1195
|
+
|
|
1196
|
+
*/
|
|
1197
|
+
|
|
236
1198
|
phone?:string;
|
|
1199
|
+
|
|
1200
|
+
/**
|
|
1201
|
+
* @description Address line 1
|
|
1202
|
+
|
|
1203
|
+
*/
|
|
1204
|
+
|
|
237
1205
|
line1?:string;
|
|
1206
|
+
|
|
1207
|
+
/**
|
|
1208
|
+
* @description Address line 2
|
|
1209
|
+
|
|
1210
|
+
*/
|
|
1211
|
+
|
|
238
1212
|
line2?:string;
|
|
1213
|
+
|
|
1214
|
+
/**
|
|
1215
|
+
* @description Address line 3
|
|
1216
|
+
|
|
1217
|
+
*/
|
|
1218
|
+
|
|
239
1219
|
line3?:string;
|
|
1220
|
+
|
|
1221
|
+
/**
|
|
1222
|
+
* @description The name of the city.
|
|
1223
|
+
|
|
1224
|
+
*/
|
|
1225
|
+
|
|
240
1226
|
city?:string;
|
|
1227
|
+
|
|
1228
|
+
/**
|
|
1229
|
+
* @description The [ISO 3166-2 state/province code](https://www.iso.org/obp/ui/#search) without the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set `state_code` as `AZ` (not `US-AZ`). For Tamil Nadu (India), set as `TN` (not `IN-TN`). For British Columbia (Canada), set as `BC` (not `CA-BC`).
|
|
1230
|
+
|
|
1231
|
+
*/
|
|
1232
|
+
|
|
241
1233
|
state_code?:string;
|
|
1234
|
+
|
|
1235
|
+
/**
|
|
1236
|
+
* @description The state/province name.
|
|
1237
|
+
|
|
1238
|
+
*/
|
|
1239
|
+
|
|
242
1240
|
state?:string;
|
|
1241
|
+
|
|
1242
|
+
/**
|
|
1243
|
+
* @description The billing address country of the customer. Must be one of [ISO 3166 alpha-2 country code](https://www.iso.org/iso-3166-country-codes.html).
|
|
1244
|
+
|
|
1245
|
+
**Note** : If you enter an invalid country code, the system will return an error.
|
|
1246
|
+
|
|
1247
|
+
**Brexit**
|
|
1248
|
+
|
|
1249
|
+
|
|
1250
|
+
If you have enabled [EU VAT](https://www.chargebee.com/docs/eu-vat.html) in 2021 or later, or have [manually enable](https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee) the Brexit configuration, then `XI` (the code for **United Kingdom -- Northern Ireland**) is available as an option.
|
|
1251
|
+
|
|
1252
|
+
*/
|
|
1253
|
+
|
|
243
1254
|
country?:string;
|
|
1255
|
+
|
|
1256
|
+
/**
|
|
1257
|
+
* @description Zip or postal code. The number of characters is validated according to the rules [specified here](https://chromium-i18n.appspot.com/ssl-address).
|
|
1258
|
+
|
|
1259
|
+
*/
|
|
1260
|
+
|
|
244
1261
|
zip?:string;
|
|
1262
|
+
|
|
1263
|
+
/**
|
|
1264
|
+
* @description The address verification status. \* not_validated - Address is not yet validated. \* valid - Address was validated successfully. \* partially_valid - The address is valid for taxability but has not been validated for shipping. \* invalid - Address is invalid.
|
|
1265
|
+
|
|
1266
|
+
*/
|
|
1267
|
+
|
|
245
1268
|
validation_status?:ValidationStatus;
|
|
1269
|
+
|
|
1270
|
+
/**
|
|
1271
|
+
* @description The index number of the subscription to which the item price is added. Provide a unique number between `0` and `4` (inclusive) for each subscription that is to be created.
|
|
1272
|
+
|
|
1273
|
+
*/
|
|
1274
|
+
|
|
246
1275
|
index?:number;
|
|
247
1276
|
}
|
|
248
|
-
export interface BillingAddress {
|
|
1277
|
+
export interface BillingAddress {
|
|
1278
|
+
/**
|
|
1279
|
+
* @description The first name of the billing contact.
|
|
1280
|
+
|
|
1281
|
+
*/
|
|
1282
|
+
|
|
249
1283
|
first_name?:string;
|
|
1284
|
+
|
|
1285
|
+
/**
|
|
1286
|
+
* @description The last name of the billing contact.
|
|
1287
|
+
|
|
1288
|
+
*/
|
|
1289
|
+
|
|
250
1290
|
last_name?:string;
|
|
1291
|
+
|
|
1292
|
+
/**
|
|
1293
|
+
* @description The email address.
|
|
1294
|
+
|
|
1295
|
+
*/
|
|
1296
|
+
|
|
251
1297
|
email?:string;
|
|
1298
|
+
|
|
1299
|
+
/**
|
|
1300
|
+
* @description The company name.
|
|
1301
|
+
|
|
1302
|
+
*/
|
|
1303
|
+
|
|
252
1304
|
company?:string;
|
|
1305
|
+
|
|
1306
|
+
/**
|
|
1307
|
+
* @description The phone number.
|
|
1308
|
+
|
|
1309
|
+
*/
|
|
1310
|
+
|
|
253
1311
|
phone?:string;
|
|
1312
|
+
|
|
1313
|
+
/**
|
|
1314
|
+
* @description Address line 1
|
|
1315
|
+
|
|
1316
|
+
*/
|
|
1317
|
+
|
|
254
1318
|
line1?:string;
|
|
1319
|
+
|
|
1320
|
+
/**
|
|
1321
|
+
* @description Address line 2
|
|
1322
|
+
|
|
1323
|
+
*/
|
|
1324
|
+
|
|
255
1325
|
line2?:string;
|
|
1326
|
+
|
|
1327
|
+
/**
|
|
1328
|
+
* @description Address line 3
|
|
1329
|
+
|
|
1330
|
+
*/
|
|
1331
|
+
|
|
256
1332
|
line3?:string;
|
|
1333
|
+
|
|
1334
|
+
/**
|
|
1335
|
+
* @description The name of the city.
|
|
1336
|
+
|
|
1337
|
+
*/
|
|
1338
|
+
|
|
257
1339
|
city?:string;
|
|
1340
|
+
|
|
1341
|
+
/**
|
|
1342
|
+
* @description The [ISO 3166-2 state/province code](https://www.iso.org/obp/ui/#search) without the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set `state_code` as `AZ` (not `US-AZ`). For Tamil Nadu (India), set as `TN` (not `IN-TN`). For British Columbia (Canada), set as `BC` (not `CA-BC`).
|
|
1343
|
+
|
|
1344
|
+
*/
|
|
1345
|
+
|
|
258
1346
|
state_code?:string;
|
|
1347
|
+
|
|
1348
|
+
/**
|
|
1349
|
+
* @description State or Province
|
|
1350
|
+
|
|
1351
|
+
*/
|
|
1352
|
+
|
|
259
1353
|
state?:string;
|
|
1354
|
+
|
|
1355
|
+
/**
|
|
1356
|
+
* @description The billing address country of the customer. Must be one of [ISO 3166 alpha-2 country code](https://www.iso.org/iso-3166-country-codes.html).
|
|
1357
|
+
|
|
1358
|
+
**Note** : If you enter an invalid country code, the system will return an error.
|
|
1359
|
+
|
|
1360
|
+
**Brexit**
|
|
1361
|
+
|
|
1362
|
+
|
|
1363
|
+
If you have enabled [EU VAT](https://www.chargebee.com/docs/eu-vat.html) in 2021 or later, or have [manually enable](https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee) the Brexit configuration, then `XI` (the code for **United Kingdom -- Northern Ireland**) is available as an option.
|
|
1364
|
+
|
|
1365
|
+
*/
|
|
1366
|
+
|
|
260
1367
|
country?:string;
|
|
1368
|
+
|
|
1369
|
+
/**
|
|
1370
|
+
* @description Zip or postal code. The number of characters is validated according to the rules [specified here](https://chromium-i18n.appspot.com/ssl-address).
|
|
1371
|
+
|
|
1372
|
+
*/
|
|
1373
|
+
|
|
261
1374
|
zip?:string;
|
|
1375
|
+
|
|
1376
|
+
/**
|
|
1377
|
+
* @description The address verification status. \* valid - Address was validated successfully. \* partially_valid - The address is valid for taxability but has not been validated for shipping. \* invalid - Address is invalid. \* not_validated - Address is not yet validated.
|
|
1378
|
+
|
|
1379
|
+
*/
|
|
1380
|
+
|
|
262
1381
|
validation_status?:ValidationStatus;
|
|
263
1382
|
}
|
|
264
|
-
export interface LineItemTax {
|
|
1383
|
+
export interface LineItemTax {
|
|
265
1384
|
line_item_id?:string;
|
|
1385
|
+
|
|
266
1386
|
tax_name?:string;
|
|
1387
|
+
|
|
267
1388
|
tax_rate?:number;
|
|
1389
|
+
|
|
268
1390
|
is_partial_tax_applied?:boolean;
|
|
1391
|
+
|
|
269
1392
|
is_non_compliance_tax?:boolean;
|
|
1393
|
+
|
|
270
1394
|
taxable_amount?:number;
|
|
1395
|
+
|
|
271
1396
|
tax_amount?:number;
|
|
1397
|
+
|
|
272
1398
|
tax_juris_type?:'special' | 'country' | 'unincorporated' | 'other' | 'city' | 'federal' | 'county' | 'state';
|
|
1399
|
+
|
|
273
1400
|
tax_juris_name?:string;
|
|
1401
|
+
|
|
274
1402
|
tax_juris_code?:string;
|
|
1403
|
+
|
|
275
1404
|
tax_amount_in_local_currency?:number;
|
|
1405
|
+
|
|
276
1406
|
local_currency_code?:string;
|
|
277
1407
|
}
|
|
278
|
-
export interface LineItemDiscount {
|
|
1408
|
+
export interface LineItemDiscount {
|
|
279
1409
|
line_item_id?:string;
|
|
1410
|
+
|
|
280
1411
|
discount_type?:'custom_discount' | 'item_level_coupon' | 'promotional_credits' | 'item_level_discount' | 'prorated_credits' | 'document_level_discount' | 'document_level_coupon';
|
|
1412
|
+
|
|
281
1413
|
entity_id?:string;
|
|
1414
|
+
|
|
282
1415
|
discount_amount?:number;
|
|
283
1416
|
}
|
|
284
|
-
export interface OrderLineItemLinkedCredit {
|
|
1417
|
+
export interface OrderLineItemLinkedCredit {
|
|
285
1418
|
amount?:number;
|
|
1419
|
+
|
|
286
1420
|
type?:'adjustment' | 'refundable';
|
|
1421
|
+
|
|
287
1422
|
id?:string;
|
|
1423
|
+
|
|
288
1424
|
status?:'refund_due' | 'adjusted' | 'refunded' | 'voided';
|
|
1425
|
+
|
|
289
1426
|
amount_adjusted?:number;
|
|
1427
|
+
|
|
290
1428
|
amount_refunded?:number;
|
|
291
1429
|
}
|
|
292
|
-
export interface ResentOrder {
|
|
1430
|
+
export interface ResentOrder {
|
|
293
1431
|
order_id?:string;
|
|
1432
|
+
|
|
294
1433
|
reason?:string;
|
|
1434
|
+
|
|
295
1435
|
amount?:number;
|
|
296
1436
|
}
|
|
297
1437
|
}
|