@t-0/provider-sdk 1.0.28 → 1.0.30

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 (47) hide show
  1. package/lib/cjs/client/client.js +2 -2
  2. package/lib/cjs/common/gen/ivms101/v1/ivms/enum_pb.d.ts +326 -0
  3. package/lib/cjs/common/gen/ivms101/v1/ivms/enum_pb.js +337 -0
  4. package/lib/cjs/common/gen/ivms101/v1/ivms/ivms101_pb.d.ts +520 -0
  5. package/lib/cjs/common/gen/ivms101/v1/ivms/ivms101_pb.js +73 -0
  6. package/lib/cjs/common/gen/tzero/v1/common/common_pb.d.ts +0 -2
  7. package/lib/cjs/common/gen/tzero/v1/common/common_pb.js +1 -1
  8. package/lib/cjs/common/gen/tzero/v1/common/payment_method_pb.d.ts +0 -34
  9. package/lib/cjs/common/gen/tzero/v1/common/payment_method_pb.js +2 -2
  10. package/lib/cjs/common/gen/tzero/v1/common/payment_receipt_pb.d.ts +0 -2
  11. package/lib/cjs/common/gen/tzero/v1/common/payment_receipt_pb.js +1 -1
  12. package/lib/cjs/common/gen/tzero/v1/payment/network_pb.d.ts +132 -177
  13. package/lib/cjs/common/gen/tzero/v1/payment/network_pb.js +24 -18
  14. package/lib/cjs/common/gen/tzero/v1/payment/provider_pb.d.ts +30 -9
  15. package/lib/cjs/common/gen/tzero/v1/payment/provider_pb.js +9 -3
  16. package/lib/cjs/common/gen/tzero/v1/payment_intent/provider/provider_pb.d.ts +4 -16
  17. package/lib/cjs/common/gen/tzero/v1/payment_intent/provider/provider_pb.js +2 -2
  18. package/lib/cjs/common/gen/tzero/v1/payment_intent/recipient/recipient_pb.d.ts +0 -10
  19. package/lib/cjs/common/gen/tzero/v1/payment_intent/recipient/recipient_pb.js +2 -2
  20. package/lib/cjs/common/gen/tzero/v1/public/public_pb.js +1 -1
  21. package/lib/cjs/examples/update-quote.js +1 -1
  22. package/lib/cjs/service/node.js +2 -2
  23. package/lib/esm/client/client.js +1 -1
  24. package/lib/esm/common/gen/ivms101/v1/ivms/enum_pb.d.ts +326 -0
  25. package/lib/esm/common/gen/ivms101/v1/ivms/enum_pb.js +334 -0
  26. package/lib/esm/common/gen/ivms101/v1/ivms/ivms101_pb.d.ts +520 -0
  27. package/lib/esm/common/gen/ivms101/v1/ivms/ivms101_pb.js +70 -0
  28. package/lib/esm/common/gen/tzero/v1/common/common_pb.d.ts +0 -2
  29. package/lib/esm/common/gen/tzero/v1/common/common_pb.js +1 -1
  30. package/lib/esm/common/gen/tzero/v1/common/payment_method_pb.d.ts +0 -34
  31. package/lib/esm/common/gen/tzero/v1/common/payment_method_pb.js +2 -2
  32. package/lib/esm/common/gen/tzero/v1/common/payment_receipt_pb.d.ts +0 -2
  33. package/lib/esm/common/gen/tzero/v1/common/payment_receipt_pb.js +1 -1
  34. package/lib/esm/common/gen/tzero/v1/payment/network_pb.d.ts +132 -177
  35. package/lib/esm/common/gen/tzero/v1/payment/network_pb.js +23 -17
  36. package/lib/esm/common/gen/tzero/v1/payment/provider_pb.d.ts +30 -9
  37. package/lib/esm/common/gen/tzero/v1/payment/provider_pb.js +8 -2
  38. package/lib/esm/common/gen/tzero/v1/payment_intent/provider/provider_pb.d.ts +4 -16
  39. package/lib/esm/common/gen/tzero/v1/payment_intent/provider/provider_pb.js +2 -2
  40. package/lib/esm/common/gen/tzero/v1/payment_intent/recipient/recipient_pb.d.ts +0 -10
  41. package/lib/esm/common/gen/tzero/v1/payment_intent/recipient/recipient_pb.js +2 -2
  42. package/lib/esm/common/gen/tzero/v1/public/public_pb.js +1 -1
  43. package/lib/esm/examples/update-quote.js +1 -1
  44. package/lib/esm/service/node.js +1 -1
  45. package/lib/tsconfig.cjs.tsbuildinfo +1 -1
  46. package/lib/tsconfig.esm.tsbuildinfo +1 -1
  47. package/package.json +10 -10
@@ -57,20 +57,14 @@ export declare const PaymentMethodSchema: GenMessage<PaymentMethod>;
57
57
  */
