@spritz-finance/service-client 0.3.62 → 0.3.64

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.
@@ -13,8 +13,6 @@ export type BridgeExternalAccount = {
13
13
  };
14
14
  export type CreateBridgeAccountParams = {
15
15
  bankName: string;
16
- accountNumber: string;
17
- routingNumber: string;
18
16
  accountName: string;
19
17
  ownerFirstName: string;
20
18
  ownerLastName: string;
@@ -27,4 +25,12 @@ export type CreateBridgeAccountParams = {
27
25
  postal_code: string;
28
26
  country: string;
29
27
  };
30
- };
28
+ } & ({
29
+ type: 'us';
30
+ accountNumber: string;
31
+ routingNumber: string;
32
+ } | {
33
+ type: 'iban';
34
+ iban: string;
35
+ bic?: string;
36
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spritz-finance/service-client",
3
- "version": "0.3.62",
3
+ "version": "0.3.64",
4
4
  "description": "Service client",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",