@getivy/node-sdk 2.7.0 → 2.20.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.
- package/CHANGELOG.md +145 -0
- package/README.md +2 -2
- package/bin/migration-config.json +1 -1
- package/client.d.mts +10 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +10 -4
- package/client.d.ts.map +1 -1
- package/client.js +21 -7
- package/client.js.map +1 -1
- package/client.mjs +21 -7
- package/client.mjs.map +1 -1
- package/internal/tslib.js +17 -17
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +4 -1
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +4 -1
- package/internal/utils/log.mjs.map +1 -1
- package/lib/request-signing.d.mts +6 -0
- package/lib/request-signing.d.mts.map +1 -0
- package/lib/request-signing.d.ts +6 -0
- package/lib/request-signing.d.ts.map +1 -0
- package/lib/request-signing.js +113 -0
- package/lib/request-signing.js.map +1 -0
- package/lib/request-signing.mjs +109 -0
- package/lib/request-signing.mjs.map +1 -0
- package/package.json +16 -4
- package/resources/banks.d.mts +12 -14
- package/resources/banks.d.mts.map +1 -1
- package/resources/banks.d.ts +12 -14
- package/resources/banks.d.ts.map +1 -1
- package/resources/beneficiary-payouts.d.mts +2 -2
- package/resources/beneficiary-payouts.d.mts.map +1 -1
- package/resources/beneficiary-payouts.d.ts +2 -2
- package/resources/beneficiary-payouts.d.ts.map +1 -1
- package/resources/capabilities.d.mts +8 -1
- package/resources/capabilities.d.mts.map +1 -1
- package/resources/capabilities.d.ts +8 -1
- package/resources/capabilities.d.ts.map +1 -1
- package/resources/capabilities.js +7 -0
- package/resources/capabilities.js.map +1 -1
- package/resources/capabilities.mjs +7 -0
- package/resources/capabilities.mjs.map +1 -1
- package/resources/checkoutsession.d.mts +18 -10
- package/resources/checkoutsession.d.mts.map +1 -1
- package/resources/checkoutsession.d.ts +18 -10
- package/resources/checkoutsession.d.ts.map +1 -1
- package/resources/checkoutsession.js +3 -2
- package/resources/checkoutsession.js.map +1 -1
- package/resources/checkoutsession.mjs +3 -2
- package/resources/checkoutsession.mjs.map +1 -1
- package/resources/counterparties.d.mts +956 -0
- package/resources/counterparties.d.mts.map +1 -0
- package/resources/counterparties.d.ts +956 -0
- package/resources/counterparties.d.ts.map +1 -0
- package/resources/counterparties.js +41 -0
- package/resources/counterparties.js.map +1 -0
- package/resources/counterparties.mjs +37 -0
- package/resources/counterparties.mjs.map +1 -0
- package/resources/customers.d.mts +6 -6
- package/resources/customers.d.mts.map +1 -1
- package/resources/customers.d.ts +6 -6
- package/resources/customers.d.ts.map +1 -1
- package/resources/deposits.d.mts +21 -7
- package/resources/deposits.d.mts.map +1 -1
- package/resources/deposits.d.ts +21 -7
- package/resources/deposits.d.ts.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/orders.d.mts +102 -39
- package/resources/orders.d.mts.map +1 -1
- package/resources/orders.d.ts +102 -39
- package/resources/orders.d.ts.map +1 -1
- package/resources/payouts.d.mts +82 -21
- package/resources/payouts.d.mts.map +1 -1
- package/resources/payouts.d.ts +82 -21
- package/resources/payouts.d.ts.map +1 -1
- package/resources/refunds.d.mts +1 -1
- package/resources/refunds.d.mts.map +1 -1
- package/resources/refunds.d.ts +1 -1
- package/resources/refunds.d.ts.map +1 -1
- package/resources/returns.d.mts +2 -2
- package/resources/returns.d.mts.map +1 -1
- package/resources/returns.d.ts +2 -2
- package/resources/returns.d.ts.map +1 -1
- package/resources/subaccounts.d.mts +4 -4
- package/resources/subaccounts.d.mts.map +1 -1
- package/resources/subaccounts.d.ts +4 -4
- package/resources/subaccounts.d.ts.map +1 -1
- package/resources/transactions.d.mts +2 -2
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts +2 -2
- package/resources/transactions.d.ts.map +1 -1
- package/resources/webhook/subscription.d.mts +12 -12
- package/resources/webhook/subscription.d.mts.map +1 -1
- package/resources/webhook/subscription.d.ts +12 -12
- package/resources/webhook/subscription.d.ts.map +1 -1
- package/src/client.ts +51 -22
- package/src/internal/utils/log.ts +3 -0
- package/src/lib/request-signing.ts +139 -0
- package/src/resources/banks.ts +21 -11
- package/src/resources/beneficiary-payouts.ts +2 -2
- package/src/resources/capabilities.ts +8 -1
- package/src/resources/checkoutsession.ts +31 -10
- package/src/resources/counterparties.ts +3073 -0
- package/src/resources/customers.ts +3509 -3509
- package/src/resources/deposits.ts +52 -6
- package/src/resources/index.ts +13 -9
- package/src/resources/orders.ts +222 -36
- package/src/resources/payouts.ts +396 -17
- package/src/resources/refunds.ts +1 -1
- package/src/resources/returns.ts +2 -2
- package/src/resources/subaccounts.ts +4 -4
- package/src/resources/transactions.ts +2 -2
- package/src/resources/webhook/subscription.ts +37 -12
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
- package/resources/fx.d.mts +0 -155
- package/resources/fx.d.mts.map +0 -1
- package/resources/fx.d.ts +0 -155
- package/resources/fx.d.ts.map +0 -1
- package/resources/fx.js +0 -28
- package/resources/fx.js.map +0 -1
- package/resources/fx.mjs +0 -24
- package/resources/fx.mjs.map +0 -1
- package/src/resources/fx.ts +0 -195
|
@@ -36,7 +36,7 @@ export namespace BeneficiaryPayoutCreateResponse {
|
|
|
36
36
|
/**
|
|
37
37
|
* The creation timestamp of the payout
|
|
38
38
|
*/
|
|
39
|
-
createdAt:
|
|
39
|
+
createdAt: string;
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
42
|
* The currency of the balance which was settled to the beneficiary bank account or
|
|
@@ -67,7 +67,7 @@ export namespace BeneficiaryPayoutCreateResponse {
|
|
|
67
67
|
/**
|
|
68
68
|
* The current status of the payout
|
|
69
69
|
*/
|
|
70
|
-
status: 'paid' | 'pending' | 'in_transit' | 'failed' | 'canceled';
|
|
70
|
+
status: 'paid' | 'pending' | 'in_transit' | 'failed' | 'returned' | 'canceled';
|
|
71
71
|
|
|
72
72
|
/**
|
|
73
73
|
* The type of payout
|
|
@@ -8,6 +8,13 @@ export class Capabilities extends APIResource {
|
|
|
8
8
|
/**
|
|
9
9
|
* Retrieve the capabilities of your Ivy account. The capabilities are broken down
|
|
10
10
|
* by market and by product.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const capability = await client.capabilities.retrieve({
|
|
15
|
+
* market: 'DE',
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
11
18
|
*/
|
|
12
19
|
retrieve(body: CapabilityRetrieveParams, options?: RequestOptions): APIPromise<CapabilityRetrieveResponse> {
|
|
13
20
|
return this._client.post('/api/service/merchant/capabilities/details', { body, ...options });
|
|
@@ -15,7 +22,7 @@ export class Capabilities extends APIResource {
|
|
|
15
22
|
}
|
|
16
23
|
|
|
17
24
|
export interface CapabilityRetrieveResponse {
|
|
18
|
-
capabilities?: Array<'
|
|
25
|
+
capabilities?: Array<'pis'>;
|
|
19
26
|
}
|
|
20
27
|
|
|
21
28
|
export interface CapabilityRetrieveParams {
|
|
@@ -7,8 +7,9 @@ import { RequestOptions } from '../internal/request-options';
|
|
|
7
7
|
export class Checkoutsession extends APIResource {
|
|
8
8
|
/**
|
|
9
9
|
* Creates a Checkout Session for the merchant corresponding to the given API key.
|
|
10
|
-
* See
|
|
11
|
-
*
|
|
10
|
+
* See
|
|
11
|
+
* [the guide](https://docs.augustus.com/docs/pay-by-bank/instant-bank-transfer)
|
|
12
|
+
* for more information.
|
|
12
13
|
*/
|
|
13
14
|
create(
|
|
14
15
|
body: CheckoutsessionCreateParams,
|
|
@@ -329,7 +330,7 @@ export interface CheckoutsessionCreateResponse {
|
|
|
329
330
|
|
|
330
331
|
completeCallbackUrl?: string;
|
|
331
332
|
|
|
332
|
-
createdAt?:
|
|
333
|
+
createdAt?: string;
|
|
333
334
|
|
|
334
335
|
customer?: CheckoutsessionCreateResponse.Customer;
|
|
335
336
|
|
|
@@ -627,7 +628,7 @@ export interface CheckoutsessionCreateResponse {
|
|
|
627
628
|
|
|
628
629
|
subaccountId?: string;
|
|
629
630
|
|
|
630
|
-
updatedAt?:
|
|
631
|
+
updatedAt?: string;
|
|
631
632
|
}
|
|
632
633
|
|
|
633
634
|
export namespace CheckoutsessionCreateResponse {
|
|
@@ -1818,7 +1819,7 @@ export interface CheckoutsessionRetrieveResponse {
|
|
|
1818
1819
|
|
|
1819
1820
|
completeCallbackUrl?: string;
|
|
1820
1821
|
|
|
1821
|
-
createdAt?:
|
|
1822
|
+
createdAt?: string;
|
|
1822
1823
|
|
|
1823
1824
|
customer?: CheckoutsessionRetrieveResponse.Customer;
|
|
1824
1825
|
|
|
@@ -2116,7 +2117,7 @@ export interface CheckoutsessionRetrieveResponse {
|
|
|
2116
2117
|
|
|
2117
2118
|
subaccountId?: string;
|
|
2118
2119
|
|
|
2119
|
-
updatedAt?:
|
|
2120
|
+
updatedAt?: string;
|
|
2120
2121
|
}
|
|
2121
2122
|
|
|
2122
2123
|
export namespace CheckoutsessionRetrieveResponse {
|
|
@@ -3307,7 +3308,7 @@ export interface CheckoutsessionExpireResponse {
|
|
|
3307
3308
|
|
|
3308
3309
|
completeCallbackUrl?: string;
|
|
3309
3310
|
|
|
3310
|
-
createdAt?:
|
|
3311
|
+
createdAt?: string;
|
|
3311
3312
|
|
|
3312
3313
|
customer?: CheckoutsessionExpireResponse.Customer;
|
|
3313
3314
|
|
|
@@ -3605,7 +3606,7 @@ export interface CheckoutsessionExpireResponse {
|
|
|
3605
3606
|
|
|
3606
3607
|
subaccountId?: string;
|
|
3607
3608
|
|
|
3608
|
-
updatedAt?:
|
|
3609
|
+
updatedAt?: string;
|
|
3609
3610
|
}
|
|
3610
3611
|
|
|
3611
3612
|
export namespace CheckoutsessionExpireResponse {
|
|
@@ -5511,7 +5512,7 @@ export namespace CheckoutsessionCreateParams {
|
|
|
5511
5512
|
}
|
|
5512
5513
|
|
|
5513
5514
|
export interface FinancialAddress {
|
|
5514
|
-
type: 'iban' | 'sort_code' | 'bank_code' | 'bban' | 'wallet' | 'aba';
|
|
5515
|
+
type: 'iban' | 'sort_code' | 'bank_code' | 'bban' | 'wallet' | 'aba' | 'bic';
|
|
5515
5516
|
|
|
5516
5517
|
aba?: FinancialAddress.Aba;
|
|
5517
5518
|
|
|
@@ -5519,6 +5520,8 @@ export namespace CheckoutsessionCreateParams {
|
|
|
5519
5520
|
|
|
5520
5521
|
bban?: FinancialAddress.Bban;
|
|
5521
5522
|
|
|
5523
|
+
bic?: FinancialAddress.Bic;
|
|
5524
|
+
|
|
5522
5525
|
iban?: FinancialAddress.Iban;
|
|
5523
5526
|
|
|
5524
5527
|
sortCode?: FinancialAddress.SortCode;
|
|
@@ -5551,6 +5554,16 @@ export namespace CheckoutsessionCreateParams {
|
|
|
5551
5554
|
bic?: string;
|
|
5552
5555
|
}
|
|
5553
5556
|
|
|
5557
|
+
export interface Bic {
|
|
5558
|
+
accountHolderName: string;
|
|
5559
|
+
|
|
5560
|
+
accountNumber: string;
|
|
5561
|
+
|
|
5562
|
+
bic: string;
|
|
5563
|
+
|
|
5564
|
+
localBankCode?: string;
|
|
5565
|
+
}
|
|
5566
|
+
|
|
5554
5567
|
export interface Iban {
|
|
5555
5568
|
accountHolderName: string;
|
|
5556
5569
|
|
|
@@ -5576,7 +5589,15 @@ export namespace CheckoutsessionCreateParams {
|
|
|
5576
5589
|
/**
|
|
5577
5590
|
* The blockchain network
|
|
5578
5591
|
*/
|
|
5579
|
-
blockchain:
|
|
5592
|
+
blockchain:
|
|
5593
|
+
| 'BTC'
|
|
5594
|
+
| 'BTC-TESTNET4'
|
|
5595
|
+
| 'ETH'
|
|
5596
|
+
| 'ETH-SEPOLIA'
|
|
5597
|
+
| 'SOL'
|
|
5598
|
+
| 'SOL-DEVNET'
|
|
5599
|
+
| 'MATIC'
|
|
5600
|
+
| 'MATIC-AMOY';
|
|
5580
5601
|
}
|
|
5581
5602
|
}
|
|
5582
5603
|
}
|