@t-0/provider-sdk 1.0.25 → 1.0.27

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