@t-0/provider-sdk 1.0.23 → 1.0.25

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 (42) hide show
  1. package/README.md +2 -2
  2. package/lib/client/client.d.ts +3 -33
  3. package/lib/client/client.js +6 -7
  4. package/lib/client/signer.d.ts +1 -1
  5. package/lib/common/gen/tzero/v1/common/common_pb.d.ts +64 -0
  6. package/lib/common/gen/tzero/v1/common/common_pb.js +53 -0
  7. package/lib/common/gen/tzero/v1/common/payment_method_pb.d.ts +122 -0
  8. package/lib/common/gen/tzero/v1/common/payment_method_pb.js +57 -0
  9. package/lib/{gen/network → common/gen/tzero/v1/payment}/network_pb.d.ts +95 -183
  10. package/lib/common/gen/tzero/v1/payment/network_pb.js +144 -0
  11. package/lib/{gen/network → common/gen/tzero/v1/payment}/provider_pb.d.ts +98 -183
  12. package/lib/common/gen/tzero/v1/payment/provider_pb.js +203 -0
  13. package/lib/common/gen/tzero/v1/payment_intent/provider/provider_pb.d.ts +296 -0
  14. package/lib/common/gen/tzero/v1/payment_intent/provider/provider_pb.js +84 -0
  15. package/lib/common/gen/tzero/v1/payment_intent/recipient/recipient_pb.d.ts +214 -0
  16. package/lib/common/gen/tzero/v1/payment_intent/recipient/recipient_pb.js +59 -0
  17. package/lib/common/gen/tzero/v1/public/public_pb.d.ts +234 -0
  18. package/lib/common/gen/tzero/v1/public/public_pb.js +85 -0
  19. package/lib/index.d.ts +9 -7
  20. package/lib/index.js +9 -7
  21. package/lib/payment_intent/provider/index.d.ts +1 -0
  22. package/lib/payment_intent/provider/index.js +1 -0
  23. package/lib/payment_intent/recipient/index.d.ts +1 -0
  24. package/lib/payment_intent/recipient/index.js +1 -0
  25. package/lib/service/node.d.ts +2 -1
  26. package/lib/service/service.d.ts +8 -5
  27. package/lib/service/service.js +5 -7
  28. package/package.json +9 -9
  29. package/lib/common/gen/common/common_pb.d.ts +0 -26
  30. package/lib/common/gen/common/common_pb.js +0 -13
  31. package/lib/common/gen/common/payment_method_pb.d.ts +0 -51
  32. package/lib/common/gen/common/payment_method_pb.js +0 -18
  33. package/lib/common/gen/network/network_pb.d.ts +0 -649
  34. package/lib/common/gen/network/network_pb.js +0 -163
  35. package/lib/common/gen/network/provider_pb.d.ts +0 -695
  36. package/lib/common/gen/network/provider_pb.js +0 -218
  37. package/lib/gen/common/common_pb.d.ts +0 -26
  38. package/lib/gen/common/common_pb.js +0 -13
  39. package/lib/gen/common/payment_method_pb.d.ts +0 -51
  40. package/lib/gen/common/payment_method_pb.js +0 -18
  41. package/lib/gen/network/network_pb.js +0 -163
  42. package/lib/gen/network/provider_pb.js +0 -223
@@ -1,24 +1,25 @@
1
1
  import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
- import type { Decimal } from "../common/common_pb";
2
+ import type { Decimal } from "../common/common_pb.js";
3
+ import type { PaymentMethodType } from "../common/payment_method_pb.js";
3
4
  import type { Timestamp } from "@bufbuild/protobuf/wkt";
4
5
  import type { Message } from "@bufbuild/protobuf";
5
6
  /**
6
- * Describes the file network/network.proto.
7
+ * Describes the file tzero/v1/payment/network.proto.
7
8
  */
8
- export declare const file_network_network: GenFile;
9
+ export declare const file_tzero_v1_payment_network: GenFile;
9
10
  /**
10
11
  *
11
12
  * Base currency is always USD, so the quotes are always in USD/currency format.
12
13
  *
13
- * @generated from message tzero.v1.network.UpdateQuoteRequest
14
+ * @generated from message tzero.v1.payment.UpdateQuoteRequest
14
15
  */