58
58
  export type SepaPaymentDetails = Message<"tzero.v1.common.SepaPaymentDetails"> & {
59
59
  /**
60
- * IBAN should be 15-34 characters, alphanumeric
61
- *
62
60
  * @generated from field: string iban = 20;
63
61
  */
64
62
  iban: string;
65
63
  /**
66
- * Beneficiary name should be 1-70 characters (SEPA standard)
67
- *
68
64
  * @generated from field: string beneficiary_name = 30;
69
65
  */
70
66
  beneficiaryName: string;
71
67
  /**
72
- * Payment reference up to 140 characters (SEPA standard)
73
- *
74
68
  * @generated from field: string payment_reference = 40;
75
69
  */
76
70
  paymentReference: string;
@@ -94,20 +88,14 @@ export declare const SwiftPaymentDetailsSchema: GenMessage<SwiftPaymentDetails>;
94
88
  */
95
89
  export type StablecoinPaymentDetails = Message<"tzero.v1.common.StablecoinPaymentDetails"> & {
96
90
  /**
97
- * Blockchain must be specified and not UNSPECIFIED
98
- *
99
91
  * @generated from field: tzero.v1.common.Blockchain blockchain = 10;
100
92
  */
101
93
  blockchain: Blockchain;
102
94
  /**
103
- * Stablecoin must be specified and not UNSPECIFIED
104
- *
105
95
  * @generated from field: tzero.v1.common.Stablecoin stablecoin = 20;
106
96
  */
107
97
  stablecoin: Stablecoin;
108
98
  /**
109
- * Blockchain address should be a valid hex address (20-64 chars for most blockchains)
110
- *
111
99
  * @generated from field: string address = 30;
112
100
  */
113
101
  address: string;
@@ -122,26 +110,18 @@ export declare const StablecoinPaymentDetailsSchema: GenMessage<StablecoinPaymen
122
110
  */
123
111
  export type AchPaymentDetails = Message<"tzero.v1.common.AchPaymentDetails"> & {
124
112
  /**
125
- * US bank routing number (9 digits)
126
- *
127
113
  * @generated from field: string routing_number = 10;
128
114
  */
129
115
  routingNumber: string;
130
116
  /**
131
- * US bank account number (up to 17 digits)
132
- *
133
117
  * @generated from field: string account_number = 20;
134
118
  */
135
119
  accountNumber: string;
136
120
  /**
137
- * Account holder name (1-70 characters)
138
- *
139
121
  * @generated from field: string account_holder_name = 30;
140
122
  */
141
123
  accountHolderName: string;
142
124
  /**
143
- * Account type (checking or savings)
144
- *
145
125
  * @generated from field: tzero.v1.common.AchPaymentDetails.AchAccountType account_type = 40;
146
126
  */
147
127
  accountType: AchPaymentDetails_AchAccountType;
@@ -177,44 +157,30 @@ export declare const AchPaymentDetails_AchAccountTypeSchema: GenEnum<AchPaymentD
177
157
  */
178
158
  export type WirePaymentDetails = Message<"tzero.v1.common.WirePaymentDetails"> & {
179
159
  /**
180
- * Bank name (1-70 characters)
181
- *
182
160
  * @generated from field: string bank_name = 10;
183
161
  */
184
162
  bankName: string;
185
163
  /**
186
- * Bank address (1-140 characters)
187
- *
188
164
  * @generated from field: string bank_address = 20;
189
165
  */
190
166
  bankAddress: string;
191
167
  /**
192
- * SWIFT/BIC code (8 or 11 characters)
193
- *
194
168
  * @generated from field: string swift_code = 30;
195
169
  */
196
170
  swiftCode: string;
197
171
  /**
198
- * Account number (up to 34 characters for international compatibility)
199
- *
200
172
  * @generated from field: string account_number = 40;
201
173
  */
202
174
  accountNumber: string;
203
175
  /**
204
- * Beneficiary name (1-70 characters)
205
- *
206
176
  * @generated from field: string beneficiary_name = 50;
207
177
  */
208
178
  beneficiaryName: string;
209
179
  /**
210
- * Beneficiary address (1-140 characters)
211
- *
212
180
  * @generated from field: string beneficiary_address = 60;
213
181
  */
214
182
  beneficiaryAddress: string;
215
183
  /**
216
- * Wire reference/purpose (up to 140 characters)
217
- *
218
184
  * @generated from field: string wire_reference = 70;
219
185
  */
220
186
  wireReference: string;
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-es v2.6.2 with parameter "target=ts,import_extension=js"
1
+ // @generated by protoc-gen-es v2.9.0 with parameter "target=ts,import_extension=js"
2
2
  // @generated from file tzero/v1/common/payment_method.proto (package tzero.v1.common, syntax proto3)
3
3
  /* eslint-disable */
4
4
  import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
@@ -7,7 +7,7 @@ import { file_buf_validate_validate } from "../../../buf/validate/validate_pb.js
7
7
  /**
8
8
  * Describes the file tzero/v1/common/payment_method.proto.
9
9
  */
10
- export const file_tzero_v1_common_payment_method = /*@__PURE__*/ fileDesc("CiR0emVyby92MS9jb21tb24vcGF5bWVudF9tZXRob2QucHJvdG8SD3R6ZXJvLnYxLmNvbW1vbiK2AgoNUGF5bWVudE1ldGhvZBIzCgRzZXBhGAogASgLMiMudHplcm8udjEuY29tbW9uLlNlcGFQYXltZW50RGV0YWlsc0gAEjUKBXN3aWZ0GB4gASgLMiQudHplcm8udjEuY29tbW9uLlN3aWZ0UGF5bWVudERldGFpbHNIABI/CgpzdGFibGVjb2luGCggASgLMikudHplcm8udjEuY29tbW9uLlN0YWJsZWNvaW5QYXltZW50RGV0YWlsc0gAEjEKA2FjaBgyIAEoCzIiLnR6ZXJvLnYxLmNvbW1vbi5BY2hQYXltZW50RGV0YWlsc0gAEjMKBHdpcmUYPCABKAsyIy50emVyby52MS5jb21tb24uV2lyZVBheW1lbnREZXRhaWxzSABCEAoHZGV0YWlscxIFukgCCAEilAEKElNlcGFQYXltZW50RGV0YWlscxI0CgRpYmFuGBQgASgJQia6SCNyIRAPGCIyG15bQS1aXXsyfVswLTldezJ9W0EtWjAtOV0rJBIjChBiZW5lZmljaWFyeV9uYW1lGB4gASgJQgm6SAZyBBABGEYSIwoRcGF5bWVudF9yZWZlcmVuY2UYKCABKAlCCLpIBXIDGIwBIhUKE1N3aWZ0UGF5bWVudERldGFpbHMiwQEKGFN0YWJsZWNvaW5QYXltZW50RGV0YWlscxI5CgpibG9ja2NoYWluGAogASgOMhsudHplcm8udjEuY29tbW9uLkJsb2NrY2hhaW5CCLpIBYIBAiAAEjkKCnN0YWJsZWNvaW4YFCABKA4yGy50emVyby52MS5jb21tb24uU3RhYmxlY29pbkIIukgFggECIAASLwoHYWRkcmVzcxgeIAEoCUIeukgbchkQFBhAMhNeKDB4KT9bYS1mQS1GMC05XSskItsCChFBY2hQYXltZW50RGV0YWlscxItCg5yb3V0aW5nX251bWJlchgKIAEoCUIVukgSchAQCRgJMgpeWzAtOV17OX0kEisKDmFjY291bnRfbnVtYmVy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20udHplcm8udjEuY29tbW9uQhJQYXltZW50TWV0aG9kUHJvdG9QAaICA1RWQ6oCD1R6ZXJvLlYxLkNvbW1vbsoCD1R6ZXJvXFYxXENvbW1vbuICG1R6ZXJvXFYxXENvbW1vblxHUEJNZXRhZGF0YeoCEVR6ZXJvOjpWMTo6Q29tbW9uYgZwcm90bzM", [file_tzero_v1_common_common, file_buf_validate_validate]);
10
+ export const file_tzero_v1_common_payment_method = /*@__PURE__*/ fileDesc("CiR0emVyby92MS9jb21tb24vcGF5bWVudF9tZXRob2QucHJvdG8SD3R6ZXJvLnYxLmNvbW1vbiK2AgoNUGF5bWVudE1ldGhvZBIzCgRzZXBhGAogASgLMiMudHplcm8udjEuY29tbW9uLlNlcGFQYXltZW50RGV0YWlsc0gAEjUKBXN3aWZ0GB4gASgLMiQudHplcm8udjEuY29tbW9uLlN3aWZ0UGF5bWVudERldGFpbHNIABI/CgpzdGFibGVjb2luGCggASgLMikudHplcm8udjEuY29tbW9uLlN0YWJsZWNvaW5QYXltZW50RGV0YWlsc0gAEjEKA2FjaBgyIAEoCzIiLnR6ZXJvLnYxLmNvbW1vbi5BY2hQYXltZW50RGV0YWlsc0gAEjMKBHdpcmUYPCABKAsyIy50emVyby52MS5jb21tb24uV2lyZVBheW1lbnREZXRhaWxzSABCEAoHZGV0YWlscxIFukgCCAEilAEKElNlcGFQYXltZW50RGV0YWlscxI0CgRpYmFuGBQgASgJQia6SCNyIRAPGCIyG15bQS1aXXsyfVswLTldezJ9W0EtWjAtOV0rJBIjChBiZW5lZmljaWFyeV9uYW1lGB4gASgJQgm6SAZyBBABGEYSIwoRcGF5bWVudF9yZWZlcmVuY2UYKCABKAlCCLpIBXIDGIwBIhUKE1N3aWZ0UGF5bWVudERldGFpbHMivQEKGFN0YWJsZWNvaW5QYXltZW50RGV0YWlscxI3CgpibG9ja2NoYWluGAogASgOMhsudHplcm8udjEuY29tbW9uLkJsb2NrY2hhaW5CBrpIA8gBARI3CgpzdGFibGVjb2luGBQ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RfVFlQRV9TRVBBEAoSHQoZUEFZTUVOVF9NRVRIT0RfVFlQRV9TV0lGVBAUEhwKGFBBWU1FTlRfTUVUSE9EX1RZUEVfQ0FSRBAeEiIKHlBBWU1FTlRfTUVUSE9EX1RZUEVfU1RBQkxFQ09JThAoEhsKF1BBWU1FTlRfTUVUSE9EX1RZUEVfQUNIEDISHAoYUEFZTUVOVF9NRVRIT0RfVFlQRV9XSVJFEDxChwEKE2NvbS50emVyby52MS5jb21tb25CElBheW1lbnRNZXRob2RQcm90b1ABogIDVFZDqgIPVHplcm8uVjEuQ29tbW9uygIPVHplcm9cVjFcQ29tbW9u4gIbVHplcm9cVjFcQ29tbW9uXEdQQk1ldGFkYXRh6gIRVHplcm86OlYxOjpDb21tb25iBnByb3RvMw", [file_tzero_v1_common_common, file_buf_validate_validate]);
11
11
  /**
12
12
  * Describes the message tzero.v1.common.PaymentMethod.
13
13
  * Use `create(PaymentMethodSchema)` to create a new message.
@@ -62,8 +62,6 @@ export declare const SwiftReceiptSchema: GenMessage<SwiftReceipt>;
62
62
  */
63
63
  export type StablecoinReceipt = Message<"tzero.v1.common.StablecoinReceipt"> & {
64
64
  /**
65
- * Transaction hash should be a valid hex string (64 chars for most blockchains)
66
- *
67
65
  * on-chain hex encoded transaction hash
68
66
  *
69
67
  * @generated from field: string transaction_hash = 10;
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-es v2.6.2 with parameter "target=ts,import_extension=js"
1
+ // @generated by protoc-gen-es v2.9.0 with parameter "target=ts,import_extension=js"
2
2
  // @generated from file tzero/v1/common/payment_receipt.proto (package tzero.v1.common, syntax proto3)
3
3
  /* eslint-disable */
4
4
  import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
@@ -2,6 +2,7 @@ import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobu
2
2
  import type { Decimal } from "../common/common_pb.js";
3
3
  import type { PaymentMethod, PaymentMethodType } from "../common/payment_method_pb.js";
4
4
  import type { PaymentReceipt } from "../common/payment_receipt_pb.js";
5
+ import type { Person } from "../../../ivms101/v1/ivms/ivms101_pb.js";
5
6
  import type { Timestamp } from "@bufbuild/protobuf/wkt";
6
7
  import type { Message } from "@bufbuild/protobuf";
7
8
  /**
@@ -42,18 +43,12 @@ export declare const UpdateQuoteRequestSchema: GenMessage<UpdateQuoteRequest>;
42
43
  */
43
44
  export type UpdateQuoteRequest_Quote = Message<"tzero.v1.payment.UpdateQuoteRequest.Quote"> & {
44
45
  /**
45
- * ISO 4217 currency code (3 uppercase letters)
46
- *
47
46
  * BRL, EUR, GBP, etc. (ISO 4217 currency code)
48
47
  *
49
48
  * @generated from field: string currency = 10;
50
49
  */
51
50
  currency: string;
52
51
  /**
53
- * Quote type must be specified
54
- *
55
- * type of the quote, e.g. real-time or guaranteed
56
- *
57
52
  * @generated from field: tzero.v1.payment.QuoteType quote_type = 20;
58
53
  */
59
54
  quoteType: QuoteType;
@@ -64,24 +59,18 @@ export type UpdateQuoteRequest_Quote = Message<"tzero.v1.payment.UpdateQuoteRequ
64
59
  */
65
60
  paymentMethod: PaymentMethodType;
66
61
  /**
67
- * At least one band is required
68
- *
69
62
  * list of bands for this quote
70
63
  *
71
64
  * @generated from field: repeated tzero.v1.payment.UpdateQuoteRequest.Quote.Band bands = 30;
72
65
  */
73
66
  bands: UpdateQuoteRequest_Quote_Band[];
74
67
  /**
75
- * Expiration must be in the future
76
- *
77
68
  * expiration time of the quote
78
69
  *
79
70
  * @generated from field: google.protobuf.Timestamp expiration = 60;
80
71
  */
81
72
  expiration?: Timestamp;
82
73
  /**
83
- * Timestamp is required
84
- *
85
74
  * timestamp quote was created
86
75
  *
87
76
  * @generated from field: google.protobuf.Timestamp timestamp = 70;
@@ -98,24 +87,18 @@ export declare const UpdateQuoteRequest_QuoteSchema: GenMessage<UpdateQuoteReque
98
87
  */
99
88
  export type UpdateQuoteRequest_Quote_Band = Message<"tzero.v1.payment.UpdateQuoteRequest.Quote.Band"> & {
100
89
  /**
101
- * Client quote ID must be non-empty and reasonable length
102
- *
103
90
  * unique client generated id for this band
104
91
  *
105
92
  * @generated from field: string client_quote_id = 10;
106
93
  */
107
94
  clientQuoteId: string;
108
95
  /**
109
- * Max amount is required
110
- *
111
96
  * max amount of USD this quote is applicable for. Please look into documentation for valid amounts.
112
97
  *
113
98
  * @generated from field: tzero.v1.common.Decimal max_amount = 40;
114
99
  */
115
100
  maxAmount?: Decimal;
116
101
  /**
117
- * Rate is required and must be positive
118
- *
119
102
  * USD/currency rate
120
103
  *
121
104
  * @generated from field: tzero.v1.common.Decimal rate = 50;
@@ -137,150 +120,103 @@ export type UpdateQuoteResponse = Message<"tzero.v1.payment.UpdateQuoteResponse"
137
120
  */
138
121
  export declare const UpdateQuoteResponseSchema: GenMessage<UpdateQuoteResponse>;
139
122
  /**
140
- * @generated from message tzero.v1.payment.GetPayoutQuoteRequest
123
+ * @generated from message tzero.v1.payment.GetQuoteRequest
141
124
  */
142
- export type GetPayoutQuoteRequest = Message<"tzero.v1.payment.GetPayoutQuoteRequest"> & {
125
+ export type GetQuoteRequest = Message<"tzero.v1.payment.GetQuoteRequest"> & {
143
126
  /**
144
- * ISO 4217 currency code (3 uppercase letters)
145
- *
146
127
  * ISO 4217 currency code, e.g. EUR, GBP, etc. in which the payout should be made
147
128
  *
148
- * @generated from field: string payout_currency = 10;
129
+ * @generated from field: string pay_in_currency = 10;
149
130
  */
150
- payoutCurrency: string;
131
+ payInCurrency: string;
151
132
  /**
152
- * Amount is required
153
- *
154
- * amount in quote currency, only USD is supported
133
+ * amount
155
134
  *
156
- * @generated from field: tzero.v1.common.Decimal amount = 20;
135
+ * @generated from field: tzero.v1.payment.PaymentAmount amount = 20;
157
136
  */
158
- amount?: Decimal;
137
+ amount?: PaymentAmount;
159
138
  /**
160
- * Quote type must be specified
161
- *
162
- * type of the quote, e.g. real-time or guaranteed
139
+ * payment method to use for the payout, e.g. bank transfer, card, etc.
163
140
  *
164
- * @generated from field: tzero.v1.payment.QuoteType quote_type = 30;
141
+ * @generated from field: tzero.v1.common.PaymentMethodType pay_in_method = 30;
165
142
  */
166
- quoteType: QuoteType;
143
+ payInMethod: PaymentMethodType;
167
144
  /**
168
- * Payout method must be specified
145
+ * ISO 4217 currency code, e.g. EUR, GBP, etc. in which the payout should be made
169
146
  *
147
+ * @generated from field: string pay_out_currency = 40;
148
+ */
149
+ payOutCurrency: string;
150
+ /**
170
151
  * payment method to use for the payout, e.g. bank transfer, card, etc.
171
152
  *
172
- * @generated from field: tzero.v1.common.PaymentMethodType payout_method = 40;
153
+ * @generated from field: tzero.v1.common.PaymentMethodType pay_out_method = 50;
154
+ */
155
+ payOutMethod: PaymentMethodType;
156
+ /**
157
+ * type of the quote, e.g. real-time or guaranteed
158
+ *
159
+ * @generated from field: tzero.v1.payment.QuoteType quote_type = 60;
173
160
  */
174
- payoutMethod: PaymentMethodType;
161
+ quoteType: QuoteType;
175
162
  };
176
163
  /**
177
- * Describes the message tzero.v1.payment.GetPayoutQuoteRequest.
178
- * Use `create(GetPayoutQuoteRequestSchema)` to create a new message.
164
+ * Describes the message tzero.v1.payment.GetQuoteRequest.
165
+ * Use `create(GetQuoteRequestSchema)` to create a new message.
179
166
  */
180
- export declare const GetPayoutQuoteRequestSchema: GenMessage<GetPayoutQuoteRequest>;
167
+ export declare const GetQuoteRequestSchema: GenMessage<GetQuoteRequest>;
181
168
  /**
182
- * @generated from message tzero.v1.payment.GetPayoutQuoteResponse
169
+ * @generated from message tzero.v1.payment.GetQuoteResponse
183
170
  */
184
- export type GetPayoutQuoteResponse = Message<"tzero.v1.payment.GetPayoutQuoteResponse"> & {
171
+ export type GetQuoteResponse = Message<"tzero.v1.payment.GetQuoteResponse"> & {
185
172
  /**
186
- * Rate is required
187
- *
188
173
  * rate in USD/currency, e.g. 1.2345 for 1 USD = 1.2345 EUR
189
174
  *
190
175
  * @generated from field: tzero.v1.common.Decimal rate = 10;
191
176
  */
192
177
  rate?: Decimal;
193
178
  /**
194
- * Expiration must be in the future
195
- *
196
179
  * expiration time of the quote
197
180
  *
198
181
  * @generated from field: google.protobuf.Timestamp expiration = 20;
199
182
  */
200
183
  expiration?: Timestamp;
201
184
  /**
202
- * Quote ID is required
203
- *
204
- *
205
- *
206
185
  * @generated from field: tzero.v1.payment.QuoteId quote_id = 30;
207
186
  */
208
187
  quoteId?: QuoteId;
209
188
  };
210
189
  /**
211
- * Describes the message tzero.v1.payment.GetPayoutQuoteResponse.
212
- * Use `create(GetPayoutQuoteResponseSchema)` to create a new message.
190
+ * Describes the message tzero.v1.payment.GetQuoteResponse.
191
+ * Use `create(GetQuoteResponseSchema)` to create a new message.
213
192
  */
214
- export declare const GetPayoutQuoteResponseSchema: GenMessage<GetPayoutQuoteResponse>;
193
+ export declare const GetQuoteResponseSchema: GenMessage<GetQuoteResponse>;
215
194
  /**
216
195
  * @generated from message tzero.v1.payment.CreatePaymentRequest
217
196
  */
218
197
  export type CreatePaymentRequest = Message<"tzero.v1.payment.CreatePaymentRequest"> & {
219
198
  /**
220
- * Payment client ID must be non-empty and reasonable length
221
- *
222
199
  * unique client generated id for this payment
223
200
  *
224
201
  * @generated from field: string payment_client_id = 10;
225
202
  */
226
203
  paymentClientId: string;
227
204
  /**
228
- * ISO 4217 currency code (3 uppercase letters)
229
- *
230
- * ISO 4217 currency code, e.g. EUR, GBP, etc. in which the payout should be made
231
- *
232
- * @generated from field: string payout_currency = 20;
233
- */
234
- payoutCurrency: string;
235
- /**
236
- * Payout details are required
237
- *
238
- * payment method to use for the payout, e.g. bank transfer, card, etc.
239
- *
240
- * @generated from field: tzero.v1.common.PaymentMethod payout_details = 25;
241
- */
242
- payoutDetails?: PaymentMethod;
243
- /**
244
- * Amount is required
245
- *
246
- * amount in the payin currency, by default USD (if the payIn currency is not specified)
247
- *
248
- * @generated from field: tzero.v1.common.Decimal amount = 30;
249
- */
250
- amount?: Decimal;
251
- /**
252
- * If specified, must be valid ISO 4217 currency code
253
- *
254
- * if not specified, USD is used
255
- *
256
- * @generated from field: optional string payin_currency = 40;
205
+ * @generated from field: tzero.v1.payment.PaymentAmount amount = 30;
257
206
  */
258
- payinCurrency?: string;
207
+ amount?: PaymentAmount;
259
208
  /**
260
- * optional or option in the oneof?
261
- *
262
- * @generated from field: tzero.v1.payment.CreatePaymentRequest.Sender sender = 50;
263
- */
264
- sender?: CreatePaymentRequest_Sender;
265
- /**
266
- * optional or option in the oneof?
267
- *
268
- * @generated from field: tzero.v1.payment.CreatePaymentRequest.Recipient recipient = 60;
209
+ * @generated from field: tzero.v1.payment.CreatePaymentRequest.PayIn pay_in = 40;
269
210
  */
270
- recipient?: CreatePaymentRequest_Recipient;
211
+ payIn?: CreatePaymentRequest_PayIn;
271
212
  /**
272
- * optional reference for the payment, up to 140 characters
273
- *
274
- * @generated from field: optional string reference = 70 [deprecated = true];
275
- * @deprecated
213
+ * @generated from field: tzero.v1.payment.CreatePaymentRequest.PayOut pay_out = 45;
276
214
  */
277
- reference?: string;
215
+ payOut?: CreatePaymentRequest_PayOut;
278
216
  /**
279
- * if specified, must be a valid quoteId that was previously returned by the GetPayoutQuote method
280
- *
281
- * @generated from field: optional tzero.v1.payment.QuoteId quote_id = 100;
217
+ * @generated from field: optional tzero.v1.payment.CreatePaymentRequest.TravelRuleData travel_rule_data = 100;
282
218
  */
283
- quoteId?: QuoteId;
219
+ travelRuleData?: CreatePaymentRequest_TravelRuleData;
284
220
  };
285
221
  /**
286
222
  * Describes the message tzero.v1.payment.CreatePaymentRequest.
@@ -288,100 +224,83 @@ export type CreatePaymentRequest = Message<"tzero.v1.payment.CreatePaymentReques
288
224
  */
289
225
  export declare const CreatePaymentRequestSchema: GenMessage<CreatePaymentRequest>;
290
226
  /**
291
- * Work in progress
227
+ * Provider must submit quotes to the network for the specified pay-in currency and payment method
292
228
  *
293
- * @generated from message tzero.v1.payment.CreatePaymentRequest.Sender
229
+ * @generated from message tzero.v1.payment.CreatePaymentRequest.PayIn
294
230
  */
295
- export type CreatePaymentRequest_Sender = Message<"tzero.v1.payment.CreatePaymentRequest.Sender"> & {
231
+ export type CreatePaymentRequest_PayIn = Message<"tzero.v1.payment.CreatePaymentRequest.PayIn"> & {
296
232
  /**
297
- * @generated from oneof tzero.v1.payment.CreatePaymentRequest.Sender.sender
233
+ * @generated from field: string currency = 10;
298
234
  */
299
- sender: {
300
- /**
301
- * @generated from field: tzero.v1.payment.CreatePaymentRequest.PrivatePerson private_person = 10;
302
- */
303
- value: CreatePaymentRequest_PrivatePerson;
304
- case: "privatePerson";
305
- } | {
306
- case: undefined;
307
- value?: undefined;
308
- };
235
+ currency: string;
236
+ /**
237
+ * @generated from field: tzero.v1.common.PaymentMethodType payment_method = 20;
238
+ */
239
+ paymentMethod: PaymentMethodType;
309
240
  };
310
241
  /**
311
- * Describes the message tzero.v1.payment.CreatePaymentRequest.Sender.
312
- * Use `create(CreatePaymentRequest_SenderSchema)` to create a new message.
242
+ * Describes the message tzero.v1.payment.CreatePaymentRequest.PayIn.
243
+ * Use `create(CreatePaymentRequest_PayInSchema)` to create a new message.
313
244
  */
314
- export declare const CreatePaymentRequest_SenderSchema: GenMessage<CreatePaymentRequest_Sender>;
245
+ export declare const CreatePaymentRequest_PayInSchema: GenMessage<CreatePaymentRequest_PayIn>;
315
246
  /**
316
- * Work in progress
317
- *
318
- * @generated from message tzero.v1.payment.CreatePaymentRequest.Recipient
247
+ * @generated from message tzero.v1.payment.CreatePaymentRequest.PayOut
319
248
  */
320
- export type CreatePaymentRequest_Recipient = Message<"tzero.v1.payment.CreatePaymentRequest.Recipient"> & {
249
+ export type CreatePaymentRequest_PayOut = Message<"tzero.v1.payment.CreatePaymentRequest.PayOut"> & {
321
250
  /**
322
- * @generated from oneof tzero.v1.payment.CreatePaymentRequest.Recipient.recipient
251
+ * @generated from field: string currency = 10;
323
252
  */
324
- recipient: {
325
- /**
326
- * @generated from field: tzero.v1.payment.CreatePaymentRequest.PrivatePerson private_person = 10;
327
- */
328
- value: CreatePaymentRequest_PrivatePerson;
329
- case: "privatePerson";
330
- } | {
331
- case: undefined;
332
- value?: undefined;
333
- };
253
+ currency: string;
254
+ /**
255
+ * @generated from field: tzero.v1.common.PaymentMethod payment_method = 20;
256
+ */
257
+ paymentMethod?: PaymentMethod;
258
+ /**
259
+ * if specified, must be a valid quoteId that was previously returned by the GetPayoutQuote method otherwise last available quote will be used
260
+ *
261
+ * @generated from field: optional tzero.v1.payment.QuoteId quote_id = 100;
262
+ */
263
+ quoteId?: QuoteId;
334
264
  };
335
265
  /**
336
- * Describes the message tzero.v1.payment.CreatePaymentRequest.Recipient.
337
- * Use `create(CreatePaymentRequest_RecipientSchema)` to create a new message.
266
+ * Describes the message tzero.v1.payment.CreatePaymentRequest.PayOut.
267
+ * Use `create(CreatePaymentRequest_PayOutSchema)` to create a new message.
338
268
  */
339
- export declare const CreatePaymentRequest_RecipientSchema: GenMessage<CreatePaymentRequest_Recipient>;
269
+ export declare const CreatePaymentRequest_PayOutSchema: GenMessage<CreatePaymentRequest_PayOut>;
340
270
  /**
341
- * Work in progress
342
- *
343
- * @generated from message tzero.v1.payment.CreatePaymentRequest.PrivatePerson
271
+ * @generated from message tzero.v1.payment.CreatePaymentRequest.TravelRuleData
344
272
  */
345
- export type CreatePaymentRequest_PrivatePerson = Message<"tzero.v1.payment.CreatePaymentRequest.PrivatePerson"> & {
273
+ export type CreatePaymentRequest_TravelRuleData = Message<"tzero.v1.payment.CreatePaymentRequest.TravelRuleData"> & {
346
274
  /**
347
- * Private person client ID must be non-empty
275
+ * the natural or legal person that requests payment with originating provider
348
276
  *
349
- * @generated from field: string private_person_client_id = 10;
277
+ * @generated from field: repeated ivms101.Person originator = 10;
350
278
  */
351
- privatePersonClientId: string;
279
+ originator: Person[];
352
280
  /**
353
- * First name must be non-empty and reasonable length
281
+ * the natural or legal person or legal arrangement who is identified
282
+ * by the originator as the receiver of the requested payment.
354
283
  *
355
- * @generated from field: string first_name = 20;
284
+ * @generated from field: repeated ivms101.Person beneficiary = 20;
356
285
  */
357
- firstName: string;
358
- /**
359
- * Last name must be non-empty and reasonable length
360
- *
361
- * @generated from field: string last_name = 30;
362
- */
363
- lastName: string;
286
+ beneficiary: Person[];
364
287
  };
365
288
  /**
366
- * Describes the message tzero.v1.payment.CreatePaymentRequest.PrivatePerson.
367
- * Use `create(CreatePaymentRequest_PrivatePersonSchema)` to create a new message.
289
+ * Describes the message tzero.v1.payment.CreatePaymentRequest.TravelRuleData.
290
+ * Use `create(CreatePaymentRequest_TravelRuleDataSchema)` to create a new message.
368
291
  */
369
- export declare const CreatePaymentRequest_PrivatePersonSchema: GenMessage<CreatePaymentRequest_PrivatePerson>;
292
+ export declare const CreatePaymentRequest_TravelRuleDataSchema: GenMessage<CreatePaymentRequest_TravelRuleData>;
370
293
  /**
371
294
  * @generated from message tzero.v1.payment.QuoteId
372
295
  */
373
296
  export type QuoteId = Message<"tzero.v1.payment.QuoteId"> & {
374
297
  /**
375
- * Quote ID must be positive
376
- *
377
298
  * unique identifier of the quote within the specified provider
378
299
  *
379
300
  * @generated from field: int64 quote_id = 30;
380
301
  */
381
302
  quoteId: bigint;
382
303
  /**
383
- * Provider ID must be positive
384
- *
385
304
  * provider id of the quote
386
305
  *
387
306
  * @generated from field: int32 provider_id = 40;
@@ -398,8 +317,6 @@ export declare const QuoteIdSchema: GenMessage<QuoteId>;
398
317
  */
399
318
  export type CreatePaymentResponse = Message<"tzero.v1.payment.CreatePaymentResponse"> & {
400
319
  /**
401
- * Payment client ID must be non-empty
402
- *
403
320
  * client generated id supplied in the request
404
321
  *
405
322
  * @generated from field: string payment_client_id = 10;
@@ -443,13 +360,19 @@ export declare const CreatePaymentResponseSchema: GenMessage<CreatePaymentRespon
443
360
  */
444
361
  export type CreatePaymentResponse_Success = Message<"tzero.v1.payment.CreatePaymentResponse.Success"> & {
445
362
  /**
446
- * Payment ID must be positive
447
- *
448
363
  * payment id assigned by the network
449
364
  *
450
- * @generated from field: int64 payment_id = 10;
365
+ * @generated from field: uint64 payment_id = 10;
451
366
  */
452
367
  paymentId: bigint;
368
+ /**
369
+ * @generated from field: tzero.v1.common.Decimal pay_in_amount = 20;
370
+ */
371
+ payInAmount?: Decimal;
372
+ /**
373
+ * @generated from field: tzero.v1.common.Decimal settlement_amount = 30;
374
+ */
375
+ settlementAmount?: Decimal;
453
376
  };
454
377
  /**
455
378
  * Describes the message tzero.v1.payment.CreatePaymentResponse.Success.
@@ -483,19 +406,15 @@ export declare const CreatePaymentResponse_Failure_ReasonSchema: GenEnum<CreateP
483
406
  */
484
407
  export type ConfirmPayoutRequest = Message<"tzero.v1.payment.ConfirmPayoutRequest"> & {
485
408
  /**
486
- * Payment ID must be positive
487
- *
488
409
  * payment id assigned by the network, this is the same payment id that was provided in the PayoutRequest
489
410
  *
490
- * @generated from field: int64 payment_id = 10;
411
+ * @generated from field: uint64 payment_id = 10;
491
412
  */
492
413
  paymentId: bigint;
493
414
  /**
494
- * Payout ID must be positive
495
- *
496
415
  * payout id assigned by the payout provider, this is the same payout id that was provided in the PayoutRequest
497
416
  *
498
- * @generated from field: int64 payout_id = 20;
417
+ * @generated from field: uint64 payout_id = 20;
499
418
  */
500
419
  payoutId: bigint;
501
420
  /**
@@ -520,6 +439,42 @@ export type ConfirmPayoutResponse = Message<"tzero.v1.payment.ConfirmPayoutRespo
520
439
  * Use `create(ConfirmPayoutResponseSchema)` to create a new message.
521
440
  */
522
441
  export declare const ConfirmPayoutResponseSchema: GenMessage<ConfirmPayoutResponse>;
442
+ /**
443
+ * Payment amount could be specified eiter as pay-in amount and then converted to corresponding amount of pay-out amount
444
+ * or as pay-out amount, so that pay-in and settlement amounts are calculated accordingly
445
+ *
446
+ * @generated from message tzero.v1.payment.PaymentAmount
447
+ */
448
+ export type PaymentAmount = Message<"tzero.v1.payment.PaymentAmount"> & {
449
+ /**
450
+ * @generated from oneof tzero.v1.payment.PaymentAmount.amount
451
+ */
452
+ amount: {
453
+ /**
454
+ * Amount in the pay-in currency
455
+ *
456
+ * @generated from field: tzero.v1.common.Decimal pay_in_amount = 10;
457
+ */
458
+ value: Decimal;
459
+ case: "payInAmount";
460
+ } | {
461
+ /**
462
+ * Amount in the pay-out currency
463
+ *
464
+ * @generated from field: tzero.v1.common.Decimal pay_out_amount = 20;
465
+ */
466
+ value: Decimal;
467
+ case: "payOutAmount";
468
+ } | {
469
+ case: undefined;
470
+ value?: undefined;
471
+ };
472
+ };
473
+ /**
474
+ * Describes the message tzero.v1.payment.PaymentAmount.
475
+ * Use `create(PaymentAmountSchema)` to create a new message.
476
+ */
477
+ export declare const PaymentAmountSchema: GenMessage<PaymentAmount>;
523
478
  /**
524
479
  * @generated from enum tzero.v1.payment.QuoteType
525
480
  */
@@ -565,12 +520,12 @@ export declare const NetworkService: GenService<{
565
520
  * Request the best available quote for a payout in a specific currency, for a given amount.
566
521
  * If the payout quote exists, but the credit limit is exceeded, this quote will not be considered.
567
522
  *
568
- * @generated from rpc tzero.v1.payment.NetworkService.GetPayoutQuote
523
+ * @generated from rpc tzero.v1.payment.NetworkService.GetQuote
569
524
  */
570
- getPayoutQuote: {
525
+ getQuote: {
571
526
  methodKind: "unary";
572
- input: typeof GetPayoutQuoteRequestSchema;
573
- output: typeof GetPayoutQuoteResponseSchema;
527
+ input: typeof GetQuoteRequestSchema;
528
+ output: typeof GetQuoteResponseSchema;
574
529
  };
575
530
  /**
576
531
  * *