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
59
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.7.1 to 2.8.0

CHANGELOG.md

2

lib/environment.js

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

timeout: 80000,
clientVersion: 'v2.7.1',
clientVersion: 'v2.8.0',
port: 443,

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

@@ -40,2 +40,3 @@ import { ListResult } from '../list_result';

included_in_mrr?: boolean;
channel?: string;
invoice_notes?: string;

@@ -166,2 +167,3 @@ taxable?: boolean;

currency_code?: filter._string;
channel?: filter._enum;
include_deleted?: boolean;

@@ -168,0 +170,0 @@ }

@@ -19,2 +19,3 @@ import { ListResult } from '../list_result';

updated_at?: number;
channel?: string;
static create(item_id: string, params?: _attached_item.create_params): RequestWrapper;

@@ -21,0 +22,0 @@ static update(attached_item_id: string, params?: _attached_item.update_params): RequestWrapper;

@@ -26,2 +26,3 @@ import { ListResult } from '../list_result';

updated_at?: number;
channel?: string;
einvoice?: Einvoice;

@@ -192,2 +193,3 @@ sub_total: number;

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

@@ -194,0 +196,0 @@ "sort_by[desc]"?: string;

@@ -35,2 +35,3 @@ import { ListResult } from '../list_result';

auto_close_invoices?: boolean;
channel?: string;
card_status?: string;

@@ -73,3 +74,3 @@ fraud_flag?: string;

static update_billing_info(customer_id: string, params?: _customer.update_billing_info_params): RequestWrapper;
static contacts_for_customer(customer_id: string, params?: any): RequestWrapper;
static contacts_for_customer(customer_id: string, params?: any): RequestWrapper<ListResult>;
static assign_payment_role(customer_id: string, params?: _customer.assign_payment_role_params): RequestWrapper;

@@ -231,2 +232,3 @@ static add_contact(customer_id: string, params?: _customer.add_contact_params): RequestWrapper;

auto_close_invoices?: filter._boolean;
channel?: filter._enum;
"sort_by[asc]"?: string;

