@t-0/provider-sdk 1.0.31 → 1.0.32
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/common/common_pb.js +1 -1
- package/lib/cjs/common/gen/tzero/v1/common/payment_method_pb.js +1 -1
- package/lib/cjs/common/gen/tzero/v1/common/payment_receipt_pb.js +1 -1
- package/lib/cjs/common/gen/tzero/v1/payment/network_pb.d.ts +116 -8
- package/lib/cjs/common/gen/tzero/v1/payment/network_pb.js +45 -3
- package/lib/cjs/common/gen/tzero/v1/payment/provider_pb.js +1 -1
- package/lib/cjs/common/gen/tzero/v1/payment_intent/provider/provider_pb.js +1 -1
- package/lib/cjs/common/gen/tzero/v1/payment_intent/recipient/recipient_pb.js +1 -1
- package/lib/cjs/common/gen/tzero/v1/public/public_pb.js +1 -1
- package/lib/esm/common/gen/tzero/v1/common/common_pb.js +1 -1
- package/lib/esm/common/gen/tzero/v1/common/payment_method_pb.js +1 -1
- package/lib/esm/common/gen/tzero/v1/common/payment_receipt_pb.js +1 -1
- package/lib/esm/common/gen/tzero/v1/payment/network_pb.d.ts +116 -8
- package/lib/esm/common/gen/tzero/v1/payment/network_pb.js +44 -2
- package/lib/esm/common/gen/tzero/v1/payment/provider_pb.js +1 -1
- package/lib/esm/common/gen/tzero/v1/payment_intent/provider/provider_pb.js +1 -1
- package/lib/esm/common/gen/tzero/v1/payment_intent/recipient/recipient_pb.js +1 -1
- package/lib/esm/common/gen/tzero/v1/public/public_pb.js +1 -1
- package/lib/tsconfig.cjs.tsbuildinfo +1 -1
- package/lib/tsconfig.esm.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// @generated by protoc-gen-es v2.
|
|
2
|
+
// @generated by protoc-gen-es v2.10.0 with parameter "target=ts,import_extension=js"
|
|
3
3
|
// @generated from file tzero/v1/common/common.proto (package tzero.v1.common, syntax proto3)
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// @generated by protoc-gen-es v2.
|
|
2
|
+
// @generated by protoc-gen-es v2.10.0 with parameter "target=ts,import_extension=js"
|
|
3
3
|
// @generated from file tzero/v1/common/payment_method.proto (package tzero.v1.common, syntax proto3)
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// @generated by protoc-gen-es v2.
|
|
2
|
+
// @generated by protoc-gen-es v2.10.0 with parameter "target=ts,import_extension=js"
|
|
3
3
|
// @generated from file tzero/v1/common/payment_receipt.proto (package tzero.v1.common, syntax proto3)
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -170,27 +170,99 @@ export declare const GetQuoteRequestSchema: GenMessage<GetQuoteRequest>;
|
|
|
170
170
|
*/
|
|
171
171
|
export type GetQuoteResponse = Message<"tzero.v1.payment.GetQuoteResponse"> & {
|
|
172
172
|
/**
|
|
173
|
-
*
|
|
173
|
+
* @generated from oneof tzero.v1.payment.GetQuoteResponse.result
|
|
174
|
+
*/
|
|
175
|
+
result: {
|
|
176
|
+
/**
|
|
177
|
+
* *
|
|
178
|
+
* Success response - the network found a suitable quote for the provided parameters and with available credit or pre-settlement option.
|
|
179
|
+
* The returned quoteId can be used later to call the create payment endpoint.
|
|
180
|
+
*
|
|
181
|
+
* @generated from field: tzero.v1.payment.GetQuoteResponse.Success success = 20;
|
|
182
|
+
*/
|
|
183
|
+
value: GetQuoteResponse_Success;
|
|
184
|
+
case: "success";
|
|
185
|
+
} | {
|
|
186
|
+
/**
|
|
187
|
+
* *
|
|
188
|
+
* Failure response - means the quote was not found for the specified parameters, or provider limits
|
|
189
|
+
* would exceed by processing the payment amount with the specified amount.
|
|
190
|
+
*
|
|
191
|
+
* @generated from field: tzero.v1.payment.GetQuoteResponse.Failure failure = 30;
|
|
192
|
+
*/
|
|
193
|
+
value: GetQuoteResponse_Failure;
|
|
194
|
+
case: "failure";
|
|
195
|
+
} | {
|
|
196
|
+
case: undefined;
|
|
197
|
+
value?: undefined;
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
/**
|
|
201
|
+
* Describes the message tzero.v1.payment.GetQuoteResponse.
|
|
202
|
+
* Use `create(GetQuoteResponseSchema)` to create a new message.
|
|
203
|
+
*/
|
|
204
|
+
export declare const GetQuoteResponseSchema: GenMessage<GetQuoteResponse>;
|
|
205
|
+
/**
|
|
206
|
+
* @generated from message tzero.v1.payment.GetQuoteResponse.Success
|
|
207
|
+
*/
|
|
208
|
+
export type GetQuoteResponse_Success = Message<"tzero.v1.payment.GetQuoteResponse.Success"> & {
|
|
209
|
+
/**
|
|
210
|
+
* exchange rate as pay_out_currency_rate/pay_in_currency_rate, e.g. BRL/EUR
|
|
174
211
|
*
|
|
175
212
|
* @generated from field: tzero.v1.common.Decimal rate = 10;
|
|
176
213
|
*/
|
|
177
214
|
rate?: Decimal;
|
|
178
215
|
/**
|
|
179
|
-
* expiration time of the quote
|
|
216
|
+
* expiration time of the payout quote
|
|
180
217
|
*
|
|
181
218
|
* @generated from field: google.protobuf.Timestamp expiration = 20;
|
|
182
219
|
*/
|
|
183
220
|
expiration?: Timestamp;
|
|
184
221
|
/**
|
|
222
|
+
* id of the payout quote
|
|
223
|
+
*
|
|
185
224
|
* @generated from field: tzero.v1.payment.QuoteId quote_id = 30;
|
|
186
225
|
*/
|
|
187
226
|
quoteId?: QuoteId;
|
|
188
227
|
};
|
|
189
228
|
/**
|
|
190
|
-
* Describes the message tzero.v1.payment.GetQuoteResponse.
|
|
191
|
-
* Use `create(
|
|
229
|
+
* Describes the message tzero.v1.payment.GetQuoteResponse.Success.
|
|
230
|
+
* Use `create(GetQuoteResponse_SuccessSchema)` to create a new message.
|
|
192
231
|
*/
|
|
193
|
-
export declare const
|
|
232
|
+
export declare const GetQuoteResponse_SuccessSchema: GenMessage<GetQuoteResponse_Success>;
|
|
233
|
+
/**
|
|
234
|
+
* @generated from message tzero.v1.payment.GetQuoteResponse.Failure
|
|
235
|
+
*/
|
|
236
|
+
export type GetQuoteResponse_Failure = Message<"tzero.v1.payment.GetQuoteResponse.Failure"> & {
|
|
237
|
+
/**
|
|
238
|
+
* @generated from field: tzero.v1.payment.GetQuoteResponse.Failure.Reason reason = 10;
|
|
239
|
+
*/
|
|
240
|
+
reason: GetQuoteResponse_Failure_Reason;
|
|
241
|
+
};
|
|
242
|
+
/**
|
|
243
|
+
* Describes the message tzero.v1.payment.GetQuoteResponse.Failure.
|
|
244
|
+
* Use `create(GetQuoteResponse_FailureSchema)` to create a new message.
|
|
245
|
+
*/
|
|
246
|
+
export declare const GetQuoteResponse_FailureSchema: GenMessage<GetQuoteResponse_Failure>;
|
|
247
|
+
/**
|
|
248
|
+
* @generated from enum tzero.v1.payment.GetQuoteResponse.Failure.Reason
|
|
249
|
+
*/
|
|
250
|
+
export declare enum GetQuoteResponse_Failure_Reason {
|
|
251
|
+
/**
|
|
252
|
+
* @generated from enum value: REASON_UNSPECIFIED = 0;
|
|
253
|
+
*/
|
|
254
|
+
UNSPECIFIED = 0,
|
|
255
|
+
/**
|
|
256
|
+
* No matching quote par for the specified pay-in and payout currencies found or provider limits would exceed by processing this payment
|
|
257
|
+
*
|
|
258
|
+
* @generated from enum value: REASON_QUOTE_NOT_FOUND = 10;
|
|
259
|
+
*/
|
|
260
|
+
QUOTE_NOT_FOUND = 10
|
|
261
|
+
}
|
|
262
|
+
/**
|
|
263
|
+
* Describes the enum tzero.v1.payment.GetQuoteResponse.Failure.Reason.
|
|
264
|
+
*/
|
|
265
|
+
export declare const GetQuoteResponse_Failure_ReasonSchema: GenEnum<GetQuoteResponse_Failure_Reason>;
|
|
194
266
|
/**
|
|
195
267
|
* @generated from message tzero.v1.payment.CreatePaymentRequest
|
|
196
268
|
*/
|
|
@@ -202,18 +274,26 @@ export type CreatePaymentRequest = Message<"tzero.v1.payment.CreatePaymentReques
|
|
|
202
274
|
*/
|
|
203
275
|
paymentClientId: string;
|
|
204
276
|
/**
|
|
277
|
+
* payment amount
|
|
278
|
+
*
|
|
205
279
|
* @generated from field: tzero.v1.payment.PaymentAmount amount = 30;
|
|
206
280
|
*/
|
|
207
281
|
amount?: PaymentAmount;
|
|
208
282
|
/**
|
|
283
|
+
* pay-in details
|
|
284
|
+
*
|
|
209
285
|
* @generated from field: tzero.v1.payment.CreatePaymentRequest.PayIn pay_in = 40;
|
|
210
286
|
*/
|
|
211
287
|
payIn?: CreatePaymentRequest_PayIn;
|
|
212
288
|
/**
|
|
289
|
+
* payout details
|
|
290
|
+
*
|
|
213
291
|
* @generated from field: tzero.v1.payment.CreatePaymentRequest.PayOut pay_out = 45;
|
|
214
292
|
*/
|
|
215
293
|
payOut?: CreatePaymentRequest_PayOut;
|
|
216
294
|
/**
|
|
295
|
+
* travel rule data
|
|
296
|
+
*
|
|
217
297
|
* @generated from field: optional tzero.v1.payment.CreatePaymentRequest.TravelRuleData travel_rule_data = 100;
|
|
218
298
|
*/
|
|
219
299
|
travelRuleData?: CreatePaymentRequest_TravelRuleData;
|
|
@@ -230,10 +310,14 @@ export declare const CreatePaymentRequestSchema: GenMessage<CreatePaymentRequest
|
|
|
230
310
|
*/
|
|
231
311
|
export type CreatePaymentRequest_PayIn = Message<"tzero.v1.payment.CreatePaymentRequest.PayIn"> & {
|
|
232
312
|
/**
|
|
313
|
+
* pay-in currency
|
|
314
|
+
*
|
|
233
315
|
* @generated from field: string currency = 10;
|
|
234
316
|
*/
|
|
235
317
|
currency: string;
|
|
236
318
|
/**
|
|
319
|
+
* pay-in payment method
|
|
320
|
+
*
|
|
237
321
|
* @generated from field: tzero.v1.common.PaymentMethodType payment_method = 20;
|
|
238
322
|
*/
|
|
239
323
|
paymentMethod: PaymentMethodType;
|
|
@@ -248,10 +332,14 @@ export declare const CreatePaymentRequest_PayInSchema: GenMessage<CreatePaymentR
|
|
|
248
332
|
*/
|
|
249
333
|
export type CreatePaymentRequest_PayOut = Message<"tzero.v1.payment.CreatePaymentRequest.PayOut"> & {
|
|
250
334
|
/**
|
|
335
|
+
* pay-out currency
|
|
336
|
+
*
|
|
251
337
|
* @generated from field: string currency = 10;
|
|
252
338
|
*/
|
|
253
339
|
currency: string;
|
|
254
340
|
/**
|
|
341
|
+
* pay-in payment details
|
|
342
|
+
*
|
|
255
343
|
* @generated from field: tzero.v1.common.PaymentMethod payment_method = 20;
|
|
256
344
|
*/
|
|
257
345
|
paymentMethod?: PaymentMethod;
|
|
@@ -272,12 +360,14 @@ export declare const CreatePaymentRequest_PayOutSchema: GenMessage<CreatePayment
|
|
|
272
360
|
*/
|
|
273
361
|
export type CreatePaymentRequest_TravelRuleData = Message<"tzero.v1.payment.CreatePaymentRequest.TravelRuleData"> & {
|
|
274
362
|
/**
|
|
363
|
+
* *
|
|
275
364
|
* the natural or legal person that requests payment with originating provider
|
|
276
365
|
*
|
|
277
366
|
* @generated from field: repeated ivms101.Person originator = 10;
|
|
278
367
|
*/
|
|
279
368
|
originator: Person[];
|
|
280
369
|
/**
|
|
370
|
+
* *
|
|
281
371
|
* the natural or legal person or legal arrangement who is identified
|
|
282
372
|
* by the originator as the receiver of the requested payment.
|
|
283
373
|
*
|
|
@@ -360,7 +450,7 @@ export declare const CreatePaymentResponseSchema: GenMessage<CreatePaymentRespon
|
|
|
360
450
|
*/
|
|
361
451
|
export type CreatePaymentResponse_Success = Message<"tzero.v1.payment.CreatePaymentResponse.Success"> & {
|
|
362
452
|
/**
|
|
363
|
-
* payment
|
|
453
|
+
* payment ID assigned by the network
|
|
364
454
|
*
|
|
365
455
|
* @generated from field: uint64 payment_id = 10;
|
|
366
456
|
*/
|
|
@@ -382,7 +472,12 @@ export declare const CreatePaymentResponse_SuccessSchema: GenMessage<CreatePayme
|
|
|
382
472
|
/**
|
|
383
473
|
* @generated from message tzero.v1.payment.CreatePaymentResponse.Failure
|
|
384
474
|
*/
|
|
385
|
-
export type CreatePaymentResponse_Failure = Message<"tzero.v1.payment.CreatePaymentResponse.Failure"> & {
|
|
475
|
+
export type CreatePaymentResponse_Failure = Message<"tzero.v1.payment.CreatePaymentResponse.Failure"> & {
|
|
476
|
+
/**
|
|
477
|
+
* @generated from field: tzero.v1.payment.CreatePaymentResponse.Failure.Reason reason = 10;
|
|
478
|
+
*/
|
|
479
|
+
reason: CreatePaymentResponse_Failure_Reason;
|
|
480
|
+
};
|
|
386
481
|
/**
|
|
387
482
|
* Describes the message tzero.v1.payment.CreatePaymentResponse.Failure.
|
|
388
483
|
* Use `create(CreatePaymentResponse_FailureSchema)` to create a new message.
|
|
@@ -395,7 +490,19 @@ export declare enum CreatePaymentResponse_Failure_Reason {
|
|
|
395
490
|
/**
|
|
396
491
|
* @generated from enum value: REASON_UNSPECIFIED = 0;
|
|
397
492
|
*/
|
|
398
|
-
UNSPECIFIED = 0
|
|
493
|
+
UNSPECIFIED = 0,
|
|
494
|
+
/**
|
|
495
|
+
* No matching quote par for the specified pay-in and payout currencies found or provider limits would exceed by processing this payment
|
|
496
|
+
*
|
|
497
|
+
* @generated from enum value: REASON_QUOTE_NOT_FOUND = 10;
|
|
498
|
+
*/
|
|
499
|
+
QUOTE_NOT_FOUND = 10,
|
|
500
|
+
/**
|
|
501
|
+
* Payments with amount in pay out currency require available credit or pre-deposit
|
|
502
|
+
*
|
|
503
|
+
* @generated from enum value: REASON_CREDIT_OR_PREDEPOSIT_REQUIRED = 20;
|
|
504
|
+
*/
|
|
505
|
+
CREDIT_OR_PREDEPOSIT_REQUIRED = 20
|
|
399
506
|
}
|
|
400
507
|
/**
|
|
401
508
|
* Describes the enum tzero.v1.payment.CreatePaymentResponse.Failure.Reason.
|
|
@@ -519,6 +626,7 @@ export declare const NetworkService: GenService<{
|
|
|
519
626
|
* *
|
|
520
627
|
* Request the best available quote for a payout in a specific currency, for a given amount.
|
|
521
628
|
* If the payout quote exists, but the credit limit is exceeded, this quote will not be considered.
|
|
629
|
+
* Before calling this endpoint UpdateQuote should be periodically triggered in order to put pay-in quotes into the network.
|
|
522
630
|
*
|
|
523
631
|
* @generated from rpc tzero.v1.payment.NetworkService.GetQuote
|
|
524
632
|
*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// @generated by protoc-gen-es v2.
|
|
2
|
+
// @generated by protoc-gen-es v2.10.0 with parameter "target=ts,import_extension=js"
|
|
3
3
|
// @generated from file tzero/v1/payment/network.proto (package tzero.v1.payment, syntax proto3)
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.NetworkService = exports.QuoteTypeSchema = exports.QuoteType = exports.PaymentAmountSchema = exports.ConfirmPayoutResponseSchema = exports.ConfirmPayoutRequestSchema = exports.CreatePaymentResponse_Failure_ReasonSchema = exports.CreatePaymentResponse_Failure_Reason = exports.CreatePaymentResponse_FailureSchema = exports.CreatePaymentResponse_SuccessSchema = exports.CreatePaymentResponseSchema = exports.QuoteIdSchema = exports.CreatePaymentRequest_TravelRuleDataSchema = exports.CreatePaymentRequest_PayOutSchema = exports.CreatePaymentRequest_PayInSchema = exports.CreatePaymentRequestSchema = exports.GetQuoteResponseSchema = exports.GetQuoteRequestSchema = exports.UpdateQuoteResponseSchema = exports.UpdateQuoteRequest_Quote_BandSchema = exports.UpdateQuoteRequest_QuoteSchema = exports.UpdateQuoteRequestSchema = exports.file_tzero_v1_payment_network = void 0;
|
|
6
|
+
exports.NetworkService = exports.QuoteTypeSchema = exports.QuoteType = exports.PaymentAmountSchema = exports.ConfirmPayoutResponseSchema = exports.ConfirmPayoutRequestSchema = exports.CreatePaymentResponse_Failure_ReasonSchema = exports.CreatePaymentResponse_Failure_Reason = exports.CreatePaymentResponse_FailureSchema = exports.CreatePaymentResponse_SuccessSchema = exports.CreatePaymentResponseSchema = exports.QuoteIdSchema = exports.CreatePaymentRequest_TravelRuleDataSchema = exports.CreatePaymentRequest_PayOutSchema = exports.CreatePaymentRequest_PayInSchema = 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)("Ch50emVyby92MS9wYXltZW50L25ldHdvcmsucHJvdG8SEHR6ZXJvLnYxLnBheW1lbnQiigUKElVwZGF0ZVF1b3RlUmVxdWVzdBI7CgdwYXlfb3V0GAogAygLMioudHplcm8udjEucGF5bWVudC5VcGRhdGVRdW90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RlUXVvdGVSZXNwb25zZSIDkAICElYKCEdldFF1b3RlEiEudHplcm8udjEucGF5bWVudC5HZXRRdW90ZVJlcXVlc3QaIi50emVyby52MS5wYXltZW50LkdldFF1b3RlUmVzcG9uc2UiA5ACARJlCg1DcmVhdGVQYXltZW50EiYudHplcm8udjEucGF5bWVudC5DcmVhdGVQYXltZW50UmVxdWVzdBonLnR6ZXJvLnYxLnBheW1lbnQuQ3JlYXRlUGF5bWVudFJlc3BvbnNlIgOQAgISZQoNQ29uZmlybVBheW91dBImLnR6ZXJvLnYxLnBheW1lbnQuQ29uZmlybVBheW91dFJlcXVlc3QaJy50emVyby52MS5wYXltZW50LkNvbmZpcm1QYXlvdXRSZXNwb25zZSIDkAICQoYBChRjb20udHplcm8udjEucGF5bWVudEIMTmV0d29ya1Byb3RvUAGiAgNUVlCqAhBUemVyby5WMS5QYXltZW50ygIQVHplcm9cVjFcUGF5bWVudOICHFR6ZXJvXFYxXFBheW1lbnRcR1BCTWV0YWRhdGHqAhJUemVybzo6VjE6OlBheW1lbnRiBnByb3RvMw", [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.
|
|
@@ -45,6 +45,36 @@ exports.GetQuoteRequestSchema = (0, codegenv2_1.messageDesc)(exports.file_tzero_
|
|
|
45
45
|
* Use `create(GetQuoteResponseSchema)` to create a new message.
|
|
46
46
|
*/
|
|
47
47
|
exports.GetQuoteResponseSchema = (0, codegenv2_1.messageDesc)(exports.file_tzero_v1_payment_network, 3);
|
|
48
|
+
/**
|
|
49
|
+
* Describes the message tzero.v1.payment.GetQuoteResponse.Success.
|
|
50
|
+
* Use `create(GetQuoteResponse_SuccessSchema)` to create a new message.
|
|
51
|
+
*/
|
|
52
|
+
exports.GetQuoteResponse_SuccessSchema = (0, codegenv2_1.messageDesc)(exports.file_tzero_v1_payment_network, 3, 0);
|
|
53
|
+
/**
|
|
54
|
+
* Describes the message tzero.v1.payment.GetQuoteResponse.Failure.
|
|
55
|
+
* Use `create(GetQuoteResponse_FailureSchema)` to create a new message.
|
|
56
|
+
*/
|
|
57
|
+
exports.GetQuoteResponse_FailureSchema = (0, codegenv2_1.messageDesc)(exports.file_tzero_v1_payment_network, 3, 1);
|
|
58
|
+
/**
|
|
59
|
+
* @generated from enum tzero.v1.payment.GetQuoteResponse.Failure.Reason
|
|
60
|
+
*/
|
|
61
|
+
var GetQuoteResponse_Failure_Reason;
|
|
62
|
+
(function (GetQuoteResponse_Failure_Reason) {
|
|
63
|
+
/**
|
|
64
|
+
* @generated from enum value: REASON_UNSPECIFIED = 0;
|
|
65
|
+
*/
|
|
66
|
+
GetQuoteResponse_Failure_Reason[GetQuoteResponse_Failure_Reason["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
67
|
+
/**
|
|
68
|
+
* No matching quote par for the specified pay-in and payout currencies found or provider limits would exceed by processing this payment
|
|
69
|
+
*
|
|
70
|
+
* @generated from enum value: REASON_QUOTE_NOT_FOUND = 10;
|
|
71
|
+
*/
|
|
72
|
+
GetQuoteResponse_Failure_Reason[GetQuoteResponse_Failure_Reason["QUOTE_NOT_FOUND"] = 10] = "QUOTE_NOT_FOUND";
|
|
73
|
+
})(GetQuoteResponse_Failure_Reason || (exports.GetQuoteResponse_Failure_Reason = GetQuoteResponse_Failure_Reason = {}));
|
|
74
|
+
/**
|
|
75
|
+
* Describes the enum tzero.v1.payment.GetQuoteResponse.Failure.Reason.
|
|
76
|
+
*/
|
|
77
|
+
exports.GetQuoteResponse_Failure_ReasonSchema = (0, codegenv2_1.enumDesc)(exports.file_tzero_v1_payment_network, 3, 1, 0);
|
|
48
78
|
/**
|
|
49
79
|
* Describes the message tzero.v1.payment.CreatePaymentRequest.
|
|
50
80
|
* Use `create(CreatePaymentRequestSchema)` to create a new message.
|
|
@@ -94,6 +124,18 @@ var CreatePaymentResponse_Failure_Reason;
|
|
|
94
124
|
* @generated from enum value: REASON_UNSPECIFIED = 0;
|
|
95
125
|
*/
|
|
96
126
|
CreatePaymentResponse_Failure_Reason[CreatePaymentResponse_Failure_Reason["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
127
|
+
/**
|
|
128
|
+
* No matching quote par for the specified pay-in and payout currencies found or provider limits would exceed by processing this payment
|
|
129
|
+
*
|
|
130
|
+
* @generated from enum value: REASON_QUOTE_NOT_FOUND = 10;
|
|
131
|
+
*/
|
|
132
|
+
CreatePaymentResponse_Failure_Reason[CreatePaymentResponse_Failure_Reason["QUOTE_NOT_FOUND"] = 10] = "QUOTE_NOT_FOUND";
|
|
133
|
+
/**
|
|
134
|
+
* Payments with amount in pay out currency require available credit or pre-deposit
|
|
135
|
+
*
|
|
136
|
+
* @generated from enum value: REASON_CREDIT_OR_PREDEPOSIT_REQUIRED = 20;
|
|
137
|
+
*/
|
|
138
|
+
CreatePaymentResponse_Failure_Reason[CreatePaymentResponse_Failure_Reason["CREDIT_OR_PREDEPOSIT_REQUIRED"] = 20] = "CREDIT_OR_PREDEPOSIT_REQUIRED";
|
|
97
139
|
})(CreatePaymentResponse_Failure_Reason || (exports.CreatePaymentResponse_Failure_Reason = CreatePaymentResponse_Failure_Reason = {}));
|
|
98
140
|
/**
|
|
99
141
|
* Describes the enum tzero.v1.payment.CreatePaymentResponse.Failure.Reason.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// @generated by protoc-gen-es v2.
|
|
2
|
+
// @generated by protoc-gen-es v2.10.0 with parameter "target=ts,import_extension=js"
|
|
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 });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// @generated by protoc-gen-es v2.
|
|
2
|
+
// @generated by protoc-gen-es v2.10.0 with parameter "target=ts,import_extension=js"
|
|
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 });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// @generated by protoc-gen-es v2.
|
|
2
|
+
// @generated by protoc-gen-es v2.10.0 with parameter "target=ts,import_extension=js"
|
|
3
3
|
// @generated from file tzero/v1/payment_intent/recipient/recipient.proto (package tzero.v1.payment_intent.recipient, syntax proto3)
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// @generated by protoc-gen-es v2.
|
|
2
|
+
// @generated by protoc-gen-es v2.10.0 with parameter "target=ts,import_extension=js"
|
|
3
3
|
// @generated from file tzero/v1/public/public.proto (package tzero.v1.public, syntax proto3)
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protoc-gen-es v2.
|
|
1
|
+
// @generated by protoc-gen-es v2.10.0 with parameter "target=ts,import_extension=js"
|
|
2
2
|
// @generated from file tzero/v1/common/common.proto (package tzero.v1.common, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protoc-gen-es v2.
|
|
1
|
+
// @generated by protoc-gen-es v2.10.0 with parameter "target=ts,import_extension=js"
|
|
2
2
|
// @generated from file tzero/v1/common/payment_method.proto (package tzero.v1.common, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protoc-gen-es v2.
|
|
1
|
+
// @generated by protoc-gen-es v2.10.0 with parameter "target=ts,import_extension=js"
|
|
2
2
|
// @generated from file tzero/v1/common/payment_receipt.proto (package tzero.v1.common, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
|
|
@@ -170,27 +170,99 @@ export declare const GetQuoteRequestSchema: GenMessage<GetQuoteRequest>;
|
|
|
170
170
|
*/
|
|
171
171
|
export type GetQuoteResponse = Message<"tzero.v1.payment.GetQuoteResponse"> & {
|
|
172
172
|
/**
|
|
173
|
-
*
|
|
173
|
+
* @generated from oneof tzero.v1.payment.GetQuoteResponse.result
|
|
174
|
+
*/
|
|
175
|
+
result: {
|
|
176
|
+
/**
|
|
177
|
+
* *
|
|
178
|
+
* Success response - the network found a suitable quote for the provided parameters and with available credit or pre-settlement option.
|
|
179
|
+
* The returned quoteId can be used later to call the create payment endpoint.
|
|
180
|
+
*
|
|
181
|
+
* @generated from field: tzero.v1.payment.GetQuoteResponse.Success success = 20;
|
|
182
|
+
*/
|
|
183
|
+
value: GetQuoteResponse_Success;
|
|
184
|
+
case: "success";
|
|
185
|
+
} | {
|
|
186
|
+
/**
|
|
187
|
+
* *
|
|
188
|
+
* Failure response - means the quote was not found for the specified parameters, or provider limits
|
|
189
|
+
* would exceed by processing the payment amount with the specified amount.
|
|
190
|
+
*
|
|
191
|
+
* @generated from field: tzero.v1.payment.GetQuoteResponse.Failure failure = 30;
|
|
192
|
+
*/
|
|
193
|
+
value: GetQuoteResponse_Failure;
|
|
194
|
+
case: "failure";
|
|
195
|
+
} | {
|
|
196
|
+
case: undefined;
|
|
197
|
+
value?: undefined;
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
/**
|
|
201
|
+
* Describes the message tzero.v1.payment.GetQuoteResponse.
|
|
202
|
+
* Use `create(GetQuoteResponseSchema)` to create a new message.
|
|
203
|
+
*/
|
|
204
|
+
export declare const GetQuoteResponseSchema: GenMessage<GetQuoteResponse>;
|
|
205
|
+
/**
|
|
206
|
+
* @generated from message tzero.v1.payment.GetQuoteResponse.Success
|
|
207
|
+
*/
|
|
208
|
+
export type GetQuoteResponse_Success = Message<"tzero.v1.payment.GetQuoteResponse.Success"> & {
|
|
209
|
+
/**
|
|
210
|
+
* exchange rate as pay_out_currency_rate/pay_in_currency_rate, e.g. BRL/EUR
|
|
174
211
|
*
|
|
175
212
|
* @generated from field: tzero.v1.common.Decimal rate = 10;
|
|
176
213
|
*/
|
|
177
214
|
rate?: Decimal;
|
|
178
215
|
/**
|
|
179
|
-
* expiration time of the quote
|
|
216
|
+
* expiration time of the payout quote
|
|
180
217
|
*
|
|
181
218
|
* @generated from field: google.protobuf.Timestamp expiration = 20;
|
|
182
219
|
*/
|
|
183
220
|
expiration?: Timestamp;
|
|
184
221
|
/**
|
|
222
|
+
* id of the payout quote
|
|
223
|
+
*
|
|
185
224
|
* @generated from field: tzero.v1.payment.QuoteId quote_id = 30;
|
|
186
225
|
*/
|
|
187
226
|
quoteId?: QuoteId;
|
|
188
227
|
};
|
|
189
228
|
/**
|
|
190
|
-
* Describes the message tzero.v1.payment.GetQuoteResponse.
|
|
191
|
-
* Use `create(
|
|
229
|
+
* Describes the message tzero.v1.payment.GetQuoteResponse.Success.
|
|
230
|
+
* Use `create(GetQuoteResponse_SuccessSchema)` to create a new message.
|
|
192
231
|
*/
|
|
193
|
-
export declare const
|
|
232
|
+
export declare const GetQuoteResponse_SuccessSchema: GenMessage<GetQuoteResponse_Success>;
|
|
233
|
+
/**
|
|
234
|
+
* @generated from message tzero.v1.payment.GetQuoteResponse.Failure
|
|
235
|
+
*/
|
|
236
|
+
export type GetQuoteResponse_Failure = Message<"tzero.v1.payment.GetQuoteResponse.Failure"> & {
|
|
237
|
+
/**
|
|
238
|
+
* @generated from field: tzero.v1.payment.GetQuoteResponse.Failure.Reason reason = 10;
|
|
239
|
+
*/
|
|
240
|
+
reason: GetQuoteResponse_Failure_Reason;
|
|
241
|
+
};
|
|
242
|
+
/**
|
|
243
|
+
* Describes the message tzero.v1.payment.GetQuoteResponse.Failure.
|
|
244
|
+
* Use `create(GetQuoteResponse_FailureSchema)` to create a new message.
|
|
245
|
+
*/
|
|
246
|
+
export declare const GetQuoteResponse_FailureSchema: GenMessage<GetQuoteResponse_Failure>;
|
|
247
|
+
/**
|
|
248
|
+
* @generated from enum tzero.v1.payment.GetQuoteResponse.Failure.Reason
|
|
249
|
+
*/
|
|
250
|
+
export declare enum GetQuoteResponse_Failure_Reason {
|
|
251
|
+
/**
|
|
252
|
+
* @generated from enum value: REASON_UNSPECIFIED = 0;
|
|
253
|
+
*/
|
|
254
|
+
UNSPECIFIED = 0,
|
|
255
|
+
/**
|
|
256
|
+
* No matching quote par for the specified pay-in and payout currencies found or provider limits would exceed by processing this payment
|
|
257
|
+
*
|
|
258
|
+
* @generated from enum value: REASON_QUOTE_NOT_FOUND = 10;
|
|
259
|
+
*/
|
|
260
|
+
QUOTE_NOT_FOUND = 10
|
|
261
|
+
}
|
|
262
|
+
/**
|
|
263
|
+
* Describes the enum tzero.v1.payment.GetQuoteResponse.Failure.Reason.
|
|
264
|
+
*/
|
|
265
|
+
export declare const GetQuoteResponse_Failure_ReasonSchema: GenEnum<GetQuoteResponse_Failure_Reason>;
|
|
194
266
|
/**
|
|
195
267
|
* @generated from message tzero.v1.payment.CreatePaymentRequest
|
|
196
268
|
*/
|
|
@@ -202,18 +274,26 @@ export type CreatePaymentRequest = Message<"tzero.v1.payment.CreatePaymentReques
|
|
|
202
274
|
*/
|
|
203
275
|
paymentClientId: string;
|
|
204
276
|
/**
|
|
277
|
+
* payment amount
|
|
278
|
+
*
|
|
205
279
|
* @generated from field: tzero.v1.payment.PaymentAmount amount = 30;
|
|
206
280
|
*/
|
|
207
281
|
amount?: PaymentAmount;
|
|
208
282
|
/**
|
|
283
|
+
* pay-in details
|
|
284
|
+
*
|
|
209
285
|
* @generated from field: tzero.v1.payment.CreatePaymentRequest.PayIn pay_in = 40;
|
|
210
286
|
*/
|
|
211
287
|
payIn?: CreatePaymentRequest_PayIn;
|
|
212
288
|
/**
|
|
289
|
+
* payout details
|
|
290
|
+
*
|
|
213
291
|
* @generated from field: tzero.v1.payment.CreatePaymentRequest.PayOut pay_out = 45;
|
|
214
292
|
*/
|
|
215
293
|
payOut?: CreatePaymentRequest_PayOut;
|
|
216
294
|
/**
|
|
295
|
+
* travel rule data
|
|
296
|
+
*
|
|
217
297
|
* @generated from field: optional tzero.v1.payment.CreatePaymentRequest.TravelRuleData travel_rule_data = 100;
|
|
218
298
|
*/
|
|
219
299
|
travelRuleData?: CreatePaymentRequest_TravelRuleData;
|
|
@@ -230,10 +310,14 @@ export declare const CreatePaymentRequestSchema: GenMessage<CreatePaymentRequest
|
|
|
230
310
|
*/
|
|
231
311
|
export type CreatePaymentRequest_PayIn = Message<"tzero.v1.payment.CreatePaymentRequest.PayIn"> & {
|
|
232
312
|
/**
|
|
313
|
+
* pay-in currency
|
|
314
|
+
*
|
|
233
315
|
* @generated from field: string currency = 10;
|
|
234
316
|
*/
|
|
235
317
|
currency: string;
|
|
236
318
|
/**
|
|
319
|
+
* pay-in payment method
|
|
320
|
+
*
|
|
237
321
|
* @generated from field: tzero.v1.common.PaymentMethodType payment_method = 20;
|
|
238
322
|
*/
|
|
239
323
|
paymentMethod: PaymentMethodType;
|
|
@@ -248,10 +332,14 @@ export declare const CreatePaymentRequest_PayInSchema: GenMessage<CreatePaymentR
|
|
|
248
332
|
*/
|
|
249
333
|
export type CreatePaymentRequest_PayOut = Message<"tzero.v1.payment.CreatePaymentRequest.PayOut"> & {
|
|
250
334
|
/**
|
|
335
|
+
* pay-out currency
|
|
336
|
+
*
|
|
251
337
|
* @generated from field: string currency = 10;
|
|
252
338
|
*/
|
|
253
339
|
currency: string;
|
|
254
340
|
/**
|
|
341
|
+
* pay-in payment details
|
|
342
|
+
*
|
|
255
343
|
* @generated from field: tzero.v1.common.PaymentMethod payment_method = 20;
|
|
256
344
|
*/
|
|
257
345
|
paymentMethod?: PaymentMethod;
|
|
@@ -272,12 +360,14 @@ export declare const CreatePaymentRequest_PayOutSchema: GenMessage<CreatePayment
|
|
|
272
360
|
*/
|
|
273
361
|
export type CreatePaymentRequest_TravelRuleData = Message<"tzero.v1.payment.CreatePaymentRequest.TravelRuleData"> & {
|
|
274
362
|
/**
|
|
363
|
+
* *
|
|
275
364
|
* the natural or legal person that requests payment with originating provider
|
|
276
365
|
*
|
|
277
366
|
* @generated from field: repeated ivms101.Person originator = 10;
|
|
278
367
|
*/
|
|
279
368
|
originator: Person[];
|
|
280
369
|
/**
|
|
370
|
+
* *
|
|
281
371
|
* the natural or legal person or legal arrangement who is identified
|
|
282
372
|
* by the originator as the receiver of the requested payment.
|
|
283
373
|
*
|
|
@@ -360,7 +450,7 @@ export declare const CreatePaymentResponseSchema: GenMessage<CreatePaymentRespon
|
|
|
360
450
|
*/
|
|
361
451
|
export type CreatePaymentResponse_Success = Message<"tzero.v1.payment.CreatePaymentResponse.Success"> & {
|
|
362
452
|
/**
|
|
363
|
-
* payment
|
|
453
|
+
* payment ID assigned by the network
|
|
364
454
|
*
|
|
365
455
|
* @generated from field: uint64 payment_id = 10;
|
|
366
456
|
*/
|
|
@@ -382,7 +472,12 @@ export declare const CreatePaymentResponse_SuccessSchema: GenMessage<CreatePayme
|
|
|
382
472
|
/**
|
|
383
473
|
* @generated from message tzero.v1.payment.CreatePaymentResponse.Failure
|
|
384
474
|
*/
|
|
385
|
-
export type CreatePaymentResponse_Failure = Message<"tzero.v1.payment.CreatePaymentResponse.Failure"> & {
|
|
475
|
+
export type CreatePaymentResponse_Failure = Message<"tzero.v1.payment.CreatePaymentResponse.Failure"> & {
|
|
476
|
+
/**
|
|
477
|
+
* @generated from field: tzero.v1.payment.CreatePaymentResponse.Failure.Reason reason = 10;
|
|
478
|
+
*/
|
|
479
|
+
reason: CreatePaymentResponse_Failure_Reason;
|
|
480
|
+
};
|
|
386
481
|
/**
|
|
387
482
|
* Describes the message tzero.v1.payment.CreatePaymentResponse.Failure.
|
|
388
483
|
* Use `create(CreatePaymentResponse_FailureSchema)` to create a new message.
|
|
@@ -395,7 +490,19 @@ export declare enum CreatePaymentResponse_Failure_Reason {
|
|
|
395
490
|
/**
|
|
396
491
|
* @generated from enum value: REASON_UNSPECIFIED = 0;
|
|
397
492
|
*/
|
|
398
|
-
UNSPECIFIED = 0
|
|
493
|
+
UNSPECIFIED = 0,
|
|
494
|
+
/**
|
|
495
|
+
* No matching quote par for the specified pay-in and payout currencies found or provider limits would exceed by processing this payment
|
|
496
|
+
*
|
|
497
|
+
* @generated from enum value: REASON_QUOTE_NOT_FOUND = 10;
|
|
498
|
+
*/
|
|
499
|
+
QUOTE_NOT_FOUND = 10,
|
|
500
|
+
/**
|
|
501
|
+
* Payments with amount in pay out currency require available credit or pre-deposit
|
|
502
|
+
*
|
|
503
|
+
* @generated from enum value: REASON_CREDIT_OR_PREDEPOSIT_REQUIRED = 20;
|
|
504
|
+
*/
|
|
505
|
+
CREDIT_OR_PREDEPOSIT_REQUIRED = 20
|
|
399
506
|
}
|
|
400
507
|
/**
|
|
401
508
|
* Describes the enum tzero.v1.payment.CreatePaymentResponse.Failure.Reason.
|
|
@@ -519,6 +626,7 @@ export declare const NetworkService: GenService<{
|
|
|
519
626
|
* *
|
|
520
627
|
* Request the best available quote for a payout in a specific currency, for a given amount.
|
|
521
628
|
* If the payout quote exists, but the credit limit is exceeded, this quote will not be considered.
|
|
629
|
+
* Before calling this endpoint UpdateQuote should be periodically triggered in order to put pay-in quotes into the network.
|
|
522
630
|
*
|
|
523
631
|
* @generated from rpc tzero.v1.payment.NetworkService.GetQuote
|
|
524
632
|
*/
|