@shipengine/js-api 4.15.0 → 4.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/auctane-pay/api.d.ts +11 -1
- package/auctane-pay/types.d.ts +24 -0
- package/index.js +14 -0
- package/index.mjs +14 -0
- package/package.json +1 -1
package/auctane-pay/api.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosInstance } from "axios";
|
|
2
|
-
import { ConfigResponse, CreateSessionRequest, CreateSessionResponse, PaymentMethodsResponse, PreviewTransactionRequest, PreviewTransactionResponse, UpdatePaymentMethodRequest, UpdatePaymentMethodResponse } from "./types";
|
|
2
|
+
import { ConfigResponse, CreateSessionRequest, CreateSessionResponse, IdentityVerificationResponse, PaymentAccountResponse, PaymentMethodsResponse, PreviewTransactionRequest, PreviewTransactionResponse, UpdatePaymentMethodRequest, UpdatePaymentMethodResponse } from "./types";
|
|
3
3
|
/**
|
|
4
4
|
* # Auctane Pay API module - /v1/payments
|
|
5
5
|
*
|
|
@@ -43,4 +43,14 @@ export declare class AuctanePayAPI {
|
|
|
43
43
|
* @docs https://auctane.atlassian.net/wiki/spaces/SEEU/pages/5906662077/AUCTANE+PAY+ENDPOINTS+FOR+SHIPSTATION+API#Auctane-Pay-available-endpoints-in-Shipstation-API
|
|
44
44
|
*/
|
|
45
45
|
updatePaymentMethod: (paymentMethodId: string, payload: UpdatePaymentMethodRequest) => Promise<import("axios").AxiosResponse<UpdatePaymentMethodResponse, any>>;
|
|
46
|
+
/**
|
|
47
|
+
* The `identityVerification` method returns a Plaid IDV verification URL for a given user
|
|
48
|
+
* @docs https://auctane.atlassian.net/wiki/spaces/SEEU/pages/5906662077/AUCTANE+PAY+ENDPOINTS+FOR+SHIPSTATION+API#Identity-verification
|
|
49
|
+
*/
|
|
50
|
+
identityVerification: () => Promise<import("axios").AxiosResponse<IdentityVerificationResponse, any>>;
|
|
51
|
+
/**
|
|
52
|
+
* The `getPaymentAccount` method returns the Payment Account data for a given user
|
|
53
|
+
* @docs https://auctane.atlassian.net/wiki/spaces/SEEU/pages/5906662077/AUCTANE+PAY+ENDPOINTS+FOR+SHIPSTATION+API
|
|
54
|
+
*/
|
|
55
|
+
getPaymentAccount: () => Promise<import("axios").AxiosResponse<PaymentAccountResponse, any>>;
|
|
46
56
|
}
|
package/auctane-pay/types.d.ts
CHANGED
|
@@ -144,6 +144,30 @@ export interface PaymentMethod {
|
|
|
144
144
|
* The PaymentMethod from the Update response
|
|
145
145
|
*/
|
|
146
146
|
export type UpdatePaymentMethodResponse = Omit<PaymentMethod, "sourceAccountId" | "paymentMethodType" | "institutionName">;
|
|
147
|
+
export type IdentityProvider = "Plaid";
|
|
148
|
+
export type IdentityVerificationResponse = {
|
|
149
|
+
/** Provider used for the identity verification */
|
|
150
|
+
identityProvider: IdentityProvider;
|
|
151
|
+
plaidLinkToken: string;
|
|
152
|
+
/** URL of the provider to start the identity verification */
|
|
153
|
+
verificationUrl: string;
|
|
154
|
+
};
|
|
155
|
+
export type PaymentAccountTrustLevel = "New" | "Trusted" | "Restricted" | "Grandfathered";
|
|
156
|
+
export type PaymentAccountEnrollmentStatus = "NotSet" | "Enrolled" | "Prohibited" | "OptedOut";
|
|
157
|
+
export type PaymentAccountResponse = {
|
|
158
|
+
/** Boolean to know if there is a IDV in progress */
|
|
159
|
+
isVerificationRequested: boolean;
|
|
160
|
+
/** Determine if the Wallet was created with Auctane Pay */
|
|
161
|
+
isWalletCreatedAfterAuctanePayLaunch: boolean;
|
|
162
|
+
/** Max amount of money the user can use */
|
|
163
|
+
limit: number;
|
|
164
|
+
/** Remaining amount of money */
|
|
165
|
+
limitRemaining: number;
|
|
166
|
+
/** Represents the surcharge enrollment status for an account. */
|
|
167
|
+
surchargeEnrollmentStatus: PaymentAccountEnrollmentStatus;
|
|
168
|
+
/** Auctane Pay's trust level for a particular customer. */
|
|
169
|
+
trustLevel: PaymentAccountTrustLevel;
|
|
170
|
+
};
|
|
147
171
|
/**
|
|
148
172
|
* @category Entities
|
|
149
173
|
*/
|
package/index.js
CHANGED
|
@@ -310,6 +310,20 @@ class AuctanePayAPI {
|
|
|
310
310
|
payload
|
|
311
311
|
);
|
|
312
312
|
};
|
|
313
|
+
/**
|
|
314
|
+
* The `identityVerification` method returns a Plaid IDV verification URL for a given user
|
|
315
|
+
* @docs https://auctane.atlassian.net/wiki/spaces/SEEU/pages/5906662077/AUCTANE+PAY+ENDPOINTS+FOR+SHIPSTATION+API#Identity-verification
|
|
316
|
+
*/
|
|
317
|
+
this.identityVerification = () => {
|
|
318
|
+
return this.client.post("/v1/payments/identity_verification");
|
|
319
|
+
};
|
|
320
|
+
/**
|
|
321
|
+
* The `getPaymentAccount` method returns the Payment Account data for a given user
|
|
322
|
+
* @docs https://auctane.atlassian.net/wiki/spaces/SEEU/pages/5906662077/AUCTANE+PAY+ENDPOINTS+FOR+SHIPSTATION+API
|
|
323
|
+
*/
|
|
324
|
+
this.getPaymentAccount = () => {
|
|
325
|
+
return this.client.get("/v1/payments/account");
|
|
326
|
+
};
|
|
313
327
|
this.client = client;
|
|
314
328
|
}
|
|
315
329
|
}
|
package/index.mjs
CHANGED
|
@@ -306,6 +306,20 @@ class AuctanePayAPI {
|
|
|
306
306
|
payload
|
|
307
307
|
);
|
|
308
308
|
};
|
|
309
|
+
/**
|
|
310
|
+
* The `identityVerification` method returns a Plaid IDV verification URL for a given user
|
|
311
|
+
* @docs https://auctane.atlassian.net/wiki/spaces/SEEU/pages/5906662077/AUCTANE+PAY+ENDPOINTS+FOR+SHIPSTATION+API#Identity-verification
|
|
312
|
+
*/
|
|
313
|
+
this.identityVerification = () => {
|
|
314
|
+
return this.client.post("/v1/payments/identity_verification");
|
|
315
|
+
};
|
|
316
|
+
/**
|
|
317
|
+
* The `getPaymentAccount` method returns the Payment Account data for a given user
|
|
318
|
+
* @docs https://auctane.atlassian.net/wiki/spaces/SEEU/pages/5906662077/AUCTANE+PAY+ENDPOINTS+FOR+SHIPSTATION+API
|
|
319
|
+
*/
|
|
320
|
+
this.getPaymentAccount = () => {
|
|
321
|
+
return this.client.get("/v1/payments/account");
|
|
322
|
+
};
|
|
309
323
|
this.client = client;
|
|
310
324
|
}
|
|
311
325
|
}
|