Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

chargebee-typescript

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chargebee-typescript - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3

12

CHANGELOG.md

@@ -0,1 +1,13 @@

### v2.0.3 (2020-09-29)
* * *
* New attribute included_in_mrr has been added in addon and coupon resource
* New attribute offline_payment_method has been added in subscription and customer resource
* New input parameter included_in_mrr has been added in create_an_addon, update_an_addon, create_a_coupon and update_a_coupon apis.
* New input parameter offline_payment_method has been added in create_a_customer, list_customers, update_a_customer, create_a_subscription, create_subscription_for_customer and list_subscriptions apis
* New input parameter auto_collection has been added in update_a_subscription
* New input parameter subscription[offline_payment_method] has been added in create_subscription_estimate, create_subscription_for_a_customer_estimate, update_subscription_estimate, export_revenue_recognition_reports, export_deferred_revenue_reports, export_subscriptions, checkout_new_subscription and checkout_existing_subscription apis
* New input parameter subscription[auto_collection] has been added in checkout_existing_subscription and update_subscription_estimate apis
* New input parameter customer[offline_payment_method] has been added in export_revenue_recognition_reports, export_deferred_revenue_reports, export_customers and create_a_subscription
### v2.0.2 (2020-09-09)

@@ -2,0 +14,0 @@ * * *

1

lib/core.d.ts

