@coinflowlabs/angular 1.0.7 → 1.1.1
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 +4 -0
- package/fesm2022/coinflowlabs-angular.mjs +319 -128
- package/fesm2022/coinflowlabs-angular.mjs.map +1 -1
- package/lib/card-form/CardFormService.d.ts +1 -1
- package/lib/common/CoinflowLibMessageHandlers.d.ts +3 -2
- package/lib/common/CoinflowTypes.d.ts +85 -75
- package/lib/common/CoinflowUtils.d.ts +1 -2
- package/lib/common/card-form/TokenEx.d.ts +1 -1
- package/lib/common/index.d.ts +5 -1
- package/lib/common/types/AnyObject.d.ts +5 -0
- package/lib/common/types/CartitemCommon.d.ts +163 -0
- package/lib/common/types/Subtotal.d.ts +172 -0
- package/lib/common/types/cryptoCartItem.d.ts +62 -0
- package/lib/common/types/giftCardCartItem.d.ts +58 -0
- package/lib/common/types/moneyTopUpCartItem.d.ts +44 -0
- package/lib/common/types/nftCartItem.d.ts +99 -0
- package/package.json +1 -1
- package/lib/common/Subtotal.d.ts +0 -37
- package/lib/mobile-wallet/apple-pay-overlay.component.d.ts +0 -7
|
@@ -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,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,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,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
|
+
}
|
package/package.json
CHANGED
package/lib/common/Subtotal.d.ts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
export declare enum Currency {
|
|
2
|
-
USD = "USD",
|
|
3
|
-
EUR = "EUR",
|
|
4
|
-
GBP = "GBP",
|
|
5
|
-
BRL = "BRL"
|
|
6
|
-
}
|
|
7
|
-
export interface Cents {
|
|
8
|
-
/**
|
|
9
|
-
* @isInt Cents must be an integer
|
|
10
|
-
* @minimum 0 Minimum Cents is 0
|
|
11
|
-
*/
|
|
12
|
-
cents: number;
|
|
13
|
-
}
|
|
14
|
-
export interface CurrencyCents extends Cents {
|
|
15
|
-
currency: Currency;
|
|
16
|
-
}
|
|
17
|
-
export interface TokenSubtotal {
|
|
18
|
-
/**
|
|
19
|
-
* The tokens address
|
|
20
|
-
*
|
|
21
|
-
* Solana - Token Mint Address
|
|
22
|
-
* Evm - Token Contract Address
|
|
23
|
-
*/
|
|
24
|
-
address: string;
|
|
25
|
-
/**
|
|
26
|
-
* Number of tokens
|
|
27
|
-
*/
|
|
28
|
-
amount: number | string;
|
|
29
|
-
/**
|
|
30
|
-
* Number of decimals for the token
|
|
31
|
-
*/
|
|
32
|
-
decimals?: number;
|
|
33
|
-
}
|
|
34
|
-
export type Subtotal = CurrencyCents | Cents | TokenSubtotal;
|
|
35
|
-
export interface NearDeposit {
|
|
36
|
-
yocto: string;
|
|
37
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class CoinflowApplePayOverlayComponent {
|
|
3
|
-
color: 'white' | 'black';
|
|
4
|
-
fill(): "#000" | "#FFF";
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CoinflowApplePayOverlayComponent, never>;
|
|
6
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CoinflowApplePayOverlayComponent, "coinflow-apple-pay-overlay", never, { "color": { "alias": "color"; "required": false; }; }, {}, never, never, true, never>;
|
|
7
|
-
}
|