@coinflowlabs/react 5.0.9 → 5.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 (73) hide show
  1. package/README.md +4 -0
  2. package/build/cjs/common/CoinflowLibMessageHandlers.d.ts +3 -2
  3. package/build/cjs/common/CoinflowLibMessageHandlers.js +5 -1
  4. package/build/cjs/common/CoinflowLibMessageHandlers.js.map +1 -1
  5. package/build/cjs/common/CoinflowTypes.d.ts +67 -38
  6. package/build/cjs/common/CoinflowTypes.js.map +1 -1
  7. package/build/cjs/common/CoinflowUtils.d.ts +1 -1
  8. package/build/cjs/common/CoinflowUtils.js +4 -2
  9. package/build/cjs/common/CoinflowUtils.js.map +1 -1
  10. package/build/cjs/common/index.d.ts +5 -1
  11. package/build/cjs/common/index.js +5 -1
  12. package/build/cjs/common/index.js.map +1 -1
  13. package/build/cjs/common/types/AnyObject.d.ts +5 -0
  14. package/build/cjs/common/types/AnyObject.js +3 -0
  15. package/build/cjs/common/types/AnyObject.js.map +1 -0
  16. package/build/cjs/common/types/CartitemCommon.d.ts +163 -0
  17. package/build/cjs/common/types/CartitemCommon.js +3 -0
  18. package/build/cjs/common/types/CartitemCommon.js.map +1 -0
  19. package/build/cjs/common/types/Subtotal.d.ts +173 -0
  20. package/build/cjs/common/types/Subtotal.js +150 -0
  21. package/build/cjs/common/types/Subtotal.js.map +1 -0
  22. package/build/cjs/common/types/cryptoCartItem.d.ts +62 -0
  23. package/build/cjs/common/types/cryptoCartItem.js +3 -0
  24. package/build/cjs/common/types/cryptoCartItem.js.map +1 -0
  25. package/build/cjs/common/types/giftCardCartItem.d.ts +58 -0
  26. package/build/cjs/common/types/giftCardCartItem.js +3 -0
  27. package/build/cjs/common/types/giftCardCartItem.js.map +1 -0
  28. package/build/cjs/common/types/moneyTopUpCartItem.d.ts +44 -0
  29. package/build/cjs/common/types/moneyTopUpCartItem.js +3 -0
  30. package/build/cjs/common/types/moneyTopUpCartItem.js.map +1 -0
  31. package/build/cjs/common/types/nftCartItem.d.ts +99 -0
  32. package/build/cjs/common/types/nftCartItem.js +47 -0
  33. package/build/cjs/common/types/nftCartItem.js.map +1 -0
  34. package/build/esm/common/CoinflowLibMessageHandlers.d.ts +3 -2
  35. package/build/esm/common/CoinflowLibMessageHandlers.js +4 -1
  36. package/build/esm/common/CoinflowLibMessageHandlers.js.map +1 -1
  37. package/build/esm/common/CoinflowTypes.d.ts +67 -38
  38. package/build/esm/common/CoinflowTypes.js.map +1 -1
  39. package/build/esm/common/CoinflowUtils.d.ts +1 -1
  40. package/build/esm/common/CoinflowUtils.js +4 -2
  41. package/build/esm/common/CoinflowUtils.js.map +1 -1
  42. package/build/esm/common/index.d.ts +5 -1
  43. package/build/esm/common/index.js +5 -1
  44. package/build/esm/common/index.js.map +1 -1
  45. package/build/esm/common/types/AnyObject.d.ts +5 -0
  46. package/build/esm/common/types/AnyObject.js +2 -0
  47. package/build/esm/common/types/AnyObject.js.map +1 -0
  48. package/build/esm/common/types/CartitemCommon.d.ts +163 -0
  49. package/build/esm/common/types/CartitemCommon.js +2 -0
  50. package/build/esm/common/types/CartitemCommon.js.map +1 -0
  51. package/build/esm/common/types/Subtotal.d.ts +173 -0
  52. package/build/esm/common/types/Subtotal.js +145 -0
  53. package/build/esm/common/types/Subtotal.js.map +1 -0
  54. package/build/esm/common/types/cryptoCartItem.d.ts +62 -0
  55. package/build/esm/common/types/cryptoCartItem.js +2 -0
  56. package/build/esm/common/types/cryptoCartItem.js.map +1 -0
  57. package/build/esm/common/types/giftCardCartItem.d.ts +58 -0
  58. package/build/esm/common/types/giftCardCartItem.js +2 -0
  59. package/build/esm/common/types/giftCardCartItem.js.map +1 -0
  60. package/build/esm/common/types/moneyTopUpCartItem.d.ts +44 -0
  61. package/build/esm/common/types/moneyTopUpCartItem.js +2 -0
  62. package/build/esm/common/types/moneyTopUpCartItem.js.map +1 -0
  63. package/build/esm/common/types/nftCartItem.d.ts +99 -0
  64. package/build/esm/common/types/nftCartItem.js +44 -0
  65. package/build/esm/common/types/nftCartItem.js.map +1 -0
  66. package/build/tsconfig.tsbuildinfo +1 -1
  67. package/package.json +1 -1
  68. package/build/cjs/common/Subtotal.d.ts +0 -37
  69. package/build/cjs/common/Subtotal.js +0 -11
  70. package/build/cjs/common/Subtotal.js.map +0 -1
  71. package/build/esm/common/Subtotal.d.ts +0 -37
  72. package/build/esm/common/Subtotal.js +0 -8
  73. package/build/esm/common/Subtotal.js.map +0 -1
@@ -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":"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"}
@@ -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"}