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.20.1 to 2.21.0

lib/resources/payment_voucher.d.ts

26

CHANGELOG.md

@@ -0,1 +1,27 @@

### v2.21.0 (2023-05-31)
* * *
#### New endpoints:
* PaymentSource#CreateVoucherPaymentSource has been added to the PaymentSource resource.
* EventsRequest#HostedPage has been added to the PaymentSource resource.
#### New Resource:
* PaymentVoucher has been added.
#### New attributes:
* boleto and billing_address has been added to the PaymentSource resource.
* product_id has been added to the ItemPrice resource.
#### New Enum Class:
* EventNameEnum has been added.
* PaymentVoucherTypeEnum has been added.
* VoucherTypeEnum has been added.
#### New Enum values:
* product and variant has been added to EntityType enum.
* product_created, product_updated, product_deleted, variant_created, variant_updated and variant_deleted enums have been added in EventType enum.
* voucher_created, voucher_expired and voucher_create_failed have been added in EventType enum.
* boleto has been added in PaymentMethod and OfflinePaymentMethod and PaymentMethodTypeEnum#PaymentIntent.
### v2.20.0 (2023-05-16)

@@ -2,0 +28,0 @@ * * *

2

lib/chargebee.d.ts

@@ -58,2 +58,3 @@ import * as resources from "./resources";

export { _purchase } from "./resources/purchase";
export { _payment_voucher } from "./resources/payment_voucher";
interface Conf {

@@ -124,2 +125,3 @@ api_key: string;

get purchase(): typeof resources.Purchase;
get payment_voucher(): typeof resources.PaymentVoucher;
}

@@ -181,2 +181,5 @@ "use strict";

}
get payment_voucher() {
return resources.PaymentVoucher;
}
}

@@ -183,0 +186,0 @@ exports.ChargeBee = ChargeBee;

2

lib/environment.js

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

timeout: 80000,
clientVersion: 'v2.20.1',
clientVersion: 'v2.21.0',
port: 443,

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

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

static pre_cancel(params?: _hosted_page.pre_cancel_params): RequestWrapper;
static events(params?: _hosted_page.events_params): RequestWrapper;
}

@@ -254,2 +255,7 @@ export declare namespace _hosted_page {

}
interface events_params {
event_name: string;
occurred_at?: number;
event_data: any;
}
interface subscription_checkout_new_params {

@@ -256,0 +262,0 @@ id?: string;

@@ -210,3 +210,13 @@ "use strict";

}
static events(params) {
return new request_wrapper_1.RequestWrapper([params], {
'methodName': 'events',
'httpMethod': 'POST',
'urlPrefix': '/hosted_pages',
'urlSuffix': '/events',
'hasIdInUrl': false,
'isListReq': false,
}, chargebee_1.ChargeBee._env);
}
} // ~HostedPage
exports.HostedPage = HostedPage;

@@ -34,2 +34,4 @@ export { Subscription } from "./subscription";

export { BankAccount as PaymentSourceBankAccount } from "./payment_source";
export { CustVoucherSource as PaymentSourceCustVoucherSource } from "./payment_source";
export { BillingAddress as PaymentSourceBillingAddress } from "./payment_source";
export { AmazonPayment as PaymentSourceAmazonPayment } from "./payment_source";

@@ -191,1 +193,3 @@ export { Upi as PaymentSourceUpi } from "./payment_source";

export { Purchase } from "./purchase";
export { PaymentVoucher } from "./payment_voucher";
export { LinkedInvoice as PaymentVoucherLinkedInvoice } from "./payment_voucher";

@@ -71,9 +71,13 @@ "use strict";

var payment_source_4 = require("./payment_source");
Object.defineProperty(exports, "PaymentSourceAmazonPayment", { enumerable: true, get: function () { return payment_source_4.AmazonPayment; } });
Object.defineProperty(exports, "PaymentSourceCustVoucherSource", { enumerable: true, get: function () { return payment_source_4.CustVoucherSource; } });
var payment_source_5 = require("./payment_source");
Object.defineProperty(exports, "PaymentSourceUpi", { enumerable: true, get: function () { return payment_source_5.Upi; } });
Object.defineProperty(exports, "PaymentSourceBillingAddress", { enumerable: true, get: function () { return payment_source_5.BillingAddress; } });
var payment_source_6 = require("./payment_source");
Object.defineProperty(exports, "PaymentSourcePaypal", { enumerable: true, get: function () { return payment_source_6.Paypal; } });
Object.defineProperty(exports, "PaymentSourceAmazonPayment", { enumerable: true, get: function () { return payment_source_6.AmazonPayment; } });
var payment_source_7 = require("./payment_source");
Object.defineProperty(exports, "PaymentSourceMandate", { enumerable: true, get: function () { return payment_source_7.Mandate; } });
Object.defineProperty(exports, "PaymentSourceUpi", { enumerable: true, get: function () { return payment_source_7.Upi; } });
var payment_source_8 = require("./payment_source");
Object.defineProperty(exports, "PaymentSourcePaypal", { enumerable: true, get: function () { return payment_source_8.Paypal; } });
var payment_source_9 = require("./payment_source");
Object.defineProperty(exports, "PaymentSourceMandate", { enumerable: true, get: function () { return payment_source_9.Mandate; } });
var third_party_payment_method_1 = require("./third_party_payment_method");

