@t-0/provider-sdk 1.0.24 → 1.0.26
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/{client → cjs/client}/signer.d.ts +1 -1
- package/lib/cjs/client/signer.js +69 -0
- package/lib/cjs/common/gen/tzero/v1/common/common_pb.js +56 -0
- package/lib/{common → cjs/common}/gen/tzero/v1/common/payment_method_pb.d.ts +1 -1
- package/lib/cjs/common/gen/tzero/v1/common/payment_method_pb.js +60 -0
- package/lib/{common → cjs/common}/gen/tzero/v1/payment/network_pb.d.ts +2 -2
- package/lib/cjs/common/gen/tzero/v1/payment/network_pb.js +147 -0
- package/lib/{common → cjs/common}/gen/tzero/v1/payment/provider_pb.d.ts +2 -2
- package/lib/cjs/common/gen/tzero/v1/payment/provider_pb.js +206 -0
- package/lib/{common → cjs/common}/gen/tzero/v1/payment_intent/provider/provider_pb.d.ts +2 -2
- package/lib/cjs/common/gen/tzero/v1/payment_intent/provider/provider_pb.js +87 -0
- package/lib/{common → cjs/common}/gen/tzero/v1/payment_intent/recipient/recipient_pb.d.ts +2 -2
- package/lib/cjs/common/gen/tzero/v1/payment_intent/recipient/recipient_pb.js +62 -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.d.ts +11 -0
- package/lib/cjs/index.js +50 -0
- package/lib/cjs/package.json +1 -0
- package/lib/{payment_intent → cjs/payment_intent}/provider/index.d.ts +1 -1
- package/lib/cjs/payment_intent/provider/index.js +17 -0
- package/lib/{payment_intent → cjs/payment_intent}/recipient/index.d.ts +1 -1
- package/lib/cjs/payment_intent/recipient/index.js +17 -0
- package/lib/cjs/service/node.d.ts +3 -0
- package/lib/cjs/service/node.js +15 -0
- package/lib/{service → cjs/service}/service.d.ts +2 -3
- package/lib/cjs/service/service.js +112 -0
- package/lib/esm/client/client.d.ts +16 -0
- package/lib/{client → esm/client}/client.js +2 -2
- package/lib/esm/client/signer.d.ts +3 -0
- package/lib/{gen → esm/common/gen/tzero/v1}/common/common_pb.d.ts +2 -2
- package/lib/{common → esm/common}/gen/tzero/v1/common/common_pb.js +1 -1
- package/lib/{gen → esm/common/gen/tzero/v1}/common/payment_method_pb.d.ts +3 -3
- package/lib/{common → esm/common}/gen/tzero/v1/common/payment_method_pb.js +2 -2
- package/lib/{gen/network → esm/common/gen/tzero/v1/payment}/network_pb.d.ts +86 -86
- package/lib/{common → esm/common}/gen/tzero/v1/payment/network_pb.js +3 -3
- package/lib/{gen/network → esm/common/gen/tzero/v1/payment}/provider_pb.d.ts +84 -84
- package/lib/{common → esm/common}/gen/tzero/v1/payment/provider_pb.js +3 -3
- package/lib/{gen → esm/common/gen/tzero/v1}/payment_intent/provider/provider_pb.d.ts +4 -4
- package/lib/{common → esm/common}/gen/tzero/v1/payment_intent/provider/provider_pb.js +3 -3
- package/lib/{gen → esm/common/gen/tzero/v1}/payment_intent/recipient/recipient_pb.d.ts +4 -4
- package/lib/{common → esm/common}/gen/tzero/v1/payment_intent/recipient/recipient_pb.js +3 -3
- package/lib/esm/common/gen/tzero/v1/public/public_pb.d.ts +234 -0
- package/lib/{common → esm/common}/gen/tzero/v1/public/public_pb.js +1 -1
- 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/index.js +10 -0
- package/lib/esm/payment_intent/provider/index.d.ts +1 -0
- package/lib/{payment_intent → esm/payment_intent}/provider/index.js +1 -1
- package/lib/esm/payment_intent/recipient/index.d.ts +1 -0
- package/lib/{payment_intent → esm/payment_intent}/recipient/index.js +1 -1
- 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 +3 -3
- package/lib/tsconfig.cjs.tsbuildinfo +1 -0
- package/lib/tsconfig.esm.tsbuildinfo +1 -0
- package/package.json +19 -10
- 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.js +0 -53
- package/lib/gen/common/payment_method_pb.js +0 -57
- package/lib/gen/network/network_pb.js +0 -144
- package/lib/gen/network/provider_pb.js +0 -203
- package/lib/gen/payment_intent/provider/provider_pb.js +0 -84
- package/lib/gen/payment_intent/recipient/recipient_pb.js +0 -59
- package/lib/index.d.ts +0 -11
- package/lib/index.js +0 -10
- package/lib/service/node.d.ts +0 -2
- /package/lib/{client → cjs/client}/client.d.ts +0 -0
- /package/lib/{common → cjs/common}/gen/tzero/v1/common/common_pb.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/{client → esm/client}/signer.js +0 -0
- /package/lib/{common → esm/common}/headers.js +0 -0
- /package/lib/{service → esm/service}/node.js +0 -0
|
@@ -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,98 +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
106
|
* @generated from field: uint64 payment_id = 10;
|
|
107
107
|
*/
|
|
108
108
|
paymentId: bigint;
|
|
109
109
|
};
|
|
110
110
|
/**
|
|
111
|
-
* Describes the message
|
|
111
|
+
* Describes the message tzero.v1.payment.AppendLedgerEntriesRequest.Transaction.PayIn.
|
|
112
112
|
* Use `create(AppendLedgerEntriesRequest_Transaction_PayInSchema)` to create a new message.
|
|
113
113
|
*/
|
|
114
114
|
export declare const AppendLedgerEntriesRequest_Transaction_PayInSchema: GenMessage<AppendLedgerEntriesRequest_Transaction_PayIn>;
|
|
115
115
|
/**
|
|
116
|
-
* @generated from message
|
|
116
|
+
* @generated from message tzero.v1.payment.AppendLedgerEntriesRequest.Transaction.PayoutReservation
|
|
117
117
|
*/
|
|
118
|
-
export type AppendLedgerEntriesRequest_Transaction_PayoutReservation = Message<"
|
|
118
|
+
export type AppendLedgerEntriesRequest_Transaction_PayoutReservation = Message<"tzero.v1.payment.AppendLedgerEntriesRequest.Transaction.PayoutReservation"> & {
|
|
119
119
|
/**
|
|
120
120
|
* @generated from field: uint64 payment_id = 10;
|
|
121
121
|
*/
|
|
122
122
|
paymentId: bigint;
|
|
123
123
|
};
|
|
124
124
|
/**
|
|
125
|
-
* Describes the message
|
|
125
|
+
* Describes the message tzero.v1.payment.AppendLedgerEntriesRequest.Transaction.PayoutReservation.
|
|
126
126
|
* Use `create(AppendLedgerEntriesRequest_Transaction_PayoutReservationSchema)` to create a new message.
|
|
127
127
|
*/
|
|
128
128
|
export declare const AppendLedgerEntriesRequest_Transaction_PayoutReservationSchema: GenMessage<AppendLedgerEntriesRequest_Transaction_PayoutReservation>;
|
|
129
129
|
/**
|
|
130
|
-
* @generated from message
|
|
130
|
+
* @generated from message tzero.v1.payment.AppendLedgerEntriesRequest.Transaction.Payout
|
|
131
131
|
*/
|
|
132
|
-
export type AppendLedgerEntriesRequest_Transaction_Payout = Message<"
|
|
132
|
+
export type AppendLedgerEntriesRequest_Transaction_Payout = Message<"tzero.v1.payment.AppendLedgerEntriesRequest.Transaction.Payout"> & {
|
|
133
133
|
/**
|
|
134
134
|
* @generated from field: uint64 payment_id = 10;
|
|
135
135
|
*/
|
|
136
136
|
paymentId: bigint;
|
|
137
137
|
};
|
|
138
138
|
/**
|
|
139
|
-
* Describes the message
|
|
139
|
+
* Describes the message tzero.v1.payment.AppendLedgerEntriesRequest.Transaction.Payout.
|
|
140
140
|
* Use `create(AppendLedgerEntriesRequest_Transaction_PayoutSchema)` to create a new message.
|
|
141
141
|
*/
|
|
142
142
|
export declare const AppendLedgerEntriesRequest_Transaction_PayoutSchema: GenMessage<AppendLedgerEntriesRequest_Transaction_Payout>;
|
|
143
143
|
/**
|
|
144
|
-
* @generated from message
|
|
144
|
+
* @generated from message tzero.v1.payment.AppendLedgerEntriesRequest.Transaction.ProviderSettlement
|
|
145
145
|
*/
|
|
146
|
-
export type AppendLedgerEntriesRequest_Transaction_ProviderSettlement = Message<"
|
|
146
|
+
export type AppendLedgerEntriesRequest_Transaction_ProviderSettlement = Message<"tzero.v1.payment.AppendLedgerEntriesRequest.Transaction.ProviderSettlement"> & {
|
|
147
147
|
/**
|
|
148
148
|
* @generated from field: uint64 settlement_id = 10;
|
|
149
149
|
*/
|
|
150
150
|
settlementId: bigint;
|
|
151
151
|
};
|
|
152
152
|
/**
|
|
153
|
-
* Describes the message
|
|
153
|
+
* Describes the message tzero.v1.payment.AppendLedgerEntriesRequest.Transaction.ProviderSettlement.
|
|
154
154
|
* Use `create(AppendLedgerEntriesRequest_Transaction_ProviderSettlementSchema)` to create a new message.
|
|
155
155
|
*/
|
|
156
156
|
export declare const AppendLedgerEntriesRequest_Transaction_ProviderSettlementSchema: GenMessage<AppendLedgerEntriesRequest_Transaction_ProviderSettlement>;
|
|
157
157
|
/**
|
|
158
|
-
* @generated from message
|
|
158
|
+
* @generated from message tzero.v1.payment.AppendLedgerEntriesRequest.Transaction.FeeSettlement
|
|
159
159
|
*/
|
|
160
|
-
export type AppendLedgerEntriesRequest_Transaction_FeeSettlement = Message<"
|
|
160
|
+
export type AppendLedgerEntriesRequest_Transaction_FeeSettlement = Message<"tzero.v1.payment.AppendLedgerEntriesRequest.Transaction.FeeSettlement"> & {
|
|
161
161
|
/**
|
|
162
162
|
* @generated from field: uint64 fee_settlement_id = 10;
|
|
163
163
|
*/
|
|
164
164
|
feeSettlementId: bigint;
|
|
165
165
|
};
|
|
166
166
|
/**
|
|
167
|
-
* Describes the message
|
|
167
|
+
* Describes the message tzero.v1.payment.AppendLedgerEntriesRequest.Transaction.FeeSettlement.
|
|
168
168
|
* Use `create(AppendLedgerEntriesRequest_Transaction_FeeSettlementSchema)` to create a new message.
|
|
169
169
|
*/
|
|
170
170
|
export declare const AppendLedgerEntriesRequest_Transaction_FeeSettlementSchema: GenMessage<AppendLedgerEntriesRequest_Transaction_FeeSettlement>;
|
|
171
171
|
/**
|
|
172
|
-
* @generated from message
|
|
172
|
+
* @generated from message tzero.v1.payment.AppendLedgerEntriesRequest.Transaction.PayoutReservationRelease
|
|
173
173
|
*/
|
|
174
|
-
export type AppendLedgerEntriesRequest_Transaction_PayoutReservationRelease = Message<"
|
|
174
|
+
export type AppendLedgerEntriesRequest_Transaction_PayoutReservationRelease = Message<"tzero.v1.payment.AppendLedgerEntriesRequest.Transaction.PayoutReservationRelease"> & {
|
|
175
175
|
/**
|
|
176
176
|
* @generated from field: uint64 payment_id = 10;
|
|
177
177
|
*/
|
|
178
178
|
paymentId: bigint;
|
|
179
179
|
};
|
|
180
180
|
/**
|
|
181
|
-
* Describes the message
|
|
181
|
+
* Describes the message tzero.v1.payment.AppendLedgerEntriesRequest.Transaction.PayoutReservationRelease.
|
|
182
182
|
* Use `create(AppendLedgerEntriesRequest_Transaction_PayoutReservationReleaseSchema)` to create a new message.
|
|
183
183
|
*/
|
|
184
184
|
export declare const AppendLedgerEntriesRequest_Transaction_PayoutReservationReleaseSchema: GenMessage<AppendLedgerEntriesRequest_Transaction_PayoutReservationRelease>;
|
|
185
185
|
/**
|
|
186
|
-
* @generated from message
|
|
186
|
+
* @generated from message tzero.v1.payment.AppendLedgerEntriesRequest.LedgerEntry
|
|
187
187
|
*/
|
|
188
|
-
export type AppendLedgerEntriesRequest_LedgerEntry = Message<"
|
|
188
|
+
export type AppendLedgerEntriesRequest_LedgerEntry = Message<"tzero.v1.payment.AppendLedgerEntriesRequest.LedgerEntry"> & {
|
|
189
189
|
/**
|
|
190
190
|
* 1 is network account, others are ids of participants
|
|
191
191
|
*
|
|
@@ -197,7 +197,7 @@ export type AppendLedgerEntriesRequest_LedgerEntry = Message<"network.v1.provide
|
|
|
197
197
|
* account_type is the type of the account that the entry belongs to.
|
|
198
198
|
* It is used to categorize the entries and understand the nature of the financial event.
|
|
199
199
|
*
|
|
200
|
-
* @generated from field:
|
|
200
|
+
* @generated from field: tzero.v1.payment.AppendLedgerEntriesRequest.AccountType account_type = 20;
|
|
201
201
|
*/
|
|
202
202
|
accountType: AppendLedgerEntriesRequest_AccountType;
|
|
203
203
|
/**
|
|
@@ -234,12 +234,12 @@ export type AppendLedgerEntriesRequest_LedgerEntry = Message<"network.v1.provide
|
|
|
234
234
|
exchangeRate?: Decimal;
|
|
235
235
|
};
|
|
236
236
|
/**
|
|
237
|
-
* Describes the message
|
|
237
|
+
* Describes the message tzero.v1.payment.AppendLedgerEntriesRequest.LedgerEntry.
|
|
238
238
|
* Use `create(AppendLedgerEntriesRequest_LedgerEntrySchema)` to create a new message.
|
|
239
239
|
*/
|
|
240
240
|
export declare const AppendLedgerEntriesRequest_LedgerEntrySchema: GenMessage<AppendLedgerEntriesRequest_LedgerEntry>;
|
|
241
241
|
/**
|
|
242
|
-
* @generated from enum
|
|
242
|
+
* @generated from enum tzero.v1.payment.AppendLedgerEntriesRequest.AccountType
|
|
243
243
|
*/
|
|
244
244
|
export declare enum AppendLedgerEntriesRequest_AccountType {
|
|
245
245
|
/**
|
|
@@ -308,22 +308,22 @@ export declare enum AppendLedgerEntriesRequest_AccountType {
|
|
|
308
308
|
PROVIDER_SETTLEMENT = 10
|
|
309
309
|
}
|
|
310
310
|
/**
|
|
311
|
-
* Describes the enum
|
|
311
|
+
* Describes the enum tzero.v1.payment.AppendLedgerEntriesRequest.AccountType.
|
|
312
312
|
*/
|
|
313
313
|
export declare const AppendLedgerEntriesRequest_AccountTypeSchema: GenEnum<AppendLedgerEntriesRequest_AccountType>;
|
|
314
314
|
/**
|
|
315
|
-
* @generated from message
|
|
315
|
+
* @generated from message tzero.v1.payment.AppendLedgerEntriesResponse
|
|
316
316
|
*/
|
|
317
|
-
export type AppendLedgerEntriesResponse = Message<"
|
|
317
|
+
export type AppendLedgerEntriesResponse = Message<"tzero.v1.payment.AppendLedgerEntriesResponse"> & {};
|
|
318
318
|
/**
|
|
319
|
-
* Describes the message
|
|
319
|
+
* Describes the message tzero.v1.payment.AppendLedgerEntriesResponse.
|
|
320
320
|
* Use `create(AppendLedgerEntriesResponseSchema)` to create a new message.
|
|
321
321
|
*/
|
|
322
322
|
export declare const AppendLedgerEntriesResponseSchema: GenMessage<AppendLedgerEntriesResponse>;
|
|
323
323
|
/**
|
|
324
|
-
* @generated from message
|
|
324
|
+
* @generated from message tzero.v1.payment.PayoutRequest
|
|
325
325
|
*/
|
|
326
|
-
export type PayoutRequest = Message<"
|
|
326
|
+
export type PayoutRequest = Message<"tzero.v1.payment.PayoutRequest"> & {
|
|
327
327
|
/**
|
|
328
328
|
* *
|
|
329
329
|
* payment id assigned by the network (provider should store this id to provide details in UpdatePayout later)
|
|
@@ -386,23 +386,23 @@ export type PayoutRequest = Message<"network.v1.provider.PayoutRequest"> & {
|
|
|
386
386
|
payInProviderId: number;
|
|
387
387
|
};
|
|
388
388
|
/**
|
|
389
|
-
* Describes the message
|
|
389
|
+
* Describes the message tzero.v1.payment.PayoutRequest.
|
|
390
390
|
* Use `create(PayoutRequestSchema)` to create a new message.
|
|
391
391
|
*/
|
|
392
392
|
export declare const PayoutRequestSchema: GenMessage<PayoutRequest>;
|
|
393
393
|
/**
|
|
394
|
-
* @generated from message
|
|
394
|
+
* @generated from message tzero.v1.payment.PayoutResponse
|
|
395
395
|
*/
|
|
396
|
-
export type PayoutResponse = Message<"
|
|
396
|
+
export type PayoutResponse = Message<"tzero.v1.payment.PayoutResponse"> & {};
|
|
397
397
|
/**
|
|
398
|
-
* Describes the message
|
|
398
|
+
* Describes the message tzero.v1.payment.PayoutResponse.
|
|
399
399
|
* Use `create(PayoutResponseSchema)` to create a new message.
|
|
400
400
|
*/
|
|
401
401
|
export declare const PayoutResponseSchema: GenMessage<PayoutResponse>;
|
|
402
402
|
/**
|
|
403
|
-
* @generated from message
|
|
403
|
+
* @generated from message tzero.v1.payment.UpdatePaymentRequest
|
|
404
404
|
*/
|
|
405
|
-
export type UpdatePaymentRequest = Message<"
|
|
405
|
+
export type UpdatePaymentRequest = Message<"tzero.v1.payment.UpdatePaymentRequest"> & {
|
|
406
406
|
/**
|
|
407
407
|
* *
|
|
408
408
|
* payment_id is a payment id in the T-0 network.
|
|
@@ -418,7 +418,7 @@ export type UpdatePaymentRequest = Message<"network.v1.provider.UpdatePaymentReq
|
|
|
418
418
|
*/
|
|
419
419
|
paymentClientId: string;
|
|
420
420
|
/**
|
|
421
|
-
* @generated from oneof
|
|
421
|
+
* @generated from oneof tzero.v1.payment.UpdatePaymentRequest.result
|
|
422
422
|
*/
|
|
423
423
|
result: {
|
|
424
424
|
/**
|
|
@@ -426,7 +426,7 @@ export type UpdatePaymentRequest = Message<"network.v1.provider.UpdatePaymentReq
|
|
|
426
426
|
* Success response - means the payout was executed successfully and the payment is now complete. This happens when
|
|
427
427
|
* the payout is successfully processed by the payout provider, and the payment was made to the recipient.
|
|
428
428
|
*
|
|
429
|
-
* @generated from field:
|
|
429
|
+
* @generated from field: tzero.v1.payment.UpdatePaymentRequest.Success success = 20;
|
|
430
430
|
*/
|
|
431
431
|
value: UpdatePaymentRequest_Success;
|
|
432
432
|
case: "success";
|
|
@@ -435,7 +435,7 @@ export type UpdatePaymentRequest = Message<"network.v1.provider.UpdatePaymentReq
|
|
|
435
435
|
* *
|
|
436
436
|
* Failure response - means the payout was not executed successfully, e.g. the payout provider could not process the payout.
|
|
437
437
|
*
|
|
438
|
-
* @generated from field:
|
|
438
|
+
* @generated from field: tzero.v1.payment.UpdatePaymentRequest.Failure failure = 30;
|
|
439
439
|
*/
|
|
440
440
|
value: UpdatePaymentRequest_Failure;
|
|
441
441
|
case: "failure";
|
|
@@ -445,14 +445,14 @@ export type UpdatePaymentRequest = Message<"network.v1.provider.UpdatePaymentReq
|
|
|
445
445
|
};
|
|
446
446
|
};
|
|
447
447
|
/**
|
|
448
|
-
* Describes the message
|
|
448
|
+
* Describes the message tzero.v1.payment.UpdatePaymentRequest.
|
|
449
449
|
* Use `create(UpdatePaymentRequestSchema)` to create a new message.
|
|
450
450
|
*/
|
|
451
451
|
export declare const UpdatePaymentRequestSchema: GenMessage<UpdatePaymentRequest>;
|
|
452
452
|
/**
|
|
453
|
-
* @generated from message
|
|
453
|
+
* @generated from message tzero.v1.payment.UpdatePaymentRequest.Success
|
|
454
454
|
*/
|
|
455
|
-
export type UpdatePaymentRequest_Success = Message<"
|
|
455
|
+
export type UpdatePaymentRequest_Success = Message<"tzero.v1.payment.UpdatePaymentRequest.Success"> & {
|
|
456
456
|
/**
|
|
457
457
|
* amount in currency of the payout
|
|
458
458
|
*
|
|
@@ -467,21 +467,21 @@ export type UpdatePaymentRequest_Success = Message<"network.v1.provider.UpdatePa
|
|
|
467
467
|
paidOutAt?: Timestamp;
|
|
468
468
|
};
|
|
469
469
|
/**
|
|
470
|
-
* Describes the message
|
|
470
|
+
* Describes the message tzero.v1.payment.UpdatePaymentRequest.Success.
|
|
471
471
|
* Use `create(UpdatePaymentRequest_SuccessSchema)` to create a new message.
|
|
472
472
|
*/
|
|
473
473
|
export declare const UpdatePaymentRequest_SuccessSchema: GenMessage<UpdatePaymentRequest_Success>;
|
|
474
474
|
/**
|
|
475
|
-
* @generated from message
|
|
475
|
+
* @generated from message tzero.v1.payment.UpdatePaymentRequest.Failure
|
|
476
476
|
*/
|
|
477
|
-
export type UpdatePaymentRequest_Failure = Message<"
|
|
477
|
+
export type UpdatePaymentRequest_Failure = Message<"tzero.v1.payment.UpdatePaymentRequest.Failure"> & {};
|
|
478
478
|
/**
|
|
479
|
-
* Describes the message
|
|
479
|
+
* Describes the message tzero.v1.payment.UpdatePaymentRequest.Failure.
|
|
480
480
|
* Use `create(UpdatePaymentRequest_FailureSchema)` to create a new message.
|
|
481
481
|
*/
|
|
482
482
|
export declare const UpdatePaymentRequest_FailureSchema: GenMessage<UpdatePaymentRequest_Failure>;
|
|
483
483
|
/**
|
|
484
|
-
* @generated from enum
|
|
484
|
+
* @generated from enum tzero.v1.payment.UpdatePaymentRequest.Failure.Reason
|
|
485
485
|
*/
|
|
486
486
|
export declare enum UpdatePaymentRequest_Failure_Reason {
|
|
487
487
|
/**
|
|
@@ -490,41 +490,41 @@ export declare enum UpdatePaymentRequest_Failure_Reason {
|
|
|
490
490
|
UNSPECIFIED = 0
|
|
491
491
|
}
|
|
492
492
|
/**
|
|
493
|
-
* Describes the enum
|
|
493
|
+
* Describes the enum tzero.v1.payment.UpdatePaymentRequest.Failure.Reason.
|
|
494
494
|
*/
|
|
495
495
|
export declare const UpdatePaymentRequest_Failure_ReasonSchema: GenEnum<UpdatePaymentRequest_Failure_Reason>;
|
|
496
496
|
/**
|
|
497
|
-
* @generated from message
|
|
497
|
+
* @generated from message tzero.v1.payment.UpdatePaymentResponse
|
|
498
498
|
*/
|
|
499
|
-
export type UpdatePaymentResponse = Message<"
|
|
499
|
+
export type UpdatePaymentResponse = Message<"tzero.v1.payment.UpdatePaymentResponse"> & {};
|
|
500
500
|
/**
|
|
501
|
-
* Describes the message
|
|
501
|
+
* Describes the message tzero.v1.payment.UpdatePaymentResponse.
|
|
502
502
|
* Use `create(UpdatePaymentResponseSchema)` to create a new message.
|
|
503
503
|
*/
|
|
504
504
|
export declare const UpdatePaymentResponseSchema: GenMessage<UpdatePaymentResponse>;
|
|
505
505
|
/**
|
|
506
506
|
* All the amounts are in USD
|
|
507
507
|
*
|
|
508
|
-
* @generated from message
|
|
508
|
+
* @generated from message tzero.v1.payment.UpdateLimitRequest
|
|
509
509
|
*/
|
|
510
|
-
export type UpdateLimitRequest = Message<"
|
|
510
|
+
export type UpdateLimitRequest = Message<"tzero.v1.payment.UpdateLimitRequest"> & {
|
|
511
511
|
/**
|
|
512
512
|
* *
|
|
513
513
|
* can contain one or more Limit messages, each representing a credit limit for a specific counterparty provider.
|
|
514
514
|
*
|
|
515
|
-
* @generated from field: repeated
|
|
515
|
+
* @generated from field: repeated tzero.v1.payment.UpdateLimitRequest.Limit limits = 10;
|
|
516
516
|
*/
|
|
517
517
|
limits: UpdateLimitRequest_Limit[];
|
|
518
518
|
};
|
|
519
519
|
/**
|
|
520
|
-
* Describes the message
|
|
520
|
+
* Describes the message tzero.v1.payment.UpdateLimitRequest.
|
|
521
521
|
* Use `create(UpdateLimitRequestSchema)` to create a new message.
|
|
522
522
|
*/
|
|
523
523
|
export declare const UpdateLimitRequestSchema: GenMessage<UpdateLimitRequest>;
|
|
524
524
|
/**
|
|
525
|
-
* @generated from message
|
|
525
|
+
* @generated from message tzero.v1.payment.UpdateLimitRequest.Limit
|
|
526
526
|
*/
|
|
527
|
-
export type UpdateLimitRequest_Limit = Message<"
|
|
527
|
+
export type UpdateLimitRequest_Limit = Message<"tzero.v1.payment.UpdateLimitRequest.Limit"> & {
|
|
528
528
|
/**
|
|
529
529
|
* *
|
|
530
530
|
* Incrementally growing for the provider - same as in Ledger.
|
|
@@ -566,7 +566,7 @@ export type UpdateLimitRequest_Limit = Message<"network.v1.provider.UpdateLimitR
|
|
|
566
566
|
creditUsage?: Decimal;
|
|
567
567
|
};
|
|
568
568
|
/**
|
|
569
|
-
* Describes the message
|
|
569
|
+
* Describes the message tzero.v1.payment.UpdateLimitRequest.Limit.
|
|
570
570
|
* Use `create(UpdateLimitRequest_LimitSchema)` to create a new message.
|
|
571
571
|
*/
|
|
572
572
|
export declare const UpdateLimitRequest_LimitSchema: GenMessage<UpdateLimitRequest_Limit>;
|
|
@@ -574,11 +574,11 @@ export declare const UpdateLimitRequest_LimitSchema: GenMessage<UpdateLimitReque
|
|
|
574
574
|
* *
|
|
575
575
|
* Empty message - means no response is needed.
|
|
576
576
|
*
|
|
577
|
-
* @generated from message
|
|
577
|
+
* @generated from message tzero.v1.payment.UpdateLimitResponse
|
|
578
578
|
*/
|
|
579
|
-
export type UpdateLimitResponse = Message<"
|
|
579
|
+
export type UpdateLimitResponse = Message<"tzero.v1.payment.UpdateLimitResponse"> & {};
|
|
580
580
|
/**
|
|
581
|
-
* Describes the message
|
|
581
|
+
* Describes the message tzero.v1.payment.UpdateLimitResponse.
|
|
582
582
|
* Use `create(UpdateLimitResponseSchema)` to create a new message.
|
|
583
583
|
*/
|
|
584
584
|
export declare const UpdateLimitResponseSchema: GenMessage<UpdateLimitResponse>;
|
|
@@ -588,7 +588,7 @@ export declare const UpdateLimitResponseSchema: GenMessage<UpdateLimitResponse>;
|
|
|
588
588
|
*
|
|
589
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.
|
|
590
590
|
*
|
|
591
|
-
* @generated from service
|
|
591
|
+
* @generated from service tzero.v1.payment.ProviderService
|
|
592
592
|
*/
|
|
593
593
|
export declare const ProviderService: GenService<{
|
|
594
594
|
/**
|
|
@@ -596,7 +596,7 @@ export declare const ProviderService: GenService<{
|
|
|
596
596
|
* Network instructs the provider to execute a payout to the recipient.
|
|
597
597
|
* This method should be idempotent, meaning that multiple calls with the same parameters will have no additional effect.
|
|
598
598
|
*
|
|
599
|
-
* @generated from rpc
|
|
599
|
+
* @generated from rpc tzero.v1.payment.ProviderService.PayOut
|
|
600
600
|
*/
|
|
601
601
|
payOut: {
|
|
602
602
|
methodKind: "unary";
|
|
@@ -608,7 +608,7 @@ export declare const ProviderService: GenService<{
|
|
|
608
608
|
* Network provides an update on the status of a payment. This can be either a success or a failure.
|
|
609
609
|
* This method should be idempotent, meaning that multiple calls with the same parameters will have no additional effect.
|
|
610
610
|
*
|
|
611
|
-
* @generated from rpc
|
|
611
|
+
* @generated from rpc tzero.v1.payment.ProviderService.UpdatePayment
|
|
612
612
|
*/
|
|
613
613
|
updatePayment: {
|
|
614
614
|
methodKind: "unary";
|
|
@@ -619,7 +619,7 @@ export declare const ProviderService: GenService<{
|
|
|
619
619
|
* *
|
|
620
620
|
* This rpc is used to notify the provider about the changes in credit limit and/or credit usage.
|
|
621
621
|
*
|
|
622
|
-
* @generated from rpc
|
|
622
|
+
* @generated from rpc tzero.v1.payment.ProviderService.UpdateLimit
|
|
623
623
|
*/
|
|
624
624
|
updateLimit: {
|
|
625
625
|
methodKind: "unary";
|
|
@@ -631,7 +631,7 @@ export declare const ProviderService: GenService<{
|
|
|
631
631
|
* Network can send all the updates about ledger entries of the provider's accounts. It can be used to
|
|
632
632
|
* keep track of the provider's exposure to other participants and other important financial events. (see the list in the message below)
|
|
633
633
|
*
|
|
634
|
-
* @generated from rpc
|
|
634
|
+
* @generated from rpc tzero.v1.payment.ProviderService.AppendLedgerEntries
|
|
635
635
|
*/
|
|
636
636
|
appendLedgerEntries: {
|
|
637
637
|
methodKind: "unary";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
// @generated by protoc-gen-es v2.6.2 with parameter "target=ts"
|
|
1
|
+
// @generated by protoc-gen-es v2.6.2 with parameter "target=ts,import_extension=js"
|
|
2
2
|
// @generated from file tzero/v1/payment/provider.proto (package tzero.v1.payment, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
5
|
-
import { file_tzero_v1_common_payment_method } from "../common/payment_method_pb";
|
|
6
|
-
import { file_tzero_v1_common_common } from "../common/common_pb";
|
|
5
|
+
import { file_tzero_v1_common_payment_method } from "../common/payment_method_pb.js";
|
|
6
|
+
import { file_tzero_v1_common_common } from "../common/common_pb.js";
|
|
7
7
|
import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
8
8
|
/**
|
|
9
9
|
* Describes the file tzero/v1/payment/provider.proto.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
-
import type { Blockchain, Decimal, Stablecoin } from "../../common/common_pb";
|
|
3
|
-
import type { PaymentMethodType } from "../../common/payment_method_pb";
|
|
2
|
+
import type { Blockchain, Decimal, Stablecoin } from "../../common/common_pb.js";
|
|
3
|
+
import type { PaymentMethodType } from "../../common/payment_method_pb.js";
|
|
4
4
|
import type { Message } from "@bufbuild/protobuf";
|
|
5
5
|
/**
|
|
6
|
-
* Describes the file payment_intent/provider/provider.proto.
|
|
6
|
+
* Describes the file tzero/v1/payment_intent/provider/provider.proto.
|
|
7
7
|
*/
|
|
8
|
-
export declare const
|
|
8
|
+
export declare const file_tzero_v1_payment_intent_provider_provider: GenFile;
|
|
9
9
|
/**
|
|
10
10
|
* @generated from message tzero.v1.payment_intent.provider.CreatePaymentIntentRequest
|
|
11
11
|
*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
// @generated by protoc-gen-es v2.6.2 with parameter "target=ts"
|
|
1
|
+
// @generated by protoc-gen-es v2.6.2 with parameter "target=ts,import_extension=js"
|
|
2
2
|
// @generated from file tzero/v1/payment_intent/provider/provider.proto (package tzero.v1.payment_intent.provider, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
5
|
-
import { file_tzero_v1_common_common } from "../../common/common_pb";
|
|
6
|
-
import { file_tzero_v1_common_payment_method } from "../../common/payment_method_pb";
|
|
5
|
+
import { file_tzero_v1_common_common } from "../../common/common_pb.js";
|
|
6
|
+
import { file_tzero_v1_common_payment_method } from "../../common/payment_method_pb.js";
|
|
7
7
|
/**
|
|
8
8
|
* Describes the file tzero/v1/payment_intent/provider/provider.proto.
|
|
9
9
|
*/
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
-
import type { Decimal } from "../../common/common_pb";
|
|
3
|
-
import type { PaymentMethod, PaymentMethodType } from "../../common/payment_method_pb";
|
|
2
|
+
import type { Decimal } from "../../common/common_pb.js";
|
|
3
|
+
import type { PaymentMethod, PaymentMethodType } from "../../common/payment_method_pb.js";
|
|
4
4
|
import type { Message } from "@bufbuild/protobuf";
|
|
5
5
|
/**
|
|
6
|
-
* Describes the file payment_intent/recipient/recipient.proto.
|
|
6
|
+
* Describes the file tzero/v1/payment_intent/recipient/recipient.proto.
|
|
7
7
|
*/
|
|
8
|
-
export declare const
|
|
8
|
+
export declare const file_tzero_v1_payment_intent_recipient_recipient: GenFile;
|
|
9
9
|
/**
|
|
10
10
|
* @generated from message tzero.v1.payment_intent.recipient.CreatePaymentIntentRequest
|
|
11
11
|
*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
// @generated by protoc-gen-es v2.6.2 with parameter "target=ts"
|
|
1
|
+
// @generated by protoc-gen-es v2.6.2 with parameter "target=ts,import_extension=js"
|
|
2
2
|
// @generated from file tzero/v1/payment_intent/recipient/recipient.proto (package tzero.v1.payment_intent.recipient, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
5
|
-
import { file_tzero_v1_common_common } from "../../common/common_pb";
|
|
6
|
-
import { file_tzero_v1_common_payment_method } from "../../common/payment_method_pb";
|
|
5
|
+
import { file_tzero_v1_common_common } from "../../common/common_pb.js";
|
|
6
|
+
import { file_tzero_v1_common_payment_method } from "../../common/payment_method_pb.js";
|
|
7
7
|
/**
|
|
8
8
|
* Describes the file tzero/v1/payment_intent/recipient/recipient.proto.
|
|
9
9
|
*/
|