@blindpay/node 1.0.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 (139) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +124 -0
  3. package/dist/api-client-Cw2mNJeR.d.mts +349 -0
  4. package/dist/api-client-Cw2mNJeR.d.ts +349 -0
  5. package/dist/chunk-2DAKB5XK.mjs +212 -0
  6. package/dist/chunk-3CZJEDS5.mjs +41 -0
  7. package/dist/chunk-CNNEROQ7.mjs +46 -0
  8. package/dist/chunk-ES7RXEM7.mjs +245 -0
  9. package/dist/chunk-GCCHFONX.mjs +17893 -0
  10. package/dist/chunk-GEDDLCJY.mjs +77 -0
  11. package/dist/chunk-GNDAATIJ.mjs +35 -0
  12. package/dist/chunk-HKFAJXJG.mjs +65 -0
  13. package/dist/chunk-LK3JPQ6I.mjs +49 -0
  14. package/dist/chunk-LLWEHHKB.mjs +47 -0
  15. package/dist/chunk-LUDGZPXY.mjs +51 -0
  16. package/dist/chunk-M6IYYMRW.mjs +35 -0
  17. package/dist/chunk-OBKEW4AQ.mjs +91 -0
  18. package/dist/chunk-QHMIK7U3.mjs +24 -0
  19. package/dist/chunk-QVOSGLUO.mjs +36 -0
  20. package/dist/chunk-UCAW3RTZ.mjs +47 -0
  21. package/dist/chunk-VKN2AMCW.mjs +57 -0
  22. package/dist/index.d.mts +81 -0
  23. package/dist/index.d.ts +81 -0
  24. package/dist/index.js +895 -0
  25. package/dist/index.mjs +95 -0
  26. package/dist/magic-string.es-6D2DRE4K.mjs +1325 -0
  27. package/dist/resources/api-keys/api-keys.test.d.mts +2 -0
  28. package/dist/resources/api-keys/api-keys.test.d.ts +2 -0
  29. package/dist/resources/api-keys/api-keys.test.js +19881 -0
  30. package/dist/resources/api-keys/api-keys.test.mjs +130 -0
  31. package/dist/resources/api-keys/index.d.mts +45 -0
  32. package/dist/resources/api-keys/index.d.ts +45 -0
  33. package/dist/resources/api-keys/index.js +64 -0
  34. package/dist/resources/api-keys/index.mjs +9 -0
  35. package/dist/resources/available/available.test.d.mts +2 -0
  36. package/dist/resources/available/available.test.d.ts +2 -0
  37. package/dist/resources/available/available.test.js +19877 -0
  38. package/dist/resources/available/available.test.mjs +122 -0
  39. package/dist/resources/available/index.d.mts +25 -0
  40. package/dist/resources/available/index.d.ts +25 -0
  41. package/dist/resources/available/index.js +39 -0
  42. package/dist/resources/available/index.mjs +9 -0
  43. package/dist/resources/bank-accounts/bank-accounts.test.d.mts +2 -0
  44. package/dist/resources/bank-accounts/bank-accounts.test.d.ts +2 -0
  45. package/dist/resources/bank-accounts/bank-accounts.test.js +20173 -0
  46. package/dist/resources/bank-accounts/bank-accounts.test.mjs +418 -0
  47. package/dist/resources/bank-accounts/index.d.mts +414 -0
  48. package/dist/resources/bank-accounts/index.d.ts +414 -0
  49. package/dist/resources/bank-accounts/index.js +227 -0
  50. package/dist/resources/bank-accounts/index.mjs +9 -0
  51. package/dist/resources/instances/index.d.mts +42 -0
  52. package/dist/resources/instances/index.d.ts +42 -0
  53. package/dist/resources/instances/index.js +75 -0
  54. package/dist/resources/instances/index.mjs +9 -0
  55. package/dist/resources/instances/instances.test.d.mts +2 -0
  56. package/dist/resources/instances/instances.test.d.ts +2 -0
  57. package/dist/resources/instances/instances.test.js +19873 -0
  58. package/dist/resources/instances/instances.test.mjs +118 -0
  59. package/dist/resources/partner-fees/index.d.mts +65 -0
  60. package/dist/resources/partner-fees/index.d.ts +65 -0
  61. package/dist/resources/partner-fees/index.js +69 -0
  62. package/dist/resources/partner-fees/index.mjs +9 -0
  63. package/dist/resources/partner-fees/partner-fees.test.d.mts +2 -0
  64. package/dist/resources/partner-fees/partner-fees.test.d.ts +2 -0
  65. package/dist/resources/partner-fees/partner-fees.test.js +19889 -0
  66. package/dist/resources/partner-fees/partner-fees.test.mjs +134 -0
  67. package/dist/resources/payins/index.d.mts +200 -0
  68. package/dist/resources/payins/index.d.ts +200 -0
  69. package/dist/resources/payins/index.js +75 -0
  70. package/dist/resources/payins/index.mjs +9 -0
  71. package/dist/resources/payins/payins-quotes.test.d.mts +2 -0
  72. package/dist/resources/payins/payins-quotes.test.d.ts +2 -0
  73. package/dist/resources/payins/payins-quotes.test.js +19852 -0
  74. package/dist/resources/payins/payins-quotes.test.mjs +97 -0
  75. package/dist/resources/payins/payins.test.d.mts +2 -0
  76. package/dist/resources/payins/payins.test.d.ts +2 -0
  77. package/dist/resources/payins/payins.test.js +20268 -0
  78. package/dist/resources/payins/payins.test.mjs +513 -0
  79. package/dist/resources/payins/quotes.d.mts +45 -0
  80. package/dist/resources/payins/quotes.d.ts +45 -0
  81. package/dist/resources/payins/quotes.js +63 -0
  82. package/dist/resources/payins/quotes.mjs +9 -0
  83. package/dist/resources/payouts/index.d.mts +155 -0
  84. package/dist/resources/payouts/index.d.ts +155 -0
  85. package/dist/resources/payouts/index.js +93 -0
  86. package/dist/resources/payouts/index.mjs +9 -0
  87. package/dist/resources/payouts/payouts.test.d.mts +2 -0
  88. package/dist/resources/payouts/payouts.test.d.ts +2 -0
  89. package/dist/resources/payouts/payouts.test.js +20346 -0
  90. package/dist/resources/payouts/payouts.test.mjs +591 -0
  91. package/dist/resources/quotes/index.d.mts +59 -0
  92. package/dist/resources/quotes/index.d.ts +59 -0
  93. package/dist/resources/quotes/index.js +63 -0
  94. package/dist/resources/quotes/index.mjs +9 -0
  95. package/dist/resources/quotes/quotes.test.d.mts +2 -0
  96. package/dist/resources/quotes/quotes.test.d.ts +2 -0
  97. package/dist/resources/quotes/quotes.test.js +19866 -0
  98. package/dist/resources/quotes/quotes.test.mjs +111 -0
  99. package/dist/resources/receivers/index.d.mts +205 -0
  100. package/dist/resources/receivers/index.d.ts +205 -0
  101. package/dist/resources/receivers/index.js +85 -0
  102. package/dist/resources/receivers/index.mjs +9 -0
  103. package/dist/resources/receivers/receivers.test.d.mts +2 -0
  104. package/dist/resources/receivers/receivers.test.d.ts +2 -0
  105. package/dist/resources/receivers/receivers.test.js +20145 -0
  106. package/dist/resources/receivers/receivers.test.mjs +390 -0
  107. package/dist/resources/virtual-accounts/index.d.mts +58 -0
  108. package/dist/resources/virtual-accounts/index.d.ts +58 -0
  109. package/dist/resources/virtual-accounts/index.js +79 -0
  110. package/dist/resources/virtual-accounts/index.mjs +9 -0
  111. package/dist/resources/virtual-accounts/virtual-accounts.test.d.mts +2 -0
  112. package/dist/resources/virtual-accounts/virtual-accounts.test.d.ts +2 -0
  113. package/dist/resources/virtual-accounts/virtual-accounts.test.js +19902 -0
  114. package/dist/resources/virtual-accounts/virtual-accounts.test.mjs +147 -0
  115. package/dist/resources/wallets/blockchain.d.mts +83 -0
  116. package/dist/resources/wallets/blockchain.d.ts +83 -0
  117. package/dist/resources/wallets/blockchain.js +105 -0
  118. package/dist/resources/wallets/blockchain.mjs +9 -0
  119. package/dist/resources/wallets/blockchain.test.d.mts +2 -0
  120. package/dist/resources/wallets/blockchain.test.d.ts +2 -0
  121. package/dist/resources/wallets/blockchain.test.js +19897 -0
  122. package/dist/resources/wallets/blockchain.test.mjs +142 -0
  123. package/dist/resources/wallets/offramp.d.mts +46 -0
  124. package/dist/resources/wallets/offramp.d.ts +46 -0
  125. package/dist/resources/wallets/offramp.js +77 -0
  126. package/dist/resources/wallets/offramp.mjs +9 -0
  127. package/dist/resources/wallets/offramp.test.d.mts +2 -0
  128. package/dist/resources/wallets/offramp.test.d.ts +2 -0
  129. package/dist/resources/wallets/offramp.test.js +19872 -0
  130. package/dist/resources/wallets/offramp.test.mjs +117 -0
  131. package/dist/resources/webhooks/index.d.mts +49 -0
  132. package/dist/resources/webhooks/index.d.ts +49 -0
  133. package/dist/resources/webhooks/index.js +74 -0
  134. package/dist/resources/webhooks/index.mjs +9 -0
  135. package/dist/resources/webhooks/webhooks.test.d.mts +2 -0
  136. package/dist/resources/webhooks/webhooks.test.d.ts +2 -0
  137. package/dist/resources/webhooks/webhooks.test.js +19878 -0
  138. package/dist/resources/webhooks/webhooks.test.mjs +123 -0
  139. package/package.json +65 -0
