@t-0/provider-sdk 1.0.23 → 1.0.24

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.
Files changed (38) hide show
  1. package/README.md +2 -2
  2. package/lib/client/client.d.ts +3 -33
  3. package/lib/client/client.js +4 -5
  4. package/lib/common/gen/tzero/v1/common/common_pb.d.ts +64 -0
  5. package/lib/common/gen/tzero/v1/common/common_pb.js +53 -0
  6. package/lib/common/gen/tzero/v1/common/payment_method_pb.d.ts +122 -0
  7. package/lib/common/gen/tzero/v1/common/payment_method_pb.js +57 -0
  8. package/lib/common/gen/tzero/v1/payment/network_pb.d.ts +567 -0
  9. package/lib/common/gen/tzero/v1/payment/network_pb.js +144 -0
  10. package/lib/common/gen/tzero/v1/payment/provider_pb.d.ts +641 -0
  11. package/lib/common/gen/tzero/v1/payment/provider_pb.js +203 -0
  12. package/lib/common/gen/tzero/v1/payment_intent/provider/provider_pb.d.ts +296 -0
  13. package/lib/common/gen/tzero/v1/payment_intent/provider/provider_pb.js +84 -0
  14. package/lib/common/gen/tzero/v1/payment_intent/recipient/recipient_pb.d.ts +214 -0
  15. package/lib/common/gen/tzero/v1/payment_intent/recipient/recipient_pb.js +59 -0
  16. package/lib/common/gen/tzero/v1/public/public_pb.d.ts +234 -0
  17. package/lib/common/gen/tzero/v1/public/public_pb.js +85 -0
  18. package/lib/gen/common/common_pb.d.ts +39 -1
  19. package/lib/gen/common/common_pb.js +42 -2
  20. package/lib/gen/common/payment_method_pb.d.ts +77 -6
  21. package/lib/gen/common/payment_method_pb.js +41 -2
  22. package/lib/gen/network/network_pb.d.ts +10 -98
  23. package/lib/gen/network/network_pb.js +2 -21
  24. package/lib/gen/network/provider_pb.d.ts +14 -99
  25. package/lib/gen/network/provider_pb.js +1 -21
  26. package/lib/gen/payment_intent/provider/provider_pb.d.ts +296 -0
  27. package/lib/gen/payment_intent/provider/provider_pb.js +84 -0
  28. package/lib/gen/payment_intent/recipient/recipient_pb.d.ts +214 -0
  29. package/lib/gen/payment_intent/recipient/recipient_pb.js +59 -0
  30. package/lib/index.d.ts +6 -4
  31. package/lib/index.js +6 -4
  32. package/lib/payment_intent/provider/index.d.ts +1 -0
  33. package/lib/payment_intent/provider/index.js +1 -0
  34. package/lib/payment_intent/recipient/index.d.ts +1 -0
  35. package/lib/payment_intent/recipient/index.js +1 -0
  36. package/lib/service/service.d.ts +6 -2
  37. package/lib/service/service.js +4 -6
  38. package/package.json +6 -6