@@ -11,2 +11,3 @@ export declare class Core {

static getHost(env: any): any;
static serialize(paramObj: any): any;
static encodeListParams(paramObj: any): any;

@@ -13,0 +14,0 @@ static encodeParams(paramObj: any, serialized?: any, scope?: any, index?: any): any;

@@ -51,2 +51,3 @@ "use strict";

if (httpMethod === 'GET') {
params = this.serialize(params);
let queryParam = isListReq ? this.encodeListParams(params) : this.encodeParams(params);

@@ -91,7 +92,17 @@ path += "?" + queryParam;

}
static encodeListParams(paramObj) {
static serialize(paramObj) {
let key, value;
for (key in paramObj) {
value = paramObj[key];
if (typeof value !== 'undefined' && value !== null && util_1.Util.isArray(value)) {
if (typeof value === 'object' && util_1.Util.isObject(value)) {
let old_key = key;
let child_key;
for (child_key in value) {
key = key + "[" + child_key + "]";
paramObj[key] = value[child_key];
}
delete paramObj[old_key];
this.serialize(paramObj);
}
else if (typeof value === 'object' && util_1.Util.isArray(value)) {
paramObj[key] = JSON.stringify(value);

@@ -103,2 +114,5 @@ }

}
return paramObj;
}
static encodeListParams(paramObj) {
return this.encodeParams(paramObj);

@@ -105,0 +119,0 @@ }

2

lib/environment.js

@@ -6,3 +6,3 @@ let environment = {

timeout: 40000,
clientVersion: 'v2.0.2',
clientVersion: 'v2.0.3',
port: 443,

@@ -9,0 +9,0 @@ timemachineWaitInMillis: 3000,

@@ -34,2 +34,3 @@ import { RequestWrapper } from "../request_wrapper";

updated_at?: number;
included_in_mrr?: boolean;
invoice_notes?: string;

@@ -89,2 +90,3 @@ taxable?: boolean;

shipping_frequency_period_unit?: string;
included_in_mrr?: boolean;
show_description_in_invoices?: boolean;

@@ -127,2 +129,3 @@ show_description_in_quotes?: boolean;

shipping_frequency_period_unit?: string;
included_in_mrr?: boolean;
show_description_in_invoices?: boolean;

@@ -129,0 +132,0 @@ show_description_in_quotes?: boolean;

@@ -26,2 +26,3 @@ import { RequestWrapper } from "../request_wrapper";

updated_at?: number;
included_in_mrr?: boolean;
plan_ids?: Array<string>;

@@ -60,2 +61,3 @@ addon_ids?: Array<string>;

meta_data?: any;
included_in_mrr?: boolean;
plan_constraint?: string;

@@ -96,2 +98,3 @@ addon_constraint?: string;

meta_data?: any;
included_in_mrr?: boolean;
plan_constraint?: string;

@@ -98,0 +101,0 @@ addon_constraint?: string;

@@ -13,2 +13,3 @@ import { RequestWrapper } from "../request_wrapper";

auto_collection: string;
offline_payment_method?: string;
net_term_days: number;

@@ -28,3 +29,2 @@ vat_number_validated_time?: number;

locale?: string;
consolidated_invoicing?: boolean;
billing_date?: number;

@@ -53,2 +53,3 @@ billing_date_mode?: string;

registered_for_gst?: boolean;
consolidated_invoicing?: boolean;
customer_type?: string;

@@ -182,2 +183,3 @@ business_customer_without_vat_number?: boolean;

meta_data?: any;
offline_payment_method?: string;
consolidated_invoicing?: boolean;

@@ -210,2 +212,3 @@ token_id?: string;

updated_at?: filter._timestamp;
offline_payment_method?: filter._enum;
"sort_by[asc]"?: string;

@@ -233,2 +236,3 @@ "sort_by[desc]"?: string;

exempt_number?: string;
offline_payment_method?: string;
invoice_notes?: string;

@@ -235,0 +239,0 @@ meta_data?: any;

@@ -158,2 +158,5 @@ import * as resources from ".";

}
interface subscription_create_subscription_params {
offline_payment_method?: string;
}
interface billing_address_create_subscription_params {

@@ -306,2 +309,5 @@ line1?: string;

}
interface subscription_create_sub_for_customer_estimate_params {
offline_payment_method?: string;
}
interface shipping_address_create_sub_for_customer_estimate_params {

@@ -411,2 +417,8 @@ line1?: string;

}
interface subscription_update_subscription_params {
auto_collection?: string;
}
interface subscription_update_subscription_params {
offline_payment_method?: string;
}
interface billing_address_update_subscription_params {

@@ -413,0 +425,0 @@ line1?: string;

@@ -170,2 +170,5 @@ import { RequestWrapper } from "../request_wrapper";

}
interface subscription_revenue_recognition_params {
offline_payment_method?: filter._enum;
}
interface customer_revenue_recognition_params {

@@ -210,2 +213,5 @@ id?: filter._string;

}
interface customer_revenue_recognition_params {
offline_payment_method?: filter._enum;
}
interface invoice_deferred_revenue_params {

@@ -286,2 +292,5 @@ id?: filter._string;

}
interface subscription_deferred_revenue_params {
offline_payment_method?: filter._enum;
}
interface customer_deferred_revenue_params {

@@ -326,2 +335,5 @@ id?: filter._string;

}
interface customer_deferred_revenue_params {
offline_payment_method?: filter._enum;
}
interface plan_plans_params {

@@ -447,2 +459,5 @@ id?: filter._string;

}
interface customer_customers_params {
offline_payment_method?: filter._enum;
}
interface subscription_subscriptions_params {

@@ -484,2 +499,5 @@ id?: filter._string;

}
interface subscription_subscriptions_params {
offline_payment_method?: filter._enum;
}
interface invoice_invoices_params {

@@ -486,0 +504,0 @@ id?: filter._string;

@@ -44,2 +44,3 @@ import { RequestWrapper } from "../request_wrapper";

iframe_messaging?: boolean;
allow_offline_payment_methods?: boolean;
subscription?: subscription_checkout_new_params;

@@ -69,2 +70,3 @@ customer?: customer_checkout_new_params;

iframe_messaging?: boolean;
allow_offline_payment_methods?: boolean;
subscription?: subscription_checkout_existing_params;

@@ -192,2 +194,5 @@ customer?: customer_checkout_existing_params;

interface subscription_checkout_new_params {
offline_payment_method?: string;
}
interface subscription_checkout_new_params {
invoice_notes?: string;

@@ -369,2 +374,8 @@ }

interface subscription_checkout_existing_params {
auto_collection?: string;
}
interface subscription_checkout_existing_params {
offline_payment_method?: string;
}
interface subscription_checkout_existing_params {
invoice_notes?: string;

@@ -371,0 +382,0 @@ }

@@ -290,2 +290,5 @@ import { RequestWrapper } from "../request_wrapper";

}
interface subscription_create_sub_for_customer_quote_params {
offline_payment_method?: string;
}
interface shipping_address_create_sub_for_customer_quote_params {

@@ -401,2 +404,5 @@ first_name?: string;

}
interface subscription_edit_create_sub_for_customer_quote_params {
offline_payment_method?: string;
}
interface shipping_address_edit_create_sub_for_customer_quote_params {

@@ -516,2 +522,8 @@ first_name?: string;

}
interface subscription_update_subscription_quote_params {
auto_collection?: string;
}
interface subscription_update_subscription_quote_params {
offline_payment_method?: string;
}
interface billing_address_update_subscription_quote_params {

@@ -678,2 +690,8 @@ first_name?: string;

}
interface subscription_edit_update_subscription_quote_params {
auto_collection?: string;
}
interface subscription_edit_update_subscription_quote_params {
offline_payment_method?: string;
}
interface billing_address_edit_update_subscription_quote_params {

@@ -680,0 +698,0 @@ first_name?: string;

@@ -42,2 +42,3 @@ import { RequestWrapper } from "../request_wrapper";

auto_collection?: string;
offline_payment_method?: string;
due_invoices_count?: number;

@@ -90,26 +91,2 @@ due_since?: number;

}
export declare class SubscriptionItem extends Model {
item_price_id: string;
item_type: string;
quantity?: number;
unit_price?: number;
amount?: number;
item_free_quantity?: number;
trial_end?: number;
billing_cycles?: number;
service_period_in_days?: number;
on_event?: string;
charge_once?: boolean;
charge_on?: string;
}
export declare class ItemTier extends Model {
item_price_id: string;
starting_unit: number;
ending_unit?: number;
price: number;
}
export declare class ChargedItem extends Model {
item_price_id: string;
last_charged_at: number;
}
export declare class Addon extends Model {

@@ -204,2 +181,3 @@ id: string;

billing_alignment_mode?: string;
offline_payment_method?: string;
po_number?: string;

@@ -248,2 +226,3 @@ coupon_ids?: Array<string>;

billing_alignment_mode?: string;
offline_payment_method?: string;
po_number?: string;

@@ -290,2 +269,3 @@ coupon_ids?: Array<string>;

updated_at?: filter._timestamp;
offline_payment_method?: filter._enum;
override_relationship?: filter._boolean;

@@ -318,2 +298,4 @@ "sort_by[asc]"?: string;

billing_alignment_mode?: string;
auto_collection?: string;
offline_payment_method?: string;
po_number?: string;

@@ -527,2 +509,5 @@ coupon_ids?: Array<string>;

interface customer_create_params {
offline_payment_method?: string;
}
interface customer_create_params {
allow_direct_debit?: boolean;

@@ -529,0 +514,0 @@ }

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ContractTerm = exports.ReferralInfo = exports.ShippingAddress = exports.Coupon = exports.ChargedEventBasedAddon = exports.EventBasedAddon = exports.Addon = exports.ChargedItem = exports.ItemTier = exports.SubscriptionItem = exports.Subscription = void 0;
exports.ContractTerm = exports.ReferralInfo = exports.ShippingAddress = exports.Coupon = exports.ChargedEventBasedAddon = exports.EventBasedAddon = exports.Addon = exports.Subscription = void 0;
const request_wrapper_1 = require("../request_wrapper");

@@ -272,11 +272,2 @@ const model_1 = require("./model");

exports.Subscription = Subscription;
class SubscriptionItem extends model_1.Model {
} // ~SubscriptionItem
exports.SubscriptionItem = SubscriptionItem;
class ItemTier extends model_1.Model {
} // ~ItemTier
exports.ItemTier = ItemTier;
class ChargedItem extends model_1.Model {
} // ~ChargedItem
exports.ChargedItem = ChargedItem;
class Addon extends model_1.Model {

@@ -283,0 +274,0 @@ } // ~Addon

{
"name": "chargebee-typescript",
"version": "2.0.2",
"version": "2.0.3",
"description": "A library in typescript for integrating with Chargebee.",

@@ -5,0 +5,0 @@ "keywords": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc