Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

xendit-node

Package Overview
Dependencies
Maintainers
6
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xendit-node - npm Package Compare versions

Comparing version 1.21.14 to 1.21.15

2

package.json
{
"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 @@ })

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