@t-0/provider-sdk 1.0.24 → 1.0.26

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 (97) hide show
  1. package/lib/cjs/client/client.js +46 -0
  2. package/lib/{client → cjs/client}/signer.d.ts +1 -1
  3. package/lib/cjs/client/signer.js +69 -0
  4. package/lib/cjs/common/gen/tzero/v1/common/common_pb.js +56 -0
  5. package/lib/{common → cjs/common}/gen/tzero/v1/common/payment_method_pb.d.ts +1 -1
  6. package/lib/cjs/common/gen/tzero/v1/common/payment_method_pb.js +60 -0
  7. package/lib/{common → cjs/common}/gen/tzero/v1/payment/network_pb.d.ts +2 -2
  8. package/lib/cjs/common/gen/tzero/v1/payment/network_pb.js +147 -0
  9. package/lib/{common → cjs/common}/gen/tzero/v1/payment/provider_pb.d.ts +2 -2
  10. package/lib/cjs/common/gen/tzero/v1/payment/provider_pb.js +206 -0
  11. package/lib/{common → cjs/common}/gen/tzero/v1/payment_intent/provider/provider_pb.d.ts +2 -2
  12. package/lib/cjs/common/gen/tzero/v1/payment_intent/provider/provider_pb.js +87 -0
  13. package/lib/{common → cjs/common}/gen/tzero/v1/payment_intent/recipient/recipient_pb.d.ts +2 -2
  14. package/lib/cjs/common/gen/tzero/v1/payment_intent/recipient/recipient_pb.js +62 -0
  15. package/lib/cjs/common/gen/tzero/v1/public/public_pb.js +88 -0
  16. package/lib/cjs/common/headers.js +10 -0
  17. package/lib/cjs/examples/payment_intent/pay-in-provider-flow.d.ts +4 -0
  18. package/lib/cjs/examples/payment_intent/pay-in-provider-flow.js +56 -0
  19. package/lib/cjs/examples/payment_intent/service.d.ts +1 -0
  20. package/lib/cjs/examples/payment_intent/service.js +68 -0
  21. package/lib/cjs/examples/server.d.ts +4 -0
  22. package/lib/cjs/examples/server.js +93 -0
  23. package/lib/cjs/examples/update-quote.d.ts +4 -0
  24. package/lib/cjs/examples/update-quote.js +42 -0
  25. package/lib/cjs/index.d.ts +11 -0
  26. package/lib/cjs/index.js +50 -0
  27. package/lib/cjs/package.json +1 -0
  28. package/lib/{payment_intent → cjs/payment_intent}/provider/index.d.ts +1 -1
  29. package/lib/cjs/payment_intent/provider/index.js +17 -0
  30. package/lib/{payment_intent → cjs/payment_intent}/recipient/index.d.ts +1 -1
  31. package/lib/cjs/payment_intent/recipient/index.js +17 -0
  32. package/lib/cjs/service/node.d.ts +3 -0
  33. package/lib/cjs/service/node.js +15 -0
  34. package/lib/{service → cjs/service}/service.d.ts +2 -3
  35. package/lib/cjs/service/service.js +112 -0
  36. package/lib/esm/client/client.d.ts +16 -0
  37. package/lib/{client → esm/client}/client.js +2 -2
  38. package/lib/esm/client/signer.d.ts +3 -0
  39. package/lib/{gen → esm/common/gen/tzero/v1}/common/common_pb.d.ts +2 -2
  40. package/lib/{common → esm/common}/gen/tzero/v1/common/common_pb.js +1 -1
  41. package/lib/{gen → esm/common/gen/tzero/v1}/common/payment_method_pb.d.ts +3 -3
  42. package/lib/{common → esm/common}/gen/tzero/v1/common/payment_method_pb.js +2 -2
  43. package/lib/{gen/network → esm/common/gen/tzero/v1/payment}/network_pb.d.ts +86 -86
  44. package/lib/{common → esm/common}/gen/tzero/v1/payment/network_pb.js +3 -3
  45. package/lib/{gen/network → esm/common/gen/tzero/v1/payment}/provider_pb.d.ts +84 -84
  46. package/lib/{common → esm/common}/gen/tzero/v1/payment/provider_pb.js +3 -3
  47. package/lib/{gen → esm/common/gen/tzero/v1}/payment_intent/provider/provider_pb.d.ts +4 -4
  48. package/lib/{common → esm/common}/gen/tzero/v1/payment_intent/provider/provider_pb.js +3 -3
  49. package/lib/{gen → esm/common/gen/tzero/v1}/payment_intent/recipient/recipient_pb.d.ts +4 -4
  50. package/lib/{common → esm/common}/gen/tzero/v1/payment_intent/recipient/recipient_pb.js +3 -3
  51. package/lib/esm/common/gen/tzero/v1/public/public_pb.d.ts +234 -0
  52. package/lib/{common → esm/common}/gen/tzero/v1/public/public_pb.js +1 -1
  53. package/lib/esm/common/headers.d.ts +6 -0
  54. package/lib/esm/examples/payment_intent/pay-in-provider-flow.d.ts +4 -0
  55. package/lib/esm/examples/payment_intent/pay-in-provider-flow.js +51 -0
  56. package/lib/esm/examples/payment_intent/service.d.ts +1 -0
  57. package/lib/esm/examples/payment_intent/service.js +30 -0
  58. package/lib/esm/examples/server.d.ts +4 -0
  59. package/lib/esm/examples/server.js +55 -0
  60. package/lib/esm/examples/update-quote.d.ts +4 -0
  61. package/lib/esm/examples/update-quote.js +37 -0
  62. package/lib/esm/index.d.ts +11 -0
  63. package/lib/esm/index.js +10 -0
  64. package/lib/esm/payment_intent/provider/index.d.ts +1 -0
  65. package/lib/{payment_intent → esm/payment_intent}/provider/index.js +1 -1
  66. package/lib/esm/payment_intent/recipient/index.d.ts +1 -0
  67. package/lib/{payment_intent → esm/payment_intent}/recipient/index.js +1 -1
  68. package/lib/esm/service/node.d.ts +3 -0
  69. package/lib/esm/service/service.d.ts +15 -0
  70. package/lib/{service → esm/service}/service.js +3 -3
  71. package/lib/tsconfig.cjs.tsbuildinfo +1 -0
  72. package/lib/tsconfig.esm.tsbuildinfo +1 -0
  73. package/package.json +19 -10
  74. package/lib/common/gen/common/common_pb.d.ts +0 -26
  75. package/lib/common/gen/common/common_pb.js +0 -13
  76. package/lib/common/gen/common/payment_method_pb.d.ts +0 -51
  77. package/lib/common/gen/common/payment_method_pb.js +0 -18
  78. package/lib/common/gen/network/network_pb.d.ts +0 -649
  79. package/lib/common/gen/network/network_pb.js +0 -163
  80. package/lib/common/gen/network/provider_pb.d.ts +0 -695
  81. package/lib/common/gen/network/provider_pb.js +0 -218
  82. package/lib/gen/common/common_pb.js +0 -53
  83. package/lib/gen/common/payment_method_pb.js +0 -57
  84. package/lib/gen/network/network_pb.js +0 -144
  85. package/lib/gen/network/provider_pb.js +0 -203
  86. package/lib/gen/payment_intent/provider/provider_pb.js +0 -84
  87. package/lib/gen/payment_intent/recipient/recipient_pb.js +0 -59
  88. package/lib/index.d.ts +0 -11
  89. package/lib/index.js +0 -10
  90. package/lib/service/node.d.ts +0 -2
  91. /package/lib/{client → cjs/client}/client.d.ts +0 -0
  92. /package/lib/{common → cjs/common}/gen/tzero/v1/common/common_pb.d.ts +0 -0
  93. /package/lib/{common → cjs/common}/gen/tzero/v1/public/public_pb.d.ts +0 -0
  94. /package/lib/{common → cjs/common}/headers.d.ts +0 -0
  95. /package/lib/{client → esm/client}/signer.js +0 -0
  96. /package/lib/{common → esm/common}/headers.js +0 -0
  97. /package/lib/{service → esm/service}/node.js +0 -0