@@ -233,0 +235,0 @@ "sort_by[desc]"?: string;

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

}
interface invoice_revenue_recognition_params {
channel?: filter._enum;
}
interface subscription_revenue_recognition_params {

@@ -211,2 +214,5 @@ id?: filter._string;

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

@@ -257,2 +263,5 @@ id?: filter._string;

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

@@ -297,2 +306,5 @@ id?: filter._string;

}
interface invoice_deferred_revenue_params {
channel?: filter._enum;
}
interface subscription_deferred_revenue_params {

@@ -340,2 +352,5 @@ id?: filter._string;

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

@@ -386,2 +401,5 @@ id?: filter._string;

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

@@ -420,2 +438,5 @@ id?: filter._string;

}
interface plan_plans_params {
channel?: filter._enum;
}
interface addon_addons_params {

@@ -445,2 +466,5 @@ id?: filter._string;

}
interface addon_addons_params {
channel?: filter._enum;
}
interface coupon_coupons_params {

@@ -523,2 +547,5 @@ id?: filter._string;

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

@@ -566,2 +593,5 @@ id?: filter._string;

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

@@ -612,2 +642,5 @@ id?: filter._string;

}
interface invoice_invoices_params {
channel?: filter._enum;
}
interface credit_note_credit_notes_params {

@@ -661,2 +694,5 @@ id?: filter._string;

}
interface credit_note_credit_notes_params {
channel?: filter._enum;
}
interface transaction_transactions_params {

@@ -803,2 +839,5 @@ id?: filter._string;

}
interface item_items_params {
channel?: filter._enum;
}
interface item_price_item_prices_params {

@@ -834,2 +873,5 @@ id?: filter._string;

}
interface item_price_item_prices_params {
channel?: filter._enum;
}
interface attached_item_attached_items_params {

@@ -836,0 +878,0 @@ id?: filter._string;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.InvoiceAdjustmentCreditNote = exports.InvoiceAppliedCredit = exports.InvoiceDunningAttempt = exports.InvoiceLinkedPayment = exports.InvoiceLineItemTier = exports.InvoiceLineItemTax = exports.InvoiceTax = exports.InvoiceLineItemDiscount = exports.InvoiceDiscount = exports.InvoiceLineItem = exports.Invoice = exports.PromotionalCredit = exports.Card = exports.VirtualBankAccount = exports.ThirdPartyPaymentMethod = exports.PaymentSourceMandate = exports.PaymentSourcePaypal = exports.PaymentSourceUpi = exports.PaymentSourceAmazonPayment = exports.PaymentSourceBankAccount = exports.PaymentSourceCard = exports.PaymentSource = exports.Token = exports.Contact = exports.Hierarchy = exports.CustomerChildAccountAccess = exports.CustomerParentAccountAccess = exports.CustomerRelationship = exports.CustomerEntityIdentifier = exports.CustomerBalance = exports.CustomerPaymentMethod = exports.CustomerContact = exports.CustomerReferralUrl = exports.CustomerBillingAddress = exports.Customer = exports.AdvanceInvoiceScheduleSpecificDatesSchedule = exports.AdvanceInvoiceScheduleFixedIntervalSchedule = exports.AdvanceInvoiceSchedule = exports.ContractTerm = exports.SubscriptionContractTerm = exports.SubscriptionReferralInfo = exports.SubscriptionShippingAddress = exports.SubscriptionCoupon = exports.SubscriptionChargedEventBasedAddon = exports.SubscriptionEventBasedAddon = exports.SubscriptionAddon = exports.SubscriptionChargedItem = exports.SubscriptionItemTier = exports.SubscriptionSubscriptionItem = exports.Subscription = void 0;
exports.CreditNoteEstimateLineItem = exports.CreditNoteEstimate = exports.InvoiceEstimateLineItemDiscount = exports.InvoiceEstimateLineItemTier = exports.InvoiceEstimateLineItemTax = exports.InvoiceEstimateTax = exports.InvoiceEstimateDiscount = exports.InvoiceEstimateLineItem = exports.InvoiceEstimate = exports.SubscriptionEstimateContractTerm = exports.SubscriptionEstimateShippingAddress = exports.SubscriptionEstimate = exports.Estimate = exports.HostedPage = exports.TransactionLinkedPayment = exports.TransactionLinkedRefund = exports.TransactionLinkedCreditNote = exports.TransactionLinkedInvoice = exports.Transaction = exports.GiftGiftTimeline = exports.GiftGiftReceiver = exports.GiftGifter = exports.Gift = exports.OrderResentOrder = exports.OrderLinkedCreditNote = exports.OrderLineItemDiscount = exports.OrderLineItemTax = exports.OrderBillingAddress = exports.OrderShippingAddress = exports.OrderOrderLineItem = exports.Order = exports.UnbilledChargeTier = exports.UnbilledCharge = exports.CreditNoteAllocation = exports.CreditNoteLinkedRefund = exports.CreditNoteLineItemTax = exports.CreditNoteTax = exports.CreditNoteLineItemTier = exports.CreditNoteLineItemDiscount = exports.CreditNoteDiscount = exports.CreditNoteLineItem = exports.CreditNoteEinvoice = exports.CreditNote = exports.TaxWithheld = exports.InvoiceEinvoice = exports.InvoiceBillingAddress = exports.InvoiceShippingAddress = exports.InvoiceNote = exports.InvoiceLinkedOrder = exports.InvoiceIssuedCreditNote = void 0;
exports.Comment = exports.EventWebhook = exports.Event = exports.Usage = exports.Address = exports.CouponCode = exports.CouponSet = exports.CouponItemConstraintCriteria = exports.CouponItemConstraint = exports.Coupon = exports.AddonTier = exports.Addon = exports.PlanEventBasedAddon = exports.PlanAttachedAddon = exports.PlanApplicableAddon = exports.PlanTier = exports.Plan = exports.QuoteLineGroupLineItemTax = exports.QuoteLineGroupTax = exports.QuoteLineGroupLineItemDiscount = exports.QuoteLineGroupDiscount = exports.QuoteLineGroupLineItem = exports.QuoteLineGroup = exports.QuotedChargeCoupon = exports.QuotedChargeItemTier = exports.QuotedChargeInvoiceItem = exports.QuotedChargeAddon = exports.QuotedChargeCharge = exports.QuotedCharge = exports.QuotedSubscriptionQuotedContractTerm = exports.QuotedSubscriptionItemTier = exports.QuotedSubscriptionSubscriptionItem = exports.QuotedSubscriptionCoupon = exports.QuotedSubscriptionEventBasedAddon = exports.QuotedSubscriptionAddon = exports.QuotedSubscription = exports.QuoteBillingAddress = exports.QuoteShippingAddress = exports.QuoteLineItemTier = exports.QuoteLineItemTax = exports.QuoteTax = exports.QuoteLineItemDiscount = exports.QuoteDiscount = exports.QuoteLineItem = exports.Quote = exports.CreditNoteEstimateLineItemTier = exports.CreditNoteEstimateLineItemDiscount = exports.CreditNoteEstimateLineItemTax = exports.CreditNoteEstimateTax = exports.CreditNoteEstimateDiscount = void 0;
exports.DifferentialPriceParentPeriod = exports.DifferentialPriceTier = exports.DifferentialPrice = exports.AttachedItem = exports.ItemPriceAccountingDetail = exports.ItemPriceTaxDetail = exports.ItemPriceTier = exports.ItemPrice = exports.ItemApplicableItem = exports.Item = exports.ItemFamily = exports.PaymentIntentPaymentAttempt = exports.PaymentIntent = exports.ExportDownload = exports.Export = exports.TimeMachine = exports.ResourceMigration = exports.SiteMigrationDetail = exports.PortalSessionLinkedCustomer = exports.PortalSession = exports.Download = void 0;
// List of models

@@ -8,0 +4,0 @@ var subscription_1 = require("./subscription");

@@ -65,2 +65,3 @@ import { ListResult } from '../list_result';

vat_number_prefix?: string;
channel?: string;
static create(params?: _invoice.create_params): RequestWrapper;

@@ -425,2 +426,3 @@ static create_for_charge_items_and_charges(params?: _invoice.create_for_charge_items_and_charges_params): RequestWrapper;

updated_at?: filter._timestamp;
channel?: filter._enum;
voided_at?: filter._timestamp;

@@ -427,0 +429,0 @@ void_reason_code?: filter._string;

@@ -12,2 +12,3 @@ import { ListResult } from '../list_result';

updated_at?: number;
channel?: string;
static create(params?: _item_family.create_params): RequestWrapper;

@@ -14,0 +15,0 @@ static retrieve(item_family_id: string, params?: any): RequestWrapper;

@@ -27,2 +27,3 @@ import { ListResult } from '../list_result';

free_quantity_in_decimal?: string;
channel?: string;
resource_version?: number;

@@ -48,4 +49,4 @@ updated_at?: number;

static delete(item_price_id: string, params?: any): RequestWrapper;
static find_applicable_items(item_price_id: string, params?: _item_price.item_price_find_applicable_items_params): RequestWrapper;
static find_applicable_item_prices(item_price_id: string, params?: _item_price.item_price_find_applicable_item_prices_params): RequestWrapper;
static find_applicable_items(item_price_id: string, params?: _item_price.item_price_find_applicable_items_params): RequestWrapper<ListResult>;
static find_applicable_item_prices(item_price_id: string, params?: _item_price.item_price_find_applicable_item_prices_params): RequestWrapper<ListResult>;
}

