@t-0/provider-sdk 1.0.57 → 1.0.64

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 (35) hide show
  1. package/lib/cjs/common/gen/ivms101/v1/ivms/ivms101_pb.d.ts +1 -1
  2. package/lib/cjs/common/gen/ivms101/v1/ivms/ivms101_pb.js +1 -1
  3. package/lib/cjs/common/gen/tzero/v1/common/payment_method_pb.d.ts +68 -14
  4. package/lib/cjs/common/gen/tzero/v1/common/payment_method_pb.js +18 -7
  5. package/lib/cjs/common/gen/tzero/v1/common/payment_receipt_pb.d.ts +20 -0
  6. package/lib/cjs/common/gen/tzero/v1/common/payment_receipt_pb.js +11 -6
  7. package/lib/cjs/common/gen/tzero/v1/payment/network_pb.d.ts +98 -0
  8. package/lib/cjs/common/gen/tzero/v1/payment/network_pb.js +12 -2
  9. package/lib/cjs/common/gen/tzero/v1/payment/provider_pb.d.ts +16 -2
  10. package/lib/cjs/common/gen/tzero/v1/payment/provider_pb.js +15 -1
  11. package/lib/cjs/common/gen/tzero/v1/payment_intent/beneficiary_pb.d.ts +147 -0
  12. package/lib/cjs/common/gen/tzero/v1/payment_intent/beneficiary_pb.js +45 -0
  13. package/lib/cjs/common/gen/tzero/v1/payment_intent/network_pb.d.ts +688 -0
  14. package/lib/cjs/common/gen/tzero/v1/payment_intent/network_pb.js +176 -0
  15. package/lib/cjs/common/gen/tzero/v1/payment_intent/pay_in_provider_pb.d.ts +201 -0
  16. package/lib/cjs/common/gen/tzero/v1/payment_intent/pay_in_provider_pb.js +57 -0
  17. package/lib/esm/common/gen/ivms101/v1/ivms/ivms101_pb.d.ts +1 -1
  18. package/lib/esm/common/gen/ivms101/v1/ivms/ivms101_pb.js +1 -1
  19. package/lib/esm/common/gen/tzero/v1/common/payment_method_pb.d.ts +68 -14
  20. package/lib/esm/common/gen/tzero/v1/common/payment_method_pb.js +17 -6
  21. package/lib/esm/common/gen/tzero/v1/common/payment_receipt_pb.d.ts +20 -0
  22. package/lib/esm/common/gen/tzero/v1/common/payment_receipt_pb.js +10 -5
  23. package/lib/esm/common/gen/tzero/v1/payment/network_pb.d.ts +98 -0
  24. package/lib/esm/common/gen/tzero/v1/payment/network_pb.js +11 -1
  25. package/lib/esm/common/gen/tzero/v1/payment/provider_pb.d.ts +16 -2
  26. package/lib/esm/common/gen/tzero/v1/payment/provider_pb.js +15 -1
  27. package/lib/esm/common/gen/tzero/v1/payment_intent/beneficiary_pb.d.ts +147 -0
  28. package/lib/esm/common/gen/tzero/v1/payment_intent/beneficiary_pb.js +42 -0
  29. package/lib/esm/common/gen/tzero/v1/payment_intent/network_pb.d.ts +688 -0
  30. package/lib/esm/common/gen/tzero/v1/payment_intent/network_pb.js +173 -0
  31. package/lib/esm/common/gen/tzero/v1/payment_intent/pay_in_provider_pb.d.ts +201 -0
  32. package/lib/esm/common/gen/tzero/v1/payment_intent/pay_in_provider_pb.js +54 -0
  33. package/lib/tsconfig.cjs.tsbuildinfo +1 -1
  34. package/lib/tsconfig.esm.tsbuildinfo +1 -1
  35. package/package.json +1 -1
