@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,401 @@
1
+ import type { 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_intent/recipient/recipient.proto.
9
+ */
10
+ export declare const file_tzero_v1_payment_intent_recipient_recipient: GenFile;
11
+ /**
12
+ * @generated from message tzero.v1.payment_intent.recipient.CreatePaymentIntentRequest
13
+ */
14
+ export type CreatePaymentIntentRequest = Message<"tzero.v1.payment_intent.recipient.CreatePaymentIntentRequest"> & {
15
+ /**
16
+ * *
17
+ * Idempotency Key
18
+ * payment reference to identify payment by client.
19
+ *
20
+ * @generated from field: string payment_reference = 10;
21
+ */
22
+ paymentReference: string;
23
+ /**
24
+ * *
25
+ * Pay-in currency
26
+ *
27
+ * @generated from field: string pay_in_currency = 20;
28
+ */
29
+ payInCurrency: string;
30
+ /**
31
+ * *
32
+ * Amount denominated in the pay-in currency
33
+ *
34
+ * @generated from field: tzero.v1.common.Decimal pay_in_amount = 30;
35
+ */
36
+ payInAmount?: Decimal;
37
+ /**
38
+ * *
39
+ * Payout currency
40
+ *
41
+ * @generated from field: string pay_out_currency = 40;
42
+ */
43
+ payOutCurrency: string;
44
+ /**
45
+ * *
46
+ * Payout payment method
47
+ *
48
+ * @generated from field: tzero.v1.common.PaymentMethod pay_out_method = 50;
49
+ */
50
+ payOutMethod?: PaymentMethod;
51
+ };
52
+ /**
53
+ * Describes the message tzero.v1.payment_intent.recipient.CreatePaymentIntentRequest.
54
+ * Use `create(CreatePaymentIntentRequestSchema)` to create a new message.
55
+ */
56
+ export declare const CreatePaymentIntentRequestSchema: GenMessage<CreatePaymentIntentRequest>;
57
+ /**
58
+ * @generated from message tzero.v1.payment_intent.recipient.CreatePaymentIntentResponse
59
+ */
60
+ export type CreatePaymentIntentResponse = Message<"tzero.v1.payment_intent.recipient.CreatePaymentIntentResponse"> & {
61
+ /**
62
+ * Payment intent ID must be positive
63
+ *
64
+ * @generated from field: uint64 payment_intent_id = 10;
65
+ */
66
+ paymentIntentId: bigint;
67
+ /**
68
+ * At least one payment method should be provided
69
+ *
70
+ * @generated from field: repeated tzero.v1.payment_intent.recipient.CreatePaymentIntentResponse.PaymentMethod pay_in_payment_methods = 20;
71
+ */
72
+ payInPaymentMethods: CreatePaymentIntentResponse_PaymentMethod[];
73
+ };
74
+ /**
75
+ * Describes the message tzero.v1.payment_intent.recipient.CreatePaymentIntentResponse.
76
+ * Use `create(CreatePaymentIntentResponseSchema)` to create a new message.
77
+ */
78
+ export declare const CreatePaymentIntentResponseSchema: GenMessage<CreatePaymentIntentResponse>;
79
+ /**
80
+ * @generated from message tzero.v1.payment_intent.recipient.CreatePaymentIntentResponse.PaymentMethod
81
+ */
82
+ export type CreatePaymentIntentResponse_PaymentMethod = Message<"tzero.v1.payment_intent.recipient.CreatePaymentIntentResponse.PaymentMethod"> & {
83
+ /**
84
+ * Payment URL must be a valid URL
85
+ *
86
+ * @generated from field: string payment_url = 10;
87
+ */
88
+ paymentUrl: string;
89
+ /**
90
+ * Provider ID must be positive
91
+ *
92
+ * @generated from field: uint32 provider_id = 20;
93
+ */
94
+ providerId: number;
95
+ /**
96
+ * Payment method must be specified
97
+ *
98
+ * @generated from field: tzero.v1.common.PaymentMethodType payment_method = 30;
99
+ */
100
+ paymentMethod: PaymentMethodType;
101
+ };
102
+ /**
103
+ * Describes the message tzero.v1.payment_intent.recipient.CreatePaymentIntentResponse.PaymentMethod.
104
+ * Use `create(CreatePaymentIntentResponse_PaymentMethodSchema)` to create a new message.
105
+ */
106
+ export declare const CreatePaymentIntentResponse_PaymentMethodSchema: GenMessage<CreatePaymentIntentResponse_PaymentMethod>;
107
+ /**
108
+ * @generated from message tzero.v1.payment_intent.recipient.GetQuoteRequest
109
+ */
110
+ export type GetQuoteRequest = Message<"tzero.v1.payment_intent.recipient.GetQuoteRequest"> & {
111
+ /**
112
+ * *
113
+ * Pay-in currency
114
+ *
115
+ * @generated from field: string pay_in_currency = 10;
116
+ */
117
+ payInCurrency: string;
118
+ /**
119
+ * *
120
+ * Amount denominated in the pay-in currency
121
+ *
122
+ * @generated from field: tzero.v1.common.Decimal pay_in_amount = 20;
123
+ */
124
+ payInAmount?: Decimal;
125
+ /**
126
+ * *
127
+ * Payout currency
128
+ *
129
+ * @generated from field: string pay_out_currency = 30;
130
+ */
131
+ payOutCurrency: string;
132
+ /**
133
+ * *
134
+ * payment method to use for the pay-in, e.g. bank transfer, card, etc.
135
+ *
136
+ * @generated from field: tzero.v1.common.PaymentMethodType pay_in_payment_method = 40;
137
+ */
138
+ payInPaymentMethod: PaymentMethodType;
139
+ /**
140
+ * *
141
+ * payment method to use for the pay-out, e.g. bank transfer, card, etc.
142
+ *
143
+ * @generated from field: tzero.v1.common.PaymentMethodType pay_out_payment_method = 50;
144
+ */
145
+ payOutPaymentMethod: PaymentMethodType;
146
+ };
147
+ /**
148
+ * Describes the message tzero.v1.payment_intent.recipient.GetQuoteRequest.
149
+ * Use `create(GetQuoteRequestSchema)` to create a new message.
150
+ */
151
+ export declare const GetQuoteRequestSchema: GenMessage<GetQuoteRequest>;
152
+ /**
153
+ * @generated from message tzero.v1.payment_intent.recipient.GetQuoteResponse
154
+ */
155
+ export type GetQuoteResponse = Message<"tzero.v1.payment_intent.recipient.GetQuoteResponse"> & {
156
+ /**
157
+ * @generated from oneof tzero.v1.payment_intent.recipient.GetQuoteResponse.result
158
+ */
159
+ result: {
160
+ /**
161
+ * @generated from field: tzero.v1.payment_intent.recipient.GetQuoteResponse.Quote quote = 10;
162
+ */
163
+ value: GetQuoteResponse_Quote;
164
+ case: "quote";
165
+ } | {
166
+ /**
167
+ * @generated from field: tzero.v1.payment_intent.recipient.GetQuoteResponse.NotFound not_found = 20;
168
+ */
169
+ value: GetQuoteResponse_NotFound;
170
+ case: "notFound";
171
+ } | {
172
+ case: undefined;
173
+ value?: undefined;
174
+ };
175
+ };
176
+ /**
177
+ * Describes the message tzero.v1.payment_intent.recipient.GetQuoteResponse.
178
+ * Use `create(GetQuoteResponseSchema)` to create a new message.
179
+ */
180
+ export declare const GetQuoteResponseSchema: GenMessage<GetQuoteResponse>;
181
+ /**
182
+ * @generated from message tzero.v1.payment_intent.recipient.GetQuoteResponse.Quote
183
+ */
184
+ export type GetQuoteResponse_Quote = Message<"tzero.v1.payment_intent.recipient.GetQuoteResponse.Quote"> & {
185
+ /**
186
+ * *
187
+ * Rate of pay-in currency to pay-out
188
+ *
189
+ * @generated from field: tzero.v1.common.Decimal rate = 10;
190
+ */
191
+ rate?: Decimal;
192
+ /**
193
+ * *
194
+ * Time until when quote is valid. Used only for reference. Actual quote is determined at the moment of payment.
195
+ *
196
+ * @generated from field: google.protobuf.Timestamp expiration = 20;
197
+ */
198
+ expiration?: Timestamp;
199
+ };
200
+ /**
201
+ * Describes the message tzero.v1.payment_intent.recipient.GetQuoteResponse.Quote.
202
+ * Use `create(GetQuoteResponse_QuoteSchema)` to create a new message.
203
+ */
204
+ export declare const GetQuoteResponse_QuoteSchema: GenMessage<GetQuoteResponse_Quote>;
205
+ /**
206
+ * @generated from message tzero.v1.payment_intent.recipient.GetQuoteResponse.NotFound
207
+ */
208
+ export type GetQuoteResponse_NotFound = Message<"tzero.v1.payment_intent.recipient.GetQuoteResponse.NotFound"> & {};
209
+ /**
210
+ * Describes the message tzero.v1.payment_intent.recipient.GetQuoteResponse.NotFound.
211
+ * Use `create(GetQuoteResponse_NotFoundSchema)` to create a new message.
212
+ */
213
+ export declare const GetQuoteResponse_NotFoundSchema: GenMessage<GetQuoteResponse_NotFound>;
214
+ /**
215
+ * @generated from message tzero.v1.payment_intent.recipient.ConfirmPayInRequest
216
+ */
217
+ export type ConfirmPayInRequest = Message<"tzero.v1.payment_intent.recipient.ConfirmPayInRequest"> & {
218
+ /**
219
+ * payment_intent_id from the CreatePaymentIntentResponse
220
+ *
221
+ * @generated from field: uint64 payment_intent_id = 10;
222
+ */
223
+ paymentIntentId: bigint;
224
+ /**
225
+ * payment_reference from the CreatePaymentIntentRequest
226
+ *
227
+ * @generated from field: string payment_reference = 20;
228
+ */
229
+ paymentReference: string;
230
+ /**
231
+ * pay-in payment method
232
+ *
233
+ * @generated from field: tzero.v1.common.PaymentMethodType payment_method = 30;
234
+ */
235
+ paymentMethod: PaymentMethodType;
236
+ };
237
+ /**
238
+ * Describes the message tzero.v1.payment_intent.recipient.ConfirmPayInRequest.
239
+ * Use `create(ConfirmPayInRequestSchema)` to create a new message.
240
+ */
241
+ export declare const ConfirmPayInRequestSchema: GenMessage<ConfirmPayInRequest>;
242
+ /**
243
+ * @generated from message tzero.v1.payment_intent.recipient.ConfirmPayInResponse
244
+ */
245
+ export type ConfirmPayInResponse = Message<"tzero.v1.payment_intent.recipient.ConfirmPayInResponse"> & {};
246
+ /**
247
+ * Describes the message tzero.v1.payment_intent.recipient.ConfirmPayInResponse.
248
+ * Use `create(ConfirmPayInResponseSchema)` to create a new message.
249
+ */
250
+ export declare const ConfirmPayInResponseSchema: GenMessage<ConfirmPayInResponse>;
251
+ /**
252
+ * @generated from message tzero.v1.payment_intent.recipient.ConfirmPaymentRequest
253
+ */
254
+ export type ConfirmPaymentRequest = Message<"tzero.v1.payment_intent.recipient.ConfirmPaymentRequest"> & {
255
+ /**
256
+ * payment_intent_id from the CreatePaymentIntentResponse
257
+ *
258
+ * @generated from field: uint64 payment_intent_id = 10;
259
+ */
260
+ paymentIntentId: bigint;
261
+ /**
262
+ * payment_reference from the CreatePaymentIntentRequest
263
+ *
264
+ * @generated from field: string payment_reference = 20;
265
+ */
266
+ paymentReference: string;
267
+ /**
268
+ * pay-in payment method
269
+ *
270
+ * @generated from field: tzero.v1.common.PaymentMethodType payment_method = 30;
271
+ */
272
+ paymentMethod: PaymentMethodType;
273
+ /**
274
+ * *
275
+ * amount which will be paid out denominated in pay_out_currency of the payment intent
276
+ *
277
+ * @generated from field: tzero.v1.common.Decimal pay_out_amount = 40;
278
+ */
279
+ payOutAmount?: Decimal;
280
+ /**
281
+ * *
282
+ * Payment receipt might contain metadata about payment recognizable by pay-in provider.
283
+ *
284
+ * @generated from field: tzero.v1.common.PaymentReceipt receipt = 50;
285
+ */
286
+ receipt?: PaymentReceipt;
287
+ };
288
+ /**
289
+ * Describes the message tzero.v1.payment_intent.recipient.ConfirmPaymentRequest.
290
+ * Use `create(ConfirmPaymentRequestSchema)` to create a new message.
291
+ */
292
+ export declare const ConfirmPaymentRequestSchema: GenMessage<ConfirmPaymentRequest>;
293
+ /**
294
+ * @generated from message tzero.v1.payment_intent.recipient.ConfirmPaymentResponse
295
+ */
296
+ export type ConfirmPaymentResponse = Message<"tzero.v1.payment_intent.recipient.ConfirmPaymentResponse"> & {};
297
+ /**
298
+ * Describes the message tzero.v1.payment_intent.recipient.ConfirmPaymentResponse.
299
+ * Use `create(ConfirmPaymentResponseSchema)` to create a new message.
300
+ */
301
+ export declare const ConfirmPaymentResponseSchema: GenMessage<ConfirmPaymentResponse>;
302
+ /**
303
+ * @generated from message tzero.v1.payment_intent.recipient.RejectPaymentIntentRequest
304
+ */
305
+ export type RejectPaymentIntentRequest = Message<"tzero.v1.payment_intent.recipient.RejectPaymentIntentRequest"> & {
306
+ /**
307
+ * payment_intent_id from the CreatePaymentIntentResponse
308
+ *
309
+ * @generated from field: uint64 payment_intent_id = 10;
310
+ */
311
+ paymentIntentId: bigint;
312
+ /**
313
+ * payment_reference from the CreatePaymentIntentRequest
314
+ *
315
+ * @generated from field: string payment_reference = 20;
316
+ */
317
+ paymentReference: string;
318
+ /**
319
+ * @generated from field: string reason = 30;
320
+ */
321
+ reason: string;
322
+ };
323
+ /**
324
+ * Describes the message tzero.v1.payment_intent.recipient.RejectPaymentIntentRequest.
325
+ * Use `create(RejectPaymentIntentRequestSchema)` to create a new message.
326
+ */
327
+ export declare const RejectPaymentIntentRequestSchema: GenMessage<RejectPaymentIntentRequest>;
328
+ /**
329
+ * @generated from message tzero.v1.payment_intent.recipient.RejectPaymentIntentResponse
330
+ */
331
+ export type RejectPaymentIntentResponse = Message<"tzero.v1.payment_intent.recipient.RejectPaymentIntentResponse"> & {};
332
+ /**
333
+ * Describes the message tzero.v1.payment_intent.recipient.RejectPaymentIntentResponse.
334
+ * Use `create(RejectPaymentIntentResponseSchema)` to create a new message.
335
+ */
336
+ export declare const RejectPaymentIntentResponseSchema: GenMessage<RejectPaymentIntentResponse>;
337
+ /**
338
+ * *
339
+ * NetworkService is used by recipient to create a payment intents
340
+ *
341
+ * @generated from service tzero.v1.payment_intent.recipient.NetworkService
342
+ */
343
+ export declare const NetworkService: GenService<{
344
+ /**
345
+ * @generated from rpc tzero.v1.payment_intent.recipient.NetworkService.CreatePaymentIntent
346
+ */
347
+ createPaymentIntent: {
348
+ methodKind: "unary";
349
+ input: typeof CreatePaymentIntentRequestSchema;
350
+ output: typeof CreatePaymentIntentResponseSchema;
351
+ };
352
+ /**
353
+ * @generated from rpc tzero.v1.payment_intent.recipient.NetworkService.GetQuote
354
+ */
355
+ getQuote: {
356
+ methodKind: "unary";
357
+ input: typeof GetQuoteRequestSchema;
358
+ output: typeof GetQuoteResponseSchema;
359
+ };
360
+ }>;
361
+ /**
362
+ * *
363
+ * RecipientService is implemented by recipient in order to get updates on payment intents
364
+ *
365
+ * @generated from service tzero.v1.payment_intent.recipient.RecipientService
366
+ */
367
+ export declare const RecipientService: GenService<{
368
+ /**
369
+ * *
370
+ * notifies recipient that pay-in providers received payment from payer
371
+ *
372
+ * @generated from rpc tzero.v1.payment_intent.recipient.RecipientService.ConfirmPayIn
373
+ */
374
+ confirmPayIn: {
375
+ methodKind: "unary";
376
+ input: typeof ConfirmPayInRequestSchema;
377
+ output: typeof ConfirmPayInResponseSchema;
378
+ };
379
+ /**
380
+ * *
381
+ * notifies recipient about successful payment
382
+ *
383
+ * @generated from rpc tzero.v1.payment_intent.recipient.RecipientService.ConfirmPayment
384
+ */
385
+ confirmPayment: {
386
+ methodKind: "unary";
387
+ input: typeof ConfirmPaymentRequestSchema;
388
+ output: typeof ConfirmPaymentResponseSchema;
389
+ };
390
+ /**
391
+ * *
392
+ * notifies recipient about failed payment
393
+ *
394
+ * @generated from rpc tzero.v1.payment_intent.recipient.RecipientService.RejectPaymentIntent
395
+ */
396
+ rejectPaymentIntent: {
397
+ methodKind: "unary";
398
+ input: typeof RejectPaymentIntentRequestSchema;
399
+ output: typeof RejectPaymentIntentResponseSchema;
400
+ };
401
+ }>;
@@ -0,0 +1,92 @@
1
+ // @generated by protoc-gen-es v2.6.2 with parameter "target=ts,import_extension=js"
2
+ // @generated from file tzero/v1/payment_intent/recipient/recipient.proto (package tzero.v1.payment_intent.recipient, syntax proto3)
3
+ /* eslint-disable */
4
+ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
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
+ import { file_tzero_v1_common_payment_receipt } from "../../common/payment_receipt_pb.js";
8
+ import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
9
+ import { file_buf_validate_validate } from "../../../../buf/validate/validate_pb.js";
10
+ /**
11
+ * Describes the file tzero/v1/payment_intent/recipient/recipient.proto.
12
+ */
13
+ export const file_tzero_v1_payment_intent_recipient_recipient = /*@__PURE__*/ fileDesc("CjF0emVyby92MS9wYXltZW50X2ludGVudC9yZWNpc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VzcG9uc2UiYgoaUmVqZWN0UGF5bWVudEludGVudFJlcXVlc3QSGQoRcGF5bWVudF9pbnRlbnRfaWQYCiABKAQSGQoRcGF5bWVudF9yZWZlcmVuY2UYFCABKAkSDgoGcmVhc29uGB4gASgJIh0KG1JlamVjdFBheW1lbnRJbnRlbnRSZXNwb25zZTKmAgoOTmV0d29ya1NlcnZpY2USmQEKE0NyZWF0ZVBheW1lbnRJbnRlbnQSPS50emVyby52MS5wYXltZW50X2ludGVudC5yZWNpcGllbnQuQ3JlYXRlUGF5bWVudEludGVudFJlcXVlc3QaPi50emVyby52MS5wYXltZW50X2ludGVudC5yZWNpcGllbnQuQ3JlYXRlUGF5bWVudEludGVudFJlc3BvbnNlIgOQAgISeAoIR2V0UXVvdGUSMi50emVyby52MS5wYXltZW50X2ludGVudC5yZWNpcGllbnQuR2V0UXVvdGVSZXF1ZXN0GjMudHplcm8udjEucGF5bWVudF9pbnRlbnQucmVjaXBpZW50LkdldFF1b3RlUmVzcG9uc2UiA5ACATLCAwoQUmVjaXBpZW50U2VydmljZRKEAQoMQ29uZmlybVBheUluEjYudHplcm8udjEucGF5bWVudF9pbnRlbnQucmVjaXBpZW50LkNvbmZpcm1QYXlJblJlcXVlc3QaNy50emVyby52MS5wYXltZW50X2ludGVudC5yZWNpcGllbnQuQ29uZmlybVBheUluUmVzcG9uc2UiA5ACAhKKAQoOQ29uZmlybVBheW1lbnQSOC50emVyby52MS5wYXltZW50X2ludGVudC5yZWNpcGllbnQuQ29uZmlybVBheW1lbnRSZXF1ZXN0GjkudHplcm8udjEucGF5bWVudF9pbnRlbnQucmVjaXBpZW50LkNvbmZpcm1QYXltZW50UmVzcG9uc2UiA5ACAhKZAQoTUmVqZWN0UGF5bWVudEludGVudBI9LnR6ZXJvLnYxLnBheW1lbnRfaW50ZW50LnJlY2lwaWVudC5SZWplY3RQYXltZW50SW50ZW50UmVxdWVzdBo+LnR6ZXJvLnYxLnBheW1lbnRfaW50ZW50LnJlY2lwaWVudC5SZWplY3RQYXltZW50SW50ZW50UmVzcG9uc2UiA5ACAkLbAQolY29tLnR6ZXJvLnYxLnBheW1lbnRfaW50ZW50LnJlY2lwaWVudEIOUmVjaXBpZW50UHJvdG9QAaICBFRWUFKqAiBUemVyby5WMS5QYXltZW50SW50ZW50LlJlY2lwaWVudMoCIFR6ZXJvXFYxXFBheW1lbnRJbnRlbnRcUmVjaXBpZW504gIsVHplcm9cVjFcUGF5bWVudEludGVudFxSZWNpcGllbnRcR1BCTWV0YWRhdGHqAiNUemVybzo6VjE6OlBheW1lbnRJbnRlbnQ6OlJlY2lwaWVudGIGcHJvdG8z", [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]);
14
+ /**
15
+ * Describes the message tzero.v1.payment_intent.recipient.CreatePaymentIntentRequest.
16
+ * Use `create(CreatePaymentIntentRequestSchema)` to create a new message.
17
+ */
18
+ export const CreatePaymentIntentRequestSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_payment_intent_recipient_recipient, 0);
19
+ /**
20
+ * Describes the message tzero.v1.payment_intent.recipient.CreatePaymentIntentResponse.
21
+ * Use `create(CreatePaymentIntentResponseSchema)` to create a new message.
22
+ */
23
+ export const CreatePaymentIntentResponseSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_payment_intent_recipient_recipient, 1);
24
+ /**
25
+ * Describes the message tzero.v1.payment_intent.recipient.CreatePaymentIntentResponse.PaymentMethod.
26
+ * Use `create(CreatePaymentIntentResponse_PaymentMethodSchema)` to create a new message.
27
+ */
28
+ export const CreatePaymentIntentResponse_PaymentMethodSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_payment_intent_recipient_recipient, 1, 0);
29
+ /**
30
+ * Describes the message tzero.v1.payment_intent.recipient.GetQuoteRequest.
31
+ * Use `create(GetQuoteRequestSchema)` to create a new message.
32
+ */
33
+ export const GetQuoteRequestSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_payment_intent_recipient_recipient, 2);
34
+ /**
35
+ * Describes the message tzero.v1.payment_intent.recipient.GetQuoteResponse.
36
+ * Use `create(GetQuoteResponseSchema)` to create a new message.
37
+ */
38
+ export const GetQuoteResponseSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_payment_intent_recipient_recipient, 3);
39
+ /**
40
+ * Describes the message tzero.v1.payment_intent.recipient.GetQuoteResponse.Quote.
41
+ * Use `create(GetQuoteResponse_QuoteSchema)` to create a new message.
42
+ */
43
+ export const GetQuoteResponse_QuoteSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_payment_intent_recipient_recipient, 3, 0);
44
+ /**
45
+ * Describes the message tzero.v1.payment_intent.recipient.GetQuoteResponse.NotFound.
46
+ * Use `create(GetQuoteResponse_NotFoundSchema)` to create a new message.
47
+ */
48
+ export const GetQuoteResponse_NotFoundSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_payment_intent_recipient_recipient, 3, 1);
49
+ /**
50
+ * Describes the message tzero.v1.payment_intent.recipient.ConfirmPayInRequest.
51
+ * Use `create(ConfirmPayInRequestSchema)` to create a new message.
52
+ */
53
+ export const ConfirmPayInRequestSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_payment_intent_recipient_recipient, 4);
54
+ /**
55
+ * Describes the message tzero.v1.payment_intent.recipient.ConfirmPayInResponse.
56
+ * Use `create(ConfirmPayInResponseSchema)` to create a new message.
57
+ */
58
+ export const ConfirmPayInResponseSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_payment_intent_recipient_recipient, 5);
59
+ /**
60
+ * Describes the message tzero.v1.payment_intent.recipient.ConfirmPaymentRequest.
61
+ * Use `create(ConfirmPaymentRequestSchema)` to create a new message.
62
+ */
63
+ export const ConfirmPaymentRequestSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_payment_intent_recipient_recipient, 6);
64
+ /**
65
+ * Describes the message tzero.v1.payment_intent.recipient.ConfirmPaymentResponse.
66
+ * Use `create(ConfirmPaymentResponseSchema)` to create a new message.
67
+ */
68
+ export const ConfirmPaymentResponseSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_payment_intent_recipient_recipient, 7);
69
+ /**
70
+ * Describes the message tzero.v1.payment_intent.recipient.RejectPaymentIntentRequest.
71
+ * Use `create(RejectPaymentIntentRequestSchema)` to create a new message.
72
+ */
73
+ export const RejectPaymentIntentRequestSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_payment_intent_recipient_recipient, 8);
74
+ /**
75
+ * Describes the message tzero.v1.payment_intent.recipient.RejectPaymentIntentResponse.
76
+ * Use `create(RejectPaymentIntentResponseSchema)` to create a new message.
77
+ */
78
+ export const RejectPaymentIntentResponseSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_payment_intent_recipient_recipient, 9);
79
+ /**
80
+ * *
81
+ * NetworkService is used by recipient to create a payment intents
82
+ *
83
+ * @generated from service tzero.v1.payment_intent.recipient.NetworkService
84
+ */
85
+ export const NetworkService = /*@__PURE__*/ serviceDesc(file_tzero_v1_payment_intent_recipient_recipient, 0);
86
+ /**
87
+ * *
88
+ * RecipientService is implemented by recipient in order to get updates on payment intents
89
+ *
90
+ * @generated from service tzero.v1.payment_intent.recipient.RecipientService
91
+ */
92
+ export const RecipientService = /*@__PURE__*/ serviceDesc(file_tzero_v1_payment_intent_recipient_recipient, 1);