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.21.0 to 2.22.0

lib/resources/payment_reference_number.d.ts

37

CHANGELOG.md

@@ -0,1 +1,38 @@

### v2.22.0 (2023-06-30)
* * *
#### New endpoints:
* ViewVoucher#ViewVoucherRequest has been added to the HostedPage resource.
* InvoiceListPaymentReferenceNumbers#InvoiceListPaymentReferenceNumbersRequest has been added to the Invoice resource.
#### New Resource:
* PaymentReferenceNumber has been added.
#### New attributes:
* local_currency_exchange_rate has been added to the CreditNote and Invoice resource.
#### New Enum values:
* view_voucher has been added to Type enum in HostedPage resource.
* paused has been added in StoreStatus enum in InAppSubscription resource.
* metrics_global and windcave has been added in Gateway enum.
#### New Input parameters:
* payment_initiator has been added to Customers#CollectPaymentRequest.
* payment_initiator has been added to Invoice#CreateRequest.
* payment_initiator has been added to Invoice#ChargeRequest.
* payment_initiator has been added to Invoice#ChargeAddonRequest.
* payment_initiator has been added to Invoice#CollectPaymentRequest.
* payment_initiator has been added to Subscription#CreateRequest.
* payment_initiator has been added to Invoice#CreateForChargeItemRequest.
* payment_initiator has been added to Subscription#CreateForCustomerRequest.
* payment_initiator has been added to Subscription#CreateWithItemsRequest.
* payment_initiator has been added to Subscription#UpdateForItemsRequest.
* payment_initiator has been added to Subscription#ReactivateRequest.
* payment_initiator has been added to Subscription#ResumeRequest.
* payment_reference_numbers[id] has been added to Invoice#ImportInvoiceRequest.
* payment_reference_numbers[type] has been added to Invoice#ImportInvoiceRequest.
* payment_reference_numbers[number] has been added to Invoice#ImportInvoiceRequest.
### v2.21.0 (2023-05-31)

@@ -2,0 +39,0 @@ * * *

2

lib/chargebee.d.ts

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

export { _invoice } from "./resources/invoice";
export { _payment_reference_number } from "./resources/payment_reference_number";
export { _tax_withheld } from "./resources/tax_withheld";

@@ -83,2 +84,3 @@ export { _credit_note } from "./resources/credit_note";

get invoice(): typeof resources.Invoice;
get payment_reference_number(): typeof resources.PaymentReferenceNumber;
get tax_withheld(): typeof resources.TaxWithheld;

@@ -85,0 +87,0 @@ get credit_note(): typeof resources.CreditNote;

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

}
get payment_reference_number() {
return resources.PaymentReferenceNumber;
}
get tax_withheld() {

@@ -57,0 +60,0 @@ return resources.TaxWithheld;

2

lib/environment.js

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

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

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

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

deleted: boolean;
local_currency_exchange_rate?: number;
create_reason_code?: string;

@@ -255,3 +256,3 @@ vat_number_prefix?: string;

create_reason_code: string;
date?: number;
date: number;
status?: string;

@@ -258,0 +259,0 @@ total?: number;

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

retain_payment_source?: boolean;
payment_initiator?: string;
payment_method?: payment_method_collect_payment_params;

@@ -327,0 +328,0 @@ card?: card_collect_payment_params;

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

static events(params?: _hosted_page.events_params): RequestWrapper;
static view_voucher(params?: _hosted_page.view_voucher_params): RequestWrapper;
}

@@ -260,2 +261,6 @@ export declare namespace _hosted_page {

}
interface view_voucher_params {
payment_voucher?: payment_voucher_view_voucher_params;
customer?: customer_view_voucher_params;
}
interface subscription_checkout_new_params {

@@ -1602,2 +1607,8 @@ id?: string;

}
interface payment_voucher_view_voucher_params {
id: string;
}
interface customer_view_voucher_params {
locale?: string;
}
}

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

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

@@ -61,2 +61,3 @@ export { Subscription } from "./subscription";

export { Einvoice as InvoiceEinvoice } from "./invoice";
export { PaymentReferenceNumber } from "./payment_reference_number";
export { TaxWithheld } from "./tax_withheld";

@@ -63,0 +64,0 @@ export { CreditNote } from "./credit_note";

@@ -124,2 +124,4 @@ "use strict";

Object.defineProperty(exports, "InvoiceEinvoice", { enumerable: true, get: function () { return invoice_17.Einvoice; } });
var payment_reference_number_1 = require("./payment_reference_number");
Object.defineProperty(exports, "PaymentReferenceNumber", { enumerable: true, get: function () { return payment_reference_number_1.PaymentReferenceNumber; } });
var tax_withheld_1 = require("./tax_withheld");

