chargebee 2.9.0 → 2.10.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 +39 -0
- package/lib/chargebee.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,42 @@
|
|
|
1
|
+
### v2.10.0 (2022-03-08)
|
|
2
|
+
* * *
|
|
3
|
+
|
|
4
|
+
### Fixes:
|
|
5
|
+
* Fixed metadata for Product Catalog V2 resources, item and item_price.
|
|
6
|
+
|
|
7
|
+
#### New attributes:
|
|
8
|
+
* upi, mandates and their subresources have been added to the payment_source resource.
|
|
9
|
+
|
|
10
|
+
#### New Input parameters:
|
|
11
|
+
* bank_account[phone] have been added to customers#create_bank_account
|
|
12
|
+
* payment_intent[payment_method_type] have been added to customers#create_payment_intent, customers#collect_payment_intent
|
|
13
|
+
* payment_intent[payment_method_type] have been added to estimate#gift_subscription and estimate#gift_subscription_for_items.
|
|
14
|
+
* payment_intent[payment_method_type] have been added to gift#create_payment_intent and gift#create_gift_for_items_payment_intent.
|
|
15
|
+
* customer[is_einvoice_enabled], customer[entity_identifier_scheme], customer[entity_identifier_standard], entity_identifiers[id], entity_identifiers[scheme], entity_identifiers[value], entity_identifiers[operation], entity_identifiers[standard] have been added to hosted_page#checkout_onetime_for_items, hosted_page#checkout_new_for_items and hosted_page#checkout_existing_for_items.
|
|
16
|
+
* bank_account[phone] have been added to invoice#create_bank_account, invoice#create_bank_account_for_chargeitems_and_charges
|
|
17
|
+
* payment_intent[payment_method_type] have been added to invoice#create_payment_intent, invoice#create_payment_intent_for_chargeitems_and_charges
|
|
18
|
+
* bank_account[phone] have been added to payment_source#create_bank_account
|
|
19
|
+
* payment_intent[payment_method_type] have been added to payment_source#create_using_payment_intent
|
|
20
|
+
* subscription_id have been added to payment_source#list_payment_source
|
|
21
|
+
* bank_account[phone] have been added to subscription#create_bank_account
|
|
22
|
+
* payment_intent[payment_method_type] have been added to subscription#create_payment_intent, subscription#create_payment_intent_for_customer, subscription#create_payment_intent_with_items, subscription#update_payment_intent, subscription#update_payment_intent_for_items, subscription#reactivate_payment_intent, subscription#resume_payment_intent
|
|
23
|
+
* activated_at have been added to subscription#import_subscription, subscription#import_subscription_for_customer, subscription#import_subscription_for_items
|
|
24
|
+
|
|
25
|
+
#### New Enum values:
|
|
26
|
+
* upi, netbanking_emandates enum has been added in customer_payment_method_type subresource of customer resource
|
|
27
|
+
* current enum has been added in account_type.
|
|
28
|
+
* quickbooks, razorpay enum has been added in gateway.
|
|
29
|
+
* upi, netbanking_emandates enum has been added in payment_method,payment_method_type, type
|
|
30
|
+
* upi, netbanking_emandates, apple_pay enum has been added in payment_method_type subresource of payment_intent resource
|
|
31
|
+
* current enum has been added in bank_account_type subresource of payment_source.
|
|
32
|
+
|
|
33
|
+
#### Deprecated attributes:
|
|
34
|
+
* coupon attribute have been added and deprecated in hosted_page resource.
|
|
35
|
+
|
|
36
|
+
#### Deprecated enums:
|
|
37
|
+
* NetdPaymentDueReminder have been deprecated in event_type.
|
|
38
|
+
|
|
39
|
+
|
|
1
40
|
### v2.9.0 (2022-01-21)
|
|
2
41
|
* * *
|
|
3
42
|
|
package/lib/chargebee.js
CHANGED
|
@@ -8,7 +8,7 @@ ChargeBee._env = {
|
|
|
8
8
|
hostSuffix: '.chargebee.com',
|
|
9
9
|
apiPath: '/api/v2',
|
|
10
10
|
timeout: 80000,
|
|
11
|
-
clientVersion: 'v2.
|
|
11
|
+
clientVersion: 'v2.10.0',
|
|
12
12
|
port: 443,
|
|
13
13
|
timemachineWaitInMillis: 3000,
|
|
14
14
|
exportWaitInMillis: 3000
|
|
@@ -328,7 +328,7 @@ ChargeBee._core = (function() {
|
|
|
328
328
|
}
|
|
329
329
|
}
|
|
330
330
|
}
|
|
331
|
-
} else if(
|
|
331
|
+
} else if(["meta_data", "metadata"].indexOf(key) !== -1) {
|
|
332
332
|
var attrVal="";
|
|
333
333
|
if(value !== null) {
|
|
334
334
|
attrVal = encodeURIComponent(Object.prototype.toString.call(value) === "[object String]" ? ChargeBee._util.trim(value) : JSON.stringify(value));
|