chargebee 3.0.0 → 3.0.2

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 (82) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/README.md +5 -5
  3. package/cjs/environment.js +1 -1
  4. package/esm/environment.js +1 -1
  5. package/package.json +1 -1
  6. package/types/core.d.ts +574 -0
  7. package/types/index.d.ts +167 -0
  8. package/types/resources/Address.d.ts +71 -0
  9. package/types/resources/AdvanceInvoiceSchedule.d.ts +29 -0
  10. package/types/resources/AttachedItem.d.ts +114 -0
  11. package/types/resources/Attribute.d.ts +9 -0
  12. package/types/resources/BusinessEntity.d.ts +64 -0
  13. package/types/resources/BusinessEntityTransfer.d.ts +15 -0
  14. package/types/resources/Card.d.ts +171 -0
  15. package/types/resources/Comment.d.ts +89 -0
  16. package/types/resources/Contact.d.ts +16 -0
  17. package/types/resources/ContractTerm.d.ts +19 -0
  18. package/types/resources/Coupon.d.ts +314 -0
  19. package/types/resources/CouponCode.d.ts +70 -0
  20. package/types/resources/CouponSet.d.ts +111 -0
  21. package/types/resources/CreditNote.d.ts +628 -0
  22. package/types/resources/CreditNoteEstimate.d.ts +143 -0
  23. package/types/resources/Currency.d.ts +91 -0
  24. package/types/resources/Customer.d.ts +962 -0
  25. package/types/resources/CustomerEntitlement.d.ts +36 -0
  26. package/types/resources/DifferentialPrice.d.ts +142 -0
  27. package/types/resources/Discount.d.ts +24 -0
  28. package/types/resources/Download.d.ts +10 -0
  29. package/types/resources/Entitlement.d.ts +66 -0
  30. package/types/resources/EntitlementOverride.d.ts +76 -0
  31. package/types/resources/Estimate.d.ts +1237 -0
  32. package/types/resources/Event.d.ts +81 -0
  33. package/types/resources/Export.d.ts +607 -0
  34. package/types/resources/Feature.d.ts +142 -0
  35. package/types/resources/GatewayErrorDetail.d.ts +20 -0
  36. package/types/resources/Gift.d.ts +296 -0
  37. package/types/resources/Hierarchy.d.ts +12 -0
  38. package/types/resources/HostedPage.d.ts +1112 -0
  39. package/types/resources/ImpactedItem.d.ts +20 -0
  40. package/types/resources/ImpactedItemPrice.d.ts +20 -0
  41. package/types/resources/ImpactedSubscription.d.ts +20 -0
  42. package/types/resources/InAppSubscription.d.ts +116 -0
  43. package/types/resources/Invoice.d.ts +1691 -0
  44. package/types/resources/InvoiceEstimate.d.ts +143 -0
  45. package/types/resources/Item.d.ts +204 -0
  46. package/types/resources/ItemEntitlement.d.ts +103 -0
  47. package/types/resources/ItemFamily.d.ts +89 -0
  48. package/types/resources/ItemPrice.d.ts +328 -0
  49. package/types/resources/Metadata.d.ts +8 -0
  50. package/types/resources/NonSubscription.d.ts +48 -0
  51. package/types/resources/Order.d.ts +586 -0
  52. package/types/resources/PaymentIntent.d.ts +178 -0
  53. package/types/resources/PaymentReferenceNumber.d.ts +11 -0
  54. package/types/resources/PaymentSchedule.d.ts +28 -0
  55. package/types/resources/PaymentScheduleEstimate.d.ts +25 -0
  56. package/types/resources/PaymentScheduleScheme.d.ts +62 -0
  57. package/types/resources/PaymentSource.d.ts +529 -0
  58. package/types/resources/PaymentVoucher.d.ts +107 -0
  59. package/types/resources/PortalSession.d.ts +88 -0
  60. package/types/resources/PriceVariant.d.ts +112 -0
  61. package/types/resources/PricingPageSession.d.ts +130 -0
  62. package/types/resources/PromotionalCredit.d.ts +111 -0
  63. package/types/resources/Purchase.d.ts +202 -0
  64. package/types/resources/Quote.d.ts +1467 -0
  65. package/types/resources/QuoteLineGroup.d.ts +136 -0
  66. package/types/resources/QuotedCharge.d.ts +56 -0
  67. package/types/resources/QuotedSubscription.d.ts +114 -0
  68. package/types/resources/Ramp.d.ts +260 -0
  69. package/types/resources/ResourceMigration.d.ts +36 -0
  70. package/types/resources/SiteMigrationDetail.d.ts +46 -0
  71. package/types/resources/Subscription.d.ts +2443 -0
  72. package/types/resources/SubscriptionEntitlement.d.ts +79 -0
  73. package/types/resources/SubscriptionEstimate.d.ts +59 -0
  74. package/types/resources/TaxWithheld.d.ts +19 -0
  75. package/types/resources/ThirdPartyPaymentMethod.d.ts +11 -0
  76. package/types/resources/TimeMachine.d.ts +57 -0
  77. package/types/resources/Token.d.ts +19 -0
  78. package/types/resources/Transaction.d.ts +313 -0
  79. package/types/resources/UnbilledCharge.d.ts +209 -0
  80. package/types/resources/Usage.d.ts +113 -0
  81. package/types/resources/VirtualBankAccount.d.ts +125 -0
  82. package/types/resources/filter.d.ts +52 -0
