chargebee-typescript
Advanced tools
Comparing version 2.5.0 to 2.6.0
@@ -140,2 +140,3 @@ "use strict"; | ||
if (util_1.Util.isArray(value)) { | ||
let isArrayHasValue; | ||
for (let arrIdx = 0; arrIdx < value.length; arrIdx++) { | ||
@@ -146,7 +147,8 @@ if (typeof value[arrIdx] === 'object' || util_1.Util.isArray(value[arrIdx])) { | ||
else { | ||
if (typeof value[arrIdx] !== 'undefined') { | ||
serialized.push(encodeURIComponent(key + "[" + arrIdx + "]") + "=" + encodeURIComponent(util_1.Util.trim(value[arrIdx]) !== '' ? value[arrIdx] : '')); | ||
} | ||
isArrayHasValue = true; | ||
} | ||
} | ||
if (isArrayHasValue) { | ||
serialized.push(encodeURIComponent(key) + "=[" + encodeURIComponent(value) + "]"); | ||
} | ||
} | ||
@@ -153,0 +155,0 @@ else if (key === "meta_data") { |
@@ -6,3 +6,3 @@ let environment = { | ||
timeout: 80000, | ||
clientVersion: 'v2.5.0', | ||
clientVersion: 'v2.6.0', | ||
port: 443, | ||
@@ -9,0 +9,0 @@ timemachineWaitInMillis: 3000, |
@@ -389,2 +389,5 @@ import { ListResult } from '../list_result'; | ||
interface bank_account_create_params { | ||
phone?: string; | ||
} | ||
interface bank_account_create_params { | ||
bank_name?: string; | ||
@@ -501,2 +504,5 @@ } | ||
interface payment_intent_create_params { | ||
payment_method_type?: string; | ||
} | ||
interface payment_intent_create_params { | ||
reference_id?: string; | ||
@@ -803,2 +809,5 @@ } | ||
interface payment_intent_collect_payment_params { | ||
payment_method_type?: string; | ||
} | ||
interface payment_intent_collect_payment_params { | ||
/** | ||
@@ -805,0 +814,0 @@ * @deprecated Please refer API docs to use other attributes |
@@ -1294,2 +1294,5 @@ import * as resources from "."; | ||
interface payment_intent_gift_subscription_params { | ||
payment_method_type?: string; | ||
} | ||
interface payment_intent_gift_subscription_params { | ||
reference_id?: string; | ||
@@ -1412,2 +1415,5 @@ } | ||
interface payment_intent_gift_subscription_for_items_params { | ||
payment_method_type?: string; | ||
} | ||
interface payment_intent_gift_subscription_for_items_params { | ||
reference_id?: string; | ||
@@ -1414,0 +1420,0 @@ } |
@@ -113,2 +113,5 @@ import { ListResult } from '../list_result'; | ||
interface payment_intent_create_params { | ||
payment_method_type?: string; | ||
} | ||
interface payment_intent_create_params { | ||
reference_id?: string; | ||
@@ -221,2 +224,5 @@ } | ||
interface payment_intent_create_for_items_params { | ||
payment_method_type?: string; | ||
} | ||
interface payment_intent_create_for_items_params { | ||
reference_id?: string; | ||
@@ -223,0 +229,0 @@ } |
@@ -63,2 +63,6 @@ import { ListResult } from '../list_result'; | ||
invoice_note?: string; | ||
/** | ||
* @deprecated Please refer API docs to use other attributes | ||
*/ | ||
coupon?: string; | ||
coupon_ids?: Array<string>; | ||
@@ -80,2 +84,6 @@ redirect_url?: string; | ||
invoice_note?: string; | ||
/** | ||
* @deprecated Please refer API docs to use other attributes | ||
*/ | ||
coupon?: string; | ||
coupon_ids?: Array<string>; | ||
@@ -94,2 +102,3 @@ currency_code?: string; | ||
charges?: Array<charges_checkout_one_time_for_items_params>; | ||
entity_identifiers?: Array<entity_identifiers_checkout_one_time_for_items_params>; | ||
} | ||
@@ -114,2 +123,3 @@ interface checkout_new_for_items_params { | ||
item_tiers?: Array<item_tiers_checkout_new_for_items_params>; | ||
entity_identifiers?: Array<entity_identifiers_checkout_new_for_items_params>; | ||
} | ||
@@ -161,2 +171,3 @@ interface checkout_existing_params { | ||
item_tiers?: Array<item_tiers_checkout_existing_for_items_params>; | ||
entity_identifiers?: Array<entity_identifiers_checkout_existing_for_items_params>; | ||
} | ||
@@ -689,2 +700,11 @@ interface update_card_params { | ||
interface customer_checkout_one_time_for_items_params { | ||
is_einvoice_enabled?: boolean; | ||
} | ||
interface customer_checkout_one_time_for_items_params { | ||
entity_identifier_scheme?: string; | ||
} | ||
interface customer_checkout_one_time_for_items_params { | ||
entity_identifier_standard?: string; | ||
} | ||
interface customer_checkout_one_time_for_items_params { | ||
consolidated_invoicing?: boolean; | ||
@@ -857,2 +877,17 @@ } | ||
} | ||
interface entity_identifiers_checkout_one_time_for_items_params { | ||
id?: string; | ||
} | ||
interface entity_identifiers_checkout_one_time_for_items_params { | ||
scheme?: string; | ||
} | ||
interface entity_identifiers_checkout_one_time_for_items_params { | ||
value?: string; | ||
} | ||
interface entity_identifiers_checkout_one_time_for_items_params { | ||
operation?: string; | ||
} | ||
interface entity_identifiers_checkout_one_time_for_items_params { | ||
standard?: string; | ||
} | ||
interface subscription_checkout_new_for_items_params { | ||
@@ -926,2 +961,11 @@ id?: string; | ||
} | ||
interface customer_checkout_new_for_items_params { | ||
is_einvoice_enabled?: boolean; | ||
} | ||
interface customer_checkout_new_for_items_params { | ||
entity_identifier_scheme?: string; | ||
} | ||
interface customer_checkout_new_for_items_params { | ||
entity_identifier_standard?: string; | ||
} | ||
interface billing_address_checkout_new_for_items_params { | ||
@@ -1083,2 +1127,17 @@ first_name?: string; | ||
} | ||
interface entity_identifiers_checkout_new_for_items_params { | ||
id?: string; | ||
} | ||
interface entity_identifiers_checkout_new_for_items_params { | ||
scheme?: string; | ||
} | ||
interface entity_identifiers_checkout_new_for_items_params { | ||
value?: string; | ||
} | ||
interface entity_identifiers_checkout_new_for_items_params { | ||
operation?: string; | ||
} | ||
interface entity_identifiers_checkout_new_for_items_params { | ||
standard?: string; | ||
} | ||
interface subscription_checkout_existing_params { | ||
@@ -1237,2 +1296,11 @@ id: string; | ||
} | ||
interface customer_checkout_existing_for_items_params { | ||
is_einvoice_enabled?: boolean; | ||
} | ||
interface customer_checkout_existing_for_items_params { | ||
entity_identifier_scheme?: string; | ||
} | ||
interface customer_checkout_existing_for_items_params { | ||
entity_identifier_standard?: string; | ||
} | ||
interface card_checkout_existing_for_items_params { | ||
@@ -1318,2 +1386,17 @@ /** | ||
} | ||
interface entity_identifiers_checkout_existing_for_items_params { | ||
id?: string; | ||
} | ||
interface entity_identifiers_checkout_existing_for_items_params { | ||
scheme?: string; | ||
} | ||
interface entity_identifiers_checkout_existing_for_items_params { | ||
value?: string; | ||
} | ||
interface entity_identifiers_checkout_existing_for_items_params { | ||
operation?: string; | ||
} | ||
interface entity_identifiers_checkout_existing_for_items_params { | ||
standard?: string; | ||
} | ||
interface customer_update_card_params { | ||
@@ -1320,0 +1403,0 @@ id: string; |
@@ -33,3 +33,5 @@ export { Subscription } from "./subscription"; | ||
export { AmazonPayment as PaymentSourceAmazonPayment } from "./payment_source"; | ||
export { Upi as PaymentSourceUpi } from "./payment_source"; | ||
export { Paypal as PaymentSourcePaypal } from "./payment_source"; | ||
export { Mandate as PaymentSourceMandate } from "./payment_source"; | ||
export { ThirdPartyPaymentMethod } from "./third_party_payment_method"; | ||
@@ -36,0 +38,0 @@ export { VirtualBankAccount } from "./virtual_bank_account"; |
@@ -69,3 +69,7 @@ "use strict"; | ||
var payment_source_5 = require("./payment_source"); | ||
Object.defineProperty(exports, "PaymentSourcePaypal", { enumerable: true, get: function () { return payment_source_5.Paypal; } }); | ||
Object.defineProperty(exports, "PaymentSourceUpi", { enumerable: true, get: function () { return payment_source_5.Upi; } }); | ||
var payment_source_6 = require("./payment_source"); | ||
Object.defineProperty(exports, "PaymentSourcePaypal", { enumerable: true, get: function () { return payment_source_6.Paypal; } }); | ||
var payment_source_7 = require("./payment_source"); | ||
Object.defineProperty(exports, "PaymentSourceMandate", { enumerable: true, get: function () { return payment_source_7.Mandate; } }); | ||
var third_party_payment_method_1 = require("./third_party_payment_method"); | ||
@@ -72,0 +76,0 @@ Object.defineProperty(exports, "ThirdPartyPaymentMethod", { enumerable: true, get: function () { return third_party_payment_method_1.ThirdPartyPaymentMethod; } }); |
@@ -588,2 +588,5 @@ import { ListResult } from '../list_result'; | ||
interface bank_account_create_params { | ||
phone?: string; | ||
} | ||
interface bank_account_create_params { | ||
bank_name?: string; | ||
@@ -700,2 +703,5 @@ } | ||
interface payment_intent_create_params { | ||
payment_method_type?: string; | ||
} | ||
interface payment_intent_create_params { | ||
reference_id?: string; | ||
@@ -854,2 +860,5 @@ } | ||
interface bank_account_create_for_charge_items_and_charges_params { | ||
phone?: string; | ||
} | ||
interface bank_account_create_for_charge_items_and_charges_params { | ||
bank_name?: string; | ||
@@ -966,2 +975,5 @@ } | ||
interface payment_intent_create_for_charge_items_and_charges_params { | ||
payment_method_type?: string; | ||
} | ||
interface payment_intent_create_for_charge_items_and_charges_params { | ||
reference_id?: string; | ||
@@ -1061,2 +1073,4 @@ } | ||
} | ||
interface charges_create_for_charge_items_and_charges_params { | ||
} | ||
interface notes_to_remove_create_for_charge_items_and_charges_params { | ||
@@ -1068,4 +1082,2 @@ entity_type?: string; | ||
} | ||
interface discounts_create_for_charge_items_and_charges_params { | ||
} | ||
interface item_price_create_for_charge_item_params { | ||
@@ -1072,0 +1084,0 @@ item_price_id: string; |
@@ -21,3 +21,5 @@ import { ListResult } from '../list_result'; | ||
amazon_payment?: AmazonPayment; | ||
upi?: Upi; | ||
paypal?: Paypal; | ||
mandates?: Array<Mandate>; | ||
deleted: boolean; | ||
@@ -74,2 +76,5 @@ static create_using_temp_token(params?: _payment_source.create_using_temp_token_params): RequestWrapper; | ||
} | ||
export declare class Upi extends Model { | ||
vpa?: string; | ||
} | ||
export declare class Paypal extends Model { | ||
@@ -79,2 +84,7 @@ email?: string; | ||
} | ||
export declare class Mandate extends Model { | ||
id: string; | ||
subscription_id: string; | ||
created_at: number; | ||
} | ||
export declare namespace _payment_source { | ||
@@ -135,2 +145,3 @@ interface create_using_temp_token_params { | ||
offset?: string; | ||
subscription_id?: string; | ||
customer_id?: filter._string; | ||
@@ -162,2 +173,5 @@ type?: filter._enum; | ||
interface payment_intent_create_using_payment_intent_params { | ||
payment_method_type?: string; | ||
} | ||
interface payment_intent_create_using_payment_intent_params { | ||
reference_id?: string; | ||
@@ -241,2 +255,5 @@ } | ||
interface bank_account_create_bank_account_params { | ||
phone?: string; | ||
} | ||
interface bank_account_create_bank_account_params { | ||
bank_name?: string; | ||
@@ -243,0 +260,0 @@ } |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Paypal = exports.AmazonPayment = exports.BankAccount = exports.Card = exports.PaymentSource = void 0; | ||
exports.Mandate = exports.Paypal = exports.Upi = exports.AmazonPayment = exports.BankAccount = exports.Card = exports.PaymentSource = void 0; | ||
const request_wrapper_1 = require("../request_wrapper"); | ||
@@ -171,4 +171,10 @@ const model_1 = require("./model"); | ||
exports.AmazonPayment = AmazonPayment; | ||
class Upi extends model_1.Model { | ||
} // ~Upi | ||
exports.Upi = Upi; | ||
class Paypal extends model_1.Model { | ||
} // ~Paypal | ||
exports.Paypal = Paypal; | ||
class Mandate extends model_1.Model { | ||
} // ~Mandate | ||
exports.Mandate = Mandate; |
@@ -54,3 +54,3 @@ "use strict"; | ||
get payment_source() { | ||
let _payment_source = this.get('payment_source', 'PaymentSource', { 'card': 'PaymentSourceCard', 'bank_account': 'PaymentSourceBankAccount', 'amazon_payment': 'PaymentSourceAmazonPayment', 'paypal': 'PaymentSourcePaypal' }); | ||
let _payment_source = this.get('payment_source', 'PaymentSource', { 'card': 'PaymentSourceCard', 'bank_account': 'PaymentSourceBankAccount', 'amazon_payment': 'PaymentSourceAmazonPayment', 'upi': 'PaymentSourceUpi', 'paypal': 'PaymentSourcePaypal', 'mandates': 'PaymentSourceMandate' }); | ||
return _payment_source; | ||
@@ -57,0 +57,0 @@ } |
{ | ||
"name": "chargebee-typescript", | ||
"version": "2.5.0", | ||
"version": "2.6.0", | ||
"description": "A library in typescript for integrating with Chargebee.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
812108
124
21313