@arbiwallet/contracts 1.0.125 → 1.0.127

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 CHANGED
@@ -57,6 +57,9 @@ export interface CardProviderInfo {
57
57
  limits: { [key: string]: string };
58
58
  details: { [key: string]: string };
59
59
  info: { [key: string]: string };
60
+ isGift: boolean;
61
+ pictureId: string;
62
+ label: string;
60
63
  }
61
64
 
62
65
  export interface CardProviderInfo_LimitsEntry {
@@ -238,7 +241,7 @@ export interface ExecuteCreateWithLedgerResponse {
238
241
  export interface ScanGiftCardQrRequest {
239
242
  accountId: number;
240
243
  uid: number;
241
- bin: string;
244
+ cardProductId: number;
242
245
  }
243
246
 
244
247
  export interface ScanGiftCardQrResponse {
@@ -297,6 +300,10 @@ export interface CardResponse {
297
300
  autoTopupLimit: string;
298
301
  currentAutoTopupAmount: string;
299
302
  cardBalanceThreshold: string;
303
+ productId: number;
304
+ isGift: boolean;
305
+ pictureId: string;
306
+ label: string;
300
307
  }
301
308
 
302
309
  export interface GetCardBalanceRequest {
@@ -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.125",
4
+ "version": "1.0.127",
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
@@ -87,6 +87,9 @@ message CardProviderInfo {
87
87
  map<string, string> limits = 25;
88
88
  map<string, string> details = 26;
89
89
  map<string, string> info = 27;
90
+ bool is_gift = 28;
91
+ string picture_id = 29;
92
+ string label = 30;
90
93
  }
91
94
 
92
95
  message GetCardProvidersInfoResponse {
@@ -254,7 +257,7 @@ message ExecuteCreateWithLedgerResponse {
254
257
  message ScanGiftCardQrRequest {
255
258
  int64 account_id = 1;
256
259
  int64 uid = 2;
257
- string bin = 3;
260
+ int64 card_product_id = 3;
258
261
  }
259
262
 
260
263
  message ScanGiftCardQrResponse {
@@ -313,6 +316,10 @@ message CardResponse {
313
316
  string auto_topup_limit = 20;
314
317
  string current_auto_topup_amount = 21;
315
318
  string card_balance_threshold = 22;
319
+ int64 product_id = 23;
320
+ bool is_gift = 24;
321
+ string picture_id = 25;
322
+ string label = 26;
316
323
  }
317
324
 
318
325
  message GetCardBalanceRequest {
@@ -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 {