@t-0/provider-sdk 1.1.13 → 1.1.15
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/lib/cjs/common/gen/buf/validate/validate_pb.d.ts +8 -8
- package/lib/cjs/common/gen/ivms101/v1/ivms/ivms101_pb.d.ts +5 -5
- package/lib/cjs/common/gen/tzero/v1/common/common_pb.js +1 -1
- package/lib/cjs/common/gen/tzero/v1/common/payment_method_pb.d.ts +589 -10
- package/lib/cjs/common/gen/tzero/v1/common/payment_method_pb.js +307 -3
- package/lib/cjs/common/gen/tzero/v1/common/payment_receipt_pb.d.ts +3 -3
- package/lib/cjs/common/gen/tzero/v1/common/payment_receipt_pb.js +1 -1
- package/lib/cjs/common/gen/tzero/v1/payment/network_pb.d.ts +52 -38
- package/lib/cjs/common/gen/tzero/v1/payment/network_pb.js +19 -5
- package/lib/cjs/common/gen/tzero/v1/payment/provider_pb.d.ts +37 -23
- package/lib/cjs/common/gen/tzero/v1/payment/provider_pb.js +16 -2
- package/lib/cjs/common/gen/tzero/v1/payment_intent/beneficiary_pb.d.ts +15 -6
- package/lib/cjs/common/gen/tzero/v1/payment_intent/beneficiary_pb.js +2 -2
- package/lib/cjs/common/gen/tzero/v1/payment_intent/network_pb.d.ts +51 -13
- package/lib/cjs/common/gen/tzero/v1/payment_intent/network_pb.js +10 -2
- package/lib/cjs/common/gen/tzero/v1/payment_intent/pay_in_provider_pb.d.ts +4 -4
- package/lib/cjs/common/gen/tzero/v1/payment_intent/pay_in_provider_pb.js +1 -1
- package/lib/cjs/common/gen/tzero/v1/payment_intent/provider/provider_pb.d.ts +2 -2
- package/lib/cjs/common/gen/tzero/v1/payment_intent/provider/provider_pb.js +1 -1
- package/lib/cjs/common/gen/tzero/v1/payment_intent/recipient/recipient_pb.d.ts +7 -7
- package/lib/cjs/common/gen/tzero/v1/payment_intent/recipient/recipient_pb.js +1 -1
- package/lib/cjs/index.d.ts +4 -0
- package/lib/cjs/index.js +5 -1
- package/lib/cjs/service/service.d.ts +1 -1
- package/lib/cjs/service/service.js +2 -1
- package/lib/cjs/service/validate_response.d.ts +13 -0
- package/lib/cjs/service/validate_response.js +38 -0
- package/lib/esm/common/gen/buf/validate/validate_pb.d.ts +8 -8
- package/lib/esm/common/gen/ivms101/v1/ivms/ivms101_pb.d.ts +5 -5
- package/lib/esm/common/gen/tzero/v1/common/common_pb.js +1 -1
- package/lib/esm/common/gen/tzero/v1/common/payment_method_pb.d.ts +589 -10
- package/lib/esm/common/gen/tzero/v1/common/payment_method_pb.js +305 -2
- package/lib/esm/common/gen/tzero/v1/common/payment_receipt_pb.d.ts +3 -3
- package/lib/esm/common/gen/tzero/v1/common/payment_receipt_pb.js +1 -1
- package/lib/esm/common/gen/tzero/v1/payment/network_pb.d.ts +52 -38
- package/lib/esm/common/gen/tzero/v1/payment/network_pb.js +19 -5
- package/lib/esm/common/gen/tzero/v1/payment/provider_pb.d.ts +37 -23
- package/lib/esm/common/gen/tzero/v1/payment/provider_pb.js +16 -2
- package/lib/esm/common/gen/tzero/v1/payment_intent/beneficiary_pb.d.ts +15 -6
- package/lib/esm/common/gen/tzero/v1/payment_intent/beneficiary_pb.js +2 -2
- package/lib/esm/common/gen/tzero/v1/payment_intent/network_pb.d.ts +51 -13
- package/lib/esm/common/gen/tzero/v1/payment_intent/network_pb.js +10 -2
- package/lib/esm/common/gen/tzero/v1/payment_intent/pay_in_provider_pb.d.ts +4 -4
- package/lib/esm/common/gen/tzero/v1/payment_intent/pay_in_provider_pb.js +1 -1
- package/lib/esm/common/gen/tzero/v1/payment_intent/provider/provider_pb.d.ts +2 -2
- package/lib/esm/common/gen/tzero/v1/payment_intent/provider/provider_pb.js +1 -1
- package/lib/esm/common/gen/tzero/v1/payment_intent/recipient/recipient_pb.d.ts +7 -7
- package/lib/esm/common/gen/tzero/v1/payment_intent/recipient/recipient_pb.js +1 -1
- package/lib/esm/index.d.ts +4 -0
- package/lib/esm/index.js +4 -0
- package/lib/esm/service/service.d.ts +1 -1
- package/lib/esm/service/service.js +2 -1
- package/lib/esm/service/validate_response.d.ts +13 -0
- package/lib/esm/service/validate_response.js +34 -0
- package/lib/tsconfig.cjs.tsbuildinfo +1 -1
- package/lib/tsconfig.esm.tsbuildinfo +1 -1
- package/package.json +4 -2
|
@@ -72,13 +72,13 @@ export type UpdateQuoteRequest_Quote = Message<"tzero.v1.payment.UpdateQuoteRequ
|
|
|
72
72
|
*
|
|
73
73
|
* @generated from field: google.protobuf.Timestamp expiration = 60;
|
|
74
74
|
*/
|
|
75
|
-
expiration?: Timestamp;
|
|
75
|
+
expiration?: Timestamp | undefined;
|
|
76
76
|
/**
|
|
77
77
|
* timestamp quote was created
|
|
78
78
|
*
|
|
79
79
|
* @generated from field: google.protobuf.Timestamp timestamp = 70;
|
|
80
80
|
*/
|
|
81
|
-
timestamp?: Timestamp;
|
|
81
|
+
timestamp?: Timestamp | undefined;
|
|
82
82
|
};
|
|
83
83
|
/**
|
|
84
84
|
* Describes the message tzero.v1.payment.UpdateQuoteRequest.Quote.
|
|
@@ -100,13 +100,13 @@ export type UpdateQuoteRequest_Quote_Band = Message<"tzero.v1.payment.UpdateQuot
|
|
|
100
100
|
*
|
|
101
101
|
* @generated from field: tzero.v1.common.Decimal max_amount = 40;
|
|
102
102
|
*/
|
|
103
|
-
maxAmount?: Decimal;
|
|
103
|
+
maxAmount?: Decimal | undefined;
|
|
104
104
|
/**
|
|
105
105
|
* USD/currency rate
|
|
106
106
|
*
|
|
107
107
|
* @generated from field: tzero.v1.common.Decimal rate = 50;
|
|
108
108
|
*/
|
|
109
|
-
rate?: Decimal;
|
|
109
|
+
rate?: Decimal | undefined;
|
|
110
110
|
/**
|
|
111
111
|
* *
|
|
112
112
|
* Fixed charge in USD applied per transfer on top of the exchange rate.
|
|
@@ -116,7 +116,7 @@ export type UpdateQuoteRequest_Quote_Band = Message<"tzero.v1.payment.UpdateQuot
|
|
|
116
116
|
*
|
|
117
117
|
* @generated from field: optional tzero.v1.common.Decimal fix = 60;
|
|
118
118
|
*/
|
|
119
|
-
fix?: Decimal;
|
|
119
|
+
fix?: Decimal | undefined;
|
|
120
120
|
};
|
|
121
121
|
/**
|
|
122
122
|
* Describes the message tzero.v1.payment.UpdateQuoteRequest.Quote.Band.
|
|
@@ -141,7 +141,7 @@ export type GetQuoteRequest = Message<"tzero.v1.payment.GetQuoteRequest"> & {
|
|
|
141
141
|
*
|
|
142
142
|
* @generated from field: tzero.v1.payment.PaymentAmount amount = 20;
|
|
143
143
|
*/
|
|
144
|
-
amount?: PaymentAmount;
|
|
144
|
+
amount?: PaymentAmount | undefined;
|
|
145
145
|
/**
|
|
146
146
|
* ISO 4217 currency code, e.g. EUR, GBP, etc. in which the payout should be made
|
|
147
147
|
*
|
|
@@ -222,31 +222,31 @@ export type GetQuoteResponse_Success = Message<"tzero.v1.payment.GetQuoteRespons
|
|
|
222
222
|
*
|
|
223
223
|
* @generated from field: tzero.v1.common.Decimal rate = 10;
|
|
224
224
|
*/
|
|
225
|
-
rate?: Decimal;
|
|
225
|
+
rate?: Decimal | undefined;
|
|
226
226
|
/**
|
|
227
227
|
* expiration time of the payout quote
|
|
228
228
|
*
|
|
229
229
|
* @generated from field: google.protobuf.Timestamp expiration = 20;
|
|
230
230
|
*/
|
|
231
|
-
expiration?: Timestamp;
|
|
231
|
+
expiration?: Timestamp | undefined;
|
|
232
232
|
/**
|
|
233
233
|
* id of the payout quote
|
|
234
234
|
*
|
|
235
235
|
* @generated from field: tzero.v1.payment.QuoteId quote_id = 30;
|
|
236
236
|
*/
|
|
237
|
-
quoteId?: QuoteId;
|
|
237
|
+
quoteId?: QuoteId | undefined;
|
|
238
238
|
/**
|
|
239
239
|
* pay-out amount in pay-out currency if the quote from response is used
|
|
240
240
|
*
|
|
241
241
|
* @generated from field: tzero.v1.common.Decimal pay_out_amount = 40;
|
|
242
242
|
*/
|
|
243
|
-
payOutAmount?: Decimal;
|
|
243
|
+
payOutAmount?: Decimal | undefined;
|
|
244
244
|
/**
|
|
245
245
|
* settlement amount in settlement currency if the quote from response is used
|
|
246
246
|
*
|
|
247
247
|
* @generated from field: tzero.v1.common.Decimal settlement_amount = 50;
|
|
248
248
|
*/
|
|
249
|
-
settlementAmount?: Decimal;
|
|
249
|
+
settlementAmount?: Decimal | undefined;
|
|
250
250
|
/**
|
|
251
251
|
* *
|
|
252
252
|
* Fixed charge in USD included in settlement_amount.
|
|
@@ -254,7 +254,7 @@ export type GetQuoteResponse_Success = Message<"tzero.v1.payment.GetQuoteRespons
|
|
|
254
254
|
*
|
|
255
255
|
* @generated from field: tzero.v1.common.Decimal fix = 60;
|
|
256
256
|
*/
|
|
257
|
-
fix?: Decimal;
|
|
257
|
+
fix?: Decimal | undefined;
|
|
258
258
|
};
|
|
259
259
|
/**
|
|
260
260
|
* Describes the message tzero.v1.payment.GetQuoteResponse.Success.
|
|
@@ -284,11 +284,21 @@ export declare enum GetQuoteResponse_Failure_Reason {
|
|
|
284
284
|
*/
|
|
285
285
|
UNSPECIFIED = 0,
|
|
286
286
|
/**
|
|
287
|
-
* No
|
|
287
|
+
* No candidate quote was returned for the requested currency / payment method
|
|
288
|
+
* (e.g. no published quote, all expired, no credit line configured between
|
|
289
|
+
* the providers, or the requested amount exceeds the provider's max_amount band).
|
|
288
290
|
*
|
|
289
291
|
* @generated from enum value: REASON_QUOTE_NOT_FOUND = 10;
|
|
290
292
|
*/
|
|
291
|
-
QUOTE_NOT_FOUND = 10
|
|
293
|
+
QUOTE_NOT_FOUND = 10,
|
|
294
|
+
/**
|
|
295
|
+
* At least one provider quoted, but none has enough credit / prefunding
|
|
296
|
+
* headroom to execute the requested amount. Inspect `all_quotes[].settlement`
|
|
297
|
+
* for the per-provider prefunding gap.
|
|
298
|
+
*
|
|
299
|
+
* @generated from enum value: REASON_CREDIT_OR_PREDEPOSIT_REQUIRED = 20;
|
|
300
|
+
*/
|
|
301
|
+
CREDIT_OR_PREDEPOSIT_REQUIRED = 20
|
|
292
302
|
}
|
|
293
303
|
/**
|
|
294
304
|
* Describes the enum tzero.v1.payment.GetQuoteResponse.Failure.Reason.
|
|
@@ -307,31 +317,31 @@ export type GetQuoteResponse_ProviderQuote = Message<"tzero.v1.payment.GetQuoteR
|
|
|
307
317
|
*
|
|
308
318
|
* @generated from field: tzero.v1.payment.QuoteId quote_id = 10;
|
|
309
319
|
*/
|
|
310
|
-
quoteId?: QuoteId;
|
|
320
|
+
quoteId?: QuoteId | undefined;
|
|
311
321
|
/**
|
|
312
322
|
* Exchange rate: USD/pay_out_currency
|
|
313
323
|
*
|
|
314
324
|
* @generated from field: tzero.v1.common.Decimal rate = 20;
|
|
315
325
|
*/
|
|
316
|
-
rate?: Decimal;
|
|
326
|
+
rate?: Decimal | undefined;
|
|
317
327
|
/**
|
|
318
328
|
* Quote validity period
|
|
319
329
|
*
|
|
320
330
|
* @generated from field: google.protobuf.Timestamp expiration = 30;
|
|
321
331
|
*/
|
|
322
|
-
expiration?: Timestamp;
|
|
332
|
+
expiration?: Timestamp | undefined;
|
|
323
333
|
/**
|
|
324
334
|
* Payout amount in payout currency
|
|
325
335
|
*
|
|
326
336
|
* @generated from field: tzero.v1.common.Decimal pay_out_amount = 40;
|
|
327
337
|
*/
|
|
328
|
-
payOutAmount?: Decimal;
|
|
338
|
+
payOutAmount?: Decimal | undefined;
|
|
329
339
|
/**
|
|
330
340
|
* Settlement details for this quote
|
|
331
341
|
*
|
|
332
342
|
* @generated from field: tzero.v1.payment.GetQuoteResponse.ProviderQuote.Settlement settlement = 50;
|
|
333
343
|
*/
|
|
334
|
-
settlement?: GetQuoteResponse_ProviderQuote_Settlement;
|
|
344
|
+
settlement?: GetQuoteResponse_ProviderQuote_Settlement | undefined;
|
|
335
345
|
/**
|
|
336
346
|
* Indicates payment can be initiated with this quote immediately and no pre-funding is required
|
|
337
347
|
*
|
|
@@ -343,7 +353,7 @@ export type GetQuoteResponse_ProviderQuote = Message<"tzero.v1.payment.GetQuoteR
|
|
|
343
353
|
*
|
|
344
354
|
* @generated from field: tzero.v1.common.Decimal fix = 70;
|
|
345
355
|
*/
|
|
346
|
-
fix?: Decimal;
|
|
356
|
+
fix?: Decimal | undefined;
|
|
347
357
|
};
|
|
348
358
|
/**
|
|
349
359
|
* Describes the message tzero.v1.payment.GetQuoteResponse.ProviderQuote.
|
|
@@ -363,25 +373,25 @@ export type GetQuoteResponse_ProviderQuote_Settlement = Message<"tzero.v1.paymen
|
|
|
363
373
|
*
|
|
364
374
|
* @generated from field: tzero.v1.common.Decimal amount = 10;
|
|
365
375
|
*/
|
|
366
|
-
amount?: Decimal;
|
|
376
|
+
amount?: Decimal | undefined;
|
|
367
377
|
/**
|
|
368
378
|
* Total credit limit from payout provider
|
|
369
379
|
*
|
|
370
380
|
* @generated from field: tzero.v1.common.Decimal credit_limit = 20;
|
|
371
381
|
*/
|
|
372
|
-
creditLimit?: Decimal;
|
|
382
|
+
creditLimit?: Decimal | undefined;
|
|
373
383
|
/**
|
|
374
384
|
* Total amount used from credit line (completed + reserved)
|
|
375
385
|
*
|
|
376
386
|
* @generated from field: tzero.v1.common.Decimal total_used = 30;
|
|
377
387
|
*/
|
|
378
|
-
totalUsed?: Decimal;
|
|
388
|
+
totalUsed?: Decimal | undefined;
|
|
379
389
|
/**
|
|
380
390
|
* Additional funding needed before payment can proceed (amount - max_executable)
|
|
381
391
|
*
|
|
382
392
|
* @generated from field: tzero.v1.common.Decimal prefunding_amount = 50;
|
|
383
393
|
*/
|
|
384
|
-
prefundingAmount?: Decimal;
|
|
394
|
+
prefundingAmount?: Decimal | undefined;
|
|
385
395
|
};
|
|
386
396
|
/**
|
|
387
397
|
* Describes the message tzero.v1.payment.GetQuoteResponse.ProviderQuote.Settlement.
|
|
@@ -403,7 +413,7 @@ export type CreatePaymentRequest = Message<"tzero.v1.payment.CreatePaymentReques
|
|
|
403
413
|
*
|
|
404
414
|
* @generated from field: tzero.v1.payment.PaymentAmount amount = 30;
|
|
405
415
|
*/
|
|
406
|
-
amount?: PaymentAmount;
|
|
416
|
+
amount?: PaymentAmount | undefined;
|
|
407
417
|
/**
|
|
408
418
|
* pay-out currency
|
|
409
419
|
*
|
|
@@ -415,19 +425,19 @@ export type CreatePaymentRequest = Message<"tzero.v1.payment.CreatePaymentReques
|
|
|
415
425
|
*
|
|
416
426
|
* @generated from field: tzero.v1.common.PaymentDetails payment_details = 50;
|
|
417
427
|
*/
|
|
418
|
-
paymentDetails?: PaymentDetails;
|
|
428
|
+
paymentDetails?: PaymentDetails | undefined;
|
|
419
429
|
/**
|
|
420
430
|
* if specified, must be a valid quoteId that was previously returned by the GetPayoutQuote method otherwise last available quote will be used
|
|
421
431
|
*
|
|
422
432
|
* @generated from field: optional tzero.v1.payment.QuoteId quote_id = 60;
|
|
423
433
|
*/
|
|
424
|
-
quoteId?: QuoteId;
|
|
434
|
+
quoteId?: QuoteId | undefined;
|
|
425
435
|
/**
|
|
426
436
|
* travel rule data
|
|
427
437
|
*
|
|
428
438
|
* @generated from field: tzero.v1.payment.CreatePaymentRequest.TravelRuleData travel_rule_data = 100;
|
|
429
439
|
*/
|
|
430
|
-
travelRuleData?: CreatePaymentRequest_TravelRuleData;
|
|
440
|
+
travelRuleData?: CreatePaymentRequest_TravelRuleData | undefined;
|
|
431
441
|
};
|
|
432
442
|
/**
|
|
433
443
|
* Describes the message tzero.v1.payment.CreatePaymentRequest.
|
|
@@ -461,7 +471,7 @@ export type CreatePaymentRequest_TravelRuleData = Message<"tzero.v1.payment.Crea
|
|
|
461
471
|
*
|
|
462
472
|
* @generated from field: optional uint32 originator_provider_legal_entity_id = 30;
|
|
463
473
|
*/
|
|
464
|
-
originatorProviderLegalEntityId?: number;
|
|
474
|
+
originatorProviderLegalEntityId?: number | undefined;
|
|
465
475
|
};
|
|
466
476
|
/**
|
|
467
477
|
* Describes the message tzero.v1.payment.CreatePaymentRequest.TravelRuleData.
|
|
@@ -557,11 +567,11 @@ export type CreatePaymentResponse_Accepted = Message<"tzero.v1.payment.CreatePay
|
|
|
557
567
|
/**
|
|
558
568
|
* @generated from field: tzero.v1.common.Decimal settlement_amount = 30;
|
|
559
569
|
*/
|
|
560
|
-
settlementAmount?: Decimal;
|
|
570
|
+
settlementAmount?: Decimal | undefined;
|
|
561
571
|
/**
|
|
562
572
|
* @generated from field: tzero.v1.common.Decimal payout_amount = 40;
|
|
563
573
|
*/
|
|
564
|
-
payoutAmount?: Decimal;
|
|
574
|
+
payoutAmount?: Decimal | undefined;
|
|
565
575
|
/**
|
|
566
576
|
* payout provider id with the best quote selected for this payment
|
|
567
577
|
*
|
|
@@ -590,7 +600,7 @@ export type CreatePaymentResponse_SettlementRequired = Message<"tzero.v1.payment
|
|
|
590
600
|
/**
|
|
591
601
|
* @generated from field: tzero.v1.common.Decimal settlement_amount = 20;
|
|
592
602
|
*/
|
|
593
|
-
settlementAmount?: Decimal;
|
|
603
|
+
settlementAmount?: Decimal | undefined;
|
|
594
604
|
/**
|
|
595
605
|
* payout provider id with the best quote selected for this payment
|
|
596
606
|
*
|
|
@@ -627,13 +637,17 @@ export declare enum CreatePaymentResponse_Failure_Reason {
|
|
|
627
637
|
*/
|
|
628
638
|
UNSPECIFIED = 0,
|
|
629
639
|
/**
|
|
630
|
-
* No
|
|
640
|
+
* No candidate quote was returned for the requested currency / payment method
|
|
641
|
+
* (e.g. no published quote, all expired, no credit line configured between
|
|
642
|
+
* the providers, or the requested amount exceeds the provider's max_amount band).
|
|
631
643
|
*
|
|
632
644
|
* @generated from enum value: REASON_QUOTE_NOT_FOUND = 10;
|
|
633
645
|
*/
|
|
634
646
|
QUOTE_NOT_FOUND = 10,
|
|
635
647
|
/**
|
|
636
|
-
*
|
|
648
|
+
* At least one provider quoted, but none has enough credit / prefunding
|
|
649
|
+
* headroom to execute the requested amount. Call GetQuote to inspect
|
|
650
|
+
* `all_quotes[].settlement` for the per-provider prefunding gap.
|
|
637
651
|
*
|
|
638
652
|
* @generated from enum value: REASON_CREDIT_OR_PREDEPOSIT_REQUIRED = 20;
|
|
639
653
|
*/
|
|
@@ -667,7 +681,7 @@ export type ConfirmPayoutRequest = Message<"tzero.v1.payment.ConfirmPayoutReques
|
|
|
667
681
|
*
|
|
668
682
|
* @generated from field: optional tzero.v1.common.PaymentReceipt receipt = 30;
|
|
669
683
|
*/
|
|
670
|
-
receipt?: PaymentReceipt;
|
|
684
|
+
receipt?: PaymentReceipt | undefined;
|
|
671
685
|
};
|
|
672
686
|
/**
|
|
673
687
|
* Describes the message tzero.v1.payment.ConfirmPayoutRequest.
|
|
@@ -781,13 +795,13 @@ export type CompleteManualAmlCheckResponse_Approved = Message<"tzero.v1.payment.
|
|
|
781
795
|
*
|
|
782
796
|
* @generated from field: tzero.v1.common.Decimal pay_out_amount = 10;
|
|
783
797
|
*/
|
|
784
|
-
payOutAmount?: Decimal;
|
|
798
|
+
payOutAmount?: Decimal | undefined;
|
|
785
799
|
/**
|
|
786
800
|
* updated settlement amount based on updated quote approved by the pay-in provider
|
|
787
801
|
*
|
|
788
802
|
* @generated from field: tzero.v1.common.Decimal settlement_amount = 20;
|
|
789
803
|
*/
|
|
790
|
-
settlementAmount?: Decimal;
|
|
804
|
+
settlementAmount?: Decimal | undefined;
|
|
791
805
|
/**
|
|
792
806
|
* unique identifier of the updated pay-out quote
|
|
793
807
|
*
|
|
@@ -899,7 +913,7 @@ export type FinalizePayoutRequest_Success = Message<"tzero.v1.payment.FinalizePa
|
|
|
899
913
|
*
|
|
900
914
|
* @generated from field: optional tzero.v1.common.PaymentReceipt receipt = 30;
|
|
901
915
|
*/
|
|
902
|
-
receipt?: PaymentReceipt;
|
|
916
|
+
receipt?: PaymentReceipt | undefined;
|
|
903
917
|
};
|
|
904
918
|
/**
|
|
905
919
|
* Describes the message tzero.v1.payment.FinalizePayoutRequest.Success.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// @generated by protoc-gen-es v2.
|
|
2
|
+
// @generated by protoc-gen-es v2.12.0 with parameter "target=ts,import_extension=js"
|
|
3
3
|
// @generated from file tzero/v1/payment/network.proto (package tzero.v1.payment, syntax proto3)
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -14,7 +14,7 @@ const validate_pb_js_1 = require("../../../buf/validate/validate_pb.js");
|
|
|
14
14
|
/**
|
|
15
15
|
* Describes the file tzero/v1/payment/network.proto.
|
|
16
16
|
*/
|
|
17
|
-
exports.file_tzero_v1_payment_network = (0, codegenv2_1.fileDesc)("
|
|
17
|
+
exports.file_tzero_v1_payment_network = (0, codegenv2_1.fileDesc)("Ch50emVyby92MS9wYXltZW50L25ldHdvcmsucHJvdG8SEHR6ZXJvLnYxLnBheW1lbnQiwgUKElVwZGF0ZVF1b3RlUmVxdWVzdBI7CgdwYXlfb3V0GAogAygLMioudHplcm8udjEucGF5bWVudC5VcGRhdGVRdW90ZVJlcXVlc3QuUXVvdGUSPgoGcGF5X2luGBQgAygLMioudHplcm8udjEucGF5bWVudC5VcGRhdGVRdW90ZVJlcXVlc3QuUXVvdGVCAhgBGq4ECgVRdW90ZRImCghjdXJyZW5jeRgKIAEoCUIUukgRcg8yCl5bQS1aXXszfSSYAQMSNwoKcXVvdGVfdHlwZRgUIAEoDjIbLnR6ZXJvLnYxLnBheW1lbnQuUXVvdGVUeXBlQga6SAPIAQESQgoOcGF5bWVudF9tZXRob2QYGSABKA4yIi50emVyby52MS5jb21tb24uUGF5bWVudE1ldGhvZFR5cGVCBrpIA8gBARJICgViYW5kcxgeIAMoCzIvLnR6ZXJvLnYxLnBheW1lbnQuVXBkYXRlUXVvdGVSZXF1ZXN0LlF1b3RlLkJhbmRCCLpIBZIBAggBEjgKCmV4cGlyYXRpb24YPCABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wQgi6SAWyAQJAARI1Cgl0aW1lc3RhbXAYRiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wQga6SAPIAQEaxAEKBEJhbmQSIgoPY2xpZW50X3F1b3RlX2lkGAogASgJQgm6S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VudFJlc3BvbnNlEiIKEXBheW1lbnRfY2xpZW50X2lkGAogASgJQge6SARyAhABEkQKCGFjY2VwdGVkGBQgASgLMjAudHplcm8udjEucGF5bWVudC5DcmVhdGVQYXltZW50UmVzcG9uc2UuQWNjZXB0ZWRIABJdChNzZXR0bGVtZW50X3JlcXVpcmVkGCMgASgLMjoudHplcm8udjEucGF5bWVudC5DcmVhdGVQYXltZW50UmVzcG9uc2UuU2V0dGxlbWVudFJlcXVpcmVkQgIYAUgAEkIKB2ZhaWx1cmUYHiABKAsyLy50emVyby52MS5wYXltZW50LkNyZWF0ZVBheW1lbnRSZXNwb25zZS5GYWlsdXJlSAAawgEKCEFjY2VwdGVkEhsKCnBheW1lbnRfaWQYCiABKARCB7pIBDICIAASOwoRc2V0dGxlbWVudF9hbW91bnQYHiABKAsyGC50emVyby52MS5jb21tb24uRGVjaW1hbEIGukgDyAEBEjcKDXBheW91dF9hbW91bnQYKCABKAsyGC50emVyby52MS5jb21tb24uRGVjaW1hbEIGukgDyAEBEiMKEnBheW91dF9wcm92aWRlcl9pZBgyIAEoDUIHukgEKgIgABqXAQoSU2V0dGxlbWVudFJlcXVpcmVkEhsKCnBheW1lbnRfaWQYCiABKARCB7pIBDICIAASOwoRc2V0dGxlbWVudF9hbW91bnQYFCABKAsyGC50emVyby52MS5jb21tb24uRGVjaW1hbEIGukgDyAEBEiMKEnBheW91dF9wcm92aWRlcl9pZBgeIAEoDUIHukgEKgIgADoCGAEauQEKB0ZhaWx1cmUSRgoGcmVhc29uGAogASgOMjYudHplcm8udjEucGF5bWVudC5DcmVhdGVQYXltZW50UmVzcG9uc2UuRmFpbHVyZS5SZWFzb24iZgoGUmVhc29uEhYKElJFQVNPTl9VTlNQRUNJRklFRBAAEhoKFlJFQVNPTl9RVU9URV9OT1RfRk9VTkQQChIoCiRSRUFTT05fQ1JFRElUX09SX1BSRURFUE9TSVRfUkVRVUlSRUQQFEIPCgZyZXN1bHQSBbpIAggBIpgBChRDb25maXJtUGF5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SIDkAIBEmUKDUNyZWF0ZVBheW1lbnQSJi50emVyby52MS5wYXltZW50LkNyZWF0ZVBheW1lbnRSZXF1ZXN0GicudHplcm8udjEucGF5bWVudC5DcmVhdGVQYXltZW50UmVzcG9uc2UiA5ACAhJoCg1Db25maXJtUGF5b3V0EiYudHplcm8udjEucGF5bWVudC5Db25maXJtUGF5b3V0UmVxdWVzdBonLnR6ZXJvLnYxLnBheW1lbnQuQ29uZmlybVBheW91dFJlc3BvbnNlIgaIAgGQAgISaAoORmluYWxpemVQYXlvdXQSJy50emVyby52MS5wYXltZW50LkZpbmFsaXplUGF5b3V0UmVxdWVzdBooLnR6ZXJvLnYxLnBheW1lbnQuRmluYWxpemVQYXlvdXRSZXNwb25zZSIDkAICEoABChZDb21wbGV0ZU1hbnVhbEFtbENoZWNrEi8udHplcm8udjEucGF5bWVudC5Db21wbGV0ZU1hbnVhbEFtbENoZWNrUmVxdWVzdBowLnR6ZXJvLnYxLnBheW1lbnQuQ29tcGxldGVNYW51YWxBbWxDaGVja1Jlc3BvbnNlIgOQAgJC1gEKFGNvbS50emVyby52MS5wYXltZW50QgxOZXR3b3JrUHJvdG9QAVo7Z2l0aHViLmNvbS90LTAtbmV0d29yay9wcm92aWRlci1zZGsvZ28vYXBpL3R6ZXJvL3YxL3BheW1lbnSiAgNUVlCqAiNUMC5Qcm92aWRlclNkay5BcGkuVHplcm8uVjEuUGF5bWVudMoCEFR6ZXJvXFYxXFBheW1lbnTiAhxUemVyb1xWMVxQYXltZW50XEdQQk1ldGFkYXRh6gISVHplcm86OlYxOjpQYXltZW50YgZwcm90bzM", [common_pb_js_1.file_tzero_v1_common_common, payment_method_pb_js_1.file_tzero_v1_common_payment_method, payment_receipt_pb_js_1.file_tzero_v1_common_payment_receipt, ivms101_pb_js_1.file_ivms101_v1_ivms_ivms101, wkt_1.file_google_protobuf_timestamp, validate_pb_js_1.file_buf_validate_validate]);
|
|
18
18
|
/**
|
|
19
19
|
* Describes the message tzero.v1.payment.UpdateQuoteRequest.
|
|
20
20
|
* Use `create(UpdateQuoteRequestSchema)` to create a new message.
|
|
@@ -65,11 +65,21 @@ var GetQuoteResponse_Failure_Reason;
|
|
|
65
65
|
*/
|
|
66
66
|
GetQuoteResponse_Failure_Reason[GetQuoteResponse_Failure_Reason["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
67
67
|
/**
|
|
68
|
-
* No
|
|
68
|
+
* No candidate quote was returned for the requested currency / payment method
|
|
69
|
+
* (e.g. no published quote, all expired, no credit line configured between
|
|
70
|
+
* the providers, or the requested amount exceeds the provider's max_amount band).
|
|
69
71
|
*
|
|
70
72
|
* @generated from enum value: REASON_QUOTE_NOT_FOUND = 10;
|
|
71
73
|
*/
|
|
72
74
|
GetQuoteResponse_Failure_Reason[GetQuoteResponse_Failure_Reason["QUOTE_NOT_FOUND"] = 10] = "QUOTE_NOT_FOUND";
|
|
75
|
+
/**
|
|
76
|
+
* At least one provider quoted, but none has enough credit / prefunding
|
|
77
|
+
* headroom to execute the requested amount. Inspect `all_quotes[].settlement`
|
|
78
|
+
* for the per-provider prefunding gap.
|
|
79
|
+
*
|
|
80
|
+
* @generated from enum value: REASON_CREDIT_OR_PREDEPOSIT_REQUIRED = 20;
|
|
81
|
+
*/
|
|
82
|
+
GetQuoteResponse_Failure_Reason[GetQuoteResponse_Failure_Reason["CREDIT_OR_PREDEPOSIT_REQUIRED"] = 20] = "CREDIT_OR_PREDEPOSIT_REQUIRED";
|
|
73
83
|
})(GetQuoteResponse_Failure_Reason || (exports.GetQuoteResponse_Failure_Reason = GetQuoteResponse_Failure_Reason = {}));
|
|
74
84
|
/**
|
|
75
85
|
* Describes the enum tzero.v1.payment.GetQuoteResponse.Failure.Reason.
|
|
@@ -131,13 +141,17 @@ var CreatePaymentResponse_Failure_Reason;
|
|
|
131
141
|
*/
|
|
132
142
|
CreatePaymentResponse_Failure_Reason[CreatePaymentResponse_Failure_Reason["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
133
143
|
/**
|
|
134
|
-
* No
|
|
144
|
+
* No candidate quote was returned for the requested currency / payment method
|
|
145
|
+
* (e.g. no published quote, all expired, no credit line configured between
|
|
146
|
+
* the providers, or the requested amount exceeds the provider's max_amount band).
|
|
135
147
|
*
|
|
136
148
|
* @generated from enum value: REASON_QUOTE_NOT_FOUND = 10;
|
|
137
149
|
*/
|
|
138
150
|
CreatePaymentResponse_Failure_Reason[CreatePaymentResponse_Failure_Reason["QUOTE_NOT_FOUND"] = 10] = "QUOTE_NOT_FOUND";
|
|
139
151
|
/**
|
|
140
|
-
*
|
|
152
|
+
* At least one provider quoted, but none has enough credit / prefunding
|
|
153
|
+
* headroom to execute the requested amount. Call GetQuote to inspect
|
|
154
|
+
* `all_quotes[].settlement` for the per-provider prefunding gap.
|
|
141
155
|
*
|
|
142
156
|
* @generated from enum value: REASON_CREDIT_OR_PREDEPOSIT_REQUIRED = 20;
|
|
143
157
|
*/
|
|
@@ -149,7 +149,7 @@ export type AppendLedgerEntriesRequest_LedgerEntry = Message<"tzero.v1.payment.A
|
|
|
149
149
|
*
|
|
150
150
|
* @generated from field: tzero.v1.common.Decimal debit = 40;
|
|
151
151
|
*/
|
|
152
|
-
debit?: Decimal;
|
|
152
|
+
debit?: Decimal | undefined;
|
|
153
153
|
/**
|
|
154
154
|
* *
|
|
155
155
|
* credit is the amount that was credited to the account.
|
|
@@ -157,7 +157,7 @@ export type AppendLedgerEntriesRequest_LedgerEntry = Message<"tzero.v1.payment.A
|
|
|
157
157
|
*
|
|
158
158
|
* @generated from field: tzero.v1.common.Decimal credit = 50;
|
|
159
159
|
*/
|
|
160
|
-
credit?: Decimal;
|
|
160
|
+
credit?: Decimal | undefined;
|
|
161
161
|
};
|
|
162
162
|
/**
|
|
163
163
|
* Describes the message tzero.v1.payment.AppendLedgerEntriesRequest.LedgerEntry.
|
|
@@ -262,7 +262,7 @@ export type PayoutRequest = Message<"tzero.v1.payment.PayoutRequest"> & {
|
|
|
262
262
|
*
|
|
263
263
|
* @generated from field: tzero.v1.common.Decimal amount = 50;
|
|
264
264
|
*/
|
|
265
|
-
amount?: Decimal;
|
|
265
|
+
amount?: Decimal | undefined;
|
|
266
266
|
/**
|
|
267
267
|
* *
|
|
268
268
|
* payout_method is the payment method for the payout, e.g. bank transfer, crypto transfer, etc.
|
|
@@ -270,7 +270,7 @@ export type PayoutRequest = Message<"tzero.v1.payment.PayoutRequest"> & {
|
|
|
270
270
|
*
|
|
271
271
|
* @generated from field: optional tzero.v1.common.PaymentDetails payout_details = 60;
|
|
272
272
|
*/
|
|
273
|
-
payoutDetails?: PaymentDetails;
|
|
273
|
+
payoutDetails?: PaymentDetails | undefined;
|
|
274
274
|
/**
|
|
275
275
|
* *
|
|
276
276
|
* Pay-in provider id which initiated the pay out.
|
|
@@ -281,7 +281,7 @@ export type PayoutRequest = Message<"tzero.v1.payment.PayoutRequest"> & {
|
|
|
281
281
|
/**
|
|
282
282
|
* @generated from field: tzero.v1.payment.PayoutRequest.TravelRuleData travel_rule_data = 200;
|
|
283
283
|
*/
|
|
284
|
-
travelRuleData?: PayoutRequest_TravelRuleData;
|
|
284
|
+
travelRuleData?: PayoutRequest_TravelRuleData | undefined;
|
|
285
285
|
};
|
|
286
286
|
/**
|
|
287
287
|
* Describes the message tzero.v1.payment.PayoutRequest.
|
|
@@ -314,7 +314,7 @@ export type PayoutRequest_TravelRuleData = Message<"tzero.v1.payment.PayoutReque
|
|
|
314
314
|
*
|
|
315
315
|
* @generated from field: optional ivms101.Person originator_provider = 30;
|
|
316
316
|
*/
|
|
317
|
-
originatorProvider?: Person;
|
|
317
|
+
originatorProvider?: Person | undefined;
|
|
318
318
|
};
|
|
319
319
|
/**
|
|
320
320
|
* Describes the message tzero.v1.payment.PayoutRequest.TravelRuleData.
|
|
@@ -333,7 +333,7 @@ export type PayoutResponse = Message<"tzero.v1.payment.PayoutResponse"> & {
|
|
|
333
333
|
*
|
|
334
334
|
* @generated from field: optional uint32 beneficiary_provider_legal_entity_id = 10;
|
|
335
335
|
*/
|
|
336
|
-
beneficiaryProviderLegalEntityId?: number;
|
|
336
|
+
beneficiaryProviderLegalEntityId?: number | undefined;
|
|
337
337
|
/**
|
|
338
338
|
* @generated from oneof tzero.v1.payment.PayoutResponse.result
|
|
339
339
|
*/
|
|
@@ -406,7 +406,7 @@ export type PayoutResponse_Failed = Message<"tzero.v1.payment.PayoutResponse.Fai
|
|
|
406
406
|
/**
|
|
407
407
|
* @generated from field: optional string details = 20;
|
|
408
408
|
*/
|
|
409
|
-
details?: string;
|
|
409
|
+
details?: string | undefined;
|
|
410
410
|
};
|
|
411
411
|
/**
|
|
412
412
|
* Describes the message tzero.v1.payment.PayoutResponse.Failed.
|
|
@@ -505,11 +505,11 @@ export type UpdatePaymentRequest_Accepted = Message<"tzero.v1.payment.UpdatePaym
|
|
|
505
505
|
*
|
|
506
506
|
* @generated from field: tzero.v1.common.Decimal payout_amount = 10;
|
|
507
507
|
*/
|
|
508
|
-
payoutAmount?: Decimal;
|
|
508
|
+
payoutAmount?: Decimal | undefined;
|
|
509
509
|
/**
|
|
510
510
|
* @generated from field: tzero.v1.payment.UpdatePaymentRequest.Accepted.TravelRuleData travel_rule_data = 20;
|
|
511
511
|
*/
|
|
512
|
-
travelRuleData?: UpdatePaymentRequest_Accepted_TravelRuleData;
|
|
512
|
+
travelRuleData?: UpdatePaymentRequest_Accepted_TravelRuleData | undefined;
|
|
513
513
|
};
|
|
514
514
|
/**
|
|
515
515
|
* Describes the message tzero.v1.payment.UpdatePaymentRequest.Accepted.
|
|
@@ -523,7 +523,7 @@ export type UpdatePaymentRequest_Accepted_TravelRuleData = Message<"tzero.v1.pay
|
|
|
523
523
|
/**
|
|
524
524
|
* @generated from field: ivms101.Person beneficiary_provider = 10;
|
|
525
525
|
*/
|
|
526
|
-
beneficiaryProvider?: Person;
|
|
526
|
+
beneficiaryProvider?: Person | undefined;
|
|
527
527
|
};
|
|
528
528
|
/**
|
|
529
529
|
* Describes the message tzero.v1.payment.UpdatePaymentRequest.Accepted.TravelRuleData.
|
|
@@ -541,7 +541,7 @@ export type UpdatePaymentRequest_Failed = Message<"tzero.v1.payment.UpdatePaymen
|
|
|
541
541
|
/**
|
|
542
542
|
* @generated from field: optional string details = 20;
|
|
543
543
|
*/
|
|
544
|
-
details?: string;
|
|
544
|
+
details?: string | undefined;
|
|
545
545
|
};
|
|
546
546
|
/**
|
|
547
547
|
* Describes the message tzero.v1.payment.UpdatePaymentRequest.Failed.
|
|
@@ -549,6 +549,8 @@ export type UpdatePaymentRequest_Failed = Message<"tzero.v1.payment.UpdatePaymen
|
|
|
549
549
|
*/
|
|
550
550
|
export declare const UpdatePaymentRequest_FailedSchema: GenMessage<UpdatePaymentRequest_Failed>;
|
|
551
551
|
/**
|
|
552
|
+
* Additive-only. Consumers must treat unknown values as UNSPECIFIED.
|
|
553
|
+
*
|
|
552
554
|
* @generated from enum tzero.v1.payment.UpdatePaymentRequest.Failed.Reason
|
|
553
555
|
*/
|
|
554
556
|
export declare enum UpdatePaymentRequest_Failed_Reason {
|
|
@@ -579,7 +581,19 @@ export declare enum UpdatePaymentRequest_Failed_Reason {
|
|
|
579
581
|
*
|
|
580
582
|
* @generated from enum value: REASON_CREDIT_LIMIT_EXCEEDED_AFTER_AML_APPROVAL = 4;
|
|
581
583
|
*/
|
|
582
|
-
CREDIT_LIMIT_EXCEEDED_AFTER_AML_APPROVAL = 4
|
|
584
|
+
CREDIT_LIMIT_EXCEEDED_AFTER_AML_APPROVAL = 4,
|
|
585
|
+
/**
|
|
586
|
+
* Pay-out provider rejected the initial PayOut request (no AML check involved).
|
|
587
|
+
*
|
|
588
|
+
* @generated from enum value: REASON_REJECTED_BY_BENEFICIARY = 5;
|
|
589
|
+
*/
|
|
590
|
+
REJECTED_BY_BENEFICIARY = 5,
|
|
591
|
+
/**
|
|
592
|
+
* Pay-out provider accepted initially, then reported failure via FinalizePayout (e.g. payment rails rejected).
|
|
593
|
+
*
|
|
594
|
+
* @generated from enum value: REASON_FINALIZE_FAILURE = 6;
|
|
595
|
+
*/
|
|
596
|
+
FINALIZE_FAILURE = 6
|
|
583
597
|
}
|
|
584
598
|
/**
|
|
585
599
|
* Describes the enum tzero.v1.payment.UpdatePaymentRequest.Failed.Reason.
|
|
@@ -594,14 +608,14 @@ export type UpdatePaymentRequest_Confirmed = Message<"tzero.v1.payment.UpdatePay
|
|
|
594
608
|
*
|
|
595
609
|
* @generated from field: google.protobuf.Timestamp paid_out_at = 10;
|
|
596
610
|
*/
|
|
597
|
-
paidOutAt?: Timestamp;
|
|
611
|
+
paidOutAt?: Timestamp | undefined;
|
|
598
612
|
/**
|
|
599
613
|
* *
|
|
600
614
|
* Payment receipt might contain metadata about payment recognizable by pay-in provider.
|
|
601
615
|
*
|
|
602
616
|
* @generated from field: optional tzero.v1.common.PaymentReceipt receipt = 20;
|
|
603
617
|
*/
|
|
604
|
-
receipt?: PaymentReceipt;
|
|
618
|
+
receipt?: PaymentReceipt | undefined;
|
|
605
619
|
};
|
|
606
620
|
/**
|
|
607
621
|
* Describes the message tzero.v1.payment.UpdatePaymentRequest.Confirmed.
|
|
@@ -671,14 +685,14 @@ export type UpdateLimitRequest_Limit = Message<"tzero.v1.payment.UpdateLimitRequ
|
|
|
671
685
|
*
|
|
672
686
|
* @generated from field: tzero.v1.common.Decimal payout_limit = 20;
|
|
673
687
|
*/
|
|
674
|
-
payoutLimit?: Decimal;
|
|
688
|
+
payoutLimit?: Decimal | undefined;
|
|
675
689
|
/**
|
|
676
690
|
* *
|
|
677
691
|
* This is the credit limit that the counterparty is willing to extend to the provider.
|
|
678
692
|
*
|
|
679
693
|
* @generated from field: tzero.v1.common.Decimal credit_limit = 30;
|
|
680
694
|
*/
|
|
681
|
-
creditLimit?: Decimal;
|
|
695
|
+
creditLimit?: Decimal | undefined;
|
|
682
696
|
/**
|
|
683
697
|
* *
|
|
684
698
|
* This is the credit usage that the provider has used so far. It is the sum of all payouts made by the provider
|
|
@@ -687,14 +701,14 @@ export type UpdateLimitRequest_Limit = Message<"tzero.v1.payment.UpdateLimitRequ
|
|
|
687
701
|
*
|
|
688
702
|
* @generated from field: tzero.v1.common.Decimal credit_usage = 40;
|
|
689
703
|
*/
|
|
690
|
-
creditUsage?: Decimal;
|
|
704
|
+
creditUsage?: Decimal | undefined;
|
|
691
705
|
/**
|
|
692
706
|
* *
|
|
693
707
|
* This indicates how much is reserved for the pending payments (not yet finalized)
|
|
694
708
|
*
|
|
695
709
|
* @generated from field: tzero.v1.common.Decimal reserve = 50;
|
|
696
710
|
*/
|
|
697
|
-
reserve?: Decimal;
|
|
711
|
+
reserve?: Decimal | undefined;
|
|
698
712
|
};
|
|
699
713
|
/**
|
|
700
714
|
* Describes the message tzero.v1.payment.UpdateLimitRequest.Limit.
|
|
@@ -728,21 +742,21 @@ export type ApprovePaymentQuoteRequest = Message<"tzero.v1.payment.ApprovePaymen
|
|
|
728
742
|
/**
|
|
729
743
|
* @generated from field: tzero.v1.common.Decimal pay_out_rate = 30;
|
|
730
744
|
*/
|
|
731
|
-
payOutRate?: Decimal;
|
|
745
|
+
payOutRate?: Decimal | undefined;
|
|
732
746
|
/**
|
|
733
747
|
* @generated from field: tzero.v1.common.Decimal pay_out_amount = 40;
|
|
734
748
|
*/
|
|
735
|
-
payOutAmount?: Decimal;
|
|
749
|
+
payOutAmount?: Decimal | undefined;
|
|
736
750
|
/**
|
|
737
751
|
* @generated from field: tzero.v1.common.Decimal settlement_amount = 50;
|
|
738
752
|
*/
|
|
739
|
-
settlementAmount?: Decimal;
|
|
753
|
+
settlementAmount?: Decimal | undefined;
|
|
740
754
|
/**
|
|
741
755
|
* * Fixed charge in USD included in the settlement amount for this payout.
|
|
742
756
|
*
|
|
743
757
|
* @generated from field: tzero.v1.common.Decimal pay_out_fix = 60;
|
|
744
758
|
*/
|
|
745
|
-
payOutFix?: Decimal;
|
|
759
|
+
payOutFix?: Decimal | undefined;
|
|
746
760
|
};
|
|
747
761
|
/**
|
|
748
762
|
* Describes the message tzero.v1.payment.ApprovePaymentQuoteRequest.
|