chargebee 3.0.1 → 3.1.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.
Files changed (86) hide show
  1. package/CHANGELOG.md +65 -0
  2. package/cjs/environment.js +1 -1
  3. package/cjs/resources/api_endpoints.js +16 -0
  4. package/esm/environment.js +1 -1
  5. package/esm/resources/api_endpoints.js +16 -0
  6. package/package.json +1 -1
  7. package/types/core.d.ts +588 -0
  8. package/types/index.d.ts +172 -0
  9. package/types/resources/Address.d.ts +71 -0
  10. package/types/resources/AdvanceInvoiceSchedule.d.ts +29 -0
  11. package/types/resources/AttachedItem.d.ts +116 -0
  12. package/types/resources/Attribute.d.ts +9 -0
  13. package/types/resources/BusinessEntity.d.ts +64 -0
  14. package/types/resources/BusinessEntityTransfer.d.ts +15 -0
  15. package/types/resources/Card.d.ts +172 -0
  16. package/types/resources/Comment.d.ts +92 -0
  17. package/types/resources/Contact.d.ts +16 -0
  18. package/types/resources/ContractTerm.d.ts +19 -0
  19. package/types/resources/Coupon.d.ts +329 -0
  20. package/types/resources/CouponCode.d.ts +70 -0
  21. package/types/resources/CouponSet.d.ts +111 -0
  22. package/types/resources/CreditNote.d.ts +629 -0
  23. package/types/resources/CreditNoteEstimate.d.ts +143 -0
  24. package/types/resources/Currency.d.ts +91 -0
  25. package/types/resources/Customer.d.ts +964 -0
  26. package/types/resources/CustomerEntitlement.d.ts +36 -0
  27. package/types/resources/DifferentialPrice.d.ts +144 -0
  28. package/types/resources/Discount.d.ts +24 -0
  29. package/types/resources/Download.d.ts +10 -0
  30. package/types/resources/Entitlement.d.ts +66 -0
  31. package/types/resources/EntitlementOverride.d.ts +76 -0
  32. package/types/resources/Estimate.d.ts +1237 -0
  33. package/types/resources/Event.d.ts +81 -0
  34. package/types/resources/Export.d.ts +615 -0
  35. package/types/resources/Feature.d.ts +142 -0
  36. package/types/resources/GatewayErrorDetail.d.ts +20 -0
  37. package/types/resources/Gift.d.ts +296 -0
  38. package/types/resources/Hierarchy.d.ts +12 -0
  39. package/types/resources/HostedPage.d.ts +1112 -0
  40. package/types/resources/ImpactedItem.d.ts +20 -0
  41. package/types/resources/ImpactedItemPrice.d.ts +20 -0
  42. package/types/resources/ImpactedSubscription.d.ts +20 -0
  43. package/types/resources/InAppSubscription.d.ts +116 -0
  44. package/types/resources/Invoice.d.ts +1695 -0
  45. package/types/resources/InvoiceEstimate.d.ts +143 -0
  46. package/types/resources/Item.d.ts +208 -0
  47. package/types/resources/ItemEntitlement.d.ts +103 -0
  48. package/types/resources/ItemFamily.d.ts +93 -0
  49. package/types/resources/ItemPrice.d.ts +332 -0
  50. package/types/resources/Metadata.d.ts +8 -0
  51. package/types/resources/NonSubscription.d.ts +48 -0
  52. package/types/resources/OmnichannelSubscription.d.ts +75 -0
  53. package/types/resources/OmnichannelTransaction.d.ts +16 -0
  54. package/types/resources/Order.d.ts +586 -0
  55. package/types/resources/PaymentIntent.d.ts +178 -0
  56. package/types/resources/PaymentReferenceNumber.d.ts +11 -0
  57. package/types/resources/PaymentSchedule.d.ts +28 -0
  58. package/types/resources/PaymentScheduleEstimate.d.ts +25 -0
  59. package/types/resources/PaymentScheduleScheme.d.ts +67 -0
  60. package/types/resources/PaymentSource.d.ts +530 -0
  61. package/types/resources/PaymentVoucher.d.ts +107 -0
  62. package/types/resources/PortalSession.d.ts +88 -0
  63. package/types/resources/PriceVariant.d.ts +116 -0
  64. package/types/resources/PricingPageSession.d.ts +130 -0
  65. package/types/resources/PromotionalCredit.d.ts +111 -0
  66. package/types/resources/Purchase.d.ts +202 -0
  67. package/types/resources/Quote.d.ts +1467 -0
  68. package/types/resources/QuoteLineGroup.d.ts +136 -0
  69. package/types/resources/QuotedCharge.d.ts +56 -0
  70. package/types/resources/QuotedSubscription.d.ts +114 -0
  71. package/types/resources/Ramp.d.ts +260 -0
  72. package/types/resources/RecordedPurchase.d.ts +60 -0
  73. package/types/resources/ResourceMigration.d.ts +36 -0
  74. package/types/resources/SiteMigrationDetail.d.ts +46 -0
  75. package/types/resources/Subscription.d.ts +2447 -0
  76. package/types/resources/SubscriptionEntitlement.d.ts +79 -0
  77. package/types/resources/SubscriptionEstimate.d.ts +59 -0
  78. package/types/resources/TaxWithheld.d.ts +19 -0
  79. package/types/resources/ThirdPartyPaymentMethod.d.ts +11 -0
  80. package/types/resources/TimeMachine.d.ts +57 -0
  81. package/types/resources/Token.d.ts +19 -0
  82. package/types/resources/Transaction.d.ts +316 -0
  83. package/types/resources/UnbilledCharge.d.ts +209 -0
  84. package/types/resources/Usage.d.ts +113 -0
  85. package/types/resources/VirtualBankAccount.d.ts +125 -0
  86. package/types/resources/filter.d.ts +52 -0
