@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,34 +1,34 @@
|
|
|
1
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";
|
|
2
|
+
import type { PaymentMethod } from "../common/payment_method_pb.js";
|
|
3
|
+
import type { Decimal } from "../common/common_pb.js";
|
|
4
4
|
import type { Timestamp } from "@bufbuild/protobuf/wkt";
|
|
5
5
|
import type { Message } from "@bufbuild/protobuf";
|
|
6
6
|
/**
|
|
7
|
-
* Describes the file
|
|
7
|
+
* Describes the file tzero/v1/payment/provider.proto.
|
|
8
8
|
*/
|
|
9
|
-
export declare const
|
|
9
|
+
export declare const file_tzero_v1_payment_provider: GenFile;
|
|
10
10
|
/**
|
|
11
|
-
* @generated from message
|
|
11
|
+
* @generated from message tzero.v1.payment.AppendLedgerEntriesRequest
|
|
12
12
|
*/
|
|
13
|
-
export type AppendLedgerEntriesRequest = Message<"
|
|
13
|
+
export type AppendLedgerEntriesRequest = Message<"tzero.v1.payment.AppendLedgerEntriesRequest"> & {
|
|
14
14
|
/**
|
|
15
15
|
* *
|
|
16
16
|
* This is a list of transactions that were appended to the ledger of the provider.
|
|
17
17
|
* The transaction_id should be used to identify the transaction and ensure that it is processed only once.
|
|
18
18
|
*
|
|
19
|
-
* @generated from field: repeated
|
|
19
|
+
* @generated from field: repeated tzero.v1.payment.AppendLedgerEntriesRequest.Transaction transactions = 20;
|
|
20
20
|
*/
|
|
21
21
|
transactions: AppendLedgerEntriesRequest_Transaction[];
|
|
22
22
|
};
|
|
23
23
|
/**
|
|
24
|
-
* Describes the message
|
|
24
|
+
* Describes the message tzero.v1.payment.AppendLedgerEntriesRequest.
|
|
25
25
|
* Use `create(AppendLedgerEntriesRequestSchema)` to create a new message.
|
|
26
26
|
*/
|
|
27
27
|
export declare const AppendLedgerEntriesRequestSchema: GenMessage<AppendLedgerEntriesRequest>;
|
|
28
28
|
/**
|
|
29
|
-
* @generated from message
|
|
29
|
+
* @generated from message tzero.v1.payment.AppendLedgerEntriesRequest.Transaction
|
|
30
30
|
*/
|
|
31
|
-
export type AppendLedgerEntriesRequest_Transaction = Message<"
|
|
31
|
+
export type AppendLedgerEntriesRequest_Transaction = Message<"tzero.v1.payment.AppendLedgerEntriesRequest.Transaction"> & {
|
|
32
32
|
/**
|
|
33
33
|
* *
|
|
34
34
|
* transaction_id is an incrementally growing identifier for the transaction.
|
|
@@ -42,7 +42,7 @@ export type AppendLedgerEntriesRequest_Transaction = Message<"network.v1.provide
|
|
|
42
42
|
* entries is a list of ledger entries that were appended to the ledger of the provider.
|
|
43
43
|
* Each entry represents a financial event that occurred in the provider's accounts.
|
|
44
44
|
*
|
|
45
|
-
* @generated from field: repeated
|
|
45
|
+
* @generated from field: repeated tzero.v1.payment.AppendLedgerEntriesRequest.LedgerEntry entries = 30;
|
|
46
46
|
*/
|
|
47
47
|
entries: AppendLedgerEntriesRequest_LedgerEntry[];
|
|
48
48
|
/**
|
|
@@ -50,41 +50,41 @@ export type AppendLedgerEntriesRequest_Transaction = Message<"network.v1.provide
|
|
|
50
50
|
* transaction_details is a oneof field that contains details about the transaction.
|
|
51
51
|
* It can be one of the following: PayIn, PayoutReservation, Payout, ProviderSettlement, FeeSettlement, PayoutReservationRelease.
|
|
52
52
|
*
|
|
53
|
-
* @generated from oneof
|
|
53
|
+
* @generated from oneof tzero.v1.payment.AppendLedgerEntriesRequest.Transaction.transaction_details
|
|
54
54
|
*/
|
|
55
55
|
transactionDetails: {
|
|
56
56
|
/**
|
|
57
|
-
* @generated from field:
|
|
57
|
+
* @generated from field: tzero.v1.payment.AppendLedgerEntriesRequest.Transaction.PayIn pay_in = 110;
|
|
58
58
|
*/
|
|
59
59
|
value: AppendLedgerEntriesRequest_Transaction_PayIn;
|
|
60
60
|
case: "payIn";
|
|
61
61
|
} | {
|
|
62
62
|
/**
|
|
63
|
-
* @generated from field:
|
|
63
|
+
* @generated from field: tzero.v1.payment.AppendLedgerEntriesRequest.Transaction.PayoutReservation payout_reservation = 120;
|
|
64
64
|
*/
|
|
65
65
|
value: AppendLedgerEntriesRequest_Transaction_PayoutReservation;
|
|
66
66
|
case: "payoutReservation";
|
|
67
67
|
} | {
|
|
68
68
|
/**
|
|
69
|
-
* @generated from field:
|
|
69
|
+
* @generated from field: tzero.v1.payment.AppendLedgerEntriesRequest.Transaction.Payout payout = 130;
|
|
70
70
|
*/
|
|
71
71
|
value: AppendLedgerEntriesRequest_Transaction_Payout;
|
|
72
72
|
case: "payout";
|
|
73
73
|
} | {
|
|
74
74
|
/**
|
|
75
|
-
* @generated from field:
|
|
75
|
+
* @generated from field: tzero.v1.payment.AppendLedgerEntriesRequest.Transaction.ProviderSettlement provider_settlement = 140;
|
|
76
76
|
*/
|
|
77
77
|
value: AppendLedgerEntriesRequest_Transaction_ProviderSettlement;
|
|
78
78
|
case: "providerSettlement";
|
|
79
79
|
} | {
|
|
80
80
|
/**
|
|
81
|
-
* @generated from field:
|
|
81
|
+
* @generated from field: tzero.v1.payment.AppendLedgerEntriesRequest.Transaction.FeeSettlement fee_settlement = 150;
|
|
82
82
|
*/
|
|
83
83
|
value: AppendLedgerEntriesRequest_Transaction_FeeSettlement;
|
|
84
84
|
case: "feeSettlement";
|
|
85
85
|
} | {
|
|
86
86
|
/**
|
|
87
|
-
* @generated from field:
|
|
87
|
+
* @generated from field: tzero.v1.payment.AppendLedgerEntriesRequest.Transaction.PayoutReservationRelease payout_reservation_release = 160;
|
|
88
88
|
*/
|
|
89
89
|
value: AppendLedgerEntriesRequest_Transaction_PayoutReservationRelease;
|
|
90
90
|
case: "payoutReservationRelease";
|
|
@@ -94,100 +94,98 @@ export type AppendLedgerEntriesRequest_Transaction = Message<"network.v1.provide
|
|
|
94
94
|
};
|
|
95
95
|
};
|
|
96
96
|
/**
|
|
97
|
-
* Describes the message
|
|
97
|
+
* Describes the message tzero.v1.payment.AppendLedgerEntriesRequest.Transaction.
|
|
98
98
|
* Use `create(AppendLedgerEntriesRequest_TransactionSchema)` to create a new message.
|
|
99
99
|
*/
|
|
100
100
|
export declare const AppendLedgerEntriesRequest_TransactionSchema: GenMessage<AppendLedgerEntriesRequest_Transaction>;
|
|
101
101
|
/**
|
|
102
|
-
* @generated from message
|
|
102
|
+
* @generated from message tzero.v1.payment.AppendLedgerEntriesRequest.Transaction.PayIn
|
|
103
103
|
*/
|
|
104
|
-
export type AppendLedgerEntriesRequest_Transaction_PayIn = Message<"
|
|
104
|
+
export type AppendLedgerEntriesRequest_Transaction_PayIn = Message<"tzero.v1.payment.AppendLedgerEntriesRequest.Transaction.PayIn"> & {
|
|
105
105
|
/**
|
|
106
|
-
* TODO: should we include details in the transaction?
|
|
107
|
-
*
|
|
108
106
|
* @generated from field: uint64 payment_id = 10;
|
|
109
107
|
*/
|
|
110
108
|
paymentId: bigint;
|
|
111
109
|
};
|
|
112
110
|
/**
|
|
113
|
-
* Describes the message
|
|
111
|
+
* Describes the message tzero.v1.payment.AppendLedgerEntriesRequest.Transaction.PayIn.
|
|
114
112
|
* Use `create(AppendLedgerEntriesRequest_Transaction_PayInSchema)` to create a new message.
|
|
115
113
|
*/
|
|
116
114
|
export declare const AppendLedgerEntriesRequest_Transaction_PayInSchema: GenMessage<AppendLedgerEntriesRequest_Transaction_PayIn>;
|
|
117
115
|
/**
|
|
118
|
-
* @generated from message
|
|
116
|
+
* @generated from message tzero.v1.payment.AppendLedgerEntriesRequest.Transaction.PayoutReservation
|
|
119
117
|
*/
|
|
120
|
-
export type AppendLedgerEntriesRequest_Transaction_PayoutReservation = Message<"
|
|
118
|
+
export type AppendLedgerEntriesRequest_Transaction_PayoutReservation = Message<"tzero.v1.payment.AppendLedgerEntriesRequest.Transaction.PayoutReservation"> & {
|
|
121
119
|
/**
|
|
122
120
|
* @generated from field: uint64 payment_id = 10;
|
|
123
121
|
*/
|
|
124
122
|
paymentId: bigint;
|
|
125
123
|
};
|
|
126
124
|
/**
|
|
127
|
-
* Describes the message
|
|
125
|
+
* Describes the message tzero.v1.payment.AppendLedgerEntriesRequest.Transaction.PayoutReservation.
|
|
128
126
|
* Use `create(AppendLedgerEntriesRequest_Transaction_PayoutReservationSchema)` to create a new message.
|
|
129
127
|
*/
|
|
130
128
|
export declare const AppendLedgerEntriesRequest_Transaction_PayoutReservationSchema: GenMessage<AppendLedgerEntriesRequest_Transaction_PayoutReservation>;
|
|
131
129
|
/**
|
|
132
|
-
* @generated from message
|
|
130
|
+
* @generated from message tzero.v1.payment.AppendLedgerEntriesRequest.Transaction.Payout
|
|
133
131
|
*/
|
|
134
|
-
export type AppendLedgerEntriesRequest_Transaction_Payout = Message<"
|
|
132
|
+
export type AppendLedgerEntriesRequest_Transaction_Payout = Message<"tzero.v1.payment.AppendLedgerEntriesRequest.Transaction.Payout"> & {
|
|
135
133
|
/**
|
|
136
134
|
* @generated from field: uint64 payment_id = 10;
|
|
137
135
|
*/
|
|
138
136
|
paymentId: bigint;
|
|
139
137
|
};
|
|
140
138
|
/**
|
|
141
|
-
* Describes the message
|
|
139
|
+
* Describes the message tzero.v1.payment.AppendLedgerEntriesRequest.Transaction.Payout.
|
|
142
140
|
* Use `create(AppendLedgerEntriesRequest_Transaction_PayoutSchema)` to create a new message.
|
|
143
141
|
*/
|
|
144
142
|
export declare const AppendLedgerEntriesRequest_Transaction_PayoutSchema: GenMessage<AppendLedgerEntriesRequest_Transaction_Payout>;
|
|
145
143
|
/**
|
|
146
|
-
* @generated from message
|
|
144
|
+
* @generated from message tzero.v1.payment.AppendLedgerEntriesRequest.Transaction.ProviderSettlement
|
|
147
145
|
*/
|
|
148
|
-
export type AppendLedgerEntriesRequest_Transaction_ProviderSettlement = Message<"
|
|
146
|
+
export type AppendLedgerEntriesRequest_Transaction_ProviderSettlement = Message<"tzero.v1.payment.AppendLedgerEntriesRequest.Transaction.ProviderSettlement"> & {
|
|
149
147
|
/**
|
|
150
148
|
* @generated from field: uint64 settlement_id = 10;
|
|
151
149
|
*/
|
|
152
150
|
settlementId: bigint;
|
|
153
151
|
};
|
|
154
152
|
/**
|
|
155
|
-
* Describes the message
|
|
153
|
+
* Describes the message tzero.v1.payment.AppendLedgerEntriesRequest.Transaction.ProviderSettlement.
|
|
156
154
|
* Use `create(AppendLedgerEntriesRequest_Transaction_ProviderSettlementSchema)` to create a new message.
|
|
157
155
|
*/
|
|
158
156
|
export declare const AppendLedgerEntriesRequest_Transaction_ProviderSettlementSchema: GenMessage<AppendLedgerEntriesRequest_Transaction_ProviderSettlement>;
|
|
159
157
|
/**
|
|
160
|
-
* @generated from message
|
|
158
|
+
* @generated from message tzero.v1.payment.AppendLedgerEntriesRequest.Transaction.FeeSettlement
|
|
161
159
|
*/
|
|
162
|
-
export type AppendLedgerEntriesRequest_Transaction_FeeSettlement = Message<"
|
|
160
|
+
export type AppendLedgerEntriesRequest_Transaction_FeeSettlement = Message<"tzero.v1.payment.AppendLedgerEntriesRequest.Transaction.FeeSettlement"> & {
|
|
163
161
|
/**
|
|
164
162
|
* @generated from field: uint64 fee_settlement_id = 10;
|
|
165
163
|
*/
|
|
166
164
|
feeSettlementId: bigint;
|
|
167
165
|
};
|
|
168
166
|
/**
|
|
169
|
-
* Describes the message
|
|
167
|
+
* Describes the message tzero.v1.payment.AppendLedgerEntriesRequest.Transaction.FeeSettlement.
|
|
170
168
|
* Use `create(AppendLedgerEntriesRequest_Transaction_FeeSettlementSchema)` to create a new message.
|
|
171
169
|
*/
|
|
172
170
|
export declare const AppendLedgerEntriesRequest_Transaction_FeeSettlementSchema: GenMessage<AppendLedgerEntriesRequest_Transaction_FeeSettlement>;
|
|
173
171
|
/**
|
|
174
|
-
* @generated from message
|
|
172
|
+
* @generated from message tzero.v1.payment.AppendLedgerEntriesRequest.Transaction.PayoutReservationRelease
|
|
175
173
|
*/
|
|
176
|
-
export type AppendLedgerEntriesRequest_Transaction_PayoutReservationRelease = Message<"
|
|
174
|
+
export type AppendLedgerEntriesRequest_Transaction_PayoutReservationRelease = Message<"tzero.v1.payment.AppendLedgerEntriesRequest.Transaction.PayoutReservationRelease"> & {
|
|
177
175
|
/**
|
|
178
176
|
* @generated from field: uint64 payment_id = 10;
|
|
179
177
|
*/
|
|
180
178
|
paymentId: bigint;
|
|
181
179
|
};
|
|
182
180
|
/**
|
|
183
|
-
* Describes the message
|
|
181
|
+
* Describes the message tzero.v1.payment.AppendLedgerEntriesRequest.Transaction.PayoutReservationRelease.
|
|
184
182
|
* Use `create(AppendLedgerEntriesRequest_Transaction_PayoutReservationReleaseSchema)` to create a new message.
|
|
185
183
|
*/
|
|
186
184
|
export declare const AppendLedgerEntriesRequest_Transaction_PayoutReservationReleaseSchema: GenMessage<AppendLedgerEntriesRequest_Transaction_PayoutReservationRelease>;
|
|
187
185
|
/**
|
|
188
|
-
* @generated from message
|
|
186
|
+
* @generated from message tzero.v1.payment.AppendLedgerEntriesRequest.LedgerEntry
|
|
189
187
|
*/
|
|
190
|
-
export type AppendLedgerEntriesRequest_LedgerEntry = Message<"
|
|
188
|
+
export type AppendLedgerEntriesRequest_LedgerEntry = Message<"tzero.v1.payment.AppendLedgerEntriesRequest.LedgerEntry"> & {
|
|
191
189
|
/**
|
|
192
190
|
* 1 is network account, others are ids of participants
|
|
193
191
|
*
|
|
@@ -199,7 +197,7 @@ export type AppendLedgerEntriesRequest_LedgerEntry = Message<"network.v1.provide
|
|
|
199
197
|
* account_type is the type of the account that the entry belongs to.
|
|
200
198
|
* It is used to categorize the entries and understand the nature of the financial event.
|
|
201
199
|
*
|
|
202
|
-
* @generated from field:
|
|
200
|
+
* @generated from field: tzero.v1.payment.AppendLedgerEntriesRequest.AccountType account_type = 20;
|
|
203
201
|
*/
|
|
204
202
|
accountType: AppendLedgerEntriesRequest_AccountType;
|
|
205
203
|
/**
|
|
@@ -236,12 +234,12 @@ export type AppendLedgerEntriesRequest_LedgerEntry = Message<"network.v1.provide
|
|
|
236
234
|
exchangeRate?: Decimal;
|
|
237
235
|
};
|
|
238
236
|
/**
|
|
239
|
-
* Describes the message
|
|
237
|
+
* Describes the message tzero.v1.payment.AppendLedgerEntriesRequest.LedgerEntry.
|
|
240
238
|
* Use `create(AppendLedgerEntriesRequest_LedgerEntrySchema)` to create a new message.
|
|
241
239
|
*/
|
|
242
240
|
export declare const AppendLedgerEntriesRequest_LedgerEntrySchema: GenMessage<AppendLedgerEntriesRequest_LedgerEntry>;
|
|
243
241
|
/**
|
|
244
|
-
* @generated from enum
|
|
242
|
+
* @generated from enum tzero.v1.payment.AppendLedgerEntriesRequest.AccountType
|
|
245
243
|
*/
|
|
246
244
|
export declare enum AppendLedgerEntriesRequest_AccountType {
|
|
247
245
|
/**
|
|
@@ -310,22 +308,22 @@ export declare enum AppendLedgerEntriesRequest_AccountType {
|
|
|
310
308
|
PROVIDER_SETTLEMENT = 10
|
|
311
309
|
}
|
|
312
310
|
/**
|
|
313
|
-
* Describes the enum
|
|
311
|
+
* Describes the enum tzero.v1.payment.AppendLedgerEntriesRequest.AccountType.
|
|
314
312
|
*/
|
|
315
313
|
export declare const AppendLedgerEntriesRequest_AccountTypeSchema: GenEnum<AppendLedgerEntriesRequest_AccountType>;
|
|
316
314
|
/**
|
|
317
|
-
* @generated from message
|
|
315
|
+
* @generated from message tzero.v1.payment.AppendLedgerEntriesResponse
|
|
318
316
|
*/
|
|
319
|
-
export type AppendLedgerEntriesResponse = Message<"
|
|
317
|
+
export type AppendLedgerEntriesResponse = Message<"tzero.v1.payment.AppendLedgerEntriesResponse"> & {};
|
|
320
318
|
/**
|
|
321
|
-
* Describes the message
|
|
319
|
+
* Describes the message tzero.v1.payment.AppendLedgerEntriesResponse.
|
|
322
320
|
* Use `create(AppendLedgerEntriesResponseSchema)` to create a new message.
|
|
323
321
|
*/
|
|
324
322
|
export declare const AppendLedgerEntriesResponseSchema: GenMessage<AppendLedgerEntriesResponse>;
|
|
325
323
|
/**
|
|
326
|
-
* @generated from message
|
|
324
|
+
* @generated from message tzero.v1.payment.PayoutRequest
|
|
327
325
|
*/
|
|
328
|
-
export type PayoutRequest = Message<"
|
|
326
|
+
export type PayoutRequest = Message<"tzero.v1.payment.PayoutRequest"> & {
|
|
329
327
|
/**
|
|
330
328
|
* *
|
|
331
329
|
* payment id assigned by the network (provider should store this id to provide details in UpdatePayout later)
|
|
@@ -361,15 +359,15 @@ export type PayoutRequest = Message<"network.v1.provider.PayoutRequest"> & {
|
|
|
361
359
|
* amount in currency of the payout
|
|
362
360
|
* This is the amount that should be paid out to the recipient.
|
|
363
361
|
*
|
|
364
|
-
* @generated from field: tzero.v1.common.Decimal amount = 50;
|
|
365
|
-
*/
|
|
366
|
-
amount?: Decimal;
|
|
367
|
-
/**
|
|
368
362
|
* *
|
|
369
363
|
* payout_method is the payment method for the payout, e.g. bank transfer, crypto transfer, etc.
|
|
370
364
|
* This is used to specify how the payout should be made.
|
|
371
365
|
*
|
|
372
|
-
* @generated from field: tzero.v1.common.
|
|
366
|
+
* @generated from field: tzero.v1.common.Decimal amount = 50;
|
|
367
|
+
*/
|
|
368
|
+
amount?: Decimal;
|
|
369
|
+
/**
|
|
370
|
+
* @generated from field: optional tzero.v1.common.PaymentMethod payout_method = 60;
|
|
373
371
|
*/
|
|
374
372
|
payoutMethod?: PaymentMethod;
|
|
375
373
|
/**
|
|
@@ -379,25 +377,32 @@ export type PayoutRequest = Message<"network.v1.provider.PayoutRequest"> & {
|
|
|
379
377
|
* @generated from field: optional string reference = 70;
|
|
380
378
|
*/
|
|
381
379
|
reference?: string;
|
|
380
|
+
/**
|
|
381
|
+
* *
|
|
382
|
+
* Pay-in provider id which initiated the pay out.
|
|
383
|
+
*
|
|
384
|
+
* @generated from field: uint32 pay_in_provider_id = 80;
|
|
385
|
+
*/
|
|
386
|
+
payInProviderId: number;
|
|
382
387
|
};
|
|
383
388
|
/**
|
|
384
|
-
* Describes the message
|
|
389
|
+
* Describes the message tzero.v1.payment.PayoutRequest.
|
|
385
390
|
* Use `create(PayoutRequestSchema)` to create a new message.
|
|
386
391
|
*/
|
|
387
392
|
export declare const PayoutRequestSchema: GenMessage<PayoutRequest>;
|
|
388
393
|
/**
|
|
389
|
-
* @generated from message
|
|
394
|
+
* @generated from message tzero.v1.payment.PayoutResponse
|
|
390
395
|
*/
|
|
391
|
-
export type PayoutResponse = Message<"
|
|
396
|
+
export type PayoutResponse = Message<"tzero.v1.payment.PayoutResponse"> & {};
|
|
392
397
|
/**
|
|
393
|
-
* Describes the message
|
|
398
|
+
* Describes the message tzero.v1.payment.PayoutResponse.
|
|
394
399
|
* Use `create(PayoutResponseSchema)` to create a new message.
|
|
395
400
|
*/
|
|
396
401
|
export declare const PayoutResponseSchema: GenMessage<PayoutResponse>;
|
|
397
402
|
/**
|
|
398
|
-
* @generated from message
|
|
403
|
+
* @generated from message tzero.v1.payment.UpdatePaymentRequest
|
|
399
404
|
*/
|
|
400
|
-
export type UpdatePaymentRequest = Message<"
|
|
405
|
+
export type UpdatePaymentRequest = Message<"tzero.v1.payment.UpdatePaymentRequest"> & {
|
|
401
406
|
/**
|
|
402
407
|
* *
|
|
403
408
|
* payment_id is a payment id in the T-0 network.
|
|
@@ -413,7 +418,7 @@ export type UpdatePaymentRequest = Message<"network.v1.provider.UpdatePaymentReq
|
|
|
413
418
|
*/
|
|
414
419
|
paymentClientId: string;
|
|
415
420
|
/**
|
|
416
|
-
* @generated from oneof
|
|
421
|
+
* @generated from oneof tzero.v1.payment.UpdatePaymentRequest.result
|
|
417
422
|
*/
|
|
418
423
|
result: {
|
|
419
424
|
/**
|
|
@@ -421,7 +426,7 @@ export type UpdatePaymentRequest = Message<"network.v1.provider.UpdatePaymentReq
|
|
|
421
426
|
* Success response - means the payout was executed successfully and the payment is now complete. This happens when
|
|
422
427
|
* the payout is successfully processed by the payout provider, and the payment was made to the recipient.
|
|
423
428
|
*
|
|
424
|
-
* @generated from field:
|
|
429
|
+
* @generated from field: tzero.v1.payment.UpdatePaymentRequest.Success success = 20;
|
|
425
430
|
*/
|
|
426
431
|
value: UpdatePaymentRequest_Success;
|
|
427
432
|
case: "success";
|
|
@@ -430,7 +435,7 @@ export type UpdatePaymentRequest = Message<"network.v1.provider.UpdatePaymentReq
|
|
|
430
435
|
* *
|
|
431
436
|
* Failure response - means the payout was not executed successfully, e.g. the payout provider could not process the payout.
|
|
432
437
|
*
|
|
433
|
-
* @generated from field:
|
|
438
|
+
* @generated from field: tzero.v1.payment.UpdatePaymentRequest.Failure failure = 30;
|
|
434
439
|
*/
|
|
435
440
|
value: UpdatePaymentRequest_Failure;
|
|
436
441
|
case: "failure";
|
|
@@ -440,14 +445,14 @@ export type UpdatePaymentRequest = Message<"network.v1.provider.UpdatePaymentReq
|
|
|
440
445
|
};
|
|
441
446
|
};
|
|
442
447
|
/**
|
|
443
|
-
* Describes the message
|
|
448
|
+
* Describes the message tzero.v1.payment.UpdatePaymentRequest.
|
|
444
449
|
* Use `create(UpdatePaymentRequestSchema)` to create a new message.
|
|
445
450
|
*/
|
|
446
451
|
export declare const UpdatePaymentRequestSchema: GenMessage<UpdatePaymentRequest>;
|
|
447
452
|
/**
|
|
448
|
-
* @generated from message
|
|
453
|
+
* @generated from message tzero.v1.payment.UpdatePaymentRequest.Success
|
|
449
454
|
*/
|
|
450
|
-
export type UpdatePaymentRequest_Success = Message<"
|
|
455
|
+
export type UpdatePaymentRequest_Success = Message<"tzero.v1.payment.UpdatePaymentRequest.Success"> & {
|
|
451
456
|
/**
|
|
452
457
|
* amount in currency of the payout
|
|
453
458
|
*
|
|
@@ -462,21 +467,21 @@ export type UpdatePaymentRequest_Success = Message<"network.v1.provider.UpdatePa
|
|
|
462
467
|
paidOutAt?: Timestamp;
|
|
463
468
|
};
|
|
464
469
|
/**
|
|
465
|
-
* Describes the message
|
|
470
|
+
* Describes the message tzero.v1.payment.UpdatePaymentRequest.Success.
|
|
466
471
|
* Use `create(UpdatePaymentRequest_SuccessSchema)` to create a new message.
|
|
467
472
|
*/
|
|
468
473
|
export declare const UpdatePaymentRequest_SuccessSchema: GenMessage<UpdatePaymentRequest_Success>;
|
|
469
474
|
/**
|
|
470
|
-
* @generated from message
|
|
475
|
+
* @generated from message tzero.v1.payment.UpdatePaymentRequest.Failure
|
|
471
476
|
*/
|
|
472
|
-
export type UpdatePaymentRequest_Failure = Message<"
|
|
477
|
+
export type UpdatePaymentRequest_Failure = Message<"tzero.v1.payment.UpdatePaymentRequest.Failure"> & {};
|
|
473
478
|
/**
|
|
474
|
-
* Describes the message
|
|
479
|
+
* Describes the message tzero.v1.payment.UpdatePaymentRequest.Failure.
|
|
475
480
|
* Use `create(UpdatePaymentRequest_FailureSchema)` to create a new message.
|
|
476
481
|
*/
|
|
477
482
|
export declare const UpdatePaymentRequest_FailureSchema: GenMessage<UpdatePaymentRequest_Failure>;
|
|
478
483
|
/**
|
|
479
|
-
* @generated from enum
|
|
484
|
+
* @generated from enum tzero.v1.payment.UpdatePaymentRequest.Failure.Reason
|
|
480
485
|
*/
|
|
481
486
|
export declare enum UpdatePaymentRequest_Failure_Reason {
|
|
482
487
|
/**
|
|
@@ -485,41 +490,41 @@ export declare enum UpdatePaymentRequest_Failure_Reason {
|
|
|
485
490
|
UNSPECIFIED = 0
|
|
486
491
|
}
|
|
487
492
|
/**
|
|
488
|
-
* Describes the enum
|
|
493
|
+
* Describes the enum tzero.v1.payment.UpdatePaymentRequest.Failure.Reason.
|
|
489
494
|
*/
|
|
490
495
|
export declare const UpdatePaymentRequest_Failure_ReasonSchema: GenEnum<UpdatePaymentRequest_Failure_Reason>;
|
|
491
496
|
/**
|
|
492
|
-
* @generated from message
|
|
497
|
+
* @generated from message tzero.v1.payment.UpdatePaymentResponse
|
|
493
498
|
*/
|
|
494
|
-
export type UpdatePaymentResponse = Message<"
|
|
499
|
+
export type UpdatePaymentResponse = Message<"tzero.v1.payment.UpdatePaymentResponse"> & {};
|
|
495
500
|
/**
|
|
496
|
-
* Describes the message
|
|
501
|
+
* Describes the message tzero.v1.payment.UpdatePaymentResponse.
|
|
497
502
|
* Use `create(UpdatePaymentResponseSchema)` to create a new message.
|
|
498
503
|
*/
|
|
499
504
|
export declare const UpdatePaymentResponseSchema: GenMessage<UpdatePaymentResponse>;
|
|
500
505
|
/**
|
|
501
506
|
* All the amounts are in USD
|
|
502
507
|
*
|
|
503
|
-
* @generated from message
|
|
508
|
+
* @generated from message tzero.v1.payment.UpdateLimitRequest
|
|
504
509
|
*/
|
|
505
|
-
export type UpdateLimitRequest = Message<"
|
|
510
|
+
export type UpdateLimitRequest = Message<"tzero.v1.payment.UpdateLimitRequest"> & {
|
|
506
511
|
/**
|
|
507
512
|
* *
|
|
508
513
|
* can contain one or more Limit messages, each representing a credit limit for a specific counterparty provider.
|
|
509
514
|
*
|
|
510
|
-
* @generated from field: repeated
|
|
515
|
+
* @generated from field: repeated tzero.v1.payment.UpdateLimitRequest.Limit limits = 10;
|
|
511
516
|
*/
|
|
512
517
|
limits: UpdateLimitRequest_Limit[];
|
|
513
518
|
};
|
|
514
519
|
/**
|
|
515
|
-
* Describes the message
|
|
520
|
+
* Describes the message tzero.v1.payment.UpdateLimitRequest.
|
|
516
521
|
* Use `create(UpdateLimitRequestSchema)` to create a new message.
|
|
517
522
|
*/
|
|
518
523
|
export declare const UpdateLimitRequestSchema: GenMessage<UpdateLimitRequest>;
|
|
519
524
|
/**
|
|
520
|
-
* @generated from message
|
|
525
|
+
* @generated from message tzero.v1.payment.UpdateLimitRequest.Limit
|
|
521
526
|
*/
|
|
522
|
-
export type UpdateLimitRequest_Limit = Message<"
|
|
527
|
+
export type UpdateLimitRequest_Limit = Message<"tzero.v1.payment.UpdateLimitRequest.Limit"> & {
|
|
523
528
|
/**
|
|
524
529
|
* *
|
|
525
530
|
* Incrementally growing for the provider - same as in Ledger.
|
|
@@ -561,7 +566,7 @@ export type UpdateLimitRequest_Limit = Message<"network.v1.provider.UpdateLimitR
|
|
|
561
566
|
creditUsage?: Decimal;
|
|
562
567
|
};
|
|
563
568
|
/**
|
|
564
|
-
* Describes the message
|
|
569
|
+
* Describes the message tzero.v1.payment.UpdateLimitRequest.Limit.
|
|
565
570
|
* Use `create(UpdateLimitRequest_LimitSchema)` to create a new message.
|
|
566
571
|
*/
|
|
567
572
|
export declare const UpdateLimitRequest_LimitSchema: GenMessage<UpdateLimitRequest_Limit>;
|
|
@@ -569,108 +574,29 @@ export declare const UpdateLimitRequest_LimitSchema: GenMessage<UpdateLimitReque
|
|
|
569
574
|
* *
|
|
570
575
|
* Empty message - means no response is needed.
|
|
571
576
|
*
|
|
572
|
-
* @generated from message
|
|
577
|
+
* @generated from message tzero.v1.payment.UpdateLimitResponse
|
|
573
578
|
*/
|
|
574
|
-
export type UpdateLimitResponse = Message<"
|
|
579
|
+
export type UpdateLimitResponse = Message<"tzero.v1.payment.UpdateLimitResponse"> & {};
|
|
575
580
|
/**
|
|
576
|
-
* Describes the message
|
|
581
|
+
* Describes the message tzero.v1.payment.UpdateLimitResponse.
|
|
577
582
|
* Use `create(UpdateLimitResponseSchema)` to create a new message.
|
|
578
583
|
*/
|
|
579
584
|
export declare const UpdateLimitResponseSchema: GenMessage<UpdateLimitResponse>;
|
|
580
|
-
/**
|
|
581
|
-
* @generated from message network.v1.provider.CreatePayInDetailsRequest
|
|
582
|
-
*/
|
|
583
|
-
export type CreatePayInDetailsRequest = Message<"network.v1.provider.CreatePayInDetailsRequest"> & {
|
|
584
|
-
/**
|
|
585
|
-
* *
|
|
586
|
-
* payment_intent_id is a unique identifier for the payment intent, which is used to create a payment later.
|
|
587
|
-
*
|
|
588
|
-
* @generated from field: string payment_intent_id = 10;
|
|
589
|
-
*/
|
|
590
|
-
paymentIntentId: string;
|
|
591
|
-
/**
|
|
592
|
-
* *
|
|
593
|
-
* Sender details for the pay-in process.
|
|
594
|
-
*
|
|
595
|
-
* @generated from field: network.v1.provider.CreatePayInDetailsRequest.Sender sender = 40;
|
|
596
|
-
*/
|
|
597
|
-
sender?: CreatePayInDetailsRequest_Sender;
|
|
598
|
-
};
|
|
599
|
-
/**
|
|
600
|
-
* Describes the message network.v1.provider.CreatePayInDetailsRequest.
|
|
601
|
-
* Use `create(CreatePayInDetailsRequestSchema)` to create a new message.
|
|
602
|
-
*/
|
|
603
|
-
export declare const CreatePayInDetailsRequestSchema: GenMessage<CreatePayInDetailsRequest>;
|
|
604
|
-
/**
|
|
605
|
-
* @generated from message network.v1.provider.CreatePayInDetailsRequest.Sender
|
|
606
|
-
*/
|
|
607
|
-
export type CreatePayInDetailsRequest_Sender = Message<"network.v1.provider.CreatePayInDetailsRequest.Sender"> & {
|
|
608
|
-
/**
|
|
609
|
-
* @generated from oneof network.v1.provider.CreatePayInDetailsRequest.Sender.sender
|
|
610
|
-
*/
|
|
611
|
-
sender: {
|
|
612
|
-
/**
|
|
613
|
-
* @generated from field: network.v1.provider.CreatePayInDetailsRequest.Sender.PrivatePerson private_person = 10;
|
|
614
|
-
*/
|
|
615
|
-
value: CreatePayInDetailsRequest_Sender_PrivatePerson;
|
|
616
|
-
case: "privatePerson";
|
|
617
|
-
} | {
|
|
618
|
-
case: undefined;
|
|
619
|
-
value?: undefined;
|
|
620
|
-
};
|
|
621
|
-
};
|
|
622
|
-
/**
|
|
623
|
-
* Describes the message network.v1.provider.CreatePayInDetailsRequest.Sender.
|
|
624
|
-
* Use `create(CreatePayInDetailsRequest_SenderSchema)` to create a new message.
|
|
625
|
-
*/
|
|
626
|
-
export declare const CreatePayInDetailsRequest_SenderSchema: GenMessage<CreatePayInDetailsRequest_Sender>;
|
|
627
|
-
/**
|
|
628
|
-
* @generated from message network.v1.provider.CreatePayInDetailsRequest.Sender.PrivatePerson
|
|
629
|
-
*/
|
|
630
|
-
export type CreatePayInDetailsRequest_Sender_PrivatePerson = Message<"network.v1.provider.CreatePayInDetailsRequest.Sender.PrivatePerson"> & {
|
|
631
|
-
/**
|
|
632
|
-
* can be used to get KYC data
|
|
633
|
-
*
|
|
634
|
-
* @generated from field: string private_person_id = 10;
|
|
635
|
-
*/
|
|
636
|
-
privatePersonId: string;
|
|
637
|
-
};
|
|
638
|
-
/**
|
|
639
|
-
* Describes the message network.v1.provider.CreatePayInDetailsRequest.Sender.PrivatePerson.
|
|
640
|
-
* Use `create(CreatePayInDetailsRequest_Sender_PrivatePersonSchema)` to create a new message.
|
|
641
|
-
*/
|
|
642
|
-
export declare const CreatePayInDetailsRequest_Sender_PrivatePersonSchema: GenMessage<CreatePayInDetailsRequest_Sender_PrivatePerson>;
|
|
643
|
-
/**
|
|
644
|
-
* @generated from message network.v1.provider.CreatePayInDetailsResponse
|
|
645
|
-
*/
|
|
646
|
-
export type CreatePayInDetailsResponse = Message<"network.v1.provider.CreatePayInDetailsResponse"> & {
|
|
647
|
-
/**
|
|
648
|
-
* *
|
|
649
|
-
* List of available pay-in methods for the sender. This is used to present the user with options for how they can pay in.
|
|
650
|
-
*
|
|
651
|
-
* @generated from field: repeated tzero.v1.common.PaymentMethod pay_in_method = 10;
|
|
652
|
-
*/
|
|
653
|
-
payInMethod: PaymentMethod[];
|
|
654
|
-
};
|
|
655
|
-
/**
|
|
656
|
-
* Describes the message network.v1.provider.CreatePayInDetailsResponse.
|
|
657
|
-
* Use `create(CreatePayInDetailsResponseSchema)` to create a new message.
|
|
658
|
-
*/
|
|
659
|
-
export declare const CreatePayInDetailsResponseSchema: GenMessage<CreatePayInDetailsResponse>;
|
|
660
585
|
/**
|
|
661
586
|
* *
|
|
662
587
|
* This service must be implemented by the provider.
|
|
663
588
|
*
|
|
664
589
|
* 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.
|
|
665
590
|
*
|
|
666
|
-
* @generated from service
|
|
591
|
+
* @generated from service tzero.v1.payment.ProviderService
|
|
667
592
|
*/
|
|
668
593
|
export declare const ProviderService: GenService<{
|
|
669
594
|
/**
|
|
670
595
|
* *
|
|
671
596
|
* Network instructs the provider to execute a payout to the recipient.
|
|
597
|
+
* This method should be idempotent, meaning that multiple calls with the same parameters will have no additional effect.
|
|
672
598
|
*
|
|
673
|
-
* @generated from rpc
|
|
599
|
+
* @generated from rpc tzero.v1.payment.ProviderService.PayOut
|
|
674
600
|
*/
|
|
675
601
|
payOut: {
|
|
676
602
|
methodKind: "unary";
|
|
@@ -680,31 +606,20 @@ export declare const ProviderService: GenService<{
|
|
|
680
606
|
/**
|
|
681
607
|
* *
|
|
682
608
|
* Network provides an update on the status of a payment. This can be either a success or a failure.
|
|
609
|
+
* This method should be idempotent, meaning that multiple calls with the same parameters will have no additional effect.
|
|
683
610
|
*
|
|
684
|
-
* @generated from rpc
|
|
611
|
+
* @generated from rpc tzero.v1.payment.ProviderService.UpdatePayment
|
|
685
612
|
*/
|
|
686
613
|
updatePayment: {
|
|
687
614
|
methodKind: "unary";
|
|
688
615
|
input: typeof UpdatePaymentRequestSchema;
|
|
689
616
|
output: typeof UpdatePaymentResponseSchema;
|
|
690
617
|
};
|
|
691
|
-
/**
|
|
692
|
-
* *
|
|
693
|
-
* Network asks the provider for possible pay-in options for a sender, in preparation for a pay-in process.
|
|
694
|
-
* This is optional, but if implemented, it should return a list of available pay-in methods.
|
|
695
|
-
*
|
|
696
|
-
* @generated from rpc network.v1.provider.ProviderService.CreatePayInDetails
|
|
697
|
-
*/
|
|
698
|
-
createPayInDetails: {
|
|
699
|
-
methodKind: "unary";
|
|
700
|
-
input: typeof CreatePayInDetailsRequestSchema;
|
|
701
|
-
output: typeof CreatePayInDetailsResponseSchema;
|
|
702
|
-
};
|
|
703
618
|
/**
|
|
704
619
|
* *
|
|
705
620
|
* This rpc is used to notify the provider about the changes in credit limit and/or credit usage.
|
|
706
621
|
*
|
|
707
|
-
* @generated from rpc
|
|
622
|
+
* @generated from rpc tzero.v1.payment.ProviderService.UpdateLimit
|
|
708
623
|
*/
|
|
709
624
|
updateLimit: {
|
|
710
625
|
methodKind: "unary";
|
|
@@ -716,7 +631,7 @@ export declare const ProviderService: GenService<{
|
|
|
716
631
|
* Network can send all the updates about ledger entries of the provider's accounts. It can be used to
|
|
717
632
|
* keep track of the provider's exposure to other participants and other important financial events. (see the list in the message below)
|
|
718
633
|
*
|
|
719
|
-
* @generated from rpc
|
|
634
|
+
* @generated from rpc tzero.v1.payment.ProviderService.AppendLedgerEntries
|
|
720
635
|
*/
|
|
721
636
|
appendLedgerEntries: {
|
|
722
637
|
methodKind: "unary";
|