@t-0/provider-sdk 1.0.23 → 1.0.25
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/README.md +2 -2
- package/lib/client/client.d.ts +3 -33
- package/lib/client/client.js +6 -7
- package/lib/client/signer.d.ts +1 -1
- package/lib/common/gen/tzero/v1/common/common_pb.d.ts +64 -0
- package/lib/common/gen/tzero/v1/common/common_pb.js +53 -0
- package/lib/common/gen/tzero/v1/common/payment_method_pb.d.ts +122 -0
- package/lib/common/gen/tzero/v1/common/payment_method_pb.js +57 -0
- package/lib/{gen/network → common/gen/tzero/v1/payment}/network_pb.d.ts +95 -183
- package/lib/common/gen/tzero/v1/payment/network_pb.js +144 -0
- package/lib/{gen/network → common/gen/tzero/v1/payment}/provider_pb.d.ts +98 -183
- package/lib/common/gen/tzero/v1/payment/provider_pb.js +203 -0
- package/lib/common/gen/tzero/v1/payment_intent/provider/provider_pb.d.ts +296 -0
- package/lib/common/gen/tzero/v1/payment_intent/provider/provider_pb.js +84 -0
- package/lib/common/gen/tzero/v1/payment_intent/recipient/recipient_pb.d.ts +214 -0
- package/lib/common/gen/tzero/v1/payment_intent/recipient/recipient_pb.js +59 -0
- package/lib/common/gen/tzero/v1/public/public_pb.d.ts +234 -0
- package/lib/common/gen/tzero/v1/public/public_pb.js +85 -0
- package/lib/index.d.ts +9 -7
- package/lib/index.js +9 -7
- package/lib/payment_intent/provider/index.d.ts +1 -0
- package/lib/payment_intent/provider/index.js +1 -0
- package/lib/payment_intent/recipient/index.d.ts +1 -0
- package/lib/payment_intent/recipient/index.js +1 -0
- package/lib/service/node.d.ts +2 -1
- package/lib/service/service.d.ts +8 -5
- package/lib/service/service.js +5 -7
- package/package.json +9 -9
- package/lib/common/gen/common/common_pb.d.ts +0 -26
- package/lib/common/gen/common/common_pb.js +0 -13
- package/lib/common/gen/common/payment_method_pb.d.ts +0 -51
- package/lib/common/gen/common/payment_method_pb.js +0 -18
- package/lib/common/gen/network/network_pb.d.ts +0 -649
- package/lib/common/gen/network/network_pb.js +0 -163
- package/lib/common/gen/network/provider_pb.d.ts +0 -695
- package/lib/common/gen/network/provider_pb.js +0 -218
- package/lib/gen/common/common_pb.d.ts +0 -26
- package/lib/gen/common/common_pb.js +0 -13
- package/lib/gen/common/payment_method_pb.d.ts +0 -51
- package/lib/gen/common/payment_method_pb.js +0 -18
- package/lib/gen/network/network_pb.js +0 -163
- package/lib/gen/network/provider_pb.js +0 -223
|
@@ -1,695 +0,0 @@
|
|
|
1
|
-
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
-
import type { PaymentMethod } from "../common/payment_method_pb";
|
|
3
|
-
import type { Decimal } from "../common/common_pb";
|
|
4
|
-
import type { Timestamp } from "@bufbuild/protobuf/wkt";
|
|
5
|
-
import type { Message } from "@bufbuild/protobuf";
|
|
6
|
-
/**
|
|
7
|
-
* Describes the file network/provider.proto.
|
|
8
|
-
*/
|
|
9
|
-
export declare const file_network_provider: GenFile;
|
|
10
|
-
/**
|
|
11
|
-
* @generated from message network.v1.provider.AppendLedgerEntriesRequest
|
|
12
|
-
*/
|
|
13
|
-
export type AppendLedgerEntriesRequest = Message<"network.v1.provider.AppendLedgerEntriesRequest"> & {
|
|
14
|
-
/**
|
|
15
|
-
* *
|
|
16
|
-
* This is a list of transactions that were appended to the ledger of the provider.
|
|
17
|
-
* The transaction_id should be used to identify the transaction and ensure that it is processed only once.
|
|
18
|
-
*
|
|
19
|
-
* @generated from field: repeated network.v1.provider.AppendLedgerEntriesRequest.Transaction transactions = 20;
|
|
20
|
-
*/
|
|
21
|
-
transactions: AppendLedgerEntriesRequest_Transaction[];
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* Describes the message network.v1.provider.AppendLedgerEntriesRequest.
|
|
25
|
-
* Use `create(AppendLedgerEntriesRequestSchema)` to create a new message.
|
|
26
|
-
*/
|
|
27
|
-
export declare const AppendLedgerEntriesRequestSchema: GenMessage<AppendLedgerEntriesRequest>;
|
|
28
|
-
/**
|
|
29
|
-
* @generated from message network.v1.provider.AppendLedgerEntriesRequest.Transaction
|
|
30
|
-
*/
|
|
31
|
-
export type AppendLedgerEntriesRequest_Transaction = Message<"network.v1.provider.AppendLedgerEntriesRequest.Transaction"> & {
|
|
32
|
-
/**
|
|
33
|
-
* *
|
|
34
|
-
* transaction_id is an incrementally growing identifier for the transaction.
|
|
35
|
-
* It could have gaps and could be out of order, but it is unique for each transaction.
|
|
36
|
-
*
|
|
37
|
-
* @generated from field: uint64 transaction_id = 10;
|
|
38
|
-
*/
|
|
39
|
-
transactionId: bigint;
|
|
40
|
-
/**
|
|
41
|
-
* *
|
|
42
|
-
* entries is a list of ledger entries that were appended to the ledger of the provider.
|
|
43
|
-
* Each entry represents a financial event that occurred in the provider's accounts.
|
|
44
|
-
*
|
|
45
|
-
* @generated from field: repeated network.v1.provider.AppendLedgerEntriesRequest.LedgerEntry entries = 30;
|
|
46
|
-
*/
|
|
47
|
-
entries: AppendLedgerEntriesRequest_LedgerEntry[];
|
|
48
|
-
/**
|
|
49
|
-
* *
|
|
50
|
-
* transaction_details is a oneof field that contains details about the transaction.
|
|
51
|
-
* It can be one of the following: PayIn, PayoutReservation, Payout, ProviderSettlement, FeeSettlement, PayoutReservationRelease.
|
|
52
|
-
*
|
|
53
|
-
* @generated from oneof network.v1.provider.AppendLedgerEntriesRequest.Transaction.transaction_details
|
|
54
|
-
*/
|
|
55
|
-
transactionDetails: {
|
|
56
|
-
/**
|
|
57
|
-
* @generated from field: network.v1.provider.AppendLedgerEntriesRequest.Transaction.PayIn pay_in = 110;
|
|
58
|
-
*/
|
|
59
|
-
value: AppendLedgerEntriesRequest_Transaction_PayIn;
|
|
60
|
-
case: "payIn";
|
|
61
|
-
} | {
|
|
62
|
-
/**
|
|
63
|
-
* @generated from field: network.v1.provider.AppendLedgerEntriesRequest.Transaction.PayoutReservation payout_reservation = 120;
|
|
64
|
-
*/
|
|
65
|
-
value: AppendLedgerEntriesRequest_Transaction_PayoutReservation;
|
|
66
|
-
case: "payoutReservation";
|
|
67
|
-
} | {
|
|
68
|
-
/**
|
|
69
|
-
* @generated from field: network.v1.provider.AppendLedgerEntriesRequest.Transaction.Payout payout = 130;
|
|
70
|
-
*/
|
|
71
|
-
value: AppendLedgerEntriesRequest_Transaction_Payout;
|
|
72
|
-
case: "payout";
|
|
73
|
-
} | {
|
|
74
|
-
/**
|
|
75
|
-
* @generated from field: network.v1.provider.AppendLedgerEntriesRequest.Transaction.ProviderSettlement provider_settlement = 140;
|
|
76
|
-
*/
|
|
77
|
-
value: AppendLedgerEntriesRequest_Transaction_ProviderSettlement;
|
|
78
|
-
case: "providerSettlement";
|
|
79
|
-
} | {
|
|
80
|
-
/**
|
|
81
|
-
* @generated from field: network.v1.provider.AppendLedgerEntriesRequest.Transaction.FeeSettlement fee_settlement = 150;
|
|
82
|
-
*/
|
|
83
|
-
value: AppendLedgerEntriesRequest_Transaction_FeeSettlement;
|
|
84
|
-
case: "feeSettlement";
|
|
85
|
-
} | {
|
|
86
|
-
/**
|
|
87
|
-
* @generated from field: network.v1.provider.AppendLedgerEntriesRequest.Transaction.PayoutReservationRelease payout_reservation_release = 160;
|
|
88
|
-
*/
|
|
89
|
-
value: AppendLedgerEntriesRequest_Transaction_PayoutReservationRelease;
|
|
90
|
-
case: "payoutReservationRelease";
|
|
91
|
-
} | {
|
|
92
|
-
case: undefined;
|
|
93
|
-
value?: undefined;
|
|
94
|
-
};
|
|
95
|
-
};
|
|
96
|
-
/**
|
|
97
|
-
* Describes the message network.v1.provider.AppendLedgerEntriesRequest.Transaction.
|
|
98
|
-
* Use `create(AppendLedgerEntriesRequest_TransactionSchema)` to create a new message.
|
|
99
|
-
*/
|
|
100
|
-
export declare const AppendLedgerEntriesRequest_TransactionSchema: GenMessage<AppendLedgerEntriesRequest_Transaction>;
|
|
101
|
-
/**
|
|
102
|
-
* @generated from message network.v1.provider.AppendLedgerEntriesRequest.Transaction.PayIn
|
|
103
|
-
*/
|
|
104
|
-
export type AppendLedgerEntriesRequest_Transaction_PayIn = Message<"network.v1.provider.AppendLedgerEntriesRequest.Transaction.PayIn"> & {
|
|
105
|
-
/**
|
|
106
|
-
* @generated from field: string payment_id = 10;
|
|
107
|
-
*/
|
|
108
|
-
paymentId: string;
|
|
109
|
-
};
|
|
110
|
-
/**
|
|
111
|
-
* Describes the message network.v1.provider.AppendLedgerEntriesRequest.Transaction.PayIn.
|
|
112
|
-
* Use `create(AppendLedgerEntriesRequest_Transaction_PayInSchema)` to create a new message.
|
|
113
|
-
*/
|
|
114
|
-
export declare const AppendLedgerEntriesRequest_Transaction_PayInSchema: GenMessage<AppendLedgerEntriesRequest_Transaction_PayIn>;
|
|
115
|
-
/**
|
|
116
|
-
* @generated from message network.v1.provider.AppendLedgerEntriesRequest.Transaction.PayoutReservation
|
|
117
|
-
*/
|
|
118
|
-
export type AppendLedgerEntriesRequest_Transaction_PayoutReservation = Message<"network.v1.provider.AppendLedgerEntriesRequest.Transaction.PayoutReservation"> & {
|
|
119
|
-
/**
|
|
120
|
-
* @generated from field: string payment_id = 10;
|
|
121
|
-
*/
|
|
122
|
-
paymentId: string;
|
|
123
|
-
};
|
|
124
|
-
/**
|
|
125
|
-
* Describes the message network.v1.provider.AppendLedgerEntriesRequest.Transaction.PayoutReservation.
|
|
126
|
-
* Use `create(AppendLedgerEntriesRequest_Transaction_PayoutReservationSchema)` to create a new message.
|
|
127
|
-
*/
|
|
128
|
-
export declare const AppendLedgerEntriesRequest_Transaction_PayoutReservationSchema: GenMessage<AppendLedgerEntriesRequest_Transaction_PayoutReservation>;
|
|
129
|
-
/**
|
|
130
|
-
* @generated from message network.v1.provider.AppendLedgerEntriesRequest.Transaction.Payout
|
|
131
|
-
*/
|
|
132
|
-
export type AppendLedgerEntriesRequest_Transaction_Payout = Message<"network.v1.provider.AppendLedgerEntriesRequest.Transaction.Payout"> & {
|
|
133
|
-
/**
|
|
134
|
-
* @generated from field: string payment_id = 10;
|
|
135
|
-
*/
|
|
136
|
-
paymentId: string;
|
|
137
|
-
};
|
|
138
|
-
/**
|
|
139
|
-
* Describes the message network.v1.provider.AppendLedgerEntriesRequest.Transaction.Payout.
|
|
140
|
-
* Use `create(AppendLedgerEntriesRequest_Transaction_PayoutSchema)` to create a new message.
|
|
141
|
-
*/
|
|
142
|
-
export declare const AppendLedgerEntriesRequest_Transaction_PayoutSchema: GenMessage<AppendLedgerEntriesRequest_Transaction_Payout>;
|
|
143
|
-
/**
|
|
144
|
-
* @generated from message network.v1.provider.AppendLedgerEntriesRequest.Transaction.ProviderSettlement
|
|
145
|
-
*/
|
|
146
|
-
export type AppendLedgerEntriesRequest_Transaction_ProviderSettlement = Message<"network.v1.provider.AppendLedgerEntriesRequest.Transaction.ProviderSettlement"> & {
|
|
147
|
-
/**
|
|
148
|
-
* @generated from field: uint64 settlement_id = 10;
|
|
149
|
-
*/
|
|
150
|
-
settlementId: bigint;
|
|
151
|
-
};
|
|
152
|
-
/**
|
|
153
|
-
* Describes the message network.v1.provider.AppendLedgerEntriesRequest.Transaction.ProviderSettlement.
|
|
154
|
-
* Use `create(AppendLedgerEntriesRequest_Transaction_ProviderSettlementSchema)` to create a new message.
|
|
155
|
-
*/
|
|
156
|
-
export declare const AppendLedgerEntriesRequest_Transaction_ProviderSettlementSchema: GenMessage<AppendLedgerEntriesRequest_Transaction_ProviderSettlement>;
|
|
157
|
-
/**
|
|
158
|
-
* @generated from message network.v1.provider.AppendLedgerEntriesRequest.Transaction.FeeSettlement
|
|
159
|
-
*/
|
|
160
|
-
export type AppendLedgerEntriesRequest_Transaction_FeeSettlement = Message<"network.v1.provider.AppendLedgerEntriesRequest.Transaction.FeeSettlement"> & {
|
|
161
|
-
/**
|
|
162
|
-
* @generated from field: uint64 fee_settlement_id = 10;
|
|
163
|
-
*/
|
|
164
|
-
feeSettlementId: bigint;
|
|
165
|
-
};
|
|
166
|
-
/**
|
|
167
|
-
* Describes the message network.v1.provider.AppendLedgerEntriesRequest.Transaction.FeeSettlement.
|
|
168
|
-
* Use `create(AppendLedgerEntriesRequest_Transaction_FeeSettlementSchema)` to create a new message.
|
|
169
|
-
*/
|
|
170
|
-
export declare const AppendLedgerEntriesRequest_Transaction_FeeSettlementSchema: GenMessage<AppendLedgerEntriesRequest_Transaction_FeeSettlement>;
|
|
171
|
-
/**
|
|
172
|
-
* @generated from message network.v1.provider.AppendLedgerEntriesRequest.Transaction.PayoutReservationRelease
|
|
173
|
-
*/
|
|
174
|
-
export type AppendLedgerEntriesRequest_Transaction_PayoutReservationRelease = Message<"network.v1.provider.AppendLedgerEntriesRequest.Transaction.PayoutReservationRelease"> & {
|
|
175
|
-
/**
|
|
176
|
-
* @generated from field: string payment_id = 10;
|
|
177
|
-
*/
|
|
178
|
-
paymentId: string;
|
|
179
|
-
};
|
|
180
|
-
/**
|
|
181
|
-
* Describes the message network.v1.provider.AppendLedgerEntriesRequest.Transaction.PayoutReservationRelease.
|
|
182
|
-
* Use `create(AppendLedgerEntriesRequest_Transaction_PayoutReservationReleaseSchema)` to create a new message.
|
|
183
|
-
*/
|
|
184
|
-
export declare const AppendLedgerEntriesRequest_Transaction_PayoutReservationReleaseSchema: GenMessage<AppendLedgerEntriesRequest_Transaction_PayoutReservationRelease>;
|
|
185
|
-
/**
|
|
186
|
-
* @generated from message network.v1.provider.AppendLedgerEntriesRequest.LedgerEntry
|
|
187
|
-
*/
|
|
188
|
-
export type AppendLedgerEntriesRequest_LedgerEntry = Message<"network.v1.provider.AppendLedgerEntriesRequest.LedgerEntry"> & {
|
|
189
|
-
/**
|
|
190
|
-
* 1 is network account, others are ids of participants
|
|
191
|
-
*
|
|
192
|
-
* @generated from field: uint32 account_owner_id = 10;
|
|
193
|
-
*/
|
|
194
|
-
accountOwnerId: number;
|
|
195
|
-
/**
|
|
196
|
-
* *
|
|
197
|
-
* account_type is the type of the account that the entry belongs to.
|
|
198
|
-
* It is used to categorize the entries and understand the nature of the financial event.
|
|
199
|
-
*
|
|
200
|
-
* @generated from field: network.v1.provider.AppendLedgerEntriesRequest.AccountType account_type = 20;
|
|
201
|
-
*/
|
|
202
|
-
accountType: AppendLedgerEntriesRequest_AccountType;
|
|
203
|
-
/**
|
|
204
|
-
* *
|
|
205
|
-
* It is the currency of the entry. If the transaction contains entries with multiple currencies, the exchange_rate
|
|
206
|
-
* field should be provided to be used to convert the amounts to USD.
|
|
207
|
-
*
|
|
208
|
-
* @generated from field: string currency = 30;
|
|
209
|
-
*/
|
|
210
|
-
currency: string;
|
|
211
|
-
/**
|
|
212
|
-
* *
|
|
213
|
-
* debit is the amount that was debited from the account.
|
|
214
|
-
* If the entry is a credit, this field should be 0.
|
|
215
|
-
*
|
|
216
|
-
* @generated from field: tzero.v1.common.Decimal debit = 40;
|
|
217
|
-
*/
|
|
218
|
-
debit?: Decimal;
|
|
219
|
-
/**
|
|
220
|
-
* *
|
|
221
|
-
* credit is the amount that was credited to the account.
|
|
222
|
-
* If the entry is a debit, this field should be 0.
|
|
223
|
-
*
|
|
224
|
-
* @generated from field: tzero.v1.common.Decimal credit = 50;
|
|
225
|
-
*/
|
|
226
|
-
credit?: Decimal;
|
|
227
|
-
/**
|
|
228
|
-
* *
|
|
229
|
-
* exchange_rate is the exchange rate of the currency to USD if the currency is not USD and the transaction contains
|
|
230
|
-
* entries with multiple currencies. Exchange rate for the base currency USD and the quote currency provided in the entry.
|
|
231
|
-
*
|
|
232
|
-
* @generated from field: tzero.v1.common.Decimal exchange_rate = 60;
|
|
233
|
-
*/
|
|
234
|
-
exchangeRate?: Decimal;
|
|
235
|
-
};
|
|
236
|
-
/**
|
|
237
|
-
* Describes the message network.v1.provider.AppendLedgerEntriesRequest.LedgerEntry.
|
|
238
|
-
* Use `create(AppendLedgerEntriesRequest_LedgerEntrySchema)` to create a new message.
|
|
239
|
-
*/
|
|
240
|
-
export declare const AppendLedgerEntriesRequest_LedgerEntrySchema: GenMessage<AppendLedgerEntriesRequest_LedgerEntry>;
|
|
241
|
-
/**
|
|
242
|
-
* @generated from enum network.v1.provider.AppendLedgerEntriesRequest.AccountType
|
|
243
|
-
*/
|
|
244
|
-
export declare enum AppendLedgerEntriesRequest_AccountType {
|
|
245
|
-
/**
|
|
246
|
-
* @generated from enum value: ACCOUNT_TYPE_UNSPECIFIED = 0;
|
|
247
|
-
*/
|
|
248
|
-
UNSPECIFIED = 0,
|
|
249
|
-
/**
|
|
250
|
-
* Reflects the user's payable balance, the amount that the provider owes to the user.
|
|
251
|
-
*
|
|
252
|
-
* @generated from enum value: ACCOUNT_TYPE_USER_PAYABLE = 1;
|
|
253
|
-
*/
|
|
254
|
-
USER_PAYABLE = 1,
|
|
255
|
-
/**
|
|
256
|
-
* Reflects the cash balance of the provider.
|
|
257
|
-
*
|
|
258
|
-
* @generated from enum value: ACCOUNT_TYPE_CASH = 2;
|
|
259
|
-
*/
|
|
260
|
-
CASH = 2,
|
|
261
|
-
/**
|
|
262
|
-
* This is the reserve account of the provider, which reflects the reserve of balance to reduce the limit available from one provider to another.
|
|
263
|
-
*
|
|
264
|
-
* @generated from enum value: ACCOUNT_TYPE_RESERVE = 3;
|
|
265
|
-
*/
|
|
266
|
-
RESERVE = 3,
|
|
267
|
-
/**
|
|
268
|
-
* This is the mirror account for the reserve. To keep the double entry accounting principle.
|
|
269
|
-
*
|
|
270
|
-
* @generated from enum value: ACCOUNT_TYPE_RESERVE_USAGE = 4;
|
|
271
|
-
*/
|
|
272
|
-
RESERVE_USAGE = 4,
|
|
273
|
-
/**
|
|
274
|
-
* Reflects how much the provider owes to the network or other participants.
|
|
275
|
-
*
|
|
276
|
-
* @generated from enum value: ACCOUNT_TYPE_PROVIDER_PAYABLE = 5;
|
|
277
|
-
*/
|
|
278
|
-
PROVIDER_PAYABLE = 5,
|
|
279
|
-
/**
|
|
280
|
-
* Reflects how much the provider is owed by the network or other participants.
|
|
281
|
-
*
|
|
282
|
-
* @generated from enum value: ACCOUNT_TYPE_PROVIDER_RECEIVABLE = 6;
|
|
283
|
-
*/
|
|
284
|
-
PROVIDER_RECEIVABLE = 6,
|
|
285
|
-
/**
|
|
286
|
-
* Reflects the fees that the provider owes to the network.
|
|
287
|
-
*
|
|
288
|
-
* @generated from enum value: ACCOUNT_TYPE_FEE_PAYABLE = 7;
|
|
289
|
-
*/
|
|
290
|
-
FEE_PAYABLE = 7,
|
|
291
|
-
/**
|
|
292
|
-
* Reflects the fees that the network is owed by the provider.
|
|
293
|
-
*
|
|
294
|
-
* @generated from enum value: ACCOUNT_TYPE_FEE_RECEIVABLE = 8;
|
|
295
|
-
*/
|
|
296
|
-
FEE_RECEIVABLE = 8,
|
|
297
|
-
/**
|
|
298
|
-
* Reflects the fees that the provider has to pay for the services provided by the network.
|
|
299
|
-
*
|
|
300
|
-
* @generated from enum value: ACCOUNT_TYPE_FEE_EXPENSE = 9;
|
|
301
|
-
*/
|
|
302
|
-
FEE_EXPENSE = 9,
|
|
303
|
-
/**
|
|
304
|
-
* Reflects the settlement balance of the provider with the network or other participants.
|
|
305
|
-
*
|
|
306
|
-
* @generated from enum value: ACCOUNT_TYPE_PROVIDER_SETTLEMENT = 10;
|
|
307
|
-
*/
|
|
308
|
-
PROVIDER_SETTLEMENT = 10
|
|
309
|
-
}
|
|
310
|
-
/**
|
|
311
|
-
* Describes the enum network.v1.provider.AppendLedgerEntriesRequest.AccountType.
|
|
312
|
-
*/
|
|
313
|
-
export declare const AppendLedgerEntriesRequest_AccountTypeSchema: GenEnum<AppendLedgerEntriesRequest_AccountType>;
|
|
314
|
-
/**
|
|
315
|
-
* @generated from message network.v1.provider.AppendLedgerEntriesResponse
|
|
316
|
-
*/
|
|
317
|
-
export type AppendLedgerEntriesResponse = Message<"network.v1.provider.AppendLedgerEntriesResponse"> & {};
|
|
318
|
-
/**
|
|
319
|
-
* Describes the message network.v1.provider.AppendLedgerEntriesResponse.
|
|
320
|
-
* Use `create(AppendLedgerEntriesResponseSchema)` to create a new message.
|
|
321
|
-
*/
|
|
322
|
-
export declare const AppendLedgerEntriesResponseSchema: GenMessage<AppendLedgerEntriesResponse>;
|
|
323
|
-
/**
|
|
324
|
-
* @generated from message network.v1.provider.PayoutRequest
|
|
325
|
-
*/
|
|
326
|
-
export type PayoutRequest = Message<"network.v1.provider.PayoutRequest"> & {
|
|
327
|
-
/**
|
|
328
|
-
* *
|
|
329
|
-
* payment id assigned by the network (provider should store this id to provide details in UpdatePayout later)
|
|
330
|
-
*
|
|
331
|
-
* @generated from field: int64 payment_id = 10;
|
|
332
|
-
*/
|
|
333
|
-
paymentId: bigint;
|
|
334
|
-
/**
|
|
335
|
-
* *
|
|
336
|
-
* payout id assigned by the network (provider should store this id to provide details in UpdatePayout later)
|
|
337
|
-
*
|
|
338
|
-
* @generated from field: int64 payout_id = 20;
|
|
339
|
-
*/
|
|
340
|
-
payoutId: bigint;
|
|
341
|
-
/**
|
|
342
|
-
* *
|
|
343
|
-
* currency of the payout (participant could support multiple currencies)
|
|
344
|
-
* This is the currency in which the payout should be made.
|
|
345
|
-
*
|
|
346
|
-
* @generated from field: string currency = 30;
|
|
347
|
-
*/
|
|
348
|
-
currency: string;
|
|
349
|
-
/**
|
|
350
|
-
* *
|
|
351
|
-
* client quote id of the quote used for this payout (the provider provides the quote IDs in the UpdateQuote rpc)
|
|
352
|
-
* This is the identifier of the quote that was used to calculate the payout amount.
|
|
353
|
-
*
|
|
354
|
-
* @generated from field: string client_quote_id = 40;
|
|
355
|
-
*/
|
|
356
|
-
clientQuoteId: string;
|
|
357
|
-
/**
|
|
358
|
-
* *
|
|
359
|
-
* amount in currency of the payout
|
|
360
|
-
* This is the amount that should be paid out to the recipient.
|
|
361
|
-
*
|
|
362
|
-
* @generated from field: tzero.v1.common.Decimal amount = 50;
|
|
363
|
-
*/
|
|
364
|
-
amount?: Decimal;
|
|
365
|
-
/**
|
|
366
|
-
* *
|
|
367
|
-
* payout_method is the payment method for the payout, e.g. bank transfer, crypto transfer, etc.
|
|
368
|
-
* This is used to specify how the payout should be made.
|
|
369
|
-
*
|
|
370
|
-
* @generated from field: tzero.v1.common.PaymentMethod payout_method = 60;
|
|
371
|
-
*/
|
|
372
|
-
payoutMethod?: PaymentMethod;
|
|
373
|
-
};
|
|
374
|
-
/**
|
|
375
|
-
* Describes the message network.v1.provider.PayoutRequest.
|
|
376
|
-
* Use `create(PayoutRequestSchema)` to create a new message.
|
|
377
|
-
*/
|
|
378
|
-
export declare const PayoutRequestSchema: GenMessage<PayoutRequest>;
|
|
379
|
-
/**
|
|
380
|
-
* @generated from message network.v1.provider.PayoutResponse
|
|
381
|
-
*/
|
|
382
|
-
export type PayoutResponse = Message<"network.v1.provider.PayoutResponse"> & {};
|
|
383
|
-
/**
|
|
384
|
-
* Describes the message network.v1.provider.PayoutResponse.
|
|
385
|
-
* Use `create(PayoutResponseSchema)` to create a new message.
|
|
386
|
-
*/
|
|
387
|
-
export declare const PayoutResponseSchema: GenMessage<PayoutResponse>;
|
|
388
|
-
/**
|
|
389
|
-
* @generated from message network.v1.provider.UpdatePaymentRequest
|
|
390
|
-
*/
|
|
391
|
-
export type UpdatePaymentRequest = Message<"network.v1.provider.UpdatePaymentRequest"> & {
|
|
392
|
-
/**
|
|
393
|
-
* *
|
|
394
|
-
* payment_client_id is a payment id assigned by the client, this is the same id that was provided in the CreatePaymentRequest.
|
|
395
|
-
*
|
|
396
|
-
* @generated from field: string payment_client_id = 10;
|
|
397
|
-
*/
|
|
398
|
-
paymentClientId: string;
|
|
399
|
-
/**
|
|
400
|
-
* @generated from oneof network.v1.provider.UpdatePaymentRequest.result
|
|
401
|
-
*/
|
|
402
|
-
result: {
|
|
403
|
-
/**
|
|
404
|
-
* *
|
|
405
|
-
* Success response - means the payout was executed successfully and the payment is now complete. This happens when
|
|
406
|
-
* the payout is successfully processed by the payout provider, and the payment was made to the recipient.
|
|
407
|
-
*
|
|
408
|
-
* @generated from field: network.v1.provider.UpdatePaymentRequest.Success success = 20;
|
|
409
|
-
*/
|
|
410
|
-
value: UpdatePaymentRequest_Success;
|
|
411
|
-
case: "success";
|
|
412
|
-
} | {
|
|
413
|
-
/**
|
|
414
|
-
* *
|
|
415
|
-
* Failure response - means the payout was not executed successfully, e.g. the payout provider could not process the payout.
|
|
416
|
-
*
|
|
417
|
-
* @generated from field: network.v1.provider.UpdatePaymentRequest.Failure failure = 30;
|
|
418
|
-
*/
|
|
419
|
-
value: UpdatePaymentRequest_Failure;
|
|
420
|
-
case: "failure";
|
|
421
|
-
} | {
|
|
422
|
-
case: undefined;
|
|
423
|
-
value?: undefined;
|
|
424
|
-
};
|
|
425
|
-
};
|
|
426
|
-
/**
|
|
427
|
-
* Describes the message network.v1.provider.UpdatePaymentRequest.
|
|
428
|
-
* Use `create(UpdatePaymentRequestSchema)` to create a new message.
|
|
429
|
-
*/
|
|
430
|
-
export declare const UpdatePaymentRequestSchema: GenMessage<UpdatePaymentRequest>;
|
|
431
|
-
/**
|
|
432
|
-
* @generated from message network.v1.provider.UpdatePaymentRequest.Success
|
|
433
|
-
*/
|
|
434
|
-
export type UpdatePaymentRequest_Success = Message<"network.v1.provider.UpdatePaymentRequest.Success"> & {
|
|
435
|
-
/**
|
|
436
|
-
* amount in currency of the payout
|
|
437
|
-
*
|
|
438
|
-
* @generated from field: tzero.v1.common.Decimal payout_amount = 10;
|
|
439
|
-
*/
|
|
440
|
-
payoutAmount?: Decimal;
|
|
441
|
-
/**
|
|
442
|
-
* time of the payout
|
|
443
|
-
*
|
|
444
|
-
* @generated from field: google.protobuf.Timestamp paid_out_at = 50;
|
|
445
|
-
*/
|
|
446
|
-
paidOutAt?: Timestamp;
|
|
447
|
-
};
|
|
448
|
-
/**
|
|
449
|
-
* Describes the message network.v1.provider.UpdatePaymentRequest.Success.
|
|
450
|
-
* Use `create(UpdatePaymentRequest_SuccessSchema)` to create a new message.
|
|
451
|
-
*/
|
|
452
|
-
export declare const UpdatePaymentRequest_SuccessSchema: GenMessage<UpdatePaymentRequest_Success>;
|
|
453
|
-
/**
|
|
454
|
-
* @generated from message network.v1.provider.UpdatePaymentRequest.Failure
|
|
455
|
-
*/
|
|
456
|
-
export type UpdatePaymentRequest_Failure = Message<"network.v1.provider.UpdatePaymentRequest.Failure"> & {};
|
|
457
|
-
/**
|
|
458
|
-
* Describes the message network.v1.provider.UpdatePaymentRequest.Failure.
|
|
459
|
-
* Use `create(UpdatePaymentRequest_FailureSchema)` to create a new message.
|
|
460
|
-
*/
|
|
461
|
-
export declare const UpdatePaymentRequest_FailureSchema: GenMessage<UpdatePaymentRequest_Failure>;
|
|
462
|
-
/**
|
|
463
|
-
* @generated from enum network.v1.provider.UpdatePaymentRequest.Failure.Reason
|
|
464
|
-
*/
|
|
465
|
-
export declare enum UpdatePaymentRequest_Failure_Reason {
|
|
466
|
-
/**
|
|
467
|
-
* @generated from enum value: REASON_UNSPECIFIED = 0;
|
|
468
|
-
*/
|
|
469
|
-
UNSPECIFIED = 0
|
|
470
|
-
}
|
|
471
|
-
/**
|
|
472
|
-
* Describes the enum network.v1.provider.UpdatePaymentRequest.Failure.Reason.
|
|
473
|
-
*/
|
|
474
|
-
export declare const UpdatePaymentRequest_Failure_ReasonSchema: GenEnum<UpdatePaymentRequest_Failure_Reason>;
|
|
475
|
-
/**
|
|
476
|
-
* @generated from message network.v1.provider.UpdatePaymentResponse
|
|
477
|
-
*/
|
|
478
|
-
export type UpdatePaymentResponse = Message<"network.v1.provider.UpdatePaymentResponse"> & {};
|
|
479
|
-
/**
|
|
480
|
-
* Describes the message network.v1.provider.UpdatePaymentResponse.
|
|
481
|
-
* Use `create(UpdatePaymentResponseSchema)` to create a new message.
|
|
482
|
-
*/
|
|
483
|
-
export declare const UpdatePaymentResponseSchema: GenMessage<UpdatePaymentResponse>;
|
|
484
|
-
/**
|
|
485
|
-
* All the amounts are in USD
|
|
486
|
-
*
|
|
487
|
-
* @generated from message network.v1.provider.UpdateLimitRequest
|
|
488
|
-
*/
|
|
489
|
-
export type UpdateLimitRequest = Message<"network.v1.provider.UpdateLimitRequest"> & {
|
|
490
|
-
/**
|
|
491
|
-
* *
|
|
492
|
-
* Incrementally growing for the provider - same as in Ledger. Different providers have different versions.
|
|
493
|
-
*
|
|
494
|
-
* @generated from field: int64 version = 10;
|
|
495
|
-
*/
|
|
496
|
-
version: bigint;
|
|
497
|
-
/**
|
|
498
|
-
* *
|
|
499
|
-
* the Id of the counterparty (creditor) provider, e.g. the provider that is providing the credit limit.
|
|
500
|
-
* It's usually the payOut provider, which provides the credit line to the payIn provider.
|
|
501
|
-
*
|
|
502
|
-
* @generated from field: int32 provider_id = 15;
|
|
503
|
-
*/
|
|
504
|
-
providerId: number;
|
|
505
|
-
/**
|
|
506
|
-
* *
|
|
507
|
-
* payout_limit = credit_limit - credit_usage, negative value means credit limit is exceeded,
|
|
508
|
-
* e.g. if counterparty decreased credit limit
|
|
509
|
-
*
|
|
510
|
-
* @generated from field: tzero.v1.common.Decimal payout_limit = 20;
|
|
511
|
-
*/
|
|
512
|
-
payoutLimit?: Decimal;
|
|
513
|
-
/**
|
|
514
|
-
* *
|
|
515
|
-
* This is the credit limit that the counterparty is willing to extend to the provider.
|
|
516
|
-
*
|
|
517
|
-
* @generated from field: tzero.v1.common.Decimal credit_limit = 30;
|
|
518
|
-
*/
|
|
519
|
-
creditLimit?: Decimal;
|
|
520
|
-
/**
|
|
521
|
-
* *
|
|
522
|
-
* This is the credit usage that the provider has used so far. It is the sum of all payouts made by the provider
|
|
523
|
-
* minus the settlement net (settlement balance). It could be negative if the provider has received more settlements
|
|
524
|
-
* than payouts.
|
|
525
|
-
*
|
|
526
|
-
* @generated from field: tzero.v1.common.Decimal credit_usage = 40;
|
|
527
|
-
*/
|
|
528
|
-
creditUsage?: Decimal;
|
|
529
|
-
};
|
|
530
|
-
/**
|
|
531
|
-
* Describes the message network.v1.provider.UpdateLimitRequest.
|
|
532
|
-
* Use `create(UpdateLimitRequestSchema)` to create a new message.
|
|
533
|
-
*/
|
|
534
|
-
export declare const UpdateLimitRequestSchema: GenMessage<UpdateLimitRequest>;
|
|
535
|
-
/**
|
|
536
|
-
* *
|
|
537
|
-
* Empty message - means no response is needed.
|
|
538
|
-
*
|
|
539
|
-
* @generated from message network.v1.provider.UpdateLimitResponse
|
|
540
|
-
*/
|
|
541
|
-
export type UpdateLimitResponse = Message<"network.v1.provider.UpdateLimitResponse"> & {};
|
|
542
|
-
/**
|
|
543
|
-
* Describes the message network.v1.provider.UpdateLimitResponse.
|
|
544
|
-
* Use `create(UpdateLimitResponseSchema)` to create a new message.
|
|
545
|
-
*/
|
|
546
|
-
export declare const UpdateLimitResponseSchema: GenMessage<UpdateLimitResponse>;
|
|
547
|
-
/**
|
|
548
|
-
* @generated from message network.v1.provider.CreatePayInDetailsRequest
|
|
549
|
-
*/
|
|
550
|
-
export type CreatePayInDetailsRequest = Message<"network.v1.provider.CreatePayInDetailsRequest"> & {
|
|
551
|
-
/**
|
|
552
|
-
* *
|
|
553
|
-
* payment_intent_id is a unique identifier for the payment intent, which is used to create a payment later.
|
|
554
|
-
*
|
|
555
|
-
* @generated from field: string payment_intent_id = 10;
|
|
556
|
-
*/
|
|
557
|
-
paymentIntentId: string;
|
|
558
|
-
/**
|
|
559
|
-
* *
|
|
560
|
-
* Sender details for the pay-in process.
|
|
561
|
-
*
|
|
562
|
-
* @generated from field: network.v1.provider.CreatePayInDetailsRequest.Sender sender = 40;
|
|
563
|
-
*/
|
|
564
|
-
sender?: CreatePayInDetailsRequest_Sender;
|
|
565
|
-
};
|
|
566
|
-
/**
|
|
567
|
-
* Describes the message network.v1.provider.CreatePayInDetailsRequest.
|
|
568
|
-
* Use `create(CreatePayInDetailsRequestSchema)` to create a new message.
|
|
569
|
-
*/
|
|
570
|
-
export declare const CreatePayInDetailsRequestSchema: GenMessage<CreatePayInDetailsRequest>;
|
|
571
|
-
/**
|
|
572
|
-
* @generated from message network.v1.provider.CreatePayInDetailsRequest.Sender
|
|
573
|
-
*/
|
|
574
|
-
export type CreatePayInDetailsRequest_Sender = Message<"network.v1.provider.CreatePayInDetailsRequest.Sender"> & {
|
|
575
|
-
/**
|
|
576
|
-
* @generated from oneof network.v1.provider.CreatePayInDetailsRequest.Sender.sender
|
|
577
|
-
*/
|
|
578
|
-
sender: {
|
|
579
|
-
/**
|
|
580
|
-
* @generated from field: network.v1.provider.CreatePayInDetailsRequest.Sender.PrivatePerson private_person = 10;
|
|
581
|
-
*/
|
|
582
|
-
value: CreatePayInDetailsRequest_Sender_PrivatePerson;
|
|
583
|
-
case: "privatePerson";
|
|
584
|
-
} | {
|
|
585
|
-
case: undefined;
|
|
586
|
-
value?: undefined;
|
|
587
|
-
};
|
|
588
|
-
};
|
|
589
|
-
/**
|
|
590
|
-
* Describes the message network.v1.provider.CreatePayInDetailsRequest.Sender.
|
|
591
|
-
* Use `create(CreatePayInDetailsRequest_SenderSchema)` to create a new message.
|
|
592
|
-
*/
|
|
593
|
-
export declare const CreatePayInDetailsRequest_SenderSchema: GenMessage<CreatePayInDetailsRequest_Sender>;
|
|
594
|
-
/**
|
|
595
|
-
* @generated from message network.v1.provider.CreatePayInDetailsRequest.Sender.PrivatePerson
|
|
596
|
-
*/
|
|
597
|
-
export type CreatePayInDetailsRequest_Sender_PrivatePerson = Message<"network.v1.provider.CreatePayInDetailsRequest.Sender.PrivatePerson"> & {
|
|
598
|
-
/**
|
|
599
|
-
* can be used to get KYC data
|
|
600
|
-
*
|
|
601
|
-
* @generated from field: string private_person_id = 10;
|
|
602
|
-
*/
|
|
603
|
-
privatePersonId: string;
|
|
604
|
-
};
|
|
605
|
-
/**
|
|
606
|
-
* Describes the message network.v1.provider.CreatePayInDetailsRequest.Sender.PrivatePerson.
|
|
607
|
-
* Use `create(CreatePayInDetailsRequest_Sender_PrivatePersonSchema)` to create a new message.
|
|
608
|
-
*/
|
|
609
|
-
export declare const CreatePayInDetailsRequest_Sender_PrivatePersonSchema: GenMessage<CreatePayInDetailsRequest_Sender_PrivatePerson>;
|
|
610
|
-
/**
|
|
611
|
-
* @generated from message network.v1.provider.CreatePayInDetailsResponse
|
|
612
|
-
*/
|
|
613
|
-
export type CreatePayInDetailsResponse = Message<"network.v1.provider.CreatePayInDetailsResponse"> & {
|
|
614
|
-
/**
|
|
615
|
-
* *
|
|
616
|
-
* List of available pay-in methods for the sender. This is used to present the user with options for how they can pay in.
|
|
617
|
-
*
|
|
618
|
-
* @generated from field: repeated tzero.v1.common.PaymentMethod pay_in_method = 10;
|
|
619
|
-
*/
|
|
620
|
-
payInMethod: PaymentMethod[];
|
|
621
|
-
};
|
|
622
|
-
/**
|
|
623
|
-
* Describes the message network.v1.provider.CreatePayInDetailsResponse.
|
|
624
|
-
* Use `create(CreatePayInDetailsResponseSchema)` to create a new message.
|
|
625
|
-
*/
|
|
626
|
-
export declare const CreatePayInDetailsResponseSchema: GenMessage<CreatePayInDetailsResponse>;
|
|
627
|
-
/**
|
|
628
|
-
* *
|
|
629
|
-
* This service must be implemented by the provider.
|
|
630
|
-
*
|
|
631
|
-
* All methods of this service must be idempotent, meaning they are safe to retry and multiple calls with the same parameters must not have additional effect.
|
|
632
|
-
*
|
|
633
|
-
* @generated from service network.v1.provider.ProviderService
|
|
634
|
-
*/
|
|
635
|
-
export declare const ProviderService: GenService<{
|
|
636
|
-
/**
|
|
637
|
-
* *
|
|
638
|
-
* Network instructs the provider to execute a payout to the recipient.
|
|
639
|
-
* This method should be idempotent, meaning that multiple calls with the same parameters will have no additional effect.
|
|
640
|
-
*
|
|
641
|
-
* @generated from rpc network.v1.provider.ProviderService.PayOut
|
|
642
|
-
*/
|
|
643
|
-
payOut: {
|
|
644
|
-
methodKind: "unary";
|
|
645
|
-
input: typeof PayoutRequestSchema;
|
|
646
|
-
output: typeof PayoutResponseSchema;
|
|
647
|
-
};
|
|
648
|
-
/**
|
|
649
|
-
* *
|
|
650
|
-
* Network provides an update on the status of a payment. This can be either a success or a failure.
|
|
651
|
-
* This method should be idempotent, meaning that multiple calls with the same parameters will have no additional effect.
|
|
652
|
-
*
|
|
653
|
-
* @generated from rpc network.v1.provider.ProviderService.UpdatePayment
|
|
654
|
-
*/
|
|
655
|
-
updatePayment: {
|
|
656
|
-
methodKind: "unary";
|
|
657
|
-
input: typeof UpdatePaymentRequestSchema;
|
|
658
|
-
output: typeof UpdatePaymentResponseSchema;
|
|
659
|
-
};
|
|
660
|
-
/**
|
|
661
|
-
* *
|
|
662
|
-
* Network asks the provider for possible pay-in options for a sender, in preparation for a pay-in process.
|
|
663
|
-
* This is optional, but if implemented, it should return a list of available pay-in methods.
|
|
664
|
-
*
|
|
665
|
-
* @generated from rpc network.v1.provider.ProviderService.CreatePayInDetails
|
|
666
|
-
*/
|
|
667
|
-
createPayInDetails: {
|
|
668
|
-
methodKind: "unary";
|
|
669
|
-
input: typeof CreatePayInDetailsRequestSchema;
|
|
670
|
-
output: typeof CreatePayInDetailsResponseSchema;
|
|
671
|
-
};
|
|
672
|
-
/**
|
|
673
|
-
* *
|
|
674
|
-
* This rpc is used to notify the provider about the changes in credit limit and/or credit usage.
|
|
675
|
-
*
|
|
676
|
-
* @generated from rpc network.v1.provider.ProviderService.UpdateLimit
|
|
677
|
-
*/
|
|
678
|
-
updateLimit: {
|
|
679
|
-
methodKind: "unary";
|
|
680
|
-
input: typeof UpdateLimitRequestSchema;
|
|
681
|
-
output: typeof UpdateLimitResponseSchema;
|
|
682
|
-
};
|
|
683
|
-
/**
|
|
684
|
-
* *
|
|
685
|
-
* Network can send all the updates about ledger entries of the provider's accounts. It can be used to
|
|
686
|
-
* keep track of the provider's exposure to other participants and other important financial events. (see the list in the message below)
|
|
687
|
-
*
|
|
688
|
-
* @generated from rpc network.v1.provider.ProviderService.AppendLedgerEntries
|
|
689
|
-
*/
|
|
690
|
-
appendLedgerEntries: {
|
|
691
|
-
methodKind: "unary";
|
|
692
|
-
input: typeof AppendLedgerEntriesRequestSchema;
|
|
693
|
-
output: typeof AppendLedgerEntriesResponseSchema;
|
|
694
|
-
};
|
|
695
|
-
}>;
|