chargebee-typescript
Advanced tools
Comparing version 2.30.0 to 2.31.0
@@ -48,2 +48,3 @@ import * as resources from "./resources"; | ||
export { _item } from "./resources/item"; | ||
export { _attribute } from "./resources/attribute"; | ||
export { _item_price } from "./resources/item_price"; | ||
@@ -55,2 +56,3 @@ export { _attached_item } from "./resources/attached_item"; | ||
export { _impacted_item } from "./resources/impacted_item"; | ||
export { _impacted_item_price } from "./resources/impacted_item_price"; | ||
export { _subscription_entitlement } from "./resources/subscription_entitlement"; | ||
@@ -64,2 +66,4 @@ export { _item_entitlement } from "./resources/item_entitlement"; | ||
export { _payment_voucher } from "./resources/payment_voucher"; | ||
export { _installment_config } from "./resources/installment_config"; | ||
export { _installment } from "./resources/installment"; | ||
interface Conf { | ||
@@ -120,2 +124,3 @@ api_key: string; | ||
get item(): typeof resources.Item; | ||
get attribute(): typeof resources.Attribute; | ||
get item_price(): typeof resources.ItemPrice; | ||
@@ -127,2 +132,3 @@ get attached_item(): typeof resources.AttachedItem; | ||
get impacted_item(): typeof resources.ImpactedItem; | ||
get impacted_item_price(): typeof resources.ImpactedItemPrice; | ||
get subscription_entitlement(): typeof resources.SubscriptionEntitlement; | ||
@@ -136,2 +142,4 @@ get item_entitlement(): typeof resources.ItemEntitlement; | ||
get payment_voucher(): typeof resources.PaymentVoucher; | ||
get installment_config(): typeof resources.InstallmentConfig; | ||
get installment(): typeof resources.Installment; | ||
} |
@@ -151,2 +151,5 @@ "use strict"; | ||
} | ||
get attribute() { | ||
return resources.Attribute; | ||
} | ||
get item_price() { | ||
@@ -170,2 +173,5 @@ return resources.ItemPrice; | ||
} | ||
get impacted_item_price() { | ||
return resources.ImpactedItemPrice; | ||
} | ||
get subscription_entitlement() { | ||
@@ -195,2 +201,8 @@ return resources.SubscriptionEntitlement; | ||
} | ||
get installment_config() { | ||
return resources.InstallmentConfig; | ||
} | ||
get installment() { | ||
return resources.Installment; | ||
} | ||
} | ||
@@ -197,0 +209,0 @@ exports.ChargeBee = ChargeBee; |
@@ -6,3 +6,3 @@ let environment = { | ||
timeout: 80000, | ||
clientVersion: 'v2.30.0', | ||
clientVersion: 'v2.31.0', | ||
port: 443, | ||
@@ -9,0 +9,0 @@ timemachineWaitInMillis: 3000, |
@@ -176,2 +176,3 @@ export { Subscription } from "./subscription"; | ||
export { ApplicableItem as ItemApplicableItem } from "./item"; | ||
export { Attribute } from "./attribute"; | ||
export { ItemPrice } from "./item_price"; | ||
@@ -191,2 +192,4 @@ export { Tier as ItemPriceTier } from "./item_price"; | ||
export { Download as ImpactedItemDownload } from "./impacted_item"; | ||
export { ImpactedItemPrice } from "./impacted_item_price"; | ||
export { Download as ImpactedItemPriceDownload } from "./impacted_item_price"; | ||
export { SubscriptionEntitlement } from "./subscription_entitlement"; | ||
@@ -202,1 +205,4 @@ export { Component as SubscriptionEntitlementComponent } from "./subscription_entitlement"; | ||
export { Entitlement } from "./entitlement"; | ||
export { InstallmentConfig } from "./installment_config"; | ||
export { Installment as InstallmentConfigInstallment } from "./installment_config"; | ||
export { Installment } from "./installment"; |
@@ -354,2 +354,4 @@ "use strict"; | ||
Object.defineProperty(exports, "ItemApplicableItem", { enumerable: true, get: function () { return item_2.ApplicableItem; } }); | ||
var attribute_1 = require("./attribute"); | ||
Object.defineProperty(exports, "Attribute", { enumerable: true, get: function () { return attribute_1.Attribute; } }); | ||
var item_price_1 = require("./item_price"); | ||
@@ -383,2 +385,6 @@ Object.defineProperty(exports, "ItemPrice", { enumerable: true, get: function () { return item_price_1.ItemPrice; } }); | ||
Object.defineProperty(exports, "ImpactedItemDownload", { enumerable: true, get: function () { return impacted_item_2.Download; } }); | ||
var impacted_item_price_1 = require("./impacted_item_price"); | ||
Object.defineProperty(exports, "ImpactedItemPrice", { enumerable: true, get: function () { return impacted_item_price_1.ImpactedItemPrice; } }); | ||
var impacted_item_price_2 = require("./impacted_item_price"); | ||
Object.defineProperty(exports, "ImpactedItemPriceDownload", { enumerable: true, get: function () { return impacted_item_price_2.Download; } }); | ||
var subscription_entitlement_1 = require("./subscription_entitlement"); | ||
@@ -404,1 +410,7 @@ Object.defineProperty(exports, "SubscriptionEntitlement", { enumerable: true, get: function () { return subscription_entitlement_1.SubscriptionEntitlement; } }); | ||
Object.defineProperty(exports, "Entitlement", { enumerable: true, get: function () { return entitlement_1.Entitlement; } }); | ||
var installment_config_1 = require("./installment_config"); | ||
Object.defineProperty(exports, "InstallmentConfig", { enumerable: true, get: function () { return installment_config_1.InstallmentConfig; } }); | ||
var installment_config_2 = require("./installment_config"); | ||
Object.defineProperty(exports, "InstallmentConfigInstallment", { enumerable: true, get: function () { return installment_config_2.Installment; } }); | ||
var installment_1 = require("./installment"); | ||
Object.defineProperty(exports, "Installment", { enumerable: true, get: function () { return installment_1.Installment; } }); |
@@ -104,2 +104,3 @@ import { ListResult } from '../list_result'; | ||
static update_details(invoice_id: string, params?: _invoice.update_details_params): RequestWrapper; | ||
static installments(invoice_id: string, params?: _invoice.installments_params): RequestWrapper; | ||
static resend_einvoice(invoice_id: string, params?: any): RequestWrapper; | ||
@@ -580,2 +581,6 @@ static send_einvoice(invoice_id: string, params?: any): RequestWrapper; | ||
} | ||
interface installments_params { | ||
config_id: string; | ||
amount?: number; | ||
} | ||
interface shipping_address_create_params { | ||
@@ -582,0 +587,0 @@ first_name?: string; |
@@ -350,2 +350,12 @@ "use strict"; | ||
} | ||
static installments(invoice_id, params) { | ||
return new request_wrapper_1.RequestWrapper([invoice_id, params], { | ||
'methodName': 'installments', | ||
'httpMethod': 'POST', | ||
'urlPrefix': '/invoices', | ||
'urlSuffix': '/installments', | ||
'hasIdInUrl': true, | ||
'isListReq': false, | ||
}, chargebee_1.ChargeBee._env); | ||
} | ||
static resend_einvoice(invoice_id, params) { | ||
@@ -352,0 +362,0 @@ return new request_wrapper_1.RequestWrapper([invoice_id, params], { |
@@ -9,3 +9,2 @@ import { ListResult } from '../list_result'; | ||
item_family_id?: string; | ||
product_id?: string; | ||
item_id?: string; | ||
@@ -12,0 +11,0 @@ description?: string; |
@@ -16,3 +16,5 @@ import { RequestWrapper } from "../request_wrapper"; | ||
customer_id: string; | ||
payment_source_id?: string; | ||
invoice_info?: invoice_info_create_params; | ||
installment_info?: installment_info_create_params; | ||
purchase_items?: Array<purchase_items_create_params>; | ||
@@ -23,2 +25,3 @@ item_tiers?: Array<item_tiers_create_params>; | ||
subscription_info?: Array<subscription_info_create_params>; | ||
contract_terms?: Array<contract_terms_create_params>; | ||
} | ||
@@ -35,2 +38,3 @@ interface estimate_params { | ||
subscription_info?: Array<subscription_info_estimate_params>; | ||
contract_terms?: Array<contract_terms_estimate_params>; | ||
} | ||
@@ -43,2 +47,8 @@ interface invoice_info_create_params { | ||
} | ||
interface installment_info_create_params { | ||
config_id?: string; | ||
} | ||
interface installment_info_create_params { | ||
amount?: number; | ||
} | ||
interface purchase_items_create_params { | ||
@@ -153,2 +163,14 @@ index: number; | ||
interface subscription_info_create_params { | ||
contract_term_billing_cycle_on_renewal?: number; | ||
} | ||
interface contract_terms_create_params { | ||
index: number; | ||
} | ||
interface contract_terms_create_params { | ||
action_at_term_end?: string; | ||
} | ||
interface contract_terms_create_params { | ||
cancellation_cutoff_period?: number; | ||
} | ||
interface subscription_info_create_params { | ||
meta_data?: any; | ||
@@ -312,2 +334,14 @@ } | ||
} | ||
interface subscription_info_estimate_params { | ||
contract_term_billing_cycle_on_renewal?: number; | ||
} | ||
interface contract_terms_estimate_params { | ||
index: number; | ||
} | ||
interface contract_terms_estimate_params { | ||
action_at_term_end?: string; | ||
} | ||
interface contract_terms_estimate_params { | ||
cancellation_cutoff_period?: number; | ||
} | ||
} |
@@ -51,2 +51,3 @@ import * as resources from "./resources"; | ||
get item(): resources.Item; | ||
get attribute(): resources.Attribute; | ||
get item_price(): resources.ItemPrice; | ||
@@ -58,2 +59,3 @@ get attached_item(): resources.AttachedItem; | ||
get impacted_item(): resources.ImpactedItem; | ||
get impacted_item_price(): resources.ImpactedItemPrice; | ||
get subscription_entitlement(): resources.SubscriptionEntitlement; | ||
@@ -67,2 +69,4 @@ get item_entitlement(): resources.ItemEntitlement; | ||
get payment_voucher(): resources.PaymentVoucher; | ||
get installment_config(): resources.InstallmentConfig; | ||
get installment(): resources.Installment; | ||
get unbilled_charges(): resources.UnbilledCharge[]; | ||
@@ -69,0 +73,0 @@ get credit_notes(): resources.CreditNote[]; |
@@ -220,2 +220,6 @@ "use strict"; | ||
} | ||
get attribute() { | ||
let _attribute = this.get('attribute', 'Attribute'); | ||
return _attribute; | ||
} | ||
get item_price() { | ||
@@ -245,2 +249,6 @@ let _item_price = this.get('item_price', 'ItemPrice', { 'tiers': 'ItemPriceTier', 'tax_detail': 'ItemPriceTaxDetail', 'accounting_detail': 'ItemPriceAccountingDetail' }); | ||
} | ||
get impacted_item_price() { | ||
let _impacted_item_price = this.get('impacted_item_price', 'ImpactedItemPrice', { 'download': 'ImpactedItemPriceDownload' }); | ||
return _impacted_item_price; | ||
} | ||
get subscription_entitlement() { | ||
@@ -278,2 +286,10 @@ let _subscription_entitlement = this.get('subscription_entitlement', 'SubscriptionEntitlement', { 'component': 'SubscriptionEntitlementComponent' }); | ||
} | ||
get installment_config() { | ||
let _installment_config = this.get('installment_config', 'InstallmentConfig', { 'installments': 'InstallmentConfigInstallment' }); | ||
return _installment_config; | ||
} | ||
get installment() { | ||
let _installment = this.get('installment', 'Installment'); | ||
return _installment; | ||
} | ||
get unbilled_charges() { | ||
@@ -280,0 +296,0 @@ let _unbilled_charges = this.get_list('unbilled_charges', 'UnbilledCharge', { 'tiers': 'UnbilledChargeTier' }); |
{ | ||
"name": "chargebee-typescript", | ||
"version": "2.30.0", | ||
"version": "2.31.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
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
974883
164
24890