@t-0/provider-sdk 1.0.26 → 1.0.28
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 +4590 -0
- package/lib/cjs/common/gen/buf/validate/validate_pb.js +353 -0
- package/lib/cjs/common/gen/tzero/v1/common/common_pb.d.ts +2 -0
- package/lib/cjs/common/gen/tzero/v1/common/common_pb.js +2 -1
- package/lib/cjs/common/gen/tzero/v1/common/payment_method_pb.d.ts +167 -22
- package/lib/cjs/common/gen/tzero/v1/common/payment_method_pb.js +58 -11
- package/lib/cjs/common/gen/tzero/v1/common/payment_receipt_pb.d.ts +77 -0
- package/lib/cjs/common/gen/tzero/v1/common/payment_receipt_pb.js +32 -0
- package/lib/cjs/common/gen/tzero/v1/payment/network_pb.d.ts +98 -59
- package/lib/cjs/common/gen/tzero/v1/payment/network_pb.js +10 -18
- package/lib/cjs/common/gen/tzero/v1/payment/provider_pb.d.ts +153 -53
- package/lib/cjs/common/gen/tzero/v1/payment/provider_pb.js +72 -37
- package/lib/cjs/common/gen/tzero/v1/payment_intent/provider/provider_pb.d.ts +22 -0
- package/lib/cjs/common/gen/tzero/v1/payment_intent/provider/provider_pb.js +2 -1
- package/lib/cjs/common/gen/tzero/v1/payment_intent/recipient/recipient_pb.d.ts +201 -14
- package/lib/cjs/common/gen/tzero/v1/payment_intent/recipient/recipient_pb.js +41 -8
- package/lib/esm/common/gen/buf/validate/validate_pb.d.ts +4590 -0
- package/lib/esm/common/gen/buf/validate/validate_pb.js +350 -0
- package/lib/esm/common/gen/tzero/v1/common/common_pb.d.ts +2 -0
- package/lib/esm/common/gen/tzero/v1/common/common_pb.js +2 -1
- package/lib/esm/common/gen/tzero/v1/common/payment_method_pb.d.ts +167 -22
- package/lib/esm/common/gen/tzero/v1/common/payment_method_pb.js +57 -10
- package/lib/esm/common/gen/tzero/v1/common/payment_receipt_pb.d.ts +77 -0
- package/lib/esm/common/gen/tzero/v1/common/payment_receipt_pb.js +29 -0
- package/lib/esm/common/gen/tzero/v1/payment/network_pb.d.ts +98 -59
- package/lib/esm/common/gen/tzero/v1/payment/network_pb.js +9 -17
- package/lib/esm/common/gen/tzero/v1/payment/provider_pb.d.ts +153 -53
- package/lib/esm/common/gen/tzero/v1/payment/provider_pb.js +71 -36
- package/lib/esm/common/gen/tzero/v1/payment_intent/provider/provider_pb.d.ts +22 -0
- package/lib/esm/common/gen/tzero/v1/payment_intent/provider/provider_pb.js +2 -1
- package/lib/esm/common/gen/tzero/v1/payment_intent/recipient/recipient_pb.d.ts +201 -14
- package/lib/esm/common/gen/tzero/v1/payment_intent/recipient/recipient_pb.js +40 -7
- package/lib/tsconfig.cjs.tsbuildinfo +1 -1
- package/lib/tsconfig.esm.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
2
2
|
import type { PaymentMethod } from "../common/payment_method_pb.js";
|
|
3
|
+
import type { PaymentReceipt } from "../common/payment_receipt_pb.js";
|
|
3
4
|
import type { Decimal } from "../common/common_pb.js";
|
|
4
5
|
import type { Timestamp } from "@bufbuild/protobuf/wkt";
|
|
5
6
|
import type { Message } from "@bufbuild/protobuf";
|
|
@@ -249,63 +250,67 @@ export declare enum AppendLedgerEntriesRequest_AccountType {
|
|
|
249
250
|
/**
|
|
250
251
|
* Reflects the user's payable balance, the amount that the provider owes to the user.
|
|
251
252
|
*
|
|
252
|
-
* @generated from enum value: ACCOUNT_TYPE_USER_PAYABLE =
|
|
253
|
+
* @generated from enum value: ACCOUNT_TYPE_USER_PAYABLE = 10;
|
|
253
254
|
*/
|
|
254
|
-
USER_PAYABLE =
|
|
255
|
+
USER_PAYABLE = 10,
|
|
255
256
|
/**
|
|
256
257
|
* Reflects the cash balance of the provider.
|
|
257
258
|
*
|
|
258
|
-
* @generated from enum value: ACCOUNT_TYPE_CASH =
|
|
259
|
+
* @generated from enum value: ACCOUNT_TYPE_CASH = 20;
|
|
259
260
|
*/
|
|
260
|
-
CASH =
|
|
261
|
+
CASH = 20,
|
|
261
262
|
/**
|
|
262
263
|
* This is the reserve account of the provider, which reflects the reserve of balance to reduce the limit available from one provider to another.
|
|
263
264
|
*
|
|
264
|
-
* @generated from enum value: ACCOUNT_TYPE_RESERVE =
|
|
265
|
+
* @generated from enum value: ACCOUNT_TYPE_RESERVE = 30;
|
|
265
266
|
*/
|
|
266
|
-
RESERVE =
|
|
267
|
+
RESERVE = 30,
|
|
267
268
|
/**
|
|
268
269
|
* This is the mirror account for the reserve. To keep the double entry accounting principle.
|
|
269
270
|
*
|
|
270
|
-
* @generated from enum value: ACCOUNT_TYPE_RESERVE_USAGE =
|
|
271
|
+
* @generated from enum value: ACCOUNT_TYPE_RESERVE_USAGE = 40;
|
|
271
272
|
*/
|
|
272
|
-
RESERVE_USAGE =
|
|
273
|
+
RESERVE_USAGE = 40,
|
|
273
274
|
/**
|
|
274
275
|
* Reflects how much the provider owes to the network or other participants.
|
|
275
276
|
*
|
|
276
|
-
* @generated from enum value: ACCOUNT_TYPE_PROVIDER_PAYABLE =
|
|
277
|
+
* @generated from enum value: ACCOUNT_TYPE_PROVIDER_PAYABLE = 50;
|
|
277
278
|
*/
|
|
278
|
-
PROVIDER_PAYABLE =
|
|
279
|
+
PROVIDER_PAYABLE = 50,
|
|
279
280
|
/**
|
|
280
281
|
* Reflects how much the provider is owed by the network or other participants.
|
|
281
282
|
*
|
|
282
|
-
* @generated from enum value: ACCOUNT_TYPE_PROVIDER_RECEIVABLE =
|
|
283
|
+
* @generated from enum value: ACCOUNT_TYPE_PROVIDER_RECEIVABLE = 60;
|
|
283
284
|
*/
|
|
284
|
-
PROVIDER_RECEIVABLE =
|
|
285
|
+
PROVIDER_RECEIVABLE = 60,
|
|
286
|
+
/**
|
|
287
|
+
* Reflects the settlement balance of the provider with the network or other participants.
|
|
288
|
+
*
|
|
289
|
+
* @generated from enum value: ACCOUNT_TYPE_PROVIDER_SETTLEMENT = 70;
|
|
290
|
+
*/
|
|
291
|
+
PROVIDER_SETTLEMENT = 70,
|
|
285
292
|
/**
|
|
286
293
|
* Reflects the fees that the provider owes to the network.
|
|
287
294
|
*
|
|
288
|
-
* @generated from enum value: ACCOUNT_TYPE_FEE_PAYABLE =
|
|
295
|
+
* @generated from enum value: ACCOUNT_TYPE_FEE_PAYABLE = 80;
|
|
289
296
|
*/
|
|
290
|
-
FEE_PAYABLE =
|
|
297
|
+
FEE_PAYABLE = 80,
|
|
291
298
|
/**
|
|
292
299
|
* Reflects the fees that the network is owed by the provider.
|
|
293
300
|
*
|
|
294
|
-
* @generated from enum value: ACCOUNT_TYPE_FEE_RECEIVABLE =
|
|
301
|
+
* @generated from enum value: ACCOUNT_TYPE_FEE_RECEIVABLE = 90;
|
|
295
302
|
*/
|
|
296
|
-
FEE_RECEIVABLE =
|
|
303
|
+
FEE_RECEIVABLE = 90,
|
|
297
304
|
/**
|
|
298
305
|
* Reflects the fees that the provider has to pay for the services provided by the network.
|
|
299
306
|
*
|
|
300
|
-
* @generated from enum value: ACCOUNT_TYPE_FEE_EXPENSE =
|
|
307
|
+
* @generated from enum value: ACCOUNT_TYPE_FEE_EXPENSE = 100;
|
|
301
308
|
*/
|
|
302
|
-
FEE_EXPENSE =
|
|
309
|
+
FEE_EXPENSE = 100,
|
|
303
310
|
/**
|
|
304
|
-
*
|
|
305
|
-
*
|
|
306
|
-
* @generated from enum value: ACCOUNT_TYPE_PROVIDER_SETTLEMENT = 10;
|
|
311
|
+
* @generated from enum value: ACCOUNT_TYPE_FEE_SETTLEMENT = 110;
|
|
307
312
|
*/
|
|
308
|
-
|
|
313
|
+
FEE_SETTLEMENT = 110
|
|
309
314
|
}
|
|
310
315
|
/**
|
|
311
316
|
* Describes the enum tzero.v1.payment.AppendLedgerEntriesRequest.AccountType.
|
|
@@ -393,12 +398,75 @@ export declare const PayoutRequestSchema: GenMessage<PayoutRequest>;
|
|
|
393
398
|
/**
|
|
394
399
|
* @generated from message tzero.v1.payment.PayoutResponse
|
|
395
400
|
*/
|
|
396
|
-
export type PayoutResponse = Message<"tzero.v1.payment.PayoutResponse"> & {
|
|
401
|
+
export type PayoutResponse = Message<"tzero.v1.payment.PayoutResponse"> & {
|
|
402
|
+
/**
|
|
403
|
+
* @generated from oneof tzero.v1.payment.PayoutResponse.result
|
|
404
|
+
*/
|
|
405
|
+
result: {
|
|
406
|
+
/**
|
|
407
|
+
* *
|
|
408
|
+
* Success response - means the payout was executed successfully and the payment is now complete. This happens when
|
|
409
|
+
* the payout is successfully processed by the payout provider, and the payment was made to the recipient.
|
|
410
|
+
*
|
|
411
|
+
* @generated from field: tzero.v1.payment.PayoutResponse.Accepted accepted = 20;
|
|
412
|
+
*/
|
|
413
|
+
value: PayoutResponse_Accepted;
|
|
414
|
+
case: "accepted";
|
|
415
|
+
} | {
|
|
416
|
+
/**
|
|
417
|
+
* *
|
|
418
|
+
* Failure response - means the payout was not executed successfully, e.g. the payout provider could not process the payout.
|
|
419
|
+
*
|
|
420
|
+
* @generated from field: tzero.v1.payment.PayoutResponse.Failed failed = 30;
|
|
421
|
+
*/
|
|
422
|
+
value: PayoutResponse_Failed;
|
|
423
|
+
case: "failed";
|
|
424
|
+
} | {
|
|
425
|
+
case: undefined;
|
|
426
|
+
value?: undefined;
|
|
427
|
+
};
|
|
428
|
+
};
|
|
397
429
|
/**
|
|
398
430
|
* Describes the message tzero.v1.payment.PayoutResponse.
|
|
399
431
|
* Use `create(PayoutResponseSchema)` to create a new message.
|
|
400
432
|
*/
|
|
401
433
|
export declare const PayoutResponseSchema: GenMessage<PayoutResponse>;
|
|
434
|
+
/**
|
|
435
|
+
* @generated from message tzero.v1.payment.PayoutResponse.Accepted
|
|
436
|
+
*/
|
|
437
|
+
export type PayoutResponse_Accepted = Message<"tzero.v1.payment.PayoutResponse.Accepted"> & {};
|
|
438
|
+
/**
|
|
439
|
+
* Describes the message tzero.v1.payment.PayoutResponse.Accepted.
|
|
440
|
+
* Use `create(PayoutResponse_AcceptedSchema)` to create a new message.
|
|
441
|
+
*/
|
|
442
|
+
export declare const PayoutResponse_AcceptedSchema: GenMessage<PayoutResponse_Accepted>;
|
|
443
|
+
/**
|
|
444
|
+
* @generated from message tzero.v1.payment.PayoutResponse.Failed
|
|
445
|
+
*/
|
|
446
|
+
export type PayoutResponse_Failed = Message<"tzero.v1.payment.PayoutResponse.Failed"> & {
|
|
447
|
+
/**
|
|
448
|
+
* @generated from field: tzero.v1.payment.PayoutResponse.Failed.Reason reason = 10;
|
|
449
|
+
*/
|
|
450
|
+
reason: PayoutResponse_Failed_Reason;
|
|
451
|
+
};
|
|
452
|
+
/**
|
|
453
|
+
* Describes the message tzero.v1.payment.PayoutResponse.Failed.
|
|
454
|
+
* Use `create(PayoutResponse_FailedSchema)` to create a new message.
|
|
455
|
+
*/
|
|
456
|
+
export declare const PayoutResponse_FailedSchema: GenMessage<PayoutResponse_Failed>;
|
|
457
|
+
/**
|
|
458
|
+
* @generated from enum tzero.v1.payment.PayoutResponse.Failed.Reason
|
|
459
|
+
*/
|
|
460
|
+
export declare enum PayoutResponse_Failed_Reason {
|
|
461
|
+
/**
|
|
462
|
+
* @generated from enum value: REASON_UNSPECIFIED = 0;
|
|
463
|
+
*/
|
|
464
|
+
UNSPECIFIED = 0
|
|
465
|
+
}
|
|
466
|
+
/**
|
|
467
|
+
* Describes the enum tzero.v1.payment.PayoutResponse.Failed.Reason.
|
|
468
|
+
*/
|
|
469
|
+
export declare const PayoutResponse_Failed_ReasonSchema: GenEnum<PayoutResponse_Failed_Reason>;
|
|
402
470
|
/**
|
|
403
471
|
* @generated from message tzero.v1.payment.UpdatePaymentRequest
|
|
404
472
|
*/
|
|
@@ -423,22 +491,32 @@ export type UpdatePaymentRequest = Message<"tzero.v1.payment.UpdatePaymentReques
|
|
|
423
491
|
result: {
|
|
424
492
|
/**
|
|
425
493
|
* *
|
|
426
|
-
*
|
|
427
|
-
*
|
|
494
|
+
* Accepted response - means the payout was accepted by the pay-out provider and pay-out provider is obligated to
|
|
495
|
+
* make a pay-out.
|
|
428
496
|
*
|
|
429
|
-
* @generated from field: tzero.v1.payment.UpdatePaymentRequest.
|
|
497
|
+
* @generated from field: tzero.v1.payment.UpdatePaymentRequest.Accepted accepted = 20;
|
|
430
498
|
*/
|
|
431
|
-
value:
|
|
432
|
-
case: "
|
|
499
|
+
value: UpdatePaymentRequest_Accepted;
|
|
500
|
+
case: "accepted";
|
|
433
501
|
} | {
|
|
434
502
|
/**
|
|
435
503
|
* *
|
|
436
|
-
*
|
|
504
|
+
* Payment failed and would not be retried.
|
|
437
505
|
*
|
|
438
|
-
* @generated from field: tzero.v1.payment.UpdatePaymentRequest.
|
|
506
|
+
* @generated from field: tzero.v1.payment.UpdatePaymentRequest.Failed failed = 30;
|
|
439
507
|
*/
|
|
440
|
-
value:
|
|
441
|
-
case: "
|
|
508
|
+
value: UpdatePaymentRequest_Failed;
|
|
509
|
+
case: "failed";
|
|
510
|
+
} | {
|
|
511
|
+
/**
|
|
512
|
+
* *
|
|
513
|
+
* Confirmed response - final state meaning the payout was executed successfully and the payment is now complete.
|
|
514
|
+
* This happens when the payout is successfully processed by the payout provider, and the payment was made to the recipient.
|
|
515
|
+
*
|
|
516
|
+
* @generated from field: tzero.v1.payment.UpdatePaymentRequest.Confirmed confirmed = 40;
|
|
517
|
+
*/
|
|
518
|
+
value: UpdatePaymentRequest_Confirmed;
|
|
519
|
+
case: "confirmed";
|
|
442
520
|
} | {
|
|
443
521
|
case: undefined;
|
|
444
522
|
value?: undefined;
|
|
@@ -450,49 +528,71 @@ export type UpdatePaymentRequest = Message<"tzero.v1.payment.UpdatePaymentReques
|
|
|
450
528
|
*/
|
|
451
529
|
export declare const UpdatePaymentRequestSchema: GenMessage<UpdatePaymentRequest>;
|
|
452
530
|
/**
|
|
453
|
-
* @generated from message tzero.v1.payment.UpdatePaymentRequest.
|
|
531
|
+
* @generated from message tzero.v1.payment.UpdatePaymentRequest.Accepted
|
|
454
532
|
*/
|
|
455
|
-
export type
|
|
533
|
+
export type UpdatePaymentRequest_Accepted = Message<"tzero.v1.payment.UpdatePaymentRequest.Accepted"> & {
|
|
456
534
|
/**
|
|
457
535
|
* amount in currency of the payout
|
|
458
536
|
*
|
|
459
537
|
* @generated from field: tzero.v1.common.Decimal payout_amount = 10;
|
|
460
538
|
*/
|
|
461
539
|
payoutAmount?: Decimal;
|
|
462
|
-
/**
|
|
463
|
-
* time of the payout
|
|
464
|
-
*
|
|
465
|
-
* @generated from field: google.protobuf.Timestamp paid_out_at = 50;
|
|
466
|
-
*/
|
|
467
|
-
paidOutAt?: Timestamp;
|
|
468
540
|
};
|
|
469
541
|
/**
|
|
470
|
-
* Describes the message tzero.v1.payment.UpdatePaymentRequest.
|
|
471
|
-
* Use `create(
|
|
542
|
+
* Describes the message tzero.v1.payment.UpdatePaymentRequest.Accepted.
|
|
543
|
+
* Use `create(UpdatePaymentRequest_AcceptedSchema)` to create a new message.
|
|
472
544
|
*/
|
|
473
|
-
export declare const
|
|
545
|
+
export declare const UpdatePaymentRequest_AcceptedSchema: GenMessage<UpdatePaymentRequest_Accepted>;
|
|
474
546
|
/**
|
|
475
|
-
* @generated from message tzero.v1.payment.UpdatePaymentRequest.
|
|
547
|
+
* @generated from message tzero.v1.payment.UpdatePaymentRequest.Failed
|
|
476
548
|
*/
|
|
477
|
-
export type
|
|
549
|
+
export type UpdatePaymentRequest_Failed = Message<"tzero.v1.payment.UpdatePaymentRequest.Failed"> & {
|
|
550
|
+
/**
|
|
551
|
+
* @generated from field: tzero.v1.payment.UpdatePaymentRequest.Failed.Reason reason = 10;
|
|
552
|
+
*/
|
|
553
|
+
reason: UpdatePaymentRequest_Failed_Reason;
|
|
554
|
+
};
|
|
478
555
|
/**
|
|
479
|
-
* Describes the message tzero.v1.payment.UpdatePaymentRequest.
|
|
480
|
-
* Use `create(
|
|
556
|
+
* Describes the message tzero.v1.payment.UpdatePaymentRequest.Failed.
|
|
557
|
+
* Use `create(UpdatePaymentRequest_FailedSchema)` to create a new message.
|
|
481
558
|
*/
|
|
482
|
-
export declare const
|
|
559
|
+
export declare const UpdatePaymentRequest_FailedSchema: GenMessage<UpdatePaymentRequest_Failed>;
|
|
483
560
|
/**
|
|
484
|
-
* @generated from enum tzero.v1.payment.UpdatePaymentRequest.
|
|
561
|
+
* @generated from enum tzero.v1.payment.UpdatePaymentRequest.Failed.Reason
|
|
485
562
|
*/
|
|
486
|
-
export declare enum
|
|
563
|
+
export declare enum UpdatePaymentRequest_Failed_Reason {
|
|
487
564
|
/**
|
|
488
565
|
* @generated from enum value: REASON_UNSPECIFIED = 0;
|
|
489
566
|
*/
|
|
490
567
|
UNSPECIFIED = 0
|
|
491
568
|
}
|
|
492
569
|
/**
|
|
493
|
-
* Describes the enum tzero.v1.payment.UpdatePaymentRequest.
|
|
570
|
+
* Describes the enum tzero.v1.payment.UpdatePaymentRequest.Failed.Reason.
|
|
571
|
+
*/
|
|
572
|
+
export declare const UpdatePaymentRequest_Failed_ReasonSchema: GenEnum<UpdatePaymentRequest_Failed_Reason>;
|
|
573
|
+
/**
|
|
574
|
+
* @generated from message tzero.v1.payment.UpdatePaymentRequest.Confirmed
|
|
575
|
+
*/
|
|
576
|
+
export type UpdatePaymentRequest_Confirmed = Message<"tzero.v1.payment.UpdatePaymentRequest.Confirmed"> & {
|
|
577
|
+
/**
|
|
578
|
+
* time of the payout
|
|
579
|
+
*
|
|
580
|
+
* @generated from field: google.protobuf.Timestamp paid_out_at = 10;
|
|
581
|
+
*/
|
|
582
|
+
paidOutAt?: Timestamp;
|
|
583
|
+
/**
|
|
584
|
+
* *
|
|
585
|
+
* Payment receipt might contain metadata about payment recognizable by pay-in provider.
|
|
586
|
+
*
|
|
587
|
+
* @generated from field: tzero.v1.common.PaymentReceipt receipt = 20;
|
|
588
|
+
*/
|
|
589
|
+
receipt?: PaymentReceipt;
|
|
590
|
+
};
|
|
591
|
+
/**
|
|
592
|
+
* Describes the message tzero.v1.payment.UpdatePaymentRequest.Confirmed.
|
|
593
|
+
* Use `create(UpdatePaymentRequest_ConfirmedSchema)` to create a new message.
|
|
494
594
|
*/
|
|
495
|
-
export declare const
|
|
595
|
+
export declare const UpdatePaymentRequest_ConfirmedSchema: GenMessage<UpdatePaymentRequest_Confirmed>;
|
|
496
596
|
/**
|
|
497
597
|
* @generated from message tzero.v1.payment.UpdatePaymentResponse
|
|
498
598
|
*/
|
|
@@ -559,7 +659,7 @@ export type UpdateLimitRequest_Limit = Message<"tzero.v1.payment.UpdateLimitRequ
|
|
|
559
659
|
* *
|
|
560
660
|
* This is the credit usage that the provider has used so far. It is the sum of all payouts made by the provider
|
|
561
661
|
* minus the settlement net (settlement balance). It could be negative if the provider has received more
|
|
562
|
-
* in settlements than
|
|
662
|
+
* in settlements than made payouts (pre-settlement).
|
|
563
663
|
*
|
|
564
664
|
* @generated from field: tzero.v1.common.Decimal credit_usage = 40;
|
|
565
665
|
*/
|
|
@@ -3,12 +3,14 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
5
5
|
import { file_tzero_v1_common_payment_method } from "../common/payment_method_pb.js";
|
|
6
|
+
import { file_tzero_v1_common_payment_receipt } from "../common/payment_receipt_pb.js";
|
|
6
7
|
import { file_tzero_v1_common_common } from "../common/common_pb.js";
|
|
7
8
|
import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
9
|
+
import { file_buf_validate_validate } from "../../../buf/validate/validate_pb.js";
|
|
8
10
|
/**
|
|
9
11
|
* Describes the file tzero/v1/payment/provider.proto.
|
|
10
12
|
*/
|
|
11
|
-
export const file_tzero_v1_payment_provider = /*@__PURE__*/ fileDesc("
|
|
13
|
+
export const file_tzero_v1_payment_provider = /*@__PURE__*/ fileDesc("Ch90emVyby92MS9wYXltZW50L3Byb3ZpZGVyLnByb3RvEhB0emVyby52MS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BIuCgxjcmVkaXRfdXNhZ2UYKCABKAsyGC50emVyby52MS5jb21tb24uRGVjaW1hbCIVChNVcGRhdGVMaW1pdFJlc3BvbnNlMqQDCg9Qcm92aWRlclNlcnZpY2USUAoGUGF5T3V0Eh8udHplcm8udjEucGF5bWVudC5QYXlvdXRSZXF1ZXN0GiAudHplcm8udjEucGF5bWVudC5QYXlvdXRSZXNwb25zZSIDkAICEmUKDVVwZGF0ZVBheW1lbnQSJi50emVyby52MS5wYXltZW50LlVwZGF0ZVBheW1lbnRSZXF1ZXN0GicudHplcm8udjEucGF5bWVudC5VcGRhdGVQYXltZW50UmVzcG9uc2UiA5ACAhJfCgtVcGRhdGVMaW1pdBIkLnR6ZXJvLnYxLnBheW1lbnQuVXBkYXRlTGltaXRSZXF1ZXN0GiUudHplcm8udjEucGF5bWVudC5VcGRhdGVMaW1pdFJlc3BvbnNlIgOQAgISdwoTQXBwZW5kTGVkZ2VyRW50cmllcxIsLnR6ZXJvLnYxLnBheW1lbnQuQXBwZW5kTGVkZ2VyRW50cmllc1JlcXVlc3QaLS50emVyby52MS5wYXltZW50LkFwcGVuZExlZGdlckVudHJpZXNSZXNwb25zZSIDkAICQocBChRjb20udHplcm8udjEucGF5bWVudEINUHJvdmlkZXJQcm90b1ABogIDVFZQqgIQVHplcm8uVjEuUGF5bWVudMoCEFR6ZXJvXFYxXFBheW1lbnTiAhxUemVyb1xWMVxQYXltZW50XEdQQk1ldGFkYXRh6gISVHplcm86OlYxOjpQYXltZW50YgZwcm90bzM", [file_tzero_v1_common_payment_method, file_tzero_v1_common_payment_receipt, file_tzero_v1_common_common, file_google_protobuf_timestamp, file_buf_validate_validate]);
|
|
12
14
|
/**
|
|
13
15
|
* Describes the message tzero.v1.payment.AppendLedgerEntriesRequest.
|
|
14
16
|
* Use `create(AppendLedgerEntriesRequestSchema)` to create a new message.
|
|
@@ -66,63 +68,67 @@ export var AppendLedgerEntriesRequest_AccountType;
|
|
|
66
68
|
/**
|
|
67
69
|
* Reflects the user's payable balance, the amount that the provider owes to the user.
|
|
68
70
|
*
|
|
69
|
-
* @generated from enum value: ACCOUNT_TYPE_USER_PAYABLE =
|
|
71
|
+
* @generated from enum value: ACCOUNT_TYPE_USER_PAYABLE = 10;
|
|
70
72
|
*/
|
|
71
|
-
AppendLedgerEntriesRequest_AccountType[AppendLedgerEntriesRequest_AccountType["USER_PAYABLE"] =
|
|
73
|
+
AppendLedgerEntriesRequest_AccountType[AppendLedgerEntriesRequest_AccountType["USER_PAYABLE"] = 10] = "USER_PAYABLE";
|
|
72
74
|
/**
|
|
73
75
|
* Reflects the cash balance of the provider.
|
|
74
76
|
*
|
|
75
|
-
* @generated from enum value: ACCOUNT_TYPE_CASH =
|
|
77
|
+
* @generated from enum value: ACCOUNT_TYPE_CASH = 20;
|
|
76
78
|
*/
|
|
77
|
-
AppendLedgerEntriesRequest_AccountType[AppendLedgerEntriesRequest_AccountType["CASH"] =
|
|
79
|
+
AppendLedgerEntriesRequest_AccountType[AppendLedgerEntriesRequest_AccountType["CASH"] = 20] = "CASH";
|
|
78
80
|
/**
|
|
79
81
|
* This is the reserve account of the provider, which reflects the reserve of balance to reduce the limit available from one provider to another.
|
|
80
82
|
*
|
|
81
|
-
* @generated from enum value: ACCOUNT_TYPE_RESERVE =
|
|
83
|
+
* @generated from enum value: ACCOUNT_TYPE_RESERVE = 30;
|
|
82
84
|
*/
|
|
83
|
-
AppendLedgerEntriesRequest_AccountType[AppendLedgerEntriesRequest_AccountType["RESERVE"] =
|
|
85
|
+
AppendLedgerEntriesRequest_AccountType[AppendLedgerEntriesRequest_AccountType["RESERVE"] = 30] = "RESERVE";
|
|
84
86
|
/**
|
|
85
87
|
* This is the mirror account for the reserve. To keep the double entry accounting principle.
|
|
86
88
|
*
|
|
87
|
-
* @generated from enum value: ACCOUNT_TYPE_RESERVE_USAGE =
|
|
89
|
+
* @generated from enum value: ACCOUNT_TYPE_RESERVE_USAGE = 40;
|
|
88
90
|
*/
|
|
89
|
-
AppendLedgerEntriesRequest_AccountType[AppendLedgerEntriesRequest_AccountType["RESERVE_USAGE"] =
|
|
91
|
+
AppendLedgerEntriesRequest_AccountType[AppendLedgerEntriesRequest_AccountType["RESERVE_USAGE"] = 40] = "RESERVE_USAGE";
|
|
90
92
|
/**
|
|
91
93
|
* Reflects how much the provider owes to the network or other participants.
|
|
92
94
|
*
|
|
93
|
-
* @generated from enum value: ACCOUNT_TYPE_PROVIDER_PAYABLE =
|
|
95
|
+
* @generated from enum value: ACCOUNT_TYPE_PROVIDER_PAYABLE = 50;
|
|
94
96
|
*/
|
|
95
|
-
AppendLedgerEntriesRequest_AccountType[AppendLedgerEntriesRequest_AccountType["PROVIDER_PAYABLE"] =
|
|
97
|
+
AppendLedgerEntriesRequest_AccountType[AppendLedgerEntriesRequest_AccountType["PROVIDER_PAYABLE"] = 50] = "PROVIDER_PAYABLE";
|
|
96
98
|
/**
|
|
97
99
|
* Reflects how much the provider is owed by the network or other participants.
|
|
98
100
|
*
|
|
99
|
-
* @generated from enum value: ACCOUNT_TYPE_PROVIDER_RECEIVABLE =
|
|
101
|
+
* @generated from enum value: ACCOUNT_TYPE_PROVIDER_RECEIVABLE = 60;
|
|
100
102
|
*/
|
|
101
|
-
AppendLedgerEntriesRequest_AccountType[AppendLedgerEntriesRequest_AccountType["PROVIDER_RECEIVABLE"] =
|
|
103
|
+
AppendLedgerEntriesRequest_AccountType[AppendLedgerEntriesRequest_AccountType["PROVIDER_RECEIVABLE"] = 60] = "PROVIDER_RECEIVABLE";
|
|
104
|
+
/**
|
|
105
|
+
* Reflects the settlement balance of the provider with the network or other participants.
|
|
106
|
+
*
|
|
107
|
+
* @generated from enum value: ACCOUNT_TYPE_PROVIDER_SETTLEMENT = 70;
|
|
108
|
+
*/
|
|
109
|
+
AppendLedgerEntriesRequest_AccountType[AppendLedgerEntriesRequest_AccountType["PROVIDER_SETTLEMENT"] = 70] = "PROVIDER_SETTLEMENT";
|
|
102
110
|
/**
|
|
103
111
|
* Reflects the fees that the provider owes to the network.
|
|
104
112
|
*
|
|
105
|
-
* @generated from enum value: ACCOUNT_TYPE_FEE_PAYABLE =
|
|
113
|
+
* @generated from enum value: ACCOUNT_TYPE_FEE_PAYABLE = 80;
|
|
106
114
|
*/
|
|
107
|
-
AppendLedgerEntriesRequest_AccountType[AppendLedgerEntriesRequest_AccountType["FEE_PAYABLE"] =
|
|
115
|
+
AppendLedgerEntriesRequest_AccountType[AppendLedgerEntriesRequest_AccountType["FEE_PAYABLE"] = 80] = "FEE_PAYABLE";
|
|
108
116
|
/**
|
|
109
117
|
* Reflects the fees that the network is owed by the provider.
|
|
110
118
|
*
|
|
111
|
-
* @generated from enum value: ACCOUNT_TYPE_FEE_RECEIVABLE =
|
|
119
|
+
* @generated from enum value: ACCOUNT_TYPE_FEE_RECEIVABLE = 90;
|
|
112
120
|
*/
|
|
113
|
-
AppendLedgerEntriesRequest_AccountType[AppendLedgerEntriesRequest_AccountType["FEE_RECEIVABLE"] =
|
|
121
|
+
AppendLedgerEntriesRequest_AccountType[AppendLedgerEntriesRequest_AccountType["FEE_RECEIVABLE"] = 90] = "FEE_RECEIVABLE";
|
|
114
122
|
/**
|
|
115
123
|
* Reflects the fees that the provider has to pay for the services provided by the network.
|
|
116
124
|
*
|
|
117
|
-
* @generated from enum value: ACCOUNT_TYPE_FEE_EXPENSE =
|
|
125
|
+
* @generated from enum value: ACCOUNT_TYPE_FEE_EXPENSE = 100;
|
|
118
126
|
*/
|
|
119
|
-
AppendLedgerEntriesRequest_AccountType[AppendLedgerEntriesRequest_AccountType["FEE_EXPENSE"] =
|
|
127
|
+
AppendLedgerEntriesRequest_AccountType[AppendLedgerEntriesRequest_AccountType["FEE_EXPENSE"] = 100] = "FEE_EXPENSE";
|
|
120
128
|
/**
|
|
121
|
-
*
|
|
122
|
-
*
|
|
123
|
-
* @generated from enum value: ACCOUNT_TYPE_PROVIDER_SETTLEMENT = 10;
|
|
129
|
+
* @generated from enum value: ACCOUNT_TYPE_FEE_SETTLEMENT = 110;
|
|
124
130
|
*/
|
|
125
|
-
AppendLedgerEntriesRequest_AccountType[AppendLedgerEntriesRequest_AccountType["
|
|
131
|
+
AppendLedgerEntriesRequest_AccountType[AppendLedgerEntriesRequest_AccountType["FEE_SETTLEMENT"] = 110] = "FEE_SETTLEMENT";
|
|
126
132
|
})(AppendLedgerEntriesRequest_AccountType || (AppendLedgerEntriesRequest_AccountType = {}));
|
|
127
133
|
/**
|
|
128
134
|
* Describes the enum tzero.v1.payment.AppendLedgerEntriesRequest.AccountType.
|
|
@@ -143,35 +149,64 @@ export const PayoutRequestSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_payme
|
|
|
143
149
|
* Use `create(PayoutResponseSchema)` to create a new message.
|
|
144
150
|
*/
|
|
145
151
|
export const PayoutResponseSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_payment_provider, 3);
|
|
152
|
+
/**
|
|
153
|
+
* Describes the message tzero.v1.payment.PayoutResponse.Accepted.
|
|
154
|
+
* Use `create(PayoutResponse_AcceptedSchema)` to create a new message.
|
|
155
|
+
*/
|
|
156
|
+
export const PayoutResponse_AcceptedSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_payment_provider, 3, 0);
|
|
157
|
+
/**
|
|
158
|
+
* Describes the message tzero.v1.payment.PayoutResponse.Failed.
|
|
159
|
+
* Use `create(PayoutResponse_FailedSchema)` to create a new message.
|
|
160
|
+
*/
|
|
161
|
+
export const PayoutResponse_FailedSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_payment_provider, 3, 1);
|
|
162
|
+
/**
|
|
163
|
+
* @generated from enum tzero.v1.payment.PayoutResponse.Failed.Reason
|
|
164
|
+
*/
|
|
165
|
+
export var PayoutResponse_Failed_Reason;
|
|
166
|
+
(function (PayoutResponse_Failed_Reason) {
|
|
167
|
+
/**
|
|
168
|
+
* @generated from enum value: REASON_UNSPECIFIED = 0;
|
|
169
|
+
*/
|
|
170
|
+
PayoutResponse_Failed_Reason[PayoutResponse_Failed_Reason["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
171
|
+
})(PayoutResponse_Failed_Reason || (PayoutResponse_Failed_Reason = {}));
|
|
172
|
+
/**
|
|
173
|
+
* Describes the enum tzero.v1.payment.PayoutResponse.Failed.Reason.
|
|
174
|
+
*/
|
|
175
|
+
export const PayoutResponse_Failed_ReasonSchema = /*@__PURE__*/ enumDesc(file_tzero_v1_payment_provider, 3, 1, 0);
|
|
146
176
|
/**
|
|
147
177
|
* Describes the message tzero.v1.payment.UpdatePaymentRequest.
|
|
148
178
|
* Use `create(UpdatePaymentRequestSchema)` to create a new message.
|
|
149
179
|
*/
|
|
150
180
|
export const UpdatePaymentRequestSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_payment_provider, 4);
|
|
151
181
|
/**
|
|
152
|
-
* Describes the message tzero.v1.payment.UpdatePaymentRequest.
|
|
153
|
-
* Use `create(
|
|
182
|
+
* Describes the message tzero.v1.payment.UpdatePaymentRequest.Accepted.
|
|
183
|
+
* Use `create(UpdatePaymentRequest_AcceptedSchema)` to create a new message.
|
|
154
184
|
*/
|
|
155
|
-
export const
|
|
185
|
+
export const UpdatePaymentRequest_AcceptedSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_payment_provider, 4, 0);
|
|
156
186
|
/**
|
|
157
|
-
* Describes the message tzero.v1.payment.UpdatePaymentRequest.
|
|
158
|
-
* Use `create(
|
|
187
|
+
* Describes the message tzero.v1.payment.UpdatePaymentRequest.Failed.
|
|
188
|
+
* Use `create(UpdatePaymentRequest_FailedSchema)` to create a new message.
|
|
159
189
|
*/
|
|
160
|
-
export const
|
|
190
|
+
export const UpdatePaymentRequest_FailedSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_payment_provider, 4, 1);
|
|
161
191
|
/**
|
|
162
|
-
* @generated from enum tzero.v1.payment.UpdatePaymentRequest.
|
|
192
|
+
* @generated from enum tzero.v1.payment.UpdatePaymentRequest.Failed.Reason
|
|
163
193
|
*/
|
|
164
|
-
export var
|
|
165
|
-
(function (
|
|
194
|
+
export var UpdatePaymentRequest_Failed_Reason;
|
|
195
|
+
(function (UpdatePaymentRequest_Failed_Reason) {
|
|
166
196
|
/**
|
|
167
197
|
* @generated from enum value: REASON_UNSPECIFIED = 0;
|
|
168
198
|
*/
|
|
169
|
-
|
|
170
|
-
})(
|
|
199
|
+
UpdatePaymentRequest_Failed_Reason[UpdatePaymentRequest_Failed_Reason["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
200
|
+
})(UpdatePaymentRequest_Failed_Reason || (UpdatePaymentRequest_Failed_Reason = {}));
|
|
201
|
+
/**
|
|
202
|
+
* Describes the enum tzero.v1.payment.UpdatePaymentRequest.Failed.Reason.
|
|
203
|
+
*/
|
|
204
|
+
export const UpdatePaymentRequest_Failed_ReasonSchema = /*@__PURE__*/ enumDesc(file_tzero_v1_payment_provider, 4, 1, 0);
|
|
171
205
|
/**
|
|
172
|
-
* Describes the
|
|
206
|
+
* Describes the message tzero.v1.payment.UpdatePaymentRequest.Confirmed.
|
|
207
|
+
* Use `create(UpdatePaymentRequest_ConfirmedSchema)` to create a new message.
|
|
173
208
|
*/
|
|
174
|
-
export const
|
|
209
|
+
export const UpdatePaymentRequest_ConfirmedSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_payment_provider, 4, 2);
|
|
175
210
|
/**
|
|
176
211
|
* Describes the message tzero.v1.payment.UpdatePaymentResponse.
|
|
177
212
|
* Use `create(UpdatePaymentResponseSchema)` to create a new message.
|
|
@@ -11,18 +11,24 @@ export declare const file_tzero_v1_payment_intent_provider_provider: GenFile;
|
|
|
11
11
|
*/
|
|
12
12
|
export type CreatePaymentIntentRequest = Message<"tzero.v1.payment_intent.provider.CreatePaymentIntentRequest"> & {
|
|
13
13
|
/**
|
|
14
|
+
* Payment intent ID must be positive
|
|
15
|
+
*
|
|
14
16
|
* idempotency key
|
|
15
17
|
*
|
|
16
18
|
* @generated from field: uint64 payment_intent_id = 10;
|
|
17
19
|
*/
|
|
18
20
|
paymentIntentId: bigint;
|
|
19
21
|
/**
|
|
22
|
+
* ISO 4217 currency code (3 uppercase letters)
|
|
23
|
+
*
|
|
20
24
|
* pay-in currency
|
|
21
25
|
*
|
|
22
26
|
* @generated from field: string currency = 20;
|
|
23
27
|
*/
|
|
24
28
|
currency: string;
|
|
25
29
|
/**
|
|
30
|
+
* Amount is required
|
|
31
|
+
*
|
|
26
32
|
* pay-in amount
|
|
27
33
|
*
|
|
28
34
|
* @generated from field: tzero.v1.common.Decimal amount = 30;
|
|
@@ -39,6 +45,8 @@ export declare const CreatePaymentIntentRequestSchema: GenMessage<CreatePaymentI
|
|
|
39
45
|
*/
|
|
40
46
|
export type CreatePaymentIntentResponse = Message<"tzero.v1.payment_intent.provider.CreatePaymentIntentResponse"> & {
|
|
41
47
|
/**
|
|
48
|
+
* At least one payment method should be provided
|
|
49
|
+
*
|
|
42
50
|
* @generated from field: repeated tzero.v1.payment_intent.provider.CreatePaymentIntentResponse.PaymentMethod payment_methods = 20;
|
|
43
51
|
*/
|
|
44
52
|
paymentMethods: CreatePaymentIntentResponse_PaymentMethod[];
|
|
@@ -53,10 +61,14 @@ export declare const CreatePaymentIntentResponseSchema: GenMessage<CreatePayment
|
|
|
53
61
|
*/
|
|
54
62
|
export type CreatePaymentIntentResponse_PaymentMethod = Message<"tzero.v1.payment_intent.provider.CreatePaymentIntentResponse.PaymentMethod"> & {
|
|
55
63
|
/**
|
|
64
|
+
* Payment URL must be a valid URL
|
|
65
|
+
*
|
|
56
66
|
* @generated from field: string payment_url = 10;
|
|
57
67
|
*/
|
|
58
68
|
paymentUrl: string;
|
|
59
69
|
/**
|
|
70
|
+
* Payment method must be specified
|
|
71
|
+
*
|
|
60
72
|
* @generated from field: tzero.v1.common.PaymentMethodType payment_method = 20;
|
|
61
73
|
*/
|
|
62
74
|
paymentMethod: PaymentMethodType;
|
|
@@ -71,12 +83,16 @@ export declare const CreatePaymentIntentResponse_PaymentMethodSchema: GenMessage
|
|
|
71
83
|
*/
|
|
72
84
|
export type ConfirmPaymentRequest = Message<"tzero.v1.payment_intent.provider.ConfirmPaymentRequest"> & {
|
|
73
85
|
/**
|
|
86
|
+
* Payment intent ID must be positive
|
|
87
|
+
*
|
|
74
88
|
* payment_intent_id from CreatePaymentIntentRequest
|
|
75
89
|
*
|
|
76
90
|
* @generated from field: uint64 payment_intent_id = 10;
|
|
77
91
|
*/
|
|
78
92
|
paymentIntentId: bigint;
|
|
79
93
|
/**
|
|
94
|
+
* Payment method must be specified
|
|
95
|
+
*
|
|
80
96
|
* @generated from field: tzero.v1.common.PaymentMethodType payment_method = 20;
|
|
81
97
|
*/
|
|
82
98
|
paymentMethod: PaymentMethodType;
|
|
@@ -173,6 +189,12 @@ export type ConfirmPayoutRequest = Message<"tzero.v1.payment_intent.provider.Con
|
|
|
173
189
|
* @generated from field: uint64 payment_intent_id = 10;
|
|
174
190
|
*/
|
|
175
191
|
paymentIntentId: bigint;
|
|
192
|
+
/**
|
|
193
|
+
* corresponding payment_id for this payment intent
|
|
194
|
+
*
|
|
195
|
+
* @generated from field: uint64 payment_id = 20;
|
|
196
|
+
*/
|
|
197
|
+
paymentId: bigint;
|
|
176
198
|
};
|
|
177
199
|
/**
|
|
178
200
|
* Describes the message tzero.v1.payment_intent.provider.ConfirmPayoutRequest.
|
|
@@ -4,10 +4,11 @@
|
|
|
4
4
|
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
5
5
|
import { file_tzero_v1_common_common } from "../../common/common_pb.js";
|
|
6
6
|
import { file_tzero_v1_common_payment_method } from "../../common/payment_method_pb.js";
|
|
7
|
+
import { file_buf_validate_validate } from "../../../../buf/validate/validate_pb.js";
|
|
7
8
|
/**
|
|
8
9
|
* Describes the file tzero/v1/payment_intent/provider/provider.proto.
|
|
9
10
|
*/
|
|
10
|
-
export const file_tzero_v1_payment_intent_provider_provider = /*@__PURE__*/ fileDesc("
|
|
11
|
+
export const file_tzero_v1_payment_intent_provider_provider = /*@__PURE__*/ fileDesc("Ci90emVyby92MS9wYXltZW50X2ludGVudC9wcm92aWRlci9wcm92aWRlci5wcm90bxIgdHplcm8udjEucGF5bWVudF9pbnRlbnQucHJvdmlkZXIimgEKGkNyZWF0ZVBheW1lbnRJbnRlbnRSZXF1ZXN0EiIKEXBheW1lbnRfaW50ZW50X2lkGAogASgEQge6SAQyAiAAEiYKCGN1cnJlbmN5GBQgASgJQhS6SBFyDzIKXltBLVpdezN9JJgBAxIwCgZhbW91bnQYHiABKAsyGC50emVyby52MS5jb21tb24uRGVjaW1hbEIGukgDyAEBIpQCChtDcmVhdGVQYXltZW50SW50ZW50UmVzcG9uc2USbgoPcGF5bWVudF9tZXRob2RzGBQgAygLMksudHplcm8udjEucGF5bWVudF9pbnRlbnQucHJvdmlkZXIuQ3JlYXRlUGF5bWVudEludGVudFJlc3BvbnNlLlBheW1lbnRNZXRob2RCCLpIBZIBAggBGoQBCg1QYXltZW50TWV0aG9kEi0KC3BheW1lbnRfdXJsGAogASgJQhi6SBVyExABGIAQMgxeaHR0cHM/Oi8vLisSRAoOcGF5bWVudF9tZXRob2QYFCABKA4yIi50emVyby52MS5jb21tb24uUGF5bWVudE1ldGhvZFR5cGVCCLpIBYIBAiAAIoEBChVDb25maXJtUGF5bWVudFJlcXVlc3QSIgoRcGF5bWVudF9pbnRlbnRfaWQYCiABKARCB7pIBDICIAASRAoOcGF5bWVudF9tZXRob2QYFCABKA4yIi50emVyby52MS5jb21tb24uUGF5bWVudE1ldGhvZFR5cGVCCLpIBYIBAiAAItcCChZDb25maXJtUGF5bWVudFJlc3BvbnNlEjMKEXNldHRsZW1lbnRfYW1vdW50GAogASgLMhgudHplcm8udjEuY29tbW9uLkRlY2ltYWwSGgoScGF5b3V0X3Byb3ZpZGVyX2lkGBQgASgNEmgKFHNldHRsZW1lbnRfYWRkcmVzc2VzGB4gAygLMkoudHplcm8udjEucGF5bWVudF9pbnRlbnQucHJvdmlkZXIuQ29uZmlybVBheW1lbnRSZXNwb25zZS5TZXR0bGVtZW50QWRkcmVzcxqBAQoRU2V0dGxlbWVudEFkZHJlc3MSKgoFY2hhaW4YCiABKA4yGy50emVyby52MS5jb21tb24uQmxvY2tjaGFpbhIvCgpzdGFibGVjb2luGBQgASgOMhsudHplcm8udjEuY29tbW9uLlN0YWJsZWNvaW4SDwoHYWRkcmVzcxgeIAEoCSJHChpSZWplY3RQYXltZW50SW50ZW50UmVxdWVzdBIZChFwYXltZW50X2ludGVudF9pZBgKIAEoBBIOCgZyZWFzb24YFCABKAkiHQobUmVqZWN0UGF5bWVudEludGVudFJlc3BvbnNlIkUKFENvbmZpcm1QYXlvdXRSZXF1ZXN0EhkKEXBheW1lbnRfaW50ZW50X2lkGAogASgEEhIKCnBheW1lbnRfaWQYFCABKAQiFwoVQ29uZmlybVBheW91dFJlc3BvbnNlIncKGENvbmZpcm1TZXR0bGVtZW50UmVxdWVzdBIvCgpibG9ja2NoYWluGAogASgOMhsudHplcm8udjEuY29tbW9uLkJsb2NrY2hhaW4SDwoHdHhfaGFzaBgUIAEoCRIZChFwYXltZW50X2ludGVudF9pZBgeIAMoBCIbChlDb25maXJtU2V0dGxlbWVudFJlc3BvbnNlMskDCg5OZXR3b3JrU2VydmljZRKIAQoOQ29uZmlybVBheW1lbnQSNy50emVyby52MS5wYXltZW50X2ludGVudC5wcm92aWRlci5Db25maXJtUGF5bWVudFJlcXVlc3QaOC50emVyby52MS5wYXltZW50X2ludGVudC5wcm92aWRlci5Db25maXJtUGF5bWVudFJlc3BvbnNlIgOQAgISlwEKE1JlamVjdFBheW1lbnRJbnRlbnQSPC50emVyby52MS5wYXltZW50X2ludGVudC5wcm92aWRlci5SZWplY3RQYXltZW50SW50ZW50UmVxdWVzdBo9LnR6ZXJvLnYxLnBheW1lbnRfaW50ZW50LnByb3ZpZGVyLlJlamVjdFBheW1lbnRJbnRlbnRSZXNwb25zZSIDkAICEpEBChFDb25maXJtU2V0dGxlbWVudBI6LnR6ZXJvLnYxLnBheW1lbnRfaW50ZW50LnByb3ZpZGVyLkNvbmZpcm1TZXR0bGVtZW50UmVxdWVzdBo7LnR6ZXJvLnYxLnBheW1lbnRfaW50ZW50LnByb3ZpZGVyLkNvbmZpcm1TZXR0bGVtZW50UmVzcG9uc2UiA5ACAjKzAgoPUHJvdmlkZXJTZXJ2aWNlEpcBChNDcmVhdGVQYXltZW50SW50ZW50EjwudHplcm8udjEucGF5bWVudF9pbnRlbnQucHJvdmlkZXIuQ3JlYXRlUGF5bWVudEludGVudFJlcXVlc3QaPS50emVyby52MS5wYXltZW50X2ludGVudC5wcm92aWRlci5DcmVhdGVQYXltZW50SW50ZW50UmVzcG9uc2UiA5ACAhKFAQoNQ29uZmlybVBheW91dBI2LnR6ZXJvLnYxLnBheW1lbnRfaW50ZW50LnByb3ZpZGVyLkNvbmZpcm1QYXlvdXRSZXF1ZXN0GjcudHplcm8udjEucGF5bWVudF9pbnRlbnQucHJvdmlkZXIuQ29uZmlybVBheW91dFJlc3BvbnNlIgOQAgJC1QEKJGNvbS50emVyby52MS5wYXltZW50X2ludGVudC5wcm92aWRlckINUHJvdmlkZXJQcm90b1ABogIEVFZQUKoCH1R6ZXJvLlYxLlBheW1lbnRJbnRlbnQuUHJvdmlkZXLKAh9UemVyb1xWMVxQYXltZW50SW50ZW50XFByb3ZpZGVy4gIrVHplcm9cVjFcUGF5bWVudEludGVudFxQcm92aWRlclxHUEJNZXRhZGF0YeoCIlR6ZXJvOjpWMTo6UGF5bWVudEludGVudDo6UHJvdmlkZXJiBnByb3RvMw", [file_tzero_v1_common_common, file_tzero_v1_common_payment_method, file_buf_validate_validate]);
|
|
11
12
|
/**
|
|
12
13
|
* Describes the message tzero.v1.payment_intent.provider.CreatePaymentIntentRequest.
|
|
13
14
|
* Use `create(CreatePaymentIntentRequestSchema)` to create a new message.
|