@@ -151,2 +152,3 @@ export declare class Tier extends Model {

period?: filter._number;
channel?: filter._enum;
"sort_by[asc]"?: string;

@@ -153,0 +155,0 @@ "sort_by[desc]"?: string;

@@ -8,2 +8,3 @@ import { ListResult } from '../list_result';

name: string;
external_name?: string;
description?: string;

@@ -27,2 +28,3 @@ status?: string;

archived_at?: number;
channel?: string;
applicable_items?: Array<ApplicableItem>;

@@ -45,5 +47,6 @@ metadata?: any;

description?: string;
item_family_id?: string;
item_family_id: string;
is_giftable?: boolean;
is_shippable?: boolean;
external_name?: string;
enabled_in_portal?: boolean;

@@ -65,2 +68,3 @@ redirect_url?: string;

is_shippable?: boolean;
external_name?: string;
item_family_id?: string;

@@ -97,2 +101,3 @@ enabled_in_portal?: boolean;

usage_calculation?: filter._enum;
channel?: filter._enum;
"sort_by[asc]"?: string;

@@ -99,0 +104,0 @@ "sort_by[desc]"?: string;

"use strict";
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
if (kind === "m") throw new TypeError("Private method is not writable");
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, privateMap, value) {
if (!privateMap.has(receiver)) {
throw new TypeError("attempted to set private field on non-instance");
}
privateMap.set(receiver, value);
return value;
};
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, privateMap) {
if (!privateMap.has(receiver)) {
throw new TypeError("attempted to get private field on non-instance");
}
return privateMap.get(receiver);
};
var _Model__values, _Model__sub_types, _Model__dependant_types;
var __values, __sub_types, __dependant_types;
Object.defineProperty(exports, "__esModule", { value: true });

