@arbiwallet/contracts 1.0.124 → 1.0.126
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/gen/card.ts +36 -1
- package/gen/crm_gift_card.ts +3 -0
- package/package.json +1 -1
- package/proto/card.proto +21 -1
- package/proto/crm_gift_card.proto +3 -0
package/gen/card.ts
CHANGED
|
@@ -42,6 +42,39 @@ export interface CardProviderInfo {
|
|
|
42
42
|
cardRegion: string;
|
|
43
43
|
issueFee: string;
|
|
44
44
|
requiredAmount: string;
|
|
45
|
+
productId: number;
|
|
46
|
+
name: string;
|
|
47
|
+
subtitle: string;
|
|
48
|
+
topupFeePercent: string;
|
|
49
|
+
minFirstTopup: string;
|
|
50
|
+
minRegularTopup: string;
|
|
51
|
+
monthlyServiceFee: string;
|
|
52
|
+
validityPeriod: string;
|
|
53
|
+
mobilePaySupport: string;
|
|
54
|
+
transactionFee: string;
|
|
55
|
+
atmWithdrawalFee: string;
|
|
56
|
+
fxFee: string;
|
|
57
|
+
limits: { [key: string]: string };
|
|
58
|
+
details: { [key: string]: string };
|
|
59
|
+
info: { [key: string]: string };
|
|
60
|
+
isGift: boolean;
|
|
61
|
+
pictureId: string;
|
|
62
|
+
label: string;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export interface CardProviderInfo_LimitsEntry {
|
|
66
|
+
key: string;
|
|
67
|
+
value: string;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export interface CardProviderInfo_DetailsEntry {
|
|
71
|
+
key: string;
|
|
72
|
+
value: string;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export interface CardProviderInfo_InfoEntry {
|
|
76
|
+
key: string;
|
|
77
|
+
value: string;
|
|
45
78
|
}
|
|
46
79
|
|
|
47
80
|
export interface GetCardProvidersInfoResponse {
|
|
@@ -69,6 +102,7 @@ export interface CreateCardRequest {
|
|
|
69
102
|
kycApplicantJson: string;
|
|
70
103
|
kycResourcesJson: string;
|
|
71
104
|
kycVerifiedResources: KycVerifiedResource[];
|
|
105
|
+
productId: number;
|
|
72
106
|
}
|
|
73
107
|
|
|
74
108
|
export interface KycVerifiedResource {
|
|
@@ -185,6 +219,7 @@ export interface ExecuteCreateWithLedgerRequest {
|
|
|
185
219
|
idempotencySeed: string;
|
|
186
220
|
skipBalanceCheck: boolean;
|
|
187
221
|
previewOnly: boolean;
|
|
222
|
+
productId: number;
|
|
188
223
|
}
|
|
189
224
|
|
|
190
225
|
export interface ExecuteCreateWithLedgerResponse {
|
|
@@ -206,7 +241,7 @@ export interface ExecuteCreateWithLedgerResponse {
|
|
|
206
241
|
export interface ScanGiftCardQrRequest {
|
|
207
242
|
accountId: number;
|
|
208
243
|
uid: number;
|
|
209
|
-
|
|
244
|
+
cardProductId: number;
|
|
210
245
|
}
|
|
211
246
|
|
|
212
247
|
export interface ScanGiftCardQrResponse {
|
package/gen/crm_gift_card.ts
CHANGED
|
@@ -21,6 +21,7 @@ export interface PreviewGiftCardQrResponse {
|
|
|
21
21
|
userId: number;
|
|
22
22
|
uid: number;
|
|
23
23
|
cardBin: string;
|
|
24
|
+
cardProductId: number;
|
|
24
25
|
}
|
|
25
26
|
|
|
26
27
|
export interface ScanGiftCardQrRequest {
|
|
@@ -36,6 +37,7 @@ export interface ScanGiftCardQrResponse {
|
|
|
36
37
|
uid: number;
|
|
37
38
|
cardBin: string;
|
|
38
39
|
cardId: number;
|
|
40
|
+
cardProductId: number;
|
|
39
41
|
}
|
|
40
42
|
|
|
41
43
|
export interface GetGiftCardStatsRequest {
|
|
@@ -60,6 +62,7 @@ export interface GiftCardScanItem {
|
|
|
60
62
|
error: string;
|
|
61
63
|
createdAtUnixMs: number;
|
|
62
64
|
finalizedAtUnixMs: number;
|
|
65
|
+
cardProductId: number;
|
|
63
66
|
}
|
|
64
67
|
|
|
65
68
|
export interface ListGiftCardScansResponse {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arbiwallet/contracts",
|
|
3
3
|
"descriptions": "Generate and manage smart contracts for ArbiWallet",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.126",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit"
|
|
7
7
|
},
|
package/proto/card.proto
CHANGED
|
@@ -72,6 +72,24 @@ message CardProviderInfo {
|
|
|
72
72
|
string card_region = 10;
|
|
73
73
|
string issue_fee = 11;
|
|
74
74
|
string required_amount = 12;
|
|
75
|
+
int64 product_id = 13;
|
|
76
|
+
string name = 14;
|
|
77
|
+
string subtitle = 15;
|
|
78
|
+
string topup_fee_percent = 16;
|
|
79
|
+
string min_first_topup = 17;
|
|
80
|
+
string min_regular_topup = 18;
|
|
81
|
+
string monthly_service_fee = 19;
|
|
82
|
+
string validity_period = 20;
|
|
83
|
+
string mobile_pay_support = 21;
|
|
84
|
+
string transaction_fee = 22;
|
|
85
|
+
string atm_withdrawal_fee = 23;
|
|
86
|
+
string fx_fee = 24;
|
|
87
|
+
map<string, string> limits = 25;
|
|
88
|
+
map<string, string> details = 26;
|
|
89
|
+
map<string, string> info = 27;
|
|
90
|
+
bool is_gift = 28;
|
|
91
|
+
string picture_id = 29;
|
|
92
|
+
string label = 30;
|
|
75
93
|
}
|
|
76
94
|
|
|
77
95
|
message GetCardProvidersInfoResponse {
|
|
@@ -99,6 +117,7 @@ message CreateCardRequest {
|
|
|
99
117
|
string kyc_applicant_json = 18;
|
|
100
118
|
string kyc_resources_json = 19;
|
|
101
119
|
repeated KycVerifiedResource kyc_verified_resources = 20;
|
|
120
|
+
int64 product_id = 21;
|
|
102
121
|
}
|
|
103
122
|
|
|
104
123
|
message KycVerifiedResource {
|
|
@@ -215,6 +234,7 @@ message ExecuteCreateWithLedgerRequest {
|
|
|
215
234
|
string idempotency_seed = 12;
|
|
216
235
|
bool skip_balance_check = 13;
|
|
217
236
|
bool preview_only = 14;
|
|
237
|
+
int64 product_id = 15;
|
|
218
238
|
}
|
|
219
239
|
|
|
220
240
|
message ExecuteCreateWithLedgerResponse {
|
|
@@ -237,7 +257,7 @@ message ExecuteCreateWithLedgerResponse {
|
|
|
237
257
|
message ScanGiftCardQrRequest {
|
|
238
258
|
int64 account_id = 1;
|
|
239
259
|
int64 uid = 2;
|
|
240
|
-
|
|
260
|
+
int64 card_product_id = 3;
|
|
241
261
|
}
|
|
242
262
|
|
|
243
263
|
message ScanGiftCardQrResponse {
|
|
@@ -19,6 +19,7 @@ message PreviewGiftCardQrResponse {
|
|
|
19
19
|
int64 user_id = 4;
|
|
20
20
|
int64 uid = 5;
|
|
21
21
|
string card_bin = 6;
|
|
22
|
+
int64 card_product_id = 7;
|
|
22
23
|
}
|
|
23
24
|
|
|
24
25
|
message ScanGiftCardQrRequest {
|
|
@@ -34,6 +35,7 @@ message ScanGiftCardQrResponse {
|
|
|
34
35
|
int64 uid = 6;
|
|
35
36
|
string card_bin = 7;
|
|
36
37
|
int64 card_id = 8;
|
|
38
|
+
int64 card_product_id = 9;
|
|
37
39
|
}
|
|
38
40
|
|
|
39
41
|
message GetGiftCardStatsRequest {}
|
|
@@ -57,6 +59,7 @@ message GiftCardScanItem {
|
|
|
57
59
|
string error = 6;
|
|
58
60
|
int64 created_at_unix_ms = 7;
|
|
59
61
|
int64 finalized_at_unix_ms = 8;
|
|
62
|
+
int64 card_product_id = 9;
|
|
60
63
|
}
|
|
61
64
|
|
|
62
65
|
message ListGiftCardScansResponse {
|