@blindpay/node 3.10.0 → 4.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 (78) hide show
  1. package/dist/{chunk-7PWF4J3Z.mjs → chunk-ECYZLQUR.mjs} +12 -12
  2. package/dist/{chunk-N4F3FBNB.mjs → chunk-L23IOSI3.mjs} +40 -40
  3. package/dist/chunk-SLKVEQUY.mjs +76 -0
  4. package/dist/{chunk-LEPGLH7Q.mjs → chunk-SWTOSLUI.mjs} +10 -10
  5. package/dist/{chunk-KMU6V4LW.mjs → chunk-TVOMVVOO.mjs} +11 -11
  6. package/dist/{chunk-FG25JHDX.mjs → chunk-VAVDEV6P.mjs} +14 -14
  7. package/dist/{chunk-QGNLMN6Z.mjs → chunk-YHI3J2CL.mjs} +7 -7
  8. package/dist/index.d.mts +4 -4
  9. package/dist/index.d.ts +4 -4
  10. package/dist/index.js +148 -141
  11. package/dist/index.mjs +12 -12
  12. package/dist/resources/api-keys/api-keys.test.js +146 -139
  13. package/dist/resources/api-keys/api-keys.test.mjs +7 -7
  14. package/dist/resources/available/available.test.js +146 -139
  15. package/dist/resources/available/available.test.mjs +7 -7
  16. package/dist/resources/bank-accounts/bank-accounts.test.js +173 -166
  17. package/dist/resources/bank-accounts/bank-accounts.test.mjs +34 -34
  18. package/dist/resources/bank-accounts/index.d.mts +29 -29
  19. package/dist/resources/bank-accounts/index.d.ts +29 -29
  20. package/dist/resources/bank-accounts/index.js +40 -40
  21. package/dist/resources/bank-accounts/index.mjs +1 -1
  22. package/dist/resources/{receivers/receivers.test.js → customers/customers.test.js} +200 -193
  23. package/dist/resources/{receivers/receivers.test.mjs → customers/customers.test.mjs} +64 -64
  24. package/dist/resources/{receivers → customers}/index.d.mts +23 -23
  25. package/dist/resources/{receivers → customers}/index.d.ts +23 -23
  26. package/dist/resources/{receivers → customers}/index.js +32 -25
  27. package/dist/resources/customers/index.mjs +9 -0
  28. package/dist/resources/fees/fees.test.js +146 -139
  29. package/dist/resources/fees/fees.test.mjs +7 -7
  30. package/dist/resources/instances/instances.test.js +146 -139
  31. package/dist/resources/instances/instances.test.mjs +7 -7
  32. package/dist/resources/partner-fees/partner-fees.test.js +146 -139
  33. package/dist/resources/partner-fees/partner-fees.test.mjs +7 -7
  34. package/dist/resources/payins/payins-quotes.test.js +146 -139
  35. package/dist/resources/payins/payins-quotes.test.mjs +7 -7
  36. package/dist/resources/payins/payins.test.js +146 -139
  37. package/dist/resources/payins/payins.test.mjs +7 -7
  38. package/dist/resources/payouts/payouts.test.js +146 -139
  39. package/dist/resources/payouts/payouts.test.mjs +7 -7
  40. package/dist/resources/quotes/quotes.test.js +146 -139
  41. package/dist/resources/quotes/quotes.test.mjs +7 -7
  42. package/dist/resources/terms-of-service/terms-of-service.test.js +146 -139
  43. package/dist/resources/terms-of-service/terms-of-service.test.mjs +7 -7
  44. package/dist/resources/transfers/transfers.test.js +146 -139
  45. package/dist/resources/transfers/transfers.test.mjs +7 -7
  46. package/dist/resources/upload/upload.test.js +146 -139
  47. package/dist/resources/upload/upload.test.mjs +7 -7
  48. package/dist/resources/virtual-accounts/index.d.mts +7 -7
  49. package/dist/resources/virtual-accounts/index.d.ts +7 -7
  50. package/dist/resources/virtual-accounts/index.js +10 -10
  51. package/dist/resources/virtual-accounts/index.mjs +1 -1
  52. package/dist/resources/virtual-accounts/virtual-accounts.test.js +150 -143
  53. package/dist/resources/virtual-accounts/virtual-accounts.test.mjs +11 -11
  54. package/dist/resources/wallets/blockchain.d.mts +13 -13
  55. package/dist/resources/wallets/blockchain.d.ts +13 -13
  56. package/dist/resources/wallets/blockchain.js +14 -14
  57. package/dist/resources/wallets/blockchain.mjs +1 -1
  58. package/dist/resources/wallets/blockchain.test.js +154 -147
  59. package/dist/resources/wallets/blockchain.test.mjs +15 -15
  60. package/dist/resources/wallets/custodial.d.mts +9 -9
  61. package/dist/resources/wallets/custodial.d.ts +9 -9
  62. package/dist/resources/wallets/custodial.js +11 -11
  63. package/dist/resources/wallets/custodial.mjs +1 -1
  64. package/dist/resources/wallets/custodial.test.js +150 -143
  65. package/dist/resources/wallets/custodial.test.mjs +11 -11
  66. package/dist/resources/wallets/offramp.d.mts +7 -7
  67. package/dist/resources/wallets/offramp.d.ts +7 -7
  68. package/dist/resources/wallets/offramp.js +7 -7
  69. package/dist/resources/wallets/offramp.mjs +1 -1
  70. package/dist/resources/wallets/offramp.test.js +152 -145
  71. package/dist/resources/wallets/offramp.test.mjs +13 -13
  72. package/dist/resources/webhooks/webhooks.test.js +146 -139
  73. package/dist/resources/webhooks/webhooks.test.mjs +7 -7
  74. package/package.json +1 -1
  75. package/dist/chunk-YIZJM2GU.mjs +0 -69
  76. package/dist/resources/receivers/index.mjs +0 -9
  77. /package/dist/resources/{receivers/receivers.test.d.mts → customers/customers.test.d.mts} +0 -0
  78. /package/dist/resources/{receivers/receivers.test.d.ts → customers/customers.test.d.ts} +0 -0
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  createBlockchainWalletsResource,
3
3
  init_blockchain
