chargebee 3.0.0-beta.4 → 3.0.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 (84) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +4 -3
  3. package/cjs/environment.js +1 -1
  4. package/cjs/util.js +1 -1
  5. package/esm/environment.js +1 -1
  6. package/esm/util.js +1 -1
  7. package/package.json +1 -1
  8. package/types/core.d.ts +0 -564
  9. package/types/index.d.ts +0 -167
  10. package/types/resources/Address.d.ts +0 -71
  11. package/types/resources/AdvanceInvoiceSchedule.d.ts +0 -29
  12. package/types/resources/AttachedItem.d.ts +0 -114
  13. package/types/resources/Attribute.d.ts +0 -9
  14. package/types/resources/BusinessEntity.d.ts +0 -64
  15. package/types/resources/BusinessEntityTransfer.d.ts +0 -15
  16. package/types/resources/Card.d.ts +0 -171
  17. package/types/resources/Comment.d.ts +0 -89
  18. package/types/resources/Contact.d.ts +0 -16
  19. package/types/resources/ContractTerm.d.ts +0 -19
  20. package/types/resources/Coupon.d.ts +0 -314
  21. package/types/resources/CouponCode.d.ts +0 -70
  22. package/types/resources/CouponSet.d.ts +0 -111
  23. package/types/resources/CreditNote.d.ts +0 -628
  24. package/types/resources/CreditNoteEstimate.d.ts +0 -143
  25. package/types/resources/Currency.d.ts +0 -91
  26. package/types/resources/Customer.d.ts +0 -962
  27. package/types/resources/CustomerEntitlement.d.ts +0 -36
  28. package/types/resources/DifferentialPrice.d.ts +0 -142
  29. package/types/resources/Discount.d.ts +0 -24
  30. package/types/resources/Download.d.ts +0 -10
  31. package/types/resources/Entitlement.d.ts +0 -66
  32. package/types/resources/EntitlementOverride.d.ts +0 -76
  33. package/types/resources/Estimate.d.ts +0 -1237
  34. package/types/resources/Event.d.ts +0 -81
  35. package/types/resources/Export.d.ts +0 -607
  36. package/types/resources/Feature.d.ts +0 -142
  37. package/types/resources/GatewayErrorDetail.d.ts +0 -20
  38. package/types/resources/Gift.d.ts +0 -296
  39. package/types/resources/Hierarchy.d.ts +0 -12
  40. package/types/resources/HostedPage.d.ts +0 -1112
  41. package/types/resources/ImpactedItem.d.ts +0 -20
  42. package/types/resources/ImpactedItemPrice.d.ts +0 -20
  43. package/types/resources/ImpactedSubscription.d.ts +0 -20
  44. package/types/resources/InAppSubscription.d.ts +0 -116
  45. package/types/resources/Invoice.d.ts +0 -1691
  46. package/types/resources/InvoiceEstimate.d.ts +0 -143
  47. package/types/resources/Item.d.ts +0 -204
  48. package/types/resources/ItemEntitlement.d.ts +0 -103
  49. package/types/resources/ItemFamily.d.ts +0 -89
  50. package/types/resources/ItemPrice.d.ts +0 -328
  51. package/types/resources/Metadata.d.ts +0 -8
  52. package/types/resources/NonSubscription.d.ts +0 -48
  53. package/types/resources/Order.d.ts +0 -586
  54. package/types/resources/PaymentIntent.d.ts +0 -178
  55. package/types/resources/PaymentReferenceNumber.d.ts +0 -11
  56. package/types/resources/PaymentSchedule.d.ts +0 -28
  57. package/types/resources/PaymentScheduleEstimate.d.ts +0 -25
  58. package/types/resources/PaymentScheduleScheme.d.ts +0 -62
  59. package/types/resources/PaymentSource.d.ts +0 -529
  60. package/types/resources/PaymentVoucher.d.ts +0 -107
  61. package/types/resources/PortalSession.d.ts +0 -88
  62. package/types/resources/PriceVariant.d.ts +0 -112
  63. package/types/resources/PricingPageSession.d.ts +0 -130
  64. package/types/resources/PromotionalCredit.d.ts +0 -111
  65. package/types/resources/Purchase.d.ts +0 -202
  66. package/types/resources/Quote.d.ts +0 -1467
  67. package/types/resources/QuoteLineGroup.d.ts +0 -136
  68. package/types/resources/QuotedCharge.d.ts +0 -56
  69. package/types/resources/QuotedSubscription.d.ts +0 -114
  70. package/types/resources/Ramp.d.ts +0 -260
  71. package/types/resources/ResourceMigration.d.ts +0 -36
  72. package/types/resources/SiteMigrationDetail.d.ts +0 -46
  73. package/types/resources/Subscription.d.ts +0 -2443
  74. package/types/resources/SubscriptionEntitlement.d.ts +0 -79
  75. package/types/resources/SubscriptionEstimate.d.ts +0 -59
  76. package/types/resources/TaxWithheld.d.ts +0 -19
  77. package/types/resources/ThirdPartyPaymentMethod.d.ts +0 -11
  78. package/types/resources/TimeMachine.d.ts +0 -57
  79. package/types/resources/Token.d.ts +0 -19
  80. package/types/resources/Transaction.d.ts +0 -313
  81. package/types/resources/UnbilledCharge.d.ts +0 -209
  82. package/types/resources/Usage.d.ts +0 -113
  83. package/types/resources/VirtualBankAccount.d.ts +0 -125
  84. package/types/resources/filter.d.ts +0 -52
