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

chargebee

Package Overview
Dependencies
Maintainers
0
Versions
160
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chargebee - npm Package Compare versions

Comparing version 3.0.0-beta.2 to 3.0.0-beta.3

types/resources/NonSubscription.d.ts

2

cjs/chargebee.cjs.js

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

//@ts-ignore
const httpClient = globalThis.fetch
const httpClient = !globalThis.fetch
? new NodeClient_js_1.NodeHttpClient()

@@ -10,0 +10,0 @@ : new FetchClient_js_1.FetchHttpClient();

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

timeout: DEFAULT_TIME_OUT,
clientVersion: 'v3.0.0-beta.2',
clientVersion: 'v3.0.0-beta.3',
port: DEFAULT_PORT,

@@ -17,0 +17,0 @@ timemachineWaitInMillis: DEFAULT_TIME_MACHINE_WAIT,

@@ -376,3 +376,10 @@ "use strict";

['updateDetails', 'POST', '/invoices', '/update_details', true],
['installments', 'POST', '/invoices', '/installments', true],
[
'applyPaymentScheduleScheme',
'POST',
'/invoices',
'/apply_payment_schedule_scheme',
true,
],
['paymentSchedules', 'GET', '/invoices', '/payment_schedules', true],
['resendEinvoice', 'POST', '/invoices', '/resend_einvoice', true],

@@ -382,2 +389,3 @@ ['sendEinvoice', 'POST', '/invoices', '/send_einvoice', true],

paymentReferenceNumber: [],
paymentSchedule: [],
taxWithheld: [],

