@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,15 +3,17 @@
|
|
|
3
3
|
// @generated from file tzero/v1/payment/provider.proto (package tzero.v1.payment, syntax proto3)
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ProviderService = exports.UpdateLimitResponseSchema = exports.UpdateLimitRequest_LimitSchema = exports.UpdateLimitRequestSchema = exports.UpdatePaymentResponseSchema = exports.
|
|
6
|
+
exports.ProviderService = exports.UpdateLimitResponseSchema = exports.UpdateLimitRequest_LimitSchema = exports.UpdateLimitRequestSchema = exports.UpdatePaymentResponseSchema = exports.UpdatePaymentRequest_ConfirmedSchema = exports.UpdatePaymentRequest_Failed_ReasonSchema = exports.UpdatePaymentRequest_Failed_Reason = exports.UpdatePaymentRequest_FailedSchema = exports.UpdatePaymentRequest_AcceptedSchema = exports.UpdatePaymentRequestSchema = exports.PayoutResponse_Failed_ReasonSchema = exports.PayoutResponse_Failed_Reason = exports.PayoutResponse_FailedSchema = exports.PayoutResponse_AcceptedSchema = exports.PayoutResponseSchema = exports.PayoutRequestSchema = exports.AppendLedgerEntriesResponseSchema = exports.AppendLedgerEntriesRequest_AccountTypeSchema = exports.AppendLedgerEntriesRequest_AccountType = exports.AppendLedgerEntriesRequest_LedgerEntrySchema = exports.AppendLedgerEntriesRequest_Transaction_PayoutReservationReleaseSchema = exports.AppendLedgerEntriesRequest_Transaction_FeeSettlementSchema = exports.AppendLedgerEntriesRequest_Transaction_ProviderSettlementSchema = exports.AppendLedgerEntriesRequest_Transaction_PayoutSchema = exports.AppendLedgerEntriesRequest_Transaction_PayoutReservationSchema = exports.AppendLedgerEntriesRequest_Transaction_PayInSchema = exports.AppendLedgerEntriesRequest_TransactionSchema = exports.AppendLedgerEntriesRequestSchema = exports.file_tzero_v1_payment_provider = void 0;
|
|
7
7
|
const codegenv2_1 = require("@bufbuild/protobuf/codegenv2");
|
|
8
8
|
const payment_method_pb_js_1 = require("../common/payment_method_pb.js");
|
|
9
|
+
const payment_receipt_pb_js_1 = require("../common/payment_receipt_pb.js");
|
|
9
10
|
const common_pb_js_1 = require("../common/common_pb.js");
|
|
10
11
|
const wkt_1 = require("@bufbuild/protobuf/wkt");
|
|
12
|
+
const validate_pb_js_1 = require("../../../buf/validate/validate_pb.js");
|
|
11
13
|
/**
|
|
12
14
|
* Describes the file tzero/v1/payment/provider.proto.
|
|
13
15
|
*/
|
|
14
|
-
exports.file_tzero_v1_payment_provider = (0, codegenv2_1.fileDesc)("
|
|
16
|
+
exports.file_tzero_v1_payment_provider = (0, codegenv2_1.fileDesc)("Ch90emVyby92MS9wYXltZW50L3Byb3ZpZGVyLnByb3RvEhB0emVyby52MS5wYXltZW50IrIOChpBcHBlbmRMZWRnZXJFbnRyaWVzUmVxdWVzdBJYCgx0cmFuc2FjdGlvbnMYFCADKAsyOC50emVyby52MS5wYXltZW50LkFwcGVuZExlZGdlckVudHJpZXNSZXF1ZXN0LlRyYW5zYWN0aW9uQgi6SAWSAQIIARqeCAoL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N0GiAudHplcm8udjEucGF5bWVudC5QYXlvdXRSZXNwb25zZSIDkAICEmUKDVVwZGF0ZVBheW1lbnQSJi50emVyby52MS5wYXltZW50LlVwZGF0ZVBheW1lbnRSZXF1ZXN0GicudHplcm8udjEucGF5bWVudC5VcGRhdGVQYXltZW50UmVzcG9uc2UiA5ACAhJfCgtVcGRhdGVMaW1pdBIkLnR6ZXJvLnYxLnBheW1lbnQuVXBkYXRlTGltaXRSZXF1ZXN0GiUudHplcm8udjEucGF5bWVudC5VcGRhdGVMaW1pdFJlc3BvbnNlIgOQAgISdwoTQXBwZW5kTGVkZ2VyRW50cmllcxIsLnR6ZXJvLnYxLnBheW1lbnQuQXBwZW5kTGVkZ2VyRW50cmllc1JlcXVlc3QaLS50emVyby52MS5wYXltZW50LkFwcGVuZExlZGdlckVudHJpZXNSZXNwb25zZSIDkAICQocBChRjb20udHplcm8udjEucGF5bWVudEINUHJvdmlkZXJQcm90b1ABogIDVFZQqgIQVHplcm8uVjEuUGF5bWVudMoCEFR6ZXJvXFYxXFBheW1lbnTiAhxUemVyb1xWMVxQYXltZW50XEdQQk1ldGFkYXRh6gISVHplcm86OlYxOjpQYXltZW50YgZwcm90bzM", [payment_method_pb_js_1.file_tzero_v1_common_payment_method, payment_receipt_pb_js_1.file_tzero_v1_common_payment_receipt, common_pb_js_1.file_tzero_v1_common_common, wkt_1.file_google_protobuf_timestamp, validate_pb_js_1.file_buf_validate_validate]);
|
|
15
17
|
/**
|
|
16
18
|
* Describes the message tzero.v1.payment.AppendLedgerEntriesRequest.
|
|
17
19
|
* Use `create(AppendLedgerEntriesRequestSchema)` to create a new message.
|
|
@@ -69,63 +71,67 @@ var AppendLedgerEntriesRequest_AccountType;
|
|
|
69
71
|
/**
|
|
70
72
|
* Reflects the user's payable balance, the amount that the provider owes to the user.
|
|
71
73
|
*
|
|
72
|
-
* @generated from enum value: ACCOUNT_TYPE_USER_PAYABLE =
|
|
74
|
+
* @generated from enum value: ACCOUNT_TYPE_USER_PAYABLE = 10;
|
|
73
75
|
*/
|
|
74
|
-
AppendLedgerEntriesRequest_AccountType[AppendLedgerEntriesRequest_AccountType["USER_PAYABLE"] =
|
|
76
|
+
AppendLedgerEntriesRequest_AccountType[AppendLedgerEntriesRequest_AccountType["USER_PAYABLE"] = 10] = "USER_PAYABLE";
|
|
75
77
|
/**
|
|
76
78
|
* Reflects the cash balance of the provider.
|
|
77
79
|
*
|
|
78
|
-
* @generated from enum value: ACCOUNT_TYPE_CASH =
|
|
80
|
+
* @generated from enum value: ACCOUNT_TYPE_CASH = 20;
|
|
79
81
|
*/
|
|
80
|
-
AppendLedgerEntriesRequest_AccountType[AppendLedgerEntriesRequest_AccountType["CASH"] =
|
|
82
|
+
AppendLedgerEntriesRequest_AccountType[AppendLedgerEntriesRequest_AccountType["CASH"] = 20] = "CASH";
|
|
81
83
|
/**
|
|
82
84
|
* This is the reserve account of the provider, which reflects the reserve of balance to reduce the limit available from one provider to another.
|
|
83
85
|
*
|
|
84
|
-
* @generated from enum value: ACCOUNT_TYPE_RESERVE =
|
|
86
|
+
* @generated from enum value: ACCOUNT_TYPE_RESERVE = 30;
|
|
85
87
|
*/
|
|
86
|
-
AppendLedgerEntriesRequest_AccountType[AppendLedgerEntriesRequest_AccountType["RESERVE"] =
|
|
88
|
+
AppendLedgerEntriesRequest_AccountType[AppendLedgerEntriesRequest_AccountType["RESERVE"] = 30] = "RESERVE";
|
|
87
89
|
/**
|
|
88
90
|
* This is the mirror account for the reserve. To keep the double entry accounting principle.
|
|
89
91
|
*
|
|
90
|
-
* @generated from enum value: ACCOUNT_TYPE_RESERVE_USAGE =
|
|
92
|
+
* @generated from enum value: ACCOUNT_TYPE_RESERVE_USAGE = 40;
|
|
91
93
|
*/
|
|
92
|
-
AppendLedgerEntriesRequest_AccountType[AppendLedgerEntriesRequest_AccountType["RESERVE_USAGE"] =
|
|
94
|
+
AppendLedgerEntriesRequest_AccountType[AppendLedgerEntriesRequest_AccountType["RESERVE_USAGE"] = 40] = "RESERVE_USAGE";
|
|
93
95
|
/**
|
|
94
96
|
* Reflects how much the provider owes to the network or other participants.
|
|
95
97
|
*
|
|
96
|
-
* @generated from enum value: ACCOUNT_TYPE_PROVIDER_PAYABLE =
|
|
98
|
+
* @generated from enum value: ACCOUNT_TYPE_PROVIDER_PAYABLE = 50;
|
|
97
99
|
*/
|
|
98
|
-
AppendLedgerEntriesRequest_AccountType[AppendLedgerEntriesRequest_AccountType["PROVIDER_PAYABLE"] =
|
|
100
|
+
AppendLedgerEntriesRequest_AccountType[AppendLedgerEntriesRequest_AccountType["PROVIDER_PAYABLE"] = 50] = "PROVIDER_PAYABLE";
|
|
99
101
|
/**
|
|
100
102
|
* Reflects how much the provider is owed by the network or other participants.
|
|
101
103
|
*
|
|
102
|
-
* @generated from enum value: ACCOUNT_TYPE_PROVIDER_RECEIVABLE =
|
|
104
|
+
* @generated from enum value: ACCOUNT_TYPE_PROVIDER_RECEIVABLE = 60;
|
|
103
105
|
*/
|
|
104
|
-
AppendLedgerEntriesRequest_AccountType[AppendLedgerEntriesRequest_AccountType["PROVIDER_RECEIVABLE"] =
|
|
106
|
+
AppendLedgerEntriesRequest_AccountType[AppendLedgerEntriesRequest_AccountType["PROVIDER_RECEIVABLE"] = 60] = "PROVIDER_RECEIVABLE";
|
|
107
|
+
/**
|
|
108
|
+
* Reflects the settlement balance of the provider with the network or other participants.
|
|
109
|
+
*
|
|
110
|
+
* @generated from enum value: ACCOUNT_TYPE_PROVIDER_SETTLEMENT = 70;
|
|
111
|
+
*/
|
|
112
|
+
AppendLedgerEntriesRequest_AccountType[AppendLedgerEntriesRequest_AccountType["PROVIDER_SETTLEMENT"] = 70] = "PROVIDER_SETTLEMENT";
|
|
105
113
|
/**
|
|
106
114
|
* Reflects the fees that the provider owes to the network.
|
|
107
115
|
*
|
|
108
|
-
* @generated from enum value: ACCOUNT_TYPE_FEE_PAYABLE =
|
|
116
|
+
* @generated from enum value: ACCOUNT_TYPE_FEE_PAYABLE = 80;
|
|
109
117
|
*/
|
|
110
|
-
AppendLedgerEntriesRequest_AccountType[AppendLedgerEntriesRequest_AccountType["FEE_PAYABLE"] =
|
|
118
|
+
AppendLedgerEntriesRequest_AccountType[AppendLedgerEntriesRequest_AccountType["FEE_PAYABLE"] = 80] = "FEE_PAYABLE";
|
|
111
119
|
/**
|
|
112
120
|
* Reflects the fees that the network is owed by the provider.
|
|
113
121
|
*
|
|
114
|
-
* @generated from enum value: ACCOUNT_TYPE_FEE_RECEIVABLE =
|
|
122
|
+
* @generated from enum value: ACCOUNT_TYPE_FEE_RECEIVABLE = 90;
|
|
115
123
|
*/
|
|
116
|
-
AppendLedgerEntriesRequest_AccountType[AppendLedgerEntriesRequest_AccountType["FEE_RECEIVABLE"] =
|
|
124
|
+
AppendLedgerEntriesRequest_AccountType[AppendLedgerEntriesRequest_AccountType["FEE_RECEIVABLE"] = 90] = "FEE_RECEIVABLE";
|
|
117
125
|
/**
|
|
118
126
|
* Reflects the fees that the provider has to pay for the services provided by the network.
|
|
119
127
|
*
|
|
120
|
-
* @generated from enum value: ACCOUNT_TYPE_FEE_EXPENSE =
|
|
128
|
+
* @generated from enum value: ACCOUNT_TYPE_FEE_EXPENSE = 100;
|
|
121
129
|
*/
|
|
122
|
-
AppendLedgerEntriesRequest_AccountType[AppendLedgerEntriesRequest_AccountType["FEE_EXPENSE"] =
|
|
130
|
+
AppendLedgerEntriesRequest_AccountType[AppendLedgerEntriesRequest_AccountType["FEE_EXPENSE"] = 100] = "FEE_EXPENSE";
|
|
123
131
|
/**
|
|
124
|
-
*
|
|
125
|
-
*
|
|
126
|
-
* @generated from enum value: ACCOUNT_TYPE_PROVIDER_SETTLEMENT = 10;
|
|
132
|
+
* @generated from enum value: ACCOUNT_TYPE_FEE_SETTLEMENT = 110;
|
|
127
133
|
*/
|
|
128
|
-
AppendLedgerEntriesRequest_AccountType[AppendLedgerEntriesRequest_AccountType["
|
|
134
|
+
AppendLedgerEntriesRequest_AccountType[AppendLedgerEntriesRequest_AccountType["FEE_SETTLEMENT"] = 110] = "FEE_SETTLEMENT";
|
|
129
135
|
})(AppendLedgerEntriesRequest_AccountType || (exports.AppendLedgerEntriesRequest_AccountType = AppendLedgerEntriesRequest_AccountType = {}));
|
|
130
136
|
/**
|
|
131
137
|
* Describes the enum tzero.v1.payment.AppendLedgerEntriesRequest.AccountType.
|
|
@@ -146,35 +152,64 @@ exports.PayoutRequestSchema = (0, codegenv2_1.messageDesc)(exports.file_tzero_v1
|
|
|
146
152
|
* Use `create(PayoutResponseSchema)` to create a new message.
|
|
147
153
|
*/
|
|
148
154
|
exports.PayoutResponseSchema = (0, codegenv2_1.messageDesc)(exports.file_tzero_v1_payment_provider, 3);
|
|
155
|
+
/**
|
|
156
|
+
* Describes the message tzero.v1.payment.PayoutResponse.Accepted.
|
|
157
|
+
* Use `create(PayoutResponse_AcceptedSchema)` to create a new message.
|
|
158
|
+
*/
|
|
159
|
+
exports.PayoutResponse_AcceptedSchema = (0, codegenv2_1.messageDesc)(exports.file_tzero_v1_payment_provider, 3, 0);
|
|
160
|
+
/**
|
|
161
|
+
* Describes the message tzero.v1.payment.PayoutResponse.Failed.
|
|
162
|
+
* Use `create(PayoutResponse_FailedSchema)` to create a new message.
|
|
163
|
+
*/
|
|
164
|
+
exports.PayoutResponse_FailedSchema = (0, codegenv2_1.messageDesc)(exports.file_tzero_v1_payment_provider, 3, 1);
|
|
165
|
+
/**
|
|
166
|
+
* @generated from enum tzero.v1.payment.PayoutResponse.Failed.Reason
|
|
167
|
+
*/
|
|
168
|
+
var PayoutResponse_Failed_Reason;
|
|
169
|
+
(function (PayoutResponse_Failed_Reason) {
|
|
170
|
+
/**
|
|
171
|
+
* @generated from enum value: REASON_UNSPECIFIED = 0;
|
|
172
|
+
*/
|
|
173
|
+
PayoutResponse_Failed_Reason[PayoutResponse_Failed_Reason["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
174
|
+
})(PayoutResponse_Failed_Reason || (exports.PayoutResponse_Failed_Reason = PayoutResponse_Failed_Reason = {}));
|
|
175
|
+
/**
|
|
176
|
+
* Describes the enum tzero.v1.payment.PayoutResponse.Failed.Reason.
|
|
177
|
+
*/
|
|
178
|
+
exports.PayoutResponse_Failed_ReasonSchema = (0, codegenv2_1.enumDesc)(exports.file_tzero_v1_payment_provider, 3, 1, 0);
|
|
149
179
|
/**
|
|
150
180
|
* Describes the message tzero.v1.payment.UpdatePaymentRequest.
|
|
151
181
|
* Use `create(UpdatePaymentRequestSchema)` to create a new message.
|
|
152
182
|
*/
|
|
153
183
|
exports.UpdatePaymentRequestSchema = (0, codegenv2_1.messageDesc)(exports.file_tzero_v1_payment_provider, 4);
|
|
154
184
|
/**
|
|
155
|
-
* Describes the message tzero.v1.payment.UpdatePaymentRequest.
|
|
156
|
-
* Use `create(
|
|
185
|
+
* Describes the message tzero.v1.payment.UpdatePaymentRequest.Accepted.
|
|
186
|
+
* Use `create(UpdatePaymentRequest_AcceptedSchema)` to create a new message.
|
|
157
187
|
*/
|
|
158
|
-
exports.
|
|
188
|
+
exports.UpdatePaymentRequest_AcceptedSchema = (0, codegenv2_1.messageDesc)(exports.file_tzero_v1_payment_provider, 4, 0);
|
|
159
189
|
/**
|
|
160
|
-
* Describes the message tzero.v1.payment.UpdatePaymentRequest.
|
|
161
|
-
* Use `create(
|
|
190
|
+
* Describes the message tzero.v1.payment.UpdatePaymentRequest.Failed.
|
|
191
|
+
* Use `create(UpdatePaymentRequest_FailedSchema)` to create a new message.
|
|
162
192
|
*/
|
|
163
|
-
exports.
|
|
193
|
+
exports.UpdatePaymentRequest_FailedSchema = (0, codegenv2_1.messageDesc)(exports.file_tzero_v1_payment_provider, 4, 1);
|
|
164
194
|
/**
|
|
165
|
-
* @generated from enum tzero.v1.payment.UpdatePaymentRequest.
|
|
195
|
+
* @generated from enum tzero.v1.payment.UpdatePaymentRequest.Failed.Reason
|
|
166
196
|
*/
|
|
167
|
-
var
|
|
168
|
-
(function (
|
|
197
|
+
var UpdatePaymentRequest_Failed_Reason;
|
|
198
|
+
(function (UpdatePaymentRequest_Failed_Reason) {
|
|
169
199
|
/**
|
|
170
200
|
* @generated from enum value: REASON_UNSPECIFIED = 0;
|
|
171
201
|
*/
|
|
172
|
-
|
|
173
|
-
})(
|
|
202
|
+
UpdatePaymentRequest_Failed_Reason[UpdatePaymentRequest_Failed_Reason["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
203
|
+
})(UpdatePaymentRequest_Failed_Reason || (exports.UpdatePaymentRequest_Failed_Reason = UpdatePaymentRequest_Failed_Reason = {}));
|
|
204
|
+
/**
|
|
205
|
+
* Describes the enum tzero.v1.payment.UpdatePaymentRequest.Failed.Reason.
|
|
206
|
+
*/
|
|
207
|
+
exports.UpdatePaymentRequest_Failed_ReasonSchema = (0, codegenv2_1.enumDesc)(exports.file_tzero_v1_payment_provider, 4, 1, 0);
|
|
174
208
|
/**
|
|
175
|
-
* Describes the
|
|
209
|
+
* Describes the message tzero.v1.payment.UpdatePaymentRequest.Confirmed.
|
|
210
|
+
* Use `create(UpdatePaymentRequest_ConfirmedSchema)` to create a new message.
|
|
176
211
|
*/
|
|
177
|
-
exports.
|
|
212
|
+
exports.UpdatePaymentRequest_ConfirmedSchema = (0, codegenv2_1.messageDesc)(exports.file_tzero_v1_payment_provider, 4, 2);
|
|
178
213
|
/**
|
|
179
214
|
* Describes the message tzero.v1.payment.UpdatePaymentResponse.
|
|
180
215
|
* 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.
|
|
@@ -7,10 +7,11 @@ exports.ProviderService = exports.NetworkService = exports.ConfirmSettlementResp
|
|
|
7
7
|
const codegenv2_1 = require("@bufbuild/protobuf/codegenv2");
|
|
8
8
|
const common_pb_js_1 = require("../../common/common_pb.js");
|
|
9
9
|
const payment_method_pb_js_1 = require("../../common/payment_method_pb.js");
|
|
10
|
+
const validate_pb_js_1 = require("../../../../buf/validate/validate_pb.js");
|
|
10
11
|
/**
|
|
11
12
|
* Describes the file tzero/v1/payment_intent/provider/provider.proto.
|
|
12
13
|
*/
|
|
13
|
-
exports.file_tzero_v1_payment_intent_provider_provider = (0, codegenv2_1.fileDesc)("
|
|
14
|
+
exports.file_tzero_v1_payment_intent_provider_provider = (0, codegenv2_1.fileDesc)("Ci90emVyby92MS9wYXltZW50X2ludGVudC9wcm92aWRlci9wcm92aWRlci5wcm90bxIgdHplcm8udjEucGF5bWVudF9pbnRlbnQucHJvdmlkZXIimgEKGkNyZWF0ZVBheW1lbnRJbnRlbnRSZXF1ZXN0EiIKEXBheW1lbnRfaW50ZW50X2lkGAogASgEQge6SAQyAiAAEiYKCGN1cnJlbmN5GBQgASgJQhS6SBFyDzIKXltBLVpdezN9JJgBAxIwCgZhbW91bnQYHiABKAsyGC50emVyby52MS5jb21tb24uRGVjaW1hbEIGukgDyAEBIpQCChtDcmVhdGVQYXltZW50SW50ZW50UmVzcG9uc2USbgoPcGF5bWVudF9tZXRob2RzGBQgAygLMksudHplcm8udjEucGF5bWVudF9pbnRlbnQucHJvdmlkZXIuQ3JlYXRlUGF5bWVudEludGVudFJlc3BvbnNlLlBheW1lbnRNZXRob2RCCLpIBZIBAggBGoQBCg1QYXltZW50TWV0aG9kEi0KC3BheW1lbnRfdXJsGAogASgJQhi6SBVyExABGIAQMgxeaHR0cHM/Oi8vLisSRAoOcGF5bWVudF9tZXRob2QYFCABKA4yIi50emVyby52MS5jb21tb24uUGF5bWVudE1ldGhvZFR5cGVCCLpIBYIBAiAAIoEBChVDb25maXJtUGF5bWVudFJlcXVlc3QSIgoRcGF5bWVudF9pbnRlbnRfaWQYCiABKARCB7pIBDICIAASRAoOcGF5bWVudF9tZXRob2QYFCABKA4yIi50emVyby52MS5jb21tb24uUGF5bWVudE1ldGhvZFR5cGVCCLpIBYIBAiAAItcCChZDb25maXJtUGF5bWVudFJlc3BvbnNlEjMKEXNldHRsZW1lbnRfYW1vdW50GAogASgLMhgudHplcm8udjEuY29tbW9uLkRlY2ltYWwSGgoScGF5b3V0X3Byb3ZpZGVyX2lkGBQgASgNEmgKFHNldHRsZW1lbnRfYWRkcmVzc2VzGB4gAygLMkoudHplcm8udjEucGF5bWVudF9pbnRlbnQucHJvdmlkZXIuQ29uZmlybVBheW1lbnRSZXNwb25zZS5TZXR0bGVtZW50QWRkcmVzcxqBAQoRU2V0dGxlbWVudEFkZHJlc3MSKgoFY2hhaW4YCiABKA4yGy50emVyby52MS5jb21tb24uQmxvY2tjaGFpbhIvCgpzdGFibGVjb2luGBQgASgOMhsudHplcm8udjEuY29tbW9uLlN0YWJsZWNvaW4SDwoHYWRkcmVzcxgeIAEoCSJHChpSZWplY3RQYXltZW50SW50ZW50UmVxdWVzdBIZChFwYXltZW50X2ludGVudF9pZBgKIAEoBBIOCgZyZWFzb24YFCABKAkiHQobUmVqZWN0UGF5bWVudEludGVudFJlc3BvbnNlIkUKFENvbmZpcm1QYXlvdXRSZXF1ZXN0EhkKEXBheW1lbnRfaW50ZW50X2lkGAogASgEEhIKCnBheW1lbnRfaWQYFCABKAQiFwoVQ29uZmlybVBheW91dFJlc3BvbnNlIncKGENvbmZpcm1TZXR0bGVtZW50UmVxdWVzdBIvCgpibG9ja2NoYWluGAogASgOMhsudHplcm8udjEuY29tbW9uLkJsb2NrY2hhaW4SDwoHdHhfaGFzaBgUIAEoCRIZChFwYXltZW50X2ludGVudF9pZBgeIAMoBCIbChlDb25maXJtU2V0dGxlbWVudFJlc3BvbnNlMskDCg5OZXR3b3JrU2VydmljZRKIAQoOQ29uZmlybVBheW1lbnQSNy50emVyby52MS5wYXltZW50X2ludGVudC5wcm92aWRlci5Db25maXJtUGF5bWVudFJlcXVlc3QaOC50emVyby52MS5wYXltZW50X2ludGVudC5wcm92aWRlci5Db25maXJtUGF5bWVudFJlc3BvbnNlIgOQAgISlwEKE1JlamVjdFBheW1lbnRJbnRlbnQSPC50emVyby52MS5wYXltZW50X2ludGVudC5wcm92aWRlci5SZWplY3RQYXltZW50SW50ZW50UmVxdWVzdBo9LnR6ZXJvLnYxLnBheW1lbnRfaW50ZW50LnByb3ZpZGVyLlJlamVjdFBheW1lbnRJbnRlbnRSZXNwb25zZSIDkAICEpEBChFDb25maXJtU2V0dGxlbWVudBI6LnR6ZXJvLnYxLnBheW1lbnRfaW50ZW50LnByb3ZpZGVyLkNvbmZpcm1TZXR0bGVtZW50UmVxdWVzdBo7LnR6ZXJvLnYxLnBheW1lbnRfaW50ZW50LnByb3ZpZGVyLkNvbmZpcm1TZXR0bGVtZW50UmVzcG9uc2UiA5ACAjKzAgoPUHJvdmlkZXJTZXJ2aWNlEpcBChNDcmVhdGVQYXltZW50SW50ZW50EjwudHplcm8udjEucGF5bWVudF9pbnRlbnQucHJvdmlkZXIuQ3JlYXRlUGF5bWVudEludGVudFJlcXVlc3QaPS50emVyby52MS5wYXltZW50X2ludGVudC5wcm92aWRlci5DcmVhdGVQYXltZW50SW50ZW50UmVzcG9uc2UiA5ACAhKFAQoNQ29uZmlybVBheW91dBI2LnR6ZXJvLnYxLnBheW1lbnRfaW50ZW50LnByb3ZpZGVyLkNvbmZpcm1QYXlvdXRSZXF1ZXN0GjcudHplcm8udjEucGF5bWVudF9pbnRlbnQucHJvdmlkZXIuQ29uZmlybVBheW91dFJlc3BvbnNlIgOQAgJC1QEKJGNvbS50emVyby52MS5wYXltZW50X2ludGVudC5wcm92aWRlckINUHJvdmlkZXJQcm90b1ABogIEVFZQUKoCH1R6ZXJvLlYxLlBheW1lbnRJbnRlbnQuUHJvdmlkZXLKAh9UemVyb1xWMVxQYXltZW50SW50ZW50XFByb3ZpZGVy4gIrVHplcm9cVjFcUGF5bWVudEludGVudFxQcm92aWRlclxHUEJNZXRhZGF0YeoCIlR6ZXJvOjpWMTo6UGF5bWVudEludGVudDo6UHJvdmlkZXJiBnByb3RvMw", [common_pb_js_1.file_tzero_v1_common_common, payment_method_pb_js_1.file_tzero_v1_common_payment_method, validate_pb_js_1.file_buf_validate_validate]);
|
|
14
15
|
/**
|
|
15
16
|
* Describes the message tzero.v1.payment_intent.provider.CreatePaymentIntentRequest.
|
|
16
17
|
* Use `create(CreatePaymentIntentRequestSchema)` to create a new message.
|