@@ -20,18 +22,18 @@ exports.Model = void 0;

constructor(_values, _sub_types = {}, _dependant_types = {}) {
_Model__values.set(this, void 0);
_Model__sub_types.set(this, void 0);
_Model__dependant_types.set(this, void 0);
__classPrivateFieldSet(this, _Model__values, _values, "f");
__classPrivateFieldSet(this, _Model__sub_types, _sub_types, "f");
__classPrivateFieldSet(this, _Model__dependant_types, _dependant_types, "f");
__values.set(this, void 0);
__sub_types.set(this, void 0);
__dependant_types.set(this, void 0);
__classPrivateFieldSet(this, __values, _values);
__classPrivateFieldSet(this, __sub_types, _sub_types);
__classPrivateFieldSet(this, __dependant_types, _dependant_types);
this.load(this.values);
}
get values() {
return __classPrivateFieldGet(this, _Model__values, "f");
return __classPrivateFieldGet(this, __values);
}
get sub_types() {
return __classPrivateFieldGet(this, _Model__sub_types, "f");
return __classPrivateFieldGet(this, __sub_types);
}
get dependant_types() {
return __classPrivateFieldGet(this, _Model__dependant_types, "f");
return __classPrivateFieldGet(this, __dependant_types);
}

@@ -82,2 +84,2 @@ load(values) {

exports.Model = Model;
_Model__values = new WeakMap(), _Model__sub_types = new WeakMap(), _Model__dependant_types = new WeakMap();
__values = new WeakMap(), __sub_types = new WeakMap(), __dependant_types = new WeakMap();

@@ -50,2 +50,3 @@ import { ListResult } from '../list_result';

price_in_decimal?: string;
channel?: string;
invoice_notes?: string;

@@ -229,2 +230,3 @@ taxable?: boolean;

currency_code?: filter._string;
channel?: filter._enum;
include_deleted?: boolean;

@@ -231,0 +233,0 @@ }

@@ -27,2 +27,3 @@ import { ListResult } from '../list_result';

deleted: boolean;
static create_unbilled_charge(params?: _unbilled_charge.create_unbilled_charge_params): RequestWrapper;
static create(params?: _unbilled_charge.create_params): RequestWrapper;

@@ -45,2 +46,8 @@ static invoice_unbilled_charges(params?: _unbilled_charge.invoice_unbilled_charges_params): RequestWrapper;

