@devizovaburza/payments-api-sdk 1.3.5 → 1.3.6-canary.0071e053

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.
@@ -193,6 +193,7 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
193
193
  ipAuthorization: boolean;
194
194
  signatureKeyLimit: number;
195
195
  state: string;
196
+ accountModel: "SIMPLE" | "COLLATERAL";
196
197
  signatureKeys: {
197
198
  name: string;
198
199
  publicKey: string;
@@ -205,6 +206,11 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
205
206
  email: string;
206
207
  role: string;
207
208
  }[];
209
+ externalAccount?: {
210
+ iban: string;
211
+ holderName: string;
212
+ currency: string;
213
+ } | null | undefined;
208
214
  bankAccounts?: {
209
215
  iban: string;
210
216
  currency: "CZK" | "EUR" | "USD";
@@ -245,6 +251,7 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
245
251
  output: {
246
252
  accounts: {
247
253
  id: string;
254
+ type: "COLLATERAL" | "OPERATIONAL";
248
255
  status: "ACTIVE" | "INACTIVE" | "BLOCKED" | "DISABLED";
249
256
  accountHolderName: string | null;
250
257
  iban: string | null;
@@ -858,6 +865,15 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
858
865
  output: {
859
866
  message: string;
860
867
  code?: string | undefined;
868
+ } | {
869
+ error: "INSUFFICIENT_COLLATERAL_FUNDS";
870
+ message: string;
871
+ details: {
872
+ available: number;
873
+ requested: number;
874
+ shortfall: number;
875
+ currency: string;
876
+ };
861
877
  };
862
878
  outputFormat: "json";
863
879
  status: 400;
@@ -1001,6 +1017,65 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
1001
1017
  };
1002
1018
  outputFormat: "json";
1003
1019
  status: 500;
1020
+ } | {
1021
+ input: {
1022
+ param: {
1023
+ id: string;
1024
+ } & {
1025
+ [x: string]: string;
1026
+ [x: number]: string;
1027
+ [x: symbol]: string;
1028
+ };
1029
+ header: {
1030
+ 'x-idempotency-key': string;
1031
+ };
1032
+ json: {
1033
+ paymentType: "DOMESTIC";
1034
+ amount: {
1035
+ value: number;
1036
+ currency: "CZK" | "EUR" | "USD" | "PLN" | "RON" | "GBP" | "RUB" | "HUF" | "CHF" | "DKK" | "SEK" | "HRK" | "NOK" | "BGN" | "TRY" | "AUD" | "CAD" | "JPY" | "CNY" | "INR" | "BRL" | "MXN" | "ZAR" | "SGD" | "HKD" | "KRW" | "MYR" | "THB" | "IDR" | "PHP" | "AED" | "SAR" | "ILS" | "EGP" | "NGN" | "PKR" | "COP" | "CLP" | "PEN" | "VND" | "KZT" | "UAH" | "BTC" | "ETH" | "ADA" | "DOT" | "ATOM" | "XRP" | "LTC" | "SOL" | "DOGE" | "MATIC" | "AVAX";
1037
+ };
1038
+ debtorAccountId: string;
1039
+ creditor: {
1040
+ name: string;
1041
+ iban?: string | undefined;
1042
+ accountNumber?: string | undefined;
1043
+ bankCode?: "5051" | "0100" | "0300" | "0600" | "0710" | "0800" | "2010" | "2020" | "2030" | "2060" | "2070" | "2100" | "2200" | "2210" | "2220" | "2240" | "2250" | "2260" | "2310" | "2600" | "2700" | "3030" | "3050" | "3060" | "3500" | "4000" | "4300" | "5500" | "5400" | "5800" | "6000" | "6100" | "6200" | "6210" | "6300" | "6363" | "6700" | "6800" | "7940" | "7910" | "7950" | "7960" | "7980" | "7970" | "7990" | "8030" | "8040" | "8060" | "8090" | "8150" | "8190" | "8198" | "8200" | "8220" | "8230" | "8240" | "8250" | "8255" | "8265" | "8500" | "8610" | undefined;
1044
+ swiftBic?: string | undefined;
1045
+ sortCode?: string | undefined;
1046
+ routingNumber?: string | undefined;
1047
+ clabe?: string | undefined;
1048
+ bsb?: string | undefined;
1049
+ brBankNumber?: string | undefined;
1050
+ };
1051
+ referenceId?: string | undefined;
1052
+ remittanceInfo?: {
1053
+ message?: string | undefined;
1054
+ variableSymbol?: string | undefined;
1055
+ constantSymbol?: string | undefined;
1056
+ specificSymbol?: string | undefined;
1057
+ } | undefined;
1058
+ instructionPriority?: "NORMAL" | "INSTANT" | undefined;
1059
+ };
1060
+ };
1061
+ output: {
1062
+ error: "INTERNAL_TOPUP_FAILED";
1063
+ message: string;
1064
+ details: {
1065
+ code?: string | undefined;
1066
+ reason?: string | undefined;
1067
+ };
1068
+ } | {
1069
+ error: "EXTERNAL_PAYMENT_FAILED";
1070
+ message: string;
1071
+ note: string;
1072
+ details: {
1073
+ code?: string | undefined;
1074
+ reason?: string | undefined;
1075
+ };
1076
+ };
1077
+ outputFormat: "json";
1078
+ status: 502;
1004
1079
  };
1005
1080
  }>;
