@arbiwallet/contracts 1.0.108 → 1.0.109

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
@@ -170,6 +170,39 @@ export interface ExecuteTopupWithLedgerResponse {
170
170
  message: string;
171
171
  }
172
172
 
173
+ export interface ExecuteCreateWithLedgerRequest {
174
+ accountId: number;
175
+ currency: string;
176
+ cardType: string;
177
+ bin: string;
178
+ requiredAmount: string;
179
+ cardHolderName: string;
180
+ phone: string;
181
+ email: string;
182
+ firstName: string;
183
+ lastName: string;
184
+ kycRequired: boolean;
185
+ idempotencySeed: string;
186
+ skipBalanceCheck: boolean;
187
+ previewOnly: boolean;
188
+ }
189
+
190
+ export interface ExecuteCreateWithLedgerResponse {
191
+ status: string;
192
+ flow: string;
193
+ requiredDebitAmount: string;
194
+ currency: string;
195
+ cardType: string;
196
+ bin: string;
197
+ cardId: number;
198
+ card: CardResponse | undefined;
199
+ message: string;
200
+ availableAmount: string;
201
+ shortfallAmount: string;
202
+ ledgerConfigured: boolean;
203
+ sufficientBalance: boolean;
204
+ }
205
+
173
206
  export interface ListCardsRequest {
174
207
  accountId: number;
175
208
  }
@@ -393,6 +426,8 @@ export interface CardServiceClient {
393
426
 
394
427
  executeTopupWithLedger(request: ExecuteTopupWithLedgerRequest): Observable<ExecuteTopupWithLedgerResponse>;
395
428
 
429
+ executeCreateWithLedger(request: ExecuteCreateWithLedgerRequest): Observable<ExecuteCreateWithLedgerResponse>;
430
+
396
431
  listCards(request: ListCardsRequest): Observable<ListCardsResponse>;
397
432
 
398
433
  listCardsPaginated(request: ListCardsPaginatedRequest): Observable<ListCardsPaginatedResponse>;
@@ -454,6 +489,13 @@ export interface CardServiceController {
454
489
  | Observable<ExecuteTopupWithLedgerResponse>
455
490
  | ExecuteTopupWithLedgerResponse;
456
491
 
492
+ executeCreateWithLedger(
493
+ request: ExecuteCreateWithLedgerRequest,
494
+ ):
495
+ | Promise<ExecuteCreateWithLedgerResponse>
496
+ | Observable<ExecuteCreateWithLedgerResponse>
497
+ | ExecuteCreateWithLedgerResponse;
498
+
457
499
  listCards(request: ListCardsRequest): Promise<ListCardsResponse> | Observable<ListCardsResponse> | ListCardsResponse;
458
500
 
459
501
  listCardsPaginated(
@@ -518,6 +560,7 @@ export function CardServiceControllerMethods() {
518
560
  "getTopupFee",
519
561
  "quoteTopupByTarget",
520
562
  "executeTopupWithLedger",
563
+ "executeCreateWithLedger",
521
564
  "listCards",
522
565
  "listCardsPaginated",
523
566
  "getCard",
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.108",
4
+ "version": "1.0.109",
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
@@ -14,6 +14,7 @@ service CardService {
14
14
  rpc GetTopupFee(GetTopupFeeRequest) returns (GetTopupFeeResponse);
15
15
  rpc QuoteTopupByTarget(QuoteTopupByTargetRequest) returns (QuoteTopupByTargetResponse);
16
16
  rpc ExecuteTopupWithLedger(ExecuteTopupWithLedgerRequest) returns (ExecuteTopupWithLedgerResponse);
17
+ rpc ExecuteCreateWithLedger(ExecuteCreateWithLedgerRequest) returns (ExecuteCreateWithLedgerResponse);
17
18
 
18
19
  rpc ListCards(ListCardsRequest) returns (ListCardsResponse);
19
20
  rpc ListCardsPaginated(ListCardsPaginatedRequest) returns (ListCardsPaginatedResponse);
@@ -195,6 +196,39 @@ message ExecuteTopupWithLedgerResponse {
195
196
  string message = 12;
196
197
  }
197
198
 
199
+ message ExecuteCreateWithLedgerRequest {
200
+ int64 account_id = 1;
201
+ string currency = 2;
202
+ string card_type = 3;
203
+ string bin = 4;
204
+ string required_amount = 5;
205
+ string card_holder_name = 6;
206
+ string phone = 7;
207
+ string email = 8;
208
+ string first_name = 9;
209
+ string last_name = 10;
210
+ bool kyc_required = 11;
211
+ string idempotency_seed = 12;
212
+ bool skip_balance_check = 13;
213
+ bool preview_only = 14;
214
+ }
215
+
216
+ message ExecuteCreateWithLedgerResponse {
217
+ string status = 1;
218
+ string flow = 2;
219
+ string required_debit_amount = 3;
220
+ string currency = 4;
221
+ string card_type = 5;
222
+ string bin = 6;
223
+ int64 card_id = 7;
224
+ CardResponse card = 8;
225
+ string message = 9;
226
+ string available_amount = 10;
227
+ string shortfall_amount = 11;
228
+ bool ledger_configured = 12;
229
+ bool sufficient_balance = 13;
230
+ }
231
+
198
232
 
199
233
  message ListCardsRequest {
200
234
  int64 account_id = 1;