chargebee 2.53.0 → 2.54.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 (49) hide show
  1. package/.github/workflows/release.yml +34 -0
  2. package/CHANGELOG.md +62 -0
  3. package/lib/chargebee.js +2 -2
  4. package/lib/resources/api_endpoints.js +73 -0
  5. package/package.json +1 -1
  6. package/types/core.d.ts +4 -2
  7. package/types/index.d.ts +7 -0
  8. package/types/resources/Addon.d.ts +2 -2
  9. package/types/resources/BusinessEntity.d.ts +1 -1
  10. package/types/resources/Comment.d.ts +2 -2
  11. package/types/resources/Coupon.d.ts +3 -3
  12. package/types/resources/CreditNote.d.ts +4 -6
  13. package/types/resources/CreditNoteEstimate.d.ts +40 -40
  14. package/types/resources/Currency.d.ts +23 -6
  15. package/types/resources/Customer.d.ts +5 -3
  16. package/types/resources/Estimate.d.ts +2 -2
  17. package/types/resources/Event.d.ts +2 -2
  18. package/types/resources/Feature.d.ts +2 -2
  19. package/types/resources/GatewayErrorDetail.d.ts +2 -0
  20. package/types/resources/Gift.d.ts +1 -1
  21. package/types/resources/HostedPage.d.ts +13 -13
  22. package/types/resources/Invoice.d.ts +6 -8
  23. package/types/resources/InvoiceEstimate.d.ts +52 -52
  24. package/types/resources/Item.d.ts +3 -3
  25. package/types/resources/ItemFamily.d.ts +2 -2
  26. package/types/resources/ItemPrice.d.ts +4 -4
  27. package/types/resources/OfferEvent.d.ts +22 -0
  28. package/types/resources/OfferFulfillment.d.ts +68 -0
  29. package/types/resources/OmnichannelOneTimeOrder.d.ts +2 -22
  30. package/types/resources/OmnichannelSubscription.d.ts +9 -20
  31. package/types/resources/OmnichannelSubscriptionItem.d.ts +2 -0
  32. package/types/resources/OmnichannelSubscriptionItemOffer.d.ts +38 -0
  33. package/types/resources/OmnichannelTransaction.d.ts +14 -0
  34. package/types/resources/Order.d.ts +1 -3
  35. package/types/resources/PaymentSource.d.ts +1 -1
  36. package/types/resources/PaymentVoucher.d.ts +2 -2
  37. package/types/resources/PersonalizedOffer.d.ts +64 -0
  38. package/types/resources/Plan.d.ts +2 -2
  39. package/types/resources/PriceVariant.d.ts +1 -1
  40. package/types/resources/PricingPageSession.d.ts +3 -3
  41. package/types/resources/Quote.d.ts +40 -42
  42. package/types/resources/QuoteLineGroup.d.ts +24 -24
  43. package/types/resources/Ramp.d.ts +33 -8
  44. package/types/resources/Subscription.d.ts +14 -14
  45. package/types/resources/SubscriptionEstimate.d.ts +0 -2
  46. package/types/resources/Transaction.d.ts +3 -1
  47. package/types/resources/Usage.d.ts +1 -1
  48. package/types/resources/UsageFile.d.ts +4 -0
  49. package/types/resources/WebhookEndpoint.d.ts +3 -3
