You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@shipengine/js-api

Package Overview
Dependencies
Maintainers
43
Versions
235
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shipengine/js-api - npm Package Compare versions

Comparing version
4.10.0
to
4.11.0
+6
-1
auctane-pay/api.d.ts
import { AxiosInstance } from "axios";
import { ConfigResponse, CreateSessionRequest, CreateSessionResponse, PreviewTransactionRequest, PreviewTransactionResponse } from "./types";
import { ConfigResponse, CreateSessionRequest, CreateSessionResponse, PaymentMethodsResponse, PreviewTransactionRequest, PreviewTransactionResponse } from "./types";
/**

@@ -31,2 +31,7 @@ * # Auctane Pay API module - /v1/payments

previewTransaction: (request: PreviewTransactionRequest) => Promise<import("axios").AxiosResponse<PreviewTransactionResponse, any>>;
/**
* The `getPaymentMethods` method retrieve the list of Payment Methods for a given user.
* @docs https://auctane.atlassian.net/wiki/spaces/SEEU/pages/5906662077/AUCTANE+PAY+ENDPOINTS+FOR+SHIPSTATION+API#Get-payment-methods
*/
getPaymentMethods: () => Promise<import("axios").AxiosResponse<PaymentMethodsResponse, any>>;
}
+30
-11

@@ -54,3 +54,3 @@ /**

*/
export interface PaymentMethodHolderAddress {
export interface PaymentMethod {
/** Account holder address */

@@ -67,15 +67,19 @@ accountHolderAddress: {

accountHolderName: string | null;
/** The last four of the account number, this is only
/**
* The last four of the account number, this is only
* provided for bank accounts and card schemes.
*/
accountNumberLastFour: string;
/** An account number preview, for a CC this is the last 4 digits, but shown like 1234.
/**
* An account number preview, for a CC this is the last 4 digits, but shown like 1234.
* For an e-mail account it might be ay@auctane.com, etc.
*/
accountNumberPreview: string;
/** If applicable/available, the current expiration
/**
* If applicable/available, the current expiration
* we have on file for the payment method.
*/
assignedPreferences: AuctanePayTransactionCategory[];
/** Date the payment method was last used.
/**
* Date the payment method was last used.
* If the date it was last used is unavailable,

@@ -85,7 +89,9 @@ * this will be the date created/updated.

dateLastUsed: string;
/** List of processes or payment gateways
/**
* List of processes or payment gateways
* in which this Payment Method is registered
*/
enrolledProcessors: string[];
/** If applicable/available, the current expiration
/**
* If applicable/available, the current expiration
* we have on file for the payment method.

@@ -98,2 +104,4 @@ */

id: string;
/** Usually the Bank name */
institutionName: string | null;
/** The nickname of the payment method */

@@ -103,6 +111,9 @@ nickname: string;

paymentMethod: "unknown" | "visa" | "mastercard" | "amex" | "discover" | "maestro" | "dinersclub" | "ach" | "jcb" | "pulse" | "star" | "unionpay";
/** The Display Name to show in any text
/**
* The Display Name to show in any text
* based UI/context for the Logo.
*/
paymentMethodDisplayName: string;
/** Payment method type */
paymentMethodType: AuctanePayPaymentMethod;
/** Source account ID */

@@ -122,3 +133,3 @@ sourceAccountId: string;

/** Active payment methods */
activePaymentMethods: PaymentMethodHolderAddress[];
activePaymentMethods: PaymentMethod[];
/** Client key */

@@ -128,3 +139,4 @@ clientKey: string;

eligiblePaymentMethodTypes: AuctanePayPaymentMethod[];
/** The Auctane Pay Internal Session ID,
/**
* The Auctane Pay Internal Session ID,
* use this ID to request the result of this session

@@ -139,3 +151,3 @@ * and payment methods created from it.

/** Recent payment methods */
recentPaymentMethods: PaymentMethodHolderAddress[];
recentPaymentMethods: PaymentMethod[];
/** @deprecated */

@@ -150,2 +162,9 @@ sessionData: string;

* @category Entities
*/
export interface PaymentMethodsResponse {
activePaymentMethods: Array<PaymentMethod>;
recentPaymentMethods: Array<PaymentMethod>;
}
/**
* @category Entities
* Request body for preview transaction endpoint

@@ -152,0 +171,0 @@ */

{
"name": "@shipengine/js-api",
"version": "4.10.0",
"version": "4.11.0",
"main": "./index.js",

@@ -5,0 +5,0 @@ "types": "./index.d.ts",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display