@getivy/node-sdk 2.7.0 → 2.20.1

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/CHANGELOG.md +153 -0
  2. package/README.md +33 -2
  3. package/bin/migration-config.json +1 -1
  4. package/client.d.mts +10 -4
  5. package/client.d.mts.map +1 -1
  6. package/client.d.ts +10 -4
  7. package/client.d.ts.map +1 -1
  8. package/client.js +21 -7
  9. package/client.js.map +1 -1
  10. package/client.mjs +21 -7
  11. package/client.mjs.map +1 -1
  12. package/internal/tslib.js +17 -17
  13. package/internal/utils/log.d.mts.map +1 -1
  14. package/internal/utils/log.d.ts.map +1 -1
  15. package/internal/utils/log.js +4 -1
  16. package/internal/utils/log.js.map +1 -1
  17. package/internal/utils/log.mjs +4 -1
  18. package/internal/utils/log.mjs.map +1 -1
  19. package/lib/request-signing.d.mts +6 -0
  20. package/lib/request-signing.d.mts.map +1 -0
  21. package/lib/request-signing.d.ts +6 -0
  22. package/lib/request-signing.d.ts.map +1 -0
  23. package/lib/request-signing.js +113 -0
  24. package/lib/request-signing.js.map +1 -0
  25. package/lib/request-signing.mjs +109 -0
  26. package/lib/request-signing.mjs.map +1 -0
  27. package/package.json +16 -4
  28. package/resources/banks.d.mts +12 -14
  29. package/resources/banks.d.mts.map +1 -1
  30. package/resources/banks.d.ts +12 -14
  31. package/resources/banks.d.ts.map +1 -1
  32. package/resources/beneficiary-payouts.d.mts +2 -2
  33. package/resources/beneficiary-payouts.d.mts.map +1 -1
  34. package/resources/beneficiary-payouts.d.ts +2 -2
  35. package/resources/beneficiary-payouts.d.ts.map +1 -1
  36. package/resources/capabilities.d.mts +8 -1
  37. package/resources/capabilities.d.mts.map +1 -1
  38. package/resources/capabilities.d.ts +8 -1
  39. package/resources/capabilities.d.ts.map +1 -1
  40. package/resources/capabilities.js +7 -0
  41. package/resources/capabilities.js.map +1 -1
  42. package/resources/capabilities.mjs +7 -0
  43. package/resources/capabilities.mjs.map +1 -1
  44. package/resources/checkoutsession.d.mts +18 -10
  45. package/resources/checkoutsession.d.mts.map +1 -1
  46. package/resources/checkoutsession.d.ts +18 -10
  47. package/resources/checkoutsession.d.ts.map +1 -1
  48. package/resources/checkoutsession.js +3 -2
  49. package/resources/checkoutsession.js.map +1 -1
  50. package/resources/checkoutsession.mjs +3 -2
  51. package/resources/checkoutsession.mjs.map +1 -1
  52. package/resources/counterparties.d.mts +956 -0
  53. package/resources/counterparties.d.mts.map +1 -0
  54. package/resources/counterparties.d.ts +956 -0
  55. package/resources/counterparties.d.ts.map +1 -0
  56. package/resources/counterparties.js +41 -0
  57. package/resources/counterparties.js.map +1 -0
  58. package/resources/counterparties.mjs +37 -0
  59. package/resources/counterparties.mjs.map +1 -0
  60. package/resources/customers.d.mts +6 -6
  61. package/resources/customers.d.mts.map +1 -1
  62. package/resources/customers.d.ts +6 -6
  63. package/resources/customers.d.ts.map +1 -1
  64. package/resources/deposits.d.mts +21 -7
  65. package/resources/deposits.d.mts.map +1 -1
  66. package/resources/deposits.d.ts +21 -7
  67. package/resources/deposits.d.ts.map +1 -1
  68. package/resources/index.d.mts +1 -1
  69. package/resources/index.d.mts.map +1 -1
  70. package/resources/index.d.ts +1 -1
  71. package/resources/index.d.ts.map +1 -1
  72. package/resources/index.js +3 -3
  73. package/resources/index.js.map +1 -1
  74. package/resources/index.mjs +1 -1
  75. package/resources/index.mjs.map +1 -1
  76. package/resources/orders.d.mts +102 -39
  77. package/resources/orders.d.mts.map +1 -1
  78. package/resources/orders.d.ts +102 -39
  79. package/resources/orders.d.ts.map +1 -1
  80. package/resources/payouts.d.mts +82 -21
  81. package/resources/payouts.d.mts.map +1 -1
  82. package/resources/payouts.d.ts +82 -21
  83. package/resources/payouts.d.ts.map +1 -1
  84. package/resources/refunds.d.mts +1 -1
  85. package/resources/refunds.d.mts.map +1 -1
  86. package/resources/refunds.d.ts +1 -1
  87. package/resources/refunds.d.ts.map +1 -1
  88. package/resources/returns.d.mts +2 -2
  89. package/resources/returns.d.mts.map +1 -1
  90. package/resources/returns.d.ts +2 -2
  91. package/resources/returns.d.ts.map +1 -1
  92. package/resources/subaccounts.d.mts +4 -4
  93. package/resources/subaccounts.d.mts.map +1 -1
  94. package/resources/subaccounts.d.ts +4 -4
  95. package/resources/subaccounts.d.ts.map +1 -1
  96. package/resources/transactions.d.mts +2 -2
  97. package/resources/transactions.d.mts.map +1 -1
  98. package/resources/transactions.d.ts +2 -2
  99. package/resources/transactions.d.ts.map +1 -1
  100. package/resources/webhook/subscription.d.mts +12 -12
  101. package/resources/webhook/subscription.d.mts.map +1 -1
  102. package/resources/webhook/subscription.d.ts +12 -12
  103. package/resources/webhook/subscription.d.ts.map +1 -1
  104. package/src/client.ts +51 -22
  105. package/src/internal/utils/log.ts +3 -0
  106. package/src/lib/request-signing.ts +139 -0
  107. package/src/resources/banks.ts +21 -11
  108. package/src/resources/beneficiary-payouts.ts +2 -2
  109. package/src/resources/capabilities.ts +8 -1
  110. package/src/resources/checkoutsession.ts +31 -10
  111. package/src/resources/counterparties.ts +3073 -0
  112. package/src/resources/customers.ts +3509 -3509
  113. package/src/resources/deposits.ts +52 -6
  114. package/src/resources/index.ts +13 -9
  115. package/src/resources/orders.ts +222 -36
  116. package/src/resources/payouts.ts +396 -17
  117. package/src/resources/refunds.ts +1 -1
  118. package/src/resources/returns.ts +2 -2
  119. package/src/resources/subaccounts.ts +4 -4
  120. package/src/resources/transactions.ts +2 -2
  121. package/src/resources/webhook/subscription.ts +37 -12
  122. package/src/version.ts +1 -1
  123. package/version.d.mts +1 -1
  124. package/version.d.mts.map +1 -1
  125. package/version.d.ts +1 -1
  126. package/version.d.ts.map +1 -1
  127. package/version.js +1 -1
  128. package/version.js.map +1 -1
  129. package/version.mjs +1 -1
  130. package/version.mjs.map +1 -1
  131. package/resources/fx.d.mts +0 -155
  132. package/resources/fx.d.mts.map +0 -1
  133. package/resources/fx.d.ts +0 -155
  134. package/resources/fx.d.ts.map +0 -1
  135. package/resources/fx.js +0 -28
  136. package/resources/fx.js.map +0 -1
  137. package/resources/fx.mjs +0 -24
  138. package/resources/fx.mjs.map +0 -1
  139. 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: unknown;
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<'ais' | 'pis'>;
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 [the guide](https://docs.getivy.de/docs/payment-integration) for more
11
- * information.
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?: unknown;
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?: unknown;
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?: unknown;
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?: unknown;
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?: unknown;
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?: unknown;
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: 'ETH' | 'ETH-SEPOLIA' | 'SOL' | 'SOL-DEVNET' | 'MATIC' | 'MATIC-AMOY';
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
  }