@coinflowlabs/react-native 4.1.0 → 4.2.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.
Files changed (32) hide show
  1. package/build/common/CoinflowTypes.d.ts +65 -37
  2. package/build/common/CoinflowTypes.js.map +1 -1
  3. package/build/common/CoinflowUtils.js +1 -1
  4. package/build/common/CoinflowUtils.js.map +1 -1
  5. package/build/common/index.d.ts +5 -1
  6. package/build/common/index.js +5 -1
  7. package/build/common/index.js.map +1 -1
  8. package/build/common/types/AnyObject.d.ts +5 -0
  9. package/build/common/types/AnyObject.js +2 -0
  10. package/build/common/types/AnyObject.js.map +1 -0
  11. package/build/common/types/CartitemCommon.d.ts +163 -0
  12. package/build/common/types/CartitemCommon.js +2 -0
  13. package/build/common/types/CartitemCommon.js.map +1 -0
  14. package/build/common/types/Subtotal.d.ts +173 -0
  15. package/build/common/types/Subtotal.js +145 -0
  16. package/build/common/types/Subtotal.js.map +1 -0
  17. package/build/common/types/cryptoCartItem.d.ts +62 -0
  18. package/build/common/types/cryptoCartItem.js +2 -0
  19. package/build/common/types/cryptoCartItem.js.map +1 -0
  20. package/build/common/types/giftCardCartItem.d.ts +58 -0
  21. package/build/common/types/giftCardCartItem.js +2 -0
  22. package/build/common/types/giftCardCartItem.js.map +1 -0
  23. package/build/common/types/moneyTopUpCartItem.d.ts +44 -0
  24. package/build/common/types/moneyTopUpCartItem.js +2 -0
  25. package/build/common/types/moneyTopUpCartItem.js.map +1 -0
  26. package/build/common/types/nftCartItem.d.ts +99 -0
  27. package/build/common/types/nftCartItem.js +44 -0
  28. package/build/common/types/nftCartItem.js.map +1 -0
  29. package/package.json +1 -1
  30. package/build/common/Subtotal.d.ts +0 -86
  31. package/build/common/Subtotal.js +0 -59
  32. package/build/common/Subtotal.js.map +0 -1
@@ -1,5 +1,9 @@
1
1
  import type { Connection, VersionedTransaction, PublicKey, Signer, Transaction } from '@solana/web3.js';