@@ -1005,2 +1013,11 @@ creditNote: [

],
nonSubscription: [
[
'processReceipt',
'POST',
'/non_subscriptions',
'/one_time_purchase',
true,
],
],
entitlementOverride: [

@@ -1063,12 +1080,7 @@ [

],
installmentConfig: [
['create', 'POST', '/installment_configs', null, false],
['retrieve', 'GET', '/installment_configs', null, true],
['delete', 'POST', '/installment_configs', '/delete', true],
paymentScheduleScheme: [
['create', 'POST', '/payment_schedule_schemes', null, false],
['retrieve', 'GET', '/payment_schedule_schemes', null, true],
['delete', 'POST', '/payment_schedule_schemes', '/delete', true],
],
installment: [
['retrieve', 'GET', '/installments', null, true],
['list', 'GET', '/installments', null, false],
],
installmentDetail: [],
pricingPageSession: [

@@ -1075,0 +1087,0 @@ [

@@ -5,3 +5,3 @@ import { CreateChargebee } from './createChargebee.js';

//@ts-ignore
const httpClient = globalThis.fetch
const httpClient = !globalThis.fetch
? new NodeHttpClient()

@@ -8,0 +8,0 @@ : new FetchHttpClient();

@@ -11,3 +11,3 @@ const DEFAULT_PROTOCOL = 'https';

timeout: DEFAULT_TIME_OUT,
clientVersion: 'v3.0.0-beta.2',
clientVersion: 'v3.0.0-beta.3',
port: DEFAULT_PORT,

@@ -14,0 +14,0 @@ timemachineWaitInMillis: DEFAULT_TIME_MACHINE_WAIT,

@@ -373,3 +373,10 @@ export const Endpoints = {

['updateDetails', 'POST', '/invoices', '/update_details', true],
['installments', 'POST', '/invoices', '/installments', true],
[
'applyPaymentScheduleScheme',
'POST',
'/invoices',
'/apply_payment_schedule_scheme',
true,
],
['paymentSchedules', 'GET', '/invoices', '/payment_schedules', true],
['resendEinvoice', 'POST', '/invoices', '/resend_einvoice', true],

@@ -379,2 +386,3 @@ ['sendEinvoice', 'POST', '/invoices', '/send_einvoice', true],

paymentReferenceNumber: [],
paymentSchedule: [],
taxWithheld: [],

@@ -1002,2 +1010,11 @@ creditNote: [

],
nonSubscription: [
[
'processReceipt',
'POST',
'/non_subscriptions',
'/one_time_purchase',
true,
],
],
entitlementOverride: [

@@ -1060,12 +1077,7 @@ [

],
installmentConfig: [
['create', 'POST', '/installment_configs', null, false],
['retrieve', 'GET', '/installment_configs', null, true],
['delete', 'POST', '/installment_configs', '/delete', true],
paymentScheduleScheme: [
['create', 'POST', '/payment_schedule_schemes', null, false],
['retrieve', 'GET', '/payment_schedule_schemes', null, true],
['delete', 'POST', '/payment_schedule_schemes', '/delete', true],
],
installment: [
['retrieve', 'GET', '/installments', null, true],
['list', 'GET', '/installments', null, false],
],
installmentDetail: [],
pricingPageSession: [

@@ -1072,0 +1084,0 @@ [

{
"name": "chargebee",
"version": "3.0.0-beta.2",
"version": "3.0.0-beta.3",
"description": "A library for integrating with Chargebee.",

@@ -5,0 +5,0 @@ "scripts": {

@@ -192,6 +192,6 @@ declare module 'chargebee' {

| 'credit_note_deleted'
| 'invoice_installments_created'
| 'invoice_installment_updated'
| 'installment_config_created'
| 'installment_config_deleted'
| 'payment_schedules_created'
| 'payment_schedules_updated'
| 'payment_schedule_scheme_created'
| 'payment_schedule_scheme_deleted'
| 'subscription_renewal_reminder'

@@ -198,0 +198,0 @@ | 'add_usages_reminder'

@@ -36,5 +36,2 @@ ///<reference path='./resources/Address.d.ts' />

///<reference path='./resources/InAppSubscription.d.ts' />
///<reference path='./resources/Installment.d.ts' />
///<reference path='./resources/InstallmentConfig.d.ts' />
///<reference path='./resources/InstallmentDetail.d.ts' />
///<reference path='./resources/Invoice.d.ts' />

@@ -47,5 +44,8 @@ ///<reference path='./resources/InvoiceEstimate.d.ts' />

///<reference path='./resources/Metadata.d.ts' />
///<reference path='./resources/NonSubscription.d.ts' />
///<reference path='./resources/Order.d.ts' />
///<reference path='./resources/PaymentIntent.d.ts' />
///<reference path='./resources/PaymentReferenceNumber.d.ts' />
///<reference path='./resources/PaymentSchedule.d.ts' />
///<reference path='./resources/PaymentScheduleScheme.d.ts' />
///<reference path='./resources/PaymentSource.d.ts' />

@@ -140,4 +140,2 @@ ///<reference path='./resources/PaymentVoucher.d.ts' />

inAppSubscription: InAppSubscription.InAppSubscriptionResource;
installment: Installment.InstallmentResource;
installmentConfig: InstallmentConfig.InstallmentConfigResource;
invoice: Invoice.InvoiceResource;

@@ -148,4 +146,6 @@ item: Item.ItemResource;

itemPrice: ItemPrice.ItemPriceResource;
nonSubscription: NonSubscription.NonSubscriptionResource;
order: Order.OrderResource;
paymentIntent: PaymentIntent.PaymentIntentResource;
paymentScheduleScheme: PaymentScheduleScheme.PaymentScheduleSchemeResource;
paymentSource: PaymentSource.PaymentSourceResource;

@@ -152,0 +152,0 @@ paymentVoucher: PaymentVoucher.PaymentVoucherResource;

@@ -205,3 +205,3 @@ ///<reference path='./../core.d.ts'/>

coupon_constraints?: CouponConstraintsCreateForItemsInputParam[];
[key: string]: unknown;
[key: `cf_${string}`]: unknown;
}

@@ -232,3 +232,3 @@ export interface UpdateForItemsInputParam {

coupon_constraints?: CouponConstraintsUpdateForItemsInputParam[];
[key: string]: unknown;
[key: `cf_${string}`]: unknown;
}

@@ -249,3 +249,3 @@ export interface ListInputParam {

'sort_by[desc]'?: string;
[key: string]: unknown;
[key: `cf_${string}`]: unknown;
}

@@ -252,0 +252,0 @@ export interface UpdateInputParam {

@@ -483,3 +483,3 @@ ///<reference path='./../core.d.ts'/>

tax_providers_fields?: TaxProvidersFieldsCreateInputParam[];
[key: string]: unknown;
[key: `cf_${string}`]: unknown;
}

@@ -507,3 +507,3 @@ export interface ListInputParam {

'sort_by[desc]'?: string;
[key: string]: unknown;
[key: `cf_${string}`]: unknown;
}

@@ -535,3 +535,3 @@ export interface UpdateInputParam {

tax_providers_fields?: TaxProvidersFieldsUpdateInputParam[];
[key: string]: unknown;
[key: `cf_${string}`]: unknown;
}

@@ -538,0 +538,0 @@ export interface UpdatePaymentMethodInputParam {

@@ -111,3 +111,3 @@ ///<reference path='./../core.d.ts'/>

type?: filter.Enum;
[key: string]: unknown;
[key: `cf_${string}`]: unknown;
}

@@ -121,3 +121,3 @@ export interface CreateInputParam {

levels?: LevelsCreateInputParam[];
[key: string]: unknown;
[key: `cf_${string}`]: unknown;
}

@@ -129,3 +129,3 @@ export interface UpdateInputParam {

levels?: LevelsUpdateInputParam[];
[key: string]: unknown;
[key: `cf_${string}`]: unknown;
}

@@ -132,0 +132,0 @@ export interface LevelsCreateInputParam {

@@ -275,8 +275,13 @@ ///<reference path='./../core.d.ts'/>

installments(
applyPaymentScheduleScheme(
invoice_id: string,
input: InstallmentsInputParam,
input: ApplyPaymentScheduleSchemeInputParam,
headers?: ChargebeeRequestHeader,
): Promise<ChargebeeResponse<InstallmentsResponse>>;
): Promise<ChargebeeResponse<ApplyPaymentScheduleSchemeResponse>>;
paymentSchedules(
invoice_id: string,
headers?: ChargebeeRequestHeader,
): Promise<ChargebeeResponse<PaymentSchedulesResponse>>;
resendEinvoice(

@@ -444,6 +449,10 @@ invoice_id: string,

export interface InstallmentsResponse {
export interface ApplyPaymentScheduleSchemeResponse {
invoice: Invoice;
}
export interface PaymentSchedulesResponse {
payment_schedules: PaymentSchedule[];
}
export interface ResendEinvoiceResponse {

@@ -1067,4 +1076,4 @@ invoice: Invoice;

}
export interface InstallmentsInputParam {
config_id: string;
export interface ApplyPaymentScheduleSchemeInputParam {
scheme_id: string;
amount?: number;

@@ -1071,0 +1080,0 @@ }

@@ -30,2 +30,4 @@ ///<reference path='./../core.d.ts'/>

applicable_items?: Item.ApplicableItem[];
bundle_items?: Item.BundleItem[];
bundle_configuration?: Item.BundleConfiguration;
metadata?: any;

@@ -87,2 +89,11 @@ }

}
export interface BundleItem {
item_id: string;
item_type?: 'plan' | 'addon' | 'charge';
quantity?: number;
price_allocation?: number;
}
export interface BundleConfiguration {
type?: 'fixed';
}
// REQUEST PARAMS

@@ -111,3 +122,5 @@ //---------------

metadata?: any;
[key: string]: unknown;
bundle_configuration?: BundleConfigurationCreateInputParam;
bundle_items_to_add?: BundleItemsToAddCreateInputParam[];
[key: `cf_${string}`]: unknown;
}

@@ -134,3 +147,7 @@ export interface UpdateInputParam {

status?: 'active' | 'archived';
[key: string]: unknown;
bundle_configuration?: BundleConfigurationUpdateInputParam;
bundle_items_to_add?: BundleItemsToAddUpdateInputParam[];
bundle_items_to_update?: BundleItemsToUpdateUpdateInputParam[];
bundle_items_to_remove?: BundleItemsToRemoveUpdateInputParam[];
[key: `cf_${string}`]: unknown;
}

@@ -140,2 +157,3 @@ export interface ListInputParam {

offset?: string;
bundle_configuration?: BundleConfigurationItemListInputParam;
id?: filter.String;

@@ -157,3 +175,36 @@ item_family_id?: filter.String;

}
export interface BundleConfigurationCreateInputParam {
type?: 'fixed';
}
export interface BundleItemsToAddCreateInputParam {
item_id?: string;
item_type?: ItemType;
quantity?: number;
price_allocation?: number;
}
export interface BundleConfigurationUpdateInputParam {
type?: 'fixed';
}
export interface BundleItemsToAddUpdateInputParam {
item_id?: string;
item_type?: ItemType;
quantity?: number;
price_allocation?: number;
}
export interface BundleItemsToUpdateUpdateInputParam {
item_id?: string;
item_type?: ItemType;
quantity?: number;
price_allocation?: number;
}
export interface BundleItemsToRemoveUpdateInputParam {
item_id?: string;
item_type?: ItemType;
}
export interface BundleConfigurationItemListInputParam {
type?: filter.Enum;
}
}
}

@@ -73,3 +73,3 @@ ///<reference path='./../core.d.ts'/>

description?: string;
[key: string]: unknown;
[key: `cf_${string}`]: unknown;
}

@@ -82,3 +82,3 @@ export interface ListInputParam {

updated_at?: filter.Timestamp;
[key: string]: unknown;
[key: `cf_${string}`]: unknown;
}

@@ -88,5 +88,5 @@ export interface UpdateInputParam {

description?: string;
[key: string]: unknown;
[key: `cf_${string}`]: unknown;
}
}
}

@@ -191,3 +191,3 @@ ///<reference path='./../core.d.ts'/>

tax_providers_fields?: TaxProvidersFieldsCreateInputParam[];
[key: string]: unknown;
[key: `cf_${string}`]: unknown;
}

@@ -227,3 +227,3 @@ export interface UpdateInputParam {

tax_providers_fields?: TaxProvidersFieldsUpdateInputParam[];
[key: string]: unknown;
[key: `cf_${string}`]: unknown;
}

@@ -230,0 +230,0 @@ export interface ListInputParam {

@@ -42,4 +42,4 @@ ///<reference path='./../core.d.ts'/>

invoice_info?: InvoiceInfoCreateInputParam;
payment_schedule?: PaymentScheduleCreateInputParam;
statement_descriptor?: StatementDescriptorCreateInputParam;
installment_info?: InstallmentInfoCreateInputParam;
purchase_items?: PurchaseItemsCreateInputParam[];

@@ -67,2 +67,6 @@ item_tiers?: ItemTiersCreateInputParam[];

}
export interface PaymentScheduleCreateInputParam {
scheme_id?: string;
amount?: number;
}
export interface InvoiceInfoCreateInputParam {

@@ -72,6 +76,2 @@ po_number?: string;

}
export interface InstallmentInfoCreateInputParam {
config_id?: string;
amount?: number;
}

@@ -78,0 +78,0 @@ export interface SubscriptionInfoCreateInputParam {

Sorry, the diff of this file is too big to display

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