chargebee-typescript
Advanced tools
Comparing version 2.40.1 to 2.41.0
@@ -6,3 +6,3 @@ let environment = { | ||
timeout: 80000, | ||
clientVersion: 'v2.40.1', | ||
clientVersion: 'v2.41.0', | ||
port: 443, | ||
@@ -9,0 +9,0 @@ timemachineWaitInMillis: 3000, |
@@ -200,3 +200,13 @@ "use strict"; | ||
} | ||
static payment_schedules(params) { | ||
return new request_wrapper_1.RequestWrapper([params], { | ||
'methodName': 'payment_schedules', | ||
'httpMethod': 'POST', | ||
'urlPrefix': '/estimates', | ||
'urlSuffix': '/payment_schedules', | ||
'hasIdInUrl': false, | ||
'isListReq': false, | ||
}, chargebee_1.ChargeBee._env); | ||
} | ||
} // ~Estimate | ||
exports.Estimate = Estimate; |
@@ -122,2 +122,4 @@ export { Subscription } from "./subscription"; | ||
export { LineItemDiscount as InvoiceEstimateLineItemDiscount } from "./invoice_estimate"; | ||
export { PaymentScheduleEstimate } from "./payment_schedule_estimate"; | ||
export { ScheduleEntry as PaymentScheduleEstimateScheduleEntry } from "./payment_schedule_estimate"; | ||
export { SubscriptionEstimate } from "./subscription_estimate"; | ||
@@ -124,0 +126,0 @@ export { ShippingAddress as SubscriptionEstimateShippingAddress } from "./subscription_estimate"; |
@@ -246,2 +246,6 @@ "use strict"; | ||
Object.defineProperty(exports, "InvoiceEstimateLineItemDiscount", { enumerable: true, get: function () { return invoice_estimate_7.LineItemDiscount; } }); | ||
var payment_schedule_estimate_1 = require("./payment_schedule_estimate"); | ||
Object.defineProperty(exports, "PaymentScheduleEstimate", { enumerable: true, get: function () { return payment_schedule_estimate_1.PaymentScheduleEstimate; } }); | ||
var payment_schedule_estimate_2 = require("./payment_schedule_estimate"); | ||
Object.defineProperty(exports, "PaymentScheduleEstimateScheduleEntry", { enumerable: true, get: function () { return payment_schedule_estimate_2.ScheduleEntry; } }); | ||
var subscription_estimate_1 = require("./subscription_estimate"); | ||
@@ -248,0 +252,0 @@ Object.defineProperty(exports, "SubscriptionEstimate", { enumerable: true, get: function () { return subscription_estimate_1.SubscriptionEstimate; } }); |
@@ -33,2 +33,3 @@ import { ListResult } from '../list_result'; | ||
created_at: number; | ||
usage_accumulation_reset_frequency?: string; | ||
archived_at?: number; | ||
@@ -102,2 +103,3 @@ invoice_notes?: string; | ||
show_description_in_quotes?: boolean; | ||
usage_accumulation_reset_frequency?: string; | ||
pricing_model?: string; | ||
@@ -126,2 +128,3 @@ price?: number; | ||
external_name?: string; | ||
usage_accumulation_reset_frequency?: string; | ||
currency_code?: string; | ||
@@ -128,0 +131,0 @@ invoice_notes?: string; |
@@ -5,2 +5,3 @@ import { RequestWrapper } from "../request_wrapper"; | ||
id: string; | ||
name?: string; | ||
description?: string; | ||
@@ -7,0 +8,0 @@ number_of_schedules: number; |
@@ -20,2 +20,3 @@ import { RequestWrapper } from "../request_wrapper"; | ||
shipping_address?: shipping_address_create_for_new_subscription_params; | ||
discounts?: Array<discounts_create_for_new_subscription_params>; | ||
} | ||
@@ -26,2 +27,3 @@ interface create_for_existing_subscription_params { | ||
subscription?: subscription_create_for_existing_subscription_params; | ||
discounts?: Array<discounts_create_for_existing_subscription_params>; | ||
} | ||
@@ -139,2 +141,29 @@ interface pricing_page_create_for_new_subscription_params { | ||
} | ||
interface discounts_create_for_new_subscription_params { | ||
apply_on: string; | ||
} | ||
interface discounts_create_for_new_subscription_params { | ||
duration_type: string; | ||
} | ||
interface discounts_create_for_new_subscription_params { | ||
percentage?: number; | ||
} | ||
interface discounts_create_for_new_subscription_params { | ||
amount?: number; | ||
} | ||
interface discounts_create_for_new_subscription_params { | ||
period?: number; | ||
} | ||
interface discounts_create_for_new_subscription_params { | ||
period_unit?: string; | ||
} | ||
interface discounts_create_for_new_subscription_params { | ||
included_in_mrr?: boolean; | ||
} | ||
interface discounts_create_for_new_subscription_params { | ||
item_price_id?: string; | ||
} | ||
interface discounts_create_for_new_subscription_params { | ||
label?: string; | ||
} | ||
interface pricing_page_create_for_existing_subscription_params { | ||
@@ -146,2 +175,29 @@ id: string; | ||
} | ||
interface discounts_create_for_existing_subscription_params { | ||
apply_on: string; | ||
} | ||
interface discounts_create_for_existing_subscription_params { | ||
duration_type: string; | ||
} | ||
interface discounts_create_for_existing_subscription_params { | ||
percentage?: number; | ||
} | ||
interface discounts_create_for_existing_subscription_params { | ||
amount?: number; | ||
} | ||
interface discounts_create_for_existing_subscription_params { | ||
period?: number; | ||
} | ||
interface discounts_create_for_existing_subscription_params { | ||
period_unit?: string; | ||
} | ||
interface discounts_create_for_existing_subscription_params { | ||
included_in_mrr?: boolean; | ||
} | ||
interface discounts_create_for_existing_subscription_params { | ||
item_price_id?: string; | ||
} | ||
interface discounts_create_for_existing_subscription_params { | ||
label?: string; | ||
} | ||
} |
@@ -74,2 +74,3 @@ import { Model } from "./model"; | ||
proration_type?: string; | ||
usage_accumulation_reset_frequency?: string; | ||
} | ||
@@ -76,0 +77,0 @@ export declare class ItemTier extends Model { |
@@ -126,3 +126,3 @@ "use strict"; | ||
get estimate() { | ||
let _estimate = this.get('estimate', 'Estimate', {}, { 'subscription_estimate': 'SubscriptionEstimate', 'subscription_estimates': 'SubscriptionEstimate', 'invoice_estimate': 'InvoiceEstimate', 'invoice_estimates': 'InvoiceEstimate', 'next_invoice_estimate': 'InvoiceEstimate', 'credit_note_estimates': 'CreditNoteEstimate', 'unbilled_charge_estimates': 'UnbilledCharge' }); | ||
let _estimate = this.get('estimate', 'Estimate', {}, { 'subscription_estimate': 'SubscriptionEstimate', 'subscription_estimates': 'SubscriptionEstimate', 'invoice_estimate': 'InvoiceEstimate', 'invoice_estimates': 'InvoiceEstimate', 'payment_schedule_estimates': 'PaymentScheduleEstimate', 'next_invoice_estimate': 'InvoiceEstimate', 'credit_note_estimates': 'CreditNoteEstimate', 'unbilled_charge_estimates': 'UnbilledCharge' }); | ||
_estimate.init_dependant(this.response['estimate'], 'subscription_estimate', { 'shipping_address': 'SubscriptionEstimateShippingAddress', 'contract_term': 'SubscriptionEstimateContractTerm' }); | ||
@@ -133,2 +133,3 @@ _estimate.init_dependant_extended(this.response['estimate'], 'invoice_estimate', { 'line_items': 'InvoiceEstimateLineItem', 'discounts': 'InvoiceEstimateDiscount', 'taxes': 'InvoiceEstimateTax', 'line_item_taxes': 'InvoiceEstimateLineItemTax', 'line_item_tiers': 'InvoiceEstimateLineItemTier', 'line_item_discounts': 'InvoiceEstimateLineItemDiscount' }); | ||
_estimate.init_dependant_list(this.response['estimate'], 'invoice_estimates', { 'line_items': 'InvoiceEstimateLineItem', 'discounts': 'InvoiceEstimateDiscount', 'taxes': 'InvoiceEstimateTax', 'line_item_taxes': 'InvoiceEstimateLineItemTax', 'line_item_tiers': 'InvoiceEstimateLineItemTier', 'line_item_discounts': 'InvoiceEstimateLineItemDiscount' }); | ||
_estimate.init_dependant_list(this.response['estimate'], 'payment_schedule_estimates', { 'schedule_entries': 'PaymentScheduleEstimateScheduleEntry' }); | ||
_estimate.init_dependant_list(this.response['estimate'], 'credit_note_estimates', { 'line_items': 'CreditNoteEstimateLineItem', 'discounts': 'CreditNoteEstimateDiscount', 'taxes': 'CreditNoteEstimateTax', 'line_item_taxes': 'CreditNoteEstimateLineItemTax', 'line_item_discounts': 'CreditNoteEstimateLineItemDiscount', 'line_item_tiers': 'CreditNoteEstimateLineItemTier' }); | ||
@@ -135,0 +136,0 @@ _estimate.init_dependant_list(this.response['estimate'], 'unbilled_charge_estimates', { 'tiers': 'UnbilledChargeTier' }); |
{ | ||
"name": "chargebee-typescript", | ||
"version": "2.40.1", | ||
"version": "2.41.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
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
1052712
182
26559