@@ -126,0 +128,0 @@ Object.defineProperty(exports, "TaxWithheld", { enumerable: true, get: function () { return tax_withheld_1.TaxWithheld; } });

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

tax: number;
local_currency_exchange_rate?: number;
first_invoice?: boolean;

@@ -85,2 +86,3 @@ new_sales_amount?: number;

static download_einvoice(invoice_id: string, params?: any): RequestWrapper;
static list_payment_reference_numbers(params?: _invoice.invoice_list_payment_reference_numbers_params): RequestWrapper<ListResult>;
static add_charge(invoice_id: string, params?: _invoice.add_charge_params): RequestWrapper;

@@ -289,2 +291,3 @@ static add_addon_charge(invoice_id: string, params?: _invoice.add_addon_charge_params): RequestWrapper;

retain_payment_source?: boolean;
payment_initiator?: string;
shipping_address?: shipping_address_create_params;

@@ -349,2 +352,3 @@ card?: card_create_params;

payment_source_id?: string;
payment_initiator?: string;
}

@@ -369,2 +373,3 @@ interface charge_addon_params {

payment_source_id?: string;
payment_initiator?: string;
}

@@ -377,2 +382,3 @@ interface create_for_charge_item_params {

payment_source_id?: string;
payment_initiator?: string;
invoice_date?: number;

@@ -412,2 +418,3 @@ item_price?: item_price_create_for_charge_item_params;

line_items?: Array<line_items_import_invoice_params>;
payment_reference_numbers?: Array<payment_reference_numbers_import_invoice_params>;
line_item_tiers?: Array<line_item_tiers_import_invoice_params>;

@@ -464,2 +471,8 @@ discounts?: Array<discounts_import_invoice_params>;

}
interface invoice_list_payment_reference_numbers_params {
limit?: number;
offset?: string;
id?: filter._string;
payment_reference_number?: payment_reference_number_invoice_list_payment_reference_numbers_params;
}
interface add_charge_params {

@@ -503,2 +516,3 @@ amount: number;

comment?: string;
payment_initiator?: string;
}

@@ -1366,2 +1380,11 @@ interface record_payment_params {

}
interface payment_reference_numbers_import_invoice_params {
id?: string;
}
interface payment_reference_numbers_import_invoice_params {
type: string;
}
interface payment_reference_numbers_import_invoice_params {
number: string;
}
interface line_item_tiers_import_invoice_params {

@@ -1463,2 +1486,5 @@ line_item_id: string;

}
interface payment_reference_number_invoice_list_payment_reference_numbers_params {
number?: filter._string;
}
interface line_item_add_charge_params {

@@ -1465,0 +1491,0 @@ date_from?: number;

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

}
static list_payment_reference_numbers(params) {
return new request_wrapper_1.RequestWrapper([params], {
'methodName': 'list_payment_reference_numbers',
'httpMethod': 'GET',
'urlPrefix': '/invoices',
'urlSuffix': '/payment_reference_numbers',
'hasIdInUrl': false,
'isListReq': true,
}, chargebee_1.ChargeBee._env);
}
static add_charge(invoice_id, params) {

@@ -182,0 +192,0 @@ return new request_wrapper_1.RequestWrapper([invoice_id, params], {

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

get invoice(): resources.Invoice;
get payment_reference_number(): resources.PaymentReferenceNumber;
get tax_withheld(): resources.TaxWithheld;

@@ -21,0 +22,0 @@ get credit_note(): resources.CreditNote;

@@ -85,2 +85,6 @@ "use strict";

}
get payment_reference_number() {
let _payment_reference_number = this.get('payment_reference_number', 'PaymentReferenceNumber');
return _payment_reference_number;
}
get tax_withheld() {

@@ -87,0 +91,0 @@ let _tax_withheld = this.get('tax_withheld', 'TaxWithheld');

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

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

# Chargebee Typescript Client Library - API V2
[![npm](https://img.shields.io/npm/v/chargebee-typescript.svg?maxAge=25920000)](https://www.npmjs.com/package/chargebee-typescript)
[![npm](https://img.shields.io/npm/dt/chargebee-typescript.svg?maxAge=25920000)](https://www.npmjs.com/package/chargebee-typescript)
[![npm](https://img.shields.io/npm/v/chargebee-typescript.svg?maxAge=2)](https://www.npmjs.com/package/chargebee-typescript)
[![npm](https://img.shields.io/npm/dt/chargebee-typescript.svg?maxAge=2)](https://www.npmjs.com/package/chargebee-typescript)

@@ -6,0 +6,0 @@ This is a server-side [typescript](https://www.typescriptlang.org/) library for integrating with Chargebee. Sign up for a Chargebee account [here](https://www.chargebee.com).

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