1006
1081
  };
@@ -1661,6 +1736,12 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
1661
1736
  iban: string;
1662
1737
  currency: "CZK";
1663
1738
  }[];
1739
+ accountModel?: "SIMPLE" | "COLLATERAL" | undefined;
1740
+ externalAccount?: {
1741
+ iban: string;
1742
+ holderName: string;
1743
+ currency: "CZK";
1744
+ } | undefined;
1664
1745
  };
1665
1746
  };
1666
1747
  output: {
@@ -1683,6 +1764,12 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
1683
1764
  iban: string;
1684
1765
  currency: "CZK";
1685
1766
  }[];
1767
+ accountModel?: "SIMPLE" | "COLLATERAL" | undefined;
1768
+ externalAccount?: {
1769
+ iban: string;
1770
+ holderName: string;
1771
+ currency: "CZK";
1772
+ } | undefined;
1686
1773
  };
1687
1774
  };
1688
1775
  output: {
@@ -1701,6 +1788,12 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
1701
1788
  iban: string;
1702
1789
  currency: "CZK";
1703
1790
  }[];
1791
+ accountModel?: "SIMPLE" | "COLLATERAL" | undefined;
1792
+ externalAccount?: {
1793
+ iban: string;
1794
+ holderName: string;
1795
+ currency: "CZK";
1796
+ } | undefined;
1704
1797
  };
1705
1798
  };
1706
1799
  output: {
@@ -1719,6 +1812,12 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
1719
1812
  iban: string;
1720
1813
  currency: "CZK";
1721
1814
  }[];
1815
+ accountModel?: "SIMPLE" | "COLLATERAL" | undefined;
1816
+ externalAccount?: {
1817
+ iban: string;
1818
+ holderName: string;
1819
+ currency: "CZK";
1820
+ } | undefined;
1722
1821
  };
1723
1822
  };