@@ -0,0 +1,688 @@
1
+ import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Decimal } from "../common/common_pb.js";
3
+ import type { PaymentDetails, PaymentMethodType } from "../common/payment_method_pb.js";
4
+ import type { Person } from "../../../ivms101/v1/ivms/ivms101_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/network.proto.
9
+ */
10
+ export declare const file_tzero_v1_payment_intent_network: GenFile;
11
+ /**
12
+ *
13
+ * Base currency is always USD, so the quotes are always in USD/currency format.
14
+ *
15
+ * @generated from message tzero.v1.payment_intent.UpdateQuoteRequest
16
+ */
17
+ export type UpdateQuoteRequest = Message<"tzero.v1.payment_intent.UpdateQuoteRequest"> & {
18
+ /**
19
+ * *
20
+ * Zero or more quotes for pay-in operations, each quote must have a unique currency, and one or more bands, with the
21
+ * unique client_quote_id for each band.
22
+ *
23
+ * @generated from field: repeated tzero.v1.payment_intent.UpdateQuoteRequest.Quote payment_intent_quotes = 10;
24
+ */
25
+ paymentIntentQuotes: UpdateQuoteRequest_Quote[];
26
+ };
27
+ /**
28
+ * Describes the message tzero.v1.payment_intent.UpdateQuoteRequest.
29
+ * Use `create(UpdateQuoteRequestSchema)` to create a new message.
30
+ */
31
+ export declare const UpdateQuoteRequestSchema: GenMessage<UpdateQuoteRequest>;
32
+ /**
33
+ * @generated from message tzero.v1.payment_intent.UpdateQuoteRequest.Quote
34
+ */
35
+ export type UpdateQuoteRequest_Quote = Message<"tzero.v1.payment_intent.UpdateQuoteRequest.Quote"> & {
36
+ /**
37
+ * BRL, EUR, GBP, etc. (ISO 4217 currency code)
38
+ *
39
+ * @generated from field: string currency = 10;
40
+ */
41
+ currency: string;
42
+ /**
43
+ * Payment method must be specified
44
+ *
45
+ * @generated from field: tzero.v1.common.PaymentMethodType payment_method = 25;
46
+ */
47
+ paymentMethod: PaymentMethodType;
48
+ /**
49
+ * list of bands for this quote
50
+ *
51
+ * @generated from field: repeated tzero.v1.payment_intent.UpdateQuoteRequest.Quote.Band bands = 30;
52
+ */
53
+ bands: UpdateQuoteRequest_Quote_Band[];
54
+ /**
55
+ * expiration time of the quote
56
+ *
57
+ * @generated from field: google.protobuf.Timestamp expiration = 60;
58
+ */
59
+ expiration?: Timestamp;
60
+ /**
61
+ * timestamp quote was created
62
+ *
63
+ * @generated from field: google.protobuf.Timestamp timestamp = 70;
64
+ */
65
+ timestamp?: Timestamp;
66
+ };
67
+ /**
68
+ * Describes the message tzero.v1.payment_intent.UpdateQuoteRequest.Quote.
69
+ * Use `create(UpdateQuoteRequest_QuoteSchema)` to create a new message.
70
+ */
71
+ export declare const UpdateQuoteRequest_QuoteSchema: GenMessage<UpdateQuoteRequest_Quote>;
72
+ /**
73
+ * @generated from message tzero.v1.payment_intent.UpdateQuoteRequest.Quote.Band
74
+ */
75
+ export type UpdateQuoteRequest_Quote_Band = Message<"tzero.v1.payment_intent.UpdateQuoteRequest.Quote.Band"> & {
76
+ /**
77
+ * unique client generated id for this band
78
+ *
79
+ * @generated from field: string client_quote_id = 10;
80
+ */
81
+ clientQuoteId: string;
82
+ /**
83
+ * max amount of USD this quote is applicable for. Please look into documentation for valid amounts.
84
+ *
85
+ * @generated from field: tzero.v1.common.Decimal max_amount = 40;
86
+ */
87
+ maxAmount?: Decimal;
88
+ /**
89
+ * USD/currency rate
90
+ *
91
+ * @generated from field: tzero.v1.common.Decimal rate = 50;
92
+ */
93
+ rate?: Decimal;
94
+ };
95
+ /**
96
+ * Describes the message tzero.v1.payment_intent.UpdateQuoteRequest.Quote.Band.
97
+ * Use `create(UpdateQuoteRequest_Quote_BandSchema)` to create a new message.
98
+ */
99
+ export declare const UpdateQuoteRequest_Quote_BandSchema: GenMessage<UpdateQuoteRequest_Quote_Band>;
100
+ /**
101
+ * @generated from message tzero.v1.payment_intent.UpdateQuoteResponse
102
+ */
103
+ export type UpdateQuoteResponse = Message<"tzero.v1.payment_intent.UpdateQuoteResponse"> & {};
104
+ /**
105
+ * Describes the message tzero.v1.payment_intent.UpdateQuoteResponse.
106
+ * Use `create(UpdateQuoteResponseSchema)` to create a new message.
107
+ */
108
+ export declare const UpdateQuoteResponseSchema: GenMessage<UpdateQuoteResponse>;
109
+ /**
110
+ * *
111
+ * Request to get indicative quotes for a currency/amount pair.
112
+ *
113
+ * @generated from message tzero.v1.payment_intent.GetQuoteRequest
114
+ */
115
+ export type GetQuoteRequest = Message<"tzero.v1.payment_intent.GetQuoteRequest"> & {
116
+ /**
117
+ * *
118
+ * Pay-in currency code in ISO 4217 format.
119
+ * Examples: "EUR", "GBP", "USD", "KES"
120
+ *
121
+ * @generated from field: string currency = 20;
122
+ */
123
+ currency: string;
124
+ /**
125
+ * *
126
+ * Pay-in amount in the specified currency.
127
+ * This is the fiat amount the end-user will pay.
128
+ *
129
+ * @generated from field: tzero.v1.common.Decimal amount = 30;
130
+ */
131
+ amount?: Decimal;
132
+ };
133
+ /**
134
+ * Describes the message tzero.v1.payment_intent.GetQuoteRequest.
135
+ * Use `create(GetQuoteRequestSchema)` to create a new message.
136
+ */
137
+ export declare const GetQuoteRequestSchema: GenMessage<GetQuoteRequest>;
138
+ /**
139
+ * @generated from message tzero.v1.payment_intent.GetQuoteResponse
140
+ */
141
+ export type GetQuoteResponse = Message<"tzero.v1.payment_intent.GetQuoteResponse"> & {
142
+ /**
143
+ * @generated from oneof tzero.v1.payment_intent.GetQuoteResponse.Result
144
+ */
145
+ Result: {
146
+ /**
147
+ * @generated from field: tzero.v1.payment_intent.GetQuoteResponse.Success success = 10;
148
+ */
149
+ value: GetQuoteResponse_Success;
150
+ case: "success";
151
+ } | {
152
+ /**
153
+ * @generated from field: tzero.v1.payment_intent.GetQuoteResponse.QuoteNotFound quote_not_found = 20;
154
+ */
155
+ value: GetQuoteResponse_QuoteNotFound;
156
+ case: "quoteNotFound";
157
+ } | {
158
+ case: undefined;
159
+ value?: undefined;
160
+ };
161
+ };
162
+ /**
163
+ * Describes the message tzero.v1.payment_intent.GetQuoteResponse.
164
+ * Use `create(GetQuoteResponseSchema)` to create a new message.
165
+ */
166
+ export declare const GetQuoteResponseSchema: GenMessage<GetQuoteResponse>;
167
+ /**
168
+ * *
169
+ * Quotes were found for the requested currency/amount.
170
+ *
171
+ * @generated from message tzero.v1.payment_intent.GetQuoteResponse.Success
172
+ */
173
+ export type GetQuoteResponse_Success = Message<"tzero.v1.payment_intent.GetQuoteResponse.Success"> & {
174
+ /**
175
+ *
176
+ * Best quotes per payment method available for the specified currency and amount.
177
+ *
178
+ * @generated from field: repeated tzero.v1.payment_intent.GetQuoteResponse.Success.IndicativeQuote best_quotes = 10;
179
+ */
180
+ bestQuotes: GetQuoteResponse_Success_IndicativeQuote[];
181
+ /**
182
+ * *
183
+ * Available indicative quotes.
184
+ * Each entry represents a different pay-in provider and payment method combination.
185
+ * Use CreatePaymentIntent to get the actual payment details for making a payment.
186
+ *
187
+ * @generated from field: repeated tzero.v1.payment_intent.GetQuoteResponse.Success.IndicativeQuote all_quotes = 20;
188
+ */
189
+ allQuotes: GetQuoteResponse_Success_IndicativeQuote[];
190
+ };
191
+ /**
192
+ * Describes the message tzero.v1.payment_intent.GetQuoteResponse.Success.
193
+ * Use `create(GetQuoteResponse_SuccessSchema)` to create a new message.
194
+ */
195
+ export declare const GetQuoteResponse_SuccessSchema: GenMessage<GetQuoteResponse_Success>;
196
+ /**
197
+ * *
198
+ * Represents an indicative quote from a pay-in provider.
199
+ * Contains the payment method, provider info, and indicative exchange rate.
200
+ *
201
+ * @generated from message tzero.v1.payment_intent.GetQuoteResponse.Success.IndicativeQuote
202
+ */
203
+ export type GetQuoteResponse_Success_IndicativeQuote = Message<"tzero.v1.payment_intent.GetQuoteResponse.Success.IndicativeQuote"> & {
204
+ /**
205
+ * *
206
+ * The payment method type (e.g., SEPA, SWIFT, mobile money).
207
+ *
208
+ * @generated from field: tzero.v1.common.PaymentMethodType payment_method = 10;
209
+ */
210
+ paymentMethod: PaymentMethodType;
211
+ /**
212
+ * *
213
+ * The T-0 provider ID of the pay-in provider offering this quote.
214
+ * Providers can use this to identify counterparties.
215
+ *
216
+ * @generated from field: uint32 provider_id = 20;
217
+ */
218
+ providerId: number;
219
+ /**
220
+ * *
221
+ * Indicative exchange rate USD/XXX (base currency is always USD).
222
+ *
223
+ * Note: This is indicative only. The actual rate is determined when pay-in provider calls ConfirmFundsReceived
224
+ *
225
+ * @generated from field: tzero.v1.common.Decimal indicative_rate = 30;
226
+ */
227
+ indicativeRate?: Decimal;
228
+ };
229
+ /**
230
+ * Describes the message tzero.v1.payment_intent.GetQuoteResponse.Success.IndicativeQuote.
231
+ * Use `create(GetQuoteResponse_Success_IndicativeQuoteSchema)` to create a new message.
232
+ */
233
+ export declare const GetQuoteResponse_Success_IndicativeQuoteSchema: GenMessage<GetQuoteResponse_Success_IndicativeQuote>;
234
+ /**
235
+ * *
236
+ * No providers have active quotes for the requested currency/amount.
237
+ *
238
+ * @generated from message tzero.v1.payment_intent.GetQuoteResponse.QuoteNotFound
239
+ */
240
+ export type GetQuoteResponse_QuoteNotFound = Message<"tzero.v1.payment_intent.GetQuoteResponse.QuoteNotFound"> & {};
241
+ /**
242
+ * Describes the message tzero.v1.payment_intent.GetQuoteResponse.QuoteNotFound.
243
+ * Use `create(GetQuoteResponse_QuoteNotFoundSchema)` to create a new message.
244
+ */
245
+ export declare const GetQuoteResponse_QuoteNotFoundSchema: GenMessage<GetQuoteResponse_QuoteNotFound>;
246
+ /**
247
+ * *
248
+ * Represents pay-in details for a payment intent option.
249
+ * Contains the payment method, provider info, payment details, and indicative exchange rate.
250
+ *
251
+ * @generated from message tzero.v1.payment_intent.PaymentIntentPayInDetails
252
+ */
253
+ export type PaymentIntentPayInDetails = Message<"tzero.v1.payment_intent.PaymentIntentPayInDetails"> & {
254
+ /**
255
+ * *
256
+ * The payment method type (e.g., SEPA, SWIFT, mobile money).
257
+ * Determines which payment details format is provided.
258
+ *
259
+ * @generated from field: tzero.v1.common.PaymentMethodType payment_method = 10;
260
+ */
261
+ paymentMethod: PaymentMethodType;
262
+ /**
263
+ * *
264
+ * The T-0 provider ID of the pay-in provider offering this quote.
265
+ * Providers can use this to identify counterparties.
266
+ *
267
+ * @generated from field: uint32 provider_id = 20;
268
+ */
269
+ providerId: number;
270
+ /**
271
+ * *
272
+ * Payment details for the end-user to make the payment.
273
+ * Contains bank account info, mobile money details, etc. based on payment_method.
274
+ * This should be displayed to the end-user to complete their payment.
275
+ *
276
+ * @generated from field: tzero.v1.common.PaymentDetails payment_details = 30;
277
+ */
278
+ paymentDetails?: PaymentDetails;
279
+ /**
280
+ * *
281
+ * Indicative exchange rate USD/XXX (base currency is always USD).
282
+ *
283
+ * Note: This is indicative only. The actual rate is determined when pay-in provider calls ConfirmFundsReceived
284
+ *
285
+ * @generated from field: tzero.v1.common.Decimal indicative_rate = 40;
286
+ */
287
+ indicativeRate?: Decimal;
288
+ };
289
+ /**
290
+ * Describes the message tzero.v1.payment_intent.PaymentIntentPayInDetails.
291
+ * Use `create(PaymentIntentPayInDetailsSchema)` to create a new message.
292
+ */
293
+ export declare const PaymentIntentPayInDetailsSchema: GenMessage<PaymentIntentPayInDetails>;
294
+ /**
295
+ * *
296
+ * Request to create a new payment intent.
297
+ *
298
+ * @generated from message tzero.v1.payment_intent.CreatePaymentIntentRequest
299
+ */
300
+ export type CreatePaymentIntentRequest = Message<"tzero.v1.payment_intent.CreatePaymentIntentRequest"> & {
301
+ /**
302
+ * *
303
+ * Provider-supplied unique identifier for this payment intent.
304
+ * Used for idempotency - subsequent requests with the same external_reference
305
+ * return the existing payment_intent_id instead of creating a new one.
306
+ * Should be unique per beneficiary provider.
307
+ *
308
+ * @generated from field: string external_reference = 10;
309
+ */
310
+ externalReference: string;
311
+ /**
312
+ * *
313
+ * Pay-in currency code in ISO 4217 format.
314
+ * The currency that the end-user will pay in.
315
+ *
316
+ * @generated from field: string currency = 20;
317
+ */
318
+ currency: string;
319
+ /**
320
+ * *
321
+ * Pay-in amount in the specified currency.
322
+ * The exact fiat amount the end-user should pay.
323
+ *
324
+ * @generated from field: tzero.v1.common.Decimal amount = 30;
325
+ */
326
+ amount?: Decimal;
327
+ /**
328
+ * *
329
+ * Travel rule compliance data.
330
+ * Required for regulatory compliance under FATF guidelines.
331
+ *
332
+ * @generated from field: tzero.v1.payment_intent.CreatePaymentIntentRequest.TravelRuleData travel_rule_data = 40;
333
+ */
334
+ travelRuleData?: CreatePaymentIntentRequest_TravelRuleData;
335
+ };
336
+ /**
337
+ * Describes the message tzero.v1.payment_intent.CreatePaymentIntentRequest.
338
+ * Use `create(CreatePaymentIntentRequestSchema)` to create a new message.
339
+ */
340
+ export declare const CreatePaymentIntentRequestSchema: GenMessage<CreatePaymentIntentRequest>;
341
+ /**
342
+ * *
343
+ * Travel rule data containing originator information.
344
+ *
345
+ * @generated from message tzero.v1.payment_intent.CreatePaymentIntentRequest.TravelRuleData
346
+ */
347
+ export type CreatePaymentIntentRequest_TravelRuleData = Message<"tzero.v1.payment_intent.CreatePaymentIntentRequest.TravelRuleData"> & {
348
+ /**
349
+ * *
350
+ * The natural or legal person or legal arrangement who is identified
351
+ * as the receiver of the requested payment.
352
+ *
353
+ * @generated from field: repeated ivms101.Person beneficiary = 10;
354
+ */
355
+ beneficiary: Person[];
356
+ /**
357
+ * *
358
+ * Optional travel rule data of the payer
359
+ *
360
+ * @generated from field: optional ivms101.Person payer = 40;
361
+ */
362
+ payer?: Person;
363
+ };
364
+ /**
365
+ * Describes the message tzero.v1.payment_intent.CreatePaymentIntentRequest.TravelRuleData.
366
+ * Use `create(CreatePaymentIntentRequest_TravelRuleDataSchema)` to create a new message.
367
+ */
368
+ export declare const CreatePaymentIntentRequest_TravelRuleDataSchema: GenMessage<CreatePaymentIntentRequest_TravelRuleData>;
369
+ /**
370
+ * @generated from message tzero.v1.payment_intent.CreatePaymentIntentResponse
371
+ */
372
+ export type CreatePaymentIntentResponse = Message<"tzero.v1.payment_intent.CreatePaymentIntentResponse"> & {
373
+ /**
374
+ * @generated from oneof tzero.v1.payment_intent.CreatePaymentIntentResponse.Result
375
+ */
376
+ Result: {
377
+ /**
378
+ * *
379
+ * Payment intent created successfully with available payment options.
380
+ *
381
+ * @generated from field: tzero.v1.payment_intent.CreatePaymentIntentResponse.Success success = 10;
382
+ */
383
+ value: CreatePaymentIntentResponse_Success;
384
+ case: "success";
385
+ } | {
386
+ /**
387
+ * *
388
+ * Failed to create payment intent.
389
+ *
390
+ * @generated from field: tzero.v1.payment_intent.CreatePaymentIntentResponse.Failure failure = 20;
391
+ */
392
+ value: CreatePaymentIntentResponse_Failure;
393
+ case: "failure";
394
+ } | {
395
+ case: undefined;
396
+ value?: undefined;
397
+ };
398
+ };
399
+ /**
400
+ * Describes the message tzero.v1.payment_intent.CreatePaymentIntentResponse.
401
+ * Use `create(CreatePaymentIntentResponseSchema)` to create a new message.
402
+ */
403
+ export declare const CreatePaymentIntentResponseSchema: GenMessage<CreatePaymentIntentResponse>;
404
+ /**
405
+ * *
406
+ * Payment intent created successfully.
407
+ *
408
+ * @generated from message tzero.v1.payment_intent.CreatePaymentIntentResponse.Success
409
+ */
410
+ export type CreatePaymentIntentResponse_Success = Message<"tzero.v1.payment_intent.CreatePaymentIntentResponse.Success"> & {
411
+ /**
412
+ * *
413
+ * Unique identifier for this payment intent.
414
+ * Store this ID to correlate with:
415
+ * - PaymentIntentUpdate notifications you'll receive
416
+ *
417
+ * @generated from field: uint64 payment_intent_id = 10;
418
+ */
419
+ paymentIntentId: bigint;
420
+ /**
421
+ * *
422
+ * Available payment options for the end-user.
423
+ * Present these options to your user so they can choose how to pay.
424
+ * Each entry contains the payment details needed to complete the payment.
425
+ *
426
+ * @generated from field: repeated tzero.v1.payment_intent.PaymentIntentPayInDetails pay_in_details = 20;
427
+ */
428
+ payInDetails: PaymentIntentPayInDetails[];
429
+ };
430
+ /**
431
+ * Describes the message tzero.v1.payment_intent.CreatePaymentIntentResponse.Success.
432
+ * Use `create(CreatePaymentIntentResponse_SuccessSchema)` to create a new message.
433
+ */
434
+ export declare const CreatePaymentIntentResponse_SuccessSchema: GenMessage<CreatePaymentIntentResponse_Success>;
435
+ /**
436
+ * *
437
+ * Payment intent creation failed.
438
+ *
439
+ * @generated from message tzero.v1.payment_intent.CreatePaymentIntentResponse.Failure
440
+ */
441
+ export type CreatePaymentIntentResponse_Failure = Message<"tzero.v1.payment_intent.CreatePaymentIntentResponse.Failure"> & {
442
+ /**
443
+ * *
444
+ * The reason for failure.
445
+ *
446
+ * @generated from field: tzero.v1.payment_intent.CreatePaymentIntentResponse.Failure.Reason reason = 10;
447
+ */
448
+ reason: CreatePaymentIntentResponse_Failure_Reason;
449
+ };
450
+ /**
451
+ * Describes the message tzero.v1.payment_intent.CreatePaymentIntentResponse.Failure.
452
+ * Use `create(CreatePaymentIntentResponse_FailureSchema)` to create a new message.
453
+ */
454
+ export declare const CreatePaymentIntentResponse_FailureSchema: GenMessage<CreatePaymentIntentResponse_Failure>;
455
+ /**
456
+ * @generated from enum tzero.v1.payment_intent.CreatePaymentIntentResponse.Failure.Reason
457
+ */
458
+ export declare enum CreatePaymentIntentResponse_Failure_Reason {
459
+ /**
460
+ * @generated from enum value: FAILURE_REASON_UNSPECIFIED = 0;
461
+ */
462
+ FAILURE_REASON_UNSPECIFIED = 0,
463
+ /**
464
+ * *
465
+ * No quotes found for the requested currency/amount.
466
+ *
467
+ * @generated from enum value: FAILURE_REASON_QUOTE_NOT_FOUND = 10;
468
+ */
469
+ FAILURE_REASON_QUOTE_NOT_FOUND = 10,
470
+ /**
471
+ * *
472
+ * Payment intent rejected.
473
+ *
474
+ * @generated from enum value: FAILURE_REASON_REJECTED = 20;
475
+ */
476
+ FAILURE_REASON_REJECTED = 20
477
+ }
478
+ /**
479
+ * Describes the enum tzero.v1.payment_intent.CreatePaymentIntentResponse.Failure.Reason.
480
+ */
481
+ export declare const CreatePaymentIntentResponse_Failure_ReasonSchema: GenEnum<CreatePaymentIntentResponse_Failure_Reason>;
482
+ /**
483
+ * *
484
+ * Request to confirm that funds have been received from the end-user.
485
+ *
486
+ * @generated from message tzero.v1.payment_intent.ConfirmFundsReceivedRequest
487
+ */
488
+ export type ConfirmFundsReceivedRequest = Message<"tzero.v1.payment_intent.ConfirmFundsReceivedRequest"> & {
489
+ /**
490
+ * *
491
+ * The payment intent ID being confirmed.
492
+ * Must be a valid, pending payment intent.
493
+ *
494
+ * @generated from field: uint64 payment_intent_id = 10;
495
+ */
496
+ paymentIntentId: bigint;
497
+ /**
498
+ *
499
+ * Confirmation code received in the get payment details along with the payment_intent_id. This is to prevent
500
+ * the accidental confirmation of the wrong payment intent.
501
+ *
502
+ * @generated from field: string confirmation_code = 20;
503
+ */
504
+ confirmationCode: string;
505
+ /**
506
+ * *
507
+ * The payment method used by the end-user.
508
+ * Must match one of the payment methods returned in CreatePaymentIntentResponse.
509
+ *
510
+ * @generated from field: tzero.v1.common.PaymentMethodType payment_method = 30;
511
+ */
512
+ paymentMethod: PaymentMethodType;
513
+ /**
514
+ *
515
+ * Transaction reference
516
+ *
517
+ * @generated from field: string transaction_reference = 40;
518
+ */
519
+ transactionReference: string;
520
+ };
521
+ /**
522
+ * Describes the message tzero.v1.payment_intent.ConfirmFundsReceivedRequest.
523
+ * Use `create(ConfirmFundsReceivedRequestSchema)` to create a new message.
524
+ */
525
+ export declare const ConfirmFundsReceivedRequestSchema: GenMessage<ConfirmFundsReceivedRequest>;
526
+ /**
527
+ * @generated from message tzero.v1.payment_intent.ConfirmFundsReceivedResponse
528
+ */
529
+ export type ConfirmFundsReceivedResponse = Message<"tzero.v1.payment_intent.ConfirmFundsReceivedResponse"> & {
530
+ /**
531
+ * @generated from oneof tzero.v1.payment_intent.ConfirmFundsReceivedResponse.Result
532
+ */
533
+ Result: {
534
+ /**
535
+ * *
536
+ * Funds confirmed successfully. Settlement will proceed.
537
+ *
538
+ * @generated from field: tzero.v1.payment_intent.ConfirmFundsReceivedResponse.Accept accept = 10;
539
+ */
540
+ value: ConfirmFundsReceivedResponse_Accept;
541
+ case: "accept";
542
+ } | {
543
+ /**
544
+ * *
545
+ * Funds receipt rejected. No settlement will occur.
546
+ *
547
+ * @generated from field: tzero.v1.payment_intent.ConfirmFundsReceivedResponse.Reject reject = 20;
548
+ */
549
+ value: ConfirmFundsReceivedResponse_Reject;
550
+ case: "reject";
551
+ } | {
552
+ case: undefined;
553
+ value?: undefined;
554
+ };
555
+ };
556
+ /**
557
+ * Describes the message tzero.v1.payment_intent.ConfirmFundsReceivedResponse.
558
+ * Use `create(ConfirmFundsReceivedResponseSchema)` to create a new message.
559
+ */
560
+ export declare const ConfirmFundsReceivedResponseSchema: GenMessage<ConfirmFundsReceivedResponse>;
561
+ /**
562
+ * *
563
+ * Funds accepted - settlement will proceed.
564
+ * The beneficiary provider will receive a PaymentIntentUpdate notification
565
+ * with settlement details.
566
+ *
567
+ * @generated from message tzero.v1.payment_intent.ConfirmFundsReceivedResponse.Accept
568
+ */
569
+ export type ConfirmFundsReceivedResponse_Accept = Message<"tzero.v1.payment_intent.ConfirmFundsReceivedResponse.Accept"> & {};
570
+ /**
571
+ * Describes the message tzero.v1.payment_intent.ConfirmFundsReceivedResponse.Accept.
572
+ * Use `create(ConfirmFundsReceivedResponse_AcceptSchema)` to create a new message.
573
+ */
574
+ export declare const ConfirmFundsReceivedResponse_AcceptSchema: GenMessage<ConfirmFundsReceivedResponse_Accept>;
575
+ /**
576
+ * *
577
+ * Funds rejected.
578
+ *
579
+ * @generated from message tzero.v1.payment_intent.ConfirmFundsReceivedResponse.Reject
580
+ */
581
+ export type ConfirmFundsReceivedResponse_Reject = Message<"tzero.v1.payment_intent.ConfirmFundsReceivedResponse.Reject"> & {
582
+ /**
583
+ * @generated from field: tzero.v1.payment_intent.ConfirmFundsReceivedResponse.Reject.Reason reason = 10;
584
+ */
585
+ reason: ConfirmFundsReceivedResponse_Reject_Reason;
586
+ };
587
+ /**
588
+ * Describes the message tzero.v1.payment_intent.ConfirmFundsReceivedResponse.Reject.
589
+ * Use `create(ConfirmFundsReceivedResponse_RejectSchema)` to create a new message.
590
+ */
591
+ export declare const ConfirmFundsReceivedResponse_RejectSchema: GenMessage<ConfirmFundsReceivedResponse_Reject>;
592
+ /**
593
+ * @generated from enum tzero.v1.payment_intent.ConfirmFundsReceivedResponse.Reject.Reason
594
+ */
595
+ export declare enum ConfirmFundsReceivedResponse_Reject_Reason {
596
+ /**
597
+ * @generated from enum value: REJECT_REASON_UNSPECIFIED = 0;
598
+ */
599
+ REJECT_REASON_UNSPECIFIED = 0,
600
+ /**
601
+ * @generated from enum value: REJECT_REASON_CONFIRMATION_CODE_MISMATCH = 10;
602
+ */
603
+ REJECT_REASON_CONFIRMATION_CODE_MISMATCH = 10,
604
+ /**
605
+ * @generated from enum value: REJECT_REASON_NO_ACTIVE_QUOTE = 20;
606
+ */
607
+ REJECT_REASON_NO_ACTIVE_QUOTE = 20
608
+ }
609
+ /**
610
+ * Describes the enum tzero.v1.payment_intent.ConfirmFundsReceivedResponse.Reject.Reason.
611
+ */
612
+ export declare const ConfirmFundsReceivedResponse_Reject_ReasonSchema: GenEnum<ConfirmFundsReceivedResponse_Reject_Reason>;
613
+ /**
614
+ * *
615
+ * PaymentIntentService provides Payment Intent APIs for providers.
616
+ *
617
+ * Payment Intent is a flow where:
618
+ * 1. Beneficiary provider creates a payment intent specifying amount/currency
619
+ * 2. End-user pays via one of the returned payment options
620
+ * 3. Pay-in provider confirms funds received
621
+ * 4. Settlement will happen periodically between providers
622
+ *
623
+ * This service is hosted by the T-0 Network and called by providers.
624
+ *
625
+ * @generated from service tzero.v1.payment_intent.PaymentIntentService
626
+ */
627
+ export declare const PaymentIntentService: GenService<{
628
+ /**
629
+ * *
630
+ * Used by the provider to publish payment intent (pay-in) quotes into the network.
631
+ * These quotes include tiered pricing bands and an expiration timestamp.
632
+ *
633
+ * @generated from rpc tzero.v1.payment_intent.PaymentIntentService.UpdateQuote
634
+ */
635
+ updateQuote: {
636
+ methodKind: "unary";
637
+ input: typeof UpdateQuoteRequestSchema;
638
+ output: typeof UpdateQuoteResponseSchema;
639
+ };
640
+ /**
641
+ * *
642
+ * GetQuote returns available quotes for a given currency and amount.
643
+ *
644
+ * Use this to check indicative rates before creating a payment intent.
645
+ * The returned quotes show which providers can accept pay-ins and their current rates.
646
+ *
647
+ * Note: Quotes are indicative only. The actual rate used for settlement is determined
648
+ * at the time of ConfirmFundsReceived.
649
+ *
650
+ * @generated from rpc tzero.v1.payment_intent.PaymentIntentService.GetQuote
651
+ */
652
+ getQuote: {
653
+ methodKind: "unary";
654
+ input: typeof GetQuoteRequestSchema;
655
+ output: typeof GetQuoteResponseSchema;
656
+ };
657
+ /**
658
+ * *
659
+ * CreatePaymentIntent initiates a new payment intent.
660
+ *
661
+ * Called by the beneficiary provider (the one who will receive the settlement).
662
+ * The network finds suitable pay-in providers, retrieves their payment details,
663
+ * and returns available payment options to present to the end-user.
664
+ *
665
+ * The returned payment_intent_id must be stored by the beneficiary provider
666
+ * to correlate with the PaymentIntentUpdate notification received later.
667
+ *
668
+ * Idempotency: Multiple calls with the same external_reference return the same payment_intent_id.
669
+ *
670
+ * @generated from rpc tzero.v1.payment_intent.PaymentIntentService.CreatePaymentIntent
671
+ */
672
+ createPaymentIntent: {
673
+ methodKind: "unary";
674
+ input: typeof CreatePaymentIntentRequestSchema;
675
+ output: typeof CreatePaymentIntentResponseSchema;
676
+ };
677
+ /**
678
+ * *
679
+ * ConfirmFundsReceived confirms that the pay-in provider has received funds from the end-user.
680
+ *
681
+ * @generated from rpc tzero.v1.payment_intent.PaymentIntentService.ConfirmFundsReceived
682
+ */
683
+ confirmFundsReceived: {
684
+ methodKind: "unary";
685
+ input: typeof ConfirmFundsReceivedRequestSchema;
686
+ output: typeof ConfirmFundsReceivedResponseSchema;
687
+ };
688
+ }>;