@@ -383,1 +387,5 @@ Object.defineProperty(exports, "ThirdPartyPaymentMethod", { enumerable: true, get: function () { return third_party_payment_method_1.ThirdPartyPaymentMethod; } });

Object.defineProperty(exports, "Purchase", { enumerable: true, get: function () { return purchase_1.Purchase; } });
var payment_voucher_1 = require("./payment_voucher");
Object.defineProperty(exports, "PaymentVoucher", { enumerable: true, get: function () { return payment_voucher_1.PaymentVoucher; } });
var payment_voucher_2 = require("./payment_voucher");
Object.defineProperty(exports, "PaymentVoucherLinkedInvoice", { enumerable: true, get: function () { return payment_voucher_2.LinkedInvoice; } });

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

item_family_id?: string;
product_id?: string;
item_id?: string;

@@ -11,0 +12,0 @@ description?: string;

@@ -20,2 +20,4 @@ import { ListResult } from '../list_result';

bank_account?: BankAccount;
boleto?: CustVoucherSource;
billing_address?: BillingAddress;
amazon_payment?: AmazonPayment;

@@ -31,2 +33,3 @@ upi?: Upi;

static create_using_payment_intent(params?: _payment_source.create_using_payment_intent_params): RequestWrapper;
static create_voucher_payment_source(params?: _payment_source.create_voucher_payment_source_params): RequestWrapper;
static create_card(params?: _payment_source.create_card_params): RequestWrapper;

@@ -74,2 +77,24 @@ static create_bank_account(params?: _payment_source.create_bank_account_params): RequestWrapper;

}
export declare class CustVoucherSource extends Model {
last4: string;
first_name?: string;
last_name?: string;
email?: string;
}
export declare class BillingAddress extends Model {
first_name?: string;
last_name?: string;
email?: string;
company?: string;
phone?: string;
line1?: string;
line2?: string;
line3?: string;
city?: string;
state_code?: string;
state?: string;
country?: string;
zip?: string;
validation_status?: string;
}
export declare class AmazonPayment extends Model {

@@ -120,2 +145,6 @@ email?: string;

}
interface create_voucher_payment_source_params {
customer_id: string;
voucher_payment_source?: voucher_payment_source_create_voucher_payment_source_params;
}
interface create_card_params {

@@ -189,2 +218,14 @@ customer_id: string;

}
interface voucher_payment_source_create_voucher_payment_source_params {
voucher_type: string;
}
interface voucher_payment_source_create_voucher_payment_source_params {
gateway_account_id?: string;
}
interface voucher_payment_source_create_voucher_payment_source_params {
tax_id?: string;
}
interface voucher_payment_source_create_voucher_payment_source_params {
billing_address?: any;
}
interface card_create_card_params {

@@ -191,0 +232,0 @@ gateway_account_id?: string;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Mandate = exports.Paypal = exports.Upi = exports.AmazonPayment = exports.BankAccount = exports.Card = exports.PaymentSource = void 0;
exports.Mandate = exports.Paypal = exports.Upi = exports.AmazonPayment = exports.BillingAddress = exports.CustVoucherSource = exports.BankAccount = exports.Card = exports.PaymentSource = void 0;
const request_wrapper_1 = require("../request_wrapper");

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

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

@@ -169,2 +179,8 @@ return new request_wrapper_1.RequestWrapper([params], {

exports.BankAccount = BankAccount;
class CustVoucherSource extends model_1.Model {
} // ~CustVoucherSource
exports.CustVoucherSource = CustVoucherSource;
class BillingAddress extends model_1.Model {
} // ~BillingAddress
exports.BillingAddress = BillingAddress;
class AmazonPayment extends model_1.Model {

@@ -171,0 +187,0 @@ } // ~AmazonPayment

@@ -61,2 +61,3 @@ import * as resources from "./resources";

get purchase(): resources.Purchase;
get payment_voucher(): resources.PaymentVoucher;
get unbilled_charges(): resources.UnbilledCharge[];

@@ -63,0 +64,0 @@ get credit_notes(): resources.CreditNote[];

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

get payment_source() {
let _payment_source = this.get('payment_source', 'PaymentSource', { 'card': 'PaymentSourceCard', 'bank_account': 'PaymentSourceBankAccount', 'amazon_payment': 'PaymentSourceAmazonPayment', 'upi': 'PaymentSourceUpi', 'paypal': 'PaymentSourcePaypal', 'mandates': 'PaymentSourceMandate' });
let _payment_source = this.get('payment_source', 'PaymentSource', { 'card': 'PaymentSourceCard', 'bank_account': 'PaymentSourceBankAccount', 'cust_voucher_source': 'PaymentSourceCustVoucherSource', 'billing_address': 'PaymentSourceBillingAddress', 'amazon_payment': 'PaymentSourceAmazonPayment', 'upi': 'PaymentSourceUpi', 'paypal': 'PaymentSourcePaypal', 'mandates': 'PaymentSourceMandate' });
return _payment_source;

@@ -261,2 +261,6 @@ }

}
get payment_voucher() {
let _payment_voucher = this.get('payment_voucher', 'PaymentVoucher', { 'linked_invoices': 'PaymentVoucherLinkedInvoice' });
return _payment_voucher;
}
get unbilled_charges() {

@@ -263,0 +267,0 @@ let _unbilled_charges = this.get_list('unbilled_charges', 'UnbilledCharge', { 'tiers': 'UnbilledChargeTier' });

{
"name": "chargebee-typescript",
"version": "2.20.1",
"version": "2.21.0",
"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