1724
1823
  output: {
@@ -193,6 +193,7 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
193
193
  ipAuthorization: boolean;
194
194
  signatureKeyLimit: number;
195
195
  state: string;
196
+ accountModel: "SIMPLE" | "COLLATERAL";
196
197
  signatureKeys: {
197
198
  name: string;
198
199
  publicKey: string;
@@ -205,6 +206,11 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
205
206
  email: string;
206
207
  role: string;
207
208
  }[];
209
+ externalAccount?: {
210
+ iban: string;
211
+ holderName: string;
212
+ currency: string;
213
+ } | null | undefined;
208
214
  bankAccounts?: {
209
215
  iban: string;
210
216
  currency: "CZK" | "EUR" | "USD";
@@ -245,6 +251,7 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
245
251
  output: {
246
252
  accounts: {
247
253
  id: string;
254
+ type: "COLLATERAL" | "OPERATIONAL";
248
255
  status: "ACTIVE" | "INACTIVE" | "BLOCKED" | "DISABLED";
249
256
  accountHolderName: string | null;
250
257
  iban: string | null;
@@ -858,6 +865,15 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
858
865
  output: {
859
866
  message: string;
860
867
  code?: string | undefined;
868
+ } | {
869
+ error: "INSUFFICIENT_COLLATERAL_FUNDS";
870
+ message: string;
871
+ details: {
872
+ available: number;
873
+ requested: number;
874
+ shortfall: number;
875
+ currency: string;
876
+ };
861
877
  };
862
878
  outputFormat: "json";
863
879
  status: 400;
@@ -1001,6 +1017,65 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
1001
1017
  };
1002
1018
  outputFormat: "json";
1003
1019
  status: 500;
1020
+ } | {
1021
+ input: {
1022
+ param: {
1023
+ id: string;
1024
+ } & {
1025
+ [x: string]: string;
1026
+ [x: number]: string;
1027
+ [x: symbol]: string;
1028
+ };
1029
+ header: {
1030
+ 'x-idempotency-key': string;
1031
+ };
1032
+ json: {
1033
+ paymentType: "DOMESTIC";
1034
+ amount: {
1035
+ value: number;
1036
+ currency: "CZK" | "EUR" | "USD" | "PLN" | "RON" | "GBP" | "RUB" | "HUF" | "CHF" | "DKK" | "SEK" | "HRK" | "NOK" | "BGN" | "TRY" | "AUD" | "CAD" | "JPY" | "CNY" | "INR" | "BRL" | "MXN" | "ZAR" | "SGD" | "HKD" | "KRW" | "MYR" | "THB" | "IDR" | "PHP" | "AED" | "SAR" | "ILS" | "EGP" | "NGN" | "PKR" | "COP" | "CLP" | "PEN" | "VND" | "KZT" | "UAH" | "BTC" | "ETH" | "ADA" | "DOT" | "ATOM" | "XRP" | "LTC" | "SOL" | "DOGE" | "MATIC" | "AVAX";
1037
+ };
1038
+ debtorAccountId: string;
1039
+ creditor: {
1040
+ name: string;
1041
+ iban?: string | undefined;
1042
+ accountNumber?: string | undefined;
1043
+ bankCode?: "5051" | "0100" | "0300" | "0600" | "0710" | "0800" | "2010" | "2020" | "2030" | "2060" | "2070" | "2100" | "2200" | "2210" | "2220" | "2240" | "2250" | "2260" | "2310" | "2600" | "2700" | "3030" | "3050" | "3060" | "3500" | "4000" | "4300" | "5500" | "5400" | "5800" | "6000" | "6100" | "6200" | "6210" | "6300" | "6363" | "6700" | "6800" | "7940" | "7910" | "7950" | "7960" | "7980" | "7970" | "7990" | "8030" | "8040" | "8060" | "8090" | "8150" | "8190" | "8198" | "8200" | "8220" | "8230" | "8240" | "8250" | "8255" | "8265" | "8500" | "8610" | undefined;
1044
+ swiftBic?: string | undefined;
1045
+ sortCode?: string | undefined;
1046
+ routingNumber?: string | undefined;
1047
+ clabe?: string | undefined;
1048
+ bsb?: string | undefined;
1049
+ brBankNumber?: string | undefined;
1050
+ };
1051
+ referenceId?: string | undefined;
1052
+ remittanceInfo?: {
1053
+ message?: string | undefined;
1054
+ variableSymbol?: string | undefined;
1055
+ constantSymbol?: string | undefined;
1056
+ specificSymbol?: string | undefined;
1057
+ } | undefined;
1058
+ instructionPriority?: "NORMAL" | "INSTANT" | undefined;
1059
+ };
1060
+ };
1061
+ output: {
1062
+ error: "INTERNAL_TOPUP_FAILED";
1063
+ message: string;
1064
+ details: {
1065
+ code?: string | undefined;
1066
+ reason?: string | undefined;
1067
+ };
1068
+ } | {
1069
+ error: "EXTERNAL_PAYMENT_FAILED";
1070
+ message: string;
1071
+ note: string;
1072
+ details: {
1073
+ code?: string | undefined;
1074
+ reason?: string | undefined;
1075
+ };
1076
+ };
1077
+ outputFormat: "json";
1078
+ status: 502;
1004
1079
  };
1005
1080
  }>;
1006
1081
  };
@@ -1661,6 +1736,12 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
1661
1736
  iban: string;
1662
1737
  currency: "CZK";
1663
1738
  }[];
1739
+ accountModel?: "SIMPLE" | "COLLATERAL" | undefined;
1740
+ externalAccount?: {
1741
+ iban: string;
1742
+ holderName: string;
1743
+ currency: "CZK";
1744
+ } | undefined;
1664
1745
  };
1665
1746
  };
1666
1747
  output: {
@@ -1683,6 +1764,12 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
1683
1764
  iban: string;
1684
1765
  currency: "CZK";
1685
1766
  }[];
1767
+ accountModel?: "SIMPLE" | "COLLATERAL" | undefined;
1768
+ externalAccount?: {
1769
+ iban: string;
1770
+ holderName: string;
1771
+ currency: "CZK";
1772
+ } | undefined;
1686
1773
  };
1687
1774
  };
1688
1775
  output: {
@@ -1701,6 +1788,12 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
1701
1788
  iban: string;
1702
1789
  currency: "CZK";
1703
1790
  }[];
