@naturalpay/sdk 0.3.0 → 0.5.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.
Files changed (184) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/client.d.mts +23 -20
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +23 -20
  5. package/client.d.ts.map +1 -1
  6. package/client.js +11 -8
  7. package/client.js.map +1 -1
  8. package/client.mjs +12 -9
  9. package/client.mjs.map +1 -1
  10. package/internal/tslib.js +17 -17
  11. package/internal/utils/query.d.mts +3 -0
  12. package/internal/utils/query.d.mts.map +1 -1
  13. package/internal/utils/query.d.ts +3 -0
  14. package/internal/utils/query.d.ts.map +1 -1
  15. package/internal/utils/query.js +16 -3
  16. package/internal/utils/query.js.map +1 -1
  17. package/internal/utils/query.mjs +16 -2
  18. package/internal/utils/query.mjs.map +1 -1
  19. package/package.json +1 -1
  20. package/resources/agents.d.mts +554 -268
  21. package/resources/agents.d.mts.map +1 -1
  22. package/resources/agents.d.ts +554 -268
  23. package/resources/agents.d.ts.map +1 -1
  24. package/resources/agents.js +72 -20
  25. package/resources/agents.js.map +1 -1
  26. package/resources/agents.mjs +72 -20
  27. package/resources/agents.mjs.map +1 -1
  28. package/resources/api-keys.d.mts +16 -2
  29. package/resources/api-keys.d.mts.map +1 -1
  30. package/resources/api-keys.d.ts +16 -2
  31. package/resources/api-keys.d.ts.map +1 -1
  32. package/resources/api-keys.js +7 -4
  33. package/resources/api-keys.js.map +1 -1
  34. package/resources/api-keys.mjs +7 -4
  35. package/resources/api-keys.mjs.map +1 -1
  36. package/resources/customers.d.mts +243 -114
  37. package/resources/customers.d.mts.map +1 -1
  38. package/resources/customers.d.ts +243 -114
  39. package/resources/customers.d.ts.map +1 -1
  40. package/resources/customers.js +6 -7
  41. package/resources/customers.js.map +1 -1
  42. package/resources/customers.mjs +6 -7
  43. package/resources/customers.mjs.map +1 -1
  44. package/resources/index.d.mts +7 -7
  45. package/resources/index.d.mts.map +1 -1
  46. package/resources/index.d.ts +7 -7
  47. package/resources/index.d.ts.map +1 -1
  48. package/resources/index.js +3 -3
  49. package/resources/index.js.map +1 -1
  50. package/resources/index.mjs +2 -2
  51. package/resources/index.mjs.map +1 -1
  52. package/resources/invitations.d.mts +16 -7
  53. package/resources/invitations.d.mts.map +1 -1
  54. package/resources/invitations.d.ts +16 -7
  55. package/resources/invitations.d.ts.map +1 -1
  56. package/resources/invitations.js +6 -4
  57. package/resources/invitations.js.map +1 -1
  58. package/resources/invitations.mjs +6 -4
  59. package/resources/invitations.mjs.map +1 -1
  60. package/resources/parties.d.mts +53 -26
  61. package/resources/parties.d.mts.map +1 -1
  62. package/resources/parties.d.ts +53 -26
  63. package/resources/parties.d.ts.map +1 -1
  64. package/resources/parties.js +27 -1
  65. package/resources/parties.js.map +1 -1
  66. package/resources/parties.mjs +27 -1
  67. package/resources/parties.mjs.map +1 -1
  68. package/resources/payment-requests.d.mts +738 -33
  69. package/resources/payment-requests.d.mts.map +1 -1
  70. package/resources/payment-requests.d.ts +738 -33
  71. package/resources/payment-requests.d.ts.map +1 -1
  72. package/resources/payment-requests.js +82 -1
  73. package/resources/payment-requests.js.map +1 -1
  74. package/resources/payment-requests.mjs +82 -1
  75. package/resources/payment-requests.mjs.map +1 -1
  76. package/resources/payments.d.mts +390 -24
  77. package/resources/payments.d.mts.map +1 -1
  78. package/resources/payments.d.ts +390 -24
  79. package/resources/payments.d.ts.map +1 -1
  80. package/resources/payments.js +53 -3
  81. package/resources/payments.js.map +1 -1
  82. package/resources/payments.mjs +53 -3
  83. package/resources/payments.mjs.map +1 -1
  84. package/resources/transactions.d.mts +50 -118
  85. package/resources/transactions.d.mts.map +1 -1
  86. package/resources/transactions.d.ts +50 -118
  87. package/resources/transactions.d.ts.map +1 -1
  88. package/resources/transactions.js +2 -2
  89. package/resources/transactions.mjs +2 -2
  90. package/resources/transfers.d.mts +1030 -0
  91. package/resources/transfers.d.mts.map +1 -0
  92. package/resources/transfers.d.ts +1030 -0
  93. package/resources/transfers.d.ts.map +1 -0
  94. package/resources/transfers.js +114 -0
  95. package/resources/transfers.js.map +1 -0
  96. package/resources/transfers.mjs +110 -0
  97. package/resources/transfers.mjs.map +1 -0
  98. package/resources/wallet.d.mts +1 -189
  99. package/resources/wallet.d.mts.map +1 -1
  100. package/resources/wallet.d.ts +1 -189
  101. package/resources/wallet.d.ts.map +1 -1
  102. package/resources/wallet.js +0 -66
  103. package/resources/wallet.js.map +1 -1
  104. package/resources/wallet.mjs +0 -66
  105. package/resources/wallet.mjs.map +1 -1
  106. package/resources/webhooks.d.mts +7 -7
  107. package/resources/webhooks.d.mts.map +1 -1
  108. package/resources/webhooks.d.ts +7 -7
  109. package/resources/webhooks.d.ts.map +1 -1
  110. package/src/client.ts +82 -43
  111. package/src/internal/utils/query.ts +18 -2
  112. package/src/resources/agents.ts +676 -300
  113. package/src/resources/api-keys.ts +26 -4
  114. package/src/resources/customers.ts +273 -132
  115. package/src/resources/index.ts +38 -18
  116. package/src/resources/invitations.ts +26 -10
  117. package/src/resources/parties.ts +85 -30
  118. package/src/resources/payment-requests.ts +949 -58
  119. package/src/resources/payments.ts +518 -23
  120. package/src/resources/transactions.ts +50 -136
  121. package/src/resources/transfers.ts +1338 -0
  122. package/src/resources/wallet.ts +0 -268
  123. package/src/resources/webhooks.ts +7 -0
  124. package/src/version.ts +1 -1
  125. package/version.d.mts +1 -1
  126. package/version.d.ts +1 -1
  127. package/version.js +1 -1
  128. package/version.mjs +1 -1
  129. package/internal/qs/formats.d.mts +0 -7
  130. package/internal/qs/formats.d.mts.map +0 -1
  131. package/internal/qs/formats.d.ts +0 -7
  132. package/internal/qs/formats.d.ts.map +0 -1
  133. package/internal/qs/formats.js +0 -13
  134. package/internal/qs/formats.js.map +0 -1
  135. package/internal/qs/formats.mjs +0 -9
  136. package/internal/qs/formats.mjs.map +0 -1
  137. package/internal/qs/index.d.mts +0 -10
  138. package/internal/qs/index.d.mts.map +0 -1
  139. package/internal/qs/index.d.ts +0 -10
  140. package/internal/qs/index.d.ts.map +0 -1
  141. package/internal/qs/index.js +0 -14
  142. package/internal/qs/index.js.map +0 -1
  143. package/internal/qs/index.mjs +0 -10
  144. package/internal/qs/index.mjs.map +0 -1
  145. package/internal/qs/stringify.d.mts +0 -3
  146. package/internal/qs/stringify.d.mts.map +0 -1
  147. package/internal/qs/stringify.d.ts +0 -3
  148. package/internal/qs/stringify.d.ts.map +0 -1
  149. package/internal/qs/stringify.js +0 -277
  150. package/internal/qs/stringify.js.map +0 -1
  151. package/internal/qs/stringify.mjs +0 -274
  152. package/internal/qs/stringify.mjs.map +0 -1
  153. package/internal/qs/types.d.mts +0 -57
  154. package/internal/qs/types.d.mts.map +0 -1
  155. package/internal/qs/types.d.ts +0 -57
  156. package/internal/qs/types.d.ts.map +0 -1
  157. package/internal/qs/types.js +0 -3
  158. package/internal/qs/types.js.map +0 -1
  159. package/internal/qs/types.mjs +0 -2
  160. package/internal/qs/types.mjs.map +0 -1
  161. package/internal/qs/utils.d.mts +0 -15
  162. package/internal/qs/utils.d.mts.map +0 -1
  163. package/internal/qs/utils.d.ts +0 -15
  164. package/internal/qs/utils.d.ts.map +0 -1
  165. package/internal/qs/utils.js +0 -230
  166. package/internal/qs/utils.js.map +0 -1
  167. package/internal/qs/utils.mjs +0 -217
  168. package/internal/qs/utils.mjs.map +0 -1
  169. package/resources/delegations.d.mts +0 -458
  170. package/resources/delegations.d.mts.map +0 -1
  171. package/resources/delegations.d.ts +0 -458
  172. package/resources/delegations.d.ts.map +0 -1
  173. package/resources/delegations.js +0 -47
  174. package/resources/delegations.js.map +0 -1
  175. package/resources/delegations.mjs +0 -43
  176. package/resources/delegations.mjs.map +0 -1
  177. package/src/internal/qs/LICENSE.md +0 -13
  178. package/src/internal/qs/README.md +0 -3
  179. package/src/internal/qs/formats.ts +0 -10
  180. package/src/internal/qs/index.ts +0 -13
  181. package/src/internal/qs/stringify.ts +0 -385
  182. package/src/internal/qs/types.ts +0 -71
  183. package/src/internal/qs/utils.ts +0 -265
  184. package/src/resources/delegations.ts +0 -580