15
- export type UpdateQuoteRequest = Message<"tzero.v1.network.UpdateQuoteRequest"> & {
16
+ export type UpdateQuoteRequest = Message<"tzero.v1.payment.UpdateQuoteRequest"> & {
16
17
  /**
17
18
  * *
18
19
  * Zero or more quotes for pay-out operations, each quote must have a unique currency, and one or more bands, with the
19
20
  * unique client_quote_id for each band.
20
21
  *
21
- * @generated from field: repeated tzero.v1.network.UpdateQuoteRequest.Quote pay_out = 10;
22
+ * @generated from field: repeated tzero.v1.payment.UpdateQuoteRequest.Quote pay_out = 10;
22
23
  */
23
24
  payOut: UpdateQuoteRequest_Quote[];
24
25
  /**
@@ -26,19 +27,19 @@ export type UpdateQuoteRequest = Message<"tzero.v1.network.UpdateQuoteRequest">
26
27
  * Zero or more quotes for pay-in operations, each quote must have a unique currency, and one or more bands, with the
27
28
  * unique client_quote_id for each band.
28
29
  *
29
- * @generated from field: repeated tzero.v1.network.UpdateQuoteRequest.Quote pay_in = 20;
30
+ * @generated from field: repeated tzero.v1.payment.UpdateQuoteRequest.Quote pay_in = 20;
30
31
  */
31
32
  payIn: UpdateQuoteRequest_Quote[];
32
33
  };
33
34
  /**
34
- * Describes the message tzero.v1.network.UpdateQuoteRequest.
35
+ * Describes the message tzero.v1.payment.UpdateQuoteRequest.
35
36
  * Use `create(UpdateQuoteRequestSchema)` to create a new message.
36
37
  */
37
38
  export declare const UpdateQuoteRequestSchema: GenMessage<UpdateQuoteRequest>;
38
39
  /**
39
- * @generated from message tzero.v1.network.UpdateQuoteRequest.Quote
40
+ * @generated from message tzero.v1.payment.UpdateQuoteRequest.Quote
40
41
  */
41
- export type UpdateQuoteRequest_Quote = Message<"tzero.v1.network.UpdateQuoteRequest.Quote"> & {
42
+ export type UpdateQuoteRequest_Quote = Message<"tzero.v1.payment.UpdateQuoteRequest.Quote"> & {
42
43
  /**
43
44
  * BRL, EUR, GBP, etc. (ISO 4217 currency code)
44
45
  *
@@ -48,13 +49,17 @@ export type UpdateQuoteRequest_Quote = Message<"tzero.v1.network.UpdateQuoteRequ
48
49
  /**
49
50
  * type of the quote, e.g. real-time or guaranteed
50
51
  *
51
- * @generated from field: tzero.v1.network.QuoteType quote_type = 20;
52
+ * @generated from field: tzero.v1.payment.QuoteType quote_type = 20;
52
53
  */
53
54
  quoteType: QuoteType;
55
+ /**
56
+ * @generated from field: tzero.v1.common.PaymentMethodType payment_method = 25;
57
+ */
58
+ paymentMethod: PaymentMethodType;
54
59
  /**
55
60
  * list of bands for this quote
56
61
  *
57
- * @generated from field: repeated tzero.v1.network.UpdateQuoteRequest.Quote.Band bands = 30;
62
+ * @generated from field: repeated tzero.v1.payment.UpdateQuoteRequest.Quote.Band bands = 30;
58
63
  */
59
64
  bands: UpdateQuoteRequest_Quote_Band[];
60
65
  /**
@@ -71,14 +76,14 @@ export type UpdateQuoteRequest_Quote = Message<"tzero.v1.network.UpdateQuoteRequ
71
76
  timestamp?: Timestamp;
72
77
  };
73
78
  /**
74
- * Describes the message tzero.v1.network.UpdateQuoteRequest.Quote.
79
+ * Describes the message tzero.v1.payment.UpdateQuoteRequest.Quote.
75
80
  * Use `create(UpdateQuoteRequest_QuoteSchema)` to create a new message.
76
81
  */
77
82
  export declare const UpdateQuoteRequest_QuoteSchema: GenMessage<UpdateQuoteRequest_Quote>;
78
83
  /**
79
- * @generated from message tzero.v1.network.UpdateQuoteRequest.Quote.Band
84
+ * @generated from message tzero.v1.payment.UpdateQuoteRequest.Quote.Band
80
85
  */
81
- export type UpdateQuoteRequest_Quote_Band = Message<"tzero.v1.network.UpdateQuoteRequest.Quote.Band"> & {
86
+ export type UpdateQuoteRequest_Quote_Band = Message<"tzero.v1.payment.UpdateQuoteRequest.Quote.Band"> & {
82
87
  /**
83
88
  * unique client generated id for this band
84
89
  *
@@ -99,23 +104,23 @@ export type UpdateQuoteRequest_Quote_Band = Message<"tzero.v1.network.UpdateQuot
99
104
  rate?: Decimal;
100
105
  };
101
106
  /**
102
- * Describes the message tzero.v1.network.UpdateQuoteRequest.Quote.Band.
107
+ * Describes the message tzero.v1.payment.UpdateQuoteRequest.Quote.Band.
103
108
  * Use `create(UpdateQuoteRequest_Quote_BandSchema)` to create a new message.
104
109
  */
105
110
  export declare const UpdateQuoteRequest_Quote_BandSchema: GenMessage<UpdateQuoteRequest_Quote_Band>;
106
111
  /**
107
- * @generated from message tzero.v1.network.UpdateQuoteResponse
112
+ * @generated from message tzero.v1.payment.UpdateQuoteResponse
108
113
  */
109
- export type UpdateQuoteResponse = Message<"tzero.v1.network.UpdateQuoteResponse"> & {};
114
+ export type UpdateQuoteResponse = Message<"tzero.v1.payment.UpdateQuoteResponse"> & {};
110
115
  /**
111
- * Describes the message tzero.v1.network.UpdateQuoteResponse.
116
+ * Describes the message tzero.v1.payment.UpdateQuoteResponse.
112
117
  * Use `create(UpdateQuoteResponseSchema)` to create a new message.
113
118
  */
114
119
  export declare const UpdateQuoteResponseSchema: GenMessage<UpdateQuoteResponse>;
115
120
  /**
116
- * @generated from message tzero.v1.network.GetPayoutQuoteRequest
121
+ * @generated from message tzero.v1.payment.GetPayoutQuoteRequest
117
122
  */
118
- export type GetPayoutQuoteRequest = Message<"tzero.v1.network.GetPayoutQuoteRequest"> & {
123
+ export type GetPayoutQuoteRequest = Message<"tzero.v1.payment.GetPayoutQuoteRequest"> & {
119
124
  /**
120
125
  * ISO 4217 currency code, e.g. EUR, GBP, etc. in which the payout should be made
121
126
  *
@@ -131,19 +136,19 @@ export type GetPayoutQuoteRequest = Message<"tzero.v1.network.GetPayoutQuoteRequ
131
136
  /**
132
137
  * type of the quote, e.g. real-time or guaranteed
133
138
  *
134
- * @generated from field: tzero.v1.network.QuoteType quote_type = 30;
139
+ * @generated from field: tzero.v1.payment.QuoteType quote_type = 30;
135
140
  */
136
141
  quoteType: QuoteType;
137
142
  };
138
143
  /**
139
- * Describes the message tzero.v1.network.GetPayoutQuoteRequest.
144
+ * Describes the message tzero.v1.payment.GetPayoutQuoteRequest.
140
145
  * Use `create(GetPayoutQuoteRequestSchema)` to create a new message.
141
146
  */
142
147
  export declare const GetPayoutQuoteRequestSchema: GenMessage<GetPayoutQuoteRequest>;
143
148
  /**
144
- * @generated from message tzero.v1.network.GetPayoutQuoteResponse
149
+ * @generated from message tzero.v1.payment.GetPayoutQuoteResponse
145
150
  */
146
- export type GetPayoutQuoteResponse = Message<"tzero.v1.network.GetPayoutQuoteResponse"> & {
151
+ export type GetPayoutQuoteResponse = Message<"tzero.v1.payment.GetPayoutQuoteResponse"> & {
147
152
  /**
148
153
  * rate in USD/currency, e.g. 1.2345 for 1 USD = 1.2345 EUR
149
154
  *
@@ -157,19 +162,19 @@ export type GetPayoutQuoteResponse = Message<"tzero.v1.network.GetPayoutQuoteRes
157
162
  */
158
163
  expiration?: Timestamp;
159
164
  /**
160
- * @generated from field: tzero.v1.network.QuoteId quote_id = 30;
165
+ * @generated from field: tzero.v1.payment.QuoteId quote_id = 30;
161
166
  */
162
167
  quoteId?: QuoteId;
163
168
  };
164
169
  /**
165
- * Describes the message tzero.v1.network.GetPayoutQuoteResponse.
170
+ * Describes the message tzero.v1.payment.GetPayoutQuoteResponse.
166
171
  * Use `create(GetPayoutQuoteResponseSchema)` to create a new message.
167
172
  */
168
173
  export declare const GetPayoutQuoteResponseSchema: GenMessage<GetPayoutQuoteResponse>;
169
174
  /**
170
- * @generated from message tzero.v1.network.CreatePaymentRequest
175
+ * @generated from message tzero.v1.payment.CreatePaymentRequest
171
176
  */
172
- export type CreatePaymentRequest = Message<"tzero.v1.network.CreatePaymentRequest"> & {
177
+ export type CreatePaymentRequest = Message<"tzero.v1.payment.CreatePaymentRequest"> & {
173
178
  /**
174
179
  * unique client generated id for this payment
175
180
  *
@@ -189,17 +194,21 @@ export type CreatePaymentRequest = Message<"tzero.v1.network.CreatePaymentReques
189
194
  */
190
195
  amount?: Decimal;
191
196
  /**
192
- * if not specified, USD is used for calculations
197
+ * if not specified, USD is used
193
198
  *
194
199
  * @generated from field: optional string payin_currency = 40;
195
200
  */
196
201
  payinCurrency?: string;
197
202
  /**
198
- * @generated from field: tzero.v1.network.CreatePaymentRequest.Sender sender = 50;
203
+ * optional or option in the oneof?
204
+ *
205
+ * @generated from field: tzero.v1.payment.CreatePaymentRequest.Sender sender = 50;
199
206
  */
200
207
  sender?: CreatePaymentRequest_Sender;
201
208
  /**
202
- * @generated from field: tzero.v1.network.CreatePaymentRequest.Recipient recipient = 60;
209
+ * optional or option in the oneof?
210
+ *
211
+ * @generated from field: tzero.v1.payment.CreatePaymentRequest.Recipient recipient = 60;
203
212
  */
204
213
  recipient?: CreatePaymentRequest_Recipient;
205
214
  /**
@@ -211,27 +220,27 @@ export type CreatePaymentRequest = Message<"tzero.v1.network.CreatePaymentReques
211
220
  /**
212
221
  * if specified, must be a valid quoteId that was previously returned by the GetPayoutQuote method
213
222
  *
214
- * @generated from field: optional tzero.v1.network.QuoteId quote_id = 100;
223
+ * @generated from field: optional tzero.v1.payment.QuoteId quote_id = 100;
215
224
  */
216
225
  quoteId?: QuoteId;
217
226
  };
218
227
  /**
219
- * Describes the message tzero.v1.network.CreatePaymentRequest.
228
+ * Describes the message tzero.v1.payment.CreatePaymentRequest.
220
229
  * Use `create(CreatePaymentRequestSchema)` to create a new message.
221
230
  */
222
231
  export declare const CreatePaymentRequestSchema: GenMessage<CreatePaymentRequest>;
223
232
  /**
224
233
  * Work in progress
225
234
  *
226
- * @generated from message tzero.v1.network.CreatePaymentRequest.Sender
235
+ * @generated from message tzero.v1.payment.CreatePaymentRequest.Sender
227
236
  */
228
- export type CreatePaymentRequest_Sender = Message<"tzero.v1.network.CreatePaymentRequest.Sender"> & {
237
+ export type CreatePaymentRequest_Sender = Message<"tzero.v1.payment.CreatePaymentRequest.Sender"> & {
229
238
  /**
230
- * @generated from oneof tzero.v1.network.CreatePaymentRequest.Sender.sender
239
+ * @generated from oneof tzero.v1.payment.CreatePaymentRequest.Sender.sender
231
240
  */
232
241
  sender: {
233
242
  /**
234
- * @generated from field: tzero.v1.network.CreatePaymentRequest.PrivatePerson private_person = 10;
243
+ * @generated from field: tzero.v1.payment.CreatePaymentRequest.PrivatePerson private_person = 10;
235
244
  */
236
245
  value: CreatePaymentRequest_PrivatePerson;
237
246
  case: "privatePerson";
@@ -241,22 +250,22 @@ export type CreatePaymentRequest_Sender = Message<"tzero.v1.network.CreatePaymen
241
250
  };
242
251
  };
243
252
  /**
244
- * Describes the message tzero.v1.network.CreatePaymentRequest.Sender.
253
+ * Describes the message tzero.v1.payment.CreatePaymentRequest.Sender.
245
254
  * Use `create(CreatePaymentRequest_SenderSchema)` to create a new message.
246
255
  */
247
256
  export declare const CreatePaymentRequest_SenderSchema: GenMessage<CreatePaymentRequest_Sender>;
248
257
  /**
249
258
  * Work in progress
250
259
  *
251
- * @generated from message tzero.v1.network.CreatePaymentRequest.Recipient
260
+ * @generated from message tzero.v1.payment.CreatePaymentRequest.Recipient
252
261
  */
253
- export type CreatePaymentRequest_Recipient = Message<"tzero.v1.network.CreatePaymentRequest.Recipient"> & {
262
+ export type CreatePaymentRequest_Recipient = Message<"tzero.v1.payment.CreatePaymentRequest.Recipient"> & {
254
263
  /**
255
- * @generated from oneof tzero.v1.network.CreatePaymentRequest.Recipient.recipient
264
+ * @generated from oneof tzero.v1.payment.CreatePaymentRequest.Recipient.recipient
256
265
  */
257
266
  recipient: {
258
267
  /**
259
- * @generated from field: tzero.v1.network.CreatePaymentRequest.PrivatePerson private_person = 10;
268
+ * @generated from field: tzero.v1.payment.CreatePaymentRequest.PrivatePerson private_person = 10;
260
269
  */
261
270
  value: CreatePaymentRequest_PrivatePerson;
262
271
  case: "privatePerson";
@@ -266,16 +275,16 @@ export type CreatePaymentRequest_Recipient = Message<"tzero.v1.network.CreatePay
266
275
  };
267
276
  };
268
277
  /**
269
- * Describes the message tzero.v1.network.CreatePaymentRequest.Recipient.
278
+ * Describes the message tzero.v1.payment.CreatePaymentRequest.Recipient.
270
279
  * Use `create(CreatePaymentRequest_RecipientSchema)` to create a new message.
271
280
  */
272
281
  export declare const CreatePaymentRequest_RecipientSchema: GenMessage<CreatePaymentRequest_Recipient>;
273
282
  /**
274
283
  * Work in progress
275
284
  *
276
- * @generated from message tzero.v1.network.CreatePaymentRequest.PrivatePerson
285
+ * @generated from message tzero.v1.payment.CreatePaymentRequest.PrivatePerson
277
286
  */
278
- export type CreatePaymentRequest_PrivatePerson = Message<"tzero.v1.network.CreatePaymentRequest.PrivatePerson"> & {
287
+ export type CreatePaymentRequest_PrivatePerson = Message<"tzero.v1.payment.CreatePaymentRequest.PrivatePerson"> & {
279
288
  /**
280
289
  * @generated from field: string private_person_client_id = 10;
281
290
  */
@@ -290,14 +299,14 @@ export type CreatePaymentRequest_PrivatePerson = Message<"tzero.v1.network.Creat
290
299
  lastName: string;
291
300
  };
292
301
  /**
293
- * Describes the message tzero.v1.network.CreatePaymentRequest.PrivatePerson.
302
+ * Describes the message tzero.v1.payment.CreatePaymentRequest.PrivatePerson.
294
303
  * Use `create(CreatePaymentRequest_PrivatePersonSchema)` to create a new message.
295
304
  */
296
305
  export declare const CreatePaymentRequest_PrivatePersonSchema: GenMessage<CreatePaymentRequest_PrivatePerson>;
297
306
  /**
298
- * @generated from message tzero.v1.network.QuoteId
307
+ * @generated from message tzero.v1.payment.QuoteId
299
308
  */
300
- export type QuoteId = Message<"tzero.v1.network.QuoteId"> & {
309
+ export type QuoteId = Message<"tzero.v1.payment.QuoteId"> & {
301
310
  /**
302
311
  * unique identifier of the quote within the specified provider
303
312
  *
@@ -312,14 +321,14 @@ export type QuoteId = Message<"tzero.v1.network.QuoteId"> & {
312
321
  providerId: number;
313
322
  };
314
323
  /**
315
- * Describes the message tzero.v1.network.QuoteId.
324
+ * Describes the message tzero.v1.payment.QuoteId.
316
325
  * Use `create(QuoteIdSchema)` to create a new message.
317
326
  */
318
327
  export declare const QuoteIdSchema: GenMessage<QuoteId>;
319
328
  /**
320
- * @generated from message tzero.v1.network.CreatePaymentResponse
329
+ * @generated from message tzero.v1.payment.CreatePaymentResponse
321
330
  */
322
- export type CreatePaymentResponse = Message<"tzero.v1.network.CreatePaymentResponse"> & {
331
+ export type CreatePaymentResponse = Message<"tzero.v1.payment.CreatePaymentResponse"> & {
323
332
  /**
324
333
  * client generated id supplied in the request
325
334
  *
@@ -327,7 +336,7 @@ export type CreatePaymentResponse = Message<"tzero.v1.network.CreatePaymentRespo
327
336
  */
328
337
  paymentClientId: string;
329
338
  /**
330
- * @generated from oneof tzero.v1.network.CreatePaymentResponse.result
339
+ * @generated from oneof tzero.v1.payment.CreatePaymentResponse.result
331
340
  */
332
341
  result: {
333
342
  /**
@@ -335,7 +344,7 @@ export type CreatePaymentResponse = Message<"tzero.v1.network.CreatePaymentRespo
335
344
  * Success response - means the payment was accepted, but the payout is not yet completed. This means, the network found
336
345
  * a suitable quote for the payout currency and amount, and instructed the payout provider to process the payout.
337
346
  *
338
- * @generated from field: tzero.v1.network.CreatePaymentResponse.Success success = 20;
347
+ * @generated from field: tzero.v1.payment.CreatePaymentResponse.Success success = 20;
339
348
  */
340
349
  value: CreatePaymentResponse_Success;
341
350
  case: "success";
@@ -345,7 +354,7 @@ export type CreatePaymentResponse = Message<"tzero.v1.network.CreatePaymentRespo
345
354
  * Failure response - means the payment was not accepted, e.g. the network could not find a suitable quote for the
346
355
  * payout currency and amount, or the credit limit is exceeded for the available quotes.
347
356
  *
348
- * @generated from field: tzero.v1.network.CreatePaymentResponse.Failure failure = 30;
357
+ * @generated from field: tzero.v1.payment.CreatePaymentResponse.Failure failure = 30;
349
358
  */
350
359
  value: CreatePaymentResponse_Failure;
351
360
  case: "failure";
@@ -355,14 +364,14 @@ export type CreatePaymentResponse = Message<"tzero.v1.network.CreatePaymentRespo
355
364
  };
356
365
  };
357
366
  /**
358
- * Describes the message tzero.v1.network.CreatePaymentResponse.
367
+ * Describes the message tzero.v1.payment.CreatePaymentResponse.
359
368
  * Use `create(CreatePaymentResponseSchema)` to create a new message.
360
369
  */
361
370
  export declare const CreatePaymentResponseSchema: GenMessage<CreatePaymentResponse>;
362
371
  /**
363
- * @generated from message tzero.v1.network.CreatePaymentResponse.Success
372
+ * @generated from message tzero.v1.payment.CreatePaymentResponse.Success
364
373
  */
365
- export type CreatePaymentResponse_Success = Message<"tzero.v1.network.CreatePaymentResponse.Success"> & {
374
+ export type CreatePaymentResponse_Success = Message<"tzero.v1.payment.CreatePaymentResponse.Success"> & {
366
375
  /**
367
376
  * payment id assigned by the network
368
377
  *
@@ -371,21 +380,21 @@ export type CreatePaymentResponse_Success = Message<"tzero.v1.network.CreatePaym
371
380
  paymentId: bigint;
372
381
  };
373
382
  /**
374
- * Describes the message tzero.v1.network.CreatePaymentResponse.Success.
383
+ * Describes the message tzero.v1.payment.CreatePaymentResponse.Success.
375
384
  * Use `create(CreatePaymentResponse_SuccessSchema)` to create a new message.
376
385
  */
377
386
  export declare const CreatePaymentResponse_SuccessSchema: GenMessage<CreatePaymentResponse_Success>;
378
387
  /**
379
- * @generated from message tzero.v1.network.CreatePaymentResponse.Failure
388
+ * @generated from message tzero.v1.payment.CreatePaymentResponse.Failure
380
389
  */
381
- export type CreatePaymentResponse_Failure = Message<"tzero.v1.network.CreatePaymentResponse.Failure"> & {};
390
+ export type CreatePaymentResponse_Failure = Message<"tzero.v1.payment.CreatePaymentResponse.Failure"> & {};
382
391
  /**
383
- * Describes the message tzero.v1.network.CreatePaymentResponse.Failure.
392
+ * Describes the message tzero.v1.payment.CreatePaymentResponse.Failure.
384
393
  * Use `create(CreatePaymentResponse_FailureSchema)` to create a new message.
385
394
  */
386
395
  export declare const CreatePaymentResponse_FailureSchema: GenMessage<CreatePaymentResponse_Failure>;
387
396
  /**
388
- * @generated from enum tzero.v1.network.CreatePaymentResponse.Failure.Reason
397
+ * @generated from enum tzero.v1.payment.CreatePaymentResponse.Failure.Reason
389
398
  */
390
399
  export declare enum CreatePaymentResponse_Failure_Reason {
391
400
  /**
@@ -394,13 +403,13 @@ export declare enum CreatePaymentResponse_Failure_Reason {
394
403
  UNSPECIFIED = 0
395
404
  }
396
405
  /**
397
- * Describes the enum tzero.v1.network.CreatePaymentResponse.Failure.Reason.
406
+ * Describes the enum tzero.v1.payment.CreatePaymentResponse.Failure.Reason.
398
407
  */
399
408
  export declare const CreatePaymentResponse_Failure_ReasonSchema: GenEnum<CreatePaymentResponse_Failure_Reason>;
400
409
  /**
401
- * @generated from message tzero.v1.network.UpdatePayoutRequest
410
+ * @generated from message tzero.v1.payment.UpdatePayoutRequest
402
411
  */
403
- export type UpdatePayoutRequest = Message<"tzero.v1.network.UpdatePayoutRequest"> & {
412
+ export type UpdatePayoutRequest = Message<"tzero.v1.payment.UpdatePayoutRequest"> & {
404
413
  /**
405
414
  * payment id assigned by the network, this is the same payment id that was provided in the PayoutRequest
406
415
  *
@@ -414,13 +423,13 @@ export type UpdatePayoutRequest = Message<"tzero.v1.network.UpdatePayoutRequest"
414
423
  */
415
424
  payoutId: bigint;
416
425
  /**
417
- * @generated from oneof tzero.v1.network.UpdatePayoutRequest.result
426
+ * @generated from oneof tzero.v1.payment.UpdatePayoutRequest.result
418
427
  */
419
428
  result: {
420
429
  /**
421
430
  * success response with the details of the payout
422
431
  *
423
- * @generated from field: tzero.v1.network.UpdatePayoutRequest.Success success = 30;
432
+ * @generated from field: tzero.v1.payment.UpdatePayoutRequest.Success success = 30;
424
433
  */
425
434
  value: UpdatePayoutRequest_Success;
426
435
  case: "success";
@@ -428,7 +437,7 @@ export type UpdatePayoutRequest = Message<"tzero.v1.network.UpdatePayoutRequest"
428
437
  /**
429
438
  * failure response with the reason of the failure
430
439
  *
431
- * @generated from field: tzero.v1.network.UpdatePayoutRequest.Failure failure = 40;
440
+ * @generated from field: tzero.v1.payment.UpdatePayoutRequest.Failure failure = 40;
432
441
  */
433
442
  value: UpdatePayoutRequest_Failure;
434
443
  case: "failure";
@@ -438,112 +447,39 @@ export type UpdatePayoutRequest = Message<"tzero.v1.network.UpdatePayoutRequest"
438
447
  };
439
448
  };
440
449
  /**
441
- * Describes the message tzero.v1.network.UpdatePayoutRequest.
450
+ * Describes the message tzero.v1.payment.UpdatePayoutRequest.
442
451
  * Use `create(UpdatePayoutRequestSchema)` to create a new message.
443
452
  */
444
453
  export declare const UpdatePayoutRequestSchema: GenMessage<UpdatePayoutRequest>;
445
454
  /**
446
- * @generated from message tzero.v1.network.UpdatePayoutRequest.Success
455
+ * @generated from message tzero.v1.payment.UpdatePayoutRequest.Success
447
456
  */
448
- export type UpdatePayoutRequest_Success = Message<"tzero.v1.network.UpdatePayoutRequest.Success"> & {};
457
+ export type UpdatePayoutRequest_Success = Message<"tzero.v1.payment.UpdatePayoutRequest.Success"> & {};
449
458
  /**
450
- * Describes the message tzero.v1.network.UpdatePayoutRequest.Success.
459
+ * Describes the message tzero.v1.payment.UpdatePayoutRequest.Success.
451
460
  * Use `create(UpdatePayoutRequest_SuccessSchema)` to create a new message.
452
461
  */
453
462
  export declare const UpdatePayoutRequest_SuccessSchema: GenMessage<UpdatePayoutRequest_Success>;
454
463
  /**
455
- * @generated from message tzero.v1.network.UpdatePayoutRequest.Failure
464
+ * @generated from message tzero.v1.payment.UpdatePayoutRequest.Failure
456
465
  */
457
- export type UpdatePayoutRequest_Failure = Message<"tzero.v1.network.UpdatePayoutRequest.Failure"> & {};
466
+ export type UpdatePayoutRequest_Failure = Message<"tzero.v1.payment.UpdatePayoutRequest.Failure"> & {};
458
467
  /**
459
- * Describes the message tzero.v1.network.UpdatePayoutRequest.Failure.
468
+ * Describes the message tzero.v1.payment.UpdatePayoutRequest.Failure.
460
469
  * Use `create(UpdatePayoutRequest_FailureSchema)` to create a new message.
461
470
  */
462
471
  export declare const UpdatePayoutRequest_FailureSchema: GenMessage<UpdatePayoutRequest_Failure>;
463
472
  /**
464
- * @generated from message tzero.v1.network.UpdatePayoutResponse
473
+ * @generated from message tzero.v1.payment.UpdatePayoutResponse
465
474
  */
466
- export type UpdatePayoutResponse = Message<"tzero.v1.network.UpdatePayoutResponse"> & {};
475
+ export type UpdatePayoutResponse = Message<"tzero.v1.payment.UpdatePayoutResponse"> & {};
467
476
  /**
468
- * Describes the message tzero.v1.network.UpdatePayoutResponse.
477
+ * Describes the message tzero.v1.payment.UpdatePayoutResponse.
469
478
  * Use `create(UpdatePayoutResponseSchema)` to create a new message.
470
479
  */
471
480
  export declare const UpdatePayoutResponseSchema: GenMessage<UpdatePayoutResponse>;
472
481
  /**
473
- * @generated from message tzero.v1.network.GetKycDataRequest
474
- */
475
- export type GetKycDataRequest = Message<"tzero.v1.network.GetKycDataRequest"> & {
476
- /**
477
- * @generated from oneof tzero.v1.network.GetKycDataRequest.account
478
- */
479
- account: {
480
- /**
481
- * @generated from field: string person_id = 10;
482
- */
483
- value: string;
484
- case: "personId";
485
- } | {
486
- case: undefined;
487
- value?: undefined;
488
- };
489
- };
490
- /**
491
- * Describes the message tzero.v1.network.GetKycDataRequest.
492
- * Use `create(GetKycDataRequestSchema)` to create a new message.
493
- */
494
- export declare const GetKycDataRequestSchema: GenMessage<GetKycDataRequest>;
495
- /**
496
- * @generated from message tzero.v1.network.GetKycDataResponse
497
- */
498
- export type GetKycDataResponse = Message<"tzero.v1.network.GetKycDataResponse"> & {
499
- /**
500
- * @generated from oneof tzero.v1.network.GetKycDataResponse.kyc_data
501
- */
502
- kycData: {
503
- /**
504
- * @generated from field: string sumsub_kyc_token = 10;
505
- */
506
- value: string;
507
- case: "sumsubKycToken";
508
- } | {
509
- case: undefined;
510
- value?: undefined;
511
- };
512
- };
513
- /**
514
- * Describes the message tzero.v1.network.GetKycDataResponse.
515
- * Use `create(GetKycDataResponseSchema)` to create a new message.
516
- */
517
- export declare const GetKycDataResponseSchema: GenMessage<GetKycDataResponse>;
518
- /**
519
- * @generated from message tzero.v1.network.CreatePayInRequest
520
- */
521
- export type CreatePayInRequest = Message<"tzero.v1.network.CreatePayInRequest"> & {
522
- /**
523
- * @generated from field: string payment_id = 10;
524
- */
525
- paymentId: string;
526
- /**
527
- * @generated from field: tzero.v1.common.Decimal amount = 20;
528
- */
529
- amount?: Decimal;
530
- };
531
- /**
532
- * Describes the message tzero.v1.network.CreatePayInRequest.
533
- * Use `create(CreatePayInRequestSchema)` to create a new message.
534
- */
535
- export declare const CreatePayInRequestSchema: GenMessage<CreatePayInRequest>;
536
- /**
537
- * @generated from message tzero.v1.network.CreatePayInResponse
538
- */
539
- export type CreatePayInResponse = Message<"tzero.v1.network.CreatePayInResponse"> & {};
540
- /**
541
- * Describes the message tzero.v1.network.CreatePayInResponse.
542
- * Use `create(CreatePayInResponseSchema)` to create a new message.
543
- */
544
- export declare const CreatePayInResponseSchema: GenMessage<CreatePayInResponse>;
545
- /**
546
- * @generated from enum tzero.v1.network.QuoteType
482
+ * @generated from enum tzero.v1.payment.QuoteType
547
483
  */
548
484
  export declare enum QuoteType {
549
485
  /**
@@ -558,7 +494,7 @@ export declare enum QuoteType {
558
494
  REALTIME = 1
559
495
  }
560
496
  /**
561
- * Describes the enum tzero.v1.network.QuoteType.
497
+ * Describes the enum tzero.v1.payment.QuoteType.
562
498
  */
563
499
  export declare const QuoteTypeSchema: GenEnum<QuoteType>;
564
500
  /**
@@ -567,7 +503,7 @@ export declare const QuoteTypeSchema: GenEnum<QuoteType>;
567
503
  *
568
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.
569
505
  *
570
- * @generated from service tzero.v1.network.NetworkService
506
+ * @generated from service tzero.v1.payment.NetworkService
571
507
  */
572
508
  export declare const NetworkService: GenService<{
573
509
  /**
@@ -576,7 +512,7 @@ export declare const NetworkService: GenService<{
576
512
  * These quotes include tiered pricing bands and an expiration timestamp.
577
513
  * This method is idempotent, meaning that multiple calls with the same parameters will have no additional effect.
578
514
  *
579
- * @generated from rpc tzero.v1.network.NetworkService.UpdateQuote
515
+ * @generated from rpc tzero.v1.payment.NetworkService.UpdateQuote
580
516
  */
581
517
  updateQuote: {
582
518
  methodKind: "unary";
@@ -588,7 +524,7 @@ export declare const NetworkService: GenService<{
588
524
  * Request the best available quote for a payout in a specific currency, for a given amount.
589
525
  * If the payout quote exists, but the credit limit is exceeded, this quote will not be considered.
590
526
  *
591
- * @generated from rpc tzero.v1.network.NetworkService.GetPayoutQuote
527
+ * @generated from rpc tzero.v1.payment.NetworkService.GetPayoutQuote
592
528
  */
593
529
  getPayoutQuote: {
594
530
  methodKind: "unary";
@@ -608,7 +544,7 @@ export declare const NetworkService: GenService<{
608
544
  * same way as GetPayoutQuote rpc.
609
545
  * This method is idempotent, meaning that multiple calls with the same parameters will have no additional effect.
610
546
  *
611
- * @generated from rpc tzero.v1.network.NetworkService.CreatePayment
547
+ * @generated from rpc tzero.v1.payment.NetworkService.CreatePayment
612
548
  */
613
549
  createPayment: {
614
550
  methodKind: "unary";
@@ -621,35 +557,11 @@ export declare const NetworkService: GenService<{
621
557
  * provider, specifying the payment ID and payout ID, which was provided when the payout request was made to this provider.
622
558
  * This method is idempotent, meaning that multiple calls with the same parameters will have no additional effect.
623
559
  *
624
- * @generated from rpc tzero.v1.network.NetworkService.UpdatePayout
560
+ * @generated from rpc tzero.v1.payment.NetworkService.UpdatePayout
625
561
  */
626
562
  updatePayout: {
627
563
  methodKind: "unary";
628
564
  input: typeof UpdatePayoutRequestSchema;
629
565
  output: typeof UpdatePayoutResponseSchema;
630
566
  };
631
- /**
632
- * *
633
- * Inform the network that the provider has received a pay-in from the user.
634
- * This method is idempotent, meaning that multiple calls with the same parameters will have no additional effect.
635
- *
636
- * @generated from rpc tzero.v1.network.NetworkService.CreatePayIn
637
- */
638
- createPayIn: {
639
- methodKind: "unary";
640
- input: typeof CreatePayInRequestSchema;
641
- output: typeof CreatePayInResponseSchema;
642
- };
643
- /**
644
- *
645
- * Retrieve KYC verification data (e.g., SumSub token) for a person involved in the payment.
646
- *
647
- *
648
- * @generated from rpc tzero.v1.network.NetworkService.GetKycData
649
- */
650
- getKycData: {
651
- methodKind: "unary";
652
- input: typeof GetKycDataRequestSchema;
653
- output: typeof GetKycDataResponseSchema;
654
- };
655
567
  }>;