1791
+ accountModel?: "SIMPLE" | "COLLATERAL" | undefined;
1792
+ externalAccount?: {
1793
+ iban: string;
1794
+ holderName: string;
1795
+ currency: "CZK";
1796
+ } | undefined;
1704
1797
  };
1705
1798
  };
1706
1799
  output: {
@@ -1719,6 +1812,12 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
1719
1812
  iban: string;
1720
1813
  currency: "CZK";
1721
1814
  }[];
1815
+ accountModel?: "SIMPLE" | "COLLATERAL" | undefined;
1816
+ externalAccount?: {
1817
+ iban: string;
1818
+ holderName: string;
1819
+ currency: "CZK";
1820
+ } | undefined;
1722
1821
  };
1723
1822
  };
1724
1823
  output: {
@@ -193,6 +193,7 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
193
193
  ipAuthorization: boolean;
194
194
  signatureKeyLimit: number;
195
195
  state: string;
196
+ accountModel: "SIMPLE" | "COLLATERAL";
196
197
  signatureKeys: {
197
198
  name: string;
198
199
  publicKey: string;
@@ -205,6 +206,11 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
205
206
  email: string;
206
207
  role: string;
207
208
  }[];
209
+ externalAccount?: {
210
+ iban: string;
211
+ holderName: string;
212
+ currency: string;
213
+ } | null | undefined;
208
214
  bankAccounts?: {
209
215
  iban: string;
210
216
  currency: "CZK" | "EUR" | "USD";
@@ -245,6 +251,7 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
245
251
  output: {
246
252
  accounts: {
247
253
  id: string;
254
+ type: "COLLATERAL" | "OPERATIONAL";
248
255
  status: "ACTIVE" | "INACTIVE" | "BLOCKED" | "DISABLED";
249
256
  accountHolderName: string | null;
250
257
  iban: string | null;
@@ -858,6 +865,15 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
858
865
  output: {
859
866
  message: string;
860
867
  code?: string | undefined;
868
+ } | {
869
+ error: "INSUFFICIENT_COLLATERAL_FUNDS";
870
+ message: string;
871
+ details: {
872
+ available: number;
873
+ requested: number;
874
+ shortfall: number;
875
+ currency: string;
876
+ };
861
877
  };
862
878
  outputFormat: "json";
863
879
  status: 400;
@@ -1001,6 +1017,65 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
1001
1017
  };
1002
1018
  outputFormat: "json";
1003
1019
  status: 500;
1020
+ } | {
1021
+ input: {
1022
+ param: {
1023
+ id: string;
1024
+ } & {
1025
+ [x: string]: string;
1026
+ [x: number]: string;
1027
+ [x: symbol]: string;
1028
+ };
1029
+ header: {
1030
+ 'x-idempotency-key': string;
1031
+ };
1032
+ json: {
1033
+ paymentType: "DOMESTIC";
1034
+ amount: {
1035
+ value: number;
1036
+ currency: "CZK" | "EUR" | "USD" | "PLN" | "RON" | "GBP" | "RUB" | "HUF" | "CHF" | "DKK" | "SEK" | "HRK" | "NOK" | "BGN" | "TRY" | "AUD" | "CAD" | "JPY" | "CNY" | "INR" | "BRL" | "MXN" | "ZAR" | "SGD" | "HKD" | "KRW" | "MYR" | "THB" | "IDR" | "PHP" | "AED" | "SAR" | "ILS" | "EGP" | "NGN" | "PKR" | "COP" | "CLP" | "PEN" | "VND" | "KZT" | "UAH" | "BTC" | "ETH" | "ADA" | "DOT" | "ATOM" | "XRP" | "LTC" | "SOL" | "DOGE" | "MATIC" | "AVAX";
1037
+ };
1038
+ debtorAccountId: string;
1039
+ creditor: {
1040
+ name: string;
1041
+ iban?: string | undefined;
1042
+ accountNumber?: string | undefined;
1043
+ bankCode?: "5051" | "0100" | "0300" | "0600" | "0710" | "0800" | "2010" | "2020" | "2030" | "2060" | "2070" | "2100" | "2200" | "2210" | "2220" | "2240" | "2250" | "2260" | "2310" | "2600" | "2700" | "3030" | "3050" | "3060" | "3500" | "4000" | "4300" | "5500" | "5400" | "5800" | "6000" | "6100" | "6200" | "6210" | "6300" | "6363" | "6700" | "6800" | "7940" | "7910" | "7950" | "7960" | "7980" | "7970" | "7990" | "8030" | "8040" | "8060" | "8090" | "8150" | "8190" | "8198" | "8200" | "8220" | "8230" | "8240" | "8250" | "8255" | "8265" | "8500" | "8610" | undefined;
1044
+ swiftBic?: string | undefined;
1045
+ sortCode?: string | undefined;
1046
+ routingNumber?: string | undefined;
1047
+ clabe?: string | undefined;
1048
+ bsb?: string | undefined;
1049
+ brBankNumber?: string | undefined;
1050
+ };
1051
+ referenceId?: string | undefined;
1052
+ remittanceInfo?: {
1053
+ message?: string | undefined;
1054
+ variableSymbol?: string | undefined;
1055
+ constantSymbol?: string | undefined;
1056
+ specificSymbol?: string | undefined;
1057
+ } | undefined;
1058
+ instructionPriority?: "NORMAL" | "INSTANT" | undefined;
1059
+ };
1060
+ };
1061
+ output: {
1062
+ error: "INTERNAL_TOPUP_FAILED";
1063
+ message: string;
1064
+ details: {
1065
+ code?: string | undefined;
1066
+ reason?: string | undefined;
1067
+ };
1068
+ } | {
1069
+ error: "EXTERNAL_PAYMENT_FAILED";
1070
+ message: string;
1071
+ note: string;
1072
+ details: {
1073
+ code?: string | undefined;
1074
+ reason?: string | undefined;
1075
+ };
1076
+ };
1077
+ outputFormat: "json";
1078
+ status: 502;
1004
1079
  };
1005
1080
  }>;
1006
1081
  };