2
- import { Currency, Subtotal } from './Subtotal';
2
+ import { Currency, Subtotal } from './types/Subtotal';
3
+ import { GiftCardCartItem } from './types/giftCardCartItem';
4
+ import { nftCartItem } from './types/nftCartItem';
5
+ import { CryptoCartItem } from './types/cryptoCartItem';
6
+ import { MoneyTopUpCartItem } from './types/moneyTopUpCartItem';
3
7
  export declare enum SettlementType {
4
8
  Credits = "Credits",
5
9
  USDC = "USDC",
@@ -33,6 +37,10 @@ interface BaseCustomerInfo {
33
37
  ip?: string;
34
38
  lat?: string;
35
39
  lng?: string;
40
+ /**
41
+ * Date of birth in YYYY-MM-DD format
42
+ */
43
+ dob?: string;
36
44
  }
37
45
  export interface NameCustomerInfo extends BaseCustomerInfo {
38
46
  /**
@@ -157,38 +165,14 @@ export type NearFtTransferCallAction = {
157
165
  };
158
166
  type Bytes = ArrayLike<number>;
159
167
  type BytesLike = Bytes | string;
160
- type RawProductData = any;
161
168
  /** Purchase **/
162
- export type ChargebackProtectionData = ChargebackProtectionItem[];
163
- export interface ChargebackProtectionItem {
164
- /**
165
- * The name of the product
166
- */
167
- productName: string;
168
- /**
169
- * The product type. Possible values include: inGameProduct, gameOfSkill, dataStorage, computingResources, sportsTicket, eSportsTicket, musicTicket, conferenceTicket, virtualSportsTicket, virtualESportsTicket, virtualMusicTicket, virtualConferenceTicket, alcohol, DLC, subscription, fundACause, realEstate, computingContract, digitalArt, topUp
170
- */
171
- productType: 'inGameProduct' | 'gameOfSkill' | 'dataStorage' | 'computingResources' | 'sportsTicket' | 'eSportsTicket' | 'musicTicket' | 'conferenceTicket' | 'virtualSportsTicket' | 'virtualESportsTicket' | 'virtualMusicTicket' | 'virtualConferenceTicket' | 'alcohol' | 'DLC' | 'subscription' | 'fundACause' | 'realEstate' | 'computingContract' | 'digitalArt' | 'topUp' | 'ownershipContract';
172
- /**
173
- * The item's list price
174
- */
175
- /**
176
- * The number of units sold
177
- */
178
- quantity: number;
179
- /**
180
- * Any additional data that the store can provide on the product, e.g. description, link to image, etc.
181
- */
182
- rawProductData?: RawProductData;
183
- seller?: {
184
- dob: string;
185
- firstName: string;
186
- lastName: string;
187
- email: string;
188
- id: string;
189
- rawSellerData: RawProductData;
190
- };
191
- }
169
+ export type CartClassOmitted = CartItemClassOmitted[];
170
+ export type ChargebackProtectionData = CartClassOmitted;
171
+ export type CartItemClassOmitted = NftCartItemClassOmitted | Omit<GiftCardCartItem, 'listPrice'> | CryptoCartItem | MoneyTopUpCartItem;
172
+ export type ChargebackProtectionItem = CartItemClassOmitted;
173
+ export type NftCartItemClassOmitted = Omit<nftCartItem, 'listPrice' | 'sellingPrice' | 'itemClass'>;
174
+ export type Cart = CartItem[];
175
+ export type CartItem = Omit<nftCartItem, 'listPrice' | 'sellingPrice'> | Omit<GiftCardCartItem, 'listPrice'> | CryptoCartItem | MoneyTopUpCartItem;
192
176
  export declare enum ThreeDsChallengePreference {
193
177
  NoPreference = "NoPreference",
194
178
  Frictionless = "Frictionless",
@@ -353,6 +337,11 @@ export interface ArbitrumWalletProps {
353
337
  export type CoinflowArbitrumWithdrawProps = CoinflowEvmWithdrawProps & ArbitrumWalletProps;
354
338
  export type CoinflowWithdrawProps = CoinflowSolanaWithdrawProps | CoinflowNearWithdrawProps | CoinflowEthWithdrawProps | CoinflowPolygonWithdrawProps | CoinflowBaseWithdrawProps | CoinflowArbitrumWithdrawProps;
355
339
  export interface CommonEvmRedeem {
340
+ /**
341
+ * Whether the UI should wait
342
+ * for the transaction to be sent and
343
+ * the hash to be returned.
344
+ */
356
345
  waitForHash?: boolean;
357
346
  }
358
347
  export interface NormalRedeem extends CommonEvmRedeem {
@@ -362,7 +351,14 @@ export interface NormalRedeem extends CommonEvmRedeem {
362
351
  };
363
352
  }
364
353
  export interface KnownTokenIdRedeem extends NormalRedeem {
354
+ /**
355
+ * @minLength 42 Please provide a valid EVM Public Key (42 Characters Long)
356
+ * @maxLength 42 Please provide a valid EVM Public Key (42 Characters Long)
357
+ */
365
358
  nftContract: string;
359
+ /**
360
+ * @minLength 1 Please provide a valid Nft Id
361
+ */
366
362
  nftId: string;
367
363
  }
368
364
  export interface SafeMintRedeem extends NormalRedeem {
@@ -373,12 +369,12 @@ export interface ReturnedTokenIdRedeem extends NormalRedeem {
373
369
  type: 'returned';
374
370
  nftContract?: string;
375
371
  }
376
- type ReservoirNftIdItem = Omit<KnownTokenIdRedeem, keyof NormalRedeem>;
377
- interface ReservoirOrderIdItem {
372
+ export type ReservoirNftIdItem = Omit<KnownTokenIdRedeem, keyof NormalRedeem>;
373
+ export interface ReservoirOrderIdItem {
378
374
  orderId: string;
379
375
  }
380
- type ReservoirItem = ReservoirNftIdItem | ReservoirOrderIdItem;
381
- type ReservoirItems = ReservoirItem | ReservoirItem[];
376
+ export type ReservoirItem = ReservoirNftIdItem | ReservoirOrderIdItem;
377
+ export type ReservoirItems = ReservoirItem | ReservoirItem[];
382
378
  export interface ReservoirRedeem extends CommonEvmRedeem {
383
379
  type: 'reservoir';
384
380
  items: ReservoirItems;
@@ -388,7 +384,39 @@ export interface TokenRedeem extends CommonEvmRedeem {
388
384
  type: 'token';
389
385
  destination: string;
390
386
  }
391
- export type EvmTransactionData = SafeMintRedeem | ReturnedTokenIdRedeem | ReservoirRedeem | KnownTokenIdRedeem | NormalRedeem | TokenRedeem;
387
+ export interface DecentRedeem extends CommonEvmRedeem {
388
+ type: 'decent';
389
+ /**
390
+ * ID of the destination chain you will be using
391
+ * Find your chain ID here: https://chainlist.org/
392
+ */
393
+ dstChainId: number;
394
+ /**
395
+ * Address on that chain of the token you will be receiving
396
+ */
397
+ dstToken: string;
398
+ /**
399
+ * The contract address which will be called on the destination chain
400
+ */
401
+ contractAddress: string;
402
+ contractData: string;
403
+ /**
404
+ * Amount of the token on the destination chain you will be receiving
405
+ */
406
+ cost: {
407
+ /**
408
+ * This is the raw amount of the token
409
+ * ex: 50000000000000n
410
+ */
411
+ amount: string;
412
+ /**
413
+ * Whether or not the token is the native token for the chain (ex: Ethereum - ETH, Polygon - POL).
414
+ * If native dstToken should be the 0 address (0x00...)
415
+ */
416
+ isNative: boolean;
417
+ };
418
+ }
419
+ export type EvmTransactionData = SafeMintRedeem | ReturnedTokenIdRedeem | ReservoirRedeem | KnownTokenIdRedeem | NormalRedeem | TokenRedeem | DecentRedeem;
392
420
  export interface CoinflowIFrameProps extends Omit<CoinflowTypes, 'merchantId' | 'handleHeightChange'>, Pick<CoinflowCommonPurchaseProps, 'chargebackProtectionData' | 'webhookInfo' | 'subtotal' | 'presentment' | 'customerInfo' | 'settlementType' | 'email' | 'planCode' | 'deviceId' | 'jwtToken' | 'origins' | 'threeDsChallengePreference' | 'supportEmail' | 'allowedPaymentMethods'>, Pick<CoinflowCommonWithdrawProps, 'bankAccountLinkRedirect' | 'additionalWallets' | 'transactionSigner' | 'lockAmount' | 'lockDefaultToken' | 'origins'>, Pick<CoinflowEvmPurchaseProps, 'authOnly'>, Pick<CoinflowSolanaPurchaseProps, 'rent' | 'nativeSolToConvert' | 'destinationAuthKey'> {
393
421
  walletPubkey: string | null | undefined;
394
422
  sessionKey?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"CoinflowTypes.js","sourceRoot":"","sources":["../../src/common/CoinflowTypes.ts"],"names":[],"mappings":"AASA,MAAM,CAAN,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,qCAAmB,CAAA;IACnB,+BAAa,CAAA;IACb,+BAAa,CAAA;AACf,CAAC,EAJW,cAAc,KAAd,cAAc,QAIzB;AAED,MAAM,CAAN,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,oCAAmB,CAAA;IACnB,gCAAe,CAAA;IACf,8BAAa,CAAA;AACf,CAAC,EAJW,aAAa,KAAb,aAAa,QAIxB;AAwQD,MAAM,CAAN,IAAY,0BAIX;AAJD,WAAY,0BAA0B;IACpC,2DAA6B,CAAA;IAC7B,2DAA6B,CAAA;IAC7B,qDAAuB,CAAA;AACzB,CAAC,EAJW,0BAA0B,KAA1B,0BAA0B,QAIrC;AAED,MAAM,CAAN,IAAY,cAWX;AAXD,WAAY,cAAc;IACx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AkVD,MAAM,CAAN,IAAY,QAKX;AALD,WAAY,QAAQ;IAClB,yBAAa,CAAA;IACb,+BAAmB,CAAA;IACnB,yBAAa,CAAA;IACb,6BAAiB,CAAA;AACnB,CAAC,EALW,QAAQ,KAAR,QAAQ,QAKnB"}
@@ -1,7 +1,7 @@
1
1
  import { __awaiter, __generator } from "tslib";
2
2
  import { web3, base58 } from './SolanaPeerDeps';
3
3
  import LZString from 'lz-string';
4
- import { Currency } from './Subtotal';
4
+ import { Currency } from './types/Subtotal';
5
5
  var CoinflowUtils = /** @class */ (function () {
6
6
  function CoinflowUtils(env) {
7
7
  this.env = env !== null && env !== void 0 ? env : 'prod';
@@ -1 +1 @@
1
- {"version":3,"file":"CoinflowUtils.js","sourceRoot":"","sources":["../../src/common/CoinflowUtils.ts"],"names":[],"mappings":";AAOA,OAAO,EAAC,IAAI,EAAE,MAAM,EAAC,MAAM,kBAAkB,CAAC;AAC9C,OAAO,QAAQ,MAAM,WAAW,CAAC;AAEjC,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAC;AAEpC;IAIE,uBAAY,GAAkB;QAC5B,IAAI,CAAC,GAAG,GAAG,GAAG,aAAH,GAAG,cAAH,GAAG,GAAI,MAAM,CAAC;QACzB,IAAI,IAAI,CAAC,GAAG,KAAK,MAAM;YAAE,IAAI,CAAC,GAAG,GAAG,2BAA2B,CAAC;aAC3D,IAAI,IAAI,CAAC,GAAG,KAAK,OAAO;YAAE,IAAI,CAAC,GAAG,GAAG,uBAAuB,CAAC;;YAC7D,IAAI,CAAC,GAAG,GAAG,sBAAe,IAAI,CAAC,GAAG,mBAAgB,CAAC;IAC1D,CAAC;IAEK,yCAAiB,GAAvB,UAAwB,UAAkB;;;gBACxC,sBAAO,KAAK,CAAC,IAAI,CAAC,GAAG,GAAG,yBAAkB,UAAU,CAAE,CAAC;yBACpD,IAAI,CAAC,UAAA,QAAQ,IAAI,OAAA,QAAQ,CAAC,IAAI,EAAE,EAAf,CAAe,CAAC;y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AI,IAAI,IAAI,IAAI,CAAC,SAAS;QAAE,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;IAEtE,IAAI,UAAU,IAAI,IAAI,IAAI,IAAI,CAAC,QAAQ;QAAE,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;IAElE,IAAI,SAAS,IAAI,QAAQ;QACvB,OAAO;YACL,SAAS,WAAA;YACT,QAAQ,UAAA;SACT,CAAC;IACJ,OAAO,SAAS,CAAC;AACnB,CAAC"}
@@ -3,4 +3,8 @@ export * from './CoinflowUtils';
3
3
  export * from './CoinflowLibMessageHandlers';
4
4
  export * from './card-form/TokenEx';
5
5
  export * from './card-form/tokenexHelpers';
6
- export * from './Subtotal';
6
+ export * from './types/Subtotal';
7
+ export * from './types/AnyObject';
8
+ export * from './types/giftCardCartItem';
9
+ export * from './types/nftCartItem';
10
+ export * from './types/cryptoCartItem';
@@ -3,5 +3,9 @@ export * from './CoinflowUtils';
3
3
  export * from './CoinflowLibMessageHandlers';
4
4
  export * from './card-form/TokenEx';
5
5
  export * from './card-form/tokenexHelpers';
6
- export * from './Subtotal';
6
+ export * from './types/Subtotal';
7
+ export * from './types/AnyObject';
8
+ export * from './types/giftCardCartItem';
9
+ export * from './types/nftCartItem';
10
+ export * from './types/cryptoCartItem';
7
11
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qBAAqB,CAAC;AACpC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qBAAqB,CAAC;AACpC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC"}
@@ -0,0 +1,5 @@
1
+ export type AnyObject = {
2
+ [key: string]: any;
3
+ } & {
4
+ example?: string;
5
+ };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=AnyObject.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AnyObject.js","sourceRoot":"","sources":["../../../src/common/types/AnyObject.ts"],"names":[],"mappings":""}
@@ -0,0 +1,163 @@
1
+ /**
2
+ * Address structure
3
+ */
4
+ export interface Address {
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?: Address;
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
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=CartitemCommon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CartitemCommon.js","sourceRoot":"","sources":["../../../src/common/types/CartitemCommon.ts"],"names":[],"mappings":""}
@@ -0,0 +1,173 @@
1
+ export declare enum Currency {
2
+ AED = "AED",
3
+ AFN = "AFN",
4
+ ALL = "ALL",
5
+ ANG = "ANG",
6
+ AOA = "AOA",
7
+ AUD = "AUD",
8
+ AWG = "AWG",
9
+ AZN = "AZN",
10
+ BAM = "BAM",
11
+ BBD = "BBD",
12
+ BDT = "BDT",
13
+ BGN = "BGN",
14
+ BHD = "BHD",
15
+ BIF = "BIF",
16
+ BND = "BND",
17
+ BOB = "BOB",
18
+ BRL = "BRL",
19
+ BTN = "BTN",
20
+ BWP = "BWP",
21
+ BZD = "BZD",
22
+ CAD = "CAD",
23
+ CHF = "CHF",
24
+ CLP = "CLP",
25
+ CNY = "CNY",
26
+ COP = "COP",
27
+ CRC = "CRC",
28
+ CVE = "CVE",
29
+ CZK = "CZK",
30
+ DJF = "DJF",
31
+ DKK = "DKK",
32
+ DOP = "DOP",
33
+ DZD = "DZD",
34
+ EGP = "EGP",
35
+ ETB = "ETB",
36
+ EUR = "EUR",
37
+ GBP = "GBP",
38
+ GEL = "GEL",
39
+ GHS = "GHS",
40
+ GMD = "GMD",
41
+ GNF = "GNF",
42
+ GTQ = "GTQ",
43
+ GYD = "GYD",
44
+ HKD = "HKD",
45
+ HNL = "HNL",
46
+ HTG = "HTG",
47
+ HUF = "HUF",
48
+ IDR = "IDR",
49
+ INR = "INR",
50
+ IQD = "IQD",
51
+ IRR = "IRR",
52
+ ISK = "ISK",
53
+ JMD = "JMD",
54
+ JOD = "JOD",
55
+ JPY = "JPY",
56
+ KES = "KES",
57
+ KGS = "KGS",
58
+ KHR = "KHR",
59
+ KMF = "KMF",
60
+ KRW = "KRW",
61
+ KWD = "KWD",
62
+ KYD = "KYD",
63
+ KZT = "KZT",
64
+ LKR = "LKR",
65
+ LRD = "LRD",
66
+ LSL = "LSL",
67
+ LYD = "LYD",
68
+ MAD = "MAD",
69
+ MDL = "MDL",
70
+ MGA = "MGA",
71
+ MKD = "MKD",
72
+ MMK = "MMK",
73
+ MNT = "MNT",
74
+ MOP = "MOP",
75
+ MRU = "MRU",
76
+ MUR = "MUR",
77
+ MVR = "MVR",
78
+ MXN = "MXN",
79
+ MYR = "MYR",
80
+ NAD = "NAD",
81
+ NGN = "NGN",
82
+ NIO = "NIO",
83
+ NOK = "NOK",
84
+ NPR = "NPR",
85
+ NZD = "NZD",
86
+ OMR = "OMR",
87
+ PAB = "PAB",
88
+ PEN = "PEN",
89
+ PHP = "PHP",
90
+ PKR = "PKR",
91
+ PLN = "PLN",
92
+ PYG = "PYG",
93
+ QAR = "QAR",
94
+ RON = "RON",
95
+ RSD = "RSD",
96
+ RWF = "RWF",
97
+ SAR = "SAR",
98
+ SCR = "SCR",
99
+ SDG = "SDG",
100
+ SEK = "SEK",
101
+ SGD = "SGD",
102
+ SLE = "SLE",
103
+ SLL = "SLL",
104
+ SOS = "SOS",
105
+ STN = "STN",
106
+ SVC = "SVC",
107
+ SYP = "SYP",
108
+ SZL = "SZL",
109
+ THB = "THB",
110
+ TJS = "TJS",
111
+ TMT = "TMT",
112
+ TND = "TND",
113
+ TRY = "TRY",
114
+ TTD = "TTD",
115
+ TWD = "TWD",
116
+ TZS = "TZS",
117
+ UAH = "UAH",
118
+ UGX = "UGX",
119
+ USD = "USD",
120
+ UYU = "UYU",
121
+ UZS = "UZS",
122
+ VND = "VND",
123
+ XAF = "XAF",
124
+ XCD = "XCD",
125
+ XOF = "XOF",
126
+ XPF = "XPF",
127
+ YER = "YER",
128
+ ZAR = "ZAR",
129
+ ZMW = "ZMW"
130
+ }
131
+ export type WithdrawCurrency = Currency.USD | Currency.EUR | Currency.GBP | Currency.BRL;
132
+ export declare const WithdrawCurrencies: {
133
+ readonly USD: Currency.USD;
134
+ readonly EUR: Currency.EUR;
135
+ readonly GBP: Currency.GBP;
136
+ readonly BRL: Currency.BRL;
137
+ };
138
+ export declare function isWithdrawCurrency(currency: Currency): currency is WithdrawCurrency;
139
+ export interface Cents {
140
+ /**
141
+ * @isInt Cents must be an integer
142
+ * @minimum 0 Minimum Cents is 0
143
+ */
144
+ cents: number;
145
+ }
146
+ export interface CurrencyCents extends Cents {
147
+ currency: Currency;
148
+ }
149
+ export interface TypedCurrencyCents<T extends Currency> extends Cents {
150
+ currency: T;
151
+ }
152
+ export declare function isTypedCurrencyCents<T extends Currency>(cents: CurrencyCents, currency: T): cents is TypedCurrencyCents<T>;
153
+ export interface TokenSubtotal {
154
+ /**
155
+ * The tokens address
156
+ *
157
+ * Solana - Token Mint Address
158
+ * Evm - Token Contract Address
159
+ */
160
+ address: string;
161
+ /**
162
+ * Number of tokens
163
+ */
164
+ amount: number | string;
165
+ /**
166
+ * Number of decimals for the token
167
+ */
168
+ decimals?: number;
169
+ }
170
+ export type Subtotal = CurrencyCents | Cents | TokenSubtotal;
171
+ export interface NearDeposit {
172
+ yocto: string;
173
+ }
@@ -0,0 +1,145 @@
1
+ var _a;
2
+ export var Currency;
3
+ (function (Currency) {
4
+ Currency["AED"] = "AED";
5
+ Currency["AFN"] = "AFN";
6
+ Currency["ALL"] = "ALL";
7
+ Currency["ANG"] = "ANG";
8
+ Currency["AOA"] = "AOA";
9
+ Currency["AUD"] = "AUD";
10
+ Currency["AWG"] = "AWG";
11
+ Currency["AZN"] = "AZN";
12
+ Currency["BAM"] = "BAM";
13
+ Currency["BBD"] = "BBD";
14
+ Currency["BDT"] = "BDT";
15
+ Currency["BGN"] = "BGN";
16
+ Currency["BHD"] = "BHD";
17
+ Currency["BIF"] = "BIF";
18
+ Currency["BND"] = "BND";
19
+ Currency["BOB"] = "BOB";
20
+ Currency["BRL"] = "BRL";
21
+ Currency["BTN"] = "BTN";
22
+ Currency["BWP"] = "BWP";
23
+ Currency["BZD"] = "BZD";
24
+ Currency["CAD"] = "CAD";
25
+ Currency["CHF"] = "CHF";
26
+ Currency["CLP"] = "CLP";
27
+ Currency["CNY"] = "CNY";
28
+ Currency["COP"] = "COP";
29
+ Currency["CRC"] = "CRC";
30
+ Currency["CVE"] = "CVE";
31
+ Currency["CZK"] = "CZK";
32
+ Currency["DJF"] = "DJF";
33
+ Currency["DKK"] = "DKK";
34
+ Currency["DOP"] = "DOP";
35
+ Currency["DZD"] = "DZD";
36
+ Currency["EGP"] = "EGP";
37
+ Currency["ETB"] = "ETB";
38
+ Currency["EUR"] = "EUR";
39
+ Currency["GBP"] = "GBP";
40
+ Currency["GEL"] = "GEL";
41
+ Currency["GHS"] = "GHS";
42
+ Currency["GMD"] = "GMD";
43
+ Currency["GNF"] = "GNF";
44
+ Currency["GTQ"] = "GTQ";
45
+ Currency["GYD"] = "GYD";
46
+ Currency["HKD"] = "HKD";
47
+ Currency["HNL"] = "HNL";
48
+ Currency["HTG"] = "HTG";
49
+ Currency["HUF"] = "HUF";
50
+ Currency["IDR"] = "IDR";
51
+ Currency["INR"] = "INR";
52
+ Currency["IQD"] = "IQD";
53
+ Currency["IRR"] = "IRR";
54
+ Currency["ISK"] = "ISK";
55
+ Currency["JMD"] = "JMD";
56
+ Currency["JOD"] = "JOD";
57
+ Currency["JPY"] = "JPY";
58
+ Currency["KES"] = "KES";
59
+ Currency["KGS"] = "KGS";
60
+ Currency["KHR"] = "KHR";
61
+ Currency["KMF"] = "KMF";
62
+ Currency["KRW"] = "KRW";
63
+ Currency["KWD"] = "KWD";
64
+ Currency["KYD"] = "KYD";
65
+ Currency["KZT"] = "KZT";
66
+ Currency["LKR"] = "LKR";
67
+ Currency["LRD"] = "LRD";
68
+ Currency["LSL"] = "LSL";
69
+ Currency["LYD"] = "LYD";
70
+ Currency["MAD"] = "MAD";
71
+ Currency["MDL"] = "MDL";
72
+ Currency["MGA"] = "MGA";
73
+ Currency["MKD"] = "MKD";
74
+ Currency["MMK"] = "MMK";
75
+ Currency["MNT"] = "MNT";
76
+ Currency["MOP"] = "MOP";
77
+ Currency["MRU"] = "MRU";
78
+ Currency["MUR"] = "MUR";
79
+ Currency["MVR"] = "MVR";
80
+ Currency["MXN"] = "MXN";
81
+ Currency["MYR"] = "MYR";
82
+ Currency["NAD"] = "NAD";
83
+ Currency["NGN"] = "NGN";
84
+ Currency["NIO"] = "NIO";
85
+ Currency["NOK"] = "NOK";
86
+ Currency["NPR"] = "NPR";
87
+ Currency["NZD"] = "NZD";
88
+ Currency["OMR"] = "OMR";
89
+ Currency["PAB"] = "PAB";
90
+ Currency["PEN"] = "PEN";
91
+ Currency["PHP"] = "PHP";
92
+ Currency["PKR"] = "PKR";
93
+ Currency["PLN"] = "PLN";
94
+ Currency["PYG"] = "PYG";
95
+ Currency["QAR"] = "QAR";
96
+ Currency["RON"] = "RON";
97
+ Currency["RSD"] = "RSD";
98
+ Currency["RWF"] = "RWF";
99
+ Currency["SAR"] = "SAR";
100
+ Currency["SCR"] = "SCR";
101
+ Currency["SDG"] = "SDG";
102
+ Currency["SEK"] = "SEK";
103
+ Currency["SGD"] = "SGD";
104
+ Currency["SLE"] = "SLE";
105
+ Currency["SLL"] = "SLL";
106
+ Currency["SOS"] = "SOS";
107
+ Currency["STN"] = "STN";
108
+ Currency["SVC"] = "SVC";
109
+ Currency["SYP"] = "SYP";
110
+ Currency["SZL"] = "SZL";
111
+ Currency["THB"] = "THB";
112
+ Currency["TJS"] = "TJS";
113
+ Currency["TMT"] = "TMT";
114
+ Currency["TND"] = "TND";
115
+ Currency["TRY"] = "TRY";
116
+ Currency["TTD"] = "TTD";
117
+ Currency["TWD"] = "TWD";
118
+ Currency["TZS"] = "TZS";
119
+ Currency["UAH"] = "UAH";
120
+ Currency["UGX"] = "UGX";
121
+ Currency["USD"] = "USD";
122
+ Currency["UYU"] = "UYU";
123
+ Currency["UZS"] = "UZS";
124
+ Currency["VND"] = "VND";
125
+ Currency["XAF"] = "XAF";
126
+ Currency["XCD"] = "XCD";
127
+ Currency["XOF"] = "XOF";
128
+ Currency["XPF"] = "XPF";
129
+ Currency["YER"] = "YER";
130
+ Currency["ZAR"] = "ZAR";
131
+ Currency["ZMW"] = "ZMW";
132
+ })(Currency || (Currency = {}));
133
+ export var WithdrawCurrencies = (_a = {},
134
+ _a[Currency.USD] = Currency.USD,
135
+ _a[Currency.EUR] = Currency.EUR,
136
+ _a[Currency.GBP] = Currency.GBP,
137
+ _a[Currency.BRL] = Currency.BRL,
138
+ _a);
139
+ export function isWithdrawCurrency(currency) {
140
+ return currency in WithdrawCurrencies;
141
+ }
142
+ export function isTypedCurrencyCents(cents, currency) {
143
+ return cents.currency === currency;
144
+ }
145
+ //# sourceMappingURL=Subtotal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Subtotal.js","sourceRoot":"","sources":["../../../src/common/types/Subtotal.ts"],"names":[],"mappings":";AAAA,MAAM,CAAN,IAAY,QAiIX;AAjID,WAAY,QAAQ;IAClB,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,C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B,QAAW;IAEX,OAAO,KAAK,CAAC,QAAQ,KAAK,QAAQ,CAAC;AACrC,CAAC"}
@@ -0,0 +1,62 @@
1
+ import { RecipientInfo, SellerInfo } from './CartitemCommon';
2
+ /**
3
+ * Represents a crypto item in a shopping cart
4
+ */
5
+ export interface CryptoCartItem {
6
+ /**
7
+ * Denotes the cart item class. The item schema is chosen based on this value.
8
+ * Allowed value: crypto
9
+ * Example: crypto
10
+ */
11
+ itemClass: 'crypto';
12
+ /**
13
+ * The cart items's unique ID
14
+ * Example: 5de33332-546a-4171-8988-2a43d2bfe9c6
15
+ */
16
+ id?: string;
17
+ /**
18
+ * Any additional product data which can be provided, e.g. description, link to image, etc
19
+ * Example: {"any":"data","description":"This is the product description"}
20
+ */
21
+ rawProductData?: Record<string, any>;
22
+ /**
23
+ * The amount in the crypto currency which is specified in the `cryptoCurrency` property
24
+ * Example: 1.04112
25
+ * Pattern: ^[0-9]+(\.[0-9]+)?$
26
+ */
27
+ units: string;
28
+ /**
29
+ * The crypto-currency symbol (uppercase)
30
+ * Example: BTC
31
+ * Pattern: ^[A-Z0-9-]+$
32
+ */
33
+ cryptoCurrency: string;
34
+ /**
35
+ * The price per 1 unit
36
+ */
37
+ unitPrice: {
38
+ /**
39
+ * The amount in the currency, which is specified in the `currency` property
40
+ * Example: 90
41
+ */
42
+ valueInCurrency: number;
43
+ /**
44
+ * Currency specified as a three letter code according to ISO 4217
45
+ * Example: USD
46
+ */
47
+ currency: string;
48
+ };
49
+ /**
50
+ * The expected delay in delivery, in hours
51
+ * Min value: 0
52
+ */
53
+ expectedDeliveryDelay?: number;
54
+ /**
55
+ * The user's personal info
56
+ */
57
+ recipientInfo: RecipientInfo;
58
+ /**
59
+ * Seller info
60
+ */
61
+ seller?: SellerInfo;
62
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=cryptoCartItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cryptoCartItem.js","sourceRoot":"","sources":["../../../src/common/types/cryptoCartItem.ts"],"names":[],"mappings":""}
@@ -0,0 +1,58 @@
1
+ import { RecipientInfo, SellerInfo } from './CartitemCommon';
2
+ export interface GiftCardCartItem {
3
+ itemClass: 'giftCard';
4
+ productType: 'giftCard';
5
+ /**
6
+ * The cart items’s unique ID
7
+ */
8
+ id: string;
9
+ /**
10
+ * The number of units sold
11
+ */
12
+ quantity: number;
13
+ /**
14
+ * How the product was fulfilled.
15
+ */
16
+ itemFulfillment: 'digital' | 'physical';
17
+ sellingPrice: {
18
+ valueInCurrency: number;
19
+ currency: string;
20
+ };
21
+ /**
22
+ * Any additional product data which can be provided, e.g. description, link to image, etc
23
+ */
24
+ rawProductData?: Record<string, any>;
25
+ /**
26
+ * The stock-keeping unit (SKU) number
27
+ */
28
+ sku?: string;
29
+ /**
30
+ * The name of the brand
31
+ */
32
+ brand?: string;
33
+ /**
34
+ * The category in the site/app in which the item was classified (e.g., fashion)
35
+ */
36
+ categories?: string[];
37
+ listPrice?: {
38
+ valueInCurrency: number;
39
+ currency: string;
40
+ };
41
+ isGift?: boolean;
42
+ /**
43
+ * The user's personal info
44
+ */
45
+ recipientInfo?: RecipientInfo;
46
+ /**
47
+ * The item's selling price
48
+ */
49
+ seller?: SellerInfo;
50
+ /**
51
+ * The expected delay in delivery, in hours
52
+ */
53
+ expectedDeliveryDelay?: number;
54
+ /**
55
+ * Represents whether the item amount is taken from a preset list, e.g. 25, 50, 100, etc. or whether it was a different amount, e.g. 27
56
+ */
57
+ isPresetAmount?: boolean;
58
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=giftCardCartItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"giftCardCartItem.js","sourceRoot":"","sources":["../../../src/common/types/giftCardCartItem.ts"],"names":[],"mappings":""}
@@ -0,0 +1,44 @@
1
+ import { CurrencyAmount, RecipientInfo } from './CartitemCommon';
2
+ /**
3
+ * Represents a money top-up item in a shopping cart
4
+ */
5
+ export interface MoneyTopUpCartItem {
6
+ /**
7
+ * Denotes the cart item class. The item schema is chosen based on this value.
8
+ * Allowed value: moneyTopUp
9
+ * Example: moneyTopUp
10
+ */
11
+ itemClass: 'moneyTopUp';
12
+ /**
13
+ * The cart items's unique ID
14
+ * Example: 5de33332-546a-4171-8988-2a43d2bfe9c6
15
+ */
16
+ id?: string;
17
+ /**
18
+ * Any additional product data which can be provided, e.g. description, link to image, etc
19
+ * Example: {"any":"data","description":"This is the product description"}
20
+ */
21
+ rawProductData?: Record<string, any>;
22
+ /**
23
+ * The item's selling price
24
+ */
25
+ sellingPrice: CurrencyAmount;
26
+ /**
27
+ * The user's personal info
28
+ */
29
+ recipientInfo?: RecipientInfo;
30
+ /**
31
+ * The item's topUp amount
32
+ */
33
+ topUpAmount: CurrencyAmount;
34
+ /**
35
+ * Quantity
36
+ * Example: 2
37
+ */
38
+ quantity: number;
39
+ /**
40
+ * Represents whether the item amount is taken from a preset list, e.g. 25, 50, 100, etc.
41
+ * or whether it was a different amount, e.g. 27
42
+ */
43
+ isPresetAmount: boolean;
44
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=moneyTopUpCartItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"moneyTopUpCartItem.js","sourceRoot":"","sources":["../../../src/common/types/moneyTopUpCartItem.ts"],"names":[],"mappings":""}
@@ -0,0 +1,99 @@
1
+ import { AnyObject } from './AnyObject';
2
+ /**
3
+ * An nft cart item
4
+ */
5
+ export type nftCartItem = {
6
+ /**
7
+ * Denotes the cart item class. The item schema is chosen based on this value
8
+ */
9
+ itemClass: 'nft';
10
+ /**
11
+ * The name of the related product
12
+ *
13
+ * @minLength 1
14
+ */
15
+ productName: string;
16
+ /**
17
+ * The product type. Possible values include: inGameProduct, gameOfSkill, dataStorage, computingResources, sportsTicket, eSportsTicket, musicTicket, conferenceTicket, virtualSportsTicket, virtualESportsTicket, virtualMusicTicket, virtualConferenceTicket, alcohol, DLC, subscription, fundACause, realEstate, computingContract, digitalArt, topUp
18
+ */
19
+ productType: productType;
20
+ /**
21
+ * The item's list price
22
+ */
23
+ listPrice?: {
24
+ /**
25
+ * The amount in the currency, which is specified in the `currency` property
26
+ */
27
+ valueInCurrency?: number;
28
+ /**
29
+ * Currency specified as a three letter code according to ISO 4217
30
+ */
31
+ currency?: string;
32
+ };
33
+ /**
34
+ * The item's list price
35
+ */
36
+ sellingPrice: {
37
+ /**
38
+ * The amount in the currency, which is specified in the `currency` property
39
+ */
40
+ valueInCurrency?: number;
41
+ /**
42
+ * Currency specified as a three-letter code according to ISO 4217
43
+ */
44
+ currency?: string;
45
+ };
46
+ /**
47
+ * The number of units sold
48
+ */
49
+ quantity: number;
50
+ /**
51
+ * Any additional data that the store can provide on the product, e.g. description, link to image, etc.
52
+ */
53
+ rawProductData?: AnyObject;
54
+ seller?: {
55
+ id: string;
56
+ email: string;
57
+ firstName: string;
58
+ lastName: string;
59
+ dob: string;
60
+ rawSellerData: Record<string, any>;
61
+ };
62
+ };
63
+ export type productType = 'inGameProduct' | 'gameOfSkill' | 'dataStorage' | 'computingResources' | 'sportsTicket' | 'eSportsTicket' | 'musicTicket' | 'conferenceTicket' | 'virtualSportsTicket' | 'virtualESportsTicket' | 'virtualMusicTicket' | 'virtualConferenceTicket' | 'alcohol' | 'DLC' | 'subscription' | 'fundACause' | 'realEstate' | 'computingContract' | 'digitalArt' | 'topUp' | 'ownershipContract' | 'inGameCurrency';
64
+ export declare namespace nftCartItem {
65
+ /**
66
+ * Denotes the cart item class. The item schema is chosen based on this value
67
+ */
68
+ enum itemClass {
69
+ NFT = "nft"
70
+ }
71
+ /**
72
+ * The product type. Possible values include: inGameProduct, gameOfSkill, dataStorage, computingResources, sportsTicket, eSportsTicket, musicTicket, conferenceTicket, virtualSportsTicket, virtualESportsTicket, virtualMusicTicket, virtualConferenceTicket, alcohol, DLC, subscription, fundACause, realEstate, computingContract, digitalArt, topUp
73
+ */
74
+ enum productType {
75
+ IN_GAME_PRODUCT = "inGameProduct",
76
+ GAME_OF_SKILL = "gameOfSkill",
77
+ DATA_STORAGE = "dataStorage",
78
+ COMPUTING_RESOURCES = "computingResources",
79
+ SPORTS_TICKET = "sportsTicket",
80
+ E_SPORTS_TICKET = "eSportsTicket",
81
+ MUSIC_TICKET = "musicTicket",
82
+ CONFERENCE_TICKET = "conferenceTicket",
83
+ VIRTUAL_SPORTS_TICKET = "virtualSportsTicket",
84
+ VIRTUAL_ESPORTS_TICKET = "virtualESportsTicket",
85
+ VIRTUAL_MUSIC_TICKET = "virtualMusicTicket",
86
+ VIRTUAL_CONFERENCE_TICKET = "virtualConferenceTicket",
87
+ ALCOHOL = "alcohol",
88
+ DLC = "DLC",
89
+ SUBSCRIPTION = "subscription",
90
+ FUND_ACAUSE = "fundACause",
91
+ REAL_ESTATE = "realEstate",
92
+ COMPUTING_CONTRACT = "computingContract",
93
+ DIGITAL_ART = "digitalArt",
94
+ TOP_UP = "topUp",
95
+ OWNERSHIP_CONTRACT = "ownershipContract",
96
+ IN_GAME_CURRENCY = "inGameCurrency",
97
+ MONEY_TOP_UP_CART_ITEM = "moneyTopUpCartItem"
98
+ }
99
+ }
@@ -0,0 +1,44 @@
1
+ /* generated using openapi-typescript-codegen -- do no edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ export var nftCartItem;
6
+ (function (nftCartItem) {
7
+ /**
8
+ * Denotes the cart item class. The item schema is chosen based on this value
9
+ */
10
+ var itemClass;
11
+ (function (itemClass) {
12
+ itemClass["NFT"] = "nft";
13
+ })(itemClass = nftCartItem.itemClass || (nftCartItem.itemClass = {}));
14
+ /**
15
+ * The product type. Possible values include: inGameProduct, gameOfSkill, dataStorage, computingResources, sportsTicket, eSportsTicket, musicTicket, conferenceTicket, virtualSportsTicket, virtualESportsTicket, virtualMusicTicket, virtualConferenceTicket, alcohol, DLC, subscription, fundACause, realEstate, computingContract, digitalArt, topUp
16
+ */
17
+ var productType;
18
+ (function (productType) {
19
+ productType["IN_GAME_PRODUCT"] = "inGameProduct";
20
+ productType["GAME_OF_SKILL"] = "gameOfSkill";
21
+ productType["DATA_STORAGE"] = "dataStorage";
22
+ productType["COMPUTING_RESOURCES"] = "computingResources";
23
+ productType["SPORTS_TICKET"] = "sportsTicket";
24
+ productType["E_SPORTS_TICKET"] = "eSportsTicket";
25
+ productType["MUSIC_TICKET"] = "musicTicket";
26
+ productType["CONFERENCE_TICKET"] = "conferenceTicket";
27
+ productType["VIRTUAL_SPORTS_TICKET"] = "virtualSportsTicket";
28
+ productType["VIRTUAL_ESPORTS_TICKET"] = "virtualESportsTicket";
29
+ productType["VIRTUAL_MUSIC_TICKET"] = "virtualMusicTicket";
30
+ productType["VIRTUAL_CONFERENCE_TICKET"] = "virtualConferenceTicket";
31
+ productType["ALCOHOL"] = "alcohol";
32
+ productType["DLC"] = "DLC";
33
+ productType["SUBSCRIPTION"] = "subscription";
34
+ productType["FUND_ACAUSE"] = "fundACause";
35
+ productType["REAL_ESTATE"] = "realEstate";
36
+ productType["COMPUTING_CONTRACT"] = "computingContract";
37
+ productType["DIGITAL_ART"] = "digitalArt";
38
+ productType["TOP_UP"] = "topUp";
39
+ productType["OWNERSHIP_CONTRACT"] = "ownershipContract";
40
+ productType["IN_GAME_CURRENCY"] = "inGameCurrency";
41
+ productType["MONEY_TOP_UP_CART_ITEM"] = "moneyTopUpCartItem";
42
+ })(productType = nftCartItem.productType || (nftCartItem.productType = {}));
43
+ })(nftCartItem || (nftCartItem = {}));
44
+ //# sourceMappingURL=nftCartItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nftCartItem.js","sourceRoot":"","sources":["../../../src/common/types/nftCartItem.ts"],"names":[],"mappings":"AAAA,8DAA8D;AAC9D,0BAA0B;AAC1B,oBAAoB;AACpB,oBAAoB;AA0FpB,MAAM,KAAW,WAAW,CAoC3B;AApCD,WAAiB,WAAW;IAC1B;;OAEG;IACH,IAAY,SAEX;IAFD,WAAY,SAAS;QACnB,wBAAW,CAAA;IACb,CAAC,EAFW,SAAS,GAAT,qBAAS,KAAT,qBAAS,QAEpB;IAED;;OAEG;IACH,IAAY,WAwBX;IAxBD,WAAY,WAAW;QACrB,gDAAiC,CAAA;QACjC,4CAA6B,CAAA;QAC7B,2CAA4B,CAAA;QAC5B,yDAA0C,CAAA;QAC1C,6CAA8B,CAAA;QAC9B,gDAAiC,CAAA;QACjC,2CAA4B,CAAA;QAC5B,qDAAsC,CAAA;QACtC,4DAA6C,CAAA;QAC7C,8DAA+C,CAAA;QAC/C,0DAA2C,CAAA;QAC3C,oEAAqD,CAAA;QACrD,kCAAmB,CAAA;QACnB,0BAAW,CAAA;QACX,4CAA6B,CAAA;QAC7B,yCAA0B,CAAA;QAC1B,yCAA0B,CAAA;QAC1B,uDAAwC,CAAA;QACxC,yCAA0B,CAAA;QAC1B,+BAAgB,CAAA;QAChB,uDAAwC,CAAA;QACxC,kDAAmC,CAAA;QACnC,4DAA6C,CAAA;IAC/C,CAAC,EAxBW,WAAW,GAAX,uBAAW,KAAX,uBAAW,QAwBtB;AACH,CAAC,EApCgB,WAAW,KAAX,WAAW,QAoC3B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coinflowlabs/react-native",
3
- "version": "4.1.0",
3
+ "version": "4.2.0",
4
4
  "description": "React Native Component for Coinflow",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -1,86 +0,0 @@
1
- export declare enum Currency {
2
- USD = "USD",// Dollar - USA
3
- EUR = "EUR",// Euro - European Union
4
- GBP = "GBP",// Pound - United Kingdom
5
- BRL = "BRL",// Real - Brazil
6
- ARS = "ARS",// Peso - Argentina
7
- BHD = "BHD",// Dinar - Bahrain
8
- BWP = "BWP",// Pula - Botswana
9
- BND = "BND",// Dollar - Brunei
10
- BGN = "BGN",// Lev - Bulgaria
11
- CLP = "CLP",// Peso - Chile
12
- HRK = "HRK",// Kuna - Croatia
13
- DJF = "DJF",// Djibouti Franc - Djibouti
14
- DOP = "DOP",// Peso - Dominican Republic
15
- EGP = "EGP",// Pounds - Egypt
16
- GEL = "GEL",// Lari - Georgia
17
- HUF = "HUF",// Forint - Hungary
18
- ISK = "ISK",// Krona - Iceland
19
- INR = "INR",// Rupees - India
20
- ILS = "ILS",// New Shekel - Israel
21
- JMD = "JMD",// Dollar - Jamaica
22
- JOD = "JOD",// Dinar - Jordan
23
- KZT = "KZT",// Tenge - Kazakhstan
24
- KWD = "KWD",// Dinar - Kuwait
25
- KGS = "KGS",// Som - Kyrgyzstan
26
- LVL = "LVL",// Lat - Latvia
27
- LTL = "LTL",// Litai - Lithuania
28
- MWK = "MWK",// Kwacha - Malawi
29
- MYR = "MYR",// Ringgit - Malaysia
30
- MUR = "MUR",// Rupee - Mauritius
31
- MXN = "MXN",// Peso - Mexico
32
- MAD = "MAD",// Dirham - Morocco
33
- NAD = "NAD",// Dollar - Namibia
34
- NZD = "NZD",// Dollars - New Zealand
35
- PEN = "PEN",// Nuevo Sol - Peru
36
- PHP = "PHP",// Peso - Philippines
37
- PLN = "PLN",// Zloty - Poland
38
- RON = "RON",// Leu - Romania
39
- SAR = "SAR",// Riyal - Saudi Arabia
40
- SGD = "SGD",// Dollar - Singapore
41
- LKR = "LKR",// Rupee - Sri Lanka
42
- TWD = "TWD",// New Dollar - Taiwan
43
- TZS = "TZS",// Shilling - Tanzania
44
- THB = "THB",// Baht - Thailand
45
- TRY = "TRY",// New Lira - Turkey
46
- UAH = "UAH"
47
- }
48
- export type WithdrawCurrency = Currency.USD | Currency.EUR | Currency.GBP | Currency.BRL;
49
- export declare const WithdrawCurrencies: {
50
- readonly USD: Currency.USD;
51
- readonly EUR: Currency.EUR;
52
- readonly GBP: Currency.GBP;
53
- readonly BRL: Currency.BRL;
54
- };
55
- export declare function isWithdrawCurrency(currency: Currency): currency is WithdrawCurrency;
56
- export interface Cents {
57
- /**
58
- * @isInt Cents must be an integer
59
- * @minimum 0 Minimum Cents is 0
60
- */
61
- cents: number;
62
- }
63
- export interface CurrencyCents extends Cents {
64
- currency: Currency;
65
- }
66
- export interface TokenSubtotal {
67
- /**
68
- * The tokens address
69
- *
70
- * Solana - Token Mint Address
71
- * Evm - Token Contract Address
72
- */
73
- address: string;
74
- /**
75
- * Number of tokens
76
- */
77
- amount: number | string;
78
- /**
79
- * Number of decimals for the token
80
- */
81
- decimals?: number;
82
- }
83
- export type Subtotal = CurrencyCents | Cents | TokenSubtotal;
84
- export interface NearDeposit {
85
- yocto: string;
86
- }
@@ -1,59 +0,0 @@
1
- var _a;
2
- export var Currency;
3
- (function (Currency) {
4
- Currency["USD"] = "USD";
5
- Currency["EUR"] = "EUR";
6
- Currency["GBP"] = "GBP";
7
- Currency["BRL"] = "BRL";
8
- Currency["ARS"] = "ARS";
9
- Currency["BHD"] = "BHD";
10
- Currency["BWP"] = "BWP";
11
- Currency["BND"] = "BND";
12
- Currency["BGN"] = "BGN";
13
- Currency["CLP"] = "CLP";
14
- Currency["HRK"] = "HRK";
15
- Currency["DJF"] = "DJF";
16
- Currency["DOP"] = "DOP";
17
- Currency["EGP"] = "EGP";
18
- Currency["GEL"] = "GEL";
19
- Currency["HUF"] = "HUF";
20
- Currency["ISK"] = "ISK";
21
- Currency["INR"] = "INR";
22
- Currency["ILS"] = "ILS";
23
- Currency["JMD"] = "JMD";
24
- Currency["JOD"] = "JOD";
25
- Currency["KZT"] = "KZT";
26
- Currency["KWD"] = "KWD";
27
- Currency["KGS"] = "KGS";
28
- Currency["LVL"] = "LVL";
29
- Currency["LTL"] = "LTL";
30
- Currency["MWK"] = "MWK";
31
- Currency["MYR"] = "MYR";
32
- Currency["MUR"] = "MUR";
33
- Currency["MXN"] = "MXN";
34
- Currency["MAD"] = "MAD";
35
- Currency["NAD"] = "NAD";
36
- Currency["NZD"] = "NZD";
37
- Currency["PEN"] = "PEN";
38
- Currency["PHP"] = "PHP";
39
- Currency["PLN"] = "PLN";
40
- Currency["RON"] = "RON";
41
- Currency["SAR"] = "SAR";
42
- Currency["SGD"] = "SGD";
43
- Currency["LKR"] = "LKR";
44
- Currency["TWD"] = "TWD";
45
- Currency["TZS"] = "TZS";
46
- Currency["THB"] = "THB";
47
- Currency["TRY"] = "TRY";
48
- Currency["UAH"] = "UAH";
49
- })(Currency || (Currency = {}));
50
- export var WithdrawCurrencies = (_a = {},
51
- _a[Currency.USD] = Currency.USD,
52
- _a[Currency.EUR] = Currency.EUR,
53
- _a[Currency.GBP] = Currency.GBP,
54
- _a[Currency.BRL] = Currency.BRL,
55
- _a);
56
- export function isWithdrawCurrency(currency) {
57
- return currency in WithdrawCurrencies;
58
- }
59
- //# sourceMappingURL=Subtotal.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Subtotal.js","sourceRoot":"","sources":["../../src/common/Subtotal.ts"],"names":[],"mappings":";AAAA,MAAM,CAAN,IAAY,QA8CX;AA9CD,WAAY,QAAQ;IAClB,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;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