4
- } from "./chunk-FG25JHDX.mjs";
4
+ } from "./chunk-VAVDEV6P.mjs";
5
5
  import {
6
6
  createCustodialWalletsResource,
7
7
  init_custodial
8
- } from "./chunk-KMU6V4LW.mjs";
8
+ } from "./chunk-TVOMVVOO.mjs";
9
9
  import {
10
10
  createOfframpWalletsResource,
11
11
  init_offramp
12
- } from "./chunk-QGNLMN6Z.mjs";
12
+ } from "./chunk-YHI3J2CL.mjs";
13
13
  import {
14
14
  createWebhookEndpointsResource,
15
15
  init_webhooks
@@ -25,7 +25,7 @@ import {
25
25
  import {
26
26
  createVirtualAccountsResource,
27
27
  init_virtual_accounts
28
- } from "./chunk-LEPGLH7Q.mjs";
28
+ } from "./chunk-SWTOSLUI.mjs";
29
29
  import {
30
30
  createPayinQuotesResource,
31
31
  init_quotes
@@ -38,14 +38,14 @@ import {
38
38
  createQuotesResource,
39
39
  init_quotes as init_quotes2
40
40
  } from "./chunk-TBTA7A2P.mjs";
41
- import {
42
- createReceiversResource,
43
- init_receivers
44
- } from "./chunk-YIZJM2GU.mjs";
45
41
  import {
46
42
  createTermsOfServiceResource,
47
43
  init_terms_of_service
48
44
  } from "./chunk-Z6EYX4D3.mjs";
45
+ import {
46
+ createCustomersResource,
47
+ init_customers
48
+ } from "./chunk-SLKVEQUY.mjs";
49
49
  import {
50
50
  createFeesResource,
51
51
  init_fees
@@ -73,7 +73,7 @@ import {
73
73
  import {
74
74
  createBankAccountsResource,
75
75
  init_bank_accounts
76
- } from "./chunk-N4F3FBNB.mjs";
76
+ } from "./chunk-L23IOSI3.mjs";
77
77
  import {
78
78
  __async,
79
79
  __esm,
@@ -85,7 +85,7 @@ import {
85
85
  var version;
86
86
  var init_package = __esm({
87
87
  "package.json"() {
88
- version = "3.10.0";
88
+ version = "4.0.0";
89
89
  }
90
90
  });
91
91
 
@@ -114,6 +114,7 @@ var init_client = __esm({
114
114
  init_api_keys();
115
115
  init_available();
116
116
  init_bank_accounts();
117
+ init_customers();
117
118
  init_fees();
118
119
  init_instances();
119
120
  init_partner_fees();
@@ -121,7 +122,6 @@ var init_client = __esm({
121
122
  init_quotes();
122
123
  init_payouts();
123
124
  init_quotes2();
124
- init_receivers();
125
125
  init_terms_of_service();
126
126
  init_transfers();
127
127
  init_upload();
@@ -175,7 +175,7 @@ var init_client = __esm({
175
175
  this.transfers = createTransfersResource(this.instanceId, this.api);
176
176
  this.fees = createFeesResource(this.instanceId, this.api);
177
177
  this.upload = createUploadResource(this.baseUrl, this.headers);
178
- this.receivers = __spreadProps(__spreadValues({}, createReceiversResource(this.instanceId, this.api)), {
178
+ this.customers = __spreadProps(__spreadValues({}, createCustomersResource(this.instanceId, this.api)), {
179
179
  bankAccounts: createBankAccountsResource(this.instanceId, this.api)
180
180
  });
181
181
  this.virtualAccounts = createVirtualAccountsResource(this.instanceId, this.api);
@@ -9,135 +9,135 @@ function createBankAccountsResource(instanceId, client) {
9
9
  return {
10
10
  list(_a) {
11
11
  var _b = _a, {
12
- receiver_id
12
+ customer_id
13
13
  } = _b, params = __objRest(_b, [
14
- "receiver_id"
14
+ "customer_id"
15
15
  ]);
16
16
  const queryParams = Object.keys(params).length ? `?${new URLSearchParams(params)}` : "";
17
17
  return client.get(
18
- `/instances/${instanceId}/receivers/${receiver_id}/bank-accounts${queryParams}`
18
+ `/instances/${instanceId}/customers/${customer_id}/bank-accounts${queryParams}`
19
19
  );
20
20
  },
21
21
  get({
22
- receiver_id,
22
+ customer_id,
23
23
  id
24
24
  }) {
25
25
  return client.get(
26
- `/instances/${instanceId}/receivers/${receiver_id}/bank-accounts/${id}`
26
+ `/instances/${instanceId}/customers/${customer_id}/bank-accounts/${id}`
27
27
  );
28
28
  },
29
- delete({ receiver_id, id }) {
29
+ delete({ customer_id, id }) {
30
30
  return client.delete(
31
- `/instances/${instanceId}/receivers/${receiver_id}/bank-accounts/${id}`
31
+ `/instances/${instanceId}/customers/${customer_id}/bank-accounts/${id}`
32
32
  );
33
33
  },
34
34
  createPix(_c) {
35
35
  var _d = _c, {
36
- receiver_id
36
+ customer_id
37
37
  } = _d, data = __objRest(_d, [
38
- "receiver_id"
38
+ "customer_id"
39
39
  ]);
40
- return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
40
+ return client.post(`/instances/${instanceId}/customers/${customer_id}/bank-accounts`, __spreadValues({
41
41
  type: "pix"
42
42
  }, data));
43
43
  },
44
44
  createPixSafe(_e) {
45
45
  var _f = _e, {
46
- receiver_id
46
+ customer_id
47
47
  } = _f, data = __objRest(_f, [
48
- "receiver_id"
48
+ "customer_id"
49
49
  ]);
50
- return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
50
+ return client.post(`/instances/${instanceId}/customers/${customer_id}/bank-accounts`, __spreadValues({
51
51
  type: "pix_safe"
52
52
  }, data));
53
53
  },
54
54
  createArgentinaTransfers(_g) {
55
55
  var _h = _g, {
56
- receiver_id
56
+ customer_id
57
57
  } = _h, data = __objRest(_h, [
58
- "receiver_id"
58
+ "customer_id"
59
59
  ]);
60
- return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
60
+ return client.post(`/instances/${instanceId}/customers/${customer_id}/bank-accounts`, __spreadValues({
61
61
  type: "transfers_bitso"
62
62
  }, data));
63
63
  },
64
64
  createSpei(_i) {
65
65
  var _j = _i, {
66
- receiver_id
66
+ customer_id
67
67
  } = _j, data = __objRest(_j, [
68
- "receiver_id"
68
+ "customer_id"
69
69
  ]);
70
- return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
70
+ return client.post(`/instances/${instanceId}/customers/${customer_id}/bank-accounts`, __spreadValues({
71
71
  type: "spei_bitso"
72
72
  }, data));
73
73
  },
74
74
  createColombiaAch(_k) {
75
75
  var _l = _k, {
76
- receiver_id
76
+ customer_id
77
77
  } = _l, data = __objRest(_l, [
78
- "receiver_id"
78
+ "customer_id"
79
79
  ]);
80
- return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
80
+ return client.post(`/instances/${instanceId}/customers/${customer_id}/bank-accounts`, __spreadValues({
81
81
  type: "ach_cop_bitso"
82
82
  }, data));
83
83
  },
84
84
  createAch(_m) {
85
85
  var _n = _m, {
86
- receiver_id
86
+ customer_id
87
87
  } = _n, data = __objRest(_n, [
88
- "receiver_id"
88
+ "customer_id"
89
89
  ]);
90
- return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
90
+ return client.post(`/instances/${instanceId}/customers/${customer_id}/bank-accounts`, __spreadValues({
91
91
  type: "ach"
92
92
  }, data));
93
93
  },
94
94
  createWire(_o) {
95
95
  var _p = _o, {
96
- receiver_id
96
+ customer_id
97
97
  } = _p, data = __objRest(_p, [
98
- "receiver_id"
98
+ "customer_id"
99
99
  ]);
100
- return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
100
+ return client.post(`/instances/${instanceId}/customers/${customer_id}/bank-accounts`, __spreadValues({
101
101
  type: "wire"
102
102
  }, data));
103
103
  },
104
104
  createInternationalSwift(_q) {
105
105
  var _r = _q, {
106
- receiver_id
106
+ customer_id
107
107
  } = _r, data = __objRest(_r, [
108
- "receiver_id"
108
+ "customer_id"
109
109
  ]);
110
- return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
110
+ return client.post(`/instances/${instanceId}/customers/${customer_id}/bank-accounts`, __spreadValues({
111
111
  type: "international_swift"
112
112
  }, data));
113
113
  },
114
114
  createRtp(_s) {
115
115
  var _t = _s, {
116
- receiver_id
116
+ customer_id
117
117
  } = _t, data = __objRest(_t, [
118
- "receiver_id"
118
+ "customer_id"
119
119
  ]);
120
- return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
120
+ return client.post(`/instances/${instanceId}/customers/${customer_id}/bank-accounts`, __spreadValues({
121
121
  type: "rtp"
122
122
  }, data));
123
123
  },
124
124
  createTed(_u) {
125
125
  var _v = _u, {
126
- receiver_id
126
+ customer_id
127
127
  } = _v, data = __objRest(_v, [
128
- "receiver_id"
128
+ "customer_id"
129
129
  ]);
130
- return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
130
+ return client.post(`/instances/${instanceId}/customers/${customer_id}/bank-accounts`, __spreadValues({
131
131
  type: "ted"
132
132
  }, data));
133
133
  },
134
134
  createSepa(_w) {
135
135
  var _x = _w, {
136
- receiver_id
136
+ customer_id
137
137
  } = _x, data = __objRest(_x, [
138
- "receiver_id"
138
+ "customer_id"
139
139
  ]);
140
- return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
140
+ return client.post(`/instances/${instanceId}/customers/${customer_id}/bank-accounts`, __spreadValues({
141
141
  type: "sepa"
142
142
  }, data));
143
143
  }
@@ -0,0 +1,76 @@
1
+ import {
2
+ __esm,
3
+ __objRest,
4
+ __spreadValues
5
+ } from "./chunk-OBKEW4AQ.mjs";
6
+
7
+ // src/resources/customers/index.ts
8
+ function createCustomersResource(instanceId, client) {
9
+ return {
10
+ list(params) {
11
+ const wireParams = params ? Object.fromEntries(
12
+ Object.entries(params).map(([k, v]) => {
13
+ if (k === "customer_id") return ["receiver_id", v];
14
+ if (k === "customer_name") return ["receiver_name", v];
15
+ return [k, v];
16
+ })
17
+ ) : void 0;
18
+ const queryParams = wireParams ? `?${new URLSearchParams(wireParams)}` : "";
19
+ return client.get(`/instances/${instanceId}/customers${queryParams}`);
20
+ },
21
+ createIndividualWithStandardKYC(data) {
22
+ return client.post(`/instances/${instanceId}/customers`, __spreadValues({
23
+ kyc_type: "standard",
24
+ type: "individual"
25
+ }, data));
26
+ },
27
+ createIndividualWithEnhancedKYC(data) {
28
+ return client.post(`/instances/${instanceId}/customers`, __spreadValues({
29
+ kyc_type: "enhanced",
30
+ type: "individual"
31
+ }, data));
32
+ },
33
+ createBusinessWithStandardKYB(data) {
34
+ return client.post(`/instances/${instanceId}/customers`, __spreadValues({
35
+ kyc_type: "standard",
36
+ type: "business"
37
+ }, data));
38
+ },
39
+ get(customer_id) {
40
+ return client.get(`/instances/${instanceId}/customers/${customer_id}`);
41
+ },
42
+ update(_a) {
43
+ var _b = _a, { customer_id } = _b, data = __objRest(_b, ["customer_id"]);
44
+ return client.put(`/instances/${instanceId}/customers/${customer_id}`, data);
45
+ },
46
+ delete(customer_id) {
47
+ return client.delete(`/instances/${instanceId}/customers/${customer_id}`);
48
+ },
49
+ getLimits(customer_id) {
50
+ return client.get(`/instances/${instanceId}/limits/customers/${customer_id}`);
51
+ },
52
+ getLimitIncreaseRequests(customer_id) {
53
+ return client.get(`/instances/${instanceId}/customers/${customer_id}/limit-increase`);
54
+ },
55
+ requestLimitIncrease(_c) {
56
+ var _d = _c, {
57
+ customer_id
58
+ } = _d, data = __objRest(_d, [
59
+ "customer_id"
60
+ ]);
61
+ return client.post(
62
+ `/instances/${instanceId}/customers/${customer_id}/limit-increase`,
63
+ data
64
+ );
65
+ }
66
+ };
67
+ }
68
+ var init_customers = __esm({
69
+ "src/resources/customers/index.ts"() {
70
+ }
71
+ });
72
+
73
+ export {
74
+ createCustomersResource,
75
+ init_customers
76
+ };
@@ -6,38 +6,38 @@ import {
6
6
  // src/resources/virtual-accounts/index.ts
7
7
  function createVirtualAccountsResource(instanceId, client) {
8
8
  return {
9
- list(receiver_id) {
10
- return client.get(`/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts`);
9
+ list(customer_id) {
10
+ return client.get(`/instances/${instanceId}/customers/${customer_id}/virtual-accounts`);
11
11
  },
12
12
  get({
13
- receiver_id,
13
+ customer_id,
14
14
  id
15
15
  }) {
16
16
  return client.get(
17
- `/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts/${id}`
17
+ `/instances/${instanceId}/customers/${customer_id}/virtual-accounts/${id}`
18
18
  );
19
19
  },
20
20
  create(_a) {
21
21
  var _b = _a, {
22
- receiver_id
22
+ customer_id
23
23
  } = _b, data = __objRest(_b, [
24
- "receiver_id"
24
+ "customer_id"
25
25
  ]);
26
26
  return client.post(
27
- `/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts`,
27
+ `/instances/${instanceId}/customers/${customer_id}/virtual-accounts`,
28
28
  data
29
29
  );
30
30
  },
31
31
  update(_c) {
32
32
  var _d = _c, {
33
- receiver_id,
33
+ customer_id,
34
34
  id
35
35
  } = _d, data = __objRest(_d, [
36
- "receiver_id",
36
+ "customer_id",
37
37
  "id"
38
38
  ]);
39
39
  return client.put(
40
- `/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts/${id}`,
40
+ `/instances/${instanceId}/customers/${customer_id}/virtual-accounts/${id}`,
41
41
  data
42
42
  );
43
43
  }
@@ -6,36 +6,36 @@ import {
6
6
  // src/resources/wallets/custodial.ts
7
7
  function createCustodialWalletsResource(instanceId, client) {
8
8
  return {
9
- list(receiver_id) {
10
- return client.get(`/instances/${instanceId}/receivers/${receiver_id}/wallets`);
9
+ list(customer_id) {
10
+ return client.get(`/instances/${instanceId}/customers/${customer_id}/wallets`);
11
11
  },
12
12
  get({
13
- receiver_id,
13
+ customer_id,
14
14
  id
15
15
  }) {
16
- return client.get(`/instances/${instanceId}/receivers/${receiver_id}/wallets/${id}`);
16
+ return client.get(`/instances/${instanceId}/customers/${customer_id}/wallets/${id}`);
17
17
  },
18
18
  create(_a) {
19
19
  var _b = _a, {
20
- receiver_id
20
+ customer_id
21
21
  } = _b, data = __objRest(_b, [
22
- "receiver_id"
22
+ "customer_id"
23
23
  ]);
24
- return client.post(`/instances/${instanceId}/receivers/${receiver_id}/wallets`, data);
24
+ return client.post(`/instances/${instanceId}/customers/${customer_id}/wallets`, data);
25
25
  },
26
26
  getBalance({
27
- receiver_id,
27
+ customer_id,
28
28
  id
29
29
  }) {
30
30
  return client.get(
31
- `/instances/${instanceId}/receivers/${receiver_id}/wallets/${id}/balance`
31
+ `/instances/${instanceId}/customers/${customer_id}/wallets/${id}/balance`
32
32
  );
33
33
  },
34
34
  delete({
35
- receiver_id,
35
+ customer_id,
36
36
  id
37
37
  }) {
38
- return client.delete(`/instances/${instanceId}/receivers/${receiver_id}/wallets/${id}`);
38
+ return client.delete(`/instances/${instanceId}/customers/${customer_id}/wallets/${id}`);
39
39
  }
40
40
  };
41
41
  }
@@ -8,19 +8,19 @@ import {
8
8
  // src/resources/wallets/blockchain.ts
9
9
  function createBlockchainWalletsResource(instanceId, client) {
10
10
  return {
11
- list(receiver_id) {
11
+ list(customer_id) {
12
12
  return client.get(
13
- `/instances/${instanceId}/receivers/${receiver_id}/blockchain-wallets`
13
+ `/instances/${instanceId}/customers/${customer_id}/blockchain-wallets`
14
14
  );
15
15
  },
16
16
  createWithAddress(_a) {
17
17
  var _b = _a, {
18
- receiver_id
18
+ customer_id
19
19
  } = _b, data = __objRest(_b, [
20
- "receiver_id"
20
+ "customer_id"
21
21
  ]);
22
22
  return client.post(
23
- `/instances/${instanceId}/receivers/${receiver_id}/blockchain-wallets`,
23
+ `/instances/${instanceId}/customers/${customer_id}/blockchain-wallets`,
24
24
  __spreadProps(__spreadValues({}, data), {
25
25
  is_account_abstraction: true
26
26
  })
@@ -28,36 +28,36 @@ function createBlockchainWalletsResource(instanceId, client) {
28
28
  },
29
29
  createWithHash(_c) {
30
30
  var _d = _c, {
31
- receiver_id
31
+ customer_id
32
32
  } = _d, data = __objRest(_d, [
33
- "receiver_id"
33
+ "customer_id"
34
34
  ]);
35
35
  return client.post(
36
- `/instances/${instanceId}/receivers/${receiver_id}/blockchain-wallets`,
36
+ `/instances/${instanceId}/customers/${customer_id}/blockchain-wallets`,
37
37
  __spreadProps(__spreadValues({}, data), {
38
38
  is_account_abstraction: false
39
39
  })
40
40
  );
41
41
  },
42
- getWalletMessage(receiver_id) {
42
+ getWalletMessage(customer_id) {
43
43
  return client.get(
44
- `/instances/${instanceId}/receivers/${receiver_id}/blockchain-wallets/sign-message`
44
+ `/instances/${instanceId}/customers/${customer_id}/blockchain-wallets/sign-message`
45
45
  );
46
46
  },
47
47
  get({
48
- receiver_id,
48
+ customer_id,
49
49
  id
50
50
  }) {
51
51
  return client.get(
52
- `/instances/${instanceId}/receivers/${receiver_id}/blockchain-wallets/${id}`
52
+ `/instances/${instanceId}/customers/${customer_id}/blockchain-wallets/${id}`
53
53
  );
54
54
  },
55
55
  delete({
56
- receiver_id,
56
+ customer_id,
57
57
  id
58
58
  }) {
59
59
  return client.delete(
60
- `/instances/${instanceId}/receivers/${receiver_id}/blockchain-wallets/${id}`
60
+ `/instances/${instanceId}/customers/${customer_id}/blockchain-wallets/${id}`
61
61
  );
62
62
  },
63
63
  createAssetTrustline(address) {
@@ -8,32 +8,32 @@ function createOfframpWalletsResource(instanceId, client) {
8
8
  return {
9
9
  list({
10
10
  bank_account_id,
11
- receiver_id
11
+ customer_id
12
12
  }) {
13
13
  return client.get(
14
- `/instances/${instanceId}/receivers/${receiver_id}/bank-accounts/${bank_account_id}/offramp-wallets`
14
+ `/instances/${instanceId}/customers/${customer_id}/bank-accounts/${bank_account_id}/offramp-wallets`
15
15
  );
16
16
  },
17
17
  create(_a) {
18
18
  var _b = _a, {
19
- receiver_id,
19
+ customer_id,
20
20
  bank_account_id
21
21
  } = _b, data = __objRest(_b, [
22
- "receiver_id",
22
+ "customer_id",
23
23
  "bank_account_id"
24
24
  ]);
25
25
  return client.post(
26
- `/instances/${instanceId}/receivers/${receiver_id}/bank-accounts/${bank_account_id}/offramp-wallets`,
26
+ `/instances/${instanceId}/customers/${customer_id}/bank-accounts/${bank_account_id}/offramp-wallets`,
27
27
  data
28
28
  );
29
29
  },
30
30
  get({
31
- receiver_id,
31
+ customer_id,
32
32
  bank_account_id,
33
33
  id
34
34
  }) {
35
35
  return client.get(
36
- `/instances/${instanceId}/receivers/${receiver_id}/bank-accounts/${bank_account_id}/offramp-wallets/${id}`
36
+ `/instances/${instanceId}/customers/${customer_id}/bank-accounts/${bank_account_id}/offramp-wallets/${id}`
37
37
  );
38
38
  }
39
39
  };
package/dist/index.d.mts CHANGED
@@ -4,6 +4,8 @@ import { createAvailableResource } from './resources/available/index.mjs';
4
4
  export { BankDetailKey, GetBankDetailsResponse, GetNaicsCodesResponse, GetRailsResponse, GetSwiftCodeBankDetailsInput, GetSwiftCodeBankDetailsResponse } from './resources/available/index.mjs';
5
5
  import { createBankAccountsResource } from './resources/bank-accounts/index.mjs';
6
6
  export { CreateAchInput, CreateAchResponse, CreateArgentinaTransfersInput, CreateArgentinaTransfersResponse, CreateColombiaAchInput, CreateColombiaAchResponse, CreateInternationalSwiftInput, CreateInternationalSwiftResponse, CreatePixInput, CreatePixResponse, CreatePixSafeInput, CreatePixSafeResponse, CreateRtpInput, CreateRtpResponse, CreateSepaInput, CreateSepaResponse, CreateSpeiInput, CreateSpeiResponse, CreateTedInput, CreateTedResponse, CreateWireInput, CreateWireResponse, DeleteBankAccountInput, GetBankAccountInput, GetBankAccountResponse, ListBankAccountsInput, ListBankAccountsResponse, RecipientRelationship } from './resources/bank-accounts/index.mjs';
7
+ import { createCustomersResource } from './resources/customers/index.mjs';
8
+ export { AmlHits, AmlStatus, BusinessWithStandardKYB, CreateBusinessWithStandardKYBInput, CreateBusinessWithStandardKYBResponse, CreateIndividualWithEnhancedKYCInput, CreateIndividualWithEnhancedKYCResponse, CreateIndividualWithStandardKYCInput, CreateIndividualWithStandardKYCResponse, DeleteCustomerInput, FraudWarning, GetCustomerInput, GetCustomerLimitsInput, GetCustomerLimitsResponse, GetCustomerResponse, GetLimitIncreaseRequestsInput, GetLimitIncreaseRequestsResponse, IdentificationDocument, IndividualWithEnhancedKYC, IndividualWithStandardKYC, KycType, LimitIncreaseRequestStatus, LimitIncreaseRequestSupportingDocumentType, ListCustomersInput, ListCustomersResponse, Owner, OwnerRole, OwnerTaxType, ProofOfAddressDocType, RequestLimitIncreaseInput, RequestLimitIncreaseResponse, UpdateCustomerInput } from './resources/customers/index.mjs';
7
9
  import { createFeesResource } from './resources/fees/index.mjs';
8
10
  export { FeeOptions, GetFeesResponse } from './resources/fees/index.mjs';
9
11
  import { createInstancesResource } from './resources/instances/index.mjs';
@@ -18,8 +20,6 @@ import { createPayoutsResource } from './resources/payouts/index.mjs';
18
20
  export { AuthorizeStellarTokenInput, AuthorizeStellarTokenResponse, CreateEvmPayoutInput, CreateEvmPayoutResponse, CreatePayoutInput, CreateSolanaPayoutInput, CreateSolanaPayoutResponse, CreateStellarPayoutInput, CreateStellarPayoutResponse, GetPayoutInput, GetPayoutResponse, GetPayoutTrackInput, GetPayoutTrackResponse, ListPayoutsInput, ListPayoutsResponse, Payout, SpeiProtocol, SubmitPayoutDocumentsInput, SubmitPayoutDocumentsResponse } from './resources/payouts/index.mjs';
19
21
  import { createQuotesResource } from './resources/quotes/index.mjs';
20
22
  export { CreateQuoteInput, CreateQuoteResponse, GetFxRateInput, GetFxRateResponse } from './resources/quotes/index.mjs';
21
- import { createReceiversResource } from './resources/receivers/index.mjs';
22
- export { AmlHits, AmlStatus, BusinessWithStandardKYB, CreateBusinessWithStandardKYBInput, CreateBusinessWithStandardKYBResponse, CreateIndividualWithEnhancedKYCInput, CreateIndividualWithEnhancedKYCResponse, CreateIndividualWithStandardKYCInput, CreateIndividualWithStandardKYCResponse, DeleteReceiverInput, FraudWarning, GetLimitIncreaseRequestsInput, GetLimitIncreaseRequestsResponse, GetReceiverInput, GetReceiverLimitsInput, GetReceiverLimitsResponse, GetReceiverResponse, IdentificationDocument, IndividualWithEnhancedKYC, IndividualWithStandardKYC, KycType, LimitIncreaseRequestStatus, LimitIncreaseRequestSupportingDocumentType, ListReceiversInput, ListReceiversResponse, Owner, OwnerRole, OwnerTaxType, ProofOfAddressDocType, RequestLimitIncreaseInput, RequestLimitIncreaseResponse, UpdateReceiverInput } from './resources/receivers/index.mjs';
23
23
  import { createTermsOfServiceResource } from './resources/terms-of-service/index.mjs';
24
24
  import { createTransfersResource } from './resources/transfers/index.mjs';
25
25
  export { CreateTransferInput, CreateTransferQuoteInput, CreateTransferQuoteResponse, CreateTransferResponse, GetTransferInput, GetTransferResponse, GetTransferTrackInput, GetTransferTrackResponse, ListTransfersInput, ListTransfersResponse, Transfer, TransferTrackingStep, TransferTrackingTransactionMonitoring } from './resources/transfers/index.mjs';
@@ -55,7 +55,7 @@ declare class BlindPay {
55
55
  readonly fees: ReturnType<typeof createFeesResource>;
56
56
  readonly upload: ReturnType<typeof createUploadResource>;
57
57
  readonly virtualAccounts: ReturnType<typeof createVirtualAccountsResource>;
58
- readonly receivers: ReturnType<typeof createReceiversResource> & {
58
+ readonly customers: ReturnType<typeof createCustomersResource> & {
59
59
  bankAccounts: ReturnType<typeof createBankAccountsResource>;
60
60
  };
61
61
  readonly instances: ReturnType<typeof createInstancesResource> & {
@@ -97,4 +97,4 @@ declare class BlindPay {
97
97
  }): boolean;
98
98
  }
99
99
 
100
- export { BlindPay, createApiKeysResource, createAvailableResource, createBankAccountsResource, createBlockchainWalletsResource, createCustodialWalletsResource, createFeesResource, createInstancesResource, createOfframpWalletsResource, createPartnerFeesResource, createPayinQuotesResource, createPayinsResource, createPayoutsResource, createQuotesResource, createReceiversResource, createTransfersResource, createUploadResource, createVirtualAccountsResource, createWebhookEndpointsResource };
100
+ export { BlindPay, createApiKeysResource, createAvailableResource, createBankAccountsResource, createBlockchainWalletsResource, createCustodialWalletsResource, createCustomersResource, createFeesResource, createInstancesResource, createOfframpWalletsResource, createPartnerFeesResource, createPayinQuotesResource, createPayinsResource, createPayoutsResource, createQuotesResource, createTransfersResource, createUploadResource, createVirtualAccountsResource, createWebhookEndpointsResource };
package/dist/index.d.ts CHANGED
@@ -4,6 +4,8 @@ import { createAvailableResource } from './resources/available/index.js';
4
4
  export { BankDetailKey, GetBankDetailsResponse, GetNaicsCodesResponse, GetRailsResponse, GetSwiftCodeBankDetailsInput, GetSwiftCodeBankDetailsResponse } from './resources/available/index.js';
5
5
  import { createBankAccountsResource } from './resources/bank-accounts/index.js';
6
6
  export { CreateAchInput, CreateAchResponse, CreateArgentinaTransfersInput, CreateArgentinaTransfersResponse, CreateColombiaAchInput, CreateColombiaAchResponse, CreateInternationalSwiftInput, CreateInternationalSwiftResponse, CreatePixInput, CreatePixResponse, CreatePixSafeInput, CreatePixSafeResponse, CreateRtpInput, CreateRtpResponse, CreateSepaInput, CreateSepaResponse, CreateSpeiInput, CreateSpeiResponse, CreateTedInput, CreateTedResponse, CreateWireInput, CreateWireResponse, DeleteBankAccountInput, GetBankAccountInput, GetBankAccountResponse, ListBankAccountsInput, ListBankAccountsResponse, RecipientRelationship } from './resources/bank-accounts/index.js';
7
+ import { createCustomersResource } from './resources/customers/index.js';
8
+ export { AmlHits, AmlStatus, BusinessWithStandardKYB, CreateBusinessWithStandardKYBInput, CreateBusinessWithStandardKYBResponse, CreateIndividualWithEnhancedKYCInput, CreateIndividualWithEnhancedKYCResponse, CreateIndividualWithStandardKYCInput, CreateIndividualWithStandardKYCResponse, DeleteCustomerInput, FraudWarning, GetCustomerInput, GetCustomerLimitsInput, GetCustomerLimitsResponse, GetCustomerResponse, GetLimitIncreaseRequestsInput, GetLimitIncreaseRequestsResponse, IdentificationDocument, IndividualWithEnhancedKYC, IndividualWithStandardKYC, KycType, LimitIncreaseRequestStatus, LimitIncreaseRequestSupportingDocumentType, ListCustomersInput, ListCustomersResponse, Owner, OwnerRole, OwnerTaxType, ProofOfAddressDocType, RequestLimitIncreaseInput, RequestLimitIncreaseResponse, UpdateCustomerInput } from './resources/customers/index.js';
7
9
  import { createFeesResource } from './resources/fees/index.js';
8
10
  export { FeeOptions, GetFeesResponse } from './resources/fees/index.js';
9
11
  import { createInstancesResource } from './resources/instances/index.js';
@@ -18,8 +20,6 @@ import { createPayoutsResource } from './resources/payouts/index.js';
18
20
  export { AuthorizeStellarTokenInput, AuthorizeStellarTokenResponse, CreateEvmPayoutInput, CreateEvmPayoutResponse, CreatePayoutInput, CreateSolanaPayoutInput, CreateSolanaPayoutResponse, CreateStellarPayoutInput, CreateStellarPayoutResponse, GetPayoutInput, GetPayoutResponse, GetPayoutTrackInput, GetPayoutTrackResponse, ListPayoutsInput, ListPayoutsResponse, Payout, SpeiProtocol, SubmitPayoutDocumentsInput, SubmitPayoutDocumentsResponse } from './resources/payouts/index.js';
19
21
  import { createQuotesResource } from './resources/quotes/index.js';
20
22
  export { CreateQuoteInput, CreateQuoteResponse, GetFxRateInput, GetFxRateResponse } from './resources/quotes/index.js';
21
- import { createReceiversResource } from './resources/receivers/index.js';
22
- export { AmlHits, AmlStatus, BusinessWithStandardKYB, CreateBusinessWithStandardKYBInput, CreateBusinessWithStandardKYBResponse, CreateIndividualWithEnhancedKYCInput, CreateIndividualWithEnhancedKYCResponse, CreateIndividualWithStandardKYCInput, CreateIndividualWithStandardKYCResponse, DeleteReceiverInput, FraudWarning, GetLimitIncreaseRequestsInput, GetLimitIncreaseRequestsResponse, GetReceiverInput, GetReceiverLimitsInput, GetReceiverLimitsResponse, GetReceiverResponse, IdentificationDocument, IndividualWithEnhancedKYC, IndividualWithStandardKYC, KycType, LimitIncreaseRequestStatus, LimitIncreaseRequestSupportingDocumentType, ListReceiversInput, ListReceiversResponse, Owner, OwnerRole, OwnerTaxType, ProofOfAddressDocType, RequestLimitIncreaseInput, RequestLimitIncreaseResponse, UpdateReceiverInput } from './resources/receivers/index.js';
23
23
  import { createTermsOfServiceResource } from './resources/terms-of-service/index.js';
24
24
  import { createTransfersResource } from './resources/transfers/index.js';
25
25
  export { CreateTransferInput, CreateTransferQuoteInput, CreateTransferQuoteResponse, CreateTransferResponse, GetTransferInput, GetTransferResponse, GetTransferTrackInput, GetTransferTrackResponse, ListTransfersInput, ListTransfersResponse, Transfer, TransferTrackingStep, TransferTrackingTransactionMonitoring } from './resources/transfers/index.js';
@@ -55,7 +55,7 @@ declare class BlindPay {
55
55
  readonly fees: ReturnType<typeof createFeesResource>;
56
56
  readonly upload: ReturnType<typeof createUploadResource>;
57
57
  readonly virtualAccounts: ReturnType<typeof createVirtualAccountsResource>;
58
- readonly receivers: ReturnType<typeof createReceiversResource> & {
58
+ readonly customers: ReturnType<typeof createCustomersResource> & {
59
59
  bankAccounts: ReturnType<typeof createBankAccountsResource>;
60
60
  };
61
61
  readonly instances: ReturnType<typeof createInstancesResource> & {
@@ -97,4 +97,4 @@ declare class BlindPay {
97
97
  }): boolean;
98
98
  }
99
99
 
100
- export { BlindPay, createApiKeysResource, createAvailableResource, createBankAccountsResource, createBlockchainWalletsResource, createCustodialWalletsResource, createFeesResource, createInstancesResource, createOfframpWalletsResource, createPartnerFeesResource, createPayinQuotesResource, createPayinsResource, createPayoutsResource, createQuotesResource, createReceiversResource, createTransfersResource, createUploadResource, createVirtualAccountsResource, createWebhookEndpointsResource };
100
+ export { BlindPay, createApiKeysResource, createAvailableResource, createBankAccountsResource, createBlockchainWalletsResource, createCustodialWalletsResource, createCustomersResource, createFeesResource, createInstancesResource, createOfframpWalletsResource, createPartnerFeesResource, createPayinQuotesResource, createPayinsResource, createPayoutsResource, createQuotesResource, createTransfersResource, createUploadResource, createVirtualAccountsResource, createWebhookEndpointsResource };