xendit-node
Advanced tools
Comparing version 4.2.0 to 4.3.0
@@ -29,2 +29,6 @@ # BankCode | ||
* `Hana` (value: `'HANA'`) | ||
* `Muamalat` (value: `'MUAMALAT'`) | ||
* `XenditEnumDefaultFallback` (value: `UNKNOWN_ENUM_VALUE`) | ||
@@ -31,0 +35,0 @@ |
@@ -29,2 +29,3 @@ # CreateInvoiceRequest | ||
| **fees** |[InvoiceFee[]](InvoiceFee.md) | | An array of fees associated with the invoice. | | | | ||
| **channelProperties** |[ChannelProperties](ChannelProperties.md) | | | | | | ||
@@ -31,0 +32,0 @@ |
@@ -47,2 +47,80 @@ # DirectDebitType | ||
* `DdPublicFpx` (value: `'DD_PUBLIC_FPX'`) | ||
* `DdAmbankFpx` (value: `'DD_AMBANK_FPX'`) | ||
* `DdKfhFpx` (value: `'DD_KFH_FPX'`) | ||
* `DdAgroFpx` (value: `'DD_AGRO_FPX'`) | ||
* `DdAffinFpx` (value: `'DD_AFFIN_FPX'`) | ||
* `DdAllianceFpx` (value: `'DD_ALLIANCE_FPX'`) | ||
* `DdMuamalatFpx` (value: `'DD_MUAMALAT_FPX'`) | ||
* `DdHlbFpx` (value: `'DD_HLB_FPX'`) | ||
* `DdIslamFpx` (value: `'DD_ISLAM_FPX'`) | ||
* `DdRakyatFpx` (value: `'DD_RAKYAT_FPX'`) | ||
* `DdCimbFpx` (value: `'DD_CIMB_FPX'`) | ||
* `DdUobFpx` (value: `'DD_UOB_FPX'`) | ||
* `DdBocFpx` (value: `'DD_BOC_FPX'`) | ||
* `DdBsnFpx` (value: `'DD_BSN_FPX'`) | ||
* `DdOcbcFpx` (value: `'DD_OCBC_FPX'`) | ||
* `DdHsbcFpx` (value: `'DD_HSBC_FPX'`) | ||
* `DdSchFpx` (value: `'DD_SCH_FPX'`) | ||
* `DdMayb2UFpx` (value: `'DD_MAYB2U_FPX'`) | ||
* `DdRhbFpx` (value: `'DD_RHB_FPX'`) | ||
* `DdUobFpxBusiness` (value: `'DD_UOB_FPX_BUSINESS'`) | ||
* `DdAgroFpxBusiness` (value: `'DD_AGRO_FPX_BUSINESS'`) | ||
* `DdAllianceFpxBusiness` (value: `'DD_ALLIANCE_FPX_BUSINESS'`) | ||
* `DdAmbankFpxBusiness` (value: `'DD_AMBANK_FPX_BUSINESS'`) | ||
* `DdIslamFpxBusiness` (value: `'DD_ISLAM_FPX_BUSINESS'`) | ||
* `DdMuamalatFpxBusiness` (value: `'DD_MUAMALAT_FPX_BUSINESS'`) | ||
* `DdHlbFpxBusiness` (value: `'DD_HLB_FPX_BUSINESS'`) | ||
* `DdHsbcFpxBusiness` (value: `'DD_HSBC_FPX_BUSINESS'`) | ||
* `DdRakyatFpxBusiness` (value: `'DD_RAKYAT_FPX_BUSINESS'`) | ||
* `DdKfhFpxBusiness` (value: `'DD_KFH_FPX_BUSINESS'`) | ||
* `DdOcbcFpxBusiness` (value: `'DD_OCBC_FPX_BUSINESS'`) | ||
* `DdPublicFpxBusiness` (value: `'DD_PUBLIC_FPX_BUSINESS'`) | ||
* `DdRhbFpxBusiness` (value: `'DD_RHB_FPX_BUSINESS'`) | ||
* `DdSchFpxBusiness` (value: `'DD_SCH_FPX_BUSINESS'`) | ||
* `DdCitibankFpxBusiness` (value: `'DD_CITIBANK_FPX_BUSINESS'`) | ||
* `DdBnpFpxBusiness` (value: `'DD_BNP_FPX_BUSINESS'`) | ||
* `DdDeutscheFpxBusiness` (value: `'DD_DEUTSCHE_FPX_BUSINESS'`) | ||
* `DdMayb2EFpxBusiness` (value: `'DD_MAYB2E_FPX_BUSINESS'`) | ||
* `DdCimbFpxBusiness` (value: `'DD_CIMB_FPX_BUSINESS'`) | ||
* `DdAffinFpxBusiness` (value: `'DD_AFFIN_FPX_BUSINESS'`) | ||
* `XenditEnumDefaultFallback` (value: `UNKNOWN_ENUM_VALUE`) | ||
@@ -49,0 +127,0 @@ |
@@ -39,2 +39,10 @@ # EwalletType | ||
* `Linepay` (value: `'LINEPAY'`) | ||
* `Truemoney` (value: `'TRUEMONEY'`) | ||
* `Wechatpay` (value: `'WECHATPAY'`) | ||
* `Touchngo` (value: `'TOUCHNGO'`) | ||
* `XenditEnumDefaultFallback` (value: `UNKNOWN_ENUM_VALUE`) | ||
@@ -41,0 +49,0 @@ |
@@ -42,2 +42,3 @@ # Invoice | ||
| **fees** |[InvoiceFee[]](InvoiceFee.md) | | An array of fees associated with the invoice. | | | | ||
| **channelProperties** |[ChannelProperties](ChannelProperties.md) | | | | | | ||
@@ -44,0 +45,0 @@ |
@@ -29,2 +29,4 @@ # InvoicePaymentMethod | ||
* `Cryptocurrency` (value: `'CRYPTOCURRENCY'`) | ||
* `XenditEnumDefaultFallback` (value: `UNKNOWN_ENUM_VALUE`) | ||
@@ -31,0 +33,0 @@ |
@@ -11,3 +11,2 @@ # NotificationPreference | ||
| **invoiceReminder** |[NotificationChannel[]](NotificationChannel.md) | | Notification channels for invoice reminders. | | | | ||
| **invoiceExpired** |[NotificationChannel[]](NotificationChannel.md) | | Notification channels for expired invoices. | | | | ||
| **invoicePaid** |[NotificationChannel[]](NotificationChannel.md) | | Notification channels for when an invoice is paid. | | | | ||
@@ -14,0 +13,0 @@ |
export * from './runtime'; | ||
import { PaymentRequest } from './payment_request'; | ||
export { PaymentRequest } from './payment_request'; | ||
import { Invoice } from './invoice'; | ||
export { Invoice } from './invoice'; | ||
import { Transaction, Balance } from './balance_and_transaction'; | ||
export { Transaction, Balance } from './balance_and_transaction'; | ||
import { Refund } from './refund'; | ||
export { Refund } from './refund'; | ||
import { Balance, Transaction } from './balance_and_transaction'; | ||
export { Balance, Transaction } from './balance_and_transaction'; | ||
import { Invoice } from './invoice'; | ||
export { Invoice } from './invoice'; | ||
import { PaymentRequest } from './payment_request'; | ||
export { PaymentRequest } from './payment_request'; | ||
import { Customer } from './customer'; | ||
export { Customer } from './customer'; | ||
import { PaymentMethod } from './payment_method'; | ||
@@ -16,2 +14,4 @@ export { PaymentMethod } from './payment_method'; | ||
export { Payout } from './payout'; | ||
import { Customer } from './customer'; | ||
export { Customer } from './customer'; | ||
export interface XenditOpts { | ||
@@ -23,12 +23,12 @@ secretKey: string; | ||
opts: XenditOpts; | ||
PaymentRequest: PaymentRequest; | ||
Invoice: Invoice; | ||
Transaction: Transaction; | ||
Balance: Balance; | ||
Refund: Refund; | ||
Balance: Balance; | ||
Transaction: Transaction; | ||
Invoice: Invoice; | ||
PaymentRequest: PaymentRequest; | ||
Customer: Customer; | ||
PaymentMethod: PaymentMethod; | ||
Payout: Payout; | ||
Customer: Customer; | ||
constructor({ secretKey: _secretKey, xenditURL: _xenditURL }: XenditOpts); | ||
} | ||
export default Xendit; |
38
index.js
@@ -17,22 +17,19 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Xendit = exports.Payout = exports.PaymentMethod = exports.Customer = exports.PaymentRequest = exports.Invoice = exports.Transaction = exports.Balance = exports.Refund = void 0; | ||
exports.Xendit = exports.Customer = exports.Payout = exports.PaymentMethod = exports.Refund = exports.Balance = exports.Transaction = exports.Invoice = exports.PaymentRequest = void 0; | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
__exportStar(require("./runtime"), exports); | ||
const payment_request_1 = require("./payment_request"); | ||
var payment_request_2 = require("./payment_request"); | ||
Object.defineProperty(exports, "PaymentRequest", { enumerable: true, get: function () { return payment_request_2.PaymentRequest; } }); | ||
const invoice_1 = require("./invoice"); | ||
var invoice_2 = require("./invoice"); | ||
Object.defineProperty(exports, "Invoice", { enumerable: true, get: function () { return invoice_2.Invoice; } }); | ||
const balance_and_transaction_1 = require("./balance_and_transaction"); | ||
var balance_and_transaction_2 = require("./balance_and_transaction"); | ||
Object.defineProperty(exports, "Transaction", { enumerable: true, get: function () { return balance_and_transaction_2.Transaction; } }); | ||
Object.defineProperty(exports, "Balance", { enumerable: true, get: function () { return balance_and_transaction_2.Balance; } }); | ||
const refund_1 = require("./refund"); | ||
var refund_2 = require("./refund"); | ||
Object.defineProperty(exports, "Refund", { enumerable: true, get: function () { return refund_2.Refund; } }); | ||
const balance_and_transaction_1 = require("./balance_and_transaction"); | ||
var balance_and_transaction_2 = require("./balance_and_transaction"); | ||
Object.defineProperty(exports, "Balance", { enumerable: true, get: function () { return balance_and_transaction_2.Balance; } }); | ||
Object.defineProperty(exports, "Transaction", { enumerable: true, get: function () { return balance_and_transaction_2.Transaction; } }); | ||
const invoice_1 = require("./invoice"); | ||
var invoice_2 = require("./invoice"); | ||
Object.defineProperty(exports, "Invoice", { enumerable: true, get: function () { return invoice_2.Invoice; } }); | ||
const payment_request_1 = require("./payment_request"); | ||
var payment_request_2 = require("./payment_request"); | ||
Object.defineProperty(exports, "PaymentRequest", { enumerable: true, get: function () { return payment_request_2.PaymentRequest; } }); | ||
const customer_1 = require("./customer"); | ||
var customer_2 = require("./customer"); | ||
Object.defineProperty(exports, "Customer", { enumerable: true, get: function () { return customer_2.Customer; } }); | ||
const payment_method_1 = require("./payment_method"); | ||
@@ -44,2 +41,5 @@ var payment_method_2 = require("./payment_method"); | ||
Object.defineProperty(exports, "Payout", { enumerable: true, get: function () { return payout_2.Payout; } }); | ||
const customer_1 = require("./customer"); | ||
var customer_2 = require("./customer"); | ||
Object.defineProperty(exports, "Customer", { enumerable: true, get: function () { return customer_2.Customer; } }); | ||
class Xendit { | ||
@@ -62,10 +62,10 @@ constructor({ secretKey: _secretKey, xenditURL: _xenditURL }) { | ||
}; | ||
this.PaymentRequest = new payment_request_1.PaymentRequest(this.opts); | ||
this.Invoice = new invoice_1.Invoice(this.opts); | ||
this.Transaction = new balance_and_transaction_1.Transaction(this.opts); | ||
this.Balance = new balance_and_transaction_1.Balance(this.opts); | ||
this.Refund = new refund_1.Refund(this.opts); | ||
this.Balance = new balance_and_transaction_1.Balance(this.opts); | ||
this.Transaction = new balance_and_transaction_1.Transaction(this.opts); | ||
this.Invoice = new invoice_1.Invoice(this.opts); | ||
this.PaymentRequest = new payment_request_1.PaymentRequest(this.opts); | ||
this.Customer = new customer_1.Customer(this.opts); | ||
this.PaymentMethod = new payment_method_1.PaymentMethod(this.opts); | ||
this.Payout = new payout_1.Payout(this.opts); | ||
this.Customer = new customer_1.Customer(this.opts); | ||
} | ||
@@ -72,0 +72,0 @@ } |
@@ -21,2 +21,4 @@ /** | ||
readonly Bnc: "BNC"; | ||
readonly Hana: "HANA"; | ||
readonly Muamalat: "MUAMALAT"; | ||
readonly XenditEnumDefaultFallback: "UNKNOWN_ENUM_VALUE"; | ||
@@ -23,0 +25,0 @@ }; |
@@ -26,2 +26,4 @@ "use strict"; | ||
Bnc: 'BNC', | ||
Hana: 'HANA', | ||
Muamalat: 'MUAMALAT', | ||
XenditEnumDefaultFallback: "UNKNOWN_ENUM_VALUE" | ||
@@ -28,0 +30,0 @@ }; |
@@ -6,2 +6,3 @@ /** | ||
*/ | ||
import type { ChannelProperties } from './ChannelProperties'; | ||
import type { CustomerObject } from './CustomerObject'; | ||
@@ -137,2 +138,8 @@ import type { InvoiceFee } from './InvoiceFee'; | ||
fees?: Array<InvoiceFee>; | ||
/** | ||
* | ||
* @type {ChannelProperties} | ||
* @memberof CreateInvoiceRequest | ||
*/ | ||
channelProperties?: ChannelProperties; | ||
} | ||
@@ -139,0 +146,0 @@ /** |
@@ -12,2 +12,3 @@ "use strict"; | ||
const runtime_1 = require("../../runtime"); | ||
const ChannelProperties_1 = require("./ChannelProperties"); | ||
const CustomerObject_1 = require("./CustomerObject"); | ||
@@ -56,2 +57,3 @@ const InvoiceFee_1 = require("./InvoiceFee"); | ||
'fees': !(0, runtime_1.exists)(json, 'fees') ? undefined : (json['fees'].map(InvoiceFee_1.InvoiceFeeFromJSON)), | ||
'channelProperties': !(0, runtime_1.exists)(json, 'channel_properties') ? undefined : (0, ChannelProperties_1.ChannelPropertiesFromJSON)(json['channel_properties']), | ||
}; | ||
@@ -88,4 +90,5 @@ } | ||
'fees': value.fees === undefined ? undefined : (value.fees.map(InvoiceFee_1.InvoiceFeeToJSON)), | ||
'channel_properties': (0, ChannelProperties_1.ChannelPropertiesToJSON)(value.channelProperties), | ||
}; | ||
} | ||
exports.CreateInvoiceRequestToJSON = CreateInvoiceRequestToJSON; |
@@ -30,2 +30,41 @@ /** | ||
readonly DcChinabank: "DC_CHINABANK"; | ||
readonly DdPublicFpx: "DD_PUBLIC_FPX"; | ||
readonly DdAmbankFpx: "DD_AMBANK_FPX"; | ||
readonly DdKfhFpx: "DD_KFH_FPX"; | ||
readonly DdAgroFpx: "DD_AGRO_FPX"; | ||
readonly DdAffinFpx: "DD_AFFIN_FPX"; | ||
readonly DdAllianceFpx: "DD_ALLIANCE_FPX"; | ||
readonly DdMuamalatFpx: "DD_MUAMALAT_FPX"; | ||
readonly DdHlbFpx: "DD_HLB_FPX"; | ||
readonly DdIslamFpx: "DD_ISLAM_FPX"; | ||
readonly DdRakyatFpx: "DD_RAKYAT_FPX"; | ||
readonly DdCimbFpx: "DD_CIMB_FPX"; | ||
readonly DdUobFpx: "DD_UOB_FPX"; | ||
readonly DdBocFpx: "DD_BOC_FPX"; | ||
readonly DdBsnFpx: "DD_BSN_FPX"; | ||
readonly DdOcbcFpx: "DD_OCBC_FPX"; | ||
readonly DdHsbcFpx: "DD_HSBC_FPX"; | ||
readonly DdSchFpx: "DD_SCH_FPX"; | ||
readonly DdMayb2UFpx: "DD_MAYB2U_FPX"; | ||
readonly DdRhbFpx: "DD_RHB_FPX"; | ||
readonly DdUobFpxBusiness: "DD_UOB_FPX_BUSINESS"; | ||
readonly DdAgroFpxBusiness: "DD_AGRO_FPX_BUSINESS"; | ||
readonly DdAllianceFpxBusiness: "DD_ALLIANCE_FPX_BUSINESS"; | ||
readonly DdAmbankFpxBusiness: "DD_AMBANK_FPX_BUSINESS"; | ||
readonly DdIslamFpxBusiness: "DD_ISLAM_FPX_BUSINESS"; | ||
readonly DdMuamalatFpxBusiness: "DD_MUAMALAT_FPX_BUSINESS"; | ||
readonly DdHlbFpxBusiness: "DD_HLB_FPX_BUSINESS"; | ||
readonly DdHsbcFpxBusiness: "DD_HSBC_FPX_BUSINESS"; | ||
readonly DdRakyatFpxBusiness: "DD_RAKYAT_FPX_BUSINESS"; | ||
readonly DdKfhFpxBusiness: "DD_KFH_FPX_BUSINESS"; | ||
readonly DdOcbcFpxBusiness: "DD_OCBC_FPX_BUSINESS"; | ||
readonly DdPublicFpxBusiness: "DD_PUBLIC_FPX_BUSINESS"; | ||
readonly DdRhbFpxBusiness: "DD_RHB_FPX_BUSINESS"; | ||
readonly DdSchFpxBusiness: "DD_SCH_FPX_BUSINESS"; | ||
readonly DdCitibankFpxBusiness: "DD_CITIBANK_FPX_BUSINESS"; | ||
readonly DdBnpFpxBusiness: "DD_BNP_FPX_BUSINESS"; | ||
readonly DdDeutscheFpxBusiness: "DD_DEUTSCHE_FPX_BUSINESS"; | ||
readonly DdMayb2EFpxBusiness: "DD_MAYB2E_FPX_BUSINESS"; | ||
readonly DdCimbFpxBusiness: "DD_CIMB_FPX_BUSINESS"; | ||
readonly DdAffinFpxBusiness: "DD_AFFIN_FPX_BUSINESS"; | ||
readonly XenditEnumDefaultFallback: "UNKNOWN_ENUM_VALUE"; | ||
@@ -32,0 +71,0 @@ }; |
@@ -35,2 +35,41 @@ "use strict"; | ||
DcChinabank: 'DC_CHINABANK', | ||
DdPublicFpx: 'DD_PUBLIC_FPX', | ||
DdAmbankFpx: 'DD_AMBANK_FPX', | ||
DdKfhFpx: 'DD_KFH_FPX', | ||
DdAgroFpx: 'DD_AGRO_FPX', | ||
DdAffinFpx: 'DD_AFFIN_FPX', | ||
DdAllianceFpx: 'DD_ALLIANCE_FPX', | ||
DdMuamalatFpx: 'DD_MUAMALAT_FPX', | ||
DdHlbFpx: 'DD_HLB_FPX', | ||
DdIslamFpx: 'DD_ISLAM_FPX', | ||
DdRakyatFpx: 'DD_RAKYAT_FPX', | ||
DdCimbFpx: 'DD_CIMB_FPX', | ||
DdUobFpx: 'DD_UOB_FPX', | ||
DdBocFpx: 'DD_BOC_FPX', | ||
DdBsnFpx: 'DD_BSN_FPX', | ||
DdOcbcFpx: 'DD_OCBC_FPX', | ||
DdHsbcFpx: 'DD_HSBC_FPX', | ||
DdSchFpx: 'DD_SCH_FPX', | ||
DdMayb2UFpx: 'DD_MAYB2U_FPX', | ||
DdRhbFpx: 'DD_RHB_FPX', | ||
DdUobFpxBusiness: 'DD_UOB_FPX_BUSINESS', | ||
DdAgroFpxBusiness: 'DD_AGRO_FPX_BUSINESS', | ||
DdAllianceFpxBusiness: 'DD_ALLIANCE_FPX_BUSINESS', | ||
DdAmbankFpxBusiness: 'DD_AMBANK_FPX_BUSINESS', | ||
DdIslamFpxBusiness: 'DD_ISLAM_FPX_BUSINESS', | ||
DdMuamalatFpxBusiness: 'DD_MUAMALAT_FPX_BUSINESS', | ||
DdHlbFpxBusiness: 'DD_HLB_FPX_BUSINESS', | ||
DdHsbcFpxBusiness: 'DD_HSBC_FPX_BUSINESS', | ||
DdRakyatFpxBusiness: 'DD_RAKYAT_FPX_BUSINESS', | ||
DdKfhFpxBusiness: 'DD_KFH_FPX_BUSINESS', | ||
DdOcbcFpxBusiness: 'DD_OCBC_FPX_BUSINESS', | ||
DdPublicFpxBusiness: 'DD_PUBLIC_FPX_BUSINESS', | ||
DdRhbFpxBusiness: 'DD_RHB_FPX_BUSINESS', | ||
DdSchFpxBusiness: 'DD_SCH_FPX_BUSINESS', | ||
DdCitibankFpxBusiness: 'DD_CITIBANK_FPX_BUSINESS', | ||
DdBnpFpxBusiness: 'DD_BNP_FPX_BUSINESS', | ||
DdDeutscheFpxBusiness: 'DD_DEUTSCHE_FPX_BUSINESS', | ||
DdMayb2EFpxBusiness: 'DD_MAYB2E_FPX_BUSINESS', | ||
DdCimbFpxBusiness: 'DD_CIMB_FPX_BUSINESS', | ||
DdAffinFpxBusiness: 'DD_AFFIN_FPX_BUSINESS', | ||
XenditEnumDefaultFallback: "UNKNOWN_ENUM_VALUE" | ||
@@ -37,0 +76,0 @@ }; |
@@ -26,2 +26,6 @@ /** | ||
readonly Appota: "APPOTA"; | ||
readonly Linepay: "LINEPAY"; | ||
readonly Truemoney: "TRUEMONEY"; | ||
readonly Wechatpay: "WECHATPAY"; | ||
readonly Touchngo: "TOUCHNGO"; | ||
readonly XenditEnumDefaultFallback: "UNKNOWN_ENUM_VALUE"; | ||
@@ -28,0 +32,0 @@ }; |
@@ -31,2 +31,6 @@ "use strict"; | ||
Appota: 'APPOTA', | ||
Linepay: 'LINEPAY', | ||
Truemoney: 'TRUEMONEY', | ||
Wechatpay: 'WECHATPAY', | ||
Touchngo: 'TOUCHNGO', | ||
XenditEnumDefaultFallback: "UNKNOWN_ENUM_VALUE" | ||
@@ -33,0 +37,0 @@ }; |
@@ -6,2 +6,4 @@ export * from './AddressObject'; | ||
export * from './BankCode'; | ||
export * from './ChannelProperties'; | ||
export * from './ChannelPropertiesCards'; | ||
export * from './CreateInvoiceRequest'; | ||
@@ -8,0 +10,0 @@ export * from './CustomerObject'; |
@@ -24,2 +24,4 @@ "use strict"; | ||
__exportStar(require("./BankCode"), exports); | ||
__exportStar(require("./ChannelProperties"), exports); | ||
__exportStar(require("./ChannelPropertiesCards"), exports); | ||
__exportStar(require("./CreateInvoiceRequest"), exports); | ||
@@ -26,0 +28,0 @@ __exportStar(require("./CustomerObject"), exports); |
@@ -7,2 +7,3 @@ /** | ||
import type { Bank } from './Bank'; | ||
import type { ChannelProperties } from './ChannelProperties'; | ||
import type { CustomerObject } from './CustomerObject'; | ||
@@ -224,2 +225,8 @@ import type { DirectDebit } from './DirectDebit'; | ||
fees?: Array<InvoiceFee>; | ||
/** | ||
* | ||
* @type {ChannelProperties} | ||
* @memberof Invoice | ||
*/ | ||
channelProperties?: ChannelProperties; | ||
} | ||
@@ -226,0 +233,0 @@ /** |
@@ -13,2 +13,3 @@ "use strict"; | ||
const Bank_1 = require("./Bank"); | ||
const ChannelProperties_1 = require("./ChannelProperties"); | ||
const CustomerObject_1 = require("./CustomerObject"); | ||
@@ -93,2 +94,3 @@ const DirectDebit_1 = require("./DirectDebit"); | ||
'fees': !(0, runtime_1.exists)(json, 'fees') ? undefined : (json['fees'].map(InvoiceFee_1.InvoiceFeeFromJSON)), | ||
'channelProperties': !(0, runtime_1.exists)(json, 'channel_properties') ? undefined : (0, ChannelProperties_1.ChannelPropertiesFromJSON)(json['channel_properties']), | ||
}; | ||
@@ -138,4 +140,5 @@ } | ||
'fees': value.fees === undefined ? undefined : (value.fees.map(InvoiceFee_1.InvoiceFeeToJSON)), | ||
'channel_properties': (0, ChannelProperties_1.ChannelPropertiesToJSON)(value.channelProperties), | ||
}; | ||
} | ||
exports.InvoiceToJSON = InvoiceToJSON; |
@@ -21,2 +21,3 @@ /** | ||
readonly Paylater: "PAYLATER"; | ||
readonly Cryptocurrency: "CRYPTOCURRENCY"; | ||
readonly XenditEnumDefaultFallback: "UNKNOWN_ENUM_VALUE"; | ||
@@ -23,0 +24,0 @@ }; |
@@ -26,2 +26,3 @@ "use strict"; | ||
Paylater: 'PAYLATER', | ||
Cryptocurrency: 'CRYPTOCURRENCY', | ||
XenditEnumDefaultFallback: "UNKNOWN_ENUM_VALUE" | ||
@@ -28,0 +29,0 @@ }; |
@@ -26,8 +26,2 @@ /** | ||
/** | ||
* Notification channels for expired invoices. | ||
* @type {Array<NotificationChannel>} | ||
* @memberof NotificationPreference | ||
*/ | ||
invoiceExpired?: Array<NotificationChannel>; | ||
/** | ||
* Notification channels for when an invoice is paid. | ||
@@ -34,0 +28,0 @@ * @type {Array<NotificationChannel>} |
@@ -32,3 +32,2 @@ "use strict"; | ||
'invoiceReminder': !(0, runtime_1.exists)(json, 'invoice_reminder') ? undefined : (json['invoice_reminder'].map(NotificationChannel_1.NotificationChannelFromJSON)), | ||
'invoiceExpired': !(0, runtime_1.exists)(json, 'invoice_expired') ? undefined : (json['invoice_expired'].map(NotificationChannel_1.NotificationChannelFromJSON)), | ||
'invoicePaid': !(0, runtime_1.exists)(json, 'invoice_paid') ? undefined : (json['invoice_paid'].map(NotificationChannel_1.NotificationChannelFromJSON)), | ||
@@ -48,3 +47,2 @@ }; | ||
'invoice_reminder': value.invoiceReminder === undefined ? undefined : (value.invoiceReminder.map(NotificationChannel_1.NotificationChannelToJSON)), | ||
'invoice_expired': value.invoiceExpired === undefined ? undefined : (value.invoiceExpired.map(NotificationChannel_1.NotificationChannelToJSON)), | ||
'invoice_paid': value.invoicePaid === undefined ? undefined : (value.invoicePaid.map(NotificationChannel_1.NotificationChannelToJSON)), | ||
@@ -51,0 +49,0 @@ }; |
{ | ||
"name": "xendit-node", | ||
"version": "4.2.0", | ||
"version": "4.3.0", | ||
"description": "OpenAPI client for xendit-node", | ||
@@ -11,9 +11,9 @@ "author": "OpenAPI-Generator", | ||
"files": [ | ||
"payment_request/**", | ||
"invoice/**", | ||
"balance_and_transaction/**", | ||
"refund/**", | ||
"balance_and_transaction/**", | ||
"invoice/**", | ||
"payment_request/**", | ||
"customer/**", | ||
"payment_method/**", | ||
"payout/**", | ||
"customer/**", | ||
"docs/**", | ||
@@ -20,0 +20,0 @@ "images/**", |
@@ -8,3 +8,3 @@ ![Xendit Node SDK](images/header.jpg) | ||
* Package version: 4.2.0 | ||
* Package version: 4.3.0 | ||
@@ -57,4 +57,4 @@ # Getting Started | ||
* [Refund](docs/Refund.md) | ||
* [Transaction](docs/Transaction.md) | ||
* [Balance](docs/Balance.md) | ||
* [Transaction](docs/Transaction.md) | ||
* [Customer](docs/Customer.md) | ||
@@ -61,0 +61,0 @@ * [Payout](docs/Payout.md) |
@@ -119,3 +119,3 @@ "use strict"; | ||
headers['xendit-lib'] = 'node'; | ||
headers['xendit-lib-ver'] = '4.2.0'; | ||
headers['xendit-lib-ver'] = '4.3.0'; | ||
const initParams = { | ||
@@ -122,0 +122,0 @@ method: context.method, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1405348
766
27889