From d7bd4c061fd922ad04d4f3338f7909c4e551757a Mon Sep 17 00:00:00 2001 From: xendit-devx-bot Date: Thu, 30 Jan 2025 06:23:03 +0000 Subject: [PATCH] Generated Xendit node SDK --- README.md | 4 +- docs/invoice/BankCode.md | 14 ++++ docs/invoice/ChannelPropertiesCards.md | 1 + ...PropertiesCardsInstallmentConfiguration.md | 14 ++++ ...stallmentConfigurationAllowedTermsInner.md | 14 ++++ docs/invoice/CreateInvoiceRequest.md | 3 +- docs/invoice/Invoice.md | 1 + docs/invoice/InvoiceCurrency.md | 2 + docs/invoice/QrCodeType.md | 2 + index.ts | 50 ++++++------- invoice/models/BankCode.ts | 7 ++ invoice/models/ChannelPropertiesCards.ts | 15 ++++ ...PropertiesCardsInstallmentConfiguration.ts | 74 +++++++++++++++++++ ...stallmentConfigurationAllowedTermsInner.ts | 67 +++++++++++++++++ invoice/models/CreateInvoiceRequest.ts | 16 +++- invoice/models/Invoice.ts | 8 ++ invoice/models/InvoiceCurrency.ts | 1 + invoice/models/QrCodeType.ts | 1 + invoice/models/index.ts | 2 + package.json | 12 +-- runtime.ts | 2 +- 21 files changed, 271 insertions(+), 39 deletions(-) create mode 100644 docs/invoice/ChannelPropertiesCardsInstallmentConfiguration.md create mode 100644 docs/invoice/ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner.md create mode 100644 invoice/models/ChannelPropertiesCardsInstallmentConfiguration.ts create mode 100644 invoice/models/ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner.ts diff --git a/README.md b/README.md index 6d3195b7..d61a18f2 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ The official Xendit Node SDK provides a simple and convenient way to call Xendit's REST API in applications written in Node. -* Package version: 6.0.0 +* Package version: 6.1.0 # Getting Started @@ -53,8 +53,8 @@ Find detailed API information and examples for each of our product’s by clicki * [PaymentRequest](docs/PaymentRequest.md) * [PaymentMethod](docs/PaymentMethod.md) * [Refund](docs/Refund.md) -* [Balance](docs/Balance.md) * [Transaction](docs/Transaction.md) +* [Balance](docs/Balance.md) * [Customer](docs/Customer.md) * [Payout](docs/Payout.md) diff --git a/docs/invoice/BankCode.md b/docs/invoice/BankCode.md index f4a940c2..5840c1d3 100644 --- a/docs/invoice/BankCode.md +++ b/docs/invoice/BankCode.md @@ -24,6 +24,20 @@ Representing the available bank channels used for invoice-related transactions. * `Cimb` (value: `'CIMB'`) + * `Vietcapital` (value: `'VIETCAPITAL'`) + + * `Woori` (value: `'WOORI'`) + + * `Pv` (value: `'PV'`) + + * `Msb` (value: `'MSB'`) + + * `Vpb` (value: `'VPB'`) + + * `Bidv` (value: `'BIDV'`) + + * `Cake` (value: `'CAKE'`) + * `Bnc` (value: `'BNC'`) * `Hana` (value: `'HANA'`) diff --git a/docs/invoice/ChannelPropertiesCards.md b/docs/invoice/ChannelPropertiesCards.md index 20523309..04f8d043 100644 --- a/docs/invoice/ChannelPropertiesCards.md +++ b/docs/invoice/ChannelPropertiesCards.md @@ -7,6 +7,7 @@ An object representing properties specific for credit card payment method. | Name | Type | Required | Description | Examples | |------------|:-------------:|:-------------:|-------------|:-------------:| | **allowedBins** |string[] | | An array of allowed BINs (6 or 8 digits) for credit card payments. | | | +| **installmentConfiguration** |[ChannelPropertiesCardsInstallmentConfiguration](ChannelPropertiesCardsInstallmentConfiguration.md) | | | | | diff --git a/docs/invoice/ChannelPropertiesCardsInstallmentConfiguration.md b/docs/invoice/ChannelPropertiesCardsInstallmentConfiguration.md new file mode 100644 index 00000000..2db48cc4 --- /dev/null +++ b/docs/invoice/ChannelPropertiesCardsInstallmentConfiguration.md @@ -0,0 +1,14 @@ +# ChannelPropertiesCardsInstallmentConfiguration + +An object to pre-set cards installment for a specific invoice + +## Properties + +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **allowFullPayment** |boolean | | Indicate whether full payment (without installment) is allowed | | | +| **allowedTerms** |[ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner[]](ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner.md) | | An object to set what kind (from specific bank / specific tenor) of cards installments will be available on a specific invoice | | | + + + +[[Back to README]](../../README.md) \ No newline at end of file diff --git a/docs/invoice/ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner.md b/docs/invoice/ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner.md new file mode 100644 index 00000000..86e177a2 --- /dev/null +++ b/docs/invoice/ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner.md @@ -0,0 +1,14 @@ +# ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner + + + +## Properties + +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **issuer** |string | | The bank code of the installment provider / issuer | | | +| **allowedTerms** |number[] | | An array containing list of installment tenor available to choose | | | + + + +[[Back to README]](../../README.md) \ No newline at end of file diff --git a/docs/invoice/CreateInvoiceRequest.md b/docs/invoice/CreateInvoiceRequest.md index e650c3f7..1a93723e 100644 --- a/docs/invoice/CreateInvoiceRequest.md +++ b/docs/invoice/CreateInvoiceRequest.md @@ -22,11 +22,12 @@ An object representing for an invoice creation request. | **shouldAuthenticateCreditCard** |boolean | | Indicates whether credit card authentication is required. | | | | **currency** |string | | The currency of the invoice. | | | | **reminderTime** |number | | The reminder time. | | | -| **local** |string | | The local. | | | +| **locale** |string | | The default language to display. | | | | **reminderTimeUnit** |string | | The unit of the reminder time. | | | | **items** |[InvoiceItem[]](InvoiceItem.md) | | An array of items included in the invoice. | | | | **fees** |[InvoiceFee[]](InvoiceFee.md) | | An array of fees associated with the invoice. | | | | **channelProperties** |[ChannelProperties](ChannelProperties.md) | | | | | +| **metadata** |object | | A free-format JSON for additional information that you may use. Object can be up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. | | | diff --git a/docs/invoice/Invoice.md b/docs/invoice/Invoice.md index 550a7b74..d15ce3a5 100644 --- a/docs/invoice/Invoice.md +++ b/docs/invoice/Invoice.md @@ -40,6 +40,7 @@ An object representing details for an invoice. | **customerNotificationPreference** |[NotificationPreference](NotificationPreference.md) | | | | | | **fees** |[InvoiceFee[]](InvoiceFee.md) | | An array of fees associated with the invoice. | | | | **channelProperties** |[ChannelProperties](ChannelProperties.md) | | | | | +| **metadata** |object | | A free-format JSON for additional information that you may use. Object can be up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. | | | diff --git a/docs/invoice/InvoiceCurrency.md b/docs/invoice/InvoiceCurrency.md index bfc3bc94..eee97d97 100644 --- a/docs/invoice/InvoiceCurrency.md +++ b/docs/invoice/InvoiceCurrency.md @@ -16,6 +16,8 @@ Representing the currency used for an invoice. * `Php` (value: `'PHP'`) + * `Myr` (value: `'MYR'`) + * `XenditEnumDefaultFallback` (value: `UNKNOWN_ENUM_VALUE`) If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. diff --git a/docs/invoice/QrCodeType.md b/docs/invoice/QrCodeType.md index e7b0bdd8..47dd9d2b 100644 --- a/docs/invoice/QrCodeType.md +++ b/docs/invoice/QrCodeType.md @@ -10,6 +10,8 @@ Representing the available QR Code channels used for invoice-related transaction * `Promptpay` (value: `'PROMPTPAY'`) + * `Qrph` (value: `'QRPH'`) + * `XenditEnumDefaultFallback` (value: `UNKNOWN_ENUM_VALUE`) If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. diff --git a/index.ts b/index.ts index 4a59d718..e0175ba2 100644 --- a/index.ts +++ b/index.ts @@ -2,27 +2,27 @@ /* eslint-disable */ export * from './runtime'; -import { Customer } from './customer'; -export { Customer } from './customer'; +import { Invoice } from './invoice'; +export { Invoice } from './invoice'; + +import { Payout } from './payout'; +export { Payout } from './payout'; + +import { PaymentMethod } from './payment_method'; +export { PaymentMethod } from './payment_method'; import { PaymentRequest } from './payment_request'; export { PaymentRequest } from './payment_request'; -import { Payout } from './payout'; -export { Payout } from './payout'; +import { Transaction, Balance } from './balance_and_transaction'; +export { Transaction, Balance } from './balance_and_transaction'; -import { Invoice } from './invoice'; -export { Invoice } from './invoice'; +import { Customer } from './customer'; +export { Customer } from './customer'; import { Refund } from './refund'; export { Refund } from './refund'; -import { Balance, Transaction } from './balance_and_transaction'; -export { Balance, Transaction } from './balance_and_transaction'; - -import { PaymentMethod } from './payment_method'; -export { PaymentMethod } from './payment_method'; - export interface XenditOpts { secretKey: string; @@ -30,14 +30,14 @@ export interface XenditOpts { } export class Xendit { opts: XenditOpts; - Customer: Customer; - PaymentRequest: PaymentRequest; - Payout: Payout; Invoice: Invoice; - Refund: Refund; - Balance: Balance; - Transaction: Transaction; + Payout: Payout; PaymentMethod: PaymentMethod; + PaymentRequest: PaymentRequest; + Transaction: Transaction; + Balance: Balance; + Customer: Customer; + Refund: Refund; constructor({ secretKey: _secretKey, xenditURL: _xenditURL }: XenditOpts) { @@ -58,20 +58,20 @@ export class Xendit { } - this.Customer = new Customer(this.opts); - - this.PaymentRequest = new PaymentRequest(this.opts); + this.Invoice = new Invoice(this.opts); this.Payout = new Payout(this.opts); - this.Invoice = new Invoice(this.opts); + this.PaymentMethod = new PaymentMethod(this.opts); - this.Refund = new Refund(this.opts); + this.PaymentRequest = new PaymentRequest(this.opts); - this.Balance = new Balance(this.opts); this.Transaction = new Transaction(this.opts); + this.Balance = new Balance(this.opts); - this.PaymentMethod = new PaymentMethod(this.opts); + this.Customer = new Customer(this.opts); + + this.Refund = new Refund(this.opts); } } diff --git a/invoice/models/BankCode.ts b/invoice/models/BankCode.ts index 76db0f85..df6efa22 100644 --- a/invoice/models/BankCode.ts +++ b/invoice/models/BankCode.ts @@ -21,6 +21,13 @@ export const BankCode = { Bjb: 'BJB', SahabatSampoerna: 'SAHABAT_SAMPOERNA', Cimb: 'CIMB', + Vietcapital: 'VIETCAPITAL', + Woori: 'WOORI', + Pv: 'PV', + Msb: 'MSB', + Vpb: 'VPB', + Bidv: 'BIDV', + Cake: 'CAKE', Bnc: 'BNC', Hana: 'HANA', Muamalat: 'MUAMALAT', diff --git a/invoice/models/ChannelPropertiesCards.ts b/invoice/models/ChannelPropertiesCards.ts index ce2ee702..8e248373 100644 --- a/invoice/models/ChannelPropertiesCards.ts +++ b/invoice/models/ChannelPropertiesCards.ts @@ -7,6 +7,13 @@ */ import { exists, mapValues } from '../../runtime'; +import type { ChannelPropertiesCardsInstallmentConfiguration } from './ChannelPropertiesCardsInstallmentConfiguration'; +import { + ChannelPropertiesCardsInstallmentConfigurationFromJSON, + ChannelPropertiesCardsInstallmentConfigurationFromJSONTyped, + ChannelPropertiesCardsInstallmentConfigurationToJSON, +} from './ChannelPropertiesCardsInstallmentConfiguration'; + /** * An object representing properties specific for credit card payment method. * @export @@ -19,6 +26,12 @@ export interface ChannelPropertiesCards { * @memberof ChannelPropertiesCards */ allowedBins?: Array; + /** + * + * @type {ChannelPropertiesCardsInstallmentConfiguration} + * @memberof ChannelPropertiesCards + */ + installmentConfiguration?: ChannelPropertiesCardsInstallmentConfiguration; } /** @@ -41,6 +54,7 @@ export function ChannelPropertiesCardsFromJSONTyped(json: any, ignoreDiscriminat return { 'allowedBins': !exists(json, 'allowed_bins') ? undefined : json['allowed_bins'], + 'installmentConfiguration': !exists(json, 'installment_configuration') ? undefined : ChannelPropertiesCardsInstallmentConfigurationFromJSON(json['installment_configuration']), }; } @@ -54,6 +68,7 @@ export function ChannelPropertiesCardsToJSON(value?: ChannelPropertiesCards | nu return { 'allowed_bins': value.allowedBins, + 'installment_configuration': ChannelPropertiesCardsInstallmentConfigurationToJSON(value.installmentConfiguration), }; } diff --git a/invoice/models/ChannelPropertiesCardsInstallmentConfiguration.ts b/invoice/models/ChannelPropertiesCardsInstallmentConfiguration.ts new file mode 100644 index 00000000..a296f998 --- /dev/null +++ b/invoice/models/ChannelPropertiesCardsInstallmentConfiguration.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * NOTE: This file is auto generated by Xendit. + * Do not edit the class manually. + * Improvements? Share your ideas at https://github.com/xendit/xendit-node + */ + +import { exists, mapValues } from '../../runtime'; +import type { ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner } from './ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner'; +import { + ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInnerFromJSON, + ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInnerFromJSONTyped, + ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInnerToJSON, +} from './ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner'; + +/** + * An object to pre-set cards installment for a specific invoice + * @export + * @interface ChannelPropertiesCardsInstallmentConfiguration + */ +export interface ChannelPropertiesCardsInstallmentConfiguration { + /** + * Indicate whether full payment (without installment) is allowed + * @type {boolean} + * @memberof ChannelPropertiesCardsInstallmentConfiguration + */ + allowFullPayment?: boolean; + /** + * An object to set what kind (from specific bank / specific tenor) of cards installments will be available on a specific invoice + * @type {Array} + * @memberof ChannelPropertiesCardsInstallmentConfiguration + */ + allowedTerms?: Array; +} + +/** + * Check if a given object implements the ChannelPropertiesCardsInstallmentConfiguration interface. + */ +export function instanceOfChannelPropertiesCardsInstallmentConfiguration(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function ChannelPropertiesCardsInstallmentConfigurationFromJSON(json: any): ChannelPropertiesCardsInstallmentConfiguration { + return ChannelPropertiesCardsInstallmentConfigurationFromJSONTyped(json, false); +} + +export function ChannelPropertiesCardsInstallmentConfigurationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChannelPropertiesCardsInstallmentConfiguration { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'allowFullPayment': !exists(json, 'allow_full_payment') ? undefined : json['allow_full_payment'], + 'allowedTerms': !exists(json, 'allowed_terms') ? undefined : ((json['allowed_terms'] as Array).map(ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInnerFromJSON)), + }; +} + +export function ChannelPropertiesCardsInstallmentConfigurationToJSON(value?: ChannelPropertiesCardsInstallmentConfiguration | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'allow_full_payment': value.allowFullPayment, + 'allowed_terms': value.allowedTerms === undefined ? undefined : ((value.allowedTerms as Array).map(ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInnerToJSON)), + }; +} + diff --git a/invoice/models/ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner.ts b/invoice/models/ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner.ts new file mode 100644 index 00000000..4c7d9bd8 --- /dev/null +++ b/invoice/models/ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner.ts @@ -0,0 +1,67 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * NOTE: This file is auto generated by Xendit. + * Do not edit the class manually. + * Improvements? Share your ideas at https://github.com/xendit/xendit-node + */ + +import { exists, mapValues } from '../../runtime'; +/** + * + * @export + * @interface ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner + */ +export interface ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner { + /** + * The bank code of the installment provider / issuer + * @type {string} + * @memberof ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner + */ + issuer?: string; + /** + * An array containing list of installment tenor available to choose + * @type {Array} + * @memberof ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner + */ + allowedTerms?: Array; +} + +/** + * Check if a given object implements the ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner interface. + */ +export function instanceOfChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInnerFromJSON(json: any): ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner { + return ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInnerFromJSONTyped(json, false); +} + +export function ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'issuer': !exists(json, 'issuer') ? undefined : json['issuer'], + 'allowedTerms': !exists(json, 'allowed_terms') ? undefined : json['allowed_terms'], + }; +} + +export function ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInnerToJSON(value?: ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'issuer': value.issuer, + 'allowed_terms': value.allowedTerms, + }; +} + diff --git a/invoice/models/CreateInvoiceRequest.ts b/invoice/models/CreateInvoiceRequest.ts index 51354e41..f089fb70 100644 --- a/invoice/models/CreateInvoiceRequest.ts +++ b/invoice/models/CreateInvoiceRequest.ts @@ -141,11 +141,11 @@ export interface CreateInvoiceRequest { */ reminderTime?: number; /** - * The local. + * The default language to display. * @type {string} * @memberof CreateInvoiceRequest */ - local?: string; + locale?: string; /** * The unit of the reminder time. * @type {string} @@ -170,6 +170,12 @@ export interface CreateInvoiceRequest { * @memberof CreateInvoiceRequest */ channelProperties?: ChannelProperties; + /** + * A free-format JSON for additional information that you may use. Object can be up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. + * @type {object} + * @memberof CreateInvoiceRequest + */ + metadata?: object; } /** @@ -209,11 +215,12 @@ export function CreateInvoiceRequestFromJSONTyped(json: any, ignoreDiscriminator 'shouldAuthenticateCreditCard': !exists(json, 'should_authenticate_credit_card') ? undefined : json['should_authenticate_credit_card'], 'currency': !exists(json, 'currency') ? undefined : json['currency'], 'reminderTime': !exists(json, 'reminder_time') ? undefined : json['reminder_time'], - 'local': !exists(json, 'local') ? undefined : json['local'], + 'locale': !exists(json, 'locale') ? undefined : json['locale'], 'reminderTimeUnit': !exists(json, 'reminder_time_unit') ? undefined : json['reminder_time_unit'], 'items': !exists(json, 'items') ? undefined : ((json['items'] as Array).map(InvoiceItemFromJSON)), 'fees': !exists(json, 'fees') ? undefined : ((json['fees'] as Array).map(InvoiceFeeFromJSON)), 'channelProperties': !exists(json, 'channel_properties') ? undefined : ChannelPropertiesFromJSON(json['channel_properties']), + 'metadata': !exists(json, 'metadata') ? undefined : json['metadata'], }; } @@ -242,11 +249,12 @@ export function CreateInvoiceRequestToJSON(value?: CreateInvoiceRequest | null): 'should_authenticate_credit_card': value.shouldAuthenticateCreditCard, 'currency': value.currency, 'reminder_time': value.reminderTime, - 'local': value.local, + 'locale': value.locale, 'reminder_time_unit': value.reminderTimeUnit, 'items': value.items === undefined ? undefined : ((value.items as Array).map(InvoiceItemToJSON)), 'fees': value.fees === undefined ? undefined : ((value.fees as Array).map(InvoiceFeeToJSON)), 'channel_properties': ChannelPropertiesToJSON(value.channelProperties), + 'metadata': value.metadata, }; } diff --git a/invoice/models/Invoice.ts b/invoice/models/Invoice.ts index 2427a4bb..e5a4af0f 100644 --- a/invoice/models/Invoice.ts +++ b/invoice/models/Invoice.ts @@ -302,6 +302,12 @@ export interface Invoice { * @memberof Invoice */ channelProperties?: ChannelProperties; + /** + * A free-format JSON for additional information that you may use. Object can be up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. + * @type {object} + * @memberof Invoice + */ + metadata?: object; } /** @@ -374,6 +380,7 @@ export function InvoiceFromJSONTyped(json: any, ignoreDiscriminator: boolean): I 'customerNotificationPreference': !exists(json, 'customer_notification_preference') ? undefined : NotificationPreferenceFromJSON(json['customer_notification_preference']), 'fees': !exists(json, 'fees') ? undefined : ((json['fees'] as Array).map(InvoiceFeeFromJSON)), 'channelProperties': !exists(json, 'channel_properties') ? undefined : ChannelPropertiesFromJSON(json['channel_properties']), + 'metadata': !exists(json, 'metadata') ? undefined : json['metadata'], }; } @@ -420,6 +427,7 @@ export function InvoiceToJSON(value?: Invoice | null): any { 'customer_notification_preference': NotificationPreferenceToJSON(value.customerNotificationPreference), 'fees': value.fees === undefined ? undefined : ((value.fees as Array).map(InvoiceFeeToJSON)), 'channel_properties': ChannelPropertiesToJSON(value.channelProperties), + 'metadata': value.metadata, }; } diff --git a/invoice/models/InvoiceCurrency.ts b/invoice/models/InvoiceCurrency.ts index 5d4c4a8c..0f49dba6 100644 --- a/invoice/models/InvoiceCurrency.ts +++ b/invoice/models/InvoiceCurrency.ts @@ -17,6 +17,7 @@ export const InvoiceCurrency = { Thb: 'THB', Vnd: 'VND', Php: 'PHP', + Myr: 'MYR', XenditEnumDefaultFallback: "UNKNOWN_ENUM_VALUE" } as const; export type InvoiceCurrency = typeof InvoiceCurrency[keyof typeof InvoiceCurrency]; diff --git a/invoice/models/QrCodeType.ts b/invoice/models/QrCodeType.ts index 91b31609..677d7563 100644 --- a/invoice/models/QrCodeType.ts +++ b/invoice/models/QrCodeType.ts @@ -14,6 +14,7 @@ export const QrCodeType = { Qris: 'QRIS', Promptpay: 'PROMPTPAY', + Qrph: 'QRPH', XenditEnumDefaultFallback: "UNKNOWN_ENUM_VALUE" } as const; export type QrCodeType = typeof QrCodeType[keyof typeof QrCodeType]; diff --git a/invoice/models/index.ts b/invoice/models/index.ts index 8c75b906..2303191e 100644 --- a/invoice/models/index.ts +++ b/invoice/models/index.ts @@ -7,6 +7,8 @@ export * from './Bank'; export * from './BankCode'; export * from './ChannelProperties'; export * from './ChannelPropertiesCards'; +export * from './ChannelPropertiesCardsInstallmentConfiguration'; +export * from './ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner'; export * from './CreateInvoiceRequest'; export * from './CustomerObject'; export * from './DirectDebit'; diff --git a/package.json b/package.json index 3a8c3193..320e1c89 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xendit-node", - "version": "6.0.0", + "version": "6.1.0", "description": "OpenAPI client for xendit-node", "author": "OpenAPI-Generator", "repository": { @@ -8,13 +8,13 @@ "url": "https://github.com/xendit/xendit-node.git" }, "files": [ - "customer/**", - "payment_request/**", - "payout/**", "invoice/**", - "refund/**", - "balance_and_transaction/**", + "payout/**", "payment_method/**", + "payment_request/**", + "balance_and_transaction/**", + "customer/**", + "refund/**", "docs/**", "images/**", "README.md", diff --git a/runtime.ts b/runtime.ts index 7500f88e..083d37f7 100644 --- a/runtime.ts +++ b/runtime.ts @@ -136,7 +136,7 @@ export class BaseAPI { const headers = Object.assign({}, this.configuration.headers, context.headers); Object.keys(headers).forEach(key => headers[key] === undefined ? delete headers[key] : {}); headers['xendit-lib'] = 'node'; - headers['xendit-lib-ver'] = '6.0.0'; + headers['xendit-lib-ver'] = '6.1.0'; const initParams = { method: context.method,