@@ -0,0 +1,68 @@
1
+ ///<reference path='./../core.d.ts'/>
2
+ ///<reference path='./../index.d.ts'/>
3
+ declare module 'chargebee' {
4
+ export interface OfferFulfillment {
5
+
6
+
7
+ id:string;
8
+
9
+ personalized_offer_id:string;
10
+
11
+ option_id:string;
12
+
13
+ processing_type:'billing_update' | 'checkout' | 'url_redirect' | 'webhook' | 'email';
14
+
15
+ status:'in_progress' | 'completed' | 'failed';
16
+
17
+ redirect_url?:string;
18
+
19
+ failed_at?:number;
20
+
21
+ created_at:number;
22
+
23
+ completed_at?:number;
24
+
25
+ error?:OfferFulfillment.Error;
26
+
27
+ }
28
+ export namespace OfferFulfillment {
29
+ export class OfferFulfillmentResource {
30
+ offer_fulfillments(input:OfferFulfillmentsInputParam):ChargebeeRequest<OfferFulfillmentsResponse>;
31
+
32
+ offer_fulfillments_get(offer_fulfillment_id:string):ChargebeeRequest<OfferFulfillmentsGetResponse>;
33
+
34
+ offer_fulfillments_update(offer_fulfillment_id:string, input:OfferFulfillmentsUpdateInputParam):ChargebeeRequest<OfferFulfillmentsUpdateResponse>;
35
+ }
36
+ export interface OfferFulfillmentsResponse {
37
+ offer_fulfillment:OfferFulfillment;
38
+
39
+ hosted_page?:HostedPage;
40
+ }
41
+ export interface OfferFulfillmentsInputParam {
42
+
43
+ personalized_offer_id:string;
44
+
45
+ option_id:string;
46
+ }
47
+ export interface OfferFulfillmentsGetResponse {
48
+ offer_fulfillment:OfferFulfillment;
49
+ }
50
+
51
+ export interface OfferFulfillmentsUpdateResponse {
52
+ offer_fulfillment:OfferFulfillment;
53
+ }
54
+ export interface OfferFulfillmentsUpdateInputParam {
55
+
56
+ id:string;
57
+
58
+ status:'completed' | 'failed';
59
+
60
+ failure_reason?:string;
61
+ }
62
+ export interface Error {
63
+ code:'billing_update_failed' | 'checkout_abandoned' | 'external_fulfillment_failed' | 'internal_error' | 'fulfillment_expired';
64
+
65
+ message:string;
66
+ }
67
+ }
68
+ }
@@ -22,7 +22,7 @@ declare module 'chargebee' {
22
22
 
23
23
  omnichannel_one_time_order_items:OmnichannelOneTimeOrderItem[];
24
24
 
25
- purchase_transaction?:OmnichannelOneTimeOrder.OmnichannelTransaction;
25
+ purchase_transaction?:OmnichannelTransaction;
26
26
 
27
27
  }
28
28
  export namespace OmnichannelOneTimeOrder {
@@ -65,26 +65,6 @@ declare module 'chargebee' {
65
65
 
66
66
  customer_id?:{is?:string,is_not?:string,starts_with?:string};
67
67
  }
68
- export interface OmnichannelTransaction {
69
- id:string;
70
-
71
- id_at_source:string;
72
-
73
- app_id:string;
74
-
75
- price_currency?:string;
76
-
77
- price_units?:number;
78
-
79
- price_nanos?:number;
80
-
81
- type:'purchase' | 'renewal';
82
-
83
- transacted_at?:number;
84
-
85
- created_at:number;
86
-
87
- resource_version?:number;
88
- }
68
+
89
69
  }
90
70
  }
@@ -20,7 +20,7 @@ declare module 'chargebee' {
20
20
 
21
21
  omnichannel_subscription_items:OmnichannelSubscriptionItem[];
22
22
 
23
- initial_purchase_transaction?:OmnichannelSubscription.OmnichannelTransaction;
23
+ initial_purchase_transaction?:OmnichannelTransaction;
24
24
 
25
25
  }
