@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.
- package/lib/cjs/client/client.js +46 -0
- package/lib/cjs/client/signer.js +69 -0
- package/lib/cjs/common/gen/buf/validate/validate_pb.d.ts +4590 -0
- package/lib/cjs/common/gen/buf/validate/validate_pb.js +353 -0
- package/lib/{common → cjs/common}/gen/tzero/v1/common/common_pb.d.ts +2 -0
- package/lib/cjs/common/gen/tzero/v1/common/common_pb.js +57 -0
- package/lib/{common → cjs/common}/gen/tzero/v1/common/payment_method_pb.d.ts +40 -22
- package/lib/cjs/common/gen/tzero/v1/common/payment_method_pb.js +67 -0
- package/lib/cjs/common/gen/tzero/v1/common/payment_receipt_pb.d.ts +77 -0
- package/lib/cjs/common/gen/tzero/v1/common/payment_receipt_pb.js +32 -0
- package/lib/{common → cjs/common}/gen/tzero/v1/payment/network_pb.d.ts +98 -59
- package/lib/cjs/common/gen/tzero/v1/payment/network_pb.js +139 -0
- package/lib/{common → cjs/common}/gen/tzero/v1/payment/provider_pb.d.ts +153 -53
- package/lib/cjs/common/gen/tzero/v1/payment/provider_pb.js +241 -0
- package/lib/{common → cjs/common}/gen/tzero/v1/payment_intent/provider/provider_pb.d.ts +22 -0
- package/lib/cjs/common/gen/tzero/v1/payment_intent/provider/provider_pb.js +88 -0
- package/lib/{common → cjs/common}/gen/tzero/v1/payment_intent/recipient/recipient_pb.d.ts +201 -14
- package/lib/cjs/common/gen/tzero/v1/payment_intent/recipient/recipient_pb.js +95 -0
- package/lib/cjs/common/gen/tzero/v1/public/public_pb.js +88 -0
- package/lib/cjs/common/headers.js +10 -0
- package/lib/cjs/examples/payment_intent/pay-in-provider-flow.d.ts +4 -0
- package/lib/cjs/examples/payment_intent/pay-in-provider-flow.js +56 -0
- package/lib/cjs/examples/payment_intent/service.d.ts +1 -0
- package/lib/cjs/examples/payment_intent/service.js +68 -0
- package/lib/cjs/examples/server.d.ts +4 -0
- package/lib/cjs/examples/server.js +93 -0
- package/lib/cjs/examples/update-quote.d.ts +4 -0
- package/lib/cjs/examples/update-quote.js +42 -0
- package/lib/cjs/index.js +50 -0
- package/lib/cjs/package.json +1 -0
- package/lib/cjs/payment_intent/provider/index.js +17 -0
- package/lib/cjs/payment_intent/recipient/index.js +17 -0
- package/lib/cjs/service/node.js +15 -0
- package/lib/cjs/service/service.js +112 -0
- package/lib/esm/client/client.d.ts +16 -0
- package/lib/esm/client/signer.d.ts +3 -0
- package/lib/esm/common/gen/buf/validate/validate_pb.d.ts +4590 -0
- package/lib/esm/common/gen/buf/validate/validate_pb.js +350 -0
- package/lib/esm/common/gen/tzero/v1/common/common_pb.d.ts +66 -0
- package/lib/{common → esm/common}/gen/tzero/v1/common/common_pb.js +2 -1
- package/lib/esm/common/gen/tzero/v1/common/payment_method_pb.d.ts +140 -0
- package/lib/esm/common/gen/tzero/v1/common/payment_method_pb.js +64 -0
- package/lib/esm/common/gen/tzero/v1/common/payment_receipt_pb.d.ts +77 -0
- package/lib/esm/common/gen/tzero/v1/common/payment_receipt_pb.js +29 -0
- package/lib/esm/common/gen/tzero/v1/payment/network_pb.d.ts +606 -0
- package/lib/{common → esm/common}/gen/tzero/v1/payment/network_pb.js +9 -17
- package/lib/esm/common/gen/tzero/v1/payment/provider_pb.d.ts +741 -0
- package/lib/{common → esm/common}/gen/tzero/v1/payment/provider_pb.js +71 -36
- package/lib/esm/common/gen/tzero/v1/payment_intent/provider/provider_pb.d.ts +318 -0
- package/lib/{common → esm/common}/gen/tzero/v1/payment_intent/provider/provider_pb.js +2 -1
- package/lib/esm/common/gen/tzero/v1/payment_intent/recipient/recipient_pb.d.ts +401 -0
- package/lib/esm/common/gen/tzero/v1/payment_intent/recipient/recipient_pb.js +92 -0
- package/lib/esm/common/gen/tzero/v1/public/public_pb.d.ts +234 -0
- package/lib/esm/common/headers.d.ts +6 -0
- package/lib/esm/examples/payment_intent/pay-in-provider-flow.d.ts +4 -0
- package/lib/esm/examples/payment_intent/pay-in-provider-flow.js +51 -0
- package/lib/esm/examples/payment_intent/service.d.ts +1 -0
- package/lib/esm/examples/payment_intent/service.js +30 -0
- package/lib/esm/examples/server.d.ts +4 -0
- package/lib/esm/examples/server.js +55 -0
- package/lib/esm/examples/update-quote.d.ts +4 -0
- package/lib/esm/examples/update-quote.js +37 -0
- package/lib/esm/index.d.ts +11 -0
- package/lib/esm/payment_intent/provider/index.js +1 -0
- package/lib/esm/payment_intent/recipient/index.js +1 -0
- package/lib/esm/service/node.d.ts +3 -0
- package/lib/esm/service/service.d.ts +15 -0
- package/lib/{service → esm/service}/service.js +2 -2
- package/lib/tsconfig.cjs.tsbuildinfo +1 -0
- package/lib/tsconfig.esm.tsbuildinfo +1 -0
- package/package.json +16 -7
- package/lib/common/gen/tzero/v1/common/payment_method_pb.js +0 -57
- package/lib/common/gen/tzero/v1/payment_intent/recipient/recipient_pb.js +0 -59
- /package/lib/{client → cjs/client}/client.d.ts +0 -0
- /package/lib/{client → cjs/client}/signer.d.ts +0 -0
- /package/lib/{common → cjs/common}/gen/tzero/v1/public/public_pb.d.ts +0 -0
- /package/lib/{common → cjs/common}/headers.d.ts +0 -0
- /package/lib/{index.d.ts → cjs/index.d.ts} +0 -0
- /package/lib/{payment_intent → cjs/payment_intent}/provider/index.d.ts +0 -0
- /package/lib/{payment_intent → cjs/payment_intent}/recipient/index.d.ts +0 -0
- /package/lib/{service → cjs/service}/node.d.ts +0 -0
- /package/lib/{service → cjs/service}/service.d.ts +0 -0
- /package/lib/{client → esm/client}/client.js +0 -0
- /package/lib/{client → esm/client}/signer.js +0 -0
- /package/lib/{common → esm/common}/gen/tzero/v1/public/public_pb.js +0 -0
- /package/lib/{common → esm/common}/headers.js +0 -0
- /package/lib/{index.js → esm/index.js} +0 -0
- /package/lib/{payment_intent/provider/index.js → esm/payment_intent/provider/index.d.ts} +0 -0
- /package/lib/{payment_intent/recipient/index.js → esm/payment_intent/recipient/index.d.ts} +0 -0
- /package/lib/{service → esm/service}/node.js +0 -0
|
@@ -3,12 +3,14 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
5
5
|
import { file_tzero_v1_common_payment_method } from "../common/payment_method_pb.js";
|
|
6
|
+
import { file_tzero_v1_common_payment_receipt } from "../common/payment_receipt_pb.js";
|
|
6
7
|
import { file_tzero_v1_common_common } from "../common/common_pb.js";
|
|
7
8
|
import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
9
|
+
import { file_buf_validate_validate } from "../../../buf/validate/validate_pb.js";
|
|
8
10
|
/**
|
|
9
11
|
* Describes the file tzero/v1/payment/provider.proto.
|
|
10
12
|
*/
|
|
11
|
-
export const file_tzero_v1_payment_provider = /*@__PURE__*/ fileDesc("
|
|
13
|
+
export const file_tzero_v1_payment_provider = /*@__PURE__*/ fileDesc("Ch90emVyby92MS9wYXltZW50L3Byb3ZpZGVyLnByb3RvEhB0emVyby52MS5wYXltZW50IrIOChpBcHBlbmRMZWRnZXJFbnRyaWVzUmVxdWVzdBJYCgx0cmFuc2FjdGlvbnMYFCADKAsyOC50emVyby52MS5wYXltZW50LkFwcGVuZExlZGdlckVudHJpZXNSZXF1ZXN0LlRyYW5zYWN0aW9uQgi6SAWSAQIIARqeCAoLVHJhbnNhY3Rpb24SHwoOdHJhbnNhY3Rpb25faWQYCiABKARCB7pIBDICIAASUwoHZW50cmllcxgeIAMoCzI4LnR6ZXJvLnYxLnBheW1lbnQuQXBwZW5kTGVkZ2VyRW50cmllc1JlcXVlc3QuTGVkZ2VyRW50cnlCCLpIBZIBAggBElAKBnBheV9pbhhuIAEoCzI+LnR6ZXJvLnYxLnBheW1lbnQuQXBwZW5kTGVkZ2VyRW50cmllc1JlcXVlc3QuVHJhbnNhY3Rpb24uUGF5SW5IABJoChJwYXlvdXRfcmVzZXJ2YXRpb24YeCABKAsySi50emVyby52MS5wYX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W50cmllcxIsLnR6ZXJvLnYxLnBheW1lbnQuQXBwZW5kTGVkZ2VyRW50cmllc1JlcXVlc3QaLS50emVyby52MS5wYXltZW50LkFwcGVuZExlZGdlckVudHJpZXNSZXNwb25zZSIDkAICQocBChRjb20udHplcm8udjEucGF5bWVudEINUHJvdmlkZXJQcm90b1ABogIDVFZQqgIQVHplcm8uVjEuUGF5bWVudMoCEFR6ZXJvXFYxXFBheW1lbnTiAhxUemVyb1xWMVxQYXltZW50XEdQQk1ldGFkYXRh6gISVHplcm86OlYxOjpQYXltZW50YgZwcm90bzM", [file_tzero_v1_common_payment_method, file_tzero_v1_common_payment_receipt, file_tzero_v1_common_common, file_google_protobuf_timestamp, file_buf_validate_validate]);
|
|
12
14
|
/**
|
|
13
15
|
* Describes the message tzero.v1.payment.AppendLedgerEntriesRequest.
|
|
14
16
|
* Use `create(AppendLedgerEntriesRequestSchema)` to create a new message.
|
|
@@ -66,63 +68,67 @@ export var AppendLedgerEntriesRequest_AccountType;
|
|
|
66
68
|
/**
|
|
67
69
|
* Reflects the user's payable balance, the amount that the provider owes to the user.
|
|
68
70
|
*
|
|
69
|
-
* @generated from enum value: ACCOUNT_TYPE_USER_PAYABLE =
|
|
71
|
+
* @generated from enum value: ACCOUNT_TYPE_USER_PAYABLE = 10;
|
|
70
72
|
*/
|
|
71
|
-
AppendLedgerEntriesRequest_AccountType[AppendLedgerEntriesRequest_AccountType["USER_PAYABLE"] =
|
|
73
|
+
AppendLedgerEntriesRequest_AccountType[AppendLedgerEntriesRequest_AccountType["USER_PAYABLE"] = 10] = "USER_PAYABLE";
|
|
72
74
|
/**
|
|
73
75
|
* Reflects the cash balance of the provider.
|
|
74
76
|
*
|
|
75
|
-
* @generated from enum value: ACCOUNT_TYPE_CASH =
|
|
77
|
+
* @generated from enum value: ACCOUNT_TYPE_CASH = 20;
|
|
76
78
|
*/
|
|
77
|
-
AppendLedgerEntriesRequest_AccountType[AppendLedgerEntriesRequest_AccountType["CASH"] =
|
|
79
|
+
AppendLedgerEntriesRequest_AccountType[AppendLedgerEntriesRequest_AccountType["CASH"] = 20] = "CASH";
|
|
78
80
|
/**
|
|
79
81
|
* This is the reserve account of the provider, which reflects the reserve of balance to reduce the limit available from one provider to another.
|
|
80
82
|
*
|
|
81
|
-
* @generated from enum value: ACCOUNT_TYPE_RESERVE =
|
|
83
|
+
* @generated from enum value: ACCOUNT_TYPE_RESERVE = 30;
|
|
82
84
|
*/
|
|
83
|
-
AppendLedgerEntriesRequest_AccountType[AppendLedgerEntriesRequest_AccountType["RESERVE"] =
|
|
85
|
+
AppendLedgerEntriesRequest_AccountType[AppendLedgerEntriesRequest_AccountType["RESERVE"] = 30] = "RESERVE";
|
|
84
86
|
/**
|
|
85
87
|
* This is the mirror account for the reserve. To keep the double entry accounting principle.
|
|
86
88
|
*
|
|
87
|
-
* @generated from enum value: ACCOUNT_TYPE_RESERVE_USAGE =
|
|
89
|
+
* @generated from enum value: ACCOUNT_TYPE_RESERVE_USAGE = 40;
|
|
88
90
|
*/
|
|
89
|
-
AppendLedgerEntriesRequest_AccountType[AppendLedgerEntriesRequest_AccountType["RESERVE_USAGE"] =
|
|
91
|
+
AppendLedgerEntriesRequest_AccountType[AppendLedgerEntriesRequest_AccountType["RESERVE_USAGE"] = 40] = "RESERVE_USAGE";
|
|
90
92
|
/**
|
|
91
93
|
* Reflects how much the provider owes to the network or other participants.
|
|
92
94
|
*
|
|
93
|
-
* @generated from enum value: ACCOUNT_TYPE_PROVIDER_PAYABLE =
|
|
95
|
+
* @generated from enum value: ACCOUNT_TYPE_PROVIDER_PAYABLE = 50;
|
|
94
96
|
*/
|
|
95
|
-
AppendLedgerEntriesRequest_AccountType[AppendLedgerEntriesRequest_AccountType["PROVIDER_PAYABLE"] =
|
|
97
|
+
AppendLedgerEntriesRequest_AccountType[AppendLedgerEntriesRequest_AccountType["PROVIDER_PAYABLE"] = 50] = "PROVIDER_PAYABLE";
|
|
96
98
|
/**
|
|
97
99
|
* Reflects how much the provider is owed by the network or other participants.
|
|
98
100
|
*
|
|
99
|
-
* @generated from enum value: ACCOUNT_TYPE_PROVIDER_RECEIVABLE =
|
|
101
|
+
* @generated from enum value: ACCOUNT_TYPE_PROVIDER_RECEIVABLE = 60;
|
|
100
102
|
*/
|
|
101
|
-
AppendLedgerEntriesRequest_AccountType[AppendLedgerEntriesRequest_AccountType["PROVIDER_RECEIVABLE"] =
|
|
103
|
+
AppendLedgerEntriesRequest_AccountType[AppendLedgerEntriesRequest_AccountType["PROVIDER_RECEIVABLE"] = 60] = "PROVIDER_RECEIVABLE";
|
|
104
|
+
/**
|
|
105
|
+
* Reflects the settlement balance of the provider with the network or other participants.
|
|
106
|
+
*
|
|
107
|
+
* @generated from enum value: ACCOUNT_TYPE_PROVIDER_SETTLEMENT = 70;
|
|
108
|
+
*/
|
|
109
|
+
AppendLedgerEntriesRequest_AccountType[AppendLedgerEntriesRequest_AccountType["PROVIDER_SETTLEMENT"] = 70] = "PROVIDER_SETTLEMENT";
|
|
102
110
|
/**
|
|
103
111
|
* Reflects the fees that the provider owes to the network.
|
|
104
112
|
*
|
|
105
|
-
* @generated from enum value: ACCOUNT_TYPE_FEE_PAYABLE =
|
|
113
|
+
* @generated from enum value: ACCOUNT_TYPE_FEE_PAYABLE = 80;
|
|
106
114
|
*/
|
|
107
|
-
AppendLedgerEntriesRequest_AccountType[AppendLedgerEntriesRequest_AccountType["FEE_PAYABLE"] =
|
|
115
|
+
AppendLedgerEntriesRequest_AccountType[AppendLedgerEntriesRequest_AccountType["FEE_PAYABLE"] = 80] = "FEE_PAYABLE";
|
|
108
116
|
/**
|
|
109
117
|
* Reflects the fees that the network is owed by the provider.
|
|
110
118
|
*
|
|
111
|
-
* @generated from enum value: ACCOUNT_TYPE_FEE_RECEIVABLE =
|
|
119
|
+
* @generated from enum value: ACCOUNT_TYPE_FEE_RECEIVABLE = 90;
|
|
112
120
|
*/
|
|
113
|
-
AppendLedgerEntriesRequest_AccountType[AppendLedgerEntriesRequest_AccountType["FEE_RECEIVABLE"] =
|
|
121
|
+
AppendLedgerEntriesRequest_AccountType[AppendLedgerEntriesRequest_AccountType["FEE_RECEIVABLE"] = 90] = "FEE_RECEIVABLE";
|
|
114
122
|
/**
|
|
115
123
|
* Reflects the fees that the provider has to pay for the services provided by the network.
|
|
116
124
|
*
|
|
117
|
-
* @generated from enum value: ACCOUNT_TYPE_FEE_EXPENSE =
|
|
125
|
+
* @generated from enum value: ACCOUNT_TYPE_FEE_EXPENSE = 100;
|
|
118
126
|
*/
|
|
119
|
-
AppendLedgerEntriesRequest_AccountType[AppendLedgerEntriesRequest_AccountType["FEE_EXPENSE"] =
|
|
127
|
+
AppendLedgerEntriesRequest_AccountType[AppendLedgerEntriesRequest_AccountType["FEE_EXPENSE"] = 100] = "FEE_EXPENSE";
|
|
120
128
|
/**
|
|
121
|
-
*
|
|
122
|
-
*
|
|
123
|
-
* @generated from enum value: ACCOUNT_TYPE_PROVIDER_SETTLEMENT = 10;
|
|
129
|
+
* @generated from enum value: ACCOUNT_TYPE_FEE_SETTLEMENT = 110;
|
|
124
130
|
*/
|
|
125
|
-
AppendLedgerEntriesRequest_AccountType[AppendLedgerEntriesRequest_AccountType["
|
|
131
|
+
AppendLedgerEntriesRequest_AccountType[AppendLedgerEntriesRequest_AccountType["FEE_SETTLEMENT"] = 110] = "FEE_SETTLEMENT";
|
|
126
132
|
})(AppendLedgerEntriesRequest_AccountType || (AppendLedgerEntriesRequest_AccountType = {}));
|
|
127
133
|
/**
|
|
128
134
|
* Describes the enum tzero.v1.payment.AppendLedgerEntriesRequest.AccountType.
|
|
@@ -143,35 +149,64 @@ export const PayoutRequestSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_payme
|
|
|
143
149
|
* Use `create(PayoutResponseSchema)` to create a new message.
|
|
144
150
|
*/
|
|
145
151
|
export const PayoutResponseSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_payment_provider, 3);
|
|
152
|
+
/**
|
|
153
|
+
* Describes the message tzero.v1.payment.PayoutResponse.Accepted.
|
|
154
|
+
* Use `create(PayoutResponse_AcceptedSchema)` to create a new message.
|
|
155
|
+
*/
|
|
156
|
+
export const PayoutResponse_AcceptedSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_payment_provider, 3, 0);
|
|
157
|
+
/**
|
|
158
|
+
* Describes the message tzero.v1.payment.PayoutResponse.Failed.
|
|
159
|
+
* Use `create(PayoutResponse_FailedSchema)` to create a new message.
|
|
160
|
+
*/
|
|
161
|
+
export const PayoutResponse_FailedSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_payment_provider, 3, 1);
|
|
162
|
+
/**
|
|
163
|
+
* @generated from enum tzero.v1.payment.PayoutResponse.Failed.Reason
|
|
164
|
+
*/
|
|
165
|
+
export var PayoutResponse_Failed_Reason;
|
|
166
|
+
(function (PayoutResponse_Failed_Reason) {
|
|
167
|
+
/**
|
|
168
|
+
* @generated from enum value: REASON_UNSPECIFIED = 0;
|
|
169
|
+
*/
|
|
170
|
+
PayoutResponse_Failed_Reason[PayoutResponse_Failed_Reason["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
171
|
+
})(PayoutResponse_Failed_Reason || (PayoutResponse_Failed_Reason = {}));
|
|
172
|
+
/**
|
|
173
|
+
* Describes the enum tzero.v1.payment.PayoutResponse.Failed.Reason.
|
|
174
|
+
*/
|
|
175
|
+
export const PayoutResponse_Failed_ReasonSchema = /*@__PURE__*/ enumDesc(file_tzero_v1_payment_provider, 3, 1, 0);
|
|
146
176
|
/**
|
|
147
177
|
* Describes the message tzero.v1.payment.UpdatePaymentRequest.
|
|
148
178
|
* Use `create(UpdatePaymentRequestSchema)` to create a new message.
|
|
149
179
|
*/
|
|
150
180
|
export const UpdatePaymentRequestSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_payment_provider, 4);
|
|
151
181
|
/**
|
|
152
|
-
* Describes the message tzero.v1.payment.UpdatePaymentRequest.
|
|
153
|
-
* Use `create(
|
|
182
|
+
* Describes the message tzero.v1.payment.UpdatePaymentRequest.Accepted.
|
|
183
|
+
* Use `create(UpdatePaymentRequest_AcceptedSchema)` to create a new message.
|
|
154
184
|
*/
|
|
155
|
-
export const
|
|
185
|
+
export const UpdatePaymentRequest_AcceptedSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_payment_provider, 4, 0);
|
|
156
186
|
/**
|
|
157
|
-
* Describes the message tzero.v1.payment.UpdatePaymentRequest.
|
|
158
|
-
* Use `create(
|
|
187
|
+
* Describes the message tzero.v1.payment.UpdatePaymentRequest.Failed.
|
|
188
|
+
* Use `create(UpdatePaymentRequest_FailedSchema)` to create a new message.
|
|
159
189
|
*/
|
|
160
|
-
export const
|
|
190
|
+
export const UpdatePaymentRequest_FailedSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_payment_provider, 4, 1);
|
|
161
191
|
/**
|
|
162
|
-
* @generated from enum tzero.v1.payment.UpdatePaymentRequest.
|
|
192
|
+
* @generated from enum tzero.v1.payment.UpdatePaymentRequest.Failed.Reason
|
|
163
193
|
*/
|
|
164
|
-
export var
|
|
165
|
-
(function (
|
|
194
|
+
export var UpdatePaymentRequest_Failed_Reason;
|
|
195
|
+
(function (UpdatePaymentRequest_Failed_Reason) {
|
|
166
196
|
/**
|
|
167
197
|
* @generated from enum value: REASON_UNSPECIFIED = 0;
|
|
168
198
|
*/
|
|
169
|
-
|
|
170
|
-
})(
|
|
199
|
+
UpdatePaymentRequest_Failed_Reason[UpdatePaymentRequest_Failed_Reason["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
200
|
+
})(UpdatePaymentRequest_Failed_Reason || (UpdatePaymentRequest_Failed_Reason = {}));
|
|
201
|
+
/**
|
|
202
|
+
* Describes the enum tzero.v1.payment.UpdatePaymentRequest.Failed.Reason.
|
|
203
|
+
*/
|
|
204
|
+
export const UpdatePaymentRequest_Failed_ReasonSchema = /*@__PURE__*/ enumDesc(file_tzero_v1_payment_provider, 4, 1, 0);
|
|
171
205
|
/**
|
|
172
|
-
* Describes the
|
|
206
|
+
* Describes the message tzero.v1.payment.UpdatePaymentRequest.Confirmed.
|
|
207
|
+
* Use `create(UpdatePaymentRequest_ConfirmedSchema)` to create a new message.
|
|
173
208
|
*/
|
|
174
|
-
export const
|
|
209
|
+
export const UpdatePaymentRequest_ConfirmedSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_payment_provider, 4, 2);
|
|
175
210
|
/**
|
|
176
211
|
* Describes the message tzero.v1.payment.UpdatePaymentResponse.
|
|
177
212
|
* Use `create(UpdatePaymentResponseSchema)` to create a new message.
|
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { Blockchain, Decimal, Stablecoin } from "../../common/common_pb.js";
|
|
3
|
+
import type { PaymentMethodType } from "../../common/payment_method_pb.js";
|
|
4
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
5
|
+
/**
|
|
6
|
+
* Describes the file tzero/v1/payment_intent/provider/provider.proto.
|
|
7
|
+
*/
|
|
8
|
+
export declare const file_tzero_v1_payment_intent_provider_provider: GenFile;
|
|
9
|
+
/**
|
|
10
|
+
* @generated from message tzero.v1.payment_intent.provider.CreatePaymentIntentRequest
|
|
11
|
+
*/
|
|
12
|
+
export type CreatePaymentIntentRequest = Message<"tzero.v1.payment_intent.provider.CreatePaymentIntentRequest"> & {
|
|
13
|
+
/**
|
|
14
|
+
* Payment intent ID must be positive
|
|
15
|
+
*
|
|
16
|
+
* idempotency key
|
|
17
|
+
*
|
|
18
|
+
* @generated from field: uint64 payment_intent_id = 10;
|
|
19
|
+
*/
|
|
20
|
+
paymentIntentId: bigint;
|
|
21
|
+
/**
|
|
22
|
+
* ISO 4217 currency code (3 uppercase letters)
|
|
23
|
+
*
|
|
24
|
+
* pay-in currency
|
|
25
|
+
*
|
|
26
|
+
* @generated from field: string currency = 20;
|
|
27
|
+
*/
|
|
28
|
+
currency: string;
|
|
29
|
+
/**
|
|
30
|
+
* Amount is required
|
|
31
|
+
*
|
|
32
|
+
* pay-in amount
|
|
33
|
+
*
|
|
34
|
+
* @generated from field: tzero.v1.common.Decimal amount = 30;
|
|
35
|
+
*/
|
|
36
|
+
amount?: Decimal;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Describes the message tzero.v1.payment_intent.provider.CreatePaymentIntentRequest.
|
|
40
|
+
* Use `create(CreatePaymentIntentRequestSchema)` to create a new message.
|
|
41
|
+
*/
|
|
42
|
+
export declare const CreatePaymentIntentRequestSchema: GenMessage<CreatePaymentIntentRequest>;
|
|
43
|
+
/**
|
|
44
|
+
* @generated from message tzero.v1.payment_intent.provider.CreatePaymentIntentResponse
|
|
45
|
+
*/
|
|
46
|
+
export type CreatePaymentIntentResponse = Message<"tzero.v1.payment_intent.provider.CreatePaymentIntentResponse"> & {
|
|
47
|
+
/**
|
|
48
|
+
* At least one payment method should be provided
|
|
49
|
+
*
|
|
50
|
+
* @generated from field: repeated tzero.v1.payment_intent.provider.CreatePaymentIntentResponse.PaymentMethod payment_methods = 20;
|
|
51
|
+
*/
|
|
52
|
+
paymentMethods: CreatePaymentIntentResponse_PaymentMethod[];
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* Describes the message tzero.v1.payment_intent.provider.CreatePaymentIntentResponse.
|
|
56
|
+
* Use `create(CreatePaymentIntentResponseSchema)` to create a new message.
|
|
57
|
+
*/
|
|
58
|
+
export declare const CreatePaymentIntentResponseSchema: GenMessage<CreatePaymentIntentResponse>;
|
|
59
|
+
/**
|
|
60
|
+
* @generated from message tzero.v1.payment_intent.provider.CreatePaymentIntentResponse.PaymentMethod
|
|
61
|
+
*/
|
|
62
|
+
export type CreatePaymentIntentResponse_PaymentMethod = Message<"tzero.v1.payment_intent.provider.CreatePaymentIntentResponse.PaymentMethod"> & {
|
|
63
|
+
/**
|
|
64
|
+
* Payment URL must be a valid URL
|
|
65
|
+
*
|
|
66
|
+
* @generated from field: string payment_url = 10;
|
|
67
|
+
*/
|
|
68
|
+
paymentUrl: string;
|
|
69
|
+
/**
|
|
70
|
+
* Payment method must be specified
|
|
71
|
+
*
|
|
72
|
+
* @generated from field: tzero.v1.common.PaymentMethodType payment_method = 20;
|
|
73
|
+
*/
|
|
74
|
+
paymentMethod: PaymentMethodType;
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* Describes the message tzero.v1.payment_intent.provider.CreatePaymentIntentResponse.PaymentMethod.
|
|
78
|
+
* Use `create(CreatePaymentIntentResponse_PaymentMethodSchema)` to create a new message.
|
|
79
|
+
*/
|
|
80
|
+
export declare const CreatePaymentIntentResponse_PaymentMethodSchema: GenMessage<CreatePaymentIntentResponse_PaymentMethod>;
|
|
81
|
+
/**
|
|
82
|
+
* @generated from message tzero.v1.payment_intent.provider.ConfirmPaymentRequest
|
|
83
|
+
*/
|
|
84
|
+
export type ConfirmPaymentRequest = Message<"tzero.v1.payment_intent.provider.ConfirmPaymentRequest"> & {
|
|
85
|
+
/**
|
|
86
|
+
* Payment intent ID must be positive
|
|
87
|
+
*
|
|
88
|
+
* payment_intent_id from CreatePaymentIntentRequest
|
|
89
|
+
*
|
|
90
|
+
* @generated from field: uint64 payment_intent_id = 10;
|
|
91
|
+
*/
|
|
92
|
+
paymentIntentId: bigint;
|
|
93
|
+
/**
|
|
94
|
+
* Payment method must be specified
|
|
95
|
+
*
|
|
96
|
+
* @generated from field: tzero.v1.common.PaymentMethodType payment_method = 20;
|
|
97
|
+
*/
|
|
98
|
+
paymentMethod: PaymentMethodType;
|
|
99
|
+
};
|
|
100
|
+
/**
|
|
101
|
+
* Describes the message tzero.v1.payment_intent.provider.ConfirmPaymentRequest.
|
|
102
|
+
* Use `create(ConfirmPaymentRequestSchema)` to create a new message.
|
|
103
|
+
*/
|
|
104
|
+
export declare const ConfirmPaymentRequestSchema: GenMessage<ConfirmPaymentRequest>;
|
|
105
|
+
/**
|
|
106
|
+
* @generated from message tzero.v1.payment_intent.provider.ConfirmPaymentResponse
|
|
107
|
+
*/
|
|
108
|
+
export type ConfirmPaymentResponse = Message<"tzero.v1.payment_intent.provider.ConfirmPaymentResponse"> & {
|
|
109
|
+
/**
|
|
110
|
+
* settlement amount denominated in settlement currency
|
|
111
|
+
*
|
|
112
|
+
* @generated from field: tzero.v1.common.Decimal settlement_amount = 10;
|
|
113
|
+
*/
|
|
114
|
+
settlementAmount?: Decimal;
|
|
115
|
+
/**
|
|
116
|
+
* @generated from field: uint32 payout_provider_id = 20;
|
|
117
|
+
*/
|
|
118
|
+
payoutProviderId: number;
|
|
119
|
+
/**
|
|
120
|
+
* payout provider could support multiple chains for settlement. Any of these could be used for settlement.
|
|
121
|
+
*
|
|
122
|
+
* @generated from field: repeated tzero.v1.payment_intent.provider.ConfirmPaymentResponse.SettlementAddress settlement_addresses = 30;
|
|
123
|
+
*/
|
|
124
|
+
settlementAddresses: ConfirmPaymentResponse_SettlementAddress[];
|
|
125
|
+
};
|
|
126
|
+
/**
|
|
127
|
+
* Describes the message tzero.v1.payment_intent.provider.ConfirmPaymentResponse.
|
|
128
|
+
* Use `create(ConfirmPaymentResponseSchema)` to create a new message.
|
|
129
|
+
*/
|
|
130
|
+
export declare const ConfirmPaymentResponseSchema: GenMessage<ConfirmPaymentResponse>;
|
|
131
|
+
/**
|
|
132
|
+
* @generated from message tzero.v1.payment_intent.provider.ConfirmPaymentResponse.SettlementAddress
|
|
133
|
+
*/
|
|
134
|
+
export type ConfirmPaymentResponse_SettlementAddress = Message<"tzero.v1.payment_intent.provider.ConfirmPaymentResponse.SettlementAddress"> & {
|
|
135
|
+
/**
|
|
136
|
+
* @generated from field: tzero.v1.common.Blockchain chain = 10;
|
|
137
|
+
*/
|
|
138
|
+
chain: Blockchain;
|
|
139
|
+
/**
|
|
140
|
+
* @generated from field: tzero.v1.common.Stablecoin stablecoin = 20;
|
|
141
|
+
*/
|
|
142
|
+
stablecoin: Stablecoin;
|
|
143
|
+
/**
|
|
144
|
+
* @generated from field: string address = 30;
|
|
145
|
+
*/
|
|
146
|
+
address: string;
|
|
147
|
+
};
|
|
148
|
+
/**
|
|
149
|
+
* Describes the message tzero.v1.payment_intent.provider.ConfirmPaymentResponse.SettlementAddress.
|
|
150
|
+
* Use `create(ConfirmPaymentResponse_SettlementAddressSchema)` to create a new message.
|
|
151
|
+
*/
|
|
152
|
+
export declare const ConfirmPaymentResponse_SettlementAddressSchema: GenMessage<ConfirmPaymentResponse_SettlementAddress>;
|
|
153
|
+
/**
|
|
154
|
+
* @generated from message tzero.v1.payment_intent.provider.RejectPaymentIntentRequest
|
|
155
|
+
*/
|
|
156
|
+
export type RejectPaymentIntentRequest = Message<"tzero.v1.payment_intent.provider.RejectPaymentIntentRequest"> & {
|
|
157
|
+
/**
|
|
158
|
+
* payment_intent_id from CreatePaymentIntentRequest
|
|
159
|
+
*
|
|
160
|
+
* @generated from field: uint64 payment_intent_id = 10;
|
|
161
|
+
*/
|
|
162
|
+
paymentIntentId: bigint;
|
|
163
|
+
/**
|
|
164
|
+
* @generated from field: string reason = 20;
|
|
165
|
+
*/
|
|
166
|
+
reason: string;
|
|
167
|
+
};
|
|
168
|
+
/**
|
|
169
|
+
* Describes the message tzero.v1.payment_intent.provider.RejectPaymentIntentRequest.
|
|
170
|
+
* Use `create(RejectPaymentIntentRequestSchema)` to create a new message.
|
|
171
|
+
*/
|
|
172
|
+
export declare const RejectPaymentIntentRequestSchema: GenMessage<RejectPaymentIntentRequest>;
|
|
173
|
+
/**
|
|
174
|
+
* @generated from message tzero.v1.payment_intent.provider.RejectPaymentIntentResponse
|
|
175
|
+
*/
|
|
176
|
+
export type RejectPaymentIntentResponse = Message<"tzero.v1.payment_intent.provider.RejectPaymentIntentResponse"> & {};
|
|
177
|
+
/**
|
|
178
|
+
* Describes the message tzero.v1.payment_intent.provider.RejectPaymentIntentResponse.
|
|
179
|
+
* Use `create(RejectPaymentIntentResponseSchema)` to create a new message.
|
|
180
|
+
*/
|
|
181
|
+
export declare const RejectPaymentIntentResponseSchema: GenMessage<RejectPaymentIntentResponse>;
|
|
182
|
+
/**
|
|
183
|
+
* @generated from message tzero.v1.payment_intent.provider.ConfirmPayoutRequest
|
|
184
|
+
*/
|
|
185
|
+
export type ConfirmPayoutRequest = Message<"tzero.v1.payment_intent.provider.ConfirmPayoutRequest"> & {
|
|
186
|
+
/**
|
|
187
|
+
* payment_intent_id from CreatePaymentIntentRequest
|
|
188
|
+
*
|
|
189
|
+
* @generated from field: uint64 payment_intent_id = 10;
|
|
190
|
+
*/
|
|
191
|
+
paymentIntentId: bigint;
|
|
192
|
+
/**
|
|
193
|
+
* corresponding payment_id for this payment intent
|
|
194
|
+
*
|
|
195
|
+
* @generated from field: uint64 payment_id = 20;
|
|
196
|
+
*/
|
|
197
|
+
paymentId: bigint;
|
|
198
|
+
};
|
|
199
|
+
/**
|
|
200
|
+
* Describes the message tzero.v1.payment_intent.provider.ConfirmPayoutRequest.
|
|
201
|
+
* Use `create(ConfirmPayoutRequestSchema)` to create a new message.
|
|
202
|
+
*/
|
|
203
|
+
export declare const ConfirmPayoutRequestSchema: GenMessage<ConfirmPayoutRequest>;
|
|
204
|
+
/**
|
|
205
|
+
* @generated from message tzero.v1.payment_intent.provider.ConfirmPayoutResponse
|
|
206
|
+
*/
|
|
207
|
+
export type ConfirmPayoutResponse = Message<"tzero.v1.payment_intent.provider.ConfirmPayoutResponse"> & {};
|
|
208
|
+
/**
|
|
209
|
+
* Describes the message tzero.v1.payment_intent.provider.ConfirmPayoutResponse.
|
|
210
|
+
* Use `create(ConfirmPayoutResponseSchema)` to create a new message.
|
|
211
|
+
*/
|
|
212
|
+
export declare const ConfirmPayoutResponseSchema: GenMessage<ConfirmPayoutResponse>;
|
|
213
|
+
/**
|
|
214
|
+
* @generated from message tzero.v1.payment_intent.provider.ConfirmSettlementRequest
|
|
215
|
+
*/
|
|
216
|
+
export type ConfirmSettlementRequest = Message<"tzero.v1.payment_intent.provider.ConfirmSettlementRequest"> & {
|
|
217
|
+
/**
|
|
218
|
+
* @generated from field: tzero.v1.common.Blockchain blockchain = 10;
|
|
219
|
+
*/
|
|
220
|
+
blockchain: Blockchain;
|
|
221
|
+
/**
|
|
222
|
+
* @generated from field: string tx_hash = 20;
|
|
223
|
+
*/
|
|
224
|
+
txHash: string;
|
|
225
|
+
/**
|
|
226
|
+
* list of payment_intent_id's for this settlement (on-chain) transaction
|
|
227
|
+
*
|
|
228
|
+
* @generated from field: repeated uint64 payment_intent_id = 30;
|
|
229
|
+
*/
|
|
230
|
+
paymentIntentId: bigint[];
|
|
231
|
+
};
|
|
232
|
+
/**
|
|
233
|
+
* Describes the message tzero.v1.payment_intent.provider.ConfirmSettlementRequest.
|
|
234
|
+
* Use `create(ConfirmSettlementRequestSchema)` to create a new message.
|
|
235
|
+
*/
|
|
236
|
+
export declare const ConfirmSettlementRequestSchema: GenMessage<ConfirmSettlementRequest>;
|
|
237
|
+
/**
|
|
238
|
+
* @generated from message tzero.v1.payment_intent.provider.ConfirmSettlementResponse
|
|
239
|
+
*/
|
|
240
|
+
export type ConfirmSettlementResponse = Message<"tzero.v1.payment_intent.provider.ConfirmSettlementResponse"> & {};
|
|
241
|
+
/**
|
|
242
|
+
* Describes the message tzero.v1.payment_intent.provider.ConfirmSettlementResponse.
|
|
243
|
+
* Use `create(ConfirmSettlementResponseSchema)` to create a new message.
|
|
244
|
+
*/
|
|
245
|
+
export declare const ConfirmSettlementResponseSchema: GenMessage<ConfirmSettlementResponse>;
|
|
246
|
+
/**
|
|
247
|
+
* *
|
|
248
|
+
* NetworkService is used by provider in order to notify network on payment intent updates
|
|
249
|
+
*
|
|
250
|
+
* @generated from service tzero.v1.payment_intent.provider.NetworkService
|
|
251
|
+
*/
|
|
252
|
+
export declare const NetworkService: GenService<{
|
|
253
|
+
/**
|
|
254
|
+
* *
|
|
255
|
+
* Notify network about a successful payment for the corresponding payment intent
|
|
256
|
+
*
|
|
257
|
+
* @generated from rpc tzero.v1.payment_intent.provider.NetworkService.ConfirmPayment
|
|
258
|
+
*/
|
|
259
|
+
confirmPayment: {
|
|
260
|
+
methodKind: "unary";
|
|
261
|
+
input: typeof ConfirmPaymentRequestSchema;
|
|
262
|
+
output: typeof ConfirmPaymentResponseSchema;
|
|
263
|
+
};
|
|
264
|
+
/**
|
|
265
|
+
* *
|
|
266
|
+
* Notify network about a payment failure for the corresponding payment intent
|
|
267
|
+
*
|
|
268
|
+
* @generated from rpc tzero.v1.payment_intent.provider.NetworkService.RejectPaymentIntent
|
|
269
|
+
*/
|
|
270
|
+
rejectPaymentIntent: {
|
|
271
|
+
methodKind: "unary";
|
|
272
|
+
input: typeof RejectPaymentIntentRequestSchema;
|
|
273
|
+
output: typeof RejectPaymentIntentResponseSchema;
|
|
274
|
+
};
|
|
275
|
+
/**
|
|
276
|
+
* *
|
|
277
|
+
* Notify network about relation between payment intent and settlement transaction.
|
|
278
|
+
* This method is not essential but helps to keep track of payment flow
|
|
279
|
+
*
|
|
280
|
+
* @generated from rpc tzero.v1.payment_intent.provider.NetworkService.ConfirmSettlement
|
|
281
|
+
*/
|
|
282
|
+
confirmSettlement: {
|
|
283
|
+
methodKind: "unary";
|
|
284
|
+
input: typeof ConfirmSettlementRequestSchema;
|
|
285
|
+
output: typeof ConfirmSettlementResponseSchema;
|
|
286
|
+
};
|
|
287
|
+
}>;
|
|
288
|
+
/**
|
|
289
|
+
* *
|
|
290
|
+
* ProviderService is implemented by provider to provide pay-in details fpr payment intents
|
|
291
|
+
*
|
|
292
|
+
* @generated from service tzero.v1.payment_intent.provider.ProviderService
|
|
293
|
+
*/
|
|
294
|
+
export declare const ProviderService: GenService<{
|
|
295
|
+
/**
|
|
296
|
+
* *
|
|
297
|
+
* Network instructs provider to create payment details for the payment intent. Provide should return
|
|
298
|
+
* a list of supported payment method along with URL where payer should be redirected.
|
|
299
|
+
*
|
|
300
|
+
* @generated from rpc tzero.v1.payment_intent.provider.ProviderService.CreatePaymentIntent
|
|
301
|
+
*/
|
|
302
|
+
createPaymentIntent: {
|
|
303
|
+
methodKind: "unary";
|
|
304
|
+
input: typeof CreatePaymentIntentRequestSchema;
|
|
305
|
+
output: typeof CreatePaymentIntentResponseSchema;
|
|
306
|
+
};
|
|
307
|
+
/**
|
|
308
|
+
* *
|
|
309
|
+
* Network notifies provider about successful payout for the corresponding payment intent
|
|
310
|
+
*
|
|
311
|
+
* @generated from rpc tzero.v1.payment_intent.provider.ProviderService.ConfirmPayout
|
|
312
|
+
*/
|
|
313
|
+
confirmPayout: {
|
|
314
|
+
methodKind: "unary";
|
|
315
|
+
input: typeof ConfirmPayoutRequestSchema;
|
|
316
|
+
output: typeof ConfirmPayoutResponseSchema;
|
|
317
|
+
};
|
|
318
|
+
}>;
|
|
@@ -4,10 +4,11 @@
|
|
|
4
4
|
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
5
5
|
import { file_tzero_v1_common_common } from "../../common/common_pb.js";
|
|
6
6
|
import { file_tzero_v1_common_payment_method } from "../../common/payment_method_pb.js";
|
|
7
|
+
import { file_buf_validate_validate } from "../../../../buf/validate/validate_pb.js";
|
|
7
8
|
/**
|
|
8
9
|
* Describes the file tzero/v1/payment_intent/provider/provider.proto.
|
|
9
10
|
*/
|
|
10
|
-
export const file_tzero_v1_payment_intent_provider_provider = /*@__PURE__*/ fileDesc("
|
|
11
|
+
export const file_tzero_v1_payment_intent_provider_provider = /*@__PURE__*/ fileDesc("Ci90emVyby92MS9wYXltZW50X2ludGVudC9wcm92aWRlci9wcm92aWRlci5wcm90bxIgdHplcm8udjEucGF5bWVudF9pbnRlbnQucHJvdmlkZXIimgEKGkNyZWF0ZVBheW1lbnRJbnRlbnRSZXF1ZXN0EiIKEXBheW1lbnRfaW50ZW50X2lkGAogASgEQge6SAQyAiAAEiYKCGN1cnJlbmN5GBQgASgJQhS6SBFyDzIKXltBLVpdezN9JJgBAxIwCgZhbW91bnQYHiABKAsyGC50emVyby52MS5jb21tb24uRGVjaW1hbEIGukgDyAEBIpQCChtDcmVhdGVQYXltZW50SW50ZW50UmVzcG9uc2USbgoPcGF5bWVudF9tZXRob2RzGBQgAygLMksudHplcm8udjEucGF5bWVudF9pbnRlbnQucHJvdmlkZXIuQ3JlYXRlUGF5bWVudEludGVudFJlc3BvbnNlLlBheW1lbnRNZXRob2RCCLpIBZIBAggBGoQBCg1QYXltZW50TWV0aG9kEi0KC3BheW1lbnRfdXJsGAogASgJQhi6SBVyExABGIAQMgxeaHR0cHM/Oi8vLisSRAoOcGF5bWVudF9tZXRob2QYFCABKA4yIi50emVyby52MS5jb21tb24uUGF5bWVudE1ldGhvZFR5cGVCCLpIBYIBAiAAIoEBChVDb25maXJtUGF5bWVudFJlcXVlc3QSIgoRcGF5bWVudF9pbnRlbnRfaWQYCiABKARCB7pIBDICIAASRAoOcGF5bWVudF9tZXRob2QYFCABKA4yIi50emVyby52MS5jb21tb24uUGF5bWVudE1ldGhvZFR5cGVCCLpIBYIBAiAAItcCChZDb25maXJtUGF5bWVudFJlc3BvbnNlEjMKEXNldHRsZW1lbnRfYW1vdW50GAogASgLMhgudHplcm8udjEuY29tbW9uLkRlY2ltYWwSGgoScGF5b3V0X3Byb3ZpZGVyX2lkGBQgASgNEmgKFHNldHRsZW1lbnRfYWRkcmVzc2VzGB4gAygLMkoudHplcm8udjEucGF5bWVudF9pbnRlbnQucHJvdmlkZXIuQ29uZmlybVBheW1lbnRSZXNwb25zZS5TZXR0bGVtZW50QWRkcmVzcxqBAQoRU2V0dGxlbWVudEFkZHJlc3MSKgoFY2hhaW4YCiABKA4yGy50emVyby52MS5jb21tb24uQmxvY2tjaGFpbhIvCgpzdGFibGVjb2luGBQgASgOMhsudHplcm8udjEuY29tbW9uLlN0YWJsZWNvaW4SDwoHYWRkcmVzcxgeIAEoCSJHChpSZWplY3RQYXltZW50SW50ZW50UmVxdWVzdBIZChFwYXltZW50X2ludGVudF9pZBgKIAEoBBIOCgZyZWFzb24YFCABKAkiHQobUmVqZWN0UGF5bWVudEludGVudFJlc3BvbnNlIkUKFENvbmZpcm1QYXlvdXRSZXF1ZXN0EhkKEXBheW1lbnRfaW50ZW50X2lkGAogASgEEhIKCnBheW1lbnRfaWQYFCABKAQiFwoVQ29uZmlybVBheW91dFJlc3BvbnNlIncKGENvbmZpcm1TZXR0bGVtZW50UmVxdWVzdBIvCgpibG9ja2NoYWluGAogASgOMhsudHplcm8udjEuY29tbW9uLkJsb2NrY2hhaW4SDwoHdHhfaGFzaBgUIAEoCRIZChFwYXltZW50X2ludGVudF9pZBgeIAMoBCIbChlDb25maXJtU2V0dGxlbWVudFJlc3BvbnNlMskDCg5OZXR3b3JrU2VydmljZRKIAQoOQ29uZmlybVBheW1lbnQSNy50emVyby52MS5wYXltZW50X2ludGVudC5wcm92aWRlci5Db25maXJtUGF5bWVudFJlcXVlc3QaOC50emVyby52MS5wYXltZW50X2ludGVudC5wcm92aWRlci5Db25maXJtUGF5bWVudFJlc3BvbnNlIgOQAgISlwEKE1JlamVjdFBheW1lbnRJbnRlbnQSPC50emVyby52MS5wYXltZW50X2ludGVudC5wcm92aWRlci5SZWplY3RQYXltZW50SW50ZW50UmVxdWVzdBo9LnR6ZXJvLnYxLnBheW1lbnRfaW50ZW50LnByb3ZpZGVyLlJlamVjdFBheW1lbnRJbnRlbnRSZXNwb25zZSIDkAICEpEBChFDb25maXJtU2V0dGxlbWVudBI6LnR6ZXJvLnYxLnBheW1lbnRfaW50ZW50LnByb3ZpZGVyLkNvbmZpcm1TZXR0bGVtZW50UmVxdWVzdBo7LnR6ZXJvLnYxLnBheW1lbnRfaW50ZW50LnByb3ZpZGVyLkNvbmZpcm1TZXR0bGVtZW50UmVzcG9uc2UiA5ACAjKzAgoPUHJvdmlkZXJTZXJ2aWNlEpcBChNDcmVhdGVQYXltZW50SW50ZW50EjwudHplcm8udjEucGF5bWVudF9pbnRlbnQucHJvdmlkZXIuQ3JlYXRlUGF5bWVudEludGVudFJlcXVlc3QaPS50emVyby52MS5wYXltZW50X2ludGVudC5wcm92aWRlci5DcmVhdGVQYXltZW50SW50ZW50UmVzcG9uc2UiA5ACAhKFAQoNQ29uZmlybVBheW91dBI2LnR6ZXJvLnYxLnBheW1lbnRfaW50ZW50LnByb3ZpZGVyLkNvbmZpcm1QYXlvdXRSZXF1ZXN0GjcudHplcm8udjEucGF5bWVudF9pbnRlbnQucHJvdmlkZXIuQ29uZmlybVBheW91dFJlc3BvbnNlIgOQAgJC1QEKJGNvbS50emVyby52MS5wYXltZW50X2ludGVudC5wcm92aWRlckINUHJvdmlkZXJQcm90b1ABogIEVFZQUKoCH1R6ZXJvLlYxLlBheW1lbnRJbnRlbnQuUHJvdmlkZXLKAh9UemVyb1xWMVxQYXltZW50SW50ZW50XFByb3ZpZGVy4gIrVHplcm9cVjFcUGF5bWVudEludGVudFxQcm92aWRlclxHUEJNZXRhZGF0YeoCIlR6ZXJvOjpWMTo6UGF5bWVudEludGVudDo6UHJvdmlkZXJiBnByb3RvMw", [file_tzero_v1_common_common, file_tzero_v1_common_payment_method, file_buf_validate_validate]);
|
|
11
12
|
/**
|
|
12
13
|
* Describes the message tzero.v1.payment_intent.provider.CreatePaymentIntentRequest.
|
|
13
14
|
* Use `create(CreatePaymentIntentRequestSchema)` to create a new message.
|