@@ -0,0 +1,586 @@
1
+ ///<reference path='./../core.d.ts'/>
2
+ ///<reference path='./../index.d.ts'/>
3
+ ///<reference path='./filter.d.ts'/>
4
+ declare module 'chargebee' {
5
+ export interface Order {
6
+ id: string;
7
+ document_number?: string;
8
+ invoice_id?: string;
9
+ subscription_id?: string;
10
+ customer_id?: string;
11
+ status?:
12
+ | 'new'
13
+ | 'processing'
14
+ | 'complete'
15
+ | 'cancelled'
16
+ | 'voided'
17
+ | 'queued'
18
+ | 'awaiting_shipment'
19
+ | 'on_hold'
20
+ | 'delivered'
21
+ | 'shipped'
22
+ | 'partially_delivered'
23
+ | 'returned';
24
+ cancellation_reason?:
25
+ | 'shipping_cut_off_passed'
26
+ | 'product_unsatisfactory'
27
+ | 'third_party_cancellation'
28
+ | 'product_not_required'
29
+ | 'delivery_date_missed'
30
+ | 'alternative_found'
31
+ | 'invoice_written_off'
32
+ | 'invoice_voided'
33
+ | 'fraudulent_transaction'
34
+ | 'payment_declined'
35
+ | 'subscription_cancelled'
36
+ | 'product_not_available'
37
+ | 'others'
38
+ | 'order_resent';
39
+ payment_status?: 'not_paid' | 'paid';
40
+ order_type?: 'manual' | 'system_generated';
41
+ price_type: PriceTypeEnum;
42
+ reference_id?: string;
43
+ fulfillment_status?: string;
44
+ order_date?: number;
45
+ shipping_date?: number;
46
+ note?: string;
47
+ tracking_id?: string;
48
+ tracking_url?: string;
49
+ batch_id?: string;
50
+ created_by?: string;
51
+ shipment_carrier?: string;
52
+ invoice_round_off_amount?: number;
53
+ tax?: number;
54
+ amount_paid?: number;
55
+ amount_adjusted?: number;
56
+ refundable_credits_issued?: number;
57
+ refundable_credits?: number;
58
+ rounding_adjustement?: number;
59
+ paid_on?: number;
60
+ shipping_cut_off_date?: number;
61
+ created_at: number;
62
+ status_update_at?: number;
63
+ delivered_at?: number;
64
+ shipped_at?: number;
65
+ resource_version?: number;
66
+ updated_at?: number;
67
+ cancelled_at?: number;
68
+ resent_status?: 'fully_resent' | 'partially_resent';
69
+ is_resent: boolean;
70
+ original_order_id?: string;
71
+ order_line_items?: Order.OrderLineItem[];
72
+ shipping_address?: Order.ShippingAddress;
73
+ billing_address?: Order.BillingAddress;
74
+ discount?: number;
75
+ sub_total?: number;
76
+ total?: number;
77
+ line_item_taxes?: Order.LineItemTax[];
78
+ line_item_discounts?: Order.LineItemDiscount[];
79
+ linked_credit_notes?: Order.LinkedCreditNote[];
80
+ deleted: boolean;
81
+ currency_code?: string;
82
+ is_gifted?: boolean;
83
+ gift_note?: string;
84
+ gift_id?: string;
85
+ resend_reason?: string;
86
+ resent_orders?: Order.ResentOrder[];
87
+ business_entity_id?: string;
88
+ }
89
+
90
+ export namespace Order {
91
+ export class OrderResource {
92
+ create(
93
+ input: CreateInputParam,
94
+ headers?: ChargebeeRequestHeader,
95
+ ): Promise<ChargebeeResponse<CreateResponse>>;
96
+
97
+ update(
98
+ order_id: string,
99
+ input?: UpdateInputParam,
100
+ headers?: ChargebeeRequestHeader,
101
+ ): Promise<ChargebeeResponse<UpdateResponse>>;
102
+
103
+ importOrder(
104
+ input: ImportOrderInputParam,
105
+ headers?: ChargebeeRequestHeader,
106
+ ): Promise<ChargebeeResponse<ImportOrderResponse>>;
107
+
108
+ assignOrderNumber(
109
+ order_id: string,
110
+ headers?: ChargebeeRequestHeader,
111
+ ): Promise<ChargebeeResponse<AssignOrderNumberResponse>>;
112
+
113
+ cancel(
114
+ order_id: string,
115
+ input: CancelInputParam,
116
+ headers?: ChargebeeRequestHeader,
117
+ ): Promise<ChargebeeResponse<CancelResponse>>;
118
+
119
+ createRefundableCreditNote(
120
+ order_id: string,
121
+ input: CreateRefundableCreditNoteInputParam,
122
+ headers?: ChargebeeRequestHeader,
123
+ ): Promise<ChargebeeResponse<CreateRefundableCreditNoteResponse>>;
124
+
125
+ reopen(
126
+ order_id: string,
127
+ input?: ReopenInputParam,
128
+ headers?: ChargebeeRequestHeader,
129
+ ): Promise<ChargebeeResponse<ReopenResponse>>;
130
+
131
+ retrieve(
132
+ order_id: string,
133
+ headers?: ChargebeeRequestHeader,
134
+ ): Promise<ChargebeeResponse<RetrieveResponse>>;
135
+
136
+ delete(
137
+ order_id: string,
138
+ headers?: ChargebeeRequestHeader,
139
+ ): Promise<ChargebeeResponse<DeleteResponse>>;
140
+
141
+ list(
142
+ input?: ListInputParam,
143
+ headers?: ChargebeeRequestHeader,
144
+ ): Promise<ChargebeeResponse<ListResponse>>;
145
+
146
+ ordersForInvoice(
147
+ invoice_id: string,
148
+ input?: OrdersForInvoiceInputParam,
149
+ headers?: ChargebeeRequestHeader,
150
+ ): Promise<ChargebeeResponse<OrdersForInvoiceResponse>>;
151
+
152
+ resend(
153
+ order_id: string,
154
+ input?: ResendInputParam,
155
+ headers?: ChargebeeRequestHeader,
156
+ ): Promise<ChargebeeResponse<ResendResponse>>;
157
+ }
158
+
159
+ export interface CreateResponse {
160
+ order: Order;
161
+ }
162
+
163
+ export interface UpdateResponse {
164
+ order: Order;
165
+ }
166
+
167
+ export interface ImportOrderResponse {
168
+ order: Order;
169
+ }
170
+
171
+ export interface AssignOrderNumberResponse {
172
+ order: Order;
173
+ }
174
+
175
+ export interface CancelResponse {
176
+ order: Order;
177
+ }
178
+
179
+ export interface CreateRefundableCreditNoteResponse {
180
+ order: Order;
181
+ }
182
+
183
+ export interface ReopenResponse {
184
+ order: Order;
185
+ }
186
+
187
+ export interface RetrieveResponse {
188
+ order: Order;
189
+ }
190
+
191
+ export interface DeleteResponse {
192
+ order: Order;
193
+ }
194
+
195
+ export interface ListResponse {
196
+ list: { order: Order }[];
197
+ next_offset?: string;
198
+ }
199
+
200
+ export interface OrdersForInvoiceResponse {
201
+ list: { order: Order }[];
202
+ next_offset?: string;
203
+ }
204
+
205
+ export interface ResendResponse {
206
+ order: Order;
207
+ }
208
+
209
+ export interface OrderLineItem {
210
+ id: string;
211
+ invoice_id: string;
212
+ invoice_line_item_id: string;
213
+ unit_price?: number;
214
+ description?: string;
215
+ amount?: number;
216
+ fulfillment_quantity?: number;
217
+ fulfillment_amount?: number;
218
+ tax_amount?: number;
219
+ amount_paid?: number;
220
+ amount_adjusted?: number;
221
+ refundable_credits_issued?: number;
222
+ refundable_credits?: number;
223
+ is_shippable: boolean;
224
+ sku?: string;
225
+ status?:
226
+ | 'queued'
227
+ | 'awaiting_shipment'
228
+ | 'on_hold'
229
+ | 'delivered'
230
+ | 'shipped'
231
+ | 'partially_delivered'
232
+ | 'returned'
233
+ | 'cancelled';
234
+ entity_type:
235
+ | 'adhoc'
236
+ | 'plan_item_price'
237
+ | 'addon_item_price'
238
+ | 'charge_item_price'
239
+ | 'plan_setup'
240
+ | 'plan'
241
+ | 'addon';
242
+ item_level_discount_amount?: number;
243
+ discount_amount?: number;
244
+ entity_id?: string;
245
+ }
246
+ export interface ShippingAddress {
247
+ first_name?: string;
248
+ last_name?: string;
249
+ email?: string;
250
+ company?: string;
251
+ phone?: string;
252
+ line1?: string;
253
+ line2?: string;
254
+ line3?: string;
255
+ city?: string;
256
+ state_code?: string;
257
+ state?: string;
258
+ country?: string;
259
+ zip?: string;
260
+ validation_status?: ValidationStatusEnum;
261
+ index: number;
262
+ }
263
+ export interface BillingAddress {
264
+ first_name?: string;
265
+ last_name?: string;
266
+ email?: string;
267
+ company?: string;
268
+ phone?: string;
269
+ line1?: string;
270
+ line2?: string;
271
+ line3?: string;
272
+ city?: string;
273
+ state_code?: string;
274
+ state?: string;
275
+ country?: string;
276
+ zip?: string;
277
+ validation_status?: ValidationStatusEnum;
278
+ }
279
+ export interface LineItemTax {
280
+ line_item_id?: string;
281
+ tax_name: string;
282
+ tax_rate: number;
283
+ date_to?: number;
284
+ date_from?: number;
285
+ prorated_taxable_amount?: number;
286
+ is_partial_tax_applied?: boolean;
287
+ is_non_compliance_tax?: boolean;
288
+ taxable_amount: number;
289
+ tax_amount: number;
290
+ tax_juris_type?:
291
+ | 'country'
292
+ | 'federal'
293
+ | 'state'
294
+ | 'county'
295
+ | 'city'
296
+ | 'special'
297
+ | 'unincorporated'
298
+ | 'other';
299
+ tax_juris_name?: string;
300
+ tax_juris_code?: string;
301
+ tax_amount_in_local_currency?: number;
302
+ local_currency_code?: string;
303
+ }
304
+ export interface LineItemDiscount {
305
+ line_item_id: string;
306
+ discount_type:
307
+ | 'item_level_coupon'
308
+ | 'document_level_coupon'
309
+ | 'promotional_credits'
310
+ | 'prorated_credits'
311
+ | 'custom_discount'
312
+ | 'item_level_discount'
313
+ | 'document_level_discount';
314
+ coupon_id?: string;
315
+ entity_id?: string;
316
+ discount_amount: number;
317
+ }
318
+ export interface LinkedCreditNote {
319
+ amount?: number;
320
+ type: 'adjustment' | 'refundable';
321
+ id: string;
322
+ status: 'adjusted' | 'refunded' | 'refund_due' | 'voided';
323
+ amount_adjusted?: number;
324
+ amount_refunded?: number;
325
+ }
326
+ export interface ResentOrder {
327
+ order_id: string;
328
+ reason?: string;
329
+ amount?: number;
330
+ }
331
+ // REQUEST PARAMS
332
+ //---------------
333
+
334
+ export interface CreateInputParam {
335
+ id?: string;
336
+ invoice_id: string;
337
+ status?: 'new' | 'processing' | 'complete' | 'cancelled' | 'voided';
338
+ reference_id?: string;
339
+ fulfillment_status?: string;
340
+ note?: string;
341
+ tracking_id?: string;
342
+ tracking_url?: string;
343
+ batch_id?: string;
344
+ }
345
+ export interface UpdateInputParam {
346
+ reference_id?: string;
347
+ batch_id?: string;
348
+ note?: string;
349
+ shipping_date?: number;
350
+ order_date?: number;
351
+ cancelled_at?: number;
352
+ cancellation_reason?:
353
+ | 'shipping_cut_off_passed'
354
+ | 'product_unsatisfactory'
355
+ | 'third_party_cancellation'
356
+ | 'product_not_required'
357
+ | 'delivery_date_missed'
358
+ | 'alternative_found'
359
+ | 'invoice_written_off'
360
+ | 'invoice_voided'
361
+ | 'fraudulent_transaction'
362
+ | 'payment_declined'
363
+ | 'subscription_cancelled'
364
+ | 'product_not_available'
365
+ | 'others'
366
+ | 'order_resent';
367
+ shipped_at?: number;
368
+ delivered_at?: number;
369
+ tracking_url?: string;
370
+ tracking_id?: string;
371
+ shipment_carrier?: string;
372
+ fulfillment_status?: string;
373
+ status?:
374
+ | 'new'
375
+ | 'processing'
376
+ | 'complete'
377
+ | 'cancelled'
378
+ | 'voided'
379
+ | 'queued'
380
+ | 'awaiting_shipment'
381
+ | 'on_hold'
382
+ | 'delivered'
383
+ | 'shipped'
384
+ | 'partially_delivered'
385
+ | 'returned';
386
+ shipping_address?: ShippingAddressUpdateInputParam;
387
+ order_line_items?: OrderLineItemsUpdateInputParam[];
388
+ }
389
+ export interface ImportOrderInputParam {
390
+ id?: string;
391
+ document_number?: string;
392
+ invoice_id: string;
393
+ status:
394
+ | 'cancelled'
395
+ | 'queued'
396
+ | 'awaiting_shipment'
397
+ | 'on_hold'
398
+ | 'delivered'
399
+ | 'shipped'
400
+ | 'partially_delivered'
401
+ | 'returned';
402
+ subscription_id?: string;
403
+ customer_id?: string;
404
+ created_at: number;
405
+ order_date: number;
406
+ shipping_date: number;
407
+ reference_id?: string;
408
+ fulfillment_status?: string;
409
+ note?: string;
410
+ tracking_id?: string;
411
+ tracking_url?: string;
412
+ batch_id?: string;
413
+ shipment_carrier?: string;
414
+ shipping_cut_off_date?: number;
415
+ delivered_at?: number;
416
+ shipped_at?: number;
417
+ cancelled_at?: number;
418
+ cancellation_reason?:
419
+ | 'shipping_cut_off_passed'
420
+ | 'product_unsatisfactory'
421
+ | 'third_party_cancellation'
422
+ | 'product_not_required'
423
+ | 'delivery_date_missed'
424
+ | 'alternative_found'
425
+ | 'invoice_written_off'
426
+ | 'invoice_voided'
427
+ | 'fraudulent_transaction'
428
+ | 'payment_declined'
429
+ | 'subscription_cancelled'
430
+ | 'product_not_available'
431
+ | 'others'
432
+ | 'order_resent';
433
+ refundable_credits_issued?: number;
434
+ shipping_address?: ShippingAddressImportOrderInputParam;
435
+ billing_address?: BillingAddressImportOrderInputParam;
436
+ }
437
+ export interface CancelInputParam {
438
+ cancellation_reason:
439
+ | 'shipping_cut_off_passed'
440
+ | 'product_unsatisfactory'
441
+ | 'third_party_cancellation'
442
+ | 'product_not_required'
443
+ | 'delivery_date_missed'
444
+ | 'alternative_found'
445
+ | 'invoice_written_off'
446
+ | 'invoice_voided'
447
+ | 'fraudulent_transaction'
448
+ | 'payment_declined'
449
+ | 'subscription_cancelled'
450
+ | 'product_not_available'
451
+ | 'others'
452
+ | 'order_resent';
453
+ customer_notes?: string;
454
+ comment?: string;
455
+ cancelled_at?: number;
456
+ credit_note?: CreditNoteCancelInputParam;
457
+ }
458
+ export interface CreateRefundableCreditNoteInputParam {
459
+ customer_notes?: string;
460
+ comment?: string;
461
+ credit_note?: CreditNoteCreateRefundableCreditNoteInputParam;
462
+ }
463
+ export interface ReopenInputParam {
464
+ void_cancellation_credit_notes?: boolean;
465
+ }
466
+ export interface ListInputParam {
467
+ limit?: number;
468
+ offset?: string;
469
+ include_deleted?: boolean;
470
+ exclude_deleted_credit_notes?: boolean;
471
+ id?: filter.String;
472
+ invoice_id?: filter.String;
473
+ subscription_id?: filter.String;
474
+ status?: filter.Enum;
475
+ shipping_date?: filter.Timestamp;
476
+ shipped_at?: filter.Timestamp;
477
+ order_type?: filter.Enum;
478
+ order_date?: filter.Timestamp;
479
+ paid_on?: filter.Timestamp;
480
+ updated_at?: filter.Timestamp;
481
+ created_at?: filter.Timestamp;
482
+ resent_status?: filter.Enum;
483
+ is_resent?: filter.Boolean;
484
+ original_order_id?: filter.String;
485
+ 'sort_by[asc]'?: string;
486
+ 'sort_by[desc]'?: string;
487
+ }
488
+ export interface OrdersForInvoiceInputParam {
489
+ limit?: number;
490
+ offset?: string;
491
+ }
492
+ export interface ResendInputParam {
493
+ shipping_date?: number;
494
+ resend_reason?: string;
495
+ order_line_items?: OrderLineItemsResendInputParam[];
496
+ }
497
+ export interface ShippingAddressUpdateInputParam {
498
+ first_name?: string;
499
+ last_name?: string;
500
+ email?: string;
501
+ company?: string;
502
+ phone?: string;
503
+ line1?: string;
504
+ line2?: string;
505
+ line3?: string;
506
+ city?: string;
507
+ state_code?: string;
508
+ state?: string;
509
+ zip?: string;
510
+ country?: string;
511
+ validation_status?: ValidationStatusEnum;
512
+ }
513
+
514
+ export interface OrderLineItemsUpdateInputParam {
515
+ id?: string;
516
+ status?:
517
+ | 'queued'
518
+ | 'awaiting_shipment'
519
+ | 'on_hold'
520
+ | 'delivered'
521
+ | 'shipped'
522
+ | 'partially_delivered'
523
+ | 'returned'
524
+ | 'cancelled';
525
+ sku?: string;
526
+ }
527
+ export interface BillingAddressImportOrderInputParam {
528
+ first_name?: string;
529
+ last_name?: string;
530
+ email?: string;
531
+ company?: string;
532
+ phone?: string;
533
+ line1?: string;
534
+ line2?: string;
535
+ line3?: string;
536
+ city?: string;
537
+ state_code?: string;
538
+ state?: string;
539
+ zip?: string;
540
+ country?: string;
541
+ validation_status?: ValidationStatusEnum;
542
+ }
543
+ export interface ShippingAddressImportOrderInputParam {
544
+ first_name?: string;
545
+ last_name?: string;
546
+ email?: string;
547
+ company?: string;
548
+ phone?: string;
549
+ line1?: string;
550
+ line2?: string;
551
+ line3?: string;
552
+ city?: string;
553
+ state_code?: string;
554
+ state?: string;
555
+ zip?: string;
556
+ country?: string;
557
+ validation_status?: ValidationStatusEnum;
558
+ }
559
+
560
+ export interface CreditNoteCancelInputParam {
561
+ total?: number;
562
+ }
563
+
564
+ export interface CreditNoteCreateRefundableCreditNoteInputParam {
565
+ reason_code:
566
+ | 'write_off'
567
+ | 'subscription_change'
568
+ | 'subscription_cancellation'
569
+ | 'subscription_pause'
570
+ | 'chargeback'
571
+ | 'product_unsatisfactory'
572
+ | 'service_unsatisfactory'
573
+ | 'order_change'
574
+ | 'order_cancellation'
575
+ | 'waiver'
576
+ | 'other'
577
+ | 'fraudulent';
578
+ total: number;
579
+ }
580
+
581
+ export interface OrderLineItemsResendInputParam {
582
+ id?: string;
583
+ fulfillment_quantity?: number;
584
+ }
585
+ }
586
+ }