xendit-node
Advanced tools
Comparing version 1.21.14 to 1.21.15
{ | ||
"name": "xendit-node", | ||
"version": "1.21.14", | ||
"version": "1.21.15", | ||
"description": "NodeJS client for Xendit API", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -1669,2 +1669,6 @@ # Xendit API Node.js Client | ||
metadata?: object; | ||
payment_method_id?: string; | ||
shipping_information?: object; | ||
initiator?: PaymentRequestInitiator; | ||
capture_method?: PaymentRequestCaptureMethod; | ||
idempotency_key?: string; | ||
@@ -1671,0 +1675,0 @@ for_user_id?: string; |
import { XenditOptions } from '../xendit_opts'; | ||
enum PaymentRequestCurrencies { | ||
export enum PaymentRequestCurrencies { | ||
IDR = 'IDR', | ||
@@ -8,3 +8,3 @@ PHP = 'PHP', | ||
enum PaymentRequestCountries { | ||
export enum PaymentRequestCountries { | ||
ID = 'ID', | ||
@@ -14,3 +14,13 @@ PH = 'PH', | ||
enum PaymentRequestRedeemPoints { | ||
export enum PaymentRequestInitiator { | ||
Customer = 'CUSTOMER', | ||
Merchant = 'MERCHANT', | ||
} | ||
export enum PaymentRequestCaptureMethod { | ||
Automatic = 'AUTOMATIC', | ||
Manual = 'MANUAL', | ||
} | ||
export enum PaymentRequestRedeemPoints { | ||
RedeemNone = 'REDEEM_NONE', | ||
@@ -20,3 +30,3 @@ RedeemAll = 'REDEEM_ALL', | ||
enum PaymentRequestType { | ||
export enum PaymentRequestType { | ||
Card = 'CARD', | ||
@@ -30,3 +40,3 @@ EWallet = 'EWALLET', | ||
enum PaymentRequestStatuses { | ||
export enum PaymentRequestStatuses { | ||
Succeeded = 'SUCCEEDED', | ||
@@ -57,7 +67,11 @@ Failed = 'FAILED', | ||
customer_id?: string; | ||
country: PaymentRequestCountries; | ||
country?: PaymentRequestCountries; | ||
description?: string; | ||
payment_method: object; | ||
payment_method?: object; | ||
channel_properties?: PaymentRequestChannelProperties; | ||
metadata?: object; | ||
payment_method_id?: string; | ||
shipping_information?: object; | ||
initiator?: PaymentRequestInitiator; | ||
capture_method?: PaymentRequestCaptureMethod; | ||
idempotency_key?: string; | ||
@@ -64,0 +78,0 @@ for_user_id?: string; |
@@ -32,3 +32,3 @@ const { | ||
return promWithJsErr((resolve, reject) => { | ||
Validate.rejectOnMissingFields(['currency', 'amount'], data, reject); | ||
Validate.rejectOnMissingFields(['amount'], data, reject); | ||
@@ -61,2 +61,6 @@ let headers = { | ||
metadata: data.metadata, | ||
payment_method_id: data.payment_method_id, | ||
capture_method: data.capture_method, | ||
shipping_information: data.shipping_information, | ||
initiator: data.initiator, | ||
}), | ||
@@ -63,0 +67,0 @@ }) |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
292912
8095
1943
1