chargebee-typescript
Advanced tools
Comparing version 2.8.0 to 2.9.0
@@ -48,2 +48,6 @@ import * as resources from "./resources"; | ||
export { _differential_price } from "./resources/differential_price"; | ||
export { _feature } from "./resources/feature"; | ||
export { _subscription_entitlement } from "./resources/subscription_entitlement"; | ||
export { _item_entitlement } from "./resources/item_entitlement"; | ||
export { _entitlement_override } from "./resources/entitlement_override"; | ||
interface Conf { | ||
@@ -104,2 +108,6 @@ api_key: string; | ||
get differential_price(): typeof resources.DifferentialPrice; | ||
get feature(): typeof resources.Feature; | ||
get subscription_entitlement(): typeof resources.SubscriptionEntitlement; | ||
get item_entitlement(): typeof resources.ItemEntitlement; | ||
get entitlement_override(): typeof resources.EntitlementOverride; | ||
} |
@@ -151,2 +151,14 @@ "use strict"; | ||
} | ||
get feature() { | ||
return resources.Feature; | ||
} | ||
get subscription_entitlement() { | ||
return resources.SubscriptionEntitlement; | ||
} | ||
get item_entitlement() { | ||
return resources.ItemEntitlement; | ||
} | ||
get entitlement_override() { | ||
return resources.EntitlementOverride; | ||
} | ||
} | ||
@@ -153,0 +165,0 @@ exports.ChargeBee = ChargeBee; |
@@ -6,3 +6,3 @@ let environment = { | ||
timeout: 80000, | ||
clientVersion: 'v2.8.0', | ||
clientVersion: 'v2.9.0', | ||
port: 443, | ||
@@ -9,0 +9,0 @@ timemachineWaitInMillis: 3000, |
@@ -55,2 +55,3 @@ import { ListResult } from '../list_result'; | ||
static delete(credit_note_id: string, params?: _credit_note.delete_params): RequestWrapper; | ||
static resend_einvoice(credit_note_id: string, params?: any): RequestWrapper; | ||
} | ||
@@ -196,2 +197,3 @@ export declare class Einvoice extends Model { | ||
"sort_by[desc]"?: string; | ||
einvoice?: einvoice_credit_note_list_params; | ||
} | ||
@@ -240,2 +242,5 @@ interface delete_params { | ||
} | ||
interface einvoice_credit_note_list_params { | ||
status?: filter._enum; | ||
} | ||
} |
@@ -110,2 +110,12 @@ "use strict"; | ||
} | ||
static resend_einvoice(credit_note_id, params) { | ||
return new request_wrapper_1.RequestWrapper([credit_note_id, params], { | ||
'methodName': 'resend_einvoice', | ||
'httpMethod': 'POST', | ||
'urlPrefix': '/credit_notes', | ||
'urlSuffix': '/resend_einvoice', | ||
'hasIdInUrl': true, | ||
'isListReq': false, | ||
}, chargebee_1.ChargeBee._env); | ||
} | ||
} // ~CreditNote | ||
@@ -112,0 +122,0 @@ exports.CreditNote = CreditNote; |
@@ -172,1 +172,10 @@ export { Subscription } from "./subscription"; | ||
export { ParentPeriod as DifferentialPriceParentPeriod } from "./differential_price"; | ||
export { Feature } from "./feature"; | ||
export { Level as FeatureLevel } from "./feature"; | ||
export { SubscriptionEntitlement } from "./subscription_entitlement"; | ||
export { Component as SubscriptionEntitlementComponent } from "./subscription_entitlement"; | ||
export { EmbeddedResource as SubscriptionEntitlementEmbeddedResource } from "./subscription_entitlement"; | ||
export { ItemEntitlement } from "./item_entitlement"; | ||
export { EmbeddedResource as ItemEntitlementEmbeddedResource } from "./item_entitlement"; | ||
export { EntitlementOverride } from "./entitlement_override"; | ||
export { EmbeddedResource as EntitlementOverrideEmbeddedResource } from "./entitlement_override"; |
@@ -346,1 +346,19 @@ "use strict"; | ||
Object.defineProperty(exports, "DifferentialPriceParentPeriod", { enumerable: true, get: function () { return differential_price_3.ParentPeriod; } }); | ||
var feature_1 = require("./feature"); | ||
Object.defineProperty(exports, "Feature", { enumerable: true, get: function () { return feature_1.Feature; } }); | ||
var feature_2 = require("./feature"); | ||
Object.defineProperty(exports, "FeatureLevel", { enumerable: true, get: function () { return feature_2.Level; } }); | ||
var subscription_entitlement_1 = require("./subscription_entitlement"); | ||
Object.defineProperty(exports, "SubscriptionEntitlement", { enumerable: true, get: function () { return subscription_entitlement_1.SubscriptionEntitlement; } }); | ||
var subscription_entitlement_2 = require("./subscription_entitlement"); | ||
Object.defineProperty(exports, "SubscriptionEntitlementComponent", { enumerable: true, get: function () { return subscription_entitlement_2.Component; } }); | ||
var subscription_entitlement_3 = require("./subscription_entitlement"); | ||
Object.defineProperty(exports, "SubscriptionEntitlementEmbeddedResource", { enumerable: true, get: function () { return subscription_entitlement_3.EmbeddedResource; } }); | ||
var item_entitlement_1 = require("./item_entitlement"); | ||
Object.defineProperty(exports, "ItemEntitlement", { enumerable: true, get: function () { return item_entitlement_1.ItemEntitlement; } }); | ||
var item_entitlement_2 = require("./item_entitlement"); | ||
Object.defineProperty(exports, "ItemEntitlementEmbeddedResource", { enumerable: true, get: function () { return item_entitlement_2.EmbeddedResource; } }); | ||
var entitlement_override_1 = require("./entitlement_override"); | ||
Object.defineProperty(exports, "EntitlementOverride", { enumerable: true, get: function () { return entitlement_override_1.EntitlementOverride; } }); | ||
var entitlement_override_2 = require("./entitlement_override"); | ||
Object.defineProperty(exports, "EntitlementOverrideEmbeddedResource", { enumerable: true, get: function () { return entitlement_override_2.EmbeddedResource; } }); |
@@ -74,2 +74,3 @@ import { ListResult } from '../list_result'; | ||
static apply_payments(invoice_id: string, params?: _invoice.apply_payments_params): RequestWrapper; | ||
static sync_usages(invoice_id: string, params?: any): RequestWrapper; | ||
static apply_credits(invoice_id: string, params?: _invoice.apply_credits_params): RequestWrapper; | ||
@@ -96,2 +97,3 @@ static list(params?: _invoice.invoice_list_params): RequestWrapper<ListResult>; | ||
static update_details(invoice_id: string, params?: _invoice.update_details_params): RequestWrapper; | ||
static resend_einvoice(invoice_id: string, params?: any): RequestWrapper; | ||
} | ||
@@ -432,2 +434,3 @@ export declare class LineItem extends Model { | ||
"sort_by[desc]"?: string; | ||
einvoice?: einvoice_invoice_list_params; | ||
} | ||
@@ -1403,2 +1406,5 @@ interface pdf_params { | ||
} | ||
interface einvoice_invoice_list_params { | ||
status?: filter._enum; | ||
} | ||
interface line_item_add_charge_params { | ||
@@ -1405,0 +1411,0 @@ date_from?: number; |
@@ -90,2 +90,12 @@ "use strict"; | ||
} | ||
static sync_usages(invoice_id, params) { | ||
return new request_wrapper_1.RequestWrapper([invoice_id, params], { | ||
'methodName': 'sync_usages', | ||
'httpMethod': 'POST', | ||
'urlPrefix': '/invoices', | ||
'urlSuffix': '/sync_usages', | ||
'hasIdInUrl': true, | ||
'isListReq': false, | ||
}, chargebee_1.ChargeBee._env); | ||
} | ||
static apply_credits(invoice_id, params) { | ||
@@ -301,2 +311,12 @@ return new request_wrapper_1.RequestWrapper([invoice_id, params], { | ||
} | ||
static resend_einvoice(invoice_id, params) { | ||
return new request_wrapper_1.RequestWrapper([invoice_id, params], { | ||
'methodName': 'resend_einvoice', | ||
'httpMethod': 'POST', | ||
'urlPrefix': '/invoices', | ||
'urlSuffix': '/resend_einvoice', | ||
'hasIdInUrl': true, | ||
'isListReq': false, | ||
}, chargebee_1.ChargeBee._env); | ||
} | ||
} // ~Invoice | ||
@@ -303,0 +323,0 @@ exports.Invoice = Invoice; |
@@ -50,2 +50,6 @@ import * as resources from "./resources"; | ||
get differential_price(): resources.DifferentialPrice; | ||
get feature(): resources.Feature; | ||
get subscription_entitlement(): resources.SubscriptionEntitlement; | ||
get item_entitlement(): resources.ItemEntitlement; | ||
get entitlement_override(): resources.EntitlementOverride; | ||
get unbilled_charges(): resources.UnbilledCharge[]; | ||
@@ -52,0 +56,0 @@ get credit_notes(): resources.CreditNote[]; |
@@ -215,2 +215,18 @@ "use strict"; | ||
} | ||
get feature() { | ||
let _feature = this.get('feature', 'Feature', { 'levels': 'FeatureLevel' }); | ||
return _feature; | ||
} | ||
get subscription_entitlement() { | ||
let _subscription_entitlement = this.get('subscription_entitlement', 'SubscriptionEntitlement', { 'component': 'SubscriptionEntitlementComponent', 'embedded_resource': 'SubscriptionEntitlementEmbeddedResource' }); | ||
return _subscription_entitlement; | ||
} | ||
get item_entitlement() { | ||
let _item_entitlement = this.get('item_entitlement', 'ItemEntitlement', { 'embedded_resource': 'ItemEntitlementEmbeddedResource' }); | ||
return _item_entitlement; | ||
} | ||
get entitlement_override() { | ||
let _entitlement_override = this.get('entitlement_override', 'EntitlementOverride', { 'embedded_resource': 'EntitlementOverrideEmbeddedResource' }); | ||
return _entitlement_override; | ||
} | ||
get unbilled_charges() { | ||
@@ -217,0 +233,0 @@ let _unbilled_charges = this.get_list('unbilled_charges', 'UnbilledCharge', { 'tiers': 'UnbilledChargeTier' }); |
{ | ||
"name": "chargebee-typescript", | ||
"version": "2.8.0", | ||
"version": "2.9.0", | ||
"description": "A library in typescript for integrating with Chargebee.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
131
22012
796185