@t-0/provider-sdk 1.0.48 → 1.0.49
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 +87 -95
- package/lib/cjs/common/gen/tzero/v1/payment/network_pb.js +12 -17
- 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 +87 -95
- package/lib/esm/common/gen/tzero/v1/payment/network_pb.js +11 -16
- 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
|
*/
|
|
@@ -425,6 +379,17 @@ export type CreatePaymentResponse = Message<"tzero.v1.payment.CreatePaymentRespo
|
|
|
425
379
|
*/
|
|
426
380
|
value: CreatePaymentResponse_Success;
|
|
427
381
|
case: "success";
|
|
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
|
* *
|
|
@@ -455,20 +420,52 @@ export type CreatePaymentResponse_Success = Message<"tzero.v1.payment.CreatePaym
|
|
|
455
420
|
* @generated from field: uint64 payment_id = 10;
|
|
456
421
|
*/
|
|
457
422
|
paymentId: bigint;
|
|
458
|
-
/**
|
|
459
|
-
* @generated from field: tzero.v1.common.Decimal pay_in_amount = 20;
|
|
460
|
-
*/
|
|
461
|
-
payInAmount?: Decimal;
|
|
462
423
|
/**
|
|
463
424
|
* @generated from field: tzero.v1.common.Decimal settlement_amount = 30;
|
|
464
425
|
*/
|
|
465
426
|
settlementAmount?: Decimal;
|
|
427
|
+
/**
|
|
428
|
+
* @generated from field: tzero.v1.common.Decimal payout_amount = 40;
|
|
429
|
+
*/
|
|
430
|
+
payoutAmount?: Decimal;
|
|
431
|
+
/**
|
|
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;
|
|
466
437
|
};
|
|
467
438
|
/**
|
|
468
439
|
* Describes the message tzero.v1.payment.CreatePaymentResponse.Success.
|
|
469
440
|
* Use `create(CreatePaymentResponse_SuccessSchema)` to create a new message.
|
|
470
441
|
*/
|
|
471
442
|
export declare const CreatePaymentResponse_SuccessSchema: GenMessage<CreatePaymentResponse_Success>;
|
|
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;
|
|
455
|
+
*/
|
|
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;
|
|
463
|
+
};
|
|
464
|
+
/**
|
|
465
|
+
* Describes the message tzero.v1.payment.CreatePaymentResponse.SettlementRequired.
|
|
466
|
+
* Use `create(CreatePaymentResponse_SettlementRequiredSchema)` to create a new message.
|
|
467
|
+
*/
|
|
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.
|
|
@@ -11,7 +11,7 @@ import { file_buf_validate_validate } from "../../../buf/validate/validate_pb.js
|
|
|
11
11
|
/**
|
|
12
12
|
* Describes the file tzero/v1/payment/network.proto.
|
|
13
13
|
*/
|
|
14
|
-
export const file_tzero_v1_payment_network = /*@__PURE__*/ fileDesc("Ch50emVyby92MS9wYXltZW50L25ldHdvcmsucHJvdG8SEHR6ZXJvLnYxLnBheW1lbnQiigUKElVwZGF0ZVF1b3RlUmVxdWVzdBI7CgdwYXlfb3V0GAogAygLMioudHplcm8udjEucGF5bWVudC5VcGRhdGVRdW90ZVJlcXVlc3QuUXVvdGUSOgoGcGF5X2luGBQgAygLMioudHplcm8udjEucGF5bWVudC5VcGRhdGVRdW90ZVJlcXVlc3QuUXVvdGUa+
|
|
14
|
+
export const file_tzero_v1_payment_network = /*@__PURE__*/ fileDesc("Ch50emVyby92MS9wYXltZW50L25ldHdvcmsucHJvdG8SEHR6ZXJvLnYxLnBheW1lbnQiigUKElVwZGF0ZVF1b3RlUmVxdWVzdBI7CgdwYXlfb3V0GAogAygLMioudHplcm8udjEucGF5bWVudC5VcGRhdGVRdW90ZVJlcXVlc3QuUXVvdGUSOgoGcGF5X2luGBQgAygLMioudHplcm8udjEucGF5bWVudC5VcGRhdGVRdW90ZVJlcXVlc3QuUXVvdGUa+gMKBVF1b3RlEiYKCGN1cnJlbmN5GAogASgJQhS6SBFyDzIKXltBLVpdezN9JJgBAxI3CgpxdW90ZV90eXBlGBQgASgOMhsudHplcm8udjEucGF5bWVudC5RdW90ZVR5cGVCBrpIA8gBARJCCg5wYXltZW50X21ldGhvZBgZIAEoDjIiLnR6ZXJvLnYxLmNvbW1vbi5QYXltZW50TWV0aG9kVHlwZUIGukgDyAEBEkgKBWJhbmRzGB4gAygLMi8udHplcm8udjEucGF5bWV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heW1lbnQuQ29tcGxldGVNYW51YWxBbWxDaGVja1Jlc3BvbnNlIgOQAgJChgEKFGNvbS50emVyby52MS5wYXltZW50QgxOZXR3b3JrUHJvdG9QAaICA1RWUKoCEFR6ZXJvLlYxLlBheW1lbnTKAhBUemVyb1xWMVxQYXltZW504gIcVHplcm9cVjFcUGF5bWVudFxHUEJNZXRhZGF0YeoCElR6ZXJvOjpWMTo6UGF5bWVudGIGcHJvdG8z", [file_tzero_v1_common_common, file_tzero_v1_common_payment_method, file_tzero_v1_common_payment_receipt, file_ivms101_v1_ivms_ivms101, file_google_protobuf_timestamp, file_buf_validate_validate]);
|
|
15
15
|
/**
|
|
16
16
|
* Describes the message tzero.v1.payment.UpdateQuoteRequest.
|
|
17
17
|
* Use `create(UpdateQuoteRequestSchema)` to create a new message.
|
|
@@ -62,7 +62,7 @@ export var GetQuoteResponse_Failure_Reason;
|
|
|
62
62
|
*/
|
|
63
63
|
GetQuoteResponse_Failure_Reason[GetQuoteResponse_Failure_Reason["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
64
64
|
/**
|
|
65
|
-
* No matching quote par for the specified
|
|
65
|
+
* No matching quote par for the specified payout currency found or provider limits would exceed by processing this payment
|
|
66
66
|
*
|
|
67
67
|
* @generated from enum value: REASON_QUOTE_NOT_FOUND = 10;
|
|
68
68
|
*/
|
|
@@ -77,21 +77,11 @@ export const GetQuoteResponse_Failure_ReasonSchema = /*@__PURE__*/ enumDesc(file
|
|
|
77
77
|
* Use `create(CreatePaymentRequestSchema)` to create a new message.
|
|
78
78
|
*/
|
|
79
79
|
export const CreatePaymentRequestSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_payment_network, 4);
|
|
80
|
-
/**
|
|
81
|
-
* Describes the message tzero.v1.payment.CreatePaymentRequest.PayIn.
|
|
82
|
-
* Use `create(CreatePaymentRequest_PayInSchema)` to create a new message.
|
|
83
|
-
*/
|
|
84
|
-
export const CreatePaymentRequest_PayInSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_payment_network, 4, 0);
|
|
85
|
-
/**
|
|
86
|
-
* Describes the message tzero.v1.payment.CreatePaymentRequest.PayOut.
|
|
87
|
-
* Use `create(CreatePaymentRequest_PayOutSchema)` to create a new message.
|
|
88
|
-
*/
|
|
89
|
-
export const CreatePaymentRequest_PayOutSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_payment_network, 4, 1);
|
|
90
80
|
/**
|
|
91
81
|
* Describes the message tzero.v1.payment.CreatePaymentRequest.TravelRuleData.
|
|
92
82
|
* Use `create(CreatePaymentRequest_TravelRuleDataSchema)` to create a new message.
|
|
93
83
|
*/
|
|
94
|
-
export const CreatePaymentRequest_TravelRuleDataSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_payment_network, 4,
|
|
84
|
+
export const CreatePaymentRequest_TravelRuleDataSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_payment_network, 4, 0);
|
|
95
85
|
/**
|
|
96
86
|
* Describes the message tzero.v1.payment.QuoteId.
|
|
97
87
|
* Use `create(QuoteIdSchema)` to create a new message.
|
|
@@ -107,11 +97,16 @@ export const CreatePaymentResponseSchema = /*@__PURE__*/ messageDesc(file_tzero_
|
|
|
107
97
|
* Use `create(CreatePaymentResponse_SuccessSchema)` to create a new message.
|
|
108
98
|
*/
|
|
109
99
|
export const CreatePaymentResponse_SuccessSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_payment_network, 6, 0);
|
|
100
|
+
/**
|
|
101
|
+
* Describes the message tzero.v1.payment.CreatePaymentResponse.SettlementRequired.
|
|
102
|
+
* Use `create(CreatePaymentResponse_SettlementRequiredSchema)` to create a new message.
|
|
103
|
+
*/
|
|
104
|
+
export const CreatePaymentResponse_SettlementRequiredSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_payment_network, 6, 1);
|
|
110
105
|
/**
|
|
111
106
|
* Describes the message tzero.v1.payment.CreatePaymentResponse.Failure.
|
|
112
107
|
* Use `create(CreatePaymentResponse_FailureSchema)` to create a new message.
|
|
113
108
|
*/
|
|
114
|
-
export const CreatePaymentResponse_FailureSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_payment_network, 6,
|
|
109
|
+
export const CreatePaymentResponse_FailureSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_payment_network, 6, 2);
|
|
115
110
|
/**
|
|
116
111
|
* @generated from enum tzero.v1.payment.CreatePaymentResponse.Failure.Reason
|
|
117
112
|
*/
|
|
@@ -122,7 +117,7 @@ export var CreatePaymentResponse_Failure_Reason;
|
|
|
122
117
|
*/
|
|
123
118
|
CreatePaymentResponse_Failure_Reason[CreatePaymentResponse_Failure_Reason["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
124
119
|
/**
|
|
125
|
-
* No matching quote
|
|
120
|
+
* No matching quote for the specified payout currency found or provider limits would exceed by processing this payment
|
|
126
121
|
*
|
|
127
122
|
* @generated from enum value: REASON_QUOTE_NOT_FOUND = 10;
|
|
128
123
|
*/
|
|
@@ -137,7 +132,7 @@ export var CreatePaymentResponse_Failure_Reason;
|
|
|
137
132
|
/**
|
|
138
133
|
* Describes the enum tzero.v1.payment.CreatePaymentResponse.Failure.Reason.
|
|
139
134
|
*/
|
|
140
|
-
export const CreatePaymentResponse_Failure_ReasonSchema = /*@__PURE__*/ enumDesc(file_tzero_v1_payment_network, 6,
|
|
135
|
+
export const CreatePaymentResponse_Failure_ReasonSchema = /*@__PURE__*/ enumDesc(file_tzero_v1_payment_network, 6, 2, 0);
|
|
141
136
|
/**
|
|
142
137
|
* Describes the message tzero.v1.payment.ConfirmPayoutRequest.
|
|
143
138
|
* 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
|
*/
|
|
@@ -8,7 +8,7 @@ import { file_buf_validate_validate } from "../../../../buf/validate/validate_pb
|
|
|
8
8
|
/**
|
|
9
9
|
* Describes the file tzero/v1/payment_intent/provider/provider.proto.
|
|
10
10
|
*/
|
|
11
|
-
export const file_tzero_v1_payment_intent_provider_provider = /*@__PURE__*/ fileDesc("Ci90emVyby92MS9wYXltZW50X2ludGVudC9wcm92aWRlci9wcm92aWRlci5wcm90bxIgdHplcm8udjEucGF5bWVudF9pbnRlbnQucHJvdmlkZXIiuAEKGkNyZWF0ZVBheW1lbnRJbnRlbnRSZXF1ZXN0EiIKEXBheW1lbnRfaW50ZW50X2lkGAogASgEQge6SAQyAiAAEiYKCGN1cnJlbmN5GBQgASgJQhS6SBFyDzIKXltBLVpdezN9JJgBAxIwCgZhbW91bnQYHiABKAsyGC50emVyby52MS5jb21tb24uRGVjaW1hbEIGukgDyAEBEhwKC21lcmNoYW50X2lkGDIgASgNQge6SAQqAiAAIpICChtDcmVhdGVQYXltZW50SW50ZW50UmVzcG9uc2USbgoPcGF5bWVudF9tZXRob2RzGBQgAygLMksudHplcm8udjEucGF5bWVudF9pbnRlbnQucHJvdmlkZXIuQ3JlYXRlUGF5bWVudEludGVudFJlc3BvbnNlLlBheW1lbnRNZXRob2RCCLpIBZIBAggBGoIBCg1QYXltZW50TWV0aG9kEi0KC3BheW1lbnRfdXJsGAogASgJQhi6SBVyExABGIAQMgxeaHR0cHM/
|
|
11
|
+
export const file_tzero_v1_payment_intent_provider_provider = /*@__PURE__*/ fileDesc("Ci90emVyby92MS9wYXltZW50X2ludGVudC9wcm92aWRlci9wcm92aWRlci5wcm90bxIgdHplcm8ud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b3ZpZGVyLkNyZWF0ZVBheW1lbnRJbnRlbnRSZXNwb25zZSIDkAICEoUBCg1Db25maXJtUGF5b3V0EjYudHplcm8udjEucGF5bWVudF9pbnRlbnQucHJvdmlkZXIuQ29uZmlybVBheW91dFJlcXVlc3QaNy50emVyby52MS5wYXltZW50X2ludGVudC5wcm92aWRlci5Db25maXJtUGF5b3V0UmVzcG9uc2UiA5ACAkLVAQokY29tLnR6ZXJvLnYxLnBheW1lbnRfaW50ZW50LnByb3ZpZGVyQg1Qcm92aWRlclByb3RvUAGiAgRUVlBQqgIfVHplcm8uVjEuUGF5bWVudEludGVudC5Qcm92aWRlcsoCH1R6ZXJvXFYxXFBheW1lbnRJbnRlbnRcUHJvdmlkZXLiAitUemVyb1xWMVxQYXltZW50SW50ZW50XFByb3ZpZGVyXEdQQk1ldGFkYXRh6gIiVHplcm86OlYxOjpQYXltZW50SW50ZW50OjpQcm92aWRlcmIGcHJvdG8z", [file_tzero_v1_common_common, file_tzero_v1_common_payment_method, file_buf_validate_validate]);
|
|
12
12
|
/**
|
|
13
13
|
* Describes the message tzero.v1.payment_intent.provider.CreatePaymentIntentRequest.
|
|
14
14
|
* Use `create(CreatePaymentIntentRequestSchema)` to create a new message.
|
|
@@ -34,11 +34,6 @@ export const ConfirmPaymentRequestSchema = /*@__PURE__*/ messageDesc(file_tzero_
|
|
|
34
34
|
* Use `create(ConfirmPaymentResponseSchema)` to create a new message.
|
|
35
35
|
*/
|
|
36
36
|
export const ConfirmPaymentResponseSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_payment_intent_provider_provider, 3);
|
|
37
|
-
/**
|
|
38
|
-
* Describes the message tzero.v1.payment_intent.provider.ConfirmPaymentResponse.SettlementAddress.
|
|
39
|
-
* Use `create(ConfirmPaymentResponse_SettlementAddressSchema)` to create a new message.
|
|
40
|
-
*/
|
|
41
|
-
export const ConfirmPaymentResponse_SettlementAddressSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_payment_intent_provider_provider, 3, 0);
|
|
42
37
|
/**
|
|
43
38
|
* Describes the message tzero.v1.payment_intent.provider.RejectPaymentIntentRequest.
|
|
44
39
|
* 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"> & {
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Example on how to implement network notifications with SDK
|
|
3
3
|
*/
|
|
4
4
|
import { createService, ProviderService } from "../index.js";
|
|
5
|
-
import { ProviderService as PaymentIntentProviderService } from "../payment_intent/provider/index.js";
|
|
6
5
|
import * as http from "http";
|
|
7
6
|
import { nodeAdapter } from "../index.js";
|
|
8
7
|
import { signatureValidation } from "../index.js";
|
|
@@ -29,29 +28,27 @@ const CreateProviderService = () => {
|
|
|
29
28
|
},
|
|
30
29
|
};
|
|
31
30
|
};
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
};
|
|
48
|
-
};
|
|
31
|
+
// const CreatePaymentIntentProviderService = () => {
|
|
32
|
+
// return {
|
|
33
|
+
// async createPaymentIntent(req: CreatePaymentIntentRequest, context: HandlerContext) {
|
|
34
|
+
// console.log(`${req.$typeName}`);
|
|
35
|
+
// // Implement your logic to create a payment intent
|
|
36
|
+
// return {} as CreatePaymentIntentResponse;
|
|
37
|
+
// },
|
|
38
|
+
//
|
|
39
|
+
// async confirmPayout(req: ConfirmPayoutRequest, context: HandlerContext) {
|
|
40
|
+
// console.log(`${req.$typeName}`);
|
|
41
|
+
// // Implement your logic to confirm a payout
|
|
42
|
+
// return {} as ConfirmPayoutResponse;
|
|
43
|
+
// }
|
|
44
|
+
// }
|
|
45
|
+
// };
|
|
49
46
|
async function main() {
|
|
50
47
|
dotenv.config();
|
|
51
48
|
const networkPublicKeyHex = process.env.TZERO_PUBLIC_KEY;
|
|
52
49
|
const server = http.createServer(signatureValidation(nodeAdapter(createService(networkPublicKeyHex, (r) => {
|
|
53
50
|
r.service(ProviderService, CreateProviderService());
|
|
54
|
-
r.service(PaymentIntentProviderService, CreatePaymentIntentProviderService());
|
|
51
|
+
// r.service(PaymentIntentProviderService, CreatePaymentIntentProviderService());
|
|
55
52
|
})))).listen(8080);
|
|
56
53
|
console.log("server is listening at", server.address());
|
|
57
54
|
}
|