@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,134 @@
1
+ import {
2
+ afterEach,
3
+ describe,
4
+ globalExpect,
5
+ init_dist,
6
+ it
7
+ } from "../../chunk-GCCHFONX.mjs";
8
+ import {
9
+ Blindpay,
10
+ init_client
11
+ } from "../../chunk-ES7RXEM7.mjs";
12
+ import "../../chunk-GEDDLCJY.mjs";
13
+ import "../../chunk-LK3JPQ6I.mjs";
14
+ import "../../chunk-CNNEROQ7.mjs";
15
+ import "../../chunk-GNDAATIJ.mjs";
16
+ import "../../chunk-VKN2AMCW.mjs";
17
+ import "../../chunk-LUDGZPXY.mjs";
18
+ import "../../chunk-3CZJEDS5.mjs";
19
+ import "../../chunk-UCAW3RTZ.mjs";
20
+ import "../../chunk-M6IYYMRW.mjs";
21
+ import "../../chunk-HKFAJXJG.mjs";
22
+ import "../../chunk-QVOSGLUO.mjs";
23
+ import "../../chunk-2DAKB5XK.mjs";
24
+ import "../../chunk-QHMIK7U3.mjs";
25
+ import "../../chunk-LLWEHHKB.mjs";
26
+ import {
27
+ __async,
28
+ __commonJS
29
+ } from "../../chunk-OBKEW4AQ.mjs";
30
+
31
+ // src/resources/partner-fees/partner-fees.test.ts
32
+ var require_partner_fees_test = __commonJS({
33
+ "src/resources/partner-fees/partner-fees.test.ts"(exports) {
34
+ init_dist();
35
+ init_client();
36
+ describe("Partner fees", () => {
37
+ afterEach(() => fetchMock.resetMocks());
38
+ const blindpay = new Blindpay("test-key");
39
+ describe("List partner fees", () => {
40
+ it("should list partner fees", () => __async(null, null, function* () {
41
+ const mockedList = [
42
+ {
43
+ id: "fe_000000000000",
44
+ instance_id: "in_000000000000",
45
+ name: "Display Name",
46
+ payout_percentage_fee: 0,
47
+ payout_flat_fee: 0,
48
+ payin_percentage_fee: 0,
49
+ payin_flat_fee: 0,
50
+ evm_wallet_address: "0x1234567890123456789012345678901234567890",
51
+ stellar_wallet_address: "GAB22222222222222222222222222222222222222222222222222222222222222"
52
+ }
53
+ ];
54
+ fetchMock.mockResponseOnce(JSON.stringify(mockedList), {
55
+ headers: { "Content-Type": "application/json" }
56
+ });
57
+ const { data, error } = yield blindpay.partnerFees.list({
58
+ instanceId: "in_000000000000"
59
+ });
60
+ globalExpect(error).toBeNull();
61
+ globalExpect(data).toEqual(mockedList);
62
+ }));
63
+ });
64
+ describe("Create partner fee", () => {
65
+ it("should create a partner fee", () => __async(null, null, function* () {
66
+ const mockPartnerFee = {
67
+ id: "fe_000000000000",
68
+ instance_id: "in_000000000000",
69
+ name: "Display Name",
70
+ payout_percentage_fee: 0,
71
+ payout_flat_fee: 0,
72
+ payin_percentage_fee: 0,
73
+ payin_flat_fee: 0,
74
+ evm_wallet_address: "0x1234567890123456789012345678901234567890",
75
+ stellar_wallet_address: "GAB22222222222222222222222222222222222222222222222222222222222222"
76
+ };
77
+ fetchMock.mockResponseOnce(JSON.stringify(mockPartnerFee), {
78
+ headers: { "Content-Type": "application/json" }
79
+ });
80
+ const { data, error } = yield blindpay.partnerFees.create({
81
+ instanceId: "in_000000000000",
82
+ name: "Display Name",
83
+ payout_percentage_fee: 0,
84
+ payout_flat_fee: 0,
85
+ payin_percentage_fee: 0,
86
+ payin_flat_fee: 0,
87
+ evm_wallet_address: "0x1234567890123456789012345678901234567890",
88
+ stellar_wallet_address: "GAB22222222222222222222222222222222222222222222222222222222222222"
89
+ });
90
+ globalExpect(error).toBeNull();
91
+ globalExpect(data).toEqual(mockPartnerFee);
92
+ }));
93
+ });
94
+ describe("Get partner fee", () => {
95
+ it("should get a partner fee", () => __async(null, null, function* () {
96
+ const mockedFee = {
97
+ id: "fe_000000000000",
98
+ instance_id: "in_000000000000",
99
+ name: "Display Name",
100
+ payout_percentage_fee: 0,
101
+ payout_flat_fee: 0,
102
+ payin_percentage_fee: 0,
103
+ payin_flat_fee: 0,
104
+ evm_wallet_address: "0x1234567890123456789012345678901234567890",
105
+ stellar_wallet_address: "GAB22222222222222222222222222222222222222222222222222222222222222"
106
+ };
107
+ fetchMock.mockResponseOnce(JSON.stringify(mockedFee), {
108
+ headers: { "Content-Type": "application/json" }
109
+ });
110
+ const { data, error } = yield blindpay.partnerFees.get({
111
+ instanceId: "in_000000000000",
112
+ id: "fe_000000000000"
113
+ });
114
+ globalExpect(error).toBeNull();
115
+ globalExpect(data).toEqual(mockedFee);
116
+ }));
117
+ });
118
+ describe("Delete partner fee", () => {
119
+ it("should delete a partner fee", () => __async(null, null, function* () {
120
+ fetchMock.mockResponseOnce(JSON.stringify({ data: null }), {
121
+ headers: { "Content-Type": "application/json" }
122
+ });
123
+ const { data, error } = yield blindpay.partnerFees.delete({
124
+ instanceId: "in_000000000000",
125
+ id: "fe_000000000000"
126
+ });
127
+ globalExpect(error).toBeNull();
128
+ globalExpect(data).toEqual({ data: null });
129
+ }));
130
+ });
131
+ });
132
+ }
133
+ });
134
+ export default require_partner_fees_test();
@@ -0,0 +1,200 @@
1
+ import { I as InternalApiClient, P as PaginationParams, T as TransactionStatus, N as Network, B as BlindpayApiResponse, b as TrackingTransaction, c as TrackingPayment, d as TrackingComplete, e as TrackingPartnerFee, S as StablecoinToken, f as PaginationMetadata } from '../../api-client-Cw2mNJeR.mjs';
2
+
3
+ type Payin = {
4
+ receiver_id: string;
5
+ id: string;
6
+ pix_code?: string;
7
+ memo_code?: string;
8
+ clabe?: string;
9
+ status: TransactionStatus;
10
+ payin_quote_id: string;
11
+ instance_id: string;
12
+ tracking_transaction?: TrackingTransaction;
13
+ tracking_payment?: TrackingPayment;
14
+ tracking_complete?: TrackingComplete;
15
+ tracking_partner_fee?: TrackingPartnerFee;
16
+ created_at: string;
17
+ updated_at: string;
18
+ image_url?: string;
19
+ first_name?: string;
20
+ last_name?: string;
21
+ legal_name?: string;
22
+ type: string;
23
+ payment_method: string;
24
+ sender_amount: number;
25
+ receiver_amount: number;
26
+ token: StablecoinToken;
27
+ partner_fee_amount: number;
28
+ total_fee_amount: number;
29
+ commercial_quotation: number;
30
+ blindpay_quotation: number;
31
+ currency: string;
32
+ billing_fee: number;
33
+ name: string;
34
+ address: string;
35
+ network: Network;
36
+ blindpay_bank_details: {
37
+ routing_number: string;
38
+ account_number: string;
39
+ account_type: string;
40
+ swift_bic_code: string;
41
+ ach: {
42
+ routing_number: string;
43
+ account_number: string;
44
+ };
45
+ wire: {
46
+ routing_number: string;
47
+ account_number: string;
48
+ };
49
+ rtp: {
50
+ routing_number: string;
51
+ account_number: string;
52
+ };
53
+ beneficiary: {
54
+ name: string;
55
+ address_line_1: string;
56
+ address_line_2: string;
57
+ };
58
+ receiving_bank: {
59
+ name: string;
60
+ address_line_1: string;
61
+ address_line_2: string;
62
+ };
63
+ };
64
+ };
65
+ type ListPayinsInput = {
66
+ instanceId: string;
67
+ params?: PaginationParams & {
68
+ status?: TransactionStatus;
69
+ receiver_id?: Network;
70
+ };
71
+ };
72
+ type ListPayinsResponse = {
73
+ data: Payin[];
74
+ pagination: PaginationMetadata;
75
+ };
76
+ type CreatePayinInput = {
77
+ instanceId: string;
78
+ quote_id: string;
79
+ sender_address: string;
80
+ receiver_address: string;
81
+ amount: number;
82
+ token: StablecoinToken;
83
+ network: Network;
84
+ description?: string | null;
85
+ };
86
+ type GetPayinInput = {
87
+ instanceId: string;
88
+ id: string;
89
+ };
90
+ type GetPayinResponse = Payin;
91
+ type GetPayinTrackInput = {
92
+ id: string;
93
+ };
94
+ type GetPayinTrackResponse = {
95
+ receiver_id: string;
96
+ id: string;
97
+ pix_code: string;
98
+ memo_code: string;
99
+ clabe: string;
100
+ status: string;
101
+ payin_quote_id: string;
102
+ instance_id: string;
103
+ tracking_transaction: {
104
+ step: string;
105
+ status: string;
106
+ external_id: string;
107
+ completed_at: string;
108
+ sender_name: string;
109
+ sender_tax_id: string;
110
+ sender_bank_code: string;
111
+ sender_account_number: string;
112
+ trace_number: string;
113
+ transaction_reference: string;
114
+ description: string;
115
+ };
116
+ tracking_payment: {
117
+ step: string;
118
+ provider_name: string;
119
+ completed_at: string;
120
+ };
121
+ tracking_complete: {
122
+ step: string;
123
+ transaction_hash: string;
124
+ completed_at: string;
125
+ };
126
+ tracking_partner_fee: {
127
+ step: string;
128
+ transaction_hash: string;
129
+ completed_at: string;
130
+ };
131
+ created_at: string;
132
+ updated_at: string;
133
+ image_url: string;
134
+ first_name: string;
135
+ last_name: string;
136
+ legal_name: string;
137
+ type: string;
138
+ payment_method: string;
139
+ sender_amount: number;
140
+ receiver_amount: number;
141
+ token: StablecoinToken;
142
+ partner_fee_amount: number;
143
+ total_fee_amount: number;
144
+ commercial_quotation: number;
145
+ blindpay_quotation: number;
146
+ currency: string;
147
+ billing_fee: number;
148
+ name: string;
149
+ address: string;
150
+ network: Network;
151
+ blindpay_bank_details: {
152
+ routing_number: string;
153
+ account_number: string;
154
+ account_type: string;
155
+ swift_bic_code: string;
156
+ ach: {
157
+ routing_number: string;
158
+ account_number: string;
159
+ };
160
+ wire: {
161
+ routing_number: string;
162
+ account_number: string;
163
+ };
164
+ rtp: {
165
+ routing_number: string;
166
+ account_number: string;
167
+ };
168
+ beneficiary: {
169
+ name: string;
170
+ address_line_1: string;
171
+ address_line_2: string;
172
+ };
173
+ receiving_bank: {
174
+ name: string;
175
+ address_line_1: string;
176
+ address_line_2: string;
177
+ };
178
+ };
179
+ };
180
+ type ExportPayinsInput = {
181
+ instanceId: string;
182
+ params?: Pick<PaginationParams, "limit" | "offset"> & {
183
+ status: TransactionStatus;
184
+ };
185
+ };
186
+ type ExportPayinsResponse = Payin[];
187
+ type CreateEvmPayinInput = {
188
+ instanceId: string;
189
+ payin_quote_id: string;
190
+ };
191
+ type CreateEvmPayinResponse = Pick<Payin, "id" | "status" | "pix_code" | "memo_code" | "clabe" | "tracking_complete" | "tracking_payment" | "tracking_transaction" | "tracking_partner_fee" | "blindpay_bank_details" | "receiver_id" | "receiver_amount">;
192
+ declare function createPayinsResource(client: InternalApiClient): {
193
+ list({ instanceId, params, }: ListPayinsInput): Promise<BlindpayApiResponse<ListPayinsResponse>>;
194
+ get({ instanceId, id }: GetPayinInput): Promise<BlindpayApiResponse<GetPayinResponse>>;
195
+ getTrack({ id }: GetPayinTrackInput): Promise<BlindpayApiResponse<GetPayinTrackResponse>>;
196
+ export({ instanceId, params, }: ExportPayinsInput): Promise<BlindpayApiResponse<ExportPayinsResponse>>;
197
+ createEvm({ instanceId, ...data }: CreateEvmPayinInput): Promise<BlindpayApiResponse<CreateEvmPayinResponse>>;
198
+ };
199
+
200
+ export { type CreateEvmPayinInput, type CreateEvmPayinResponse, type CreatePayinInput, type ExportPayinsInput, type ExportPayinsResponse, type GetPayinInput, type GetPayinResponse, type GetPayinTrackInput, type GetPayinTrackResponse, type ListPayinsInput, type ListPayinsResponse, type Payin, createPayinsResource };
@@ -0,0 +1,200 @@
1
+ import { I as InternalApiClient, P as PaginationParams, T as TransactionStatus, N as Network, B as BlindpayApiResponse, b as TrackingTransaction, c as TrackingPayment, d as TrackingComplete, e as TrackingPartnerFee, S as StablecoinToken, f as PaginationMetadata } from '../../api-client-Cw2mNJeR.js';
2
+
3
+ type Payin = {
4
+ receiver_id: string;
5
+ id: string;
6
+ pix_code?: string;
7
+ memo_code?: string;
8
+ clabe?: string;
9
+ status: TransactionStatus;
10
+ payin_quote_id: string;
11
+ instance_id: string;
12
+ tracking_transaction?: TrackingTransaction;
13
+ tracking_payment?: TrackingPayment;
14
+ tracking_complete?: TrackingComplete;
15
+ tracking_partner_fee?: TrackingPartnerFee;
16
+ created_at: string;
17
+ updated_at: string;
18
+ image_url?: string;
19
+ first_name?: string;
20
+ last_name?: string;
21
+ legal_name?: string;
22
+ type: string;
23
+ payment_method: string;
24
+ sender_amount: number;
25
+ receiver_amount: number;
26
+ token: StablecoinToken;
27
+ partner_fee_amount: number;
28
+ total_fee_amount: number;
29
+ commercial_quotation: number;
30
+ blindpay_quotation: number;
31
+ currency: string;
32
+ billing_fee: number;
33
+ name: string;
34
+ address: string;
35
+ network: Network;
36
+ blindpay_bank_details: {
37
+ routing_number: string;
38
+ account_number: string;
39
+ account_type: string;
40
+ swift_bic_code: string;
41
+ ach: {
42
+ routing_number: string;
43
+ account_number: string;
44
+ };
45
+ wire: {
46
+ routing_number: string;
47
+ account_number: string;
48
+ };
49
+ rtp: {
50
+ routing_number: string;
51
+ account_number: string;
52
+ };
53
+ beneficiary: {
54
+ name: string;
55
+ address_line_1: string;
56
+ address_line_2: string;
57
+ };
58
+ receiving_bank: {
59
+ name: string;
60
+ address_line_1: string;
61
+ address_line_2: string;
62
+ };
63
+ };
64
+ };
65
+ type ListPayinsInput = {
66
+ instanceId: string;
67
+ params?: PaginationParams & {
68
+ status?: TransactionStatus;
69
+ receiver_id?: Network;
70
+ };
71
+ };
72
+ type ListPayinsResponse = {
73
+ data: Payin[];
74
+ pagination: PaginationMetadata;
75
+ };
76
+ type CreatePayinInput = {
77
+ instanceId: string;
78
+ quote_id: string;
79
+ sender_address: string;
80
+ receiver_address: string;
81
+ amount: number;
82
+ token: StablecoinToken;
83
+ network: Network;
84
+ description?: string | null;
85
+ };
86
+ type GetPayinInput = {
87
+ instanceId: string;
88
+ id: string;
89
+ };
90
+ type GetPayinResponse = Payin;
91
+ type GetPayinTrackInput = {
92
+ id: string;
93
+ };
94
+ type GetPayinTrackResponse = {
95
+ receiver_id: string;
96
+ id: string;
97
+ pix_code: string;
98
+ memo_code: string;
99
+ clabe: string;
100
+ status: string;
101
+ payin_quote_id: string;
102
+ instance_id: string;
103
+ tracking_transaction: {
104
+ step: string;
105
+ status: string;
106
+ external_id: string;
107
+ completed_at: string;
108
+ sender_name: string;
109
+ sender_tax_id: string;
110
+ sender_bank_code: string;
111
+ sender_account_number: string;
112
+ trace_number: string;
113
+ transaction_reference: string;
114
+ description: string;
115
+ };
116
+ tracking_payment: {
117
+ step: string;
118
+ provider_name: string;
119
+ completed_at: string;
120
+ };
121
+ tracking_complete: {
122
+ step: string;
123
+ transaction_hash: string;
124
+ completed_at: string;
125
+ };
126
+ tracking_partner_fee: {
127
+ step: string;
128
+ transaction_hash: string;
129
+ completed_at: string;
130
+ };
131
+ created_at: string;
132
+ updated_at: string;
133
+ image_url: string;
134
+ first_name: string;
135
+ last_name: string;
136
+ legal_name: string;
137
+ type: string;
138
+ payment_method: string;
139
+ sender_amount: number;
140
+ receiver_amount: number;
141
+ token: StablecoinToken;
142
+ partner_fee_amount: number;
143
+ total_fee_amount: number;
144
+ commercial_quotation: number;
145
+ blindpay_quotation: number;
146
+ currency: string;
147
+ billing_fee: number;
148
+ name: string;
149
+ address: string;
150
+ network: Network;
151
+ blindpay_bank_details: {
152
+ routing_number: string;
153
+ account_number: string;
154
+ account_type: string;
155
+ swift_bic_code: string;
156
+ ach: {
157
+ routing_number: string;
158
+ account_number: string;
159
+ };
160
+ wire: {
161
+ routing_number: string;
162
+ account_number: string;
163
+ };
164
+ rtp: {
165
+ routing_number: string;
166
+ account_number: string;
167
+ };
168
+ beneficiary: {
169
+ name: string;
170
+ address_line_1: string;
171
+ address_line_2: string;
172
+ };
173
+ receiving_bank: {
174
+ name: string;
175
+ address_line_1: string;
176
+ address_line_2: string;
177
+ };
178
+ };
179
+ };
180
+ type ExportPayinsInput = {
181
+ instanceId: string;
182
+ params?: Pick<PaginationParams, "limit" | "offset"> & {
183
+ status: TransactionStatus;
184
+ };
185
+ };
186
+ type ExportPayinsResponse = Payin[];
187
+ type CreateEvmPayinInput = {
188
+ instanceId: string;
189
+ payin_quote_id: string;
190
+ };
191
+ type CreateEvmPayinResponse = Pick<Payin, "id" | "status" | "pix_code" | "memo_code" | "clabe" | "tracking_complete" | "tracking_payment" | "tracking_transaction" | "tracking_partner_fee" | "blindpay_bank_details" | "receiver_id" | "receiver_amount">;
192
+ declare function createPayinsResource(client: InternalApiClient): {
193
+ list({ instanceId, params, }: ListPayinsInput): Promise<BlindpayApiResponse<ListPayinsResponse>>;
194
+ get({ instanceId, id }: GetPayinInput): Promise<BlindpayApiResponse<GetPayinResponse>>;
195
+ getTrack({ id }: GetPayinTrackInput): Promise<BlindpayApiResponse<GetPayinTrackResponse>>;
196
+ export({ instanceId, params, }: ExportPayinsInput): Promise<BlindpayApiResponse<ExportPayinsResponse>>;
197
+ createEvm({ instanceId, ...data }: CreateEvmPayinInput): Promise<BlindpayApiResponse<CreateEvmPayinResponse>>;
198
+ };
199
+
200
+ export { type CreateEvmPayinInput, type CreateEvmPayinResponse, type CreatePayinInput, type ExportPayinsInput, type ExportPayinsResponse, type GetPayinInput, type GetPayinResponse, type GetPayinTrackInput, type GetPayinTrackResponse, type ListPayinsInput, type ListPayinsResponse, type Payin, createPayinsResource };
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
8
+ var __objRest = (source, exclude) => {
9
+ var target = {};
10
+ for (var prop in source)
11
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
12
+ target[prop] = source[prop];
13
+ if (source != null && __getOwnPropSymbols)
14
+ for (var prop of __getOwnPropSymbols(source)) {
15
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
16
+ target[prop] = source[prop];
17
+ }
18
+ return target;
19
+ };
20
+ var __export = (target, all) => {
21
+ for (var name in all)
22
+ __defProp(target, name, { get: all[name], enumerable: true });
23
+ };
24
+ var __copyProps = (to, from, except, desc) => {
25
+ if (from && typeof from === "object" || typeof from === "function") {
26
+ for (let key of __getOwnPropNames(from))
27
+ if (!__hasOwnProp.call(to, key) && key !== except)
28
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
29
+ }
30
+ return to;
31
+ };
32
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
33
+
34
+ // src/resources/payins/index.ts
35
+ var payins_exports = {};
36
+ __export(payins_exports, {
37
+ createPayinsResource: () => createPayinsResource
38
+ });
39
+ module.exports = __toCommonJS(payins_exports);
40
+ function createPayinsResource(client) {
41
+ return {
42
+ list({
43
+ instanceId,
44
+ params
45
+ }) {
46
+ const queryParams = params ? `?${new URLSearchParams(params)}` : "";
47
+ return client.get(`/instances/${instanceId}/payins${queryParams}`);
48
+ },
49
+ get({ instanceId, id }) {
50
+ return client.get(`/instances/${instanceId}/payins/${id}`);
51
+ },
52
+ getTrack({ id }) {
53
+ return client.get(`/e/payins/${id}`);
54
+ },
55
+ export({
56
+ instanceId,
57
+ params
58
+ }) {
59
+ const queryParams = params ? `?${new URLSearchParams(params)}` : "";
60
+ return client.get(`/instances/${instanceId}/export/payins${queryParams}`);
61
+ },
62
+ createEvm(_a) {
63
+ var _b = _a, {
64
+ instanceId
65
+ } = _b, data = __objRest(_b, [
66
+ "instanceId"
67
+ ]);
68
+ return client.post(`/instances/${instanceId}/payins/evm`, data);
69
+ }
70
+ };
71
+ }
72
+ // Annotate the CommonJS export names for ESM import in node:
73
+ 0 && (module.exports = {
74
+ createPayinsResource
75
+ });
@@ -0,0 +1,9 @@
1
+ import {
2
+ createPayinsResource,
3
+ init_payins
4
+ } from "../../chunk-UCAW3RTZ.mjs";
5
+ import "../../chunk-OBKEW4AQ.mjs";
6
+ init_payins();
7
+ export {
8
+ createPayinsResource
9
+ };
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1,2 @@
1
+
2
+ export { }