@coinflowlabs/angular 1.3.2 → 1.5.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/README.md +8 -0
- package/fesm2022/coinflowlabs-angular.mjs +99 -59
- package/fesm2022/coinflowlabs-angular.mjs.map +1 -1
- package/package.json +5 -5
- package/types/coinflowlabs-angular.d.ts +1529 -0
- package/index.d.ts +0 -5
- package/lib/card-form/CardFormService.d.ts +0 -14
- package/lib/card-form/coinflow-card-number-input.component.d.ts +0 -17
- package/lib/card-form/coinflow-card-number-only-input.component.d.ts +0 -17
- package/lib/card-form/coinflow-cvv-input.component.d.ts +0 -6
- package/lib/card-form/coinflow-cvv-only-input.component.d.ts +0 -19
- package/lib/coinflow-iframe.component.d.ts +0 -22
- package/lib/coinflow-purchase-history.component.d.ts +0 -5
- package/lib/coinflow-purchase-protection.component.d.ts +0 -5
- package/lib/coinflow-purchase.component.d.ts +0 -11
- package/lib/coinflow-withdraw-history.component.d.ts +0 -5
- package/lib/coinflow-withdraw.component.d.ts +0 -11
- package/lib/common/CoinflowLibMessageHandlers.d.ts +0 -35
- package/lib/common/CoinflowTypes.d.ts +0 -547
- package/lib/common/CoinflowUtils.d.ts +0 -24
- package/lib/common/EventBus.d.ts +0 -6
- package/lib/common/SolanaPeerDeps.d.ts +0 -5
- package/lib/common/card-form/TokenEx.d.ts +0 -171
- package/lib/common/card-form/tokenexHelpers.d.ts +0 -35
- package/lib/common/index.d.ts +0 -11
- package/lib/common/types/AnyObject.d.ts +0 -5
- package/lib/common/types/CartitemCommon.d.ts +0 -163
- package/lib/common/types/Subtotal.d.ts +0 -210
- package/lib/common/types/cryptoCartItem.d.ts +0 -63
- package/lib/common/types/giftCardCartItem.d.ts +0 -58
- package/lib/common/types/moneyTopUpCartItem.d.ts +0 -44
- package/lib/common/types/nftCartItem.d.ts +0 -108
- package/lib/mobile-wallet/coinflow-apple-pay-button.component.d.ts +0 -11
- package/lib/mobile-wallet/coinflow-google-pay-button.component.d.ts +0 -10
- package/lib/mobile-wallet/coinflow-mobile-wallet-button.component.d.ts +0 -22
- package/lib/mobile-wallet/google-pay-overlay.component.d.ts +0 -6
- package/public-api.d.ts +0 -16
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
import { CardType, CoinflowEnvs } from '../CoinflowTypes';
|
|
2
|
-
import type { Properties as CSSProperties } from 'csstype';
|
|
3
|
-
export declare const TokenExCardNumberIframeId = "tokenExCardNumber";
|
|
4
|
-
export declare const TokenExCvvContainerID = "tokenExCardCvv";
|
|
5
|
-
export interface TokenExIframe extends ReturnType<typeof TokenEx.Iframe> {
|
|
6
|
-
tokenize: () => Promise<TokenizationResponse>;
|
|
7
|
-
}
|
|
8
|
-
export declare const CARD_TYPE_MAPPING: Record<CardType, string>;
|
|
9
|
-
export interface TokenExIFrameConfiguration {
|
|
10
|
-
origin: string;
|
|
11
|
-
timestamp: string;
|
|
12
|
-
tokenExID: string;
|
|
13
|
-
tokenScheme: string;
|
|
14
|
-
authenticationKey: string;
|
|
15
|
-
pci: true;
|
|
16
|
-
token?: string;
|
|
17
|
-
use3DS?: boolean;
|
|
18
|
-
threeDSMethodNotificationUrl?: string;
|
|
19
|
-
}
|
|
20
|
-
export interface CardFormInputStyles {
|
|
21
|
-
base: CSSProperties | string;
|
|
22
|
-
placeholder?: CSSProperties | string;
|
|
23
|
-
focus?: CSSProperties | string;
|
|
24
|
-
error?: CSSProperties | string;
|
|
25
|
-
}
|
|
26
|
-
export type CoinflowCardTokenResponse = {
|
|
27
|
-
token: string;
|
|
28
|
-
};
|
|
29
|
-
export interface CoinflowCardNumberInputProps {
|
|
30
|
-
env: CoinflowEnvs;
|
|
31
|
-
css: CardFormInputStyles & {
|
|
32
|
-
cvv: CardFormInputStyles;
|
|
33
|
-
};
|
|
34
|
-
debug?: boolean;
|
|
35
|
-
origins: string[];
|
|
36
|
-
font?: string;
|
|
37
|
-
}
|
|
38
|
-
export interface CoinflowCvvOnlyInputProps {
|
|
39
|
-
token: string;
|
|
40
|
-
cardType: CardType;
|
|
41
|
-
env: CoinflowEnvs;
|
|
42
|
-
css: CardFormInputStyles & {
|
|
43
|
-
cvv: CardFormInputStyles;
|
|
44
|
-
};
|
|
45
|
-
debug?: boolean;
|
|
46
|
-
origins: string[];
|
|
47
|
-
font?: string;
|
|
48
|
-
}
|
|
49
|
-
export interface VersionDetail {
|
|
50
|
-
threeDSMethodURL: string;
|
|
51
|
-
acsStartProtocolVersion: string;
|
|
52
|
-
acsEndProtocolVersion: string;
|
|
53
|
-
threeDSServerStartVersion: string;
|
|
54
|
-
threeDSServerEndVersion?: string;
|
|
55
|
-
acsInfoInd: [string];
|
|
56
|
-
directoryServerID: string;
|
|
57
|
-
dsStartProtocolVersion: string;
|
|
58
|
-
dsEndProtocolVersion: string;
|
|
59
|
-
dsIdentifier: string;
|
|
60
|
-
threeDSServerTransID: string;
|
|
61
|
-
}
|
|
62
|
-
export interface TokenizationResponse {
|
|
63
|
-
cardType: string;
|
|
64
|
-
cvvIncluded: true;
|
|
65
|
-
firstSix: string;
|
|
66
|
-
lastFour: string;
|
|
67
|
-
referenceNumber: string;
|
|
68
|
-
token: string;
|
|
69
|
-
tokenHMAC: string;
|
|
70
|
-
recommended3dsVersion?: Record<string, string>;
|
|
71
|
-
threeDSecureResponse?: VersionDetail[];
|
|
72
|
-
}
|
|
73
|
-
declare global {
|
|
74
|
-
namespace TokenEx {
|
|
75
|
-
interface FraudServicesConfig {
|
|
76
|
-
useKount?: boolean;
|
|
77
|
-
kount?: {
|
|
78
|
-
merchantId?: string;
|
|
79
|
-
mode?: string;
|
|
80
|
-
anId?: string;
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
interface Config {
|
|
84
|
-
debug?: boolean;
|
|
85
|
-
enablePrettyFormat?: boolean;
|
|
86
|
-
maskInput?: boolean;
|
|
87
|
-
enableValidateOnBlur?: boolean;
|
|
88
|
-
enableAriaRequired?: boolean;
|
|
89
|
-
pci?: boolean;
|
|
90
|
-
cvvOnly?: boolean;
|
|
91
|
-
allowUnknownCardTypes?: boolean;
|
|
92
|
-
enableAutoComplete?: boolean;
|
|
93
|
-
returnAutoCompleteValues?: boolean;
|
|
94
|
-
returnKhash?: boolean;
|
|
95
|
-
returnWhash?: boolean;
|
|
96
|
-
enforceLuhnCompliance?: boolean;
|
|
97
|
-
use3DS?: boolean;
|
|
98
|
-
enableValidateOnKeyUp?: boolean;
|
|
99
|
-
enableValidateOnCvvKeyUp?: boolean;
|
|
100
|
-
expiresInSeconds?: number;
|
|
101
|
-
useExtendedBIN?: boolean;
|
|
102
|
-
inlineIframeJavaScript?: boolean;
|
|
103
|
-
iframeVersion?: number;
|
|
104
|
-
authenticationKey?: string;
|
|
105
|
-
origin?: string;
|
|
106
|
-
tokenExID?: string;
|
|
107
|
-
timestamp?: string;
|
|
108
|
-
tokenScheme?: string;
|
|
109
|
-
token?: string;
|
|
110
|
-
customDataLabel?: string;
|
|
111
|
-
customCvvDataLabel?: string;
|
|
112
|
-
title?: string;
|
|
113
|
-
cvvTitle?: string;
|
|
114
|
-
inputTitle?: string;
|
|
115
|
-
cvvInputTitle?: string;
|
|
116
|
-
cardMaxLengths?: {
|
|
117
|
-
visa?: number;
|
|
118
|
-
mastercard?: number;
|
|
119
|
-
americanExpress?: number;
|
|
120
|
-
discover?: number;
|
|
121
|
-
jcb?: number;
|
|
122
|
-
diners?: number;
|
|
123
|
-
};
|
|
124
|
-
fraudServices?: FraudServicesConfig;
|
|
125
|
-
threeDSMethodNotificationUrl?: string;
|
|
126
|
-
customDataTypes?: string | object;
|
|
127
|
-
cvvContainerID?: string;
|
|
128
|
-
cvvPlaceholder?: string;
|
|
129
|
-
cardType?: string;
|
|
130
|
-
forterSiteId?: string;
|
|
131
|
-
forterUsername?: string;
|
|
132
|
-
customRegEx?: string;
|
|
133
|
-
placeholder?: string;
|
|
134
|
-
inputType?: string;
|
|
135
|
-
inputMode?: string;
|
|
136
|
-
font?: string;
|
|
137
|
-
cvv?: boolean;
|
|
138
|
-
styles: {
|
|
139
|
-
base: string;
|
|
140
|
-
focus: string;
|
|
141
|
-
error: string;
|
|
142
|
-
placeholder: string;
|
|
143
|
-
cvv: {
|
|
144
|
-
base: string;
|
|
145
|
-
focus: string;
|
|
146
|
-
placeholder: string;
|
|
147
|
-
error: string;
|
|
148
|
-
};
|
|
149
|
-
};
|
|
150
|
-
}
|
|
151
|
-
interface IframeAPI {
|
|
152
|
-
load(): void;
|
|
153
|
-
on: (event: string, callback: (data?: any) => void) => void;
|
|
154
|
-
tokenize(): void;
|
|
155
|
-
validate(): void;
|
|
156
|
-
reset(): void;
|
|
157
|
-
blur(): void;
|
|
158
|
-
cvvBlur(): void;
|
|
159
|
-
focus(): void;
|
|
160
|
-
cvvFocus(): void;
|
|
161
|
-
remove(): void;
|
|
162
|
-
toggleMask(): void;
|
|
163
|
-
toggleCvvMask(): void;
|
|
164
|
-
setPAN(pan: string): void;
|
|
165
|
-
binLookup(): void;
|
|
166
|
-
validateConfig(): void;
|
|
167
|
-
setFraudServicesRequestDetails(data: string): void;
|
|
168
|
-
}
|
|
169
|
-
function Iframe(containerID: string, configuration: Config): IframeAPI;
|
|
170
|
-
}
|
|
171
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { TokenExIframe, TokenExIFrameConfiguration } from './TokenEx';
|
|
2
|
-
import { CardType, CoinflowEnvs } from '../CoinflowTypes';
|
|
3
|
-
export type MerchantIdOrCheckoutJwt = {
|
|
4
|
-
checkoutJwt: string;
|
|
5
|
-
} | {
|
|
6
|
-
merchantId: string;
|
|
7
|
-
};
|
|
8
|
-
export interface CommonDoInitializeTokenExIframeArgs {
|
|
9
|
-
css: string;
|
|
10
|
-
debug?: boolean;
|
|
11
|
-
font?: string;
|
|
12
|
-
origins: string[];
|
|
13
|
-
tokenExScriptLoaded: boolean;
|
|
14
|
-
env: CoinflowEnvs;
|
|
15
|
-
setCachedToken: (s: string | undefined) => void;
|
|
16
|
-
setLoaded: (b: boolean) => void;
|
|
17
|
-
}
|
|
18
|
-
export type DoInitializeTokenExIframeArgs = CommonDoInitializeTokenExIframeArgs & MerchantIdOrCheckoutJwt;
|
|
19
|
-
export type DoInitializeCvvOnlyTokenExIframeArgs = DoInitializeTokenExIframeArgs & {
|
|
20
|
-
token: string;
|
|
21
|
-
cardType: CardType;
|
|
22
|
-
};
|
|
23
|
-
export type GetIFrameConfigArgs = {
|
|
24
|
-
token?: string;
|
|
25
|
-
origins: string[];
|
|
26
|
-
env: CoinflowEnvs;
|
|
27
|
-
} & MerchantIdOrCheckoutJwt;
|
|
28
|
-
export declare function getIframeConfig(args: GetIFrameConfigArgs): Promise<TokenExIFrameConfiguration>;
|
|
29
|
-
export declare function setTokenExScriptTag({ env, setTokenExScriptLoaded, }: {
|
|
30
|
-
env: CoinflowEnvs;
|
|
31
|
-
setTokenExScriptLoaded: (b: boolean) => void;
|
|
32
|
-
}): void;
|
|
33
|
-
export declare function doInitializeCvvOnlyTokenExIframe(args: DoInitializeCvvOnlyTokenExIframeArgs): Promise<TokenExIframe | undefined>;
|
|
34
|
-
export declare function doInitializeTokenExIframe(args: DoInitializeTokenExIframeArgs): Promise<TokenExIframe | undefined>;
|
|
35
|
-
export declare function doInitializeTokenExCardOnlyIframe(args: DoInitializeTokenExIframeArgs): Promise<TokenExIframe | undefined>;
|
package/lib/common/index.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export * from './CoinflowTypes';
|
|
2
|
-
export * from './CoinflowUtils';
|
|
3
|
-
export * from './CoinflowLibMessageHandlers';
|
|
4
|
-
export * from './EventBus';
|
|
5
|
-
export * from './card-form/TokenEx';
|
|
6
|
-
export * from './card-form/tokenexHelpers';
|
|
7
|
-
export * from './types/Subtotal';
|
|
8
|
-
export * from './types/AnyObject';
|
|
9
|
-
export * from './types/giftCardCartItem';
|
|
10
|
-
export * from './types/nftCartItem';
|
|
11
|
-
export * from './types/cryptoCartItem';
|
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Address structure
|
|
3
|
-
*/
|
|
4
|
-
export interface CartItemAddress {
|
|
5
|
-
/**
|
|
6
|
-
* Country code specified as a two letter code according to ISO 3166 Alpha-2
|
|
7
|
-
* Between 2 and 2 characters
|
|
8
|
-
* Example: US
|
|
9
|
-
* Pattern: ^[A-Z]{2}$
|
|
10
|
-
*/
|
|
11
|
-
country?: string;
|
|
12
|
-
/**
|
|
13
|
-
* The state or province
|
|
14
|
-
* Example: PA
|
|
15
|
-
*/
|
|
16
|
-
state?: string;
|
|
17
|
-
/**
|
|
18
|
-
* The city or locality
|
|
19
|
-
* Example: Pittsburgh
|
|
20
|
-
*/
|
|
21
|
-
city?: string;
|
|
22
|
-
/**
|
|
23
|
-
* The street name
|
|
24
|
-
* Example: Baker St
|
|
25
|
-
*/
|
|
26
|
-
street?: string;
|
|
27
|
-
/**
|
|
28
|
-
* The address postal code
|
|
29
|
-
*/
|
|
30
|
-
postalCode?: string;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Phone information structure
|
|
34
|
-
*/
|
|
35
|
-
export interface PhoneInfo {
|
|
36
|
-
/**
|
|
37
|
-
* The mobile carrier
|
|
38
|
-
* Example: T-Mobile
|
|
39
|
-
*/
|
|
40
|
-
carrier?: string;
|
|
41
|
-
/**
|
|
42
|
-
* The country code (leading `+` is optional)
|
|
43
|
-
* Example: 42
|
|
44
|
-
* Pattern: ^\+?[0-9]+$
|
|
45
|
-
*/
|
|
46
|
-
countryCode: string;
|
|
47
|
-
/**
|
|
48
|
-
* The phone number without the country code or hyphens
|
|
49
|
-
* Example: 2025550169
|
|
50
|
-
* Pattern: ^[0-9]+$
|
|
51
|
-
*/
|
|
52
|
-
phone: string;
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Common currency amount structure
|
|
56
|
-
*/
|
|
57
|
-
export interface CurrencyAmount {
|
|
58
|
-
/**
|
|
59
|
-
* The amount in the currency, which is specified in the `currency` property
|
|
60
|
-
* Example: 90
|
|
61
|
-
*/
|
|
62
|
-
valueInCurrency: number;
|
|
63
|
-
/**
|
|
64
|
-
* Currency specified as a three letter code according to ISO 4217
|
|
65
|
-
* Example: USD
|
|
66
|
-
*/
|
|
67
|
-
currency: string;
|
|
68
|
-
}
|
|
69
|
-
export interface RecipientInfo {
|
|
70
|
-
/**
|
|
71
|
-
* The ID of the account that will receive the purchased goods
|
|
72
|
-
*/
|
|
73
|
-
accountId?: string;
|
|
74
|
-
/**
|
|
75
|
-
* Date of birth, formatted as YYYY-MM-DD. If only the year is known, use YYYY
|
|
76
|
-
* Pattern: ^\d{4}(-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01]))?$
|
|
77
|
-
*/
|
|
78
|
-
dob?: string;
|
|
79
|
-
/**
|
|
80
|
-
* Email
|
|
81
|
-
* Example: lois.lane@dailyplanet.com
|
|
82
|
-
*/
|
|
83
|
-
email?: string | null;
|
|
84
|
-
/**
|
|
85
|
-
* First name
|
|
86
|
-
* Example: Lois
|
|
87
|
-
*/
|
|
88
|
-
firstName?: string;
|
|
89
|
-
/**
|
|
90
|
-
* Gender
|
|
91
|
-
* Example: female
|
|
92
|
-
*/
|
|
93
|
-
gender?: string;
|
|
94
|
-
/**
|
|
95
|
-
* Last name
|
|
96
|
-
* Example: Lois
|
|
97
|
-
*/
|
|
98
|
-
lastName?: string;
|
|
99
|
-
/**
|
|
100
|
-
* The message that the recipient will receive
|
|
101
|
-
*/
|
|
102
|
-
message?: string;
|
|
103
|
-
/**
|
|
104
|
-
* A phone number descriptor
|
|
105
|
-
*/
|
|
106
|
-
phoneInfo?: PhoneInfo;
|
|
107
|
-
/**
|
|
108
|
-
* Shipping address
|
|
109
|
-
*/
|
|
110
|
-
shippingAddress?: CartItemAddress;
|
|
111
|
-
/**
|
|
112
|
-
* The crypto wallet that will receive the funds
|
|
113
|
-
*/
|
|
114
|
-
wallet?: {
|
|
115
|
-
/**
|
|
116
|
-
* The crypto wallet address that will receive the funds
|
|
117
|
-
*/
|
|
118
|
-
address: string;
|
|
119
|
-
/**
|
|
120
|
-
* The blockchain on which the transaction was made
|
|
121
|
-
* Example: BTC
|
|
122
|
-
* Pattern: ^[A-Z0-9-]+$
|
|
123
|
-
*/
|
|
124
|
-
blockchain: string;
|
|
125
|
-
/**
|
|
126
|
-
* The type of the wallet
|
|
127
|
-
* Allowed values: custodial, nonCustodial, unknown
|
|
128
|
-
* Example: custodial
|
|
129
|
-
*/
|
|
130
|
-
custodialType: 'custodial' | 'nonCustodial' | 'unknown';
|
|
131
|
-
};
|
|
132
|
-
}
|
|
133
|
-
export interface SellerInfo {
|
|
134
|
-
/**
|
|
135
|
-
* Id of the seller
|
|
136
|
-
*/
|
|
137
|
-
id?: string;
|
|
138
|
-
/**
|
|
139
|
-
* Email
|
|
140
|
-
* Example: lois.lane@dailyplanet.com
|
|
141
|
-
*/
|
|
142
|
-
email?: string | null;
|
|
143
|
-
/**
|
|
144
|
-
* First name
|
|
145
|
-
* Example: Lois
|
|
146
|
-
*/
|
|
147
|
-
firstName?: string;
|
|
148
|
-
/**
|
|
149
|
-
* Last name
|
|
150
|
-
* Example: Lois
|
|
151
|
-
*/
|
|
152
|
-
lastName?: string;
|
|
153
|
-
/**
|
|
154
|
-
* Date of birth, formatted as YYYY-MM-DD. If only the year is known, use YYYY
|
|
155
|
-
* Pattern: ^\d{4}(-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01]))?$
|
|
156
|
-
*/
|
|
157
|
-
dob?: string;
|
|
158
|
-
/**
|
|
159
|
-
* Additional raw data about the seller
|
|
160
|
-
* Example: {"FeedbackCount":100,"FeedbackScore":99.5,"FirstSeenTimestamp":1731841819965,"LatestWithdrawal":3263,"OrderCount":101,"DisputeCount":2}
|
|
161
|
-
*/
|
|
162
|
-
rawSellerData?: Record<string, any>;
|
|
163
|
-
}
|
|
@@ -1,210 +0,0 @@
|
|
|
1
|
-
export declare enum Currency {
|
|
2
|
-
USD = "USD",
|
|
3
|
-
AED = "AED",
|
|
4
|
-
AFN = "AFN",
|
|
5
|
-
ALL = "ALL",
|
|
6
|
-
AMD = "AMD",
|
|
7
|
-
ANG = "ANG",
|
|
8
|
-
AOA = "AOA",
|
|
9
|
-
ARS = "ARS",
|
|
10
|
-
AUD = "AUD",
|
|
11
|
-
AWG = "AWG",
|
|
12
|
-
AZN = "AZN",
|
|
13
|
-
BAM = "BAM",
|
|
14
|
-
BBD = "BBD",
|
|
15
|
-
BDT = "BDT",
|
|
16
|
-
BGN = "BGN",
|
|
17
|
-
BHD = "BHD",
|
|
18
|
-
BIF = "BIF",
|
|
19
|
-
BMD = "BMD",
|
|
20
|
-
BND = "BND",
|
|
21
|
-
BOB = "BOB",
|
|
22
|
-
BRL = "BRL",
|
|
23
|
-
BSD = "BSD",
|
|
24
|
-
BTN = "BTN",
|
|
25
|
-
BWP = "BWP",
|
|
26
|
-
BYN = "BYN",
|
|
27
|
-
BZD = "BZD",
|
|
28
|
-
CAD = "CAD",
|
|
29
|
-
CHF = "CHF",
|
|
30
|
-
CLF = "CLF",
|
|
31
|
-
CLP = "CLP",
|
|
32
|
-
CNY = "CNY",
|
|
33
|
-
COP = "COP",
|
|
34
|
-
CRC = "CRC",
|
|
35
|
-
CUP = "CUP",
|
|
36
|
-
CVE = "CVE",
|
|
37
|
-
CZK = "CZK",
|
|
38
|
-
DJF = "DJF",
|
|
39
|
-
DKK = "DKK",
|
|
40
|
-
DOP = "DOP",
|
|
41
|
-
DZD = "DZD",
|
|
42
|
-
EGP = "EGP",
|
|
43
|
-
ETB = "ETB",
|
|
44
|
-
EUR = "EUR",
|
|
45
|
-
FJD = "FJD",
|
|
46
|
-
GBP = "GBP",
|
|
47
|
-
GEL = "GEL",
|
|
48
|
-
GHS = "GHS",
|
|
49
|
-
GMD = "GMD",
|
|
50
|
-
GNF = "GNF",
|
|
51
|
-
GTQ = "GTQ",
|
|
52
|
-
GYD = "GYD",
|
|
53
|
-
HKD = "HKD",
|
|
54
|
-
HNL = "HNL",
|
|
55
|
-
HTG = "HTG",
|
|
56
|
-
HUF = "HUF",
|
|
57
|
-
IDR = "IDR",
|
|
58
|
-
ILS = "ILS",
|
|
59
|
-
INR = "INR",
|
|
60
|
-
IQD = "IQD",
|
|
61
|
-
IRR = "IRR",
|
|
62
|
-
ISK = "ISK",
|
|
63
|
-
JMD = "JMD",
|
|
64
|
-
JOD = "JOD",
|
|
65
|
-
JPY = "JPY",
|
|
66
|
-
KES = "KES",
|
|
67
|
-
KGS = "KGS",
|
|
68
|
-
KHR = "KHR",
|
|
69
|
-
KMF = "KMF",
|
|
70
|
-
KRW = "KRW",
|
|
71
|
-
KWD = "KWD",
|
|
72
|
-
KYD = "KYD",
|
|
73
|
-
KZT = "KZT",
|
|
74
|
-
LAK = "LAK",
|
|
75
|
-
LBP = "LBP",
|
|
76
|
-
LKR = "LKR",
|
|
77
|
-
LRD = "LRD",
|
|
78
|
-
LSL = "LSL",
|
|
79
|
-
LYD = "LYD",
|
|
80
|
-
MAD = "MAD",
|
|
81
|
-
MDL = "MDL",
|
|
82
|
-
MGA = "MGA",
|
|
83
|
-
MKD = "MKD",
|
|
84
|
-
MMK = "MMK",
|
|
85
|
-
MNT = "MNT",
|
|
86
|
-
MOP = "MOP",
|
|
87
|
-
MRU = "MRU",
|
|
88
|
-
MUR = "MUR",
|
|
89
|
-
MWK = "MWK",
|
|
90
|
-
MVR = "MVR",
|
|
91
|
-
MXN = "MXN",
|
|
92
|
-
MYR = "MYR",
|
|
93
|
-
MZN = "MZN",
|
|
94
|
-
NAD = "NAD",
|
|
95
|
-
NGN = "NGN",
|
|
96
|
-
NIO = "NIO",
|
|
97
|
-
NOK = "NOK",
|
|
98
|
-
NPR = "NPR",
|
|
99
|
-
NZD = "NZD",
|
|
100
|
-
OMR = "OMR",
|
|
101
|
-
PAB = "PAB",
|
|
102
|
-
PEN = "PEN",
|
|
103
|
-
PGK = "PGK",
|
|
104
|
-
PHP = "PHP",
|
|
105
|
-
PKR = "PKR",
|
|
106
|
-
PLN = "PLN",
|
|
107
|
-
PYG = "PYG",
|
|
108
|
-
QAR = "QAR",
|
|
109
|
-
RON = "RON",
|
|
110
|
-
RSD = "RSD",
|
|
111
|
-
RWF = "RWF",
|
|
112
|
-
SAR = "SAR",
|
|
113
|
-
SCR = "SCR",
|
|
114
|
-
SDG = "SDG",
|
|
115
|
-
SEK = "SEK",
|
|
116
|
-
SGD = "SGD",
|
|
117
|
-
SLE = "SLE",
|
|
118
|
-
SLL = "SLL",
|
|
119
|
-
SOS = "SOS",
|
|
120
|
-
SRD = "SRD",
|
|
121
|
-
STN = "STN",
|
|
122
|
-
SVC = "SVC",
|
|
123
|
-
SYP = "SYP",
|
|
124
|
-
SZL = "SZL",
|
|
125
|
-
THB = "THB",
|
|
126
|
-
TJS = "TJS",
|
|
127
|
-
TMT = "TMT",
|
|
128
|
-
TND = "TND",
|
|
129
|
-
TOP = "TOP",
|
|
130
|
-
TRY = "TRY",
|
|
131
|
-
TTD = "TTD",
|
|
132
|
-
TWD = "TWD",
|
|
133
|
-
TZS = "TZS",
|
|
134
|
-
UAH = "UAH",
|
|
135
|
-
UGX = "UGX",
|
|
136
|
-
UYU = "UYU",
|
|
137
|
-
UZS = "UZS",
|
|
138
|
-
VND = "VND",
|
|
139
|
-
VUV = "VUV",
|
|
140
|
-
WST = "WST",
|
|
141
|
-
XAF = "XAF",
|
|
142
|
-
XCD = "XCD",
|
|
143
|
-
XOF = "XOF",
|
|
144
|
-
XPF = "XPF",
|
|
145
|
-
YER = "YER",
|
|
146
|
-
ZAR = "ZAR",
|
|
147
|
-
ZMW = "ZMW",
|
|
148
|
-
ZWL = "ZWL",
|
|
149
|
-
CDF = "CDF",
|
|
150
|
-
ERN = "ERN",
|
|
151
|
-
FKP = "FKP",
|
|
152
|
-
KPW = "KPW",
|
|
153
|
-
RUB = "RUB",
|
|
154
|
-
SBD = "SBD",
|
|
155
|
-
SHP = "SHP",
|
|
156
|
-
SSP = "SSP",
|
|
157
|
-
VES = "VES"
|
|
158
|
-
}
|
|
159
|
-
export declare const CurrencyToISO4217: Record<Currency, string>;
|
|
160
|
-
export type WithdrawCurrency = Currency.USD | Currency.EUR | Currency.GBP | Currency.BRL | Currency.CAD;
|
|
161
|
-
export declare const WithdrawCurrencies: {
|
|
162
|
-
readonly USD: Currency.USD;
|
|
163
|
-
readonly EUR: Currency.EUR;
|
|
164
|
-
readonly GBP: Currency.GBP;
|
|
165
|
-
readonly BRL: Currency.BRL;
|
|
166
|
-
readonly CAD: Currency.CAD;
|
|
167
|
-
};
|
|
168
|
-
export declare function isWithdrawCurrency(currency: Currency): currency is WithdrawCurrency;
|
|
169
|
-
export type BankingCurrency = Currency.USD | Currency.EUR | Currency.GBP | Currency.CAD | Currency.BRL;
|
|
170
|
-
export declare const BankingCurrencies: {
|
|
171
|
-
readonly USD: Currency.USD;
|
|
172
|
-
readonly EUR: Currency.EUR;
|
|
173
|
-
readonly GBP: Currency.GBP;
|
|
174
|
-
readonly CAD: Currency.CAD;
|
|
175
|
-
readonly BRL: Currency.BRL;
|
|
176
|
-
};
|
|
177
|
-
export declare function isBankingCurrency(currency: Currency): currency is BankingCurrency;
|
|
178
|
-
export declare function getCurrencyDecimals(currency: Currency): number;
|
|
179
|
-
export interface Cents {
|
|
180
|
-
/**
|
|
181
|
-
* @isInt Cents must be an integer
|
|
182
|
-
* @minimum 0 Minimum Cents is 0
|
|
183
|
-
*/
|
|
184
|
-
cents: number;
|
|
185
|
-
}
|
|
186
|
-
export interface CurrencyCents extends Cents {
|
|
187
|
-
currency: Currency;
|
|
188
|
-
}
|
|
189
|
-
export interface TypedCurrencyCents<T extends Currency> extends Cents {
|
|
190
|
-
currency: T;
|
|
191
|
-
}
|
|
192
|
-
export declare function isTypedCurrencyCents<T extends Currency>(cents: CurrencyCents, currency: T): cents is TypedCurrencyCents<T>;
|
|
193
|
-
export interface TokenSubtotal {
|
|
194
|
-
/**
|
|
195
|
-
* The tokens address
|
|
196
|
-
*
|
|
197
|
-
* Solana - Token Mint Address
|
|
198
|
-
* Evm - Token Contract Address
|
|
199
|
-
*/
|
|
200
|
-
address: string;
|
|
201
|
-
/**
|
|
202
|
-
* Number of tokens
|
|
203
|
-
*/
|
|
204
|
-
amount: number | string;
|
|
205
|
-
/**
|
|
206
|
-
* Number of decimals for the token
|
|
207
|
-
*/
|
|
208
|
-
decimals?: number;
|
|
209
|
-
}
|
|
210
|
-
export type Subtotal = CurrencyCents | Cents | TokenSubtotal;
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { RecipientInfo, SellerInfo } from './CartitemCommon';
|
|
2
|
-
import { AnyObject } from './AnyObject';
|
|
3
|
-
/**
|
|
4
|
-
* Represents a crypto item in a shopping cart
|
|
5
|
-
*/
|
|
6
|
-
export interface CryptoCartItem {
|
|
7
|
-
/**
|
|
8
|
-
* Denotes the cart item class. The item schema is chosen based on this value.
|
|
9
|
-
* Allowed value: crypto
|
|
10
|
-
* Example: crypto
|
|
11
|
-
*/
|
|
12
|
-
itemClass: 'crypto';
|
|
13
|
-
/**
|
|
14
|
-
* The cart items's unique ID
|
|
15
|
-
* Example: 5de33332-546a-4171-8988-2a43d2bfe9c6
|
|
16
|
-
*/
|
|
17
|
-
id?: string;
|
|
18
|
-
/**
|
|
19
|
-
* Any additional product data which can be provided, e.g. description, link to image, etc
|
|
20
|
-
* Example: {"any":"data","description":"This is the product description"}
|
|
21
|
-
*/
|
|
22
|
-
rawProductData?: AnyObject;
|
|
23
|
-
/**
|
|
24
|
-
* The amount in the crypto currency which is specified in the `cryptoCurrency` property
|
|
25
|
-
* Example: 1.04112
|
|
26
|
-
* Pattern: ^[0-9]+(\.[0-9]+)?$
|
|
27
|
-
*/
|
|
28
|
-
units: string;
|
|
29
|
-
/**
|
|
30
|
-
* The crypto-currency symbol (uppercase)
|
|
31
|
-
* Example: BTC
|
|
32
|
-
* Pattern: ^[A-Z0-9-]+$
|
|
33
|
-
*/
|
|
34
|
-
cryptoCurrency: string;
|
|
35
|
-
/**
|
|
36
|
-
* The price per 1 unit
|
|
37
|
-
*/
|
|
38
|
-
unitPrice: {
|
|
39
|
-
/**
|
|
40
|
-
* The amount in the currency, which is specified in the `currency` property
|
|
41
|
-
* Example: 90
|
|
42
|
-
*/
|
|
43
|
-
valueInCurrency: number;
|
|
44
|
-
/**
|
|
45
|
-
* Currency specified as a three letter code according to ISO 4217
|
|
46
|
-
* Example: USD
|
|
47
|
-
*/
|
|
48
|
-
currency: string;
|
|
49
|
-
};
|
|
50
|
-
/**
|
|
51
|
-
* The expected delay in delivery, in hours
|
|
52
|
-
* Min value: 0
|
|
53
|
-
*/
|
|
54
|
-
expectedDeliveryDelay?: number;
|
|
55
|
-
/**
|
|
56
|
-
* The user's personal info
|
|
57
|
-
*/
|
|
58
|
-
recipientInfo: RecipientInfo;
|
|
59
|
-
/**
|
|
60
|
-
* Seller info
|
|
61
|
-
*/
|
|
62
|
-
seller?: SellerInfo;
|
|
63
|
-
}
|