@shipengine/js-api 3.12.0 → 3.12.2
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/types.d.ts +26 -11
- package/funding-sources/types.d.ts +2 -1
- package/package.json +1 -1
package/auctane-pay/types.d.ts
CHANGED
|
@@ -1,12 +1,25 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @category Entities
|
|
3
|
-
*
|
|
3
|
+
* Auctane Pay Session can return a lot of metadata, but will always returns the same 5 keys.
|
|
4
4
|
*/
|
|
5
|
-
export
|
|
5
|
+
export interface AuctanePaySessionMetadata {
|
|
6
|
+
[key: string]: string;
|
|
7
|
+
adyenClientKey: string;
|
|
8
|
+
adyenExpiration: string;
|
|
9
|
+
adyenSessionData: string;
|
|
10
|
+
adyenSessionId: string;
|
|
11
|
+
clientKey: string;
|
|
12
|
+
}
|
|
6
13
|
/**
|
|
7
14
|
* @category Entities
|
|
15
|
+
* Allowed Payment Method for AuctanePay
|
|
8
16
|
*/
|
|
9
|
-
export type AuctanePayPaymentMethod = "credit_card" | "pay_pal" | "pay_by_bank_us" | "pay_by_bank_eu";
|
|
17
|
+
export type AuctanePayPaymentMethod = "credit_card" | "pay_pal" | "stamps" | "pay_by_bank_us" | "pay_by_bank_eu";
|
|
18
|
+
/**
|
|
19
|
+
* @category Entities
|
|
20
|
+
* Note: This is similar to but distinct from the TransactionCategory in funding-sources
|
|
21
|
+
*/
|
|
22
|
+
export type AuctanePayTransactionCategory = "add_funds" | "subscription" | "store";
|
|
10
23
|
/**
|
|
11
24
|
* @category Entities
|
|
12
25
|
*/
|
|
@@ -29,18 +42,18 @@ export interface PaymentMethodHolderAddress {
|
|
|
29
42
|
/**
|
|
30
43
|
* Account holder address
|
|
31
44
|
*/
|
|
32
|
-
accountHolderAddress
|
|
45
|
+
accountHolderAddress: {
|
|
33
46
|
addressLine1: string;
|
|
34
|
-
addressLine2: string;
|
|
47
|
+
addressLine2: string | null;
|
|
35
48
|
cityLocality: string;
|
|
36
49
|
countryCode: string;
|
|
37
50
|
postalCode: string;
|
|
38
51
|
stateProvince: string;
|
|
39
|
-
};
|
|
52
|
+
} | null;
|
|
40
53
|
/**
|
|
41
54
|
* Account holder name
|
|
42
55
|
*/
|
|
43
|
-
accountHolderName
|
|
56
|
+
accountHolderName: string | null;
|
|
44
57
|
/**
|
|
45
58
|
* The last four of the account number, this is only provided for bank accounts and card schemes.
|
|
46
59
|
*/
|
|
@@ -59,6 +72,10 @@ export interface PaymentMethodHolderAddress {
|
|
|
59
72
|
* this will be the date created/updated.
|
|
60
73
|
*/
|
|
61
74
|
dateLastUsed: string;
|
|
75
|
+
/**
|
|
76
|
+
* List of processes or payment gateways in which this Payment Method is registered
|
|
77
|
+
*/
|
|
78
|
+
enrolledProcessors: string[];
|
|
62
79
|
/**
|
|
63
80
|
* If applicable/available, the current expiration we have on file for the payment method.
|
|
64
81
|
*/
|
|
@@ -74,7 +91,7 @@ export interface PaymentMethodHolderAddress {
|
|
|
74
91
|
/**
|
|
75
92
|
* Enumeration of supported payment methods.
|
|
76
93
|
*/
|
|
77
|
-
paymentMethod: "
|
|
94
|
+
paymentMethod: "unknown" | "visa" | "mastercard" | "amex" | "discover" | "maestro" | "dinersclub" | "ach" | "jcb" | "pulse" | "star" | "unionpay";
|
|
78
95
|
/**
|
|
79
96
|
* The Display Name to show in any text based UI/context for the Logo.
|
|
80
97
|
*/
|
|
@@ -108,9 +125,7 @@ export interface CreateSessionResponse {
|
|
|
108
125
|
/**
|
|
109
126
|
* Metadata
|
|
110
127
|
*/
|
|
111
|
-
metadata:
|
|
112
|
-
[key: string]: string;
|
|
113
|
-
};
|
|
128
|
+
metadata: AuctanePaySessionMetadata;
|
|
114
129
|
/**
|
|
115
130
|
* Recent payment methods
|
|
116
131
|
*/
|
|
@@ -12,8 +12,9 @@ export type CreateFundingSource = {
|
|
|
12
12
|
billingInfo: FundingSourceAddress;
|
|
13
13
|
iovationBlackBox: IovationBlackBox;
|
|
14
14
|
paymentMethod: {
|
|
15
|
-
auctanePayInfo?: AuctanePayInfo;
|
|
16
15
|
creditCardInfo?: CreditCardInfo;
|
|
16
|
+
paymentMethodId?: string;
|
|
17
|
+
sessionId?: string;
|
|
17
18
|
};
|
|
18
19
|
};
|
|
19
20
|
/** @internal */
|