@shipengine/js-api
Advanced tools
| 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 @@ */ |
+1
-1
| { | ||
| "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
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
1589405
0.09%45104
0.08%