@@ -0,0 +1,349 @@
1
+ type BlindpayApiResponse<T> = BlindpayErrorResponse | BlindpaySuccessResponse<T>
2
+
3
+ type ErrorResponse = {
4
+ message: string;
5
+ }
6
+
7
+ type BlindpayErrorResponse = {
8
+ data: null
9
+ error: ErrorResponse;
10
+ }
11
+
12
+ type BlindpaySuccessResponse<T> = {
13
+ data: T;
14
+ error: null;
15
+ }
16
+
17
+ type CurrencyType = "sender" | "receiver";
18
+
19
+ type Network = "base" | "sepolia" | "arbitrum_sepolia" | "base_sepolia" | "arbitrum" | "polygon" | "polygon_amoy" | "ethereum" | "stellar" | "stellar_testnet" | "tron"
20
+
21
+ type StablecoinToken = "USDC" | "USDT" | "USDB"
22
+
23
+ type TransactionDocumentType = "invoice" | "purchase_order" | "delivery_slip" | "contract" | "customs_declaration" | "bill_of_lading" | "others";
24
+
25
+ type BankAccountType = "checking" | "savings";
26
+
27
+ type Currency = "USDC" | "USDT" | "USDB" | "BRL" | "USD" | "MXN" | "COP" | "ARS";
28
+
29
+ type Rail = "wire" | "ach" | "pix" | "spei_bitso" | "transfers_bitso" | "ach_cop_bitso" | "international_swift" | "rtp";
30
+
31
+ type AccountClass = "individual" | "business";
32
+
33
+ type TransactionStatus = "refunded" | "processing" | "completed" | "failed" | "on_hold";
34
+
35
+ type Country =
36
+ | "AF"
37
+ | "AL"
38
+ | "DZ"
39
+ | "AS"
40
+ | "AD"
41
+ | "AO"
42
+ | "AI"
43
+ | "AQ"
44
+ | "AG"
45
+ | "AR"
46
+ | "AM"
47
+ | "AW"
48
+ | "AU"
49
+ | "AT"
50
+ | "AZ"
51
+ | "BS"
52
+ | "BH"
53
+ | "BD"
54
+ | "BB"
55
+ | "BY"
56
+ | "BE"
57
+ | "BZ"
58
+ | "BJ"
59
+ | "BM"
60
+ | "BT"
61
+ | "BO"
62
+ | "BQ"
63
+ | "BA"
64
+ | "BW"
65
+ | "BV"
66
+ | "BR"
67
+ | "IO"
68
+ | "BN"
69
+ | "BG"
70
+ | "BF"
71
+ | "BI"
72
+ | "CV"
73
+ | "KH"
74
+ | "CM"
75
+ | "CA"
76
+ | "KY"
77
+ | "CF"
78
+ | "TD"
79
+ | "CL"
80
+ | "CN"
81
+ | "CX"
82
+ | "CC"
83
+ | "CO"
84
+ | "KM"
85
+ | "CD"
86
+ | "CG"
87
+ | "CK"
88
+ | "CR"
89
+ | "HR"
90
+ | "CU"
91
+ | "CW"
92
+ | "CY"
93
+ | "CZ"
94
+ | "CI"
95
+ | "DK"
96
+ | "DJ"
97
+ | "DM"
98
+ | "DO"
99
+ | "EC"
100
+ | "EG"
101
+ | "SV"
102
+ | "GQ"
103
+ | "ER"
104
+ | "EE"
105
+ | "SZ"
106
+ | "ET"
107
+ | "FK"
108
+ | "FO"
109
+ | "FJ"
110
+ | "FI"
111
+ | "FR"
112
+ | "GF"
113
+ | "PF"
114
+ | "TF"
115
+ | "GA"
116
+ | "GM"
117
+ | "GE"
118
+ | "DE"
119
+ | "GH"
120
+ | "GI"
121
+ | "GR"
122
+ | "GL"
123
+ | "GD"
124
+ | "GP"
125
+ | "GU"
126
+ | "GT"
127
+ | "GG"
128
+ | "GN"
129
+ | "GW"
130
+ | "GY"
131
+ | "HT"
132
+ | "HM"
133
+ | "VA"
134
+ | "HN"
135
+ | "HK"
136
+ | "HU"
137
+ | "IS"
138
+ | "IN"
139
+ | "ID"
140
+ | "IR"
141
+ | "IQ"
142
+ | "IE"
143
+ | "IM"
144
+ | "IL"
145
+ | "IT"
146
+ | "JM"
147
+ | "JP"
148
+ | "JE"
149
+ | "JO"
150
+ | "KZ"
151
+ | "KE"
152
+ | "KI"
153
+ | "KP"
154
+ | "KR"
155
+ | "KW"
156
+ | "KG"
157
+ | "LA"
158
+ | "LV"
159
+ | "LB"
160
+ | "LS"
161
+ | "LR"
162
+ | "LY"
163
+ | "LI"
164
+ | "LT"
165
+ | "LU"
166
+ | "MO"
167
+ | "MG"
168
+ | "MW"
169
+ | "MY"
170
+ | "MV"
171
+ | "ML"
172
+ | "MT"
173
+ | "MH"
174
+ | "MQ"
175
+ | "MR"
176
+ | "MU"
177
+ | "YT"
178
+ | "MX"
179
+ | "FM"
180
+ | "MD"
181
+ | "MC"
182
+ | "MN"
183
+ | "ME"
184
+ | "MS"
185
+ | "MA"
186
+ | "MZ"
187
+ | "MM"
188
+ | "NA"
189
+ | "NR"
190
+ | "NP"
191
+ | "NL"
192
+ | "NC"
193
+ | "NZ"
194
+ | "NI"
195
+ | "NE"
196
+ | "NG"
197
+ | "NU"
198
+ | "NF"
199
+ | "MP"
200
+ | "NO"
201
+ | "OM"
202
+ | "PK"
203
+ | "PW"
204
+ | "PS"
205
+ | "PA"
206
+ | "PG"
207
+ | "PY"
208
+ | "PE"
209
+ | "PH"
210
+ | "PN"
211
+ | "PL"
212
+ | "PT"
213
+ | "PR"
214
+ | "QA"
215
+ | "MK"
216
+ | "RO"
217
+ | "RU"
218
+ | "RW"
219
+ | "RE"
220
+ | "BL"
221
+ | "SH"
222
+ | "KN"
223
+ | "LC"
224
+ | "MF"
225
+ | "PM"
226
+ | "VC"
227
+ | "WS"
228
+ | "SM"
229
+ | "ST"
230
+ | "SA"
231
+ | "SN"
232
+ | "RS"
233
+ | "SC"
234
+ | "SL"
235
+ | "SG"
236
+ | "SX"
237
+ | "SK"
238
+ | "SI"
239
+ | "SB"
240
+ | "SO"
241
+ | "ZA"
242
+ | "GS"
243
+ | "SS"
244
+ | "ES"
245
+ | "LK"
246
+ | "SD"
247
+ | "SR"
248
+ | "SJ"
249
+ | "SE"
250
+ | "CH"
251
+ | "SY"
252
+ | "TW"
253
+ | "TJ"
254
+ | "TZ"
255
+ | "TH"
256
+ | "TL"
257
+ | "TG"
258
+ | "TK"
259
+ | "TO"
260
+ | "TT"
261
+ | "TN"
262
+ | "TR"
263
+ | "TM"
264
+ | "TC"
265
+ | "TV"
266
+ | "UG"
267
+ | "UA"
268
+ | "AE"
269
+ | "GB"
270
+ | "UM"
271
+ | "US"
272
+ | "UY"
273
+ | "UZ"
274
+ | "VU"
275
+ | "VE"
276
+ | "VN"
277
+ | "VG"
278
+ | "VI"
279
+ | "WF"
280
+ | "EH"
281
+ | "YE"
282
+ | "ZM"
283
+ | "ZW"
284
+ | "AX";
285
+
286
+ type PaginationParams = {
287
+ limit?: '10' | '50' | '100' | '200' | '1000';
288
+ offset?: '0' | '10' | '50' | '100' | '200' | '1000';
289
+ starting_after?: string;
290
+ ending_before?: string;
291
+ }
292
+
293
+ type PaginationMetadata = {
294
+ has_more: boolean;
295
+ next_page: number;
296
+ prev_page: number;
297
+ }
298
+
299
+ type TrackingTransaction = {
300
+ step: string;
301
+ status: string;
302
+ transaction_hash: string;
303
+ completed_at: string;
304
+ };
305
+
306
+ type TrackingPayment = {
307
+ step: string;
308
+ provider_name: string;
309
+ provider_transaction_id: string;
310
+ provider_status: string;
311
+ estimated_time_of_arrival: string;
312
+ completed_at: string;
313
+ };
314
+
315
+ type TrackingLiquidity = {
316
+ step: string;
317
+ provider_transaction_id: string;
318
+ provider_status: string;
319
+ estimated_time_of_arrival: string;
320
+ completed_at: string;
321
+ };
322
+
323
+ type TrackingComplete = {
324
+ step: string;
325
+ status: string;
326
+ transaction_hash: string;
327
+ completed_at: string;
328
+ };
329
+
330
+ type TrackingPartnerFee = {
331
+ step: string;
332
+ transaction_hash: string;
333
+ completed_at: string;
334
+ };
335
+
336
+ /**
337
+ *
338
+ * Internal API client interface that resources use to make HTTP requests.
339
+ * This interface is not exposed to SDK users.
340
+ */
341
+ interface InternalApiClient {
342
+ get: <T>(path: string) => Promise<BlindpayApiResponse<T>>;
343
+ post: <T>(path: string, body: Record<string, unknown>) => Promise<BlindpayApiResponse<T>>;
344
+ put: <T>(path: string, body: Record<string, unknown>) => Promise<BlindpayApiResponse<T>>;
345
+ patch: <T>(path: string, body: Record<string, unknown>) => Promise<BlindpayApiResponse<T>>;
346
+ delete: <T>(path: string, body?: Record<string, unknown>) => Promise<BlindpayApiResponse<T>>;
347
+ }
348
+
349
+ export type { AccountClass as A, BlindpayApiResponse as B, Country as C, InternalApiClient as I, Network as N, PaginationParams as P, Rail as R, StablecoinToken as S, TransactionStatus as T, BankAccountType as a, TrackingTransaction as b, TrackingPayment as c, TrackingComplete as d, TrackingPartnerFee as e, PaginationMetadata as f, CurrencyType as g, Currency as h, TrackingLiquidity as i, TransactionDocumentType as j };
@@ -0,0 +1,212 @@
1
+ import {
2
+ __esm
3
+ } from "./chunk-OBKEW4AQ.mjs";
4
+
5
+ // src/resources/bank-accounts/index.ts
6
+ function createBankAccountsResource(client) {
7
+ return {
8
+ list({
9
+ instanceId,
10
+ receiverId
11
+ }) {
12
+ return client.get(`/instances/${instanceId}/receivers/${receiverId}/bank-accounts`);
13
+ },
14
+ createPix({
15
+ instanceId,
16
+ receiverId,
17
+ name,
18
+ pix_key
19
+ }) {
20
+ return client.post(`/instances/${instanceId}/receivers/${receiverId}/bank-accounts`, {
21
+ type: "pix",
22
+ name,
23
+ pix_key
24
+ });
25
+ },
26
+ createArgentinaTransfers({
27
+ instanceId,
28
+ receiverId,
29
+ beneficiary_name,
30
+ name,
31
+ transfers_account,
32
+ transfers_type
33
+ }) {
34
+ return client.post(`/instances/${instanceId}/receivers/${receiverId}/bank-accounts`, {
35
+ type: "transfers_bitso",
36
+ beneficiary_name,
37
+ name,
38
+ transfers_account,
39
+ transfers_type
40
+ });
41
+ },
42
+ createSpei({
43
+ instanceId,
44
+ receiverId,
45
+ beneficiary_name,
46
+ name,
47
+ spei_clabe,
48
+ spei_institution_code,
49
+ spei_protocol
50
+ }) {
51
+ return client.post(`/instances/${instanceId}/receivers/${receiverId}/bank-accounts`, {
52
+ type: "spei_bitso",
53
+ beneficiary_name,
54
+ name,
55
+ spei_clabe,
56
+ spei_institution_code,
57
+ spei_protocol
58
+ });
59
+ },
60
+ createColombiaAch({
61
+ instanceId,
62
+ receiverId,
63
+ name,
64
+ account_type,
65
+ ach_cop_beneficiary_first_name,
66
+ ach_cop_beneficiary_last_name,
67
+ ach_cop_document_id,
68
+ ach_cop_document_type,
69
+ ach_cop_email,
70
+ ach_cop_bank_code,
71
+ ach_cop_bank_account
72
+ }) {
73
+ return client.post(`/instances/${instanceId}/receivers/${receiverId}/bank-accounts`, {
74
+ type: "ach_cop_bitso",
75
+ name,
76
+ account_type,
77
+ ach_cop_beneficiary_first_name,
78
+ ach_cop_beneficiary_last_name,
79
+ ach_cop_document_id,
80
+ ach_cop_document_type,
81
+ ach_cop_email,
82
+ ach_cop_bank_code,
83
+ ach_cop_bank_account
84
+ });
85
+ },
86
+ createAch({
87
+ instanceId,
88
+ receiverId,
89
+ name,
90
+ account_class,
91
+ account_number,
92
+ account_type,
93
+ beneficiary_name,
94
+ routing_number
95
+ }) {
96
+ return client.post(`/instances/${instanceId}/receivers/${receiverId}/bank-accounts`, {
97
+ type: "ach",
98
+ name,
99
+ account_class,
100
+ account_number,
101
+ account_type,
102
+ beneficiary_name,
103
+ routing_number
104
+ });
105
+ },
106
+ createWire({
107
+ instanceId,
108
+ receiverId,
109
+ name,
110
+ account_number,
111
+ beneficiary_name,
112
+ routing_number,
113
+ address_line_1,
114
+ address_line_2,
115
+ city,
116
+ state_province_region,
117
+ country,
118
+ postal_code
119
+ }) {
120
+ return client.post(`/instances/${instanceId}/receivers/${receiverId}/bank-accounts`, {
121
+ type: "wire",
122
+ name,
123
+ account_number,
124
+ beneficiary_name,
125
+ routing_number,
126
+ address_line_1,
127
+ address_line_2,
128
+ city,
129
+ state_province_region,
130
+ country,
131
+ postal_code
132
+ });
133
+ },
134
+ createInternationalSwift({
135
+ instanceId,
136
+ receiverId,
137
+ name,
138
+ swift_account_holder_name,
139
+ swift_account_number_iban,
140
+ swift_bank_address_line_1,
141
+ swift_bank_address_line_2,
142
+ swift_bank_city,
143
+ swift_bank_country,
144
+ swift_bank_name,
145
+ swift_bank_postal_code,
146
+ swift_bank_state_province_region,
147
+ swift_beneficiary_address_line_1,
148
+ swift_beneficiary_address_line_2,
149
+ swift_beneficiary_city,
150
+ swift_beneficiary_country,
151
+ swift_beneficiary_postal_code,
152
+ swift_beneficiary_state_province_region,
153
+ swift_code_bic,
154
+ swift_intermediary_bank_account_number_iban,
155
+ swift_intermediary_bank_country,
156
+ swift_intermediary_bank_name,
157
+ swift_intermediary_bank_swift_code_bic
158
+ }) {
159
+ return client.post(`/instances/${instanceId}/receivers/${receiverId}/bank-accounts`, {
160
+ type: "international_swift",
161
+ name,
162
+ swift_account_holder_name,
163
+ swift_account_number_iban,
164
+ swift_bank_address_line_1,
165
+ swift_bank_address_line_2,
166
+ swift_bank_city,
167
+ swift_bank_country,
168
+ swift_bank_name,
169
+ swift_bank_postal_code,
170
+ swift_bank_state_province_region,
171
+ swift_beneficiary_address_line_1,
172
+ swift_beneficiary_address_line_2,
173
+ swift_beneficiary_city,
174
+ swift_beneficiary_country,
175
+ swift_beneficiary_postal_code,
176
+ swift_beneficiary_state_province_region,
177
+ swift_code_bic,
178
+ swift_intermediary_bank_account_number_iban,
179
+ swift_intermediary_bank_country,
180
+ swift_intermediary_bank_name,
181
+ swift_intermediary_bank_swift_code_bic
182
+ });
183
+ },
184
+ get({
185
+ instanceId,
186
+ receiverId,
187
+ id
188
+ }) {
189
+ return client.get(
190
+ `/instances/${instanceId}/receivers/${receiverId}/bank-accounts/${id}`
191
+ );
192
+ },
193
+ delete({
194
+ instanceId,
195
+ receiverId,
196
+ id
197
+ }) {
198
+ return client.delete(
199
+ `/instances/${instanceId}/receivers/${receiverId}/bank-accounts/${id}`
200
+ );
201
+ }
202
+ };
203
+ }
204
+ var init_bank_accounts = __esm({
205
+ "src/resources/bank-accounts/index.ts"() {
206
+ }
207
+ });
208
+
209
+ export {
210
+ createBankAccountsResource,
211
+ init_bank_accounts
212
+ };
@@ -0,0 +1,41 @@
1
+ import {
2
+ __esm,
3
+ __objRest
4
+ } from "./chunk-OBKEW4AQ.mjs";
5
+
6
+ // src/resources/partner-fees/index.ts
7
+ function createPartnerFeesResource(client) {
8
+ return {
9
+ list({
10
+ instanceId
11
+ }) {
12
+ return client.get(`/instances/${instanceId}/partner-fees`);
13
+ },
14
+ create(_a) {
15
+ var _b = _a, {
16
+ instanceId
17
+ } = _b, data = __objRest(_b, [
18
+ "instanceId"
19
+ ]);
20
+ return client.post(`/instances/${instanceId}/partner-fees`, data);
21
+ },
22
+ get({
23
+ instanceId,
24
+ id
25
+ }) {
26
+ return client.get(`/instances/${instanceId}/partner-fees/${id}`);
27
+ },
28
+ delete({ instanceId, id }) {
29
+ return client.delete(`/instances/${instanceId}/partner-fees/${id}`);
30
+ }
31
+ };
32
+ }
33
+ var init_partner_fees = __esm({
34
+ "src/resources/partner-fees/index.ts"() {
35
+ }
36
+ });
37
+
38
+ export {
39
+ createPartnerFeesResource,
40
+ init_partner_fees
41
+ };
@@ -0,0 +1,46 @@
1
+ import {
2
+ __esm,
3
+ __objRest
4
+ } from "./chunk-OBKEW4AQ.mjs";
5
+
6
+ // src/resources/webhooks/index.ts
7
+ function createWebhookEndpointsResource(client) {
8
+ return {
9
+ list({
10
+ instanceId
11
+ }) {
12
+ return client.get(`/instances/${instanceId}/webhook-endpoints`);
13
+ },
14
+ create(_a) {
15
+ var _b = _a, {
16
+ instanceId
17
+ } = _b, data = __objRest(_b, [
18
+ "instanceId"
19
+ ]);
20
+ return client.post(`/instances/${instanceId}/webhook-endpoints`, data);
21
+ },
22
+ delete({ instanceId, id }) {
23
+ return client.delete(`/instances/${instanceId}/webhook-endpoints/${id}`);
24
+ },
25
+ getSecret({
26
+ instanceId,
27
+ id
28
+ }) {
29
+ return client.get(`/instances/${instanceId}/webhook-endpoints/${id}/secret`);
30
+ },
31
+ getPortalAccessUrl({
32
+ instanceId
33
+ }) {
34
+ return client.get(`/instances/${instanceId}/webhook-endpoints/portal-access`);
35
+ }
36
+ };
37
+ }
38
+ var init_webhooks = __esm({
39
+ "src/resources/webhooks/index.ts"() {
40
+ }
41
+ });
42
+
43
+ export {
44
+ createWebhookEndpointsResource,
45
+ init_webhooks
46
+ };