@@ -0,0 +1,628 @@
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 CreditNote {
6
+ id: string;
7
+ customer_id: string;
8
+ subscription_id?: string;
9
+ reference_invoice_id?: string;
10
+ type: 'adjustment' | 'refundable';
11
+ reason_code?:
12
+ | 'write_off'
13
+ | 'subscription_change'
14
+ | 'subscription_cancellation'
15
+ | 'subscription_pause'
16
+ | 'chargeback'
17
+ | 'product_unsatisfactory'
18
+ | 'service_unsatisfactory'
19
+ | 'order_change'
20
+ | 'order_cancellation'
21
+ | 'waiver'
22
+ | 'other'
23
+ | 'fraudulent';
24
+ status: 'adjusted' | 'refunded' | 'refund_due' | 'voided';
25
+ vat_number?: string;
26
+ date?: number;
27
+ price_type: PriceTypeEnum;
28
+ currency_code: string;
29
+ total?: number;
30
+ amount_allocated?: number;
31
+ amount_refunded?: number;
32
+ amount_available?: number;
33
+ refunded_at?: number;
34
+ voided_at?: number;
35
+ generated_at?: number;
36
+ resource_version?: number;
37
+ updated_at?: number;
38
+ channel?: ChannelEnum;
39
+ einvoice?: CreditNote.Einvoice;
40
+ sub_total: number;
41
+ sub_total_in_local_currency?: number;
42
+ total_in_local_currency?: number;
43
+ local_currency_code?: string;
44
+ round_off_amount?: number;
45
+ fractional_correction?: number;
46
+ line_items?: CreditNote.LineItem[];
47
+ discounts?: CreditNote.Discount[];
48
+ line_item_discounts?: CreditNote.LineItemDiscount[];
49
+ line_item_tiers?: CreditNote.LineItemTier[];
50
+ taxes?: CreditNote.Tax[];
51
+ line_item_taxes?: CreditNote.LineItemTax[];
52
+ linked_refunds?: CreditNote.LinkedRefund[];
53
+ allocations?: CreditNote.Allocation[];
54
+ deleted: boolean;
55
+ tax_category?: string;
56
+ local_currency_exchange_rate?: number;
57
+ create_reason_code?: string;
58
+ vat_number_prefix?: string;
59
+ business_entity_id?: string;
60
+ shipping_address?: CreditNote.ShippingAddress;
61
+ billing_address?: CreditNote.BillingAddress;
62
+ site_details_at_creation?: CreditNote.SiteDetailsAtCreation;
63
+ tax_origin?: CreditNote.TaxOrigin;
64
+ }
65
+
66
+ export namespace CreditNote {
67
+ export class CreditNoteResource {
68
+ create(
69
+ input: CreateInputParam,
70
+ headers?: ChargebeeRequestHeader,
71
+ ): Promise<ChargebeeResponse<CreateResponse>>;
72
+
73
+ retrieve(
74
+ credit_note_id: string,
75
+ headers?: ChargebeeRequestHeader,
76
+ ): Promise<ChargebeeResponse<RetrieveResponse>>;
77
+
78
+ pdf(
79
+ credit_note_id: string,
80
+ input?: PdfInputParam,
81
+ headers?: ChargebeeRequestHeader,
82
+ ): Promise<ChargebeeResponse<PdfResponse>>;
83
+
84
+ downloadEinvoice(
85
+ credit_note_id: string,
86
+ headers?: ChargebeeRequestHeader,
87
+ ): Promise<ChargebeeResponse<DownloadEinvoiceResponse>>;
88
+
89
+ refund(
90
+ credit_note_id: string,
91
+ input?: RefundInputParam,
92
+ headers?: ChargebeeRequestHeader,
93
+ ): Promise<ChargebeeResponse<RefundResponse>>;
94
+
95
+ recordRefund(
96
+ credit_note_id: string,
97
+ input: RecordRefundInputParam,
98
+ headers?: ChargebeeRequestHeader,
99
+ ): Promise<ChargebeeResponse<RecordRefundResponse>>;
100
+
101
+ voidCreditNote(
102
+ credit_note_id: string,
103
+ input?: VoidCreditNoteInputParam,
104
+ headers?: ChargebeeRequestHeader,
105
+ ): Promise<ChargebeeResponse<VoidCreditNoteResponse>>;
106
+
107
+ list(
108
+ input?: ListInputParam,
109
+ headers?: ChargebeeRequestHeader,
110
+ ): Promise<ChargebeeResponse<ListResponse>>;
111
+
112
+ creditNotesForCustomer(
113
+ customer_id: string,
114
+ input?: CreditNotesForCustomerInputParam,
115
+ headers?: ChargebeeRequestHeader,
116
+ ): Promise<ChargebeeResponse<CreditNotesForCustomerResponse>>;
117
+
118
+ delete(
119
+ credit_note_id: string,
120
+ input?: DeleteInputParam,
121
+ headers?: ChargebeeRequestHeader,
122
+ ): Promise<ChargebeeResponse<DeleteResponse>>;
123
+
124
+ removeTaxWithheldRefund(
125
+ credit_note_id: string,
126
+ input: RemoveTaxWithheldRefundInputParam,
127
+ headers?: ChargebeeRequestHeader,
128
+ ): Promise<ChargebeeResponse<RemoveTaxWithheldRefundResponse>>;
129
+
130
+ resendEinvoice(
131
+ credit_note_id: string,
132
+ headers?: ChargebeeRequestHeader,
133
+ ): Promise<ChargebeeResponse<ResendEinvoiceResponse>>;
134
+
135
+ sendEinvoice(
136
+ credit_note_id: string,
137
+ headers?: ChargebeeRequestHeader,
138
+ ): Promise<ChargebeeResponse<SendEinvoiceResponse>>;
139
+
140
+ importCreditNote(
141
+ input: ImportCreditNoteInputParam,
142
+ headers?: ChargebeeRequestHeader,
143
+ ): Promise<ChargebeeResponse<ImportCreditNoteResponse>>;
144
+ }
145
+
146
+ export interface CreateResponse {
147
+ credit_note: CreditNote;
148
+ invoice?: Invoice;
149
+ }
150
+
151
+ export interface RetrieveResponse {
152
+ credit_note: CreditNote;
153
+ }
154
+
155
+ export interface PdfResponse {
156
+ download: Download;
157
+ }
158
+
159
+ export interface DownloadEinvoiceResponse {
160
+ downloads: Download[];
161
+ }
162
+
163
+ export interface RefundResponse {
164
+ credit_note: CreditNote;
165
+ transaction: Transaction;
166
+ }
167
+
168
+ export interface RecordRefundResponse {
169
+ credit_note: CreditNote;
170
+ transaction?: Transaction;
171
+ }
172
+
173
+ export interface VoidCreditNoteResponse {
174
+ credit_note: CreditNote;
175
+ }
176
+
177
+ export interface ListResponse {
178
+ list: { credit_note: CreditNote }[];
179
+ next_offset?: string;
180
+ }
181
+
182
+ export interface CreditNotesForCustomerResponse {
183
+ list: { credit_note: CreditNote }[];
184
+ next_offset?: string;
185
+ }
186
+
187
+ export interface DeleteResponse {
188
+ credit_note: CreditNote;
189
+ }
190
+
191
+ export interface RemoveTaxWithheldRefundResponse {
192
+ credit_note: CreditNote;
193
+ }
194
+
195
+ export interface ResendEinvoiceResponse {
196
+ credit_note: CreditNote;
197
+ }
198
+
199
+ export interface SendEinvoiceResponse {
200
+ credit_note: CreditNote;
201
+ }
202
+
203
+ export interface ImportCreditNoteResponse {
204
+ credit_note: CreditNote;
205
+ }
206
+
207
+ export interface Einvoice {
208
+ id: string;
209
+ reference_number?: string;
210
+ status:
211
+ | 'scheduled'
212
+ | 'skipped'
213
+ | 'in_progress'
214
+ | 'success'
215
+ | 'failed'
216
+ | 'registered';
217
+ message?: string;
218
+ }
219
+ export interface LineItem {
220
+ id?: string;
221
+ subscription_id?: string;
222
+ date_from: number;
223
+ date_to: number;
224
+ unit_amount: number;
225
+ quantity?: number;
226
+ amount?: number;
227
+ pricing_model?:
228
+ | 'flat_fee'
229
+ | 'per_unit'
230
+ | 'tiered'
231
+ | 'volume'
232
+ | 'stairstep';
233
+ is_taxed: boolean;
234
+ tax_amount?: number;
235
+ tax_rate?: number;
236
+ unit_amount_in_decimal?: string;
237
+ quantity_in_decimal?: string;
238
+ amount_in_decimal?: string;
239
+ discount_amount?: number;
240
+ item_level_discount_amount?: number;
241
+ usage_percentage?: string;
242
+ reference_line_item_id?: string;
243
+ description: string;
244
+ entity_description?: string;
245
+ entity_type:
246
+ | 'adhoc'
247
+ | 'plan_item_price'
248
+ | 'addon_item_price'
249
+ | 'charge_item_price'
250
+ | 'plan_setup'
251
+ | 'plan'
252
+ | 'addon';
253
+ tax_exempt_reason?:
254
+ | 'tax_not_configured'
255
+ | 'region_non_taxable'
256
+ | 'export'
257
+ | 'customer_exempt'
258
+ | 'product_exempt'
259
+ | 'zero_rated'
260
+ | 'reverse_charge'
261
+ | 'high_value_physical_goods'
262
+ | 'zero_value_item'
263
+ | 'tax_not_configured_external_provider';
264
+ entity_id?: string;
265
+ customer_id?: string;
266
+ }
267
+ export interface Discount {
268
+ amount: number;
269
+ description?: string;
270
+ entity_type:
271
+ | 'item_level_coupon'
272
+ | 'document_level_coupon'
273
+ | 'promotional_credits'
274
+ | 'prorated_credits'
275
+ | 'item_level_discount'
276
+ | 'document_level_discount';
277
+ entity_id?: string;
278
+ coupon_set_code?: string;
279
+ }
280
+ export interface LineItemDiscount {
281
+ line_item_id: string;
282
+ discount_type:
283
+ | 'item_level_coupon'
284
+ | 'document_level_coupon'
285
+ | 'promotional_credits'
286
+ | 'prorated_credits'
287
+ | 'item_level_discount'
288
+ | 'document_level_discount';
289
+ coupon_id?: string;
290
+ entity_id?: string;
291
+ discount_amount: number;
292
+ }
293
+ export interface LineItemTier {
294
+ line_item_id?: string;
295
+ starting_unit: number;
296
+ ending_unit?: number;
297
+ quantity_used: number;
298
+ unit_amount: number;
299
+ starting_unit_in_decimal?: string;
300
+ ending_unit_in_decimal?: string;
301
+ quantity_used_in_decimal?: string;
302
+ unit_amount_in_decimal?: string;
303
+ }
304
+ export interface Tax {
305
+ name: string;
306
+ amount: number;
307
+ description?: string;
308
+ }
309
+ export interface LineItemTax {
310
+ line_item_id?: string;
311
+ tax_name: string;
312
+ tax_rate: number;
313
+ date_to?: number;
314
+ date_from?: number;
315
+ prorated_taxable_amount?: number;
316
+ is_partial_tax_applied?: boolean;
317
+ is_non_compliance_tax?: boolean;
318
+ taxable_amount: number;
319
+ tax_amount: number;
320
+ tax_juris_type?:
321
+ | 'country'
322
+ | 'federal'
323
+ | 'state'
324
+ | 'county'
325
+ | 'city'
326
+ | 'special'
327
+ | 'unincorporated'
328
+ | 'other';
329
+ tax_juris_name?: string;
330
+ tax_juris_code?: string;
331
+ tax_amount_in_local_currency?: number;
332
+ local_currency_code?: string;
333
+ }
334
+ export interface LinkedRefund {
335
+ txn_id: string;
336
+ applied_amount: number;
337
+ applied_at: number;
338
+ txn_status?:
339
+ | 'in_progress'
340
+ | 'success'
341
+ | 'voided'
342
+ | 'failure'
343
+ | 'timeout'
344
+ | 'needs_attention';
345
+ txn_date?: number;
346
+ txn_amount?: number;
347
+ refund_reason_code?: string;
348
+ }
349
+ export interface Allocation {
350
+ invoice_id: string;
351
+ allocated_amount: number;
352
+ allocated_at: number;
353
+ invoice_date?: number;
354
+ invoice_status:
355
+ | 'paid'
356
+ | 'posted'
357
+ | 'payment_due'
358
+ | 'not_paid'
359
+ | 'voided'
360
+ | 'pending';
361
+ }
362
+ export interface ShippingAddress {
363
+ first_name?: string;
364
+ last_name?: string;
365
+ email?: string;
366
+ company?: string;
367
+ phone?: string;
368
+ line1?: string;
369
+ line2?: string;
370
+ line3?: string;
371
+ city?: string;
372
+ state_code?: string;
373
+ state?: string;
374
+ country?: string;
375
+ zip?: string;
376
+ validation_status?: ValidationStatusEnum;
377
+ index: number;
378
+ }
379
+ export interface BillingAddress {
380
+ first_name?: string;
381
+ last_name?: string;
382
+ email?: string;
383
+ company?: string;
384
+ phone?: string;
385
+ line1?: string;
386
+ line2?: string;
387
+ line3?: string;
388
+ city?: string;
389
+ state_code?: string;
390
+ state?: string;
391
+ country?: string;
392
+ zip?: string;
393
+ validation_status?: ValidationStatusEnum;
394
+ }
395
+ export interface SiteDetailsAtCreation {
396
+ timezone?: string;
397
+ organization_address?: object;
398
+ }
399
+ export interface TaxOrigin {
400
+ country?: string;
401
+ registration_number?: string;
402
+ }
403
+ // REQUEST PARAMS
404
+ //---------------
405
+
406
+ export interface CreateInputParam {
407
+ reference_invoice_id?: string;
408
+ customer_id?: string;
409
+ total?: number;
410
+ type: 'adjustment' | 'refundable';
411
+ reason_code?:
412
+ | 'product_unsatisfactory'
413
+ | 'service_unsatisfactory'
414
+ | 'order_change'
415
+ | 'order_cancellation'
416
+ | 'waiver'
417
+ | 'other';
418
+ create_reason_code?: string;
419
+ date?: number;
420
+ customer_notes?: string;
421
+ currency_code?: string;
422
+ comment?: string;
423
+ line_items?: LineItemsCreateInputParam[];
424
+ }
425
+ export interface PdfInputParam {
426
+ disposition_type?: DispositionTypeEnum;
427
+ }
428
+ export interface RefundInputParam {
429
+ refund_amount?: number;
430
+ customer_notes?: string;
431
+ refund_reason_code?: string;
432
+ }
433
+ export interface RecordRefundInputParam {
434
+ refund_reason_code?: string;
435
+ comment?: string;
436
+ transaction?: TransactionRecordRefundInputParam;
437
+ }
438
+ export interface VoidCreditNoteInputParam {
439
+ comment?: string;
440
+ }
441
+ export interface ListInputParam {
442
+ limit?: number;
443
+ offset?: string;
444
+ einvoice?: EinvoiceCreditNoteListInputParam;
445
+ include_deleted?: boolean;
446
+ id?: filter.String;
447
+ customer_id?: filter.String;
448
+ subscription_id?: filter.String;
449
+ reference_invoice_id?: filter.String;
450
+ type?: filter.Enum;
451
+ reason_code?: filter.Enum;
452
+ create_reason_code?: filter.String;
453
+ status?: filter.Enum;
454
+ date?: filter.Timestamp;
455
+ total?: filter.Number;
456
+ price_type?: filter.Enum;
457
+ amount_allocated?: filter.Number;
458
+ amount_refunded?: filter.Number;
459
+ amount_available?: filter.Number;
460
+ voided_at?: filter.Timestamp;
461
+ updated_at?: filter.Timestamp;
462
+ channel?: filter.Enum;
463
+ 'sort_by[asc]'?: string;
464
+ 'sort_by[desc]'?: string;
465
+ }
466
+ export interface CreditNotesForCustomerInputParam {
467
+ limit?: number;
468
+ offset?: string;
469
+ }
470
+ export interface DeleteInputParam {
471
+ comment?: string;
472
+ }
473
+ export interface RemoveTaxWithheldRefundInputParam {
474
+ tax_withheld?: TaxWithheldRemoveTaxWithheldRefundInputParam;
475
+ }
476
+ export interface ImportCreditNoteInputParam {
477
+ id: string;
478
+ customer_id?: string;
479
+ subscription_id?: string;
480
+ reference_invoice_id: string;
481
+ type: 'adjustment' | 'refundable';
482
+ currency_code?: string;
483
+ create_reason_code: string;
484
+ date: number;
485
+ status?: 'adjusted' | 'refunded' | 'refund_due' | 'voided';
486
+ total?: number;
487
+ refunded_at?: number;
488
+ voided_at?: number;
489
+ sub_total?: number;
490
+ round_off_amount?: number;
491
+ fractional_correction?: number;
492
+ vat_number_prefix?: string;
493
+ line_items?: LineItemsImportCreditNoteInputParam[];
494
+ line_item_tiers?: LineItemTiersImportCreditNoteInputParam[];
495
+ discounts?: DiscountsImportCreditNoteInputParam[];
496
+ taxes?: TaxesImportCreditNoteInputParam[];
497
+ allocations?: AllocationsImportCreditNoteInputParam[];
498
+ linked_refunds?: LinkedRefundsImportCreditNoteInputParam[];
499
+ }
500
+ export interface LineItemsCreateInputParam {
501
+ reference_line_item_id?: string;
502
+ unit_amount?: number;
503
+ unit_amount_in_decimal?: string;
504
+ quantity?: number;
505
+ quantity_in_decimal?: string;
506
+ amount?: number;
507
+ date_from?: number;
508
+ date_to?: number;
509
+ description?: string;
510
+ entity_type?:
511
+ | 'adhoc'
512
+ | 'plan_item_price'
513
+ | 'addon_item_price'
514
+ | 'charge_item_price';
515
+ entity_id?: string;
516
+ }
517
+ export interface TransactionRecordRefundInputParam {
518
+ amount?: number;
519
+ payment_method: PaymentMethodEnum;
520
+ reference_number?: string;
521
+ custom_payment_method_id?: string;
522
+ date: number;
523
+ }
524
+
525
+ export interface EinvoiceCreditNoteListInputParam {
526
+ status?: filter.Enum;
527
+ }
528
+
529
+ export interface TaxWithheldRemoveTaxWithheldRefundInputParam {
530
+ id: string;
531
+ }
532
+
533
+ export interface AllocationsImportCreditNoteInputParam {
534
+ invoice_id: string;
535
+ allocated_amount: number;
536
+ allocated_at: number;
537
+ }
538
+ export interface DiscountsImportCreditNoteInputParam {
539
+ entity_type:
540
+ | 'item_level_coupon'
541
+ | 'document_level_coupon'
542
+ | 'promotional_credits'
543
+ | 'item_level_discount'
544
+ | 'document_level_discount';
545
+ entity_id?: string;
546
+ description?: string;
547
+ amount: number;
548
+ }
549
+ export interface LinkedRefundsImportCreditNoteInputParam {
550
+ amount: number;
551
+ payment_method: PaymentMethodEnum;
552
+ date: number;
553
+ reference_number?: string;
554
+ }
555
+ export interface TaxesImportCreditNoteInputParam {
556
+ name: string;
557
+ rate: number;
558
+ amount?: number;
559
+ description?: string;
560
+ juris_type?:
561
+ | 'country'
562
+ | 'federal'
563
+ | 'state'
564
+ | 'county'
565
+ | 'city'
566
+ | 'special'
567
+ | 'unincorporated'
568
+ | 'other';
569
+ juris_name?: string;
570
+ juris_code?: string;
571
+ }
572
+ export interface LineItemTiersImportCreditNoteInputParam {
573
+ line_item_id: string;
574
+ starting_unit?: number;
575
+ ending_unit?: number;
576
+ quantity_used?: number;
577
+ unit_amount?: number;
578
+ starting_unit_in_decimal?: string;
579
+ ending_unit_in_decimal?: string;
580
+ quantity_used_in_decimal?: string;
581
+ unit_amount_in_decimal?: string;
582
+ }
583
+ export interface LineItemsImportCreditNoteInputParam {
584
+ reference_line_item_id?: string;
585
+ id?: string;
586
+ date_from?: number;
587
+ date_to?: number;
588
+ subscription_id?: string;
589
+ description: string;
590
+ unit_amount?: number;
591
+ quantity?: number;
592
+ amount?: number;
593
+ unit_amount_in_decimal?: string;
594
+ quantity_in_decimal?: string;
595
+ amount_in_decimal?: string;
596
+ entity_type?:
597
+ | 'adhoc'
598
+ | 'plan_item_price'
599
+ | 'addon_item_price'
600
+ | 'charge_item_price';
601
+ entity_id?: string;
602
+ item_level_discount1_entity_id?: string;
603
+ item_level_discount1_amount?: number;
604
+ item_level_discount2_entity_id?: string;
605
+ item_level_discount2_amount?: number;
606
+ tax1_name?: string;
607
+ tax1_amount?: number;
608
+ tax2_name?: string;
609
+ tax2_amount?: number;
610
+ tax3_name?: string;
611
+ tax3_amount?: number;
612
+ tax4_name?: string;
613
+ tax4_amount?: number;
614
+ tax5_name?: string;
615
+ tax5_amount?: number;
616
+ tax6_name?: string;
617
+ tax6_amount?: number;
618
+ tax7_name?: string;
619
+ tax7_amount?: number;
620
+ tax8_name?: string;
621
+ tax8_amount?: number;
622
+ tax9_name?: string;
623
+ tax9_amount?: number;
624
+ tax10_name?: string;
625
+ tax10_amount?: number;
626
+ }
627
+ }
628
+ }