26
26
  export namespace OmnichannelSubscription {
@@ -30,6 +30,8 @@ declare module 'chargebee' {
30
30
  list(input?:ListInputParam):ChargebeeRequest<ListResponse>;
31
31
 
32
32
  omnichannel_transactions_for_omnichannel_subscription(omnichannel_subscription_id:string, input?:Omnichannel_transactionsForOmnichannelSubscriptionInputParam):ChargebeeRequest<OmnichannelTransactionsForOmnichannelSubscriptionResponse>;
33
+
34
+ move(omnichannel_subscription_id:string, input:MoveInputParam):ChargebeeRequest<MoveResponse>;
33
35
  }
34
36
  export interface RetrieveResponse {
35
37
  omnichannel_subscription:OmnichannelSubscription;
@@ -86,26 +88,13 @@ declare module 'chargebee' {
86
88
 
87
89
  offset?:string;
88
90
  }
89
- export interface OmnichannelTransaction {
90
- id:string;
91
-
92
- id_at_source:string;
93
-
94
- app_id:string;
95
-
96
- price_currency?:string;
97
-
98
- price_units?:number;
99
-
100
- price_nanos?:number;
101
-
102
- type:'purchase' | 'renewal';
103
-
104
- transacted_at?:number;
105
-
106
- created_at:number;
91
+ export interface MoveResponse {
92
+ omnichannel_subscription:OmnichannelSubscription;
93
+ }
94
+ export interface MoveInputParam {
107
95
 
108
- resource_version?:number;
96
+ to_customer_id:string;
109
97
  }
98
+
110
99
  }
111
100
  }
@@ -34,6 +34,8 @@ declare module 'chargebee' {
34
34
 
35
35
  resource_version?:number;
36
36
 
37
+ omnichannel_subscription_item_offers:OmnichannelSubscriptionItemOffer[];
38
+
37
39
  upcoming_renewal?:OmnichannelSubscriptionItem.UpcomingRenewal;
38
40
 
39
41
  linked_item?:OmnichannelSubscriptionItem.LinkedItem;
@@ -0,0 +1,38 @@
1
+ ///<reference path='./../core.d.ts'/>
2
+ ///<reference path='./../index.d.ts'/>
3
+ declare module 'chargebee' {
4
+ export interface OmnichannelSubscriptionItemOffer {
5
+
6
+
7
+ id:string;
8
+
9
+ offer_id_at_source?:string;
10
+
11
+ category:Category;
12
+
13
+ category_at_source?:string;
14
+
15
+ type:Type;
16
+
17
+ type_at_source?:string;
18
+
19
+ discount_type?:DiscountType;
20
+
21
+ duration:string;
22
+
23
+ percentage?:number;
24
+
25
+ price_currency?:string;
26
+
27
+ price_units?:number;
28
+
29
+ price_nanos?:number;
30
+
31
+ offer_term_start?:number;
32
+
33
+ offer_term_end?:number;
34
+
35
+ resource_version?:number;
36
+
37
+ }
38
+ }
@@ -24,5 +24,19 @@ declare module 'chargebee' {
24
24
 
25
25
  resource_version?:number;
26
26
 
27
+ linked_omnichannel_subscriptions?:OmnichannelTransaction.LinkedOmnichannelSubscription[];
28
+
29
+ linked_omnichannel_one_time_orders?:OmnichannelTransaction.LinkedOmnichannelOneTimeOrder[];
30
+
31
+ }
32
+ export namespace OmnichannelTransaction {
33
+
34
+
35
+ export interface LinkedOmnichannelSubscription {
36
+ omnichannel_subscription_id?:string;
37
+ }
38
+ export interface LinkedOmnichannelOneTimeOrder {
39
+ omnichannel_one_time_order_id?:string;
40
+ }
27
41
  }
28
42
  }
@@ -429,7 +429,7 @@ declare module 'chargebee' {
429
429
 
430
430
  original_order_id?:{is?:string,is_not?:string,starts_with?:string};
431
431
 
432
- sort_by?:object;
432
+ sort_by?:{asc?:'created_at' | 'updated_at',desc?:'created_at' | 'updated_at'};
433
433
  }
434
434
  export interface OrdersForInvoiceResponse {
435
435
  list:{order:Order}[];
@@ -532,8 +532,6 @@ declare module 'chargebee' {
532
532
  zip?:string;
533
533
 
534
534
  validation_status?:ValidationStatus;
535
-
536
- index:number;
537
535
  }
538
536
  export interface BillingAddress {
539
537
  first_name?:string;
@@ -303,7 +303,7 @@ declare module 'chargebee' {
303
303
 
304
304
  created_at?:{after?:string,before?:string,between?:string,on?:string};
305
305
 
306
- sort_by?:object;
306
+ sort_by?:{asc?:'created_at' | 'updated_at',desc?:'created_at' | 'updated_at'};
307
307
  }
308
308
  export interface SwitchGatewayAccountResponse {
309
309
  customer:Customer;
@@ -100,7 +100,7 @@ declare module 'chargebee' {
100
100
 
101
101
  status?:{in?:string,is?:'active' | 'consumed' | 'expired' | 'failure',is_not?:'active' | 'consumed' | 'expired' | 'failure',not_in?:string};
102
102
 
103
- sort_by?:object;
103
+ sort_by?:{asc?:'date' | 'updated_at',desc?:'date' | 'updated_at'};
104
104
  }
105
105
  export interface PaymentVouchersForCustomerResponse {
106
106
  list:{payment_voucher:PaymentVoucher}[];
@@ -130,7 +130,7 @@ declare module 'chargebee' {
130
130
 
131
131
  status?:{in?:string,is?:'active' | 'consumed' | 'expired' | 'failure',is_not?:'active' | 'consumed' | 'expired' | 'failure',not_in?:string};
132
132
 
133
- sort_by?:object;
133
+ sort_by?:{asc?:'date' | 'updated_at',desc?:'date' | 'updated_at'};
134
134
  }
135
135
  export interface LinkedInvoice {
136
136
  invoice_id:string;
@@ -0,0 +1,64 @@
1
+ ///<reference path='./../core.d.ts'/>
2
+ ///<reference path='./../index.d.ts'/>
3
+ declare module 'chargebee' {
4
+ export interface PersonalizedOffer {
5
+
6
+
7
+ id:string;
8
+
9
+ offer_id:string;
10
+
11
+ content:PersonalizedOffer.Content;
12
+
13
+ options:PersonalizedOffer.Option[];
14
+
15
+ }
16
+ export namespace PersonalizedOffer {
17
+ export class PersonalizedOfferResource {
18
+ personalized_offers(input:PersonalizedOffersInputParam):ChargebeeRequest<PersonalizedOffersResponse>;
19
+ }
20
+ export interface PersonalizedOffersResponse {
21
+ personalized_offers:PersonalizedOffer[];
22
+
23
+ brand?:Brand;
24
+
25
+ expires_at:number;
26
+ }
27
+ export interface PersonalizedOffersInputParam {
28
+
29
+ request_context?:{locale?:string,referrer_url?:string,timezone?:string,url?:string,user_agent?:string};
30
+
31
+ first_name?:string;
32
+
33
+ last_name?:string;
34
+
35
+ email?:string;
36
+
37
+ roles?:string[];
38
+
39
+ external_user_id?:string;
40
+
41
+ subscription_id?:string;
42
+
43
+ customer_id:string;
44
+
45
+ custom?:object;
46
+ }
47
+ export interface Content {
48
+ title:string;
49
+
50
+ description:string;
51
+ }
52
+ export interface Option {
53
+ id:string;
54
+
55
+ label:string;
56
+
57
+ processing_type:'billing_update' | 'checkout' | 'url_redirect' | 'webhook' | 'email';
58
+
59
+ processing_layout:'in_app' | 'full_page';
60
+
61
+ redirect_url:string;
62
+ }
63
+ }
64
+ }
@@ -137,7 +137,7 @@ declare module 'chargebee' {
137
137
  plan:Plan;
138
138
  }
139
139
  export interface CreateInputParam {
140
-
140
+ [key : string] : any;
141
141
  tiers?:{ending_unit?:number,ending_unit_in_decimal?:string,price?:number,price_in_decimal?:string,starting_unit?:number,starting_unit_in_decimal?:string}[];
142
142
 
143
143
  tax_providers_fields:{field_id:string,field_value:string,provider_name:string}[];
@@ -246,7 +246,7 @@ declare module 'chargebee' {
246
246
  plan:Plan;
247
247
  }
248
248
  export interface UpdateInputParam {
249
-
249
+ [key : string] : any;
250
250
  tiers?:{ending_unit?:number,ending_unit_in_decimal?:string,price?:number,price_in_decimal?:string,starting_unit?:number,starting_unit_in_decimal?:string}[];
251
251
 
252
252
  tax_providers_fields:{field_id:string,field_value:string,provider_name:string}[];
@@ -156,7 +156,7 @@ The ID of the business entity created for the site. For Product Catalog 1.0, all
156
156
 
157
157
  include_site_level_resources?:{is?:'true' | 'false'};
158
158
 
159
- sort_by?:object;
159
+ sort_by?:{asc?:'name' | 'id' | 'status' | 'created_at' | 'updated_at',desc?:'name' | 'id' | 'status' | 'created_at' | 'updated_at'};
160
160
  }
161
161
  export interface Attribute {
162
162
  name:string;
@@ -26,9 +26,9 @@ declare module 'chargebee' {
26
26
 
27
27
  pricing_page:{id:string};
28
28
 
29
- subscription?:object;
29
+ subscription?:{id?:string};
30
30
 
31
- customer?:object;
31
+ customer?:{company?:string,email?:string,first_name?:string,id?:string,last_name?:string,locale?:string,phone?:string};
32
32
 
33
33
  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};
34
34
 
@@ -47,7 +47,7 @@ declare module 'chargebee' {
47
47
 
48
48
  pricing_page:{id:string};
49
49
 
50
- subscription:object;
50
+ subscription:{id:string};
51
51
 
52
52
  discounts:{amount?:number,apply_on?:ApplyOn,duration_type:DurationType,included_in_mrr?:boolean,item_price_id?:string,label?:string,percentage?:number,period?:number,period_unit?:PeriodUnit,quantity?:number}[];
53
53
 
@@ -52,15 +52,15 @@ declare module 'chargebee' {
52
52
 
53
53
  line_items?:Quote.LineItem[];
54
54
 
55
- discounts?:Quote.Discount[];
55
+ line_item_tiers?:Quote.LineItemTier[];
56
56
 
57
57
  line_item_discounts?:Quote.LineItemDiscount[];
58
58
 
59
- taxes?:Quote.Tax[];
60
-
61
59
  line_item_taxes?:Quote.LineItemTax[];
62
60
 
63
- line_item_tiers?:Quote.LineItemTier[];
61
+ discounts?:Quote.Discount[];
62
+
63
+ taxes?:Quote.Tax[];
64
64
 
65
65
  tax_category?:string;
66
66
 
@@ -369,8 +369,8 @@ declare module 'chargebee' {
369
369
  quoted_ramp?:QuotedRamp;
370
370
  }
371
371
  export interface CreateSubItemsForCustomerQuoteInputParam {
372
-
373
- subscription?:{contract_term_billing_cycle_on_renewal?:number,id?:string,po_number?:string,setup_fee?:number,start_date?:number,trial_end?:number};
372
+ [key : string] : any;
373
+ subscription?:{contract_term_billing_cycle_on_renewal?:number,id?:string,offline_payment_method?:OfflinePaymentMethod,po_number?:string,setup_fee?:number,start_date?:number,trial_end?:number};
374
374
 
375
375
  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};
376
376
 
@@ -414,8 +414,8 @@ declare module 'chargebee' {
414
414
  quoted_ramp?:QuotedRamp;
415
415
  }
416
416
  export interface EditCreateSubCustomerQuoteForItemsInputParam {
417
-
418
- subscription?:{contract_term_billing_cycle_on_renewal?:number,id?:string,po_number?:string,setup_fee?:number,start_date?:number,trial_end?:number};
417
+ [key : string] : any;
418
+ subscription?:{contract_term_billing_cycle_on_renewal?:number,id?:string,offline_payment_method?:OfflinePaymentMethod,po_number?:string,setup_fee?:number,start_date?:number,trial_end?:number};
419
419
 
420
420
  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};
421
421
 
@@ -457,7 +457,7 @@ declare module 'chargebee' {
457
457
  quoted_ramp?:QuotedRamp;
458
458
  }
459
459
  export interface UpdateSubscriptionQuoteForItemsInputParam {
460
-
460
+ [key : string] : any;
461
461
  subscription:{auto_collection?:AutoCollection,contract_term_billing_cycle_on_renewal?:number,coupon?:string,id:string,offline_payment_method?:OfflinePaymentMethod,setup_fee?:number,start_date?:number,trial_end?:number};
462
462
 
463
463
  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};
@@ -516,7 +516,7 @@ declare module 'chargebee' {
516
516
  quoted_ramp?:QuotedRamp;
517
517
  }
518
518
  export interface EditUpdateSubscriptionQuoteForItemsInputParam {
519
-
519
+ [key : string] : any;
520
520
  subscription?:{auto_collection?:AutoCollection,contract_term_billing_cycle_on_renewal?:number,coupon?:string,offline_payment_method?:OfflinePaymentMethod,setup_fee?:number,start_date?:number,trial_end?:number};
521
521
 
522
522
  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};
@@ -706,7 +706,7 @@ NOTE: Not to be used if *consolidated invoicing* feature is enabled.
706
706
 
707
707
  updated_at?:{after?:string,before?:string,between?:string,on?:string};
708
708
 
709
- sort_by?:object;
709
+ sort_by?:{asc?:'date',desc?:'date'};
710
710
  }
711
711
  export interface QuoteLineGroupsForQuoteResponse {
712
712
  list:{quote_line_group:QuoteLineGroup}[];
@@ -861,18 +861,28 @@ NOTE: Not to be used if *consolidated invoicing* feature is enabled.
861
861
 
862
862
  customer_id?:string;
863
863
  }
864
- export interface Discount {
865
- amount:number;
864
+ export interface LineItemTier {
865
+ line_item_id?:string;
866
866
 
867
- description?:string;
867
+ starting_unit:number;
868
868
 
869
- entity_type:'item_level_coupon' | 'document_level_coupon' | 'promotional_credits' | 'prorated_credits' | 'item_level_discount' | 'document_level_discount';
869
+ ending_unit?:number;
870
870
 
871
- discount_type?:'fixed_amount' | 'percentage';
871
+ quantity_used:number;
872
872
 
873
- entity_id?:string;
873
+ unit_amount:number;
874
874
 
875
- coupon_set_code?:string;
875
+ starting_unit_in_decimal?:string;
876
+
877
+ ending_unit_in_decimal?:string;
878
+
879
+ quantity_used_in_decimal?:string;
880
+
881
+ unit_amount_in_decimal?:string;
882
+
883
+ pricing_type?:'per_unit' | 'flat_fee' | 'package';
884
+
885
+ package_size?:number;
876
886
  }
877
887
  export interface LineItemDiscount {
878
888
  line_item_id:string;
@@ -885,13 +895,6 @@ NOTE: Not to be used if *consolidated invoicing* feature is enabled.
885
895
 
886
896
  discount_amount:number;
887
897
  }
888
- export interface Tax {
889
- name:string;
890
-
891
- amount:number;
892
-
893
- description?:string;
894
- }
895
898
  export interface LineItemTax {
896
899
  line_item_id?:string;
897
900
 
@@ -923,28 +926,25 @@ NOTE: Not to be used if *consolidated invoicing* feature is enabled.
923
926
 
924
927
  local_currency_code?:string;
925
928
  }
926
- export interface LineItemTier {
927
- line_item_id?:string;
928
-
929
- starting_unit:number;
930
-
931
- ending_unit?:number;
932
-
933
- quantity_used:number;
929
+ export interface Discount {
930
+ amount:number;
934
931
 
935
- unit_amount:number;
932
+ description?:string;
936
933
 
937
- starting_unit_in_decimal?:string;
934
+ entity_type:'item_level_coupon' | 'document_level_coupon' | 'promotional_credits' | 'prorated_credits' | 'item_level_discount' | 'document_level_discount';
938
935
 
939
- ending_unit_in_decimal?:string;
936
+ discount_type?:'fixed_amount' | 'percentage';
940
937
 
941
- quantity_used_in_decimal?:string;
938
+ entity_id?:string;
942
939
 
943
- unit_amount_in_decimal?:string;
940
+ coupon_set_code?:string;
941
+ }
942
+ export interface Tax {
943
+ name:string;
944
944
 
945
- pricing_type?:'per_unit' | 'flat_fee' | 'package';
945
+ amount:number;
946
946
 
947
- package_size?:number;
947
+ description?:string;
948
948
  }
949
949
  export interface ShippingAddress {
950
950
  first_name?:string;
@@ -974,8 +974,6 @@ NOTE: Not to be used if *consolidated invoicing* feature is enabled.
974
974
  zip?:string;
975
975
 
976
976
  validation_status?:ValidationStatus;
977
-
978
- index:number;
979
977
  }
980
978
  export interface BillingAddress {
981
979
  first_name?:string;
@@ -24,14 +24,14 @@ declare module 'chargebee' {
24
24
 
25
25
  line_items?:QuoteLineGroup.LineItem[];
26
26
 
27
- discounts?:QuoteLineGroup.Discount[];
28
-
29
27
  line_item_discounts?:QuoteLineGroup.LineItemDiscount[];
30
28
 
31
- taxes?:QuoteLineGroup.Tax[];
32
-
33
29
  line_item_taxes?:QuoteLineGroup.LineItemTax[];
34
30
 
31
+ discounts?:QuoteLineGroup.Discount[];
32
+
33
+ taxes?:QuoteLineGroup.Tax[];
34
+
35
35
  }
36
36
  export namespace QuoteLineGroup {
37
37
 
@@ -87,19 +87,6 @@ declare module 'chargebee' {
87
87
 
88
88
  customer_id?:string;
89
89
  }
90
- export interface Discount {
91
- amount:number;
92
-
93
- description?:string;
94
-
95
- entity_type:'item_level_coupon' | 'document_level_coupon' | 'promotional_credits' | 'prorated_credits' | 'item_level_discount' | 'document_level_discount';
96
-
97
- discount_type?:'fixed_amount' | 'percentage';
98
-
99
- entity_id?:string;
100
-
101
- coupon_set_code?:string;
102
- }
103
90
  export interface LineItemDiscount {
104
91
  line_item_id:string;
105
92
 
@@ -111,13 +98,6 @@ declare module 'chargebee' {
111
98
 
112
99
  discount_amount:number;
113
100
  }
114
- export interface Tax {
115
- name:string;
116
-
117
- amount:number;
118
-
119
- description?:string;
120
- }
121
101
  export interface LineItemTax {
122
102
  line_item_id?:string;
123
103
 
@@ -149,5 +129,25 @@ declare module 'chargebee' {
149
129
 
150
130
  local_currency_code?:string;
151
131
  }
132
+ export interface Discount {
133
+ amount:number;
134
+
135
+ description?:string;
136
+
137
+ entity_type:'item_level_coupon' | 'document_level_coupon' | 'promotional_credits' | 'prorated_credits' | 'item_level_discount' | 'document_level_discount';
138
+
139
+ discount_type?:'fixed_amount' | 'percentage';
140
+
141
+ entity_id?:string;
142
+
143
+ coupon_set_code?:string;
144
+ }
145
+ export interface Tax {
146
+ name:string;
147
+
148
+ amount:number;
149
+
150
+ description?:string;
151
+ }
152
152
  }
153
153
  }