export declare namespace _unbilled_charge {
interface create_unbilled_charge_params {
subscription_id: string;
currency_code?: string;
addons?: Array<addons_create_unbilled_charge_params>;
charges?: Array<charges_create_unbilled_charge_params>;
}
interface create_params {

@@ -69,2 +76,62 @@ subscription_id: string;

}
interface addons_create_unbilled_charge_params {
id?: string;
}
interface addons_create_unbilled_charge_params {
quantity?: number;
}
interface addons_create_unbilled_charge_params {
unit_price?: number;
}
interface addons_create_unbilled_charge_params {
quantity_in_decimal?: string;
}
interface addons_create_unbilled_charge_params {
unit_price_in_decimal?: string;
}
interface addons_create_unbilled_charge_params {
date_from?: number;
}
interface addons_create_unbilled_charge_params {
date_to?: number;
}
interface charges_create_unbilled_charge_params {
amount?: number;
}
interface charges_create_unbilled_charge_params {
amount_in_decimal?: string;
}
interface charges_create_unbilled_charge_params {
description?: string;
}
interface charges_create_unbilled_charge_params {
taxable?: boolean;
}
interface charges_create_unbilled_charge_params {
tax_profile_id?: string;
}
interface charges_create_unbilled_charge_params {
avalara_tax_code?: string;
}
interface charges_create_unbilled_charge_params {
hsn_code?: string;
}
interface charges_create_unbilled_charge_params {
taxjar_product_code?: string;
}
interface charges_create_unbilled_charge_params {
avalara_sale_type?: string;
}
interface charges_create_unbilled_charge_params {
avalara_transaction_type?: number;
}
interface charges_create_unbilled_charge_params {
avalara_service_type?: number;
}
interface charges_create_unbilled_charge_params {
date_from?: number;
}
interface charges_create_unbilled_charge_params {
date_to?: number;
}
interface item_prices_create_params {

@@ -71,0 +138,0 @@ item_price_id?: string;

@@ -10,2 +10,12 @@ "use strict";

//-----------
static create_unbilled_charge(params) {
return new request_wrapper_1.RequestWrapper([params], {
'methodName': 'create_unbilled_charge',
'httpMethod': 'POST',
'urlPrefix': '/unbilled_charges',
'urlSuffix': '/create',
'hasIdInUrl': false,
'isListReq': false,
}, chargebee_1.ChargeBee._env);
}
static create(params) {

@@ -12,0 +22,0 @@ return new request_wrapper_1.RequestWrapper([params], {

"use strict";
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
if (kind === "m") throw new TypeError("Private method is not writable");
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, privateMap, value) {
if (!privateMap.has(receiver)) {
throw new TypeError("attempted to set private field on non-instance");
}
privateMap.set(receiver, value);
return value;
};
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, privateMap) {
if (!privateMap.has(receiver)) {
throw new TypeError("attempted to get private field on non-instance");
}
return privateMap.get(receiver);
};
var _Result__response;
var __response;
Object.defineProperty(exports, "__esModule", { value: true });

@@ -20,4 +22,4 @@ exports.Result = void 0;

constructor(response) {
_Result__response.set(this, void 0);
__classPrivateFieldSet(this, _Result__response, response, "f");
__response.set(this, void 0);
__classPrivateFieldSet(this, __response, response);
}

@@ -243,3 +245,3 @@ get subscription() {

get response() {
return __classPrivateFieldGet(this, _Result__response, "f");
return __classPrivateFieldGet(this, __response);
}

@@ -269,2 +271,2 @@ get(type, klass, sub_types = {}, dependant_types = {}) {

exports.Result = Result;
_Result__response = new WeakMap();
__response = new WeakMap();

@@ -88,3 +88,3 @@ "use strict";

static createDeferred(callback) {
let deferred = (0, q_1.defer)();
let deferred = q_1.defer();
if (callback) {

@@ -91,0 +91,0 @@ deferred.promise.then(function (res) {

{
"name": "chargebee-typescript",
"version": "2.7.1",
"version": "2.8.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

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