@blindpay/node 2.3.0 → 2.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.
Files changed (41) hide show
  1. package/dist/{chunk-DZ4K6K32.mjs → chunk-4DVSRRBP.mjs} +2 -2
  2. package/dist/{chunk-E7M4CJKR.mjs → chunk-OTRFWEEC.mjs} +3 -0
  3. package/dist/index.d.mts +1 -1
  4. package/dist/index.d.ts +1 -1
  5. package/dist/index.js +4 -1
  6. package/dist/index.mjs +2 -2
  7. package/dist/resources/api-keys/api-keys.test.js +4 -1
  8. package/dist/resources/api-keys/api-keys.test.mjs +2 -2
  9. package/dist/resources/available/available.test.js +4 -1
  10. package/dist/resources/available/available.test.mjs +2 -2
  11. package/dist/resources/bank-accounts/bank-accounts.test.js +4 -1
  12. package/dist/resources/bank-accounts/bank-accounts.test.mjs +2 -2
  13. package/dist/resources/instances/instances.test.js +4 -1
  14. package/dist/resources/instances/instances.test.mjs +2 -2
  15. package/dist/resources/partner-fees/partner-fees.test.js +4 -1
  16. package/dist/resources/partner-fees/partner-fees.test.mjs +2 -2
  17. package/dist/resources/payins/payins-quotes.test.js +40 -1
  18. package/dist/resources/payins/payins-quotes.test.mjs +38 -2
  19. package/dist/resources/payins/payins.test.js +4 -1
  20. package/dist/resources/payins/payins.test.mjs +2 -2
  21. package/dist/resources/payins/quotes.d.mts +31 -2
  22. package/dist/resources/payins/quotes.d.ts +31 -2
  23. package/dist/resources/payins/quotes.js +3 -0
  24. package/dist/resources/payins/quotes.mjs +1 -1
  25. package/dist/resources/payouts/payouts.test.js +4 -1
  26. package/dist/resources/payouts/payouts.test.mjs +2 -2
  27. package/dist/resources/quotes/quotes.test.js +4 -1
  28. package/dist/resources/quotes/quotes.test.mjs +2 -2
  29. package/dist/resources/receivers/receivers.test.js +4 -1
  30. package/dist/resources/receivers/receivers.test.mjs +2 -2
  31. package/dist/resources/terms-of-service/terms-of-service.test.js +4 -1
  32. package/dist/resources/terms-of-service/terms-of-service.test.mjs +2 -2
  33. package/dist/resources/virtual-accounts/virtual-accounts.test.js +4 -1
  34. package/dist/resources/virtual-accounts/virtual-accounts.test.mjs +2 -2
  35. package/dist/resources/wallets/blockchain.test.js +4 -1
  36. package/dist/resources/wallets/blockchain.test.mjs +2 -2
  37. package/dist/resources/wallets/offramp.test.js +4 -1
  38. package/dist/resources/wallets/offramp.test.mjs +2 -2
  39. package/dist/resources/webhooks/webhooks.test.js +4 -1
  40. package/dist/resources/webhooks/webhooks.test.mjs +2 -2
  41. package/package.json +1 -1
