chargebee 3.4.0 → 3.5.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 CHANGED
@@ -1,3 +1,13 @@
1
+ ### v3.5.0 (2025-03-06)
2
+ * * *
3
+
4
+ ### New Input Params:
5
+ * created_at has been added to Invoice#LineItemsImportInputParams.
6
+ * PaymentIntent has been added to Purchase#CreateInputParams.
7
+
8
+ ### New Enums:
9
+ * SUBSCRIPTION_ENTITLEMENTS_UPDATED has been added to EventType#Enum.
10
+
1
11
  ### v3.4.0 (2025-02-10)
2
12
  * * *
3
13
 
@@ -11,7 +11,7 @@ exports.Environment = {
11
11
  hostSuffix: '.chargebee.com',
12
12
  apiPath: '/api/v2',
13
13
  timeout: DEFAULT_TIME_OUT,
14
- clientVersion: 'v3.4.0',
14
+ clientVersion: 'v3.5.0',
15
15
  port: DEFAULT_PORT,
16
16
  timemachineWaitInMillis: DEFAULT_TIME_MACHINE_WAIT,
17
17
  exportWaitInMillis: DEFAULT_EXPORT_WAIT,
@@ -2655,6 +2655,7 @@ exports.Endpoints = {
2655
2655
  null,
2656
2656
  false,
2657
2657
  {
2658
+ additional_information: 1,
2658
2659
  meta_data: 1,
2659
2660
  },
2660
2661
  ],
@@ -8,7 +8,7 @@ export const Environment = {
8
8
  hostSuffix: '.chargebee.com',
9
9
  apiPath: '/api/v2',
10
10
  timeout: DEFAULT_TIME_OUT,
11
- clientVersion: 'v3.4.0',
11
+ clientVersion: 'v3.5.0',
12
12
  port: DEFAULT_PORT,
13
13
  timemachineWaitInMillis: DEFAULT_TIME_MACHINE_WAIT,
14
14
  exportWaitInMillis: DEFAULT_EXPORT_WAIT,
@@ -2652,6 +2652,7 @@ export const Endpoints = {
2652
2652
  null,
2653
2653
  false,
2654
2654
  {
2655
+ additional_information: 1,
2655
2656
  meta_data: 1,
2656
2657
  },
2657
2658
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chargebee",
3
- "version": "3.4.0",
3
+ "version": "3.5.0",
4
4
  "description": "A library for integrating with Chargebee.",
5
5
  "scripts": {
6
6
  "prepack": "npm install && npm run build",
package/types/core.d.ts CHANGED
@@ -292,6 +292,7 @@ declare module 'chargebee' {
292
292
  | 'item_entitlements_removed'
293
293
  | 'entitlement_overrides_auto_removed'
294
294
  | 'subscription_entitlements_created'
295
+ | 'subscription_entitlements_updated'
295
296
  | 'business_entity_created'
296
297
  | 'business_entity_updated'
297
298
  | 'business_entity_deleted'
@@ -347,6 +348,7 @@ declare module 'chargebee' {
347
348
  type GatewayEnum =
348
349
  | 'chargebee'
349
350
  | 'chargebee_payments'
351
+ | 'adyen'
350
352
  | 'stripe'
351
353
  | 'wepay'
352
354
  | 'braintree'
@@ -372,7 +374,6 @@ declare module 'chargebee' {
372
374
  | 'wirecard'
373
375
  | 'amazon_payments'
374
376
  | 'paypal_express_checkout'
375
- | 'adyen'
376
377
  | 'orbital'
377
378
  | 'moneris_us'
378
379
  | 'moneris'
@@ -1552,6 +1552,7 @@ declare module 'chargebee' {
1552
1552
  tax9_amount?: number;
1553
1553
  tax10_name?: string;
1554
1554
  tax10_amount?: number;
1555
+ created_at?: number;
1555
1556
  }
1556
1557
  export interface TransactionsApplyPaymentsInputParam {
1557
1558
  id?: string;
@@ -41,6 +41,7 @@ declare module 'chargebee' {
41
41
  invoice_info?: InvoiceInfoCreateInputParam;
42
42
  payment_schedule?: PaymentScheduleCreateInputParam;
43
43
  statement_descriptor?: StatementDescriptorCreateInputParam;
44
+ payment_intent?: PaymentIntentCreateInputParam;
44
45
  purchase_items?: PurchaseItemsCreateInputParam[];
45
46
  item_tiers?: ItemTiersCreateInputParam[];
46
47
  shipping_addresses?: ShippingAddressesCreateInputParam[];
@@ -71,6 +72,38 @@ declare module 'chargebee' {
71
72
  po_number?: string;
72
73
  notes?: string;
73
74
  }
75
+ export interface PaymentIntentCreateInputParam {
76
+ id?: string;
77
+ gateway_account_id?: string;
78
+ gw_token?: string;
79
+ payment_method_type?:
80
+ | 'card'
81
+ | 'ideal'
82
+ | 'sofort'
83
+ | 'bancontact'
84
+ | 'google_pay'
85
+ | 'dotpay'
86
+ | 'giropay'
87
+ | 'apple_pay'
88
+ | 'upi'
89
+ | 'netbanking_emandates'
90
+ | 'paypal_express_checkout'
91
+ | 'direct_debit'
92
+ | 'boleto'
93
+ | 'venmo'
94
+ | 'amazon_payments'
95
+ | 'pay_to'
96
+ | 'faster_payments'
97
+ | 'sepa_instant_transfer'
98
+ | 'klarna_pay_now'
99
+ | 'online_banking_poland';
100
+ reference_id?: string;
101
+ /**
102
+ * @deprecated Please refer API docs to use other attributes
103
+ */
104
+ gw_payment_method_id?: string;
105
+ additional_information?: any;
106
+ }
74
107
 
75
108
  export interface SubscriptionInfoCreateInputParam {
76
109
  index: number;