@@ -2,11 +2,11 @@ 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
- * Payment and transaction operations
5
+ * Transaction activity and history operations
6
6
  */
7
7
  export declare class Transactions extends APIResource {
8
8
  /**
9
- * List transactions visible to your party and its delegated agents.
9
+ * List transactions visible to your party.
10
10
  */
11
11
  list(params?: TransactionListParams | null | undefined, options?: RequestOptions): APIPromise<TransactionListResponse>;
12
12
  /**
@@ -39,20 +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 your party's perspective. Derived from transactionType +
52
- * direction: "sent"/"received" for wallet-to-wallet payments (OUTBOUND/INBOUND),
53
- * "deposit"/"withdrawal" for external transfers (INBOUND/OUTBOUND).
54
- */
55
- category: 'sent' | 'received' | 'deposit' | 'withdrawal';
56
46
  /**
57
47
  * When this transaction was created
58
48
  */
@@ -61,10 +51,6 @@ export declare namespace TransactionListResponse {
61
51
  * Currency code
62
52
  */
63
53
  currency: string;
64
- /**
65
- * Customer name if delegated
66
- */
67
- customerName: string | null;
68
54
  /**
69
55
  * Payment description
70
56
  */
@@ -74,34 +60,10 @@ export declare namespace TransactionListResponse {
74
60
  */
75
61
  direction: 'INBOUND' | 'OUTBOUND';
76
62
  /**
77
- * Active dispute ID when a dispute has been filed for this transaction
78
- */
79
- disputeId: string | null;
80
- /**
81
- * Pending escalation ID when this transaction requires approval
82
- */
83
- escalationId: string | null;
84
- /**
85
- * Projected funds-available time for transfers (deposits/withdrawals). Null when
86
- * no MMR settlement projection has arrived yet, and null for payments.
63
+ * Projected funds-available time for transfers. Null when no projection exists and
64
+ * null for payments.
87
65
  */
88
66
  expectedAvailableAt: string | null;
89
- /**
90
- * Display name of the user or agent that initiated this transaction
91
- */
92
- initiatorName: string | null;
93
- /**
94
- * True if this is a delegated customer payment
95
- */
96
- isDelegated: boolean;
97
- /**
98
- * Recipient display name
99
- */
100
- recipientName: string | null;
101
- /**
102
- * Sender display name
103
- */
104
- senderName: string | null;
105
67
  /**
106
68
  * Transaction status
107
69
  */
@@ -123,18 +85,20 @@ export declare namespace TransactionListResponse {
123
85
  * Destination party
124
86
  */
125
87
  destinationParty: Relationships.DestinationParty;
126
- /**
127
- * Destination wallet
128
- */
129
- destinationWallet: Relationships.DestinationWallet;
130
88
  /**
131
89
  * Source party
132
90
  */
133
91
  sourceParty: Relationships.SourceParty;
134
92
  /**
135
- * Source wallet
93
+ * Payment that produced this transaction. Present only when the authenticated
94
+ * caller can access the payment resource.
95
+ */
96
+ payment?: Relationships.Payment;
97
+ /**
98
+ * Transfer that produced this transaction. Present only when the authenticated
99
+ * caller can access the transfer resource.
136
100
  */
137
- sourceWallet: Relationships.SourceWallet;
101
+ transfer?: Relationships.Transfer;
138
102
  }
139
103
  namespace Relationships {
140
104
  /**
@@ -159,15 +123,15 @@ export declare namespace TransactionListResponse {
159
123
  }
160
124
  }
161
125
  /**
162
- * Destination wallet
126
+ * Source party
163
127
  */
164
- interface DestinationWallet {
128
+ interface SourceParty {
165
129
  /**
166
130
  * Related resource identifier
167
131
  */
168
- data: DestinationWallet.Data | null;
132
+ data: SourceParty.Data | null;
169
133
  }
170
- namespace DestinationWallet {
134
+ namespace SourceParty {
171
135
  /**
172
136
  * Related resource identifier
173
137
  */
@@ -180,15 +144,16 @@ export declare namespace TransactionListResponse {
180
144
  }
181
145
  }
182
146
  /**
183
- * Source party
147
+ * Payment that produced this transaction. Present only when the authenticated
148
+ * caller can access the payment resource.
184
149
  */
185
- interface SourceParty {
150
+ interface Payment {
186
151
  /**
187
152
  * Related resource identifier
188
153
  */
189
- data: SourceParty.Data | null;
154
+ data: Payment.Data;
190
155
  }
191
- namespace SourceParty {
156
+ namespace Payment {
192
157
  /**
193
158
  * Related resource identifier
194
159
  */
@@ -201,15 +166,16 @@ export declare namespace TransactionListResponse {
201
166
  }
202
167
  }
203
168
  /**
204
- * Source wallet
169
+ * Transfer that produced this transaction. Present only when the authenticated
170
+ * caller can access the transfer resource.
205
171
  */
206
- interface SourceWallet {
172
+ interface Transfer {
207
173
  /**
208
174
  * Related resource identifier
209
175
  */
210
- data: SourceWallet.Data | null;
176
+ data: Transfer.Data;
211
177
  }
212
- namespace SourceWallet {
178
+ namespace Transfer {
213
179
  /**
214
180
  * Related resource identifier
215
181
  */
@@ -257,20 +223,10 @@ export declare namespace TransactionGetResponse {
257
223
  * Resource attributes
258
224
  */
259
225
  interface Attributes {
260
- /**
261
- * Agent that initiated this transaction. Null when initiated by a human user.
262
- */
263
- agentId: string | null;
264
226
  /**
265
227
  * Amount in cents
266
228
  */
267
229
  amount: number;
268
- /**
269
- * Classification from your party's perspective. Derived from transactionType +
270
- * direction: "sent"/"received" for wallet-to-wallet payments (OUTBOUND/INBOUND),
271
- * "deposit"/"withdrawal" for external transfers (INBOUND/OUTBOUND).
272
- */
273
- category: 'sent' | 'received' | 'deposit' | 'withdrawal';
274
230
  /**
275
231
  * When this transaction was created
276
232
  */
@@ -279,10 +235,6 @@ export declare namespace TransactionGetResponse {
279
235
  * Currency code
280
236
  */
281
237
  currency: string;
282
- /**
283
- * Customer name if delegated
284
- */
285
- customerName: string | null;
286
238
  /**
287
239
  * Payment description
288
240
  */
@@ -292,34 +244,10 @@ export declare namespace TransactionGetResponse {
292
244
  */
293
245
  direction: 'INBOUND' | 'OUTBOUND';
294
246
  /**
295
- * Active dispute ID when a dispute has been filed for this transaction
296
- */
297
- disputeId: string | null;
298
- /**
299
- * Pending escalation ID when this transaction requires approval
300
- */
301
- escalationId: string | null;
302
- /**
303
- * Projected funds-available time for transfers (deposits/withdrawals). Null when
304
- * no MMR settlement projection has arrived yet, and null for payments.
247
+ * Projected funds-available time for transfers. Null when no projection exists and
248
+ * null for payments.
305
249
  */
306
250
  expectedAvailableAt: string | null;
307
- /**
308
- * Display name of the user or agent that initiated this transaction
309
- */
310
- initiatorName: string | null;
311
- /**
312
- * True if this is a delegated customer payment
313
- */
314
- isDelegated: boolean;
315
- /**
316
- * Recipient display name
317
- */
318
- recipientName: string | null;
319
- /**
320
- * Sender display name
321
- */
322
- senderName: string | null;
323
251
  /**
324
252
  * Transaction status
325
253
  */
@@ -341,18 +269,20 @@ export declare namespace TransactionGetResponse {
341
269
  * Destination party
342
270
  */
343
271
  destinationParty: Relationships.DestinationParty;
344
- /**
345
- * Destination wallet
346
- */
347
- destinationWallet: Relationships.DestinationWallet;
348
272
  /**
349
273
  * Source party
350
274
  */
351
275
  sourceParty: Relationships.SourceParty;
352
276
  /**
353
- * Source wallet
277
+ * Payment that produced this transaction. Present only when the authenticated
278
+ * caller can access the payment resource.
279
+ */
280
+ payment?: Relationships.Payment;
281
+ /**
282
+ * Transfer that produced this transaction. Present only when the authenticated
283
+ * caller can access the transfer resource.
354
284
  */
355
- sourceWallet: Relationships.SourceWallet;
285
+ transfer?: Relationships.Transfer;
356
286
  }
357
287
  namespace Relationships {
358
288
  /**
@@ -377,15 +307,15 @@ export declare namespace TransactionGetResponse {
377
307
  }
378
308
  }
379
309
  /**
380
- * Destination wallet
310
+ * Source party
381
311
  */
382
- interface DestinationWallet {
312
+ interface SourceParty {
383
313
  /**
384
314
  * Related resource identifier
385
315
  */
386
- data: DestinationWallet.Data | null;
316
+ data: SourceParty.Data | null;
387
317
  }
388
- namespace DestinationWallet {
318
+ namespace SourceParty {
389
319
  /**
390
320
  * Related resource identifier
391
321
  */
@@ -398,15 +328,16 @@ export declare namespace TransactionGetResponse {
398
328
  }
399
329
  }
400
330
  /**
401
- * Source party
331
+ * Payment that produced this transaction. Present only when the authenticated
332
+ * caller can access the payment resource.
402
333
  */
403
- interface SourceParty {
334
+ interface Payment {
404
335
  /**
405
336
  * Related resource identifier
406
337
  */
407
- data: SourceParty.Data | null;
338
+ data: Payment.Data;
408
339
  }
409
- namespace SourceParty {
340
+ namespace Payment {
410
341
  /**
411
342
  * Related resource identifier
412
343
  */
@@ -419,15 +350,16 @@ export declare namespace TransactionGetResponse {
419
350
  }
420
351
  }
421
352
  /**
422
- * Source wallet
353
+ * Transfer that produced this transaction. Present only when the authenticated
354
+ * caller can access the transfer resource.
423
355
  */
424
- interface SourceWallet {
356
+ interface Transfer {
425
357
  /**
426
358
  * Related resource identifier
427
359
  */
428
- data: SourceWallet.Data | null;
360
+ data: Transfer.Data;
429
361
  }
430
- namespace SourceWallet {
362
+ namespace Transfer {
431
363
  /**
432
364
  * Related resource identifier
433
365
  */
@@ -1 +1 @@
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,oBAAoB,GAAG,IAAI,GAAG,SAAc,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,sBAAsB,CAAC;CActC;AAED,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,KAAK,CAAC,uBAAuB,CAAC,IAAI,CAAC,CAAC;IAE1C,IAAI,EAAE,uBAAuB,CAAC,IAAI,CAAC;CACpC;AAED,yBAAiB,uBAAuB,CAAC;IACvC,UAAiB,IAAI;QACnB;;WAEG;QACH,EAAE,EAAE,MAAM,CAA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AC,IAAI,GAAG,IAAI,CAAC;aAC/B;YAED,UAAiB,WAAW,CAAC;gBAC3B;;mBAEG;gBACH,UAAiB,IAAI;oBACnB,EAAE,EAAE,MAAM,CAAC;oBAEX;;uBAEG;oBACH,IAAI,EAAE,MAAM,CAAC;iBACd;aACF;YAED;;eAEG;YACH,UAAiB,YAAY;gBAC3B;;mBAEG;gBACH,IAAI,EAAE,YAAY,CAAC,IAAI,GAAG,IAAI,CAAC;aAChC;YAED,UAAiB,YAAY,CAAC;gBAC5B;;mBAEG;gBACH,UAAiB,IAAI;oBACnB,EAAE,EAAE,MAAM,CAAC;oBAEX;;uBAEG;oBACH,IAAI,EAAE,MAAM,CAAC;iBACd;aACF;SACF;KACF;CACF;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,KAAK,CAAC;IAEtC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,eAAe,CAAC,EAAE,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"}
1
+ {"version":3,"file":"transactions.d.ts","sourceRoot":"","sources":["../src/resources/transactions.ts"],"names":[],"mappings":"AAEA,OAAO,E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;oBAEX;;uBAEG;oBACH,IAAI,EAAE,MAAM,CAAC;iBACd;aACF;SACF;KACF;CACF;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,KAAK,CAAC;IAEtC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,eAAe,CAAC,EAAE,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
- * Payment and transaction operations
9
+ * Transaction activity and history operations
10
10
  */
11
11
  class Transactions extends resource_1.APIResource {
12
12
  /**
13
- * List transactions visible to your party and its delegated agents.
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 ?? {};
@@ -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
- * Payment and transaction operations
6
+ * Transaction activity and history operations
7
7
  */
8
8
  export class Transactions extends APIResource {
9
9
  /**
10
- * List transactions visible to your party and its delegated agents.
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 ?? {};