@@ -1,25 +1,25 @@
1
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";
2
+ import type { Decimal } from "../common/common_pb.js";
3
+ import type { PaymentMethodType } from "../common/payment_method_pb.js";
4
4
  import type { Timestamp } from "@bufbuild/protobuf/wkt";
5
5
  import type { Message } from "@bufbuild/protobuf";
6
6
  /**
7
- * Describes the file network/network.proto.
7
+ * Describes the file tzero/v1/payment/network.proto.
8
8
  */
9
- export declare const file_network_network: GenFile;
9
+ export declare const file_tzero_v1_payment_network: GenFile;
10
10
  /**
11
11
  *
12
12
  * Base currency is always USD, so the quotes are always in USD/currency format.
13
13
  *
14
- * @generated from message tzero.v1.network.UpdateQuoteRequest
14
+ * @generated from message tzero.v1.payment.UpdateQuoteRequest
15
15
  */
16
- export type UpdateQuoteRequest = Message<"tzero.v1.network.UpdateQuoteRequest"> & {
16
+ export type UpdateQuoteRequest = Message<"tzero.v1.payment.UpdateQuoteRequest"> & {
17
17
  /**
18
18
  * *
19
19
  * Zero or more quotes for pay-out operations, each quote must have a unique currency, and one or more bands, with the
20
20
  * unique client_quote_id for each band.
21
21
  *
22
- * @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;
23
23
  */
24
24
  payOut: UpdateQuoteRequest_Quote[];
25
25
  /**
@@ -27,19 +27,19 @@ export type UpdateQuoteRequest = Message<"tzero.v1.network.UpdateQuoteRequest">
27
27
  * Zero or more quotes for pay-in operations, each quote must have a unique currency, and one or more bands, with the
28
28
  * unique client_quote_id for each band.
29
29
  *
30
- * @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;
31
31
  */
32
32
  payIn: UpdateQuoteRequest_Quote[];
33
33
  };
34
34
  /**
35
- * Describes the message tzero.v1.network.UpdateQuoteRequest.
35
+ * Describes the message tzero.v1.payment.UpdateQuoteRequest.
36
36
  * Use `create(UpdateQuoteRequestSchema)` to create a new message.
37
37
  */
38
38
  export declare const UpdateQuoteRequestSchema: GenMessage<UpdateQuoteRequest>;
39
39
  /**
40
- * @generated from message tzero.v1.network.UpdateQuoteRequest.Quote
40
+ * @generated from message tzero.v1.payment.UpdateQuoteRequest.Quote
41
41
  */
42
- export type UpdateQuoteRequest_Quote = Message<"tzero.v1.network.UpdateQuoteRequest.Quote"> & {
42
+ export type UpdateQuoteRequest_Quote = Message<"tzero.v1.payment.UpdateQuoteRequest.Quote"> & {
43
43
  /**
44
44
  * BRL, EUR, GBP, etc. (ISO 4217 currency code)
45
45
  *
@@ -49,7 +49,7 @@ export type UpdateQuoteRequest_Quote = Message<"tzero.v1.network.UpdateQuoteRequ
49
49
  /**
50
50
  * type of the quote, e.g. real-time or guaranteed
51
51
  *
52
- * @generated from field: tzero.v1.network.QuoteType quote_type = 20;
52
+ * @generated from field: tzero.v1.payment.QuoteType quote_type = 20;
53
53
  */
54
54
  quoteType: QuoteType;
55
55
  /**
@@ -59,7 +59,7 @@ export type UpdateQuoteRequest_Quote = Message<"tzero.v1.network.UpdateQuoteRequ
59
59
  /**
60
60
  * list of bands for this quote
61
61
  *
62
- * @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;
63
63
  */
64
64
  bands: UpdateQuoteRequest_Quote_Band[];
65
65
  /**
@@ -76,14 +76,14 @@ export type UpdateQuoteRequest_Quote = Message<"tzero.v1.network.UpdateQuoteRequ
76
76
  timestamp?: Timestamp;
77
77
  };
78
78
  /**
79
- * Describes the message tzero.v1.network.UpdateQuoteRequest.Quote.
79
+ * Describes the message tzero.v1.payment.UpdateQuoteRequest.Quote.
80
80
  * Use `create(UpdateQuoteRequest_QuoteSchema)` to create a new message.
81
81
  */
82
82
  export declare const UpdateQuoteRequest_QuoteSchema: GenMessage<UpdateQuoteRequest_Quote>;
83
83
  /**
84
- * @generated from message tzero.v1.network.UpdateQuoteRequest.Quote.Band
84
+ * @generated from message tzero.v1.payment.UpdateQuoteRequest.Quote.Band
85
85
  */
86
- 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"> & {
87
87
  /**
88
88
  * unique client generated id for this band
89
89
  *
@@ -104,23 +104,23 @@ export type UpdateQuoteRequest_Quote_Band = Message<"tzero.v1.network.UpdateQuot
104
104
  rate?: Decimal;
105
105
  };
106
106
  /**
107
- * Describes the message tzero.v1.network.UpdateQuoteRequest.Quote.Band.
107
+ * Describes the message tzero.v1.payment.UpdateQuoteRequest.Quote.Band.
108
108
  * Use `create(UpdateQuoteRequest_Quote_BandSchema)` to create a new message.
109
109
  */
110
110
  export declare const UpdateQuoteRequest_Quote_BandSchema: GenMessage<UpdateQuoteRequest_Quote_Band>;
111
111
  /**
112
- * @generated from message tzero.v1.network.UpdateQuoteResponse
112
+ * @generated from message tzero.v1.payment.UpdateQuoteResponse
113
113
  */
114
- export type UpdateQuoteResponse = Message<"tzero.v1.network.UpdateQuoteResponse"> & {};
114
+ export type UpdateQuoteResponse = Message<"tzero.v1.payment.UpdateQuoteResponse"> & {};
115
115
  /**
116
- * Describes the message tzero.v1.network.UpdateQuoteResponse.
116
+ * Describes the message tzero.v1.payment.UpdateQuoteResponse.
117
117
  * Use `create(UpdateQuoteResponseSchema)` to create a new message.
118
118
  */
119
119
  export declare const UpdateQuoteResponseSchema: GenMessage<UpdateQuoteResponse>;
120
120
  /**
121
- * @generated from message tzero.v1.network.GetPayoutQuoteRequest
121
+ * @generated from message tzero.v1.payment.GetPayoutQuoteRequest
122
122
  */
123
- export type GetPayoutQuoteRequest = Message<"tzero.v1.network.GetPayoutQuoteRequest"> & {
123
+ export type GetPayoutQuoteRequest = Message<"tzero.v1.payment.GetPayoutQuoteRequest"> & {
124
124
  /**
125
125
  * ISO 4217 currency code, e.g. EUR, GBP, etc. in which the payout should be made
126
126
  *
@@ -136,19 +136,19 @@ export type GetPayoutQuoteRequest = Message<"tzero.v1.network.GetPayoutQuoteRequ
136
136
  /**
137
137
  * type of the quote, e.g. real-time or guaranteed
138
138
  *
139
- * @generated from field: tzero.v1.network.QuoteType quote_type = 30;
139
+ * @generated from field: tzero.v1.payment.QuoteType quote_type = 30;
140
140
  */
141
141
  quoteType: QuoteType;
142
142
  };
143
143
  /**
144
- * Describes the message tzero.v1.network.GetPayoutQuoteRequest.
144
+ * Describes the message tzero.v1.payment.GetPayoutQuoteRequest.
145
145
  * Use `create(GetPayoutQuoteRequestSchema)` to create a new message.
146
146
  */
147
147
  export declare const GetPayoutQuoteRequestSchema: GenMessage<GetPayoutQuoteRequest>;
148
148
  /**
149
- * @generated from message tzero.v1.network.GetPayoutQuoteResponse
149
+ * @generated from message tzero.v1.payment.GetPayoutQuoteResponse
150
150
  */
151
- export type GetPayoutQuoteResponse = Message<"tzero.v1.network.GetPayoutQuoteResponse"> & {
151
+ export type GetPayoutQuoteResponse = Message<"tzero.v1.payment.GetPayoutQuoteResponse"> & {
152
152
  /**
153
153
  * rate in USD/currency, e.g. 1.2345 for 1 USD = 1.2345 EUR
154
154
  *
@@ -162,19 +162,19 @@ export type GetPayoutQuoteResponse = Message<"tzero.v1.network.GetPayoutQuoteRes
162
162
  */
163
163
  expiration?: Timestamp;
164
164
  /**
165
- * @generated from field: tzero.v1.network.QuoteId quote_id = 30;
165
+ * @generated from field: tzero.v1.payment.QuoteId quote_id = 30;
166
166
  */
167
167
  quoteId?: QuoteId;
168
168
  };
169
169
  /**
170
- * Describes the message tzero.v1.network.GetPayoutQuoteResponse.
170
+ * Describes the message tzero.v1.payment.GetPayoutQuoteResponse.
171
171
  * Use `create(GetPayoutQuoteResponseSchema)` to create a new message.
172
172
  */
173
173
  export declare const GetPayoutQuoteResponseSchema: GenMessage<GetPayoutQuoteResponse>;
174
174
  /**
175
- * @generated from message tzero.v1.network.CreatePaymentRequest
175
+ * @generated from message tzero.v1.payment.CreatePaymentRequest
176
176
  */
177
- export type CreatePaymentRequest = Message<"tzero.v1.network.CreatePaymentRequest"> & {
177
+ export type CreatePaymentRequest = Message<"tzero.v1.payment.CreatePaymentRequest"> & {
178
178
  /**
179
179
  * unique client generated id for this payment
180
180
  *
@@ -202,13 +202,13 @@ export type CreatePaymentRequest = Message<"tzero.v1.network.CreatePaymentReques
202
202
  /**
203
203
  * optional or option in the oneof?
204
204
  *
205
- * @generated from field: tzero.v1.network.CreatePaymentRequest.Sender sender = 50;
205
+ * @generated from field: tzero.v1.payment.CreatePaymentRequest.Sender sender = 50;
206
206
  */
207
207
  sender?: CreatePaymentRequest_Sender;
208
208
  /**
209
209
  * optional or option in the oneof?
210
210
  *
211
- * @generated from field: tzero.v1.network.CreatePaymentRequest.Recipient recipient = 60;
211
+ * @generated from field: tzero.v1.payment.CreatePaymentRequest.Recipient recipient = 60;
212
212
  */
213
213
  recipient?: CreatePaymentRequest_Recipient;
214
214
  /**
@@ -220,27 +220,27 @@ export type CreatePaymentRequest = Message<"tzero.v1.network.CreatePaymentReques
220
220
  /**
221
221
  * if specified, must be a valid quoteId that was previously returned by the GetPayoutQuote method
222
222
  *
223
- * @generated from field: optional tzero.v1.network.QuoteId quote_id = 100;
223
+ * @generated from field: optional tzero.v1.payment.QuoteId quote_id = 100;
224
224
  */
225
225
  quoteId?: QuoteId;
226
226
  };
227
227
  /**
228
- * Describes the message tzero.v1.network.CreatePaymentRequest.
228
+ * Describes the message tzero.v1.payment.CreatePaymentRequest.
229
229
  * Use `create(CreatePaymentRequestSchema)` to create a new message.
230
230
  */
231
231
  export declare const CreatePaymentRequestSchema: GenMessage<CreatePaymentRequest>;
232
232
  /**
233
233
  * Work in progress
234
234
  *
235
- * @generated from message tzero.v1.network.CreatePaymentRequest.Sender
235
+ * @generated from message tzero.v1.payment.CreatePaymentRequest.Sender
236
236
  */
237
- export type CreatePaymentRequest_Sender = Message<"tzero.v1.network.CreatePaymentRequest.Sender"> & {
237
+ export type CreatePaymentRequest_Sender = Message<"tzero.v1.payment.CreatePaymentRequest.Sender"> & {
238
238
  /**
239
- * @generated from oneof tzero.v1.network.CreatePaymentRequest.Sender.sender
239
+ * @generated from oneof tzero.v1.payment.CreatePaymentRequest.Sender.sender
240
240
  */
241
241
  sender: {
242
242
  /**
243
- * @generated from field: tzero.v1.network.CreatePaymentRequest.PrivatePerson private_person = 10;
243
+ * @generated from field: tzero.v1.payment.CreatePaymentRequest.PrivatePerson private_person = 10;
244
244
  */
245
245
  value: CreatePaymentRequest_PrivatePerson;
246
246
  case: "privatePerson";
@@ -250,22 +250,22 @@ export type CreatePaymentRequest_Sender = Message<"tzero.v1.network.CreatePaymen
250
250
  };
251
251
  };
252
252
  /**
253
- * Describes the message tzero.v1.network.CreatePaymentRequest.Sender.
253
+ * Describes the message tzero.v1.payment.CreatePaymentRequest.Sender.
254
254
  * Use `create(CreatePaymentRequest_SenderSchema)` to create a new message.
255
255
  */
256
256
  export declare const CreatePaymentRequest_SenderSchema: GenMessage<CreatePaymentRequest_Sender>;
257
257
  /**
258
258
  * Work in progress
259
259
  *
260
- * @generated from message tzero.v1.network.CreatePaymentRequest.Recipient
260
+ * @generated from message tzero.v1.payment.CreatePaymentRequest.Recipient
261
261
  */
262
- export type CreatePaymentRequest_Recipient = Message<"tzero.v1.network.CreatePaymentRequest.Recipient"> & {
262
+ export type CreatePaymentRequest_Recipient = Message<"tzero.v1.payment.CreatePaymentRequest.Recipient"> & {
263
263
  /**
264
- * @generated from oneof tzero.v1.network.CreatePaymentRequest.Recipient.recipient
264
+ * @generated from oneof tzero.v1.payment.CreatePaymentRequest.Recipient.recipient
265
265
  */
266
266
  recipient: {
267
267
  /**
268
- * @generated from field: tzero.v1.network.CreatePaymentRequest.PrivatePerson private_person = 10;
268
+ * @generated from field: tzero.v1.payment.CreatePaymentRequest.PrivatePerson private_person = 10;
269
269
  */
270
270
  value: CreatePaymentRequest_PrivatePerson;
271
271
  case: "privatePerson";
@@ -275,16 +275,16 @@ export type CreatePaymentRequest_Recipient = Message<"tzero.v1.network.CreatePay
275
275
  };
276
276
  };
277
277
  /**
278
- * Describes the message tzero.v1.network.CreatePaymentRequest.Recipient.
278
+ * Describes the message tzero.v1.payment.CreatePaymentRequest.Recipient.
279
279
  * Use `create(CreatePaymentRequest_RecipientSchema)` to create a new message.
280
280
  */
281
281
  export declare const CreatePaymentRequest_RecipientSchema: GenMessage<CreatePaymentRequest_Recipient>;
282
282
  /**
283
283
  * Work in progress
284
284
  *
285
- * @generated from message tzero.v1.network.CreatePaymentRequest.PrivatePerson
285
+ * @generated from message tzero.v1.payment.CreatePaymentRequest.PrivatePerson
286
286
  */
287
- export type CreatePaymentRequest_PrivatePerson = Message<"tzero.v1.network.CreatePaymentRequest.PrivatePerson"> & {
287
+ export type CreatePaymentRequest_PrivatePerson = Message<"tzero.v1.payment.CreatePaymentRequest.PrivatePerson"> & {
288
288
  /**
289
289
  * @generated from field: string private_person_client_id = 10;
290
290
  */
@@ -299,14 +299,14 @@ export type CreatePaymentRequest_PrivatePerson = Message<"tzero.v1.network.Creat
299
299
  lastName: string;
300
300
  };
301
301
  /**
302
- * Describes the message tzero.v1.network.CreatePaymentRequest.PrivatePerson.
302
+ * Describes the message tzero.v1.payment.CreatePaymentRequest.PrivatePerson.
303
303
  * Use `create(CreatePaymentRequest_PrivatePersonSchema)` to create a new message.
304
304
  */
305
305
  export declare const CreatePaymentRequest_PrivatePersonSchema: GenMessage<CreatePaymentRequest_PrivatePerson>;
306
306
  /**
307
- * @generated from message tzero.v1.network.QuoteId
307
+ * @generated from message tzero.v1.payment.QuoteId
308
308
  */
309
- export type QuoteId = Message<"tzero.v1.network.QuoteId"> & {
309
+ export type QuoteId = Message<"tzero.v1.payment.QuoteId"> & {
310
310
  /**
311
311
  * unique identifier of the quote within the specified provider
312
312
  *
@@ -321,14 +321,14 @@ export type QuoteId = Message<"tzero.v1.network.QuoteId"> & {
321
321
  providerId: number;
322
322
  };
323
323
  /**
324
- * Describes the message tzero.v1.network.QuoteId.
324
+ * Describes the message tzero.v1.payment.QuoteId.
325
325
  * Use `create(QuoteIdSchema)` to create a new message.
326
326
  */
327
327
  export declare const QuoteIdSchema: GenMessage<QuoteId>;
328
328
  /**
329
- * @generated from message tzero.v1.network.CreatePaymentResponse
329
+ * @generated from message tzero.v1.payment.CreatePaymentResponse
330
330
  */
331
- export type CreatePaymentResponse = Message<"tzero.v1.network.CreatePaymentResponse"> & {
331
+ export type CreatePaymentResponse = Message<"tzero.v1.payment.CreatePaymentResponse"> & {
332
332
  /**
333
333
  * client generated id supplied in the request
334
334
  *
@@ -336,7 +336,7 @@ export type CreatePaymentResponse = Message<"tzero.v1.network.CreatePaymentRespo
336
336
  */
337
337
  paymentClientId: string;
338
338
  /**
339
- * @generated from oneof tzero.v1.network.CreatePaymentResponse.result
339
+ * @generated from oneof tzero.v1.payment.CreatePaymentResponse.result
340
340
  */
341
341
  result: {
342
342
  /**
@@ -344,7 +344,7 @@ export type CreatePaymentResponse = Message<"tzero.v1.network.CreatePaymentRespo
344
344
  * Success response - means the payment was accepted, but the payout is not yet completed. This means, the network found
345
345
  * a suitable quote for the payout currency and amount, and instructed the payout provider to process the payout.
346
346
  *
347
- * @generated from field: tzero.v1.network.CreatePaymentResponse.Success success = 20;
347
+ * @generated from field: tzero.v1.payment.CreatePaymentResponse.Success success = 20;
348
348
  */
349
349
  value: CreatePaymentResponse_Success;
350
350
  case: "success";
@@ -354,7 +354,7 @@ export type CreatePaymentResponse = Message<"tzero.v1.network.CreatePaymentRespo
354
354
  * Failure response - means the payment was not accepted, e.g. the network could not find a suitable quote for the
355
355
  * payout currency and amount, or the credit limit is exceeded for the available quotes.
356
356
  *
357
- * @generated from field: tzero.v1.network.CreatePaymentResponse.Failure failure = 30;
357
+ * @generated from field: tzero.v1.payment.CreatePaymentResponse.Failure failure = 30;
358
358
  */
359
359
  value: CreatePaymentResponse_Failure;
360
360
  case: "failure";
@@ -364,14 +364,14 @@ export type CreatePaymentResponse = Message<"tzero.v1.network.CreatePaymentRespo
364
364
  };
365
365
  };
366
366
  /**
367
- * Describes the message tzero.v1.network.CreatePaymentResponse.
367
+ * Describes the message tzero.v1.payment.CreatePaymentResponse.
368
368
  * Use `create(CreatePaymentResponseSchema)` to create a new message.
369
369
  */
370
370
  export declare const CreatePaymentResponseSchema: GenMessage<CreatePaymentResponse>;
371
371
  /**
372
- * @generated from message tzero.v1.network.CreatePaymentResponse.Success
372
+ * @generated from message tzero.v1.payment.CreatePaymentResponse.Success
373
373
  */
374
- export type CreatePaymentResponse_Success = Message<"tzero.v1.network.CreatePaymentResponse.Success"> & {
374
+ export type CreatePaymentResponse_Success = Message<"tzero.v1.payment.CreatePaymentResponse.Success"> & {
375
375
  /**
376
376
  * payment id assigned by the network
377
377
  *
@@ -380,21 +380,21 @@ export type CreatePaymentResponse_Success = Message<"tzero.v1.network.CreatePaym
380
380
  paymentId: bigint;
381
381
  };
382
382
  /**
383
- * Describes the message tzero.v1.network.CreatePaymentResponse.Success.
383
+ * Describes the message tzero.v1.payment.CreatePaymentResponse.Success.
384
384
  * Use `create(CreatePaymentResponse_SuccessSchema)` to create a new message.
385
385
  */
386
386
  export declare const CreatePaymentResponse_SuccessSchema: GenMessage<CreatePaymentResponse_Success>;
387
387
  /**
388
- * @generated from message tzero.v1.network.CreatePaymentResponse.Failure
388
+ * @generated from message tzero.v1.payment.CreatePaymentResponse.Failure
389
389
  */
390
- export type CreatePaymentResponse_Failure = Message<"tzero.v1.network.CreatePaymentResponse.Failure"> & {};
390
+ export type CreatePaymentResponse_Failure = Message<"tzero.v1.payment.CreatePaymentResponse.Failure"> & {};
391
391
  /**
392
- * Describes the message tzero.v1.network.CreatePaymentResponse.Failure.
392
+ * Describes the message tzero.v1.payment.CreatePaymentResponse.Failure.
393
393
  * Use `create(CreatePaymentResponse_FailureSchema)` to create a new message.
394
394
  */
395
395
  export declare const CreatePaymentResponse_FailureSchema: GenMessage<CreatePaymentResponse_Failure>;
396
396
  /**
397
- * @generated from enum tzero.v1.network.CreatePaymentResponse.Failure.Reason
397
+ * @generated from enum tzero.v1.payment.CreatePaymentResponse.Failure.Reason
398
398
  */
399
399
  export declare enum CreatePaymentResponse_Failure_Reason {
400
400
  /**
@@ -403,13 +403,13 @@ export declare enum CreatePaymentResponse_Failure_Reason {
403
403
  UNSPECIFIED = 0
404
404
  }
405
405
  /**
406
- * Describes the enum tzero.v1.network.CreatePaymentResponse.Failure.Reason.
406
+ * Describes the enum tzero.v1.payment.CreatePaymentResponse.Failure.Reason.
407
407
  */
408
408
  export declare const CreatePaymentResponse_Failure_ReasonSchema: GenEnum<CreatePaymentResponse_Failure_Reason>;
409
409
  /**
410
- * @generated from message tzero.v1.network.UpdatePayoutRequest
410
+ * @generated from message tzero.v1.payment.UpdatePayoutRequest
411
411
  */
412
- export type UpdatePayoutRequest = Message<"tzero.v1.network.UpdatePayoutRequest"> & {
412
+ export type UpdatePayoutRequest = Message<"tzero.v1.payment.UpdatePayoutRequest"> & {
413
413
  /**
414
414
  * payment id assigned by the network, this is the same payment id that was provided in the PayoutRequest
415
415
  *
@@ -423,13 +423,13 @@ export type UpdatePayoutRequest = Message<"tzero.v1.network.UpdatePayoutRequest"
423
423
  */
424
424
  payoutId: bigint;
425
425
  /**
426
- * @generated from oneof tzero.v1.network.UpdatePayoutRequest.result
426
+ * @generated from oneof tzero.v1.payment.UpdatePayoutRequest.result
427
427
  */
428
428
  result: {
429
429
  /**
430
430
  * success response with the details of the payout
431
431
  *
432
- * @generated from field: tzero.v1.network.UpdatePayoutRequest.Success success = 30;
432
+ * @generated from field: tzero.v1.payment.UpdatePayoutRequest.Success success = 30;
433
433
  */
434
434
  value: UpdatePayoutRequest_Success;
435
435
  case: "success";
@@ -437,7 +437,7 @@ export type UpdatePayoutRequest = Message<"tzero.v1.network.UpdatePayoutRequest"
437
437
  /**
438
438
  * failure response with the reason of the failure
439
439
  *
440
- * @generated from field: tzero.v1.network.UpdatePayoutRequest.Failure failure = 40;
440
+ * @generated from field: tzero.v1.payment.UpdatePayoutRequest.Failure failure = 40;
441
441
  */
442
442
  value: UpdatePayoutRequest_Failure;
443
443
  case: "failure";
@@ -447,39 +447,39 @@ export type UpdatePayoutRequest = Message<"tzero.v1.network.UpdatePayoutRequest"
447
447
  };
448
448
  };
449
449
  /**
450
- * Describes the message tzero.v1.network.UpdatePayoutRequest.
450
+ * Describes the message tzero.v1.payment.UpdatePayoutRequest.
451
451
  * Use `create(UpdatePayoutRequestSchema)` to create a new message.
452
452
  */
453
453
  export declare const UpdatePayoutRequestSchema: GenMessage<UpdatePayoutRequest>;
454
454
  /**
455
- * @generated from message tzero.v1.network.UpdatePayoutRequest.Success
455
+ * @generated from message tzero.v1.payment.UpdatePayoutRequest.Success
456
456
  */
457
- export type UpdatePayoutRequest_Success = Message<"tzero.v1.network.UpdatePayoutRequest.Success"> & {};
457
+ export type UpdatePayoutRequest_Success = Message<"tzero.v1.payment.UpdatePayoutRequest.Success"> & {};
458
458
  /**
459
- * Describes the message tzero.v1.network.UpdatePayoutRequest.Success.
459
+ * Describes the message tzero.v1.payment.UpdatePayoutRequest.Success.
460
460
  * Use `create(UpdatePayoutRequest_SuccessSchema)` to create a new message.
461
461
  */
462
462
  export declare const UpdatePayoutRequest_SuccessSchema: GenMessage<UpdatePayoutRequest_Success>;
463
463
  /**
464
- * @generated from message tzero.v1.network.UpdatePayoutRequest.Failure
464
+ * @generated from message tzero.v1.payment.UpdatePayoutRequest.Failure
465
465
  */
466
- export type UpdatePayoutRequest_Failure = Message<"tzero.v1.network.UpdatePayoutRequest.Failure"> & {};
466
+ export type UpdatePayoutRequest_Failure = Message<"tzero.v1.payment.UpdatePayoutRequest.Failure"> & {};
467
467
  /**
468
- * Describes the message tzero.v1.network.UpdatePayoutRequest.Failure.
468
+ * Describes the message tzero.v1.payment.UpdatePayoutRequest.Failure.
469
469
  * Use `create(UpdatePayoutRequest_FailureSchema)` to create a new message.
470
470
  */
471
471
  export declare const UpdatePayoutRequest_FailureSchema: GenMessage<UpdatePayoutRequest_Failure>;
472
472
  /**
473
- * @generated from message tzero.v1.network.UpdatePayoutResponse
473
+ * @generated from message tzero.v1.payment.UpdatePayoutResponse
474
474
  */
475
- export type UpdatePayoutResponse = Message<"tzero.v1.network.UpdatePayoutResponse"> & {};
475
+ export type UpdatePayoutResponse = Message<"tzero.v1.payment.UpdatePayoutResponse"> & {};
476
476
  /**
477
- * Describes the message tzero.v1.network.UpdatePayoutResponse.
477
+ * Describes the message tzero.v1.payment.UpdatePayoutResponse.
478
478
  * Use `create(UpdatePayoutResponseSchema)` to create a new message.
479
479
  */
480
480
  export declare const UpdatePayoutResponseSchema: GenMessage<UpdatePayoutResponse>;
481
481
  /**
482
- * @generated from enum tzero.v1.network.QuoteType
482
+ * @generated from enum tzero.v1.payment.QuoteType
483
483
  */
484
484
  export declare enum QuoteType {
485
485
  /**
@@ -494,7 +494,7 @@ export declare enum QuoteType {
494
494
  REALTIME = 1
495
495
  }
496
496
  /**
497
- * Describes the enum tzero.v1.network.QuoteType.
497
+ * Describes the enum tzero.v1.payment.QuoteType.
498
498
  */
499
499
  export declare const QuoteTypeSchema: GenEnum<QuoteType>;
500
500
  /**
@@ -503,7 +503,7 @@ export declare const QuoteTypeSchema: GenEnum<QuoteType>;
503
503
  *
504
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
505
  *
506
- * @generated from service tzero.v1.network.NetworkService
506
+ * @generated from service tzero.v1.payment.NetworkService
507
507
  */
508
508
  export declare const NetworkService: GenService<{
509
509
  /**
@@ -512,7 +512,7 @@ export declare const NetworkService: GenService<{
512
512
  * These quotes include tiered pricing bands and an expiration timestamp.
513
513
  * This method is idempotent, meaning that multiple calls with the same parameters will have no additional effect.
514
514
  *
515
- * @generated from rpc tzero.v1.network.NetworkService.UpdateQuote
515
+ * @generated from rpc tzero.v1.payment.NetworkService.UpdateQuote
516
516
  */
517
517
  updateQuote: {
518
518
  methodKind: "unary";
@@ -524,7 +524,7 @@ export declare const NetworkService: GenService<{
524
524
  * Request the best available quote for a payout in a specific currency, for a given amount.
525
525
  * If the payout quote exists, but the credit limit is exceeded, this quote will not be considered.
526
526
  *
527
- * @generated from rpc tzero.v1.network.NetworkService.GetPayoutQuote
527
+ * @generated from rpc tzero.v1.payment.NetworkService.GetPayoutQuote
528
528
  */
529
529
  getPayoutQuote: {
530
530
  methodKind: "unary";
@@ -544,7 +544,7 @@ export declare const NetworkService: GenService<{
544
544
  * same way as GetPayoutQuote rpc.
545
545
  * This method is idempotent, meaning that multiple calls with the same parameters will have no additional effect.
546
546
  *
547
- * @generated from rpc tzero.v1.network.NetworkService.CreatePayment
547
+ * @generated from rpc tzero.v1.payment.NetworkService.CreatePayment
548
548
  */
549
549
  createPayment: {
550
550
  methodKind: "unary";
@@ -557,7 +557,7 @@ export declare const NetworkService: GenService<{
557
557
  * provider, specifying the payment ID and payout ID, which was provided when the payout request was made to this provider.
558
558
  * This method is idempotent, meaning that multiple calls with the same parameters will have no additional effect.
559
559
  *
560
- * @generated from rpc tzero.v1.network.NetworkService.UpdatePayout
560
+ * @generated from rpc tzero.v1.payment.NetworkService.UpdatePayout
561
561
  */
562
562
  updatePayout: {
563
563
  methodKind: "unary";
@@ -1,9 +1,9 @@
1
- // @generated by protoc-gen-es v2.6.2 with parameter "target=ts"
1
+ // @generated by protoc-gen-es v2.6.2 with parameter "target=ts,import_extension=js"
2
2
  // @generated from file tzero/v1/payment/network.proto (package tzero.v1.payment, syntax proto3)
3
3
  /* eslint-disable */
4
4
  import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
5
- import { file_tzero_v1_common_common } from "../common/common_pb";
6
- import { file_tzero_v1_common_payment_method } from "../common/payment_method_pb";
5
+ import { file_tzero_v1_common_common } from "../common/common_pb.js";
6
+ import { file_tzero_v1_common_payment_method } from "../common/payment_method_pb.js";
7
7
  import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
8
8
  /**
9
9
  * Describes the file tzero/v1/payment/network.proto.