@@ -1661,6 +1736,12 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
1661
1736
  iban: string;
1662
1737
  currency: "CZK";
1663
1738
  }[];
1739
+ accountModel?: "SIMPLE" | "COLLATERAL" | undefined;
1740
+ externalAccount?: {
1741
+ iban: string;
1742
+ holderName: string;
1743
+ currency: "CZK";
1744
+ } | undefined;
1664
1745
  };
1665
1746
  };
1666
1747
  output: {
@@ -1683,6 +1764,12 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
1683
1764
  iban: string;
1684
1765
  currency: "CZK";
1685
1766
  }[];
1767
+ accountModel?: "SIMPLE" | "COLLATERAL" | undefined;
1768
+ externalAccount?: {
1769
+ iban: string;
1770
+ holderName: string;
1771
+ currency: "CZK";
1772
+ } | undefined;
1686
1773
  };
1687
1774
  };
1688
1775
  output: {
@@ -1701,6 +1788,12 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
1701
1788
  iban: string;
1702
1789
  currency: "CZK";
1703
1790
  }[];
1791
+ accountModel?: "SIMPLE" | "COLLATERAL" | undefined;
1792
+ externalAccount?: {
1793
+ iban: string;
1794
+ holderName: string;
1795
+ currency: "CZK";
1796
+ } | undefined;
1704
1797
  };
1705
1798
  };
1706
1799
  output: {
@@ -1719,6 +1812,12 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
1719
1812
  iban: string;
1720
1813
  currency: "CZK";
1721
1814
  }[];
1815
+ accountModel?: "SIMPLE" | "COLLATERAL" | undefined;
1816
+ externalAccount?: {
1817
+ iban: string;
1818
+ holderName: string;
1819
+ currency: "CZK";
1820
+ } | undefined;
1722
1821
  };
1723
1822
  };
1724
1823
  output: {
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@devizovaburza/payments-api-sdk",
3
- "version": "1.3.5",
3
+ "version": "1.3.6-canary.0071e053",
4
4
  "author": "Devizová burza a.s.",
5
5
  "license": "ISC",
6
6
  "type": "module",
7
7
  "scripts": {
8
8
  "prepare": "bun run build",
9
- "build": "unbuild"
9
+ "build": "unbuild",
10
+ "test": "vitest --project $npm_package_name --root ../.."
10
11
  },
11
12
  "exports": {
12
13
  "./v1": {
@@ -19,13 +20,13 @@
19
20
  "dist"
20
21
  ],
21
22
  "dependencies": {
22
- "@develit-io/backend-sdk": "^9.11.13"
23
+ "@develit-io/backend-sdk": "^11.0.4"
23
24
  },
24
25
  "peerDependencies": {
25
26
  "hono": "^4.12.9"
26
27
  },
27
28
  "devDependencies": {
28
29
  "@apps/gateway": "workspace:*",
29
- "unbuild": "^3.6.1"
30
+ "unbuild": "3.6.1"
30
31
  }
31
32
  }