@naturalpay/sdk 0.2.1 → 0.4.0
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/CHANGELOG.md +42 -0
- package/README.md +2 -2
- package/api-promise.d.mts +1 -0
- package/api-promise.d.mts.map +1 -1
- package/api-promise.d.ts +1 -0
- package/api-promise.d.ts.map +1 -1
- package/api-promise.mjs +1 -0
- package/api-promise.mjs.map +1 -1
- package/client.d.mts +37 -13
- package/client.d.mts.map +1 -1
- package/client.d.ts +37 -13
- package/client.d.ts.map +1 -1
- package/client.js +30 -6
- package/client.js.map +1 -1
- package/client.mjs +31 -7
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.mjs.map +1 -1
- package/core/error.mjs.map +1 -1
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts.map +1 -1
- package/core/uploads.d.mts.map +1 -1
- package/core/uploads.d.ts.map +1 -1
- package/core/uploads.mjs.map +1 -1
- package/error.d.mts +1 -0
- package/error.d.mts.map +1 -1
- package/error.d.ts +1 -0
- package/error.d.ts.map +1 -1
- package/error.mjs +1 -0
- package/error.mjs.map +1 -1
- package/index.d.mts.map +1 -1
- package/index.d.ts.map +1 -1
- package/index.mjs.map +1 -1
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/headers.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/qs/formats.d.mts.map +1 -1
- package/internal/qs/formats.d.ts.map +1 -1
- package/internal/qs/index.d.mts +2 -2
- package/internal/qs/index.d.mts.map +1 -1
- package/internal/qs/index.d.ts +2 -2
- package/internal/qs/index.d.ts.map +1 -1
- package/internal/qs/index.mjs.map +1 -1
- package/internal/qs/stringify.d.mts.map +1 -1
- package/internal/qs/stringify.d.ts.map +1 -1
- package/internal/qs/stringify.mjs.map +1 -1
- package/internal/qs/utils.d.mts.map +1 -1
- package/internal/qs/utils.d.ts.map +1 -1
- package/internal/qs/utils.mjs.map +1 -1
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts.map +1 -1
- package/internal/shims.d.mts +6 -0
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts +6 -0
- package/internal/shims.d.ts.map +1 -1
- package/internal/to-file.d.mts.map +1 -1
- package/internal/to-file.d.ts.map +1 -1
- package/internal/to-file.mjs.map +1 -1
- package/internal/types.d.mts +4 -4
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +4 -4
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.mjs.map +1 -1
- package/internal/utils/query.mjs.map +1 -1
- package/internal/utils/values.mjs.map +1 -1
- package/internal/utils.d.mts.map +1 -1
- package/internal/utils.d.ts.map +1 -1
- package/internal/utils.mjs.map +1 -1
- package/lib/envelope.d.mts.map +1 -1
- package/lib/envelope.d.ts.map +1 -1
- package/lib/envelope.mjs.map +1 -1
- package/package.json +1 -1
- package/resource.d.mts +1 -0
- package/resource.d.mts.map +1 -1
- package/resource.d.ts +1 -0
- package/resource.d.ts.map +1 -1
- package/resource.mjs +1 -0
- package/resource.mjs.map +1 -1
- package/resources/agents.d.mts +4 -153
- package/resources/agents.d.mts.map +1 -1
- package/resources/agents.d.ts +4 -153
- package/resources/agents.d.ts.map +1 -1
- package/resources/agents.js +5 -5
- package/resources/agents.js.map +1 -1
- package/resources/agents.mjs +5 -5
- package/resources/agents.mjs.map +1 -1
- package/resources/api-keys.d.mts +16 -2
- package/resources/api-keys.d.mts.map +1 -1
- package/resources/api-keys.d.ts +16 -2
- package/resources/api-keys.d.ts.map +1 -1
- package/resources/api-keys.js +7 -4
- package/resources/api-keys.js.map +1 -1
- package/resources/api-keys.mjs +7 -4
- package/resources/api-keys.mjs.map +1 -1
- package/resources/counterparties.d.mts +5 -55
- package/resources/counterparties.d.mts.map +1 -1
- package/resources/counterparties.d.ts +5 -55
- package/resources/counterparties.d.ts.map +1 -1
- package/resources/counterparties.js +1 -3
- package/resources/counterparties.js.map +1 -1
- package/resources/counterparties.mjs +1 -3
- package/resources/counterparties.mjs.map +1 -1
- package/resources/customers.d.mts.map +1 -1
- package/resources/customers.d.ts.map +1 -1
- package/resources/customers.mjs.map +1 -1
- package/resources/delegations.d.mts.map +1 -1
- package/resources/delegations.d.ts.map +1 -1
- package/resources/delegations.mjs.map +1 -1
- package/resources/escalations.d.mts +1124 -0
- package/resources/escalations.d.mts.map +1 -0
- package/resources/escalations.d.ts +1124 -0
- package/resources/escalations.d.ts.map +1 -0
- package/resources/escalations.js +110 -0
- package/resources/escalations.js.map +1 -0
- package/resources/escalations.mjs +106 -0
- package/resources/escalations.mjs.map +1 -0
- package/resources/external-accounts.d.mts +239 -0
- package/resources/external-accounts.d.mts.map +1 -0
- package/resources/external-accounts.d.ts +239 -0
- package/resources/external-accounts.d.ts.map +1 -0
- package/resources/external-accounts.js +47 -0
- package/resources/external-accounts.js.map +1 -0
- package/resources/external-accounts.mjs +43 -0
- package/resources/external-accounts.mjs.map +1 -0
- package/resources/index.d.mts +8 -4
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +8 -4
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +9 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +5 -1
- package/resources/index.mjs.map +1 -1
- package/resources/invitations.d.mts +17 -8
- package/resources/invitations.d.mts.map +1 -1
- package/resources/invitations.d.ts +17 -8
- package/resources/invitations.d.ts.map +1 -1
- package/resources/invitations.js +7 -5
- package/resources/invitations.js.map +1 -1
- package/resources/invitations.mjs +7 -5
- package/resources/invitations.mjs.map +1 -1
- package/resources/parties.d.mts +55 -28
- package/resources/parties.d.mts.map +1 -1
- package/resources/parties.d.ts +55 -28
- package/resources/parties.d.ts.map +1 -1
- package/resources/parties.js +30 -4
- package/resources/parties.js.map +1 -1
- package/resources/parties.mjs +30 -4
- package/resources/parties.mjs.map +1 -1
- package/resources/payment-requests.d.mts +751 -39
- package/resources/payment-requests.d.mts.map +1 -1
- package/resources/payment-requests.d.ts +751 -39
- package/resources/payment-requests.d.ts.map +1 -1
- package/resources/payment-requests.js +82 -2
- package/resources/payment-requests.js.map +1 -1
- package/resources/payment-requests.mjs +82 -2
- package/resources/payment-requests.mjs.map +1 -1
- package/resources/payments.d.mts +390 -24
- package/resources/payments.d.mts.map +1 -1
- package/resources/payments.d.ts +390 -24
- package/resources/payments.d.ts.map +1 -1
- package/resources/payments.js +53 -3
- package/resources/payments.js.map +1 -1
- package/resources/payments.mjs +53 -3
- package/resources/payments.mjs.map +1 -1
- package/resources/transactions.d.mts +53 -113
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts +53 -113
- package/resources/transactions.d.ts.map +1 -1
- package/resources/transactions.js +3 -3
- package/resources/transactions.mjs +3 -3
- package/resources/transactions.mjs.map +1 -1
- package/resources/transfers.d.mts +1030 -0
- package/resources/transfers.d.mts.map +1 -0
- package/resources/transfers.d.ts +1030 -0
- package/resources/transfers.d.ts.map +1 -0
- package/resources/transfers.js +114 -0
- package/resources/transfers.js.map +1 -0
- package/resources/transfers.mjs +110 -0
- package/resources/transfers.mjs.map +1 -0
- package/resources/wallet.d.mts +117 -437
- package/resources/wallet.d.mts.map +1 -1
- package/resources/wallet.d.ts +117 -437
- package/resources/wallet.d.ts.map +1 -1
- package/resources/wallet.js +9 -122
- package/resources/wallet.js.map +1 -1
- package/resources/wallet.mjs +9 -122
- package/resources/wallet.mjs.map +1 -1
- package/resources/webhooks.d.mts +775 -0
- package/resources/webhooks.d.mts.map +1 -0
- package/resources/webhooks.d.ts +775 -0
- package/resources/webhooks.d.ts.map +1 -0
- package/resources/webhooks.js +163 -0
- package/resources/webhooks.js.map +1 -0
- package/resources/webhooks.mjs +159 -0
- package/resources/webhooks.mjs.map +1 -0
- package/resources.d.mts.map +1 -1
- package/resources.d.ts.map +1 -1
- package/resources.mjs.map +1 -1
- package/src/client.ts +156 -32
- package/src/resources/agents.ts +5 -185
- package/src/resources/api-keys.ts +26 -4
- package/src/resources/counterparties.ts +5 -64
- package/src/resources/escalations.ts +1422 -0
- package/src/resources/external-accounts.ts +324 -0
- package/src/resources/index.ts +65 -13
- package/src/resources/invitations.ts +27 -11
- package/src/resources/parties.ts +88 -33
- package/src/resources/payment-requests.ts +945 -44
- package/src/resources/payments.ts +518 -23
- package/src/resources/transactions.ts +53 -129
- package/src/resources/transfers.ts +1338 -0
- package/src/resources/wallet.ts +133 -597
- package/src/resources/webhooks.ts +1232 -0
- package/src/version.ts +1 -1
- package/uploads.d.mts +1 -0
- package/uploads.d.mts.map +1 -1
- package/uploads.d.ts +1 -0
- package/uploads.d.ts.map +1 -1
- package/uploads.mjs +1 -0
- package/uploads.mjs.map +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -2,15 +2,15 @@ import { APIResource } from "../core/resource.js";
|
|
|
2
2
|
import { APIPromise } from "../core/api-promise.js";
|
|
3
3
|
import { RequestOptions } from "../internal/request-options.js";
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Transaction activity and history operations
|
|
6
6
|
*/
|
|
7
7
|
export declare class Transactions extends APIResource {
|
|
8
8
|
/**
|
|
9
|
-
* List transactions visible to
|
|
9
|
+
* List transactions visible to your party.
|
|
10
10
|
*/
|
|
11
11
|
list(params?: TransactionListParams | null | undefined, options?: RequestOptions): APIPromise<TransactionListResponse>;
|
|
12
12
|
/**
|
|
13
|
-
* Get a single transaction visible to
|
|
13
|
+
* Get a single transaction visible to your party.
|
|
14
14
|
*/
|
|
15
15
|
get(transactionID: string, params?: TransactionGetParams | null | undefined, options?: RequestOptions): APIPromise<TransactionGetResponse>;
|
|
16
16
|
}
|
|
@@ -39,21 +39,10 @@ export declare namespace TransactionListResponse {
|
|
|
39
39
|
* Resource attributes
|
|
40
40
|
*/
|
|
41
41
|
interface Attributes {
|
|
42
|
-
/**
|
|
43
|
-
* Agent that initiated this transaction. Null when initiated by a human user.
|
|
44
|
-
*/
|
|
45
|
-
agentId: string | null;
|
|
46
42
|
/**
|
|
47
43
|
* Amount in cents
|
|
48
44
|
*/
|
|
49
45
|
amount: number;
|
|
50
|
-
/**
|
|
51
|
-
* Classification from the authenticated party's perspective. Derived from
|
|
52
|
-
* transactionType + direction: "sent"/"received" for wallet-to-wallet payments
|
|
53
|
-
* (OUTBOUND/INBOUND), "deposit"/"withdrawal" for external transfers
|
|
54
|
-
* (INBOUND/OUTBOUND).
|
|
55
|
-
*/
|
|
56
|
-
category: 'sent' | 'received' | 'deposit' | 'withdrawal';
|
|
57
46
|
/**
|
|
58
47
|
* When this transaction was created
|
|
59
48
|
*/
|
|
@@ -62,10 +51,6 @@ export declare namespace TransactionListResponse {
|
|
|
62
51
|
* Currency code
|
|
63
52
|
*/
|
|
64
53
|
currency: string;
|
|
65
|
-
/**
|
|
66
|
-
* Customer name if delegated
|
|
67
|
-
*/
|
|
68
|
-
customerName: string | null;
|
|
69
54
|
/**
|
|
70
55
|
* Payment description
|
|
71
56
|
*/
|
|
@@ -75,29 +60,10 @@ export declare namespace TransactionListResponse {
|
|
|
75
60
|
*/
|
|
76
61
|
direction: 'INBOUND' | 'OUTBOUND';
|
|
77
62
|
/**
|
|
78
|
-
*
|
|
79
|
-
|
|
80
|
-
disputeId: string | null;
|
|
81
|
-
/**
|
|
82
|
-
* Pending escalation ID when this transaction requires approval
|
|
83
|
-
*/
|
|
84
|
-
escalationId: string | null;
|
|
85
|
-
/**
|
|
86
|
-
* Display name of the user or agent that initiated this transaction
|
|
87
|
-
*/
|
|
88
|
-
initiatorName: string | null;
|
|
89
|
-
/**
|
|
90
|
-
* True if this is a delegated customer payment
|
|
91
|
-
*/
|
|
92
|
-
isDelegated: boolean;
|
|
93
|
-
/**
|
|
94
|
-
* Recipient display name
|
|
63
|
+
* Projected funds-available time for transfers. Null when no projection exists and
|
|
64
|
+
* null for payments.
|
|
95
65
|
*/
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* Sender display name
|
|
99
|
-
*/
|
|
100
|
-
senderName: string | null;
|
|
66
|
+
expectedAvailableAt: string | null;
|
|
101
67
|
/**
|
|
102
68
|
* Transaction status
|
|
103
69
|
*/
|
|
@@ -119,18 +85,20 @@ export declare namespace TransactionListResponse {
|
|
|
119
85
|
* Destination party
|
|
120
86
|
*/
|
|
121
87
|
destinationParty: Relationships.DestinationParty;
|
|
122
|
-
/**
|
|
123
|
-
* Destination wallet
|
|
124
|
-
*/
|
|
125
|
-
destinationWallet: Relationships.DestinationWallet;
|
|
126
88
|
/**
|
|
127
89
|
* Source party
|
|
128
90
|
*/
|
|
129
91
|
sourceParty: Relationships.SourceParty;
|
|
130
92
|
/**
|
|
131
|
-
*
|
|
93
|
+
* Payment that produced this transaction. Present only when the authenticated
|
|
94
|
+
* caller can access the payment resource.
|
|
132
95
|
*/
|
|
133
|
-
|
|
96
|
+
payment?: Relationships.Payment;
|
|
97
|
+
/**
|
|
98
|
+
* Transfer that produced this transaction. Present only when the authenticated
|
|
99
|
+
* caller can access the transfer resource.
|
|
100
|
+
*/
|
|
101
|
+
transfer?: Relationships.Transfer;
|
|
134
102
|
}
|
|
135
103
|
namespace Relationships {
|
|
136
104
|
/**
|
|
@@ -155,15 +123,15 @@ export declare namespace TransactionListResponse {
|
|
|
155
123
|
}
|
|
156
124
|
}
|
|
157
125
|
/**
|
|
158
|
-
*
|
|
126
|
+
* Source party
|
|
159
127
|
*/
|
|
160
|
-
interface
|
|
128
|
+
interface SourceParty {
|
|
161
129
|
/**
|
|
162
130
|
* Related resource identifier
|
|
163
131
|
*/
|
|
164
|
-
data:
|
|
132
|
+
data: SourceParty.Data | null;
|
|
165
133
|
}
|
|
166
|
-
namespace
|
|
134
|
+
namespace SourceParty {
|
|
167
135
|
/**
|
|
168
136
|
* Related resource identifier
|
|
169
137
|
*/
|
|
@@ -176,15 +144,16 @@ export declare namespace TransactionListResponse {
|
|
|
176
144
|
}
|
|
177
145
|
}
|
|
178
146
|
/**
|
|
179
|
-
*
|
|
147
|
+
* Payment that produced this transaction. Present only when the authenticated
|
|
148
|
+
* caller can access the payment resource.
|
|
180
149
|
*/
|
|
181
|
-
interface
|
|
150
|
+
interface Payment {
|
|
182
151
|
/**
|
|
183
152
|
* Related resource identifier
|
|
184
153
|
*/
|
|
185
|
-
data:
|
|
154
|
+
data: Payment.Data;
|
|
186
155
|
}
|
|
187
|
-
namespace
|
|
156
|
+
namespace Payment {
|
|
188
157
|
/**
|
|
189
158
|
* Related resource identifier
|
|
190
159
|
*/
|
|
@@ -197,15 +166,16 @@ export declare namespace TransactionListResponse {
|
|
|
197
166
|
}
|
|
198
167
|
}
|
|
199
168
|
/**
|
|
200
|
-
*
|
|
169
|
+
* Transfer that produced this transaction. Present only when the authenticated
|
|
170
|
+
* caller can access the transfer resource.
|
|
201
171
|
*/
|
|
202
|
-
interface
|
|
172
|
+
interface Transfer {
|
|
203
173
|
/**
|
|
204
174
|
* Related resource identifier
|
|
205
175
|
*/
|
|
206
|
-
data:
|
|
176
|
+
data: Transfer.Data;
|
|
207
177
|
}
|
|
208
|
-
namespace
|
|
178
|
+
namespace Transfer {
|
|
209
179
|
/**
|
|
210
180
|
* Related resource identifier
|
|
211
181
|
*/
|
|
@@ -253,21 +223,10 @@ export declare namespace TransactionGetResponse {
|
|
|
253
223
|
* Resource attributes
|
|
254
224
|
*/
|
|
255
225
|
interface Attributes {
|
|
256
|
-
/**
|
|
257
|
-
* Agent that initiated this transaction. Null when initiated by a human user.
|
|
258
|
-
*/
|
|
259
|
-
agentId: string | null;
|
|
260
226
|
/**
|
|
261
227
|
* Amount in cents
|
|
262
228
|
*/
|
|
263
229
|
amount: number;
|
|
264
|
-
/**
|
|
265
|
-
* Classification from the authenticated party's perspective. Derived from
|
|
266
|
-
* transactionType + direction: "sent"/"received" for wallet-to-wallet payments
|
|
267
|
-
* (OUTBOUND/INBOUND), "deposit"/"withdrawal" for external transfers
|
|
268
|
-
* (INBOUND/OUTBOUND).
|
|
269
|
-
*/
|
|
270
|
-
category: 'sent' | 'received' | 'deposit' | 'withdrawal';
|
|
271
230
|
/**
|
|
272
231
|
* When this transaction was created
|
|
273
232
|
*/
|
|
@@ -276,10 +235,6 @@ export declare namespace TransactionGetResponse {
|
|
|
276
235
|
* Currency code
|
|
277
236
|
*/
|
|
278
237
|
currency: string;
|
|
279
|
-
/**
|
|
280
|
-
* Customer name if delegated
|
|
281
|
-
*/
|
|
282
|
-
customerName: string | null;
|
|
283
238
|
/**
|
|
284
239
|
* Payment description
|
|
285
240
|
*/
|
|
@@ -289,29 +244,10 @@ export declare namespace TransactionGetResponse {
|
|
|
289
244
|
*/
|
|
290
245
|
direction: 'INBOUND' | 'OUTBOUND';
|
|
291
246
|
/**
|
|
292
|
-
*
|
|
293
|
-
|
|
294
|
-
disputeId: string | null;
|
|
295
|
-
/**
|
|
296
|
-
* Pending escalation ID when this transaction requires approval
|
|
297
|
-
*/
|
|
298
|
-
escalationId: string | null;
|
|
299
|
-
/**
|
|
300
|
-
* Display name of the user or agent that initiated this transaction
|
|
301
|
-
*/
|
|
302
|
-
initiatorName: string | null;
|
|
303
|
-
/**
|
|
304
|
-
* True if this is a delegated customer payment
|
|
305
|
-
*/
|
|
306
|
-
isDelegated: boolean;
|
|
307
|
-
/**
|
|
308
|
-
* Recipient display name
|
|
247
|
+
* Projected funds-available time for transfers. Null when no projection exists and
|
|
248
|
+
* null for payments.
|
|
309
249
|
*/
|
|
310
|
-
|
|
311
|
-
/**
|
|
312
|
-
* Sender display name
|
|
313
|
-
*/
|
|
314
|
-
senderName: string | null;
|
|
250
|
+
expectedAvailableAt: string | null;
|
|
315
251
|
/**
|
|
316
252
|
* Transaction status
|
|
317
253
|
*/
|
|
@@ -333,18 +269,20 @@ export declare namespace TransactionGetResponse {
|
|
|
333
269
|
* Destination party
|
|
334
270
|
*/
|
|
335
271
|
destinationParty: Relationships.DestinationParty;
|
|
336
|
-
/**
|
|
337
|
-
* Destination wallet
|
|
338
|
-
*/
|
|
339
|
-
destinationWallet: Relationships.DestinationWallet;
|
|
340
272
|
/**
|
|
341
273
|
* Source party
|
|
342
274
|
*/
|
|
343
275
|
sourceParty: Relationships.SourceParty;
|
|
344
276
|
/**
|
|
345
|
-
*
|
|
277
|
+
* Payment that produced this transaction. Present only when the authenticated
|
|
278
|
+
* caller can access the payment resource.
|
|
346
279
|
*/
|
|
347
|
-
|
|
280
|
+
payment?: Relationships.Payment;
|
|
281
|
+
/**
|
|
282
|
+
* Transfer that produced this transaction. Present only when the authenticated
|
|
283
|
+
* caller can access the transfer resource.
|
|
284
|
+
*/
|
|
285
|
+
transfer?: Relationships.Transfer;
|
|
348
286
|
}
|
|
349
287
|
namespace Relationships {
|
|
350
288
|
/**
|
|
@@ -369,15 +307,15 @@ export declare namespace TransactionGetResponse {
|
|
|
369
307
|
}
|
|
370
308
|
}
|
|
371
309
|
/**
|
|
372
|
-
*
|
|
310
|
+
* Source party
|
|
373
311
|
*/
|
|
374
|
-
interface
|
|
312
|
+
interface SourceParty {
|
|
375
313
|
/**
|
|
376
314
|
* Related resource identifier
|
|
377
315
|
*/
|
|
378
|
-
data:
|
|
316
|
+
data: SourceParty.Data | null;
|
|
379
317
|
}
|
|
380
|
-
namespace
|
|
318
|
+
namespace SourceParty {
|
|
381
319
|
/**
|
|
382
320
|
* Related resource identifier
|
|
383
321
|
*/
|
|
@@ -390,15 +328,16 @@ export declare namespace TransactionGetResponse {
|
|
|
390
328
|
}
|
|
391
329
|
}
|
|
392
330
|
/**
|
|
393
|
-
*
|
|
331
|
+
* Payment that produced this transaction. Present only when the authenticated
|
|
332
|
+
* caller can access the payment resource.
|
|
394
333
|
*/
|
|
395
|
-
interface
|
|
334
|
+
interface Payment {
|
|
396
335
|
/**
|
|
397
336
|
* Related resource identifier
|
|
398
337
|
*/
|
|
399
|
-
data:
|
|
338
|
+
data: Payment.Data;
|
|
400
339
|
}
|
|
401
|
-
namespace
|
|
340
|
+
namespace Payment {
|
|
402
341
|
/**
|
|
403
342
|
* Related resource identifier
|
|
404
343
|
*/
|
|
@@ -411,15 +350,16 @@ export declare namespace TransactionGetResponse {
|
|
|
411
350
|
}
|
|
412
351
|
}
|
|
413
352
|
/**
|
|
414
|
-
*
|
|
353
|
+
* Transfer that produced this transaction. Present only when the authenticated
|
|
354
|
+
* caller can access the transfer resource.
|
|
415
355
|
*/
|
|
416
|
-
interface
|
|
356
|
+
interface Transfer {
|
|
417
357
|
/**
|
|
418
358
|
* Related resource identifier
|
|
419
359
|
*/
|
|
420
|
-
data:
|
|
360
|
+
data: Transfer.Data;
|
|
421
361
|
}
|
|
422
|
-
namespace
|
|
362
|
+
namespace Transfer {
|
|
423
363
|
/**
|
|
424
364
|
* Related resource identifier
|
|
425
365
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transactions.d.ts","sourceRoot":"","sources":["../src/resources/transactions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"transactions.d.ts","sourceRoot":"","sources":["../src/resources/transactions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AAEjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D;;GAEG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,IAAI,CACF,MAAM,GAAE,qBAAqB,GAAG,IAAI,GAAG,SAAc,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,uBAAuB,CAAC;IAetC;;OAEG;IACH,GAAG,CACD,aAAa,EAAE,MAAM,EACrB,MAAM,GAAE,o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,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
|
@@ -6,11 +6,11 @@ const resource_1 = require("../core/resource.js");
|
|
|
6
6
|
const headers_1 = require("../internal/headers.js");
|
|
7
7
|
const path_1 = require("../internal/utils/path.js");
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Transaction activity and history operations
|
|
10
10
|
*/
|
|
11
11
|
class Transactions extends resource_1.APIResource {
|
|
12
12
|
/**
|
|
13
|
-
* List transactions visible to
|
|
13
|
+
* List transactions visible to your party.
|
|
14
14
|
*/
|
|
15
15
|
list(params = {}, options) {
|
|
16
16
|
const { 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID, ...query } = params ?? {};
|
|
@@ -27,7 +27,7 @@ class Transactions extends resource_1.APIResource {
|
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
29
|
/**
|
|
30
|
-
* Get a single transaction visible to
|
|
30
|
+
* Get a single transaction visible to your party.
|
|
31
31
|
*/
|
|
32
32
|
get(transactionID, params = {}, options) {
|
|
33
33
|
const { 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID, ...query } = params ?? {};
|
|
@@ -3,11 +3,11 @@ import { APIResource } from "../core/resource.mjs";
|
|
|
3
3
|
import { buildHeaders } from "../internal/headers.mjs";
|
|
4
4
|
import { path } from "../internal/utils/path.mjs";
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Transaction activity and history operations
|
|
7
7
|
*/
|
|
8
8
|
export class Transactions extends APIResource {
|
|
9
9
|
/**
|
|
10
|
-
* List transactions visible to
|
|
10
|
+
* List transactions visible to your party.
|
|
11
11
|
*/
|
|
12
12
|
list(params = {}, options) {
|
|
13
13
|
const { 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID, ...query } = params ?? {};
|
|
@@ -24,7 +24,7 @@ export class Transactions extends APIResource {
|
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
|
-
* Get a single transaction visible to
|
|
27
|
+
* Get a single transaction visible to your party.
|
|
28
28
|
*/
|
|
29
29
|
get(transactionID, params = {}, options) {
|
|
30
30
|
const { 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID, ...query } = params ?? {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transactions.mjs","sourceRoot":"","sources":["../src/resources/transactions.ts"],"names":[],"mappings":"AAAA,sFAAsF;
|
|
1
|
+
{"version":3,"file":"transactions.mjs","sourceRoot":"","sources":["../src/resources/transactions.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAE/C,OAAO,EAAE,YAAY,EAAE,gCAA4B;AAEnD,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C;;GAEG;AACH,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,IAAI,CACF,SAAmD,EAAE,EACrD,OAAwB;QAExB,MAAM,EAAE,YAAY,EAAE,QAAQ,EAAE,eAAe,EAAE,WAAW,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACxF,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE;YACvC,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB;oBACE,GAAG,CAAC,QAAQ,IAAI,IAAI,CA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