@@ -37,7 +37,7 @@ import {
37
37
  import {
38
38
  createPayinQuotesResource,
39
39
  init_quotes
40
- } from "./chunk-E7M4CJKR.mjs";
40
+ } from "./chunk-OTRFWEEC.mjs";
41
41
  import {
42
42
  createPayoutsResource,
43
43
  init_payouts
@@ -69,7 +69,7 @@ import {
69
69
  var version;
70
70
  var init_package = __esm({
71
71
  "package.json"() {
72
- version = "2.3.0";
72
+ version = "2.4.0";
73
73
  }
74
74
  });
75
75
 
@@ -13,6 +13,9 @@ function createPayinQuotesResource(instanceId, client) {
13
13
  getFxRate(_b) {
14
14
  var data = __objRest(_b, []);
15
15
  return client.post(`/instances/${instanceId}/payin-quotes/fx`, data);
16
+ },
17
+ get(id) {
18
+ return client.get(`/instances/${instanceId}/payin-quotes/${id}`);
16
19
  }
17
20
  };
18
21
  }
package/dist/index.d.mts CHANGED
@@ -11,7 +11,7 @@ export { CreatePartnerFeeInput, CreatePartnerFeeResponse, DeletePartnerFeeInput,
11
11
  import { createPayinsResource } from './resources/payins/index.mjs';
12
12
  export { CreateEvmPayinInput, CreateEvmPayinResponse, CreatePayinInput, ExportPayinsInput, ExportPayinsResponse, GetPayinInput, GetPayinResponse, GetPayinTrackInput, GetPayinTrackResponse, ListPayinsInput, ListPayinsResponse, Payin } from './resources/payins/index.mjs';
13
13
  import { createPayinQuotesResource } from './resources/payins/quotes.mjs';
14
- export { CreatePayinQuoteInput, CreatePayinQuoteResponse, GetPayinFxRateInput, GetPayinFxRateResponse } from './resources/payins/quotes.mjs';
14
+ export { CreatePayinQuoteInput, CreatePayinQuoteResponse, GetPayinFxRateInput, GetPayinFxRateResponse, GetPayinQuoteInput, GetPayinQuoteResponse, PayinPaymentMethod } from './resources/payins/quotes.mjs';
15
15
  import { createPayoutsResource } from './resources/payouts/index.mjs';
16
16
  export { AuthorizeStellarTokenInput, AuthorizeStellarTokenResponse, CreateEvmPayoutInput, CreateEvmPayoutResponse, CreatePayoutInput, CreateStellarPayoutInput, CreateStellarPayoutResponse, ExportPayoutsInput, ExportPayoutsResponse, GetPayoutInput, GetPayoutResponse, GetPayoutTrackInput, GetPayoutTrackResponse, ListPayoutsInput, ListPayoutsResponse, Payout, SpeiProtocol } from './resources/payouts/index.mjs';
17
17
  import { createQuotesResource } from './resources/quotes/index.mjs';
package/dist/index.d.ts CHANGED
@@ -11,7 +11,7 @@ export { CreatePartnerFeeInput, CreatePartnerFeeResponse, DeletePartnerFeeInput,
11
11
  import { createPayinsResource } from './resources/payins/index.js';
12
12
  export { CreateEvmPayinInput, CreateEvmPayinResponse, CreatePayinInput, ExportPayinsInput, ExportPayinsResponse, GetPayinInput, GetPayinResponse, GetPayinTrackInput, GetPayinTrackResponse, ListPayinsInput, ListPayinsResponse, Payin } from './resources/payins/index.js';
13
13
  import { createPayinQuotesResource } from './resources/payins/quotes.js';
14
- export { CreatePayinQuoteInput, CreatePayinQuoteResponse, GetPayinFxRateInput, GetPayinFxRateResponse } from './resources/payins/quotes.js';
14
+ export { CreatePayinQuoteInput, CreatePayinQuoteResponse, GetPayinFxRateInput, GetPayinFxRateResponse, GetPayinQuoteInput, GetPayinQuoteResponse, PayinPaymentMethod } from './resources/payins/quotes.js';
15
15
  import { createPayoutsResource } from './resources/payouts/index.js';
16
16
  export { AuthorizeStellarTokenInput, AuthorizeStellarTokenResponse, CreateEvmPayoutInput, CreateEvmPayoutResponse, CreatePayoutInput, CreateStellarPayoutInput, CreateStellarPayoutResponse, ExportPayoutsInput, ExportPayoutsResponse, GetPayoutInput, GetPayoutResponse, GetPayoutTrackInput, GetPayoutTrackResponse, ListPayoutsInput, ListPayoutsResponse, Payout, SpeiProtocol } from './resources/payouts/index.js';
17
17
  import { createQuotesResource } from './resources/quotes/index.js';
package/dist/index.js CHANGED
@@ -91,7 +91,7 @@ module.exports = __toCommonJS(index_exports);
91
91
  var import_node_crypto = require("crypto");
92
92
 
93
93
  // package.json
94
- var version = "2.3.0";
94
+ var version = "2.4.0";
95
95
 
96
96
  // src/internal/blindpay-error.ts
97
97
  var BlindPayError = class extends Error {
@@ -317,6 +317,9 @@ function createPayinQuotesResource(instanceId, client) {
317
317
  getFxRate(_b) {
318
318
  var data = __objRest(_b, []);
319
319
  return client.post(`/instances/${instanceId}/payin-quotes/fx`, data);
320
+ },
321
+ get(id) {
322
+ return client.get(`/instances/${instanceId}/payin-quotes/${id}`);
320
323
  }
321
324
  };
322
325
  }
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  BlindPay,
3
3
  init_client
4
- } from "./chunk-DZ4K6K32.mjs";
4
+ } from "./chunk-4DVSRRBP.mjs";
5
5
  import {
6
6
  createBlockchainWalletsResource,
7
7
  init_blockchain
@@ -38,7 +38,7 @@ import {
38
38
  import {
39
39
  createPayinQuotesResource,
40
40
  init_quotes
41
- } from "./chunk-E7M4CJKR.mjs";
41
+ } from "./chunk-OTRFWEEC.mjs";
42
42
  import {
43
43
  createPayoutsResource,
44
44
  init_payouts
@@ -18697,7 +18697,7 @@ var import_expect_type = __toESM(require_dist(), 1);
18697
18697
  var import_node_crypto = require("crypto");
18698
18698
 
18699
18699
  // package.json
18700
- var version = "2.3.0";
18700
+ var version = "2.4.0";
18701
18701
 
18702
18702
  // src/internal/blindpay-error.ts
18703
18703
  var BlindPayError = class extends Error {
@@ -18923,6 +18923,9 @@ function createPayinQuotesResource(instanceId, client) {
18923
18923
  getFxRate(_b) {
18924
18924
  var data = __objRest(_b, []);
18925
18925
  return client.post(`/instances/${instanceId}/payin-quotes/fx`, data);
18926
+ },
18927
+ get(id) {
18928
+ return client.get(`/instances/${instanceId}/payin-quotes/${id}`);
18926
18929
  }
18927
18930
  };
18928
18931
  }
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  BlindPay,
9
9
  init_client
10
- } from "../../chunk-DZ4K6K32.mjs";
10
+ } from "../../chunk-4DVSRRBP.mjs";
11
11
  import "../../chunk-FG25JHDX.mjs";
12
12
  import "../../chunk-QGNLMN6Z.mjs";
13
13
  import "../../chunk-UC57SCKQ.mjs";
@@ -17,7 +17,7 @@ import "../../chunk-Z6EYX4D3.mjs";
17
17
  import "../../chunk-5XJJKYXE.mjs";
18
18
  import "../../chunk-RC5NN5UF.mjs";
19
19
  import "../../chunk-W7NJUABI.mjs";
20
- import "../../chunk-E7M4CJKR.mjs";
20
+ import "../../chunk-OTRFWEEC.mjs";
21
21
  import "../../chunk-3QQCDR3E.mjs";
22
22
  import "../../chunk-LRHWT4JU.mjs";
23
23
  import "../../chunk-U7CKUUO7.mjs";
@@ -18702,7 +18702,7 @@ var import_expect_type = __toESM(require_dist(), 1);
18702
18702
  var import_node_crypto = require("crypto");
18703
18703
 
18704
18704
  // package.json
18705
- var version = "2.3.0";
18705
+ var version = "2.4.0";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -18928,6 +18928,9 @@ function createPayinQuotesResource(instanceId, client) {
18928
18928
  getFxRate(_b) {
18929
18929
  var data = __objRest(_b, []);
18930
18930
  return client.post(`/instances/${instanceId}/payin-quotes/fx`, data);
18931
+ },
18932
+ get(id) {
18933
+ return client.get(`/instances/${instanceId}/payin-quotes/${id}`);
18931
18934
  }
18932
18935
  };
18933
18936
  }
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-DZ4K6K32.mjs";
11
+ } from "../../chunk-4DVSRRBP.mjs";
12
12
  import "../../chunk-FG25JHDX.mjs";