@@ -1,178 +0,0 @@
1
- ///<reference path='./../core.d.ts'/>
2
- ///<reference path='./../index.d.ts'/>
3
-
4
- declare module 'chargebee' {
5
- export interface PaymentIntent {
6
- id: string;
7
- status: 'inited' | 'in_progress' | 'authorized' | 'consumed' | 'expired';
8
- currency_code?: string;
9
- amount: number;
10
- gateway_account_id: string;
11
- expires_at: number;
12
- reference_id?: string;
13
- payment_method_type?:
14
- | 'card'
15
- | 'ideal'
16
- | 'sofort'
17
- | 'bancontact'
18
- | 'google_pay'
19
- | 'dotpay'
20
- | 'giropay'
21
- | 'apple_pay'
22
- | 'upi'
23
- | 'netbanking_emandates'
24
- | 'paypal_express_checkout'
25
- | 'direct_debit'
26
- | 'boleto'
27
- | 'venmo'
28
- | 'amazon_payments'
29
- | 'pay_to'
30
- | 'faster_payments'
31
- | 'sepa_instant_transfer'
32
- | 'klarna_pay_now'
33
- | 'online_banking_poland';
34
- success_url?: string;
35
- failure_url?: string;
36
- created_at: number;
37
- modified_at: number;
38
- resource_version?: number;
39
- updated_at?: number;
40
- customer_id: string;
41
- gateway?: string;
42
- active_payment_attempt?: PaymentIntent.PaymentAttempt;
43
- business_entity_id?: string;
44
- }
45
-
46
- export namespace PaymentIntent {
47
- export class PaymentIntentResource {
48
- create(
49
- input: CreateInputParam,
50
- headers?: ChargebeeRequestHeader,
51
- ): Promise<ChargebeeResponse<CreateResponse>>;
52
-
53
- update(
54
- payment_intent_id: string,
55
- input?: UpdateInputParam,
56
- headers?: ChargebeeRequestHeader,
57
- ): Promise<ChargebeeResponse<UpdateResponse>>;
58
-
59
- retrieve(
60
- payment_intent_id: string,
61
- headers?: ChargebeeRequestHeader,
62
- ): Promise<ChargebeeResponse<RetrieveResponse>>;
63
- }
64
-
65
- export interface CreateResponse {
66
- payment_intent: PaymentIntent;
67
- }
68
-
69
- export interface UpdateResponse {
70
- payment_intent: PaymentIntent;
71
- }
72
-
73
- export interface RetrieveResponse {
74
- payment_intent: PaymentIntent;
75
- }
76
-
77
- export interface PaymentAttempt {
78
- id?: string;
79
- status:
80
- | 'inited'
81
- | 'requires_identification'
82
- | 'requires_challenge'
83
- | 'requires_redirection'
84
- | 'authorized'
85
- | 'refused'
86
- | 'pending_authorization';
87
- payment_method_type?:
88
- | 'card'
89
- | 'ideal'
90
- | 'sofort'
91
- | 'bancontact'
92
- | 'google_pay'
93
- | 'dotpay'
94
- | 'giropay'
95
- | 'apple_pay'
96
- | 'upi'
97
- | 'netbanking_emandates'
98
- | 'paypal_express_checkout'
99
- | 'direct_debit'
100
- | 'boleto'
101
- | 'venmo'
102
- | 'amazon_payments'
103
- | 'pay_to'
104
- | 'faster_payments'
105
- | 'sepa_instant_transfer'
106
- | 'klarna_pay_now'
107
- | 'online_banking_poland';
108
- id_at_gateway?: string;
109
- error_code?: string;
110
- error_text?: string;
111
- created_at: number;
112
- modified_at: number;
113
- error_detail?: GatewayErrorDetail;
114
- }
115
- // REQUEST PARAMS
116
- //---------------
117
-
118
- export interface CreateInputParam {
119
- business_entity_id?: string;
120
- customer_id?: string;
121
- amount: number;
122
- currency_code: string;
123
- gateway_account_id?: string;
124
- reference_id?: string;
125
- payment_method_type?:
126
- | 'card'
127
- | 'ideal'
128
- | 'sofort'
129
- | 'bancontact'
130
- | 'google_pay'
131
- | 'dotpay'
132
- | 'giropay'
133
- | 'apple_pay'
134
- | 'upi'
135
- | 'netbanking_emandates'
136
- | 'paypal_express_checkout'
137
- | 'direct_debit'
138
- | 'boleto'
139
- | 'venmo'
140
- | 'amazon_payments'
141
- | 'pay_to'
142
- | 'faster_payments'
143
- | 'sepa_instant_transfer'
144
- | 'klarna_pay_now'
145
- | 'online_banking_poland';
146
- success_url?: string;
147
- failure_url?: string;
148
- }
149
- export interface UpdateInputParam {
150
- amount?: number;
151
- currency_code?: string;
152
- gateway_account_id?: string;
153
- payment_method_type?:
154
- | 'card'
155
- | 'ideal'
156
- | 'sofort'
157
- | 'bancontact'
158
- | 'google_pay'
159
- | 'dotpay'
160
- | 'giropay'
161
- | 'apple_pay'
162
- | 'upi'
163
- | 'netbanking_emandates'
164
- | 'paypal_express_checkout'
165
- | 'direct_debit'
166
- | 'boleto'
167
- | 'venmo'
168
- | 'amazon_payments'
169
- | 'pay_to'
170
- | 'faster_payments'
171
- | 'sepa_instant_transfer'
172
- | 'klarna_pay_now'
173
- | 'online_banking_poland';
174
- success_url?: string;
175
- failure_url?: string;
176
- }
177
- }
178
- }
@@ -1,11 +0,0 @@
1
- ///<reference path='./../core.d.ts'/>
2
- ///<reference path='./../index.d.ts'/>
3
-
4
- declare module 'chargebee' {
5
- export interface PaymentReferenceNumber {
6
- id: string;
7
- type: 'kid' | 'ocr' | 'frn' | 'fik' | 'swiss_reference';
8
- number: string;
9
- invoice_id?: string;
10
- }
11
- }
@@ -1,28 +0,0 @@
1
- ///<reference path='./../core.d.ts'/>
2
- ///<reference path='./../index.d.ts'/>
3
-
4
- declare module 'chargebee' {
5
- export interface PaymentSchedule {
6
- id: string;
7
- scheme_id: string;
8
- entity_type: 'invoice';
9
- entity_id: string;
10
- amount?: number;
11
- created_at: number;
12
- resource_version?: number;
13
- updated_at?: number;
14
- currency_code?: string;
15
- schedule_entries?: PaymentSchedule.ScheduleEntry[];
16
- }
17
-
18
- export namespace PaymentSchedule {
19
- export interface ScheduleEntry {
20
- id: string;
21
- date: number;
22
- amount: number;
23
- status: 'posted' | 'payment_due' | 'paid';
24
- }
25
- // REQUEST PARAMS
26
- //---------------
27
- }
28
- }
@@ -1,25 +0,0 @@
1
- ///<reference path='./../core.d.ts'/>
2
- ///<reference path='./../index.d.ts'/>
3
-
4
- declare module 'chargebee' {
5
- export interface PaymentScheduleEstimate {
6
- id: string;
7
- scheme_id: string;
8
- entity_type: 'invoice';
9
- entity_id?: string;
10
- amount: number;
11
- currency_code?: string;
12
- schedule_entries?: PaymentScheduleEstimate.ScheduleEntry[];
13
- }
14
-
15
- export namespace PaymentScheduleEstimate {
16
- export interface ScheduleEntry {
17
- id: string;
18
- date: number;
19
- amount: number;
20
- status: 'posted' | 'payment_due' | 'paid';
21
- }
22
- // REQUEST PARAMS
23
- //---------------
24
- }
25
- }
@@ -1,62 +0,0 @@
1
- ///<reference path='./../core.d.ts'/>
2
- ///<reference path='./../index.d.ts'/>
3
-
4
- declare module 'chargebee' {
5
- export interface PaymentScheduleScheme {
6
- id: string;
7
- name?: string;
8
- description?: string;
9
- number_of_schedules: number;
10
- period_unit: 'day' | 'week' | 'month';
11
- period?: number;
12
- created_at: number;
13
- resource_version?: number;
14
- updated_at?: number;
15
- preferred_schedules?: PaymentScheduleScheme.PreferredSchedule[];
16
- }
17
-
18
- export namespace PaymentScheduleScheme {
19
- export class PaymentScheduleSchemeResource {
20
- create(
21
- input: CreateInputParam,
22
- headers?: ChargebeeRequestHeader,
23
- ): Promise<ChargebeeResponse<CreateResponse>>;
24
-
25
- retrieve(
26
- payment_schedule_scheme_id: string,
27
- headers?: ChargebeeRequestHeader,
28
- ): Promise<ChargebeeResponse<RetrieveResponse>>;
29
-
30
- delete(
31
- payment_schedule_scheme_id: string,
32
- headers?: ChargebeeRequestHeader,
33
- ): Promise<ChargebeeResponse<DeleteResponse>>;
34
- }
35
-
36
- export interface CreateResponse {
37
- payment_schedule_scheme: PaymentScheduleScheme;
38
- }
39
-
40
- export interface RetrieveResponse {
41
- payment_schedule_scheme: PaymentScheduleScheme;
42
- }
43
-
44
- export interface DeleteResponse {
45
- payment_schedule_scheme: PaymentScheduleScheme;
46
- }
47
-
48
- export interface PreferredSchedule {
49
- period?: number;
50
- amount_percentage?: number;
51
- }
52
- // REQUEST PARAMS
53
- //---------------
54
-
55
- export interface CreateInputParam {
56
- number_of_schedules: number;
57
- period_unit: 'day' | 'week' | 'month';
58
- period?: number;
59
- description?: string;
60
- }
61
- }
62
- }