@@ -0,0 +1,567 @@
1
+ import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Decimal } from "../common/common_pb";
3
+ import type { PaymentMethodType } from "../common/payment_method_pb";
4
+ import type { Timestamp } from "@bufbuild/protobuf/wkt";
5
+ import type { Message } from "@bufbuild/protobuf";
6
+ /**
7
+ * Describes the file tzero/v1/payment/network.proto.
8
+ */
9
+ export declare const file_tzero_v1_payment_network: GenFile;
10
+ /**
11
+ *
12
+ * Base currency is always USD, so the quotes are always in USD/currency format.
13
+ *
14
+ * @generated from message tzero.v1.payment.UpdateQuoteRequest
15
+ */
16
+ export type UpdateQuoteRequest = Message<"tzero.v1.payment.UpdateQuoteRequest"> & {
17
+ /**
18
+ * *
19
+ * Zero or more quotes for pay-out operations, each quote must have a unique currency, and one or more bands, with the
20
+ * unique client_quote_id for each band.
21
+ *
22
+ * @generated from field: repeated tzero.v1.payment.UpdateQuoteRequest.Quote pay_out = 10;
23
+ */
24
+ payOut: UpdateQuoteRequest_Quote[];
25
+ /**
26
+ * *
27
+ * Zero or more quotes for pay-in operations, each quote must have a unique currency, and one or more bands, with the
28
+ * unique client_quote_id for each band.
29
+ *
30
+ * @generated from field: repeated tzero.v1.payment.UpdateQuoteRequest.Quote pay_in = 20;
31
+ */
32
+ payIn: UpdateQuoteRequest_Quote[];
33
+ };
34
+ /**
35
+ * Describes the message tzero.v1.payment.UpdateQuoteRequest.
36
+ * Use `create(UpdateQuoteRequestSchema)` to create a new message.
37
+ */
38
+ export declare const UpdateQuoteRequestSchema: GenMessage<UpdateQuoteRequest>;
39
+ /**
40
+ * @generated from message tzero.v1.payment.UpdateQuoteRequest.Quote
41
+ */
42
+ export type UpdateQuoteRequest_Quote = Message<"tzero.v1.payment.UpdateQuoteRequest.Quote"> & {
43
+ /**
44
+ * BRL, EUR, GBP, etc. (ISO 4217 currency code)
45
+ *
46
+ * @generated from field: string currency = 10;
47
+ */
48
+ currency: string;
49
+ /**
50
+ * type of the quote, e.g. real-time or guaranteed
51
+ *
52
+ * @generated from field: tzero.v1.payment.QuoteType quote_type = 20;
53
+ */
54
+ quoteType: QuoteType;
55
+ /**
56
+ * @generated from field: tzero.v1.common.PaymentMethodType payment_method = 25;
57
+ */
58
+ paymentMethod: PaymentMethodType;
59
+ /**
60
+ * list of bands for this quote
61
+ *
62
+ * @generated from field: repeated tzero.v1.payment.UpdateQuoteRequest.Quote.Band bands = 30;
63
+ */
64
+ bands: UpdateQuoteRequest_Quote_Band[];
65
+ /**
66
+ * expiration time of the quote
67
+ *
68
+ * @generated from field: google.protobuf.Timestamp expiration = 60;
69
+ */
70
+ expiration?: Timestamp;
71
+ /**
72
+ * timestamp quote was created
73
+ *
74
+ * @generated from field: google.protobuf.Timestamp timestamp = 70;
75
+ */
76
+ timestamp?: Timestamp;
77
+ };
78
+ /**
79
+ * Describes the message tzero.v1.payment.UpdateQuoteRequest.Quote.
80
+ * Use `create(UpdateQuoteRequest_QuoteSchema)` to create a new message.
81
+ */
82
+ export declare const UpdateQuoteRequest_QuoteSchema: GenMessage<UpdateQuoteRequest_Quote>;
83
+ /**
84
+ * @generated from message tzero.v1.payment.UpdateQuoteRequest.Quote.Band
85
+ */
86
+ export type UpdateQuoteRequest_Quote_Band = Message<"tzero.v1.payment.UpdateQuoteRequest.Quote.Band"> & {
87
+ /**
88
+ * unique client generated id for this band
89
+ *
90
+ * @generated from field: string client_quote_id = 10;
91
+ */
92
+ clientQuoteId: string;
93
+ /**
94
+ * max amount of USD this quote is applicable for. Please look into documentation for valid amounts.
95
+ *
96
+ * @generated from field: tzero.v1.common.Decimal max_amount = 40;
97
+ */
98
+ maxAmount?: Decimal;
99
+ /**
100
+ * USD/currency rate
101
+ *
102
+ * @generated from field: tzero.v1.common.Decimal rate = 50;
103
+ */
104
+ rate?: Decimal;
105
+ };
106
+ /**
107
+ * Describes the message tzero.v1.payment.UpdateQuoteRequest.Quote.Band.
108
+ * Use `create(UpdateQuoteRequest_Quote_BandSchema)` to create a new message.
109
+ */
110
+ export declare const UpdateQuoteRequest_Quote_BandSchema: GenMessage<UpdateQuoteRequest_Quote_Band>;
111
+ /**
112
+ * @generated from message tzero.v1.payment.UpdateQuoteResponse
113
+ */
114
+ export type UpdateQuoteResponse = Message<"tzero.v1.payment.UpdateQuoteResponse"> & {};
115
+ /**
116
+ * Describes the message tzero.v1.payment.UpdateQuoteResponse.
117
+ * Use `create(UpdateQuoteResponseSchema)` to create a new message.
118
+ */
119
+ export declare const UpdateQuoteResponseSchema: GenMessage<UpdateQuoteResponse>;
120
+ /**
121
+ * @generated from message tzero.v1.payment.GetPayoutQuoteRequest
122
+ */
123
+ export type GetPayoutQuoteRequest = Message<"tzero.v1.payment.GetPayoutQuoteRequest"> & {
124
+ /**
125
+ * ISO 4217 currency code, e.g. EUR, GBP, etc. in which the payout should be made
126
+ *
127
+ * @generated from field: string payout_currency = 10;
128
+ */
129
+ payoutCurrency: string;
130
+ /**
131
+ * amount in quote currency, only USD is supported
132
+ *
133
+ * @generated from field: tzero.v1.common.Decimal amount = 20;
134
+ */
135
+ amount?: Decimal;
136
+ /**
137
+ * type of the quote, e.g. real-time or guaranteed
138
+ *
139
+ * @generated from field: tzero.v1.payment.QuoteType quote_type = 30;
140
+ */
141
+ quoteType: QuoteType;
142
+ };
143
+ /**
144
+ * Describes the message tzero.v1.payment.GetPayoutQuoteRequest.
145
+ * Use `create(GetPayoutQuoteRequestSchema)` to create a new message.
146
+ */
147
+ export declare const GetPayoutQuoteRequestSchema: GenMessage<GetPayoutQuoteRequest>;
148
+ /**
149
+ * @generated from message tzero.v1.payment.GetPayoutQuoteResponse
150
+ */
151
+ export type GetPayoutQuoteResponse = Message<"tzero.v1.payment.GetPayoutQuoteResponse"> & {
152
+ /**
153
+ * rate in USD/currency, e.g. 1.2345 for 1 USD = 1.2345 EUR
154
+ *
155
+ * @generated from field: tzero.v1.common.Decimal rate = 10;
156
+ */
157
+ rate?: Decimal;
158
+ /**
159
+ * expiration time of the quote
160
+ *
161
+ * @generated from field: google.protobuf.Timestamp expiration = 20;
162
+ */
163
+ expiration?: Timestamp;
164
+ /**
165
+ * @generated from field: tzero.v1.payment.QuoteId quote_id = 30;
166
+ */
167
+ quoteId?: QuoteId;
168
+ };
169
+ /**
170
+ * Describes the message tzero.v1.payment.GetPayoutQuoteResponse.
171
+ * Use `create(GetPayoutQuoteResponseSchema)` to create a new message.
172
+ */
173
+ export declare const GetPayoutQuoteResponseSchema: GenMessage<GetPayoutQuoteResponse>;
174
+ /**
175
+ * @generated from message tzero.v1.payment.CreatePaymentRequest
176
+ */
177
+ export type CreatePaymentRequest = Message<"tzero.v1.payment.CreatePaymentRequest"> & {
178
+ /**
179
+ * unique client generated id for this payment
180
+ *
181
+ * @generated from field: string payment_client_id = 10;
182
+ */
183
+ paymentClientId: string;
184
+ /**
185
+ * ISO 4217 currency code, e.g. EUR, GBP, etc. in which the payout should be made
186
+ *
187
+ * @generated from field: string payout_currency = 20;
188
+ */
189
+ payoutCurrency: string;
190
+ /**
191
+ * amount in the payin currency, by default USD (if the payIn currency is not specified)
192
+ *
193
+ * @generated from field: tzero.v1.common.Decimal amount = 30;
194
+ */
195
+ amount?: Decimal;
196
+ /**
197
+ * if not specified, USD is used
198
+ *
199
+ * @generated from field: optional string payin_currency = 40;
200
+ */
201
+ payinCurrency?: string;
202
+ /**
203
+ * optional or option in the oneof?
204
+ *
205
+ * @generated from field: tzero.v1.payment.CreatePaymentRequest.Sender sender = 50;
206
+ */
207
+ sender?: CreatePaymentRequest_Sender;
208
+ /**
209
+ * optional or option in the oneof?
210
+ *
211
+ * @generated from field: tzero.v1.payment.CreatePaymentRequest.Recipient recipient = 60;
212
+ */
213
+ recipient?: CreatePaymentRequest_Recipient;
214
+ /**
215
+ * optional reference for the payment, up to 140 characters
216
+ *
217
+ * @generated from field: optional string reference = 70;
218
+ */
219
+ reference?: string;
220
+ /**
221
+ * if specified, must be a valid quoteId that was previously returned by the GetPayoutQuote method
222
+ *
223
+ * @generated from field: optional tzero.v1.payment.QuoteId quote_id = 100;
224
+ */
225
+ quoteId?: QuoteId;
226
+ };
227
+ /**
228
+ * Describes the message tzero.v1.payment.CreatePaymentRequest.
229
+ * Use `create(CreatePaymentRequestSchema)` to create a new message.
230
+ */
231
+ export declare const CreatePaymentRequestSchema: GenMessage<CreatePaymentRequest>;
232
+ /**
233
+ * Work in progress
234
+ *
235
+ * @generated from message tzero.v1.payment.CreatePaymentRequest.Sender
236
+ */
237
+ export type CreatePaymentRequest_Sender = Message<"tzero.v1.payment.CreatePaymentRequest.Sender"> & {
238
+ /**
239
+ * @generated from oneof tzero.v1.payment.CreatePaymentRequest.Sender.sender
240
+ */
241
+ sender: {
242
+ /**
243
+ * @generated from field: tzero.v1.payment.CreatePaymentRequest.PrivatePerson private_person = 10;
244
+ */
245
+ value: CreatePaymentRequest_PrivatePerson;
246
+ case: "privatePerson";
247
+ } | {
248
+ case: undefined;
249
+ value?: undefined;
250
+ };
251
+ };
252
+ /**
253
+ * Describes the message tzero.v1.payment.CreatePaymentRequest.Sender.
254
+ * Use `create(CreatePaymentRequest_SenderSchema)` to create a new message.
255
+ */
256
+ export declare const CreatePaymentRequest_SenderSchema: GenMessage<CreatePaymentRequest_Sender>;
257
+ /**
258
+ * Work in progress
259
+ *
260
+ * @generated from message tzero.v1.payment.CreatePaymentRequest.Recipient
261
+ */
262
+ export type CreatePaymentRequest_Recipient = Message<"tzero.v1.payment.CreatePaymentRequest.Recipient"> & {
263
+ /**
264
+ * @generated from oneof tzero.v1.payment.CreatePaymentRequest.Recipient.recipient
265
+ */
266
+ recipient: {
267
+ /**
268
+ * @generated from field: tzero.v1.payment.CreatePaymentRequest.PrivatePerson private_person = 10;
269
+ */
270
+ value: CreatePaymentRequest_PrivatePerson;
271
+ case: "privatePerson";
272
+ } | {
273
+ case: undefined;
274
+ value?: undefined;
275
+ };
276
+ };
277
+ /**
278
+ * Describes the message tzero.v1.payment.CreatePaymentRequest.Recipient.
279
+ * Use `create(CreatePaymentRequest_RecipientSchema)` to create a new message.
280
+ */
281
+ export declare const CreatePaymentRequest_RecipientSchema: GenMessage<CreatePaymentRequest_Recipient>;
282
+ /**
283
+ * Work in progress
284
+ *
285
+ * @generated from message tzero.v1.payment.CreatePaymentRequest.PrivatePerson
286
+ */
287
+ export type CreatePaymentRequest_PrivatePerson = Message<"tzero.v1.payment.CreatePaymentRequest.PrivatePerson"> & {
288
+ /**
289
+ * @generated from field: string private_person_client_id = 10;
290
+ */
291
+ privatePersonClientId: string;
292
+ /**
293
+ * @generated from field: string first_name = 20;
294
+ */
295
+ firstName: string;
296
+ /**
297
+ * @generated from field: string last_name = 30;
298
+ */
299
+ lastName: string;
300
+ };
301
+ /**
302
+ * Describes the message tzero.v1.payment.CreatePaymentRequest.PrivatePerson.
303
+ * Use `create(CreatePaymentRequest_PrivatePersonSchema)` to create a new message.
304
+ */
305
+ export declare const CreatePaymentRequest_PrivatePersonSchema: GenMessage<CreatePaymentRequest_PrivatePerson>;
306
+ /**
307
+ * @generated from message tzero.v1.payment.QuoteId
308
+ */
309
+ export type QuoteId = Message<"tzero.v1.payment.QuoteId"> & {
310
+ /**
311
+ * unique identifier of the quote within the specified provider
312
+ *
313
+ * @generated from field: int64 quote_id = 30;
314
+ */
315
+ quoteId: bigint;
316
+ /**
317
+ * provider id of the quote
318
+ *
319
+ * @generated from field: int32 provider_id = 40;
320
+ */
321
+ providerId: number;
322
+ };
323
+ /**
324
+ * Describes the message tzero.v1.payment.QuoteId.
325
+ * Use `create(QuoteIdSchema)` to create a new message.
326
+ */
327
+ export declare const QuoteIdSchema: GenMessage<QuoteId>;
328
+ /**
329
+ * @generated from message tzero.v1.payment.CreatePaymentResponse
330
+ */
331
+ export type CreatePaymentResponse = Message<"tzero.v1.payment.CreatePaymentResponse"> & {
332
+ /**
333
+ * client generated id supplied in the request
334
+ *
335
+ * @generated from field: string payment_client_id = 10;
336
+ */
337
+ paymentClientId: string;
338
+ /**
339
+ * @generated from oneof tzero.v1.payment.CreatePaymentResponse.result
340
+ */
341
+ result: {
342
+ /**
343
+ * *
344
+ * Success response - means the payment was accepted, but the payout is not yet completed. This means, the network found
345
+ * a suitable quote for the payout currency and amount, and instructed the payout provider to process the payout.
346
+ *
347
+ * @generated from field: tzero.v1.payment.CreatePaymentResponse.Success success = 20;
348
+ */
349
+ value: CreatePaymentResponse_Success;
350
+ case: "success";
351
+ } | {
352
+ /**
353
+ * *
354
+ * Failure response - means the payment was not accepted, e.g. the network could not find a suitable quote for the
355
+ * payout currency and amount, or the credit limit is exceeded for the available quotes.
356
+ *
357
+ * @generated from field: tzero.v1.payment.CreatePaymentResponse.Failure failure = 30;
358
+ */
359
+ value: CreatePaymentResponse_Failure;
360
+ case: "failure";
361
+ } | {
362
+ case: undefined;
363
+ value?: undefined;
364
+ };
365
+ };
366
+ /**
367
+ * Describes the message tzero.v1.payment.CreatePaymentResponse.
368
+ * Use `create(CreatePaymentResponseSchema)` to create a new message.
369
+ */
370
+ export declare const CreatePaymentResponseSchema: GenMessage<CreatePaymentResponse>;
371
+ /**
372
+ * @generated from message tzero.v1.payment.CreatePaymentResponse.Success
373
+ */
374
+ export type CreatePaymentResponse_Success = Message<"tzero.v1.payment.CreatePaymentResponse.Success"> & {
375
+ /**
376
+ * payment id assigned by the network
377
+ *
378
+ * @generated from field: int64 payment_id = 10;
379
+ */
380
+ paymentId: bigint;
381
+ };
382
+ /**
383
+ * Describes the message tzero.v1.payment.CreatePaymentResponse.Success.
384
+ * Use `create(CreatePaymentResponse_SuccessSchema)` to create a new message.
385
+ */
386
+ export declare const CreatePaymentResponse_SuccessSchema: GenMessage<CreatePaymentResponse_Success>;
387
+ /**
388
+ * @generated from message tzero.v1.payment.CreatePaymentResponse.Failure
389
+ */
390
+ export type CreatePaymentResponse_Failure = Message<"tzero.v1.payment.CreatePaymentResponse.Failure"> & {};
391
+ /**
392
+ * Describes the message tzero.v1.payment.CreatePaymentResponse.Failure.
393
+ * Use `create(CreatePaymentResponse_FailureSchema)` to create a new message.
394
+ */
395
+ export declare const CreatePaymentResponse_FailureSchema: GenMessage<CreatePaymentResponse_Failure>;
396
+ /**
397
+ * @generated from enum tzero.v1.payment.CreatePaymentResponse.Failure.Reason
398
+ */
399
+ export declare enum CreatePaymentResponse_Failure_Reason {
400
+ /**
401
+ * @generated from enum value: REASON_UNSPECIFIED = 0;
402
+ */
403
+ UNSPECIFIED = 0
404
+ }
405
+ /**
406
+ * Describes the enum tzero.v1.payment.CreatePaymentResponse.Failure.Reason.
407
+ */
408
+ export declare const CreatePaymentResponse_Failure_ReasonSchema: GenEnum<CreatePaymentResponse_Failure_Reason>;
409
+ /**
410
+ * @generated from message tzero.v1.payment.UpdatePayoutRequest
411
+ */
412
+ export type UpdatePayoutRequest = Message<"tzero.v1.payment.UpdatePayoutRequest"> & {
413
+ /**
414
+ * payment id assigned by the network, this is the same payment id that was provided in the PayoutRequest
415
+ *
416
+ * @generated from field: int64 payment_id = 10;
417
+ */
418
+ paymentId: bigint;
419
+ /**
420
+ * payout id assigned by the payout provider, this is the same payout id that was provided in the PayoutRequest
421
+ *
422
+ * @generated from field: int64 payout_id = 20;
423
+ */
424
+ payoutId: bigint;
425
+ /**
426
+ * @generated from oneof tzero.v1.payment.UpdatePayoutRequest.result
427
+ */
428
+ result: {
429
+ /**
430
+ * success response with the details of the payout
431
+ *
432
+ * @generated from field: tzero.v1.payment.UpdatePayoutRequest.Success success = 30;
433
+ */
434
+ value: UpdatePayoutRequest_Success;
435
+ case: "success";
436
+ } | {
437
+ /**
438
+ * failure response with the reason of the failure
439
+ *
440
+ * @generated from field: tzero.v1.payment.UpdatePayoutRequest.Failure failure = 40;
441
+ */
442
+ value: UpdatePayoutRequest_Failure;
443
+ case: "failure";
444
+ } | {
445
+ case: undefined;
446
+ value?: undefined;
447
+ };
448
+ };
449
+ /**
450
+ * Describes the message tzero.v1.payment.UpdatePayoutRequest.
451
+ * Use `create(UpdatePayoutRequestSchema)` to create a new message.
452
+ */
453
+ export declare const UpdatePayoutRequestSchema: GenMessage<UpdatePayoutRequest>;
454
+ /**
455
+ * @generated from message tzero.v1.payment.UpdatePayoutRequest.Success
456
+ */
457
+ export type UpdatePayoutRequest_Success = Message<"tzero.v1.payment.UpdatePayoutRequest.Success"> & {};
458
+ /**
459
+ * Describes the message tzero.v1.payment.UpdatePayoutRequest.Success.
460
+ * Use `create(UpdatePayoutRequest_SuccessSchema)` to create a new message.
461
+ */
462
+ export declare const UpdatePayoutRequest_SuccessSchema: GenMessage<UpdatePayoutRequest_Success>;
463
+ /**
464
+ * @generated from message tzero.v1.payment.UpdatePayoutRequest.Failure
465
+ */
466
+ export type UpdatePayoutRequest_Failure = Message<"tzero.v1.payment.UpdatePayoutRequest.Failure"> & {};
467
+ /**
468
+ * Describes the message tzero.v1.payment.UpdatePayoutRequest.Failure.
469
+ * Use `create(UpdatePayoutRequest_FailureSchema)` to create a new message.
470
+ */
471
+ export declare const UpdatePayoutRequest_FailureSchema: GenMessage<UpdatePayoutRequest_Failure>;
472
+ /**
473
+ * @generated from message tzero.v1.payment.UpdatePayoutResponse
474
+ */
475
+ export type UpdatePayoutResponse = Message<"tzero.v1.payment.UpdatePayoutResponse"> & {};
476
+ /**
477
+ * Describes the message tzero.v1.payment.UpdatePayoutResponse.
478
+ * Use `create(UpdatePayoutResponseSchema)` to create a new message.
479
+ */
480
+ export declare const UpdatePayoutResponseSchema: GenMessage<UpdatePayoutResponse>;
481
+ /**
482
+ * @generated from enum tzero.v1.payment.QuoteType
483
+ */
484
+ export declare enum QuoteType {
485
+ /**
486
+ * @generated from enum value: QUOTE_TYPE_UNSPECIFIED = 0;
487
+ */
488
+ UNSPECIFIED = 0,
489
+ /**
490
+ * real-time quote must be valid at least for 30 seconds (TBD)
491
+ *
492
+ * @generated from enum value: QUOTE_TYPE_REALTIME = 1;
493
+ */
494
+ REALTIME = 1
495
+ }
496
+ /**
497
+ * Describes the enum tzero.v1.payment.QuoteType.
498
+ */
499
+ export declare const QuoteTypeSchema: GenEnum<QuoteType>;
500
+ /**
501
+ * *
502
+ * This service is used by provider to interact with the Network, e.g. push quotes and initiate payments.
503
+ *
504
+ * All methods of this service are idempotent, meaning they are safe to retry and multiple calls with the same parameters will have no additional effect.
505
+ *
506
+ * @generated from service tzero.v1.payment.NetworkService
507
+ */
508
+ export declare const NetworkService: GenService<{
509
+ /**
510
+ * *
511
+ * Used by the provider to publish pay-in and pay-out quotes (FX rates) into the network.
512
+ * These quotes include tiered pricing bands and an expiration timestamp.
513
+ * This method is idempotent, meaning that multiple calls with the same parameters will have no additional effect.
514
+ *
515
+ * @generated from rpc tzero.v1.payment.NetworkService.UpdateQuote
516
+ */
517
+ updateQuote: {
518
+ methodKind: "unary";
519
+ input: typeof UpdateQuoteRequestSchema;
520
+ output: typeof UpdateQuoteResponseSchema;
521
+ };
522
+ /**
523
+ * *
524
+ * Request the best available quote for a payout in a specific currency, for a given amount.
525
+ * If the payout quote exists, but the credit limit is exceeded, this quote will not be considered.
526
+ *
527
+ * @generated from rpc tzero.v1.payment.NetworkService.GetPayoutQuote
528
+ */
529
+ getPayoutQuote: {
530
+ methodKind: "unary";
531
+ input: typeof GetPayoutQuoteRequestSchema;
532
+ output: typeof GetPayoutQuoteResponseSchema;
533
+ };
534
+ /**
535
+ * *
536
+ * Submit a request to create a new payment. PayIn currency and QuoteId are the optional parameters.
537
+ * If the payIn currency is not specified, the network will use USD as the default payIn currency, and considering
538
+ * the amount in USD.
539
+ * If specified, it must be a valid currency code - in this case the network will try to find the payIn quote for the
540
+ * specified currency and considering the band from the provider initiated this request. So this is only possible, if
541
+ * this provider already submitted the payIn quote for the specified currency using UpdateQuote rpc.
542
+ * If the quoteID is specified, it must be a valid quoteId that was previously returned by the GetPayoutQuote method.
543
+ * If the quoteId is not specified, the network will try to find a suitable quote for the payout currency and amount,
544
+ * same way as GetPayoutQuote rpc.
545
+ * This method is idempotent, meaning that multiple calls with the same parameters will have no additional effect.
546
+ *
547
+ * @generated from rpc tzero.v1.payment.NetworkService.CreatePayment
548
+ */
549
+ createPayment: {
550
+ methodKind: "unary";
551
+ input: typeof CreatePaymentRequestSchema;
552
+ output: typeof CreatePaymentResponseSchema;
553
+ };
554
+ /**
555
+ * *
556
+ * Inform the network that a payout has been completed or failed. This endpoint is called by the payout
557
+ * provider, specifying the payment ID and payout ID, which was provided when the payout request was made to this provider.
558
+ * This method is idempotent, meaning that multiple calls with the same parameters will have no additional effect.
559
+ *
560
+ * @generated from rpc tzero.v1.payment.NetworkService.UpdatePayout
561
+ */
562
+ updatePayout: {
563
+ methodKind: "unary";
564
+ input: typeof UpdatePayoutRequestSchema;
565
+ output: typeof UpdatePayoutResponseSchema;
566
+ };
567
+ }>;