13
13
  import "../../chunk-QGNLMN6Z.mjs";
14
14
  import "../../chunk-UC57SCKQ.mjs";
@@ -18,7 +18,7 @@ import "../../chunk-Z6EYX4D3.mjs";
18
18
  import "../../chunk-5XJJKYXE.mjs";
19
19
  import "../../chunk-RC5NN5UF.mjs";
20
20
  import "../../chunk-W7NJUABI.mjs";
21
- import "../../chunk-E7M4CJKR.mjs";
21
+ import "../../chunk-OTRFWEEC.mjs";
22
22
  import "../../chunk-3QQCDR3E.mjs";
23
23
  import "../../chunk-LRHWT4JU.mjs";
24
24
  import "../../chunk-U7CKUUO7.mjs";
@@ -18702,7 +18702,7 @@ var import_expect_type = __toESM(require_dist(), 1);
18702
18702
  var import_node_crypto = require("crypto");
18703
18703
 
18704
18704
  // package.json
18705
- var version = "2.3.0";
18705
+ var version = "2.4.0";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -18928,6 +18928,9 @@ function createPayinQuotesResource(instanceId, client) {
18928
18928
  getFxRate(_b) {
18929
18929
  var data = __objRest(_b, []);
18930
18930
  return client.post(`/instances/${instanceId}/payin-quotes/fx`, data);
18931
+ },
18932
+ get(id) {
18933
+ return client.get(`/instances/${instanceId}/payin-quotes/${id}`);
18931
18934
  }
18932
18935
  };
18933
18936
  }
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-DZ4K6K32.mjs";
11
+ } from "../../chunk-4DVSRRBP.mjs";
12
12
  import "../../chunk-FG25JHDX.mjs";
13
13
  import "../../chunk-QGNLMN6Z.mjs";
14
14
  import "../../chunk-UC57SCKQ.mjs";
@@ -18,7 +18,7 @@ import "../../chunk-Z6EYX4D3.mjs";
18
18
  import "../../chunk-5XJJKYXE.mjs";
19
19
  import "../../chunk-RC5NN5UF.mjs";
20
20
  import "../../chunk-W7NJUABI.mjs";
21
- import "../../chunk-E7M4CJKR.mjs";
21
+ import "../../chunk-OTRFWEEC.mjs";
22
22
  import "../../chunk-3QQCDR3E.mjs";
23
23
  import "../../chunk-LRHWT4JU.mjs";
24
24
  import "../../chunk-U7CKUUO7.mjs";
@@ -18702,7 +18702,7 @@ var import_expect_type = __toESM(require_dist(), 1);
18702
18702
  var import_node_crypto = require("crypto");
18703
18703
 
18704
18704
  // package.json
18705
- var version = "2.3.0";
18705
+ var version = "2.4.0";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -18928,6 +18928,9 @@ function createPayinQuotesResource(instanceId, client) {
18928
18928
  getFxRate(_b) {
18929
18929
  var data = __objRest(_b, []);
18930
18930
  return client.post(`/instances/${instanceId}/payin-quotes/fx`, data);
18931
+ },
18932
+ get(id) {
18933
+ return client.get(`/instances/${instanceId}/payin-quotes/${id}`);
18931
18934
  }
18932
18935
  };
18933
18936
  }
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-DZ4K6K32.mjs";
11
+ } from "../../chunk-4DVSRRBP.mjs";
12
12
  import "../../chunk-FG25JHDX.mjs";
13
13
  import "../../chunk-QGNLMN6Z.mjs";
14
14
  import "../../chunk-UC57SCKQ.mjs";
@@ -18,7 +18,7 @@ import "../../chunk-Z6EYX4D3.mjs";
18
18
  import "../../chunk-5XJJKYXE.mjs";
19
19
  import "../../chunk-RC5NN5UF.mjs";
20
20
  import "../../chunk-W7NJUABI.mjs";
21
- import "../../chunk-E7M4CJKR.mjs";
21
+ import "../../chunk-OTRFWEEC.mjs";
22
22
  import "../../chunk-3QQCDR3E.mjs";
23
23
  import "../../chunk-LRHWT4JU.mjs";
24
24
  import "../../chunk-U7CKUUO7.mjs";
@@ -18702,7 +18702,7 @@ var import_expect_type = __toESM(require_dist(), 1);
18702
18702
  var import_node_crypto = require("crypto");
18703
18703
 
18704
18704
  // package.json
18705
- var version = "2.3.0";
18705
+ var version = "2.4.0";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -18928,6 +18928,9 @@ function createPayinQuotesResource(instanceId, client) {
18928
18928
  getFxRate(_b) {
18929
18929
  var data = __objRest(_b, []);
18930
18930
  return client.post(`/instances/${instanceId}/payin-quotes/fx`, data);
18931
+ },
18932
+ get(id) {
18933
+ return client.get(`/instances/${instanceId}/payin-quotes/${id}`);
18931
18934
  }
18932
18935
  };
18933
18936
  }
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-DZ4K6K32.mjs";
11
+ } from "../../chunk-4DVSRRBP.mjs";
12
12
  import "../../chunk-FG25JHDX.mjs";
13
13
  import "../../chunk-QGNLMN6Z.mjs";
14
14
  import "../../chunk-UC57SCKQ.mjs";
@@ -18,7 +18,7 @@ import "../../chunk-Z6EYX4D3.mjs";
18
18
  import "../../chunk-5XJJKYXE.mjs";
19
19
  import "../../chunk-RC5NN5UF.mjs";
20
20
  import "../../chunk-W7NJUABI.mjs";
21
- import "../../chunk-E7M4CJKR.mjs";
21
+ import "../../chunk-OTRFWEEC.mjs";
22
22
  import "../../chunk-3QQCDR3E.mjs";
23
23
  import "../../chunk-LRHWT4JU.mjs";
24
24
  import "../../chunk-U7CKUUO7.mjs";
@@ -18702,7 +18702,7 @@ var import_expect_type = __toESM(require_dist(), 1);
18702
18702
  var import_node_crypto = require("crypto");
18703
18703
 
18704
18704
  // package.json
18705
- var version = "2.3.0";
18705
+ var version = "2.4.0";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -18928,6 +18928,9 @@ function createPayinQuotesResource(instanceId, client) {
18928
18928
  getFxRate(_b) {
18929
18929
  var data = __objRest(_b, []);
18930
18930
  return client.post(`/instances/${instanceId}/payin-quotes/fx`, data);
18931
+ },
18932
+ get(id) {
18933
+ return client.get(`/instances/${instanceId}/payin-quotes/${id}`);
18931
18934
  }
18932
18935
  };
18933
18936
  }
@@ -19413,6 +19416,42 @@ describe("Payin quotes", () => {
19413
19416
  globalExpect(data).toEqual(mockedFxRate);
19414
19417
  }));
19415
19418
  });
19419
+ describe("Get payin quote", () => {
19420
+ it("should get a payin quote", () => __async(null, null, function* () {
19421
+ const mockedPayinQuote = {
19422
+ id: "qu_000000000000",
19423
+ payment_method: "pix",
19424
+ token: "USDC",
19425
+ request_amount: 1e3,
19426
+ cover_fees: true,
19427
+ currency_type: "sender",
19428
+ expires_at: 1712958191,
19429
+ currency: "BRL",
19430
+ commercial_quotation: 495,
19431
+ blindpay_quotation: 505,
19432
+ receiver_amount: 1010,
19433
+ sender_amount: 5240,
19434
+ partner_fee_amount: 150,
19435
+ flat_fee: 50,
19436
+ total_fee_amount: 1.53,
19437
+ payer_rules: {
19438
+ pix_allowed_tax_ids: ["149.476.037-68"]
19439
+ },
19440
+ blockchain_wallet_id: "bw_000000000000",
19441
+ instance_id: "in_000000000000",
19442
+ partner_fee_id: "pf_000000000000",
19443
+ billing_fee: 100,
19444
+ created_at: "2021-01-01T00:00:00Z",
19445
+ updated_at: "2021-01-01T00:00:00Z"
19446
+ };
19447
+ fetchMock.mockResponseOnce(JSON.stringify(mockedPayinQuote), {
19448
+ headers: { "Content-Type": "application/json" }
19449
+ });
19450
+ const { data, error } = yield blindpay.payins.quotes.get("qu_000000000000");
19451
+ globalExpect(error).toBeNull();
19452
+ globalExpect(data).toEqual(mockedPayinQuote);
19453
+ }));
19454
+ });
19416
19455
  });
19417
19456
  /*! Bundled license information:
19418
19457
 
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-DZ4K6K32.mjs";
11
+ } from "../../chunk-4DVSRRBP.mjs";
12
12
  import "../../chunk-FG25JHDX.mjs";
13
13
  import "../../chunk-QGNLMN6Z.mjs";
14
14
  import "../../chunk-UC57SCKQ.mjs";
@@ -18,7 +18,7 @@ import "../../chunk-Z6EYX4D3.mjs";
18
18
  import "../../chunk-5XJJKYXE.mjs";
19
19
  import "../../chunk-RC5NN5UF.mjs";
20
20
  import "../../chunk-W7NJUABI.mjs";
21
- import "../../chunk-E7M4CJKR.mjs";
21
+ import "../../chunk-OTRFWEEC.mjs";
22
22
  import "../../chunk-3QQCDR3E.mjs";
23
23
  import "../../chunk-LRHWT4JU.mjs";
24
24
  import "../../chunk-U7CKUUO7.mjs";
@@ -90,6 +90,42 @@ var require_payins_quotes_test = __commonJS({
90
90
  globalExpect(data).toEqual(mockedFxRate);
91
91
  }));
92
92
  });
93
+ describe("Get payin quote", () => {
94
+ it("should get a payin quote", () => __async(null, null, function* () {
95
+ const mockedPayinQuote = {
96
+ id: "qu_000000000000",
97
+ payment_method: "pix",
98
+ token: "USDC",
99
+ request_amount: 1e3,
100
+ cover_fees: true,
101
+ currency_type: "sender",
102
+ expires_at: 1712958191,
103
+ currency: "BRL",
104
+ commercial_quotation: 495,
105
+ blindpay_quotation: 505,
106
+ receiver_amount: 1010,
107
+ sender_amount: 5240,
108
+ partner_fee_amount: 150,
109
+ flat_fee: 50,
110
+ total_fee_amount: 1.53,
111
+ payer_rules: {
112
+ pix_allowed_tax_ids: ["149.476.037-68"]
113
+ },
114
+ blockchain_wallet_id: "bw_000000000000",
115
+ instance_id: "in_000000000000",
116
+ partner_fee_id: "pf_000000000000",
117
+ billing_fee: 100,
118
+ created_at: "2021-01-01T00:00:00Z",
119
+ updated_at: "2021-01-01T00:00:00Z"
120
+ };
121
+ fetchMock.mockResponseOnce(JSON.stringify(mockedPayinQuote), {
122
+ headers: { "Content-Type": "application/json" }
123
+ });
124
+ const { data, error } = yield blindpay.payins.quotes.get("qu_000000000000");
125
+ globalExpect(error).toBeNull();
126
+ globalExpect(data).toEqual(mockedPayinQuote);
127
+ }));
128
+ });
93
129
  });
94
130
  }
95
131
  });
@@ -18702,7 +18702,7 @@ var import_expect_type = __toESM(require_dist(), 1);
18702
18702
  var import_node_crypto = require("crypto");
18703
18703
 
18704
18704
  // package.json
18705
- var version = "2.3.0";
18705
+ var version = "2.4.0";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -18928,6 +18928,9 @@ function createPayinQuotesResource(instanceId, client) {
18928
18928
  getFxRate(_b) {
18929
18929
  var data = __objRest(_b, []);
18930
18930
  return client.post(`/instances/${instanceId}/payin-quotes/fx`, data);
18931
+ },
18932
+ get(id) {
18933
+ return client.get(`/instances/${instanceId}/payin-quotes/${id}`);
18931
18934
  }
18932
18935
  };
18933
18936
  }
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-DZ4K6K32.mjs";
11
+ } from "../../chunk-4DVSRRBP.mjs";
12
12
  import "../../chunk-FG25JHDX.mjs";
13
13
  import "../../chunk-QGNLMN6Z.mjs";
14
14
  import "../../chunk-UC57SCKQ.mjs";
@@ -18,7 +18,7 @@ import "../../chunk-Z6EYX4D3.mjs";
18
18
  import "../../chunk-5XJJKYXE.mjs";
19
19
  import "../../chunk-RC5NN5UF.mjs";
20
20
  import "../../chunk-W7NJUABI.mjs";
21
- import "../../chunk-E7M4CJKR.mjs";
21
+ import "../../chunk-OTRFWEEC.mjs";
22
22
  import "../../chunk-3QQCDR3E.mjs";
23
23
  import "../../chunk-LRHWT4JU.mjs";
24
24
  import "../../chunk-U7CKUUO7.mjs";
@@ -1,9 +1,10 @@
1
1
  import { I as InternalApiClient, g as CurrencyType, S as StablecoinToken, B as BlindpayApiResponse, h as Currency } from '../../api-client-Cw2mNJeR.mjs';
2
2
 
3
+ type PayinPaymentMethod = "ach" | "wire" | "pix" | "spei";
3
4
  type CreatePayinQuoteInput = {
4
5
  blockchain_wallet_id: string;
5
6
  currency_type: CurrencyType;
6
- payment_method: "ach" | "wire" | "pix" | "spei";
7
+ payment_method: PayinPaymentMethod;
7
8
  request_amount: number;
8
9
  token: StablecoinToken;
9
10
  cover_fees: boolean;
@@ -35,9 +36,37 @@ type GetPayinFxRateResponse = {
35
36
  instance_flat_fee: number;
36
37
  instance_percentage_fee: number;
37
38
  };
39
+ type GetPayinQuoteInput = string;
40
+ type GetPayinQuoteResponse = {
41
+ id: string;
42
+ payment_method: PayinPaymentMethod;
43
+ token: StablecoinToken;
44
+ request_amount: number;
45
+ cover_fees: boolean;
46
+ currency_type: CurrencyType;
47
+ expires_at: number | null;
48
+ currency: Extract<Currency, "BRL" | "USD" | "MXN" | "COP" | "ARS">;
49
+ commercial_quotation: number | null;
50
+ blindpay_quotation: number | null;
51
+ receiver_amount: number;
52
+ sender_amount: number;
53
+ partner_fee_amount: number | null;
54
+ flat_fee: number | null;
55
+ total_fee_amount: number | null;
56
+ payer_rules: {
57
+ pix_allowed_tax_ids: string[];
58
+ } | null;
59
+ blockchain_wallet_id: string;
60
+ instance_id: string;
61
+ partner_fee_id: string | null;
62
+ billing_fee: number | null;
63
+ created_at: string;
64
+ updated_at: string;
65
+ };
38
66
  declare function createPayinQuotesResource(instanceId: string, client: InternalApiClient): {
39
67
  create({ ...data }: CreatePayinQuoteInput): Promise<BlindpayApiResponse<CreatePayinQuoteResponse>>;
40
68
  getFxRate({ ...data }: GetPayinFxRateInput): Promise<BlindpayApiResponse<GetPayinFxRateResponse>>;
69
+ get(id: GetPayinQuoteInput): Promise<BlindpayApiResponse<GetPayinQuoteResponse>>;
41
70
  };
42
71
 
43
- export { type CreatePayinQuoteInput, type CreatePayinQuoteResponse, type GetPayinFxRateInput, type GetPayinFxRateResponse, createPayinQuotesResource };
72
+ export { type CreatePayinQuoteInput, type CreatePayinQuoteResponse, type GetPayinFxRateInput, type GetPayinFxRateResponse, type GetPayinQuoteInput, type GetPayinQuoteResponse, type PayinPaymentMethod, createPayinQuotesResource };
@@ -1,9 +1,10 @@
1
1
  import { I as InternalApiClient, g as CurrencyType, S as StablecoinToken, B as BlindpayApiResponse, h as Currency } from '../../api-client-Cw2mNJeR.js';
2
2
 
3
+ type PayinPaymentMethod = "ach" | "wire" | "pix" | "spei";
3
4
  type CreatePayinQuoteInput = {
4
5
  blockchain_wallet_id: string;
5
6
  currency_type: CurrencyType;
6
- payment_method: "ach" | "wire" | "pix" | "spei";
7
+ payment_method: PayinPaymentMethod;
7
8
  request_amount: number;
8
9
  token: StablecoinToken;
9
10
  cover_fees: boolean;
@@ -35,9 +36,37 @@ type GetPayinFxRateResponse = {
35
36
  instance_flat_fee: number;
36
37
  instance_percentage_fee: number;
37
38
  };
39
+ type GetPayinQuoteInput = string;
40
+ type GetPayinQuoteResponse = {
41
+ id: string;
42
+ payment_method: PayinPaymentMethod;
43
+ token: StablecoinToken;
44
+ request_amount: number;
45
+ cover_fees: boolean;
46
+ currency_type: CurrencyType;
47
+ expires_at: number | null;
48
+ currency: Extract<Currency, "BRL" | "USD" | "MXN" | "COP" | "ARS">;
49
+ commercial_quotation: number | null;
50
+ blindpay_quotation: number | null;
51
+ receiver_amount: number;
52
+ sender_amount: number;
53
+ partner_fee_amount: number | null;
54
+ flat_fee: number | null;
55
+ total_fee_amount: number | null;
56
+ payer_rules: {
57
+ pix_allowed_tax_ids: string[];
58
+ } | null;
59
+ blockchain_wallet_id: string;
60
+ instance_id: string;
61
+ partner_fee_id: string | null;
62
+ billing_fee: number | null;
63
+ created_at: string;
64
+ updated_at: string;
65
+ };
38
66
  declare function createPayinQuotesResource(instanceId: string, client: InternalApiClient): {
39
67
  create({ ...data }: CreatePayinQuoteInput): Promise<BlindpayApiResponse<CreatePayinQuoteResponse>>;
40
68
  getFxRate({ ...data }: GetPayinFxRateInput): Promise<BlindpayApiResponse<GetPayinFxRateResponse>>;
69
+ get(id: GetPayinQuoteInput): Promise<BlindpayApiResponse<GetPayinQuoteResponse>>;
41
70
  };
42
71
 
43
- export { type CreatePayinQuoteInput, type CreatePayinQuoteResponse, type GetPayinFxRateInput, type GetPayinFxRateResponse, createPayinQuotesResource };
72
+ export { type CreatePayinQuoteInput, type CreatePayinQuoteResponse, type GetPayinFxRateInput, type GetPayinFxRateResponse, type GetPayinQuoteInput, type GetPayinQuoteResponse, type PayinPaymentMethod, createPayinQuotesResource };
@@ -46,6 +46,9 @@ function createPayinQuotesResource(instanceId, client) {
46
46
  getFxRate(_b) {
47
47
  var data = __objRest(_b, []);
48
48
  return client.post(`/instances/${instanceId}/payin-quotes/fx`, data);
49
+ },
50
+ get(id) {
51
+ return client.get(`/instances/${instanceId}/payin-quotes/${id}`);
49
52
  }
50
53
  };
51
54
  }
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createPayinQuotesResource,
3
3
  init_quotes
4
- } from "../../chunk-E7M4CJKR.mjs";
4
+ } from "../../chunk-OTRFWEEC.mjs";
5
5
  import "../../chunk-OBKEW4AQ.mjs";
6
6
  init_quotes();
7
7
  export {
@@ -18702,7 +18702,7 @@ var import_expect_type = __toESM(require_dist(), 1);
18702
18702
  var import_node_crypto = require("crypto");
18703
18703
 
18704
18704
  // package.json
18705
- var version = "2.3.0";
18705
+ var version = "2.4.0";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -18928,6 +18928,9 @@ function createPayinQuotesResource(instanceId, client) {
18928
18928
  getFxRate(_b) {
18929
18929
  var data = __objRest(_b, []);
18930
18930
  return client.post(`/instances/${instanceId}/payin-quotes/fx`, data);
18931
+ },
18932
+ get(id) {
18933
+ return client.get(`/instances/${instanceId}/payin-quotes/${id}`);
18931
18934
  }
18932
18935
  };
18933
18936
  }
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-DZ4K6K32.mjs";
11
+ } from "../../chunk-4DVSRRBP.mjs";
12
12
  import "../../chunk-FG25JHDX.mjs";
13
13
  import "../../chunk-QGNLMN6Z.mjs";
14
14
  import "../../chunk-UC57SCKQ.mjs";
@@ -18,7 +18,7 @@ import "../../chunk-Z6EYX4D3.mjs";
18
18
  import "../../chunk-5XJJKYXE.mjs";
19
19
  import "../../chunk-RC5NN5UF.mjs";
20
20
  import "../../chunk-W7NJUABI.mjs";
21
- import "../../chunk-E7M4CJKR.mjs";
21
+ import "../../chunk-OTRFWEEC.mjs";
22
22
  import "../../chunk-3QQCDR3E.mjs";
23
23
  import "../../chunk-LRHWT4JU.mjs";
24
24
  import "../../chunk-U7CKUUO7.mjs";
@@ -18702,7 +18702,7 @@ var import_expect_type = __toESM(require_dist(), 1);
18702
18702
  var import_node_crypto = require("crypto");
18703
18703
 
18704
18704
  // package.json
18705
- var version = "2.3.0";
18705
+ var version = "2.4.0";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -18928,6 +18928,9 @@ function createPayinQuotesResource(instanceId, client) {
18928
18928
  getFxRate(_b) {
18929
18929
  var data = __objRest(_b, []);
18930
18930
  return client.post(`/instances/${instanceId}/payin-quotes/fx`, data);
18931
+ },
18932
+ get(id) {
18933
+ return client.get(`/instances/${instanceId}/payin-quotes/${id}`);
18931
18934
  }
18932
18935
  };
18933
18936
  }
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-DZ4K6K32.mjs";
11
+ } from "../../chunk-4DVSRRBP.mjs";
12
12
  import "../../chunk-FG25JHDX.mjs";
13
13
  import "../../chunk-QGNLMN6Z.mjs";
14
14
  import "../../chunk-UC57SCKQ.mjs";
@@ -18,7 +18,7 @@ import "../../chunk-Z6EYX4D3.mjs";
18
18
  import "../../chunk-5XJJKYXE.mjs";
19
19
  import "../../chunk-RC5NN5UF.mjs";
20
20
  import "../../chunk-W7NJUABI.mjs";
21
- import "../../chunk-E7M4CJKR.mjs";
21
+ import "../../chunk-OTRFWEEC.mjs";
22
22
  import "../../chunk-3QQCDR3E.mjs";
23
23
  import "../../chunk-LRHWT4JU.mjs";
24
24
  import "../../chunk-U7CKUUO7.mjs";
@@ -18702,7 +18702,7 @@ var import_expect_type = __toESM(require_dist(), 1);
18702
18702
  var import_node_crypto = require("crypto");
18703
18703
 
18704
18704
  // package.json
18705
- var version = "2.3.0";
18705
+ var version = "2.4.0";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -18928,6 +18928,9 @@ function createPayinQuotesResource(instanceId, client) {
18928
18928
  getFxRate(_b) {
18929
18929
  var data = __objRest(_b, []);
18930
18930
  return client.post(`/instances/${instanceId}/payin-quotes/fx`, data);
18931
+ },
18932
+ get(id) {
18933
+ return client.get(`/instances/${instanceId}/payin-quotes/${id}`);
18931
18934
  }
18932
18935
  };
18933
18936
  }
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-DZ4K6K32.mjs";
11
+ } from "../../chunk-4DVSRRBP.mjs";
12
12
  import "../../chunk-FG25JHDX.mjs";
13
13
  import "../../chunk-QGNLMN6Z.mjs";
14
14
  import "../../chunk-UC57SCKQ.mjs";
@@ -18,7 +18,7 @@ import "../../chunk-Z6EYX4D3.mjs";
18
18
  import "../../chunk-5XJJKYXE.mjs";
19
19
  import "../../chunk-RC5NN5UF.mjs";
20
20
  import "../../chunk-W7NJUABI.mjs";
21
- import "../../chunk-E7M4CJKR.mjs";
21
+ import "../../chunk-OTRFWEEC.mjs";
22
22
  import "../../chunk-3QQCDR3E.mjs";
23
23
  import "../../chunk-LRHWT4JU.mjs";
24
24
  import "../../chunk-U7CKUUO7.mjs";
@@ -18702,7 +18702,7 @@ var import_expect_type = __toESM(require_dist(), 1);
18702
18702
  var import_node_crypto = require("crypto");
18703
18703
 
18704
18704
  // package.json
18705
- var version = "2.3.0";
18705
+ var version = "2.4.0";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -18928,6 +18928,9 @@ function createPayinQuotesResource(instanceId, client) {
18928
18928
  getFxRate(_b) {
18929
18929
  var data = __objRest(_b, []);
18930
18930
  return client.post(`/instances/${instanceId}/payin-quotes/fx`, data);
18931
+ },
18932
+ get(id) {
18933
+ return client.get(`/instances/${instanceId}/payin-quotes/${id}`);
18931
18934
  }
18932
18935
  };
18933
18936
  }
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-DZ4K6K32.mjs";
11
+ } from "../../chunk-4DVSRRBP.mjs";
12
12
  import "../../chunk-FG25JHDX.mjs";
13
13
  import "../../chunk-QGNLMN6Z.mjs";
14
14
  import "../../chunk-UC57SCKQ.mjs";
@@ -18,7 +18,7 @@ import "../../chunk-Z6EYX4D3.mjs";
18
18
  import "../../chunk-5XJJKYXE.mjs";
19
19
  import "../../chunk-RC5NN5UF.mjs";
20
20
  import "../../chunk-W7NJUABI.mjs";
21
- import "../../chunk-E7M4CJKR.mjs";
21
+ import "../../chunk-OTRFWEEC.mjs";
22
22
  import "../../chunk-3QQCDR3E.mjs";
23
23
  import "../../chunk-LRHWT4JU.mjs";
24
24
  import "../../chunk-U7CKUUO7.mjs";
@@ -18702,7 +18702,7 @@ var import_expect_type = __toESM(require_dist(), 1);
18702
18702
  var import_node_crypto = require("crypto");
18703
18703
 
18704
18704
  // package.json
18705
- var version = "2.3.0";
18705
+ var version = "2.4.0";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -18928,6 +18928,9 @@ function createPayinQuotesResource(instanceId, client) {
18928
18928
  getFxRate(_b) {
18929
18929
  var data = __objRest(_b, []);
18930
18930
  return client.post(`/instances/${instanceId}/payin-quotes/fx`, data);
18931
+ },
18932
+ get(id) {
18933
+ return client.get(`/instances/${instanceId}/payin-quotes/${id}`);
18931
18934
  }
18932
18935
  };
18933
18936
  }
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-DZ4K6K32.mjs";
11
+ } from "../../chunk-4DVSRRBP.mjs";
12
12
  import "../../chunk-FG25JHDX.mjs";
13
13
  import "../../chunk-QGNLMN6Z.mjs";
14
14
  import "../../chunk-UC57SCKQ.mjs";
@@ -18,7 +18,7 @@ import "../../chunk-Z6EYX4D3.mjs";
18
18
  import "../../chunk-5XJJKYXE.mjs";
19
19
  import "../../chunk-RC5NN5UF.mjs";
20
20
  import "../../chunk-W7NJUABI.mjs";
21
- import "../../chunk-E7M4CJKR.mjs";
21
+ import "../../chunk-OTRFWEEC.mjs";
22
22
  import "../../chunk-3QQCDR3E.mjs";
23
23
  import "../../chunk-LRHWT4JU.mjs";
24
24
  import "../../chunk-U7CKUUO7.mjs";
@@ -18702,7 +18702,7 @@ var import_expect_type = __toESM(require_dist(), 1);
18702
18702
  var import_node_crypto = require("crypto");
18703
18703
 
18704
18704
  // package.json
18705
- var version = "2.3.0";
18705
+ var version = "2.4.0";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -18928,6 +18928,9 @@ function createPayinQuotesResource(instanceId, client) {
18928
18928
  getFxRate(_b) {
18929
18929
  var data = __objRest(_b, []);
18930
18930
  return client.post(`/instances/${instanceId}/payin-quotes/fx`, data);
18931
+ },
18932
+ get(id) {
18933
+ return client.get(`/instances/${instanceId}/payin-quotes/${id}`);
18931
18934
  }
18932
18935
  };
18933
18936
  }
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-DZ4K6K32.mjs";
11
+ } from "../../chunk-4DVSRRBP.mjs";
12
12
  import "../../chunk-FG25JHDX.mjs";
13
13
  import "../../chunk-QGNLMN6Z.mjs";
14
14
  import "../../chunk-UC57SCKQ.mjs";
@@ -18,7 +18,7 @@ import "../../chunk-Z6EYX4D3.mjs";
18
18
  import "../../chunk-5XJJKYXE.mjs";
19
19
  import "../../chunk-RC5NN5UF.mjs";
20
20
  import "../../chunk-W7NJUABI.mjs";
21
- import "../../chunk-E7M4CJKR.mjs";
21
+ import "../../chunk-OTRFWEEC.mjs";
22
22
  import "../../chunk-3QQCDR3E.mjs";
23
23
  import "../../chunk-LRHWT4JU.mjs";
24
24
  import "../../chunk-U7CKUUO7.mjs";
@@ -18702,7 +18702,7 @@ var import_expect_type = __toESM(require_dist(), 1);
18702
18702
  var import_node_crypto = require("crypto");
18703
18703
 
18704
18704
  // package.json
18705
- var version = "2.3.0";
18705
+ var version = "2.4.0";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -18928,6 +18928,9 @@ function createPayinQuotesResource(instanceId, client) {
18928
18928
  getFxRate(_b) {
18929
18929
  var data = __objRest(_b, []);
18930
18930
  return client.post(`/instances/${instanceId}/payin-quotes/fx`, data);
18931
+ },
18932
+ get(id) {
18933
+ return client.get(`/instances/${instanceId}/payin-quotes/${id}`);
18931
18934
  }
18932
18935
  };
18933
18936
  }
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-DZ4K6K32.mjs";
11
+ } from "../../chunk-4DVSRRBP.mjs";
12
12
  import "../../chunk-FG25JHDX.mjs";
13
13
  import "../../chunk-QGNLMN6Z.mjs";
14
14
  import "../../chunk-UC57SCKQ.mjs";
@@ -18,7 +18,7 @@ import "../../chunk-Z6EYX4D3.mjs";
18
18
  import "../../chunk-5XJJKYXE.mjs";
19
19
  import "../../chunk-RC5NN5UF.mjs";
20
20
  import "../../chunk-W7NJUABI.mjs";
21
- import "../../chunk-E7M4CJKR.mjs";
21
+ import "../../chunk-OTRFWEEC.mjs";
22
22
  import "../../chunk-3QQCDR3E.mjs";
23
23
  import "../../chunk-LRHWT4JU.mjs";
24
24
  import "../../chunk-U7CKUUO7.mjs";
@@ -18702,7 +18702,7 @@ var import_expect_type = __toESM(require_dist(), 1);
18702
18702
  var import_node_crypto = require("crypto");
18703
18703
 
18704
18704
  // package.json
18705
- var version = "2.3.0";
18705
+ var version = "2.4.0";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -18928,6 +18928,9 @@ function createPayinQuotesResource(instanceId, client) {
18928
18928
  getFxRate(_b) {
18929
18929
  var data = __objRest(_b, []);
18930
18930
  return client.post(`/instances/${instanceId}/payin-quotes/fx`, data);
18931
+ },
18932
+ get(id) {
18933
+ return client.get(`/instances/${instanceId}/payin-quotes/${id}`);
18931
18934
  }
18932
18935
  };
18933
18936
  }
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-DZ4K6K32.mjs";
11
+ } from "../../chunk-4DVSRRBP.mjs";
12
12
  import "../../chunk-FG25JHDX.mjs";
13
13
  import "../../chunk-QGNLMN6Z.mjs";
14
14
  import "../../chunk-UC57SCKQ.mjs";
@@ -18,7 +18,7 @@ import "../../chunk-Z6EYX4D3.mjs";
18
18
  import "../../chunk-5XJJKYXE.mjs";
19
19
  import "../../chunk-RC5NN5UF.mjs";
20
20
  import "../../chunk-W7NJUABI.mjs";
21
- import "../../chunk-E7M4CJKR.mjs";
21
+ import "../../chunk-OTRFWEEC.mjs";
22
22
  import "../../chunk-3QQCDR3E.mjs";
23
23
  import "../../chunk-LRHWT4JU.mjs";
24
24
  import "../../chunk-U7CKUUO7.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blindpay/node",
3
- "version": "2.3.0",
3
+ "version": "2.4.0",
4
4
  "description": "Official Node.js SDK for Blindpay API - Global payments infrastructure",
5
5
  "keywords": [
6
6
  "blindpay",