@t-0/provider-sdk 1.0.48 → 1.0.50
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/tzero/v1/payment/network_pb.d.ts +95 -103
- package/lib/cjs/common/gen/tzero/v1/payment/network_pb.js +15 -20
- package/lib/cjs/common/gen/tzero/v1/payment_intent/provider/provider_pb.d.ts +1 -29
- package/lib/cjs/common/gen/tzero/v1/payment_intent/provider/provider_pb.js +2 -7
- package/lib/cjs/common/gen/tzero/v1/payment_intent/recipient/recipient_pb.d.ts +2 -0
- package/lib/cjs/examples/server.js +18 -21
- package/lib/esm/common/gen/tzero/v1/payment/network_pb.d.ts +95 -103
- package/lib/esm/common/gen/tzero/v1/payment/network_pb.js +14 -19
- package/lib/esm/common/gen/tzero/v1/payment_intent/provider/provider_pb.d.ts +1 -29
- package/lib/esm/common/gen/tzero/v1/payment_intent/provider/provider_pb.js +1 -6
- package/lib/esm/common/gen/tzero/v1/payment_intent/recipient/recipient_pb.d.ts +2 -0
- package/lib/esm/examples/server.js +16 -19
- package/lib/tsconfig.cjs.tsbuildinfo +1 -1
- package/lib/tsconfig.esm.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -124,23 +124,11 @@ export declare const UpdateQuoteResponseSchema: GenMessage<UpdateQuoteResponse>;
|
|
|
124
124
|
*/
|
|
125
125
|
export type GetQuoteRequest = Message<"tzero.v1.payment.GetQuoteRequest"> & {
|
|
126
126
|
/**
|
|
127
|
-
*
|
|
128
|
-
*
|
|
129
|
-
* @generated from field: string pay_in_currency = 10;
|
|
130
|
-
*/
|
|
131
|
-
payInCurrency: string;
|
|
132
|
-
/**
|
|
133
|
-
* amount
|
|
127
|
+
* payment amount - must be either pay-out amount or settlement amount
|
|
134
128
|
*
|
|
135
129
|
* @generated from field: tzero.v1.payment.PaymentAmount amount = 20;
|
|
136
130
|
*/
|
|
137
131
|
amount?: PaymentAmount;
|
|
138
|
-
/**
|
|
139
|
-
* payment method to use for the payout, e.g. bank transfer, card, etc.
|
|
140
|
-
*
|
|
141
|
-
* @generated from field: tzero.v1.common.PaymentMethodType pay_in_method = 30;
|
|
142
|
-
*/
|
|
143
|
-
payInMethod: PaymentMethodType;
|
|
144
132
|
/**
|
|
145
133
|
* ISO 4217 currency code, e.g. EUR, GBP, etc. in which the payout should be made
|
|
146
134
|
*
|
|
@@ -154,7 +142,7 @@ export type GetQuoteRequest = Message<"tzero.v1.payment.GetQuoteRequest"> & {
|
|
|
154
142
|
*/
|
|
155
143
|
payOutMethod: PaymentMethodType;
|
|
156
144
|
/**
|
|
157
|
-
* type of the quote, e.g. real-time
|
|
145
|
+
* type of the quote, e.g. real-time
|
|
158
146
|
*
|
|
159
147
|
* @generated from field: tzero.v1.payment.QuoteType quote_type = 60;
|
|
160
148
|
*/
|
|
@@ -207,7 +195,7 @@ export declare const GetQuoteResponseSchema: GenMessage<GetQuoteResponse>;
|
|
|
207
195
|
*/
|
|
208
196
|
export type GetQuoteResponse_Success = Message<"tzero.v1.payment.GetQuoteResponse.Success"> & {
|
|
209
197
|
/**
|
|
210
|
-
*
|
|
198
|
+
* pay-out quote rate in settlement_currency/pay_out_currency, i.e. USD/pay_out_currency
|
|
211
199
|
*
|
|
212
200
|
* @generated from field: tzero.v1.common.Decimal rate = 10;
|
|
213
201
|
*/
|
|
@@ -224,6 +212,18 @@ export type GetQuoteResponse_Success = Message<"tzero.v1.payment.GetQuoteRespons
|
|
|
224
212
|
* @generated from field: tzero.v1.payment.QuoteId quote_id = 30;
|
|
225
213
|
*/
|
|
226
214
|
quoteId?: QuoteId;
|
|
215
|
+
/**
|
|
216
|
+
* pay-out amount in pay-out currency if the quote from response is used
|
|
217
|
+
*
|
|
218
|
+
* @generated from field: tzero.v1.common.Decimal pay_out_amount = 40;
|
|
219
|
+
*/
|
|
220
|
+
payOutAmount?: Decimal;
|
|
221
|
+
/**
|
|
222
|
+
* settlement amount in settlement currency if the quote from response is used
|
|
223
|
+
*
|
|
224
|
+
* @generated from field: tzero.v1.common.Decimal settlement_amount = 50;
|
|
225
|
+
*/
|
|
226
|
+
settlementAmount?: Decimal;
|
|
227
227
|
};
|
|
228
228
|
/**
|
|
229
229
|
* Describes the message tzero.v1.payment.GetQuoteResponse.Success.
|
|
@@ -253,7 +253,7 @@ export declare enum GetQuoteResponse_Failure_Reason {
|
|
|
253
253
|
*/
|
|
254
254
|
UNSPECIFIED = 0,
|
|
255
255
|
/**
|
|
256
|
-
* No matching quote par for the specified
|
|
256
|
+
* No matching quote par for the specified payout currency found or provider limits would exceed by processing this payment
|
|
257
257
|
*
|
|
258
258
|
* @generated from enum value: REASON_QUOTE_NOT_FOUND = 10;
|
|
259
259
|
*/
|
|
@@ -274,23 +274,29 @@ export type CreatePaymentRequest = Message<"tzero.v1.payment.CreatePaymentReques
|
|
|
274
274
|
*/
|
|
275
275
|
paymentClientId: string;
|
|
276
276
|
/**
|
|
277
|
-
* payment amount
|
|
277
|
+
* payment amount - should be either pay-out amount or settlement amount
|
|
278
278
|
*
|
|
279
279
|
* @generated from field: tzero.v1.payment.PaymentAmount amount = 30;
|
|
280
280
|
*/
|
|
281
281
|
amount?: PaymentAmount;
|
|
282
282
|
/**
|
|
283
|
-
* pay-
|
|
283
|
+
* pay-out currency
|
|
284
|
+
*
|
|
285
|
+
* @generated from field: string currency = 40;
|
|
286
|
+
*/
|
|
287
|
+
currency: string;
|
|
288
|
+
/**
|
|
289
|
+
* pay-out payment details
|
|
284
290
|
*
|
|
285
|
-
* @generated from field: tzero.v1.
|
|
291
|
+
* @generated from field: tzero.v1.common.PaymentDetails payment_details = 50;
|
|
286
292
|
*/
|
|
287
|
-
|
|
293
|
+
paymentDetails?: PaymentDetails;
|
|
288
294
|
/**
|
|
289
|
-
*
|
|
295
|
+
* if specified, must be a valid quoteId that was previously returned by the GetPayoutQuote method otherwise last available quote will be used
|
|
290
296
|
*
|
|
291
|
-
* @generated from field: tzero.v1.payment.
|
|
297
|
+
* @generated from field: optional tzero.v1.payment.QuoteId quote_id = 60;
|
|
292
298
|
*/
|
|
293
|
-
|
|
299
|
+
quoteId?: QuoteId;
|
|
294
300
|
/**
|
|
295
301
|
* travel rule data
|
|
296
302
|
*
|
|
@@ -303,58 +309,6 @@ export type CreatePaymentRequest = Message<"tzero.v1.payment.CreatePaymentReques
|
|
|
303
309
|
* Use `create(CreatePaymentRequestSchema)` to create a new message.
|
|
304
310
|
*/
|
|
305
311
|
export declare const CreatePaymentRequestSchema: GenMessage<CreatePaymentRequest>;
|
|
306
|
-
/**
|
|
307
|
-
* Provider must submit quotes to the network for the specified pay-in currency and payment method
|
|
308
|
-
*
|
|
309
|
-
* @generated from message tzero.v1.payment.CreatePaymentRequest.PayIn
|
|
310
|
-
*/
|
|
311
|
-
export type CreatePaymentRequest_PayIn = Message<"tzero.v1.payment.CreatePaymentRequest.PayIn"> & {
|
|
312
|
-
/**
|
|
313
|
-
* pay-in currency
|
|
314
|
-
*
|
|
315
|
-
* @generated from field: string currency = 10;
|
|
316
|
-
*/
|
|
317
|
-
currency: string;
|
|
318
|
-
/**
|
|
319
|
-
* pay-in payment method
|
|
320
|
-
*
|
|
321
|
-
* @generated from field: tzero.v1.common.PaymentMethodType payment_method = 20;
|
|
322
|
-
*/
|
|
323
|
-
paymentMethod: PaymentMethodType;
|
|
324
|
-
};
|
|
325
|
-
/**
|
|
326
|
-
* Describes the message tzero.v1.payment.CreatePaymentRequest.PayIn.
|
|
327
|
-
* Use `create(CreatePaymentRequest_PayInSchema)` to create a new message.
|
|
328
|
-
*/
|
|
329
|
-
export declare const CreatePaymentRequest_PayInSchema: GenMessage<CreatePaymentRequest_PayIn>;
|
|
330
|
-
/**
|
|
331
|
-
* @generated from message tzero.v1.payment.CreatePaymentRequest.PayOut
|
|
332
|
-
*/
|
|
333
|
-
export type CreatePaymentRequest_PayOut = Message<"tzero.v1.payment.CreatePaymentRequest.PayOut"> & {
|
|
334
|
-
/**
|
|
335
|
-
* pay-out currency
|
|
336
|
-
*
|
|
337
|
-
* @generated from field: string currency = 10;
|
|
338
|
-
*/
|
|
339
|
-
currency: string;
|
|
340
|
-
/**
|
|
341
|
-
* pay-in payment details
|
|
342
|
-
*
|
|
343
|
-
* @generated from field: tzero.v1.common.PaymentDetails payment_details = 20;
|
|
344
|
-
*/
|
|
345
|
-
paymentDetails?: PaymentDetails;
|
|
346
|
-
/**
|
|
347
|
-
* if specified, must be a valid quoteId that was previously returned by the GetPayoutQuote method otherwise last available quote will be used
|
|
348
|
-
*
|
|
349
|
-
* @generated from field: optional tzero.v1.payment.QuoteId quote_id = 100;
|
|
350
|
-
*/
|
|
351
|
-
quoteId?: QuoteId;
|
|
352
|
-
};
|
|
353
|
-
/**
|
|
354
|
-
* Describes the message tzero.v1.payment.CreatePaymentRequest.PayOut.
|
|
355
|
-
* Use `create(CreatePaymentRequest_PayOutSchema)` to create a new message.
|
|
356
|
-
*/
|
|
357
|
-
export declare const CreatePaymentRequest_PayOutSchema: GenMessage<CreatePaymentRequest_PayOut>;
|
|
358
312
|
/**
|
|
359
313
|
* @generated from message tzero.v1.payment.CreatePaymentRequest.TravelRuleData
|
|
360
314
|
*/
|
|
@@ -418,13 +372,24 @@ export type CreatePaymentResponse = Message<"tzero.v1.payment.CreatePaymentRespo
|
|
|
418
372
|
result: {
|
|
419
373
|
/**
|
|
420
374
|
* *
|
|
421
|
-
*
|
|
375
|
+
* Accepted response - means the payment was accepted, but the payout is not yet completed. This means, the network found
|
|
422
376
|
* a suitable quote for the payout currency and amount, and instructed the payout provider to process the payout.
|
|
423
377
|
*
|
|
424
|
-
* @generated from field: tzero.v1.payment.CreatePaymentResponse.
|
|
378
|
+
* @generated from field: tzero.v1.payment.CreatePaymentResponse.Accepted accepted = 20;
|
|
425
379
|
*/
|
|
426
|
-
value:
|
|
427
|
-
case: "
|
|
380
|
+
value: CreatePaymentResponse_Accepted;
|
|
381
|
+
case: "accepted";
|
|
382
|
+
} | {
|
|
383
|
+
/**
|
|
384
|
+
* *
|
|
385
|
+
* Settlement required response - indicates that the payment requires settlement before payout completion.
|
|
386
|
+
*
|
|
387
|
+
*
|
|
388
|
+
*
|
|
389
|
+
* @generated from field: tzero.v1.payment.CreatePaymentResponse.SettlementRequired settlement_required = 35;
|
|
390
|
+
*/
|
|
391
|
+
value: CreatePaymentResponse_SettlementRequired;
|
|
392
|
+
case: "settlementRequired";
|
|
428
393
|
} | {
|
|
429
394
|
/**
|
|
430
395
|
* *
|
|
@@ -446,9 +411,9 @@ export type CreatePaymentResponse = Message<"tzero.v1.payment.CreatePaymentRespo
|
|
|
446
411
|
*/
|
|
447
412
|
export declare const CreatePaymentResponseSchema: GenMessage<CreatePaymentResponse>;
|
|
448
413
|
/**
|
|
449
|
-
* @generated from message tzero.v1.payment.CreatePaymentResponse.
|
|
414
|
+
* @generated from message tzero.v1.payment.CreatePaymentResponse.Accepted
|
|
450
415
|
*/
|
|
451
|
-
export type
|
|
416
|
+
export type CreatePaymentResponse_Accepted = Message<"tzero.v1.payment.CreatePaymentResponse.Accepted"> & {
|
|
452
417
|
/**
|
|
453
418
|
* payment ID assigned by the network
|
|
454
419
|
*
|
|
@@ -456,19 +421,51 @@ export type CreatePaymentResponse_Success = Message<"tzero.v1.payment.CreatePaym
|
|
|
456
421
|
*/
|
|
457
422
|
paymentId: bigint;
|
|
458
423
|
/**
|
|
459
|
-
* @generated from field: tzero.v1.common.Decimal
|
|
424
|
+
* @generated from field: tzero.v1.common.Decimal settlement_amount = 30;
|
|
425
|
+
*/
|
|
426
|
+
settlementAmount?: Decimal;
|
|
427
|
+
/**
|
|
428
|
+
* @generated from field: tzero.v1.common.Decimal payout_amount = 40;
|
|
460
429
|
*/
|
|
461
|
-
|
|
430
|
+
payoutAmount?: Decimal;
|
|
462
431
|
/**
|
|
463
|
-
*
|
|
432
|
+
* payout provider id with the best quote selected for this payment
|
|
433
|
+
*
|
|
434
|
+
* @generated from field: uint32 payout_provider_id = 50;
|
|
435
|
+
*/
|
|
436
|
+
payoutProviderId: number;
|
|
437
|
+
};
|
|
438
|
+
/**
|
|
439
|
+
* Describes the message tzero.v1.payment.CreatePaymentResponse.Accepted.
|
|
440
|
+
* Use `create(CreatePaymentResponse_AcceptedSchema)` to create a new message.
|
|
441
|
+
*/
|
|
442
|
+
export declare const CreatePaymentResponse_AcceptedSchema: GenMessage<CreatePaymentResponse_Accepted>;
|
|
443
|
+
/**
|
|
444
|
+
* @generated from message tzero.v1.payment.CreatePaymentResponse.SettlementRequired
|
|
445
|
+
*/
|
|
446
|
+
export type CreatePaymentResponse_SettlementRequired = Message<"tzero.v1.payment.CreatePaymentResponse.SettlementRequired"> & {
|
|
447
|
+
/**
|
|
448
|
+
* payment ID assigned by the network
|
|
449
|
+
*
|
|
450
|
+
* @generated from field: uint64 payment_id = 10;
|
|
451
|
+
*/
|
|
452
|
+
paymentId: bigint;
|
|
453
|
+
/**
|
|
454
|
+
* @generated from field: tzero.v1.common.Decimal settlement_amount = 20;
|
|
464
455
|
*/
|
|
465
456
|
settlementAmount?: Decimal;
|
|
457
|
+
/**
|
|
458
|
+
* payout provider id with the best quote selected for this payment
|
|
459
|
+
*
|
|
460
|
+
* @generated from field: uint32 payout_provider_id = 30;
|
|
461
|
+
*/
|
|
462
|
+
payoutProviderId: number;
|
|
466
463
|
};
|
|
467
464
|
/**
|
|
468
|
-
* Describes the message tzero.v1.payment.CreatePaymentResponse.
|
|
469
|
-
* Use `create(
|
|
465
|
+
* Describes the message tzero.v1.payment.CreatePaymentResponse.SettlementRequired.
|
|
466
|
+
* Use `create(CreatePaymentResponse_SettlementRequiredSchema)` to create a new message.
|
|
470
467
|
*/
|
|
471
|
-
export declare const
|
|
468
|
+
export declare const CreatePaymentResponse_SettlementRequiredSchema: GenMessage<CreatePaymentResponse_SettlementRequired>;
|
|
472
469
|
/**
|
|
473
470
|
* @generated from message tzero.v1.payment.CreatePaymentResponse.Failure
|
|
474
471
|
*/
|
|
@@ -492,7 +489,7 @@ export declare enum CreatePaymentResponse_Failure_Reason {
|
|
|
492
489
|
*/
|
|
493
490
|
UNSPECIFIED = 0,
|
|
494
491
|
/**
|
|
495
|
-
* No matching quote
|
|
492
|
+
* No matching quote for the specified payout currency found or provider limits would exceed by processing this payment
|
|
496
493
|
*
|
|
497
494
|
* @generated from enum value: REASON_QUOTE_NOT_FOUND = 10;
|
|
498
495
|
*/
|
|
@@ -676,8 +673,8 @@ export type CompleteManualAmlCheckResponse_Rejected = Message<"tzero.v1.payment.
|
|
|
676
673
|
*/
|
|
677
674
|
export declare const CompleteManualAmlCheckResponse_RejectedSchema: GenMessage<CompleteManualAmlCheckResponse_Rejected>;
|
|
678
675
|
/**
|
|
679
|
-
* Payment amount could be specified
|
|
680
|
-
* or as pay-out amount, so that
|
|
676
|
+
* Payment amount could be specified either as settlement amount and then converted to corresponding amount of pay-out amount
|
|
677
|
+
* or as pay-out amount, so that the settlement amount is calculated accordingly
|
|
681
678
|
*
|
|
682
679
|
* @generated from message tzero.v1.payment.PaymentAmount
|
|
683
680
|
*/
|
|
@@ -687,20 +684,20 @@ export type PaymentAmount = Message<"tzero.v1.payment.PaymentAmount"> & {
|
|
|
687
684
|
*/
|
|
688
685
|
amount: {
|
|
689
686
|
/**
|
|
690
|
-
* Amount in the pay-
|
|
687
|
+
* Amount in the pay-out currency
|
|
691
688
|
*
|
|
692
|
-
* @generated from field: tzero.v1.common.Decimal
|
|
689
|
+
* @generated from field: tzero.v1.common.Decimal pay_out_amount = 20;
|
|
693
690
|
*/
|
|
694
691
|
value: Decimal;
|
|
695
|
-
case: "
|
|
692
|
+
case: "payOutAmount";
|
|
696
693
|
} | {
|
|
697
694
|
/**
|
|
698
|
-
*
|
|
695
|
+
* Settlement amount in the settlement currency
|
|
699
696
|
*
|
|
700
|
-
* @generated from field: tzero.v1.common.Decimal
|
|
697
|
+
* @generated from field: tzero.v1.common.Decimal settlement_amount = 30;
|
|
701
698
|
*/
|
|
702
699
|
value: Decimal;
|
|
703
|
-
case: "
|
|
700
|
+
case: "settlementAmount";
|
|
704
701
|
} | {
|
|
705
702
|
case: undefined;
|
|
706
703
|
value?: undefined;
|
|
@@ -755,7 +752,6 @@ export declare const NetworkService: GenService<{
|
|
|
755
752
|
* *
|
|
756
753
|
* Request the best available quote for a payout in a specific currency, for a given amount.
|
|
757
754
|
* If the payout quote exists, but the credit limit is exceeded, this quote will not be considered.
|
|
758
|
-
* Before calling this endpoint UpdateQuote should be periodically triggered in order to put pay-in quotes into the network.
|
|
759
755
|
*
|
|
760
756
|
* @generated from rpc tzero.v1.payment.NetworkService.GetQuote
|
|
761
757
|
*/
|
|
@@ -766,12 +762,8 @@ export declare const NetworkService: GenService<{
|
|
|
766
762
|
};
|
|
767
763
|
/**
|
|
768
764
|
* *
|
|
769
|
-
* Submit a request to create a new payment
|
|
770
|
-
*
|
|
771
|
-
* the amount in USD.
|
|
772
|
-
* If specified, it must be a valid currency code - in this case the network will try to find the payIn quote for the
|
|
773
|
-
* specified currency and considering the band from the provider initiated this request. So this is only possible, if
|
|
774
|
-
* this provider already submitted the payIn quote for the specified currency using UpdateQuote rpc.
|
|
765
|
+
* Submit a request to create a new payment for the specified pay-out currency.
|
|
766
|
+
* QuoteId is the optional parameter.
|
|
775
767
|
* If the quoteID is specified, it must be a valid quoteId that was previously returned by the GetPayoutQuote method.
|
|
776
768
|
* If the quoteId is not specified, the network will try to find a suitable quote for the payout currency and amount,
|
|
777
769
|
* same way as GetPayoutQuote rpc.
|
|
@@ -3,7 +3,7 @@
|
|
|
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 });
|
|
6
|
-
exports.NetworkService = exports.QuoteTypeSchema = exports.QuoteType = exports.PaymentAmountSchema = exports.CompleteManualAmlCheckResponse_RejectedSchema = exports.CompleteManualAmlCheckResponse_ApprovedSchema = exports.CompleteManualAmlCheckResponseSchema = exports.CompleteManualAmlCheckRequest_RejectedSchema = exports.CompleteManualAmlCheckRequest_ApprovedSchema = exports.CompleteManualAmlCheckRequestSchema = exports.ConfirmPayoutResponseSchema = exports.ConfirmPayoutRequestSchema = exports.CreatePaymentResponse_Failure_ReasonSchema = exports.CreatePaymentResponse_Failure_Reason = exports.CreatePaymentResponse_FailureSchema = exports.
|
|
6
|
+
exports.NetworkService = exports.QuoteTypeSchema = exports.QuoteType = exports.PaymentAmountSchema = exports.CompleteManualAmlCheckResponse_RejectedSchema = exports.CompleteManualAmlCheckResponse_ApprovedSchema = exports.CompleteManualAmlCheckResponseSchema = exports.CompleteManualAmlCheckRequest_RejectedSchema = exports.CompleteManualAmlCheckRequest_ApprovedSchema = exports.CompleteManualAmlCheckRequestSchema = exports.ConfirmPayoutResponseSchema = exports.ConfirmPayoutRequestSchema = exports.CreatePaymentResponse_Failure_ReasonSchema = exports.CreatePaymentResponse_Failure_Reason = exports.CreatePaymentResponse_FailureSchema = exports.CreatePaymentResponse_SettlementRequiredSchema = exports.CreatePaymentResponse_AcceptedSchema = exports.CreatePaymentResponseSchema = exports.QuoteIdSchema = exports.CreatePaymentRequest_TravelRuleDataSchema = exports.CreatePaymentRequestSchema = exports.GetQuoteResponse_Failure_ReasonSchema = exports.GetQuoteResponse_Failure_Reason = exports.GetQuoteResponse_FailureSchema = exports.GetQuoteResponse_SuccessSchema = exports.GetQuoteResponseSchema = exports.GetQuoteRequestSchema = exports.UpdateQuoteResponseSchema = exports.UpdateQuoteRequest_Quote_BandSchema = exports.UpdateQuoteRequest_QuoteSchema = exports.UpdateQuoteRequestSchema = exports.file_tzero_v1_payment_network = void 0;
|
|
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");
|
|
@@ -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)("Ch50emVyby92MS9wYXltZW50L25ldHdvcmsucHJvdG8SEHR6ZXJvLnYxLnBheW1lbnQiigUKElVwZGF0ZVF1b3RlUmVxdWVzdBI7CgdwYXlfb3V0GAogAygLMioudHplcm8udjEucGF5bWVudC5VcGRhdGVRdW90ZVJlcXVlc3QuUXVvdGUSOgoGcGF5X2luGBQgAygLMioudHplcm8udjEucGF5bWVudC5VcGRhdGVRdW90ZVJlcXVlc3QuUXVvdGUa+
|
|
17
|
+
exports.file_tzero_v1_payment_network = (0, codegenv2_1.fileDesc)("Ch50emVyby92MS9wYXltZW50L25ldHdvcmsucHJvdG8SEHR6ZXJvLnYxLnBheW1lbnQiigUKElVwZGF0ZVF1b3RlUmVxdWVzdBI7CgdwYXlfb3V0GAogAygLMioudHplcm8udjEucGF5bWVudC5VcGRhdGVRdW90ZVJlcXVlc3QuUXVvdGUSOgoGcGF5X2luGBQgAygLMioudHplcm8udjEucGF5bWVudC5VcGRhdGVRdW90ZVJlcXVlc3QuUXVvdGUa+gMKBVF1b3RlEiYKCGN1cnJlbmN5GAogASgJQhS6SBFyDzIKXltBLVpdezN9JJgBAxI3CgpxdW90ZV90eXBlGBQgASgOMhsudHplcm8udjEucGF5bWVudC5RdW90ZVR5cGVCBrpIA8gBARJCCg5wYXltZW50X21ldGhvZBgZIAEoDjIiLnR6ZXJvLnYxLmNvbW1vbi5QYXltZW50TWV0aG9kVHlwZUIGukgDyAEBEkgKBWJhbmRzGB4gAygLMi8udHplcm8udjEucGF5bWVudC5VcGRhdGVRdW90ZVJlcXVlc3QuUXVvdGUuQmFuZEIIukgFkgECCAESOAoKZXhwaXJhdGlvbhg8IAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBCCLpIBbIBAkABEjUKCXRpbWVzdGFtcBhGIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXB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vOjpWMTo6UGF5bWVudGIGcHJvdG8z", [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,7 +65,7 @@ var GetQuoteResponse_Failure_Reason;
|
|
|
65
65
|
*/
|
|
66
66
|
GetQuoteResponse_Failure_Reason[GetQuoteResponse_Failure_Reason["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
67
67
|
/**
|
|
68
|
-
* No matching quote par for the specified
|
|
68
|
+
* No matching quote par for the specified payout currency found or provider limits would exceed by processing this payment
|
|
69
69
|
*
|
|
70
70
|
* @generated from enum value: REASON_QUOTE_NOT_FOUND = 10;
|
|
71
71
|
*/
|
|
@@ -80,21 +80,11 @@ exports.GetQuoteResponse_Failure_ReasonSchema = (0, codegenv2_1.enumDesc)(export
|
|
|
80
80
|
* Use `create(CreatePaymentRequestSchema)` to create a new message.
|
|
81
81
|
*/
|
|
82
82
|
exports.CreatePaymentRequestSchema = (0, codegenv2_1.messageDesc)(exports.file_tzero_v1_payment_network, 4);
|
|
83
|
-
/**
|
|
84
|
-
* Describes the message tzero.v1.payment.CreatePaymentRequest.PayIn.
|
|
85
|
-
* Use `create(CreatePaymentRequest_PayInSchema)` to create a new message.
|
|
86
|
-
*/
|
|
87
|
-
exports.CreatePaymentRequest_PayInSchema = (0, codegenv2_1.messageDesc)(exports.file_tzero_v1_payment_network, 4, 0);
|
|
88
|
-
/**
|
|
89
|
-
* Describes the message tzero.v1.payment.CreatePaymentRequest.PayOut.
|
|
90
|
-
* Use `create(CreatePaymentRequest_PayOutSchema)` to create a new message.
|
|
91
|
-
*/
|
|
92
|
-
exports.CreatePaymentRequest_PayOutSchema = (0, codegenv2_1.messageDesc)(exports.file_tzero_v1_payment_network, 4, 1);
|
|
93
83
|
/**
|
|
94
84
|
* Describes the message tzero.v1.payment.CreatePaymentRequest.TravelRuleData.
|
|
95
85
|
* Use `create(CreatePaymentRequest_TravelRuleDataSchema)` to create a new message.
|
|
96
86
|
*/
|
|
97
|
-
exports.CreatePaymentRequest_TravelRuleDataSchema = (0, codegenv2_1.messageDesc)(exports.file_tzero_v1_payment_network, 4,
|
|
87
|
+
exports.CreatePaymentRequest_TravelRuleDataSchema = (0, codegenv2_1.messageDesc)(exports.file_tzero_v1_payment_network, 4, 0);
|
|
98
88
|
/**
|
|
99
89
|
* Describes the message tzero.v1.payment.QuoteId.
|
|
100
90
|
* Use `create(QuoteIdSchema)` to create a new message.
|
|
@@ -106,15 +96,20 @@ exports.QuoteIdSchema = (0, codegenv2_1.messageDesc)(exports.file_tzero_v1_payme
|
|
|
106
96
|
*/
|
|
107
97
|
exports.CreatePaymentResponseSchema = (0, codegenv2_1.messageDesc)(exports.file_tzero_v1_payment_network, 6);
|
|
108
98
|
/**
|
|
109
|
-
* Describes the message tzero.v1.payment.CreatePaymentResponse.
|
|
110
|
-
* Use `create(
|
|
99
|
+
* Describes the message tzero.v1.payment.CreatePaymentResponse.Accepted.
|
|
100
|
+
* Use `create(CreatePaymentResponse_AcceptedSchema)` to create a new message.
|
|
101
|
+
*/
|
|
102
|
+
exports.CreatePaymentResponse_AcceptedSchema = (0, codegenv2_1.messageDesc)(exports.file_tzero_v1_payment_network, 6, 0);
|
|
103
|
+
/**
|
|
104
|
+
* Describes the message tzero.v1.payment.CreatePaymentResponse.SettlementRequired.
|
|
105
|
+
* Use `create(CreatePaymentResponse_SettlementRequiredSchema)` to create a new message.
|
|
111
106
|
*/
|
|
112
|
-
exports.
|
|
107
|
+
exports.CreatePaymentResponse_SettlementRequiredSchema = (0, codegenv2_1.messageDesc)(exports.file_tzero_v1_payment_network, 6, 1);
|
|
113
108
|
/**
|
|
114
109
|
* Describes the message tzero.v1.payment.CreatePaymentResponse.Failure.
|
|
115
110
|
* Use `create(CreatePaymentResponse_FailureSchema)` to create a new message.
|
|
116
111
|
*/
|
|
117
|
-
exports.CreatePaymentResponse_FailureSchema = (0, codegenv2_1.messageDesc)(exports.file_tzero_v1_payment_network, 6,
|
|
112
|
+
exports.CreatePaymentResponse_FailureSchema = (0, codegenv2_1.messageDesc)(exports.file_tzero_v1_payment_network, 6, 2);
|
|
118
113
|
/**
|
|
119
114
|
* @generated from enum tzero.v1.payment.CreatePaymentResponse.Failure.Reason
|
|
120
115
|
*/
|
|
@@ -125,7 +120,7 @@ var CreatePaymentResponse_Failure_Reason;
|
|
|
125
120
|
*/
|
|
126
121
|
CreatePaymentResponse_Failure_Reason[CreatePaymentResponse_Failure_Reason["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
127
122
|
/**
|
|
128
|
-
* No matching quote
|
|
123
|
+
* No matching quote for the specified payout currency found or provider limits would exceed by processing this payment
|
|
129
124
|
*
|
|
130
125
|
* @generated from enum value: REASON_QUOTE_NOT_FOUND = 10;
|
|
131
126
|
*/
|
|
@@ -140,7 +135,7 @@ var CreatePaymentResponse_Failure_Reason;
|
|
|
140
135
|
/**
|
|
141
136
|
* Describes the enum tzero.v1.payment.CreatePaymentResponse.Failure.Reason.
|
|
142
137
|
*/
|
|
143
|
-
exports.CreatePaymentResponse_Failure_ReasonSchema = (0, codegenv2_1.enumDesc)(exports.file_tzero_v1_payment_network, 6,
|
|
138
|
+
exports.CreatePaymentResponse_Failure_ReasonSchema = (0, codegenv2_1.enumDesc)(exports.file_tzero_v1_payment_network, 6, 2, 0);
|
|
144
139
|
/**
|
|
145
140
|
* Describes the message tzero.v1.payment.ConfirmPayoutRequest.
|
|
146
141
|
* Use `create(ConfirmPayoutRequestSchema)` to create a new message.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
-
import type { Blockchain, Decimal
|
|
2
|
+
import type { Blockchain, Decimal } from "../../common/common_pb.js";
|
|
3
3
|
import type { PaymentMethodType } from "../../common/payment_method_pb.js";
|
|
4
4
|
import type { Message } from "@bufbuild/protobuf";
|
|
5
5
|
/**
|
|
@@ -104,40 +104,12 @@ export type ConfirmPaymentResponse = Message<"tzero.v1.payment_intent.provider.C
|
|
|
104
104
|
* @generated from field: uint32 payout_provider_id = 20;
|
|
105
105
|
*/
|
|
106
106
|
payoutProviderId: number;
|
|
107
|
-
/**
|
|
108
|
-
* payout provider could support multiple chains for settlement. Any of these could be used for settlement.
|
|
109
|
-
*
|
|
110
|
-
* @generated from field: repeated tzero.v1.payment_intent.provider.ConfirmPaymentResponse.SettlementAddress settlement_addresses = 30;
|
|
111
|
-
*/
|
|
112
|
-
settlementAddresses: ConfirmPaymentResponse_SettlementAddress[];
|
|
113
107
|
};
|
|
114
108
|
/**
|
|
115
109
|
* Describes the message tzero.v1.payment_intent.provider.ConfirmPaymentResponse.
|
|
116
110
|
* Use `create(ConfirmPaymentResponseSchema)` to create a new message.
|
|
117
111
|
*/
|
|
118
112
|
export declare const ConfirmPaymentResponseSchema: GenMessage<ConfirmPaymentResponse>;
|
|
119
|
-
/**
|
|
120
|
-
* @generated from message tzero.v1.payment_intent.provider.ConfirmPaymentResponse.SettlementAddress
|
|
121
|
-
*/
|
|
122
|
-
export type ConfirmPaymentResponse_SettlementAddress = Message<"tzero.v1.payment_intent.provider.ConfirmPaymentResponse.SettlementAddress"> & {
|
|
123
|
-
/**
|
|
124
|
-
* @generated from field: tzero.v1.common.Blockchain chain = 10;
|
|
125
|
-
*/
|
|
126
|
-
chain: Blockchain;
|
|
127
|
-
/**
|
|
128
|
-
* @generated from field: tzero.v1.common.Stablecoin stablecoin = 20;
|
|
129
|
-
*/
|
|
130
|
-
stablecoin: Stablecoin;
|
|
131
|
-
/**
|
|
132
|
-
* @generated from field: string address = 30;
|
|
133
|
-
*/
|
|
134
|
-
address: string;
|
|
135
|
-
};
|
|
136
|
-
/**
|
|
137
|
-
* Describes the message tzero.v1.payment_intent.provider.ConfirmPaymentResponse.SettlementAddress.
|
|
138
|
-
* Use `create(ConfirmPaymentResponse_SettlementAddressSchema)` to create a new message.
|
|
139
|
-
*/
|
|
140
|
-
export declare const ConfirmPaymentResponse_SettlementAddressSchema: GenMessage<ConfirmPaymentResponse_SettlementAddress>;
|
|
141
113
|
/**
|
|
142
114
|
* @generated from message tzero.v1.payment_intent.provider.RejectPaymentIntentRequest
|
|
143
115
|
*/
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// @generated from file tzero/v1/payment_intent/provider/provider.proto (package tzero.v1.payment_intent.provider, syntax proto3)
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ProviderService = exports.NetworkService = exports.ConfirmSettlementResponseSchema = exports.ConfirmSettlementRequestSchema = exports.ConfirmPayoutResponseSchema = exports.ConfirmPayoutRequestSchema = exports.RejectPaymentIntentResponseSchema = exports.RejectPaymentIntentRequestSchema = exports.
|
|
6
|
+
exports.ProviderService = exports.NetworkService = exports.ConfirmSettlementResponseSchema = exports.ConfirmSettlementRequestSchema = exports.ConfirmPayoutResponseSchema = exports.ConfirmPayoutRequestSchema = exports.RejectPaymentIntentResponseSchema = exports.RejectPaymentIntentRequestSchema = exports.ConfirmPaymentResponseSchema = exports.ConfirmPaymentRequestSchema = exports.CreatePaymentIntentResponse_PaymentMethodSchema = exports.CreatePaymentIntentResponseSchema = exports.CreatePaymentIntentRequestSchema = exports.file_tzero_v1_payment_intent_provider_provider = void 0;
|
|
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");
|
|
@@ -11,7 +11,7 @@ const validate_pb_js_1 = require("../../../../buf/validate/validate_pb.js");
|
|
|
11
11
|
/**
|
|
12
12
|
* Describes the file tzero/v1/payment_intent/provider/provider.proto.
|
|
13
13
|
*/
|
|
14
|
-
exports.file_tzero_v1_payment_intent_provider_provider = (0, codegenv2_1.fileDesc)("Ci90emVyby92MS9wYXltZW50X2ludGVudC9wcm92aWRlci9wcm92aWRlci5wcm90bxIgdHplcm8udjEucGF5bWVudF9pbnRlbnQucHJvdmlkZXIiuAEKGkNyZWF0ZVBheW1lbnRJbnRlbnRSZXF1ZXN0EiIKEXBheW1lbnRfaW50ZW50X2lkGAogASgEQge6SAQyAiAAEiYKCGN1cnJlbmN5GBQgASgJQhS6SBFyDzIKXltBLVpdezN9JJgBAxIwCgZhbW91bnQYHiABKAsyGC50emVyby52MS5jb21tb24uRGVjaW1hbEIGukgDyAEBEhwKC21lcmNoYW50X2lkGDIgASgNQge6SAQqAiAAIpICChtDcmVhdGVQYXltZW50SW50ZW50UmVzcG9uc2USbgoPcGF5bWVudF9tZXRob2RzGBQgAygLMksudHplcm8udjEucGF5bWVudF9pbnRlbnQucHJvdmlkZXIuQ3JlYXRlUGF5bWVudEludGVudFJlc3BvbnNlLlBheW1lbnRNZXRob2RCCLpIBZIBAggBGoIBCg1QYXltZW50TWV0aG9kEi0KC3BheW1lbnRfdXJsGAogASgJQhi6SBVyExABGIAQMgxeaHR0cHM/
|
|
14
|
+
exports.file_tzero_v1_payment_intent_provider_provider = (0, codegenv2_1.fileDesc)("Ci90emVyby92MS9wYXltZW50X2ludGVudC9wcm92aWRlci9wcm92aWRlci5wcm90bxIgdHplcm8udjEucGF5bWVudF9pbnRlbnQucHJvdmlkZXIiuAEKGkNyZWF0ZVBheW1lbnRJbnRlbnRSZXF1ZXN0EiIKEXBheW1lbnRfaW50ZW50X2lkGAogASgEQge6SAQyAiAAEiYKCGN1cnJlbmN5GBQgASgJQhS6SBFyDzIKXltBLVpdezN9JJgBAxIwCgZhbW91bnQYHiABKAsyGC50emVyby52MS5jb21tb24uRGVj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kLVAQokY29tLnR6ZXJvLnYxLnBheW1lbnRfaW50ZW50LnByb3ZpZGVyQg1Qcm92aWRlclByb3RvUAGiAgRUVlBQqgIfVHplcm8uVjEuUGF5bWVudEludGVudC5Qcm92aWRlcsoCH1R6ZXJvXFYxXFBheW1lbnRJbnRlbnRcUHJvdmlkZXLiAitUemVyb1xWMVxQYXltZW50SW50ZW50XFByb3ZpZGVyXEdQQk1ldGFkYXRh6gIiVHplcm86OlYxOjpQYXltZW50SW50ZW50OjpQcm92aWRlcmIGcHJvdG8z", [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]);
|
|
15
15
|
/**
|
|
16
16
|
* Describes the message tzero.v1.payment_intent.provider.CreatePaymentIntentRequest.
|
|
17
17
|
* Use `create(CreatePaymentIntentRequestSchema)` to create a new message.
|
|
@@ -37,11 +37,6 @@ exports.ConfirmPaymentRequestSchema = (0, codegenv2_1.messageDesc)(exports.file_
|
|
|
37
37
|
* Use `create(ConfirmPaymentResponseSchema)` to create a new message.
|
|
38
38
|
*/
|
|
39
39
|
exports.ConfirmPaymentResponseSchema = (0, codegenv2_1.messageDesc)(exports.file_tzero_v1_payment_intent_provider_provider, 3);
|
|
40
|
-
/**
|
|
41
|
-
* Describes the message tzero.v1.payment_intent.provider.ConfirmPaymentResponse.SettlementAddress.
|
|
42
|
-
* Use `create(ConfirmPaymentResponse_SettlementAddressSchema)` to create a new message.
|
|
43
|
-
*/
|
|
44
|
-
exports.ConfirmPaymentResponse_SettlementAddressSchema = (0, codegenv2_1.messageDesc)(exports.file_tzero_v1_payment_intent_provider_provider, 3, 0);
|
|
45
40
|
/**
|
|
46
41
|
* Describes the message tzero.v1.payment_intent.provider.RejectPaymentIntentRequest.
|
|
47
42
|
* Use `create(RejectPaymentIntentRequestSchema)` to create a new message.
|
|
@@ -95,6 +95,8 @@ export type CreatePaymentIntentResponse_PaymentMethod = Message<"tzero.v1.paymen
|
|
|
95
95
|
*/
|
|
96
96
|
export declare const CreatePaymentIntentResponse_PaymentMethodSchema: GenMessage<CreatePaymentIntentResponse_PaymentMethod>;
|
|
97
97
|
/**
|
|
98
|
+
* TODO: enrich with more fields
|
|
99
|
+
*
|
|
98
100
|
* @generated from message tzero.v1.payment_intent.recipient.GetQuoteRequest
|
|
99
101
|
*/
|
|
100
102
|
export type GetQuoteRequest = Message<"tzero.v1.payment_intent.recipient.GetQuoteRequest"> & {
|
|
@@ -40,10 +40,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
40
40
|
};
|
|
41
41
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
42
|
const index_js_1 = require("../index.js");
|
|
43
|
-
const index_js_2 = require("../payment_intent/provider/index.js");
|
|
44
43
|
const http = __importStar(require("http"));
|
|
44
|
+
const index_js_2 = require("../index.js");
|
|
45
45
|
const index_js_3 = require("../index.js");
|
|
46
|
-
const index_js_4 = require("../index.js");
|
|
47
46
|
const dotenv_1 = __importDefault(require("dotenv"));
|
|
48
47
|
/*
|
|
49
48
|
Providers must implement this. Please refer to docs or proto definition comments
|
|
@@ -67,29 +66,27 @@ const CreateProviderService = () => {
|
|
|
67
66
|
},
|
|
68
67
|
};
|
|
69
68
|
};
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
};
|
|
86
|
-
};
|
|
69
|
+
// const CreatePaymentIntentProviderService = () => {
|
|
70
|
+
// return {
|
|
71
|
+
// async createPaymentIntent(req: CreatePaymentIntentRequest, context: HandlerContext) {
|
|
72
|
+
// console.log(`${req.$typeName}`);
|
|
73
|
+
// // Implement your logic to create a payment intent
|
|
74
|
+
// return {} as CreatePaymentIntentResponse;
|
|
75
|
+
// },
|
|
76
|
+
//
|
|
77
|
+
// async confirmPayout(req: ConfirmPayoutRequest, context: HandlerContext) {
|
|
78
|
+
// console.log(`${req.$typeName}`);
|
|
79
|
+
// // Implement your logic to confirm a payout
|
|
80
|
+
// return {} as ConfirmPayoutResponse;
|
|
81
|
+
// }
|
|
82
|
+
// }
|
|
83
|
+
// };
|
|
87
84
|
async function main() {
|
|
88
85
|
dotenv_1.default.config();
|
|
89
86
|
const networkPublicKeyHex = process.env.TZERO_PUBLIC_KEY;
|
|
90
|
-
const server = http.createServer((0,
|
|
87
|
+
const server = http.createServer((0, index_js_3.signatureValidation)((0, index_js_2.nodeAdapter)((0, index_js_1.createService)(networkPublicKeyHex, (r) => {
|
|
91
88
|
r.service(index_js_1.ProviderService, CreateProviderService());
|
|
92
|
-
r.service(
|
|
89
|
+
// r.service(PaymentIntentProviderService, CreatePaymentIntentProviderService());
|
|
93
90
|
})))).listen(8080);
|
|
94
91
|
console.log("server is listening at", server.address());
|
|
95
92
|
}
|