@devizovaburza/payments-api-sdk 2.0.1 → 2.0.2

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;
@@ -200,15 +201,22 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
200
201
  authorizedIps: {
201
202
  ip: string;
202
203
  }[];
204
+ bankAccounts: {
205
+ type: "COLLATERAL" | "OPERATIONAL";
206
+ iban: string;
207
+ currency: string;
208
+ id?: string | undefined;
209
+ }[];
203
210
  users: {
204
211
  id: string;
205
212
  email: string;
206
213
  role: string;
207
214
  }[];
208
- bankAccounts?: {
215
+ externalAccount?: {
209
216
  iban: string;
210
- currency: "CZK" | "EUR" | "USD";
211
- }[] | null | undefined;
217
+ holderName: string;
218
+ currency: string;
219
+ } | null | undefined;
212
220
  };
213
221
  };
214
222
  outputFormat: "json";
@@ -245,6 +253,7 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
245
253
  output: {
246
254
  accounts: {
247
255
  id: string;
256
+ type: "COLLATERAL" | "OPERATIONAL";
248
257
  status: "ACTIVE" | "INACTIVE" | "BLOCKED" | "DISABLED";
249
258
  accountHolderName: string | null;
250
259
  iban: string | null;
@@ -858,6 +867,15 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
858
867
  output: {
859
868
  message: string;
860
869
  code?: string | undefined;
870
+ } | {
871
+ error: "INSUFFICIENT_COLLATERAL_FUNDS";
872
+ message: string;
873
+ details: {
874
+ available: number;
875
+ requested: number;
876
+ shortfall: number;
877
+ currency: string;
878
+ };
861
879
  };
862
880
  outputFormat: "json";
863
881
  status: 400;
@@ -1001,6 +1019,65 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
1001
1019
  };
1002
1020
  outputFormat: "json";
1003
1021
  status: 500;
1022
+ } | {
1023
+ input: {
1024
+ param: {
1025
+ id: string;
1026
+ } & {
1027
+ [x: string]: string;
1028
+ [x: number]: string;
1029
+ [x: symbol]: string;
1030
+ };
1031
+ header: {
1032
+ 'x-idempotency-key': string;
1033
+ };
1034
+ json: {
1035
+ paymentType: "DOMESTIC";
1036
+ amount: {
1037
+ value: number;
1038
+ 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";
1039
+ };
1040
+ debtorAccountId: string;
1041
+ creditor: {
1042
+ name: string;
1043
+ iban?: string | undefined;
1044
+ accountNumber?: string | undefined;
1045
+ 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;
1046
+ swiftBic?: string | undefined;
1047
+ sortCode?: string | undefined;
1048
+ routingNumber?: string | undefined;
1049
+ clabe?: string | undefined;
1050
+ bsb?: string | undefined;
1051
+ brBankNumber?: string | undefined;
1052
+ };
1053
+ referenceId?: string | undefined;
1054
+ remittanceInfo?: {
1055
+ message?: string | undefined;
1056
+ variableSymbol?: string | undefined;
1057
+ constantSymbol?: string | undefined;
1058
+ specificSymbol?: string | undefined;
1059
+ } | undefined;
1060
+ instructionPriority?: "NORMAL" | "INSTANT" | undefined;
1061
+ };
1062
+ };
1063
+ output: {
1064
+ error: "INTERNAL_TOPUP_FAILED";
1065
+ message: string;
1066
+ details: {
1067
+ code?: string | undefined;
1068
+ reason?: string | undefined;
1069
+ };
1070
+ } | {
1071
+ error: "EXTERNAL_PAYMENT_FAILED";
1072
+ message: string;
1073
+ note: string;
1074
+ details: {
1075
+ code?: string | undefined;
1076
+ reason?: string | undefined;
1077
+ };
1078
+ };
1079
+ outputFormat: "json";
1080
+ status: 502;
1004
1081
  };
1005
1082
  }>;
1006
1083
  };
@@ -1154,6 +1231,15 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
1154
1231
  };
1155
1232
  };
1156
1233
  output: {
1234
+ error: "INSUFFICIENT_COLLATERAL_FUNDS";
1235
+ message: string;
1236
+ details: {
1237
+ available: number;
1238
+ requested: number;
1239
+ shortfall: number;
1240
+ currency: string;
1241
+ };
1242
+ } | {
1157
1243
  message: string;
1158
1244
  code?: string | undefined;
1159
1245
  };
@@ -1305,6 +1391,59 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
1305
1391
  };
1306
1392
  outputFormat: "json";
1307
1393
  status: 500;
1394
+ } | {
1395
+ input: {
1396
+ param: {
1397
+ id: string;
1398
+ } & {
1399
+ [x: string]: string;
1400
+ [x: number]: string;
1401
+ [x: symbol]: string;
1402
+ };
1403
+ header: {
1404
+ 'x-idempotency-key': string;
1405
+ };
1406
+ json: {
1407
+ debtorAccountId: string;
1408
+ paymentType: "DOMESTIC";
1409
+ payments: {
1410
+ amount: {
1411
+ value: number;
1412
+ 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";
1413
+ };
1414
+ creditor: {
1415
+ name: string;
1416
+ iban?: string | undefined;
1417
+ accountNumber?: string | undefined;
1418
+ 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;
1419
+ swiftBic?: string | undefined;
1420
+ sortCode?: string | undefined;
1421
+ routingNumber?: string | undefined;
1422
+ clabe?: string | undefined;
1423
+ bsb?: string | undefined;
1424
+ brBankNumber?: string | undefined;
1425
+ };
1426
+ referenceId?: string | undefined;
1427
+ remittanceInfo?: {
1428
+ message?: string | undefined;
1429
+ variableSymbol?: string | undefined;
1430
+ constantSymbol?: string | undefined;
1431
+ specificSymbol?: string | undefined;
1432
+ } | undefined;
1433
+ instructionPriority?: "NORMAL" | "INSTANT" | undefined;
1434
+ }[];
1435
+ };
1436
+ };
1437
+ output: {
1438
+ error: "INTERNAL_TOPUP_FAILED";
1439
+ message: string;
1440
+ details: {
1441
+ code?: string | undefined;
1442
+ reason?: string | undefined;
1443
+ };
1444
+ };
1445
+ outputFormat: "json";
1446
+ status: 502;
1308
1447
  };
1309
1448
  }>;
1310
1449
  };
@@ -1657,10 +1796,20 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
1657
1796
  webhook: string;
1658
1797
  ipAuthorization: boolean;
1659
1798
  ownerEmail: string;
1660
- bankAccounts: {
1799
+ operationalAccount: {
1661
1800
  iban: string;
1662
1801
  currency: "CZK";
1663
- }[];
1802
+ };
1803
+ accountModel?: "SIMPLE" | "COLLATERAL" | undefined;
1804
+ collateralAccount?: {
1805
+ iban: string;
1806
+ currency: "CZK";
1807
+ } | undefined;
1808
+ externalAccount?: {
1809
+ iban: string;
1810
+ holderName: string;
1811
+ currency: "CZK";
1812
+ } | undefined;
1664
1813
  };
1665
1814
  };
1666
1815
  output: {
@@ -1679,10 +1828,20 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
1679
1828
  webhook: string;
1680
1829
  ipAuthorization: boolean;
1681
1830
  ownerEmail: string;
1682
- bankAccounts: {
1831
+ operationalAccount: {
1683
1832
  iban: string;
1684
1833
  currency: "CZK";
1685
- }[];
1834
+ };
1835
+ accountModel?: "SIMPLE" | "COLLATERAL" | undefined;
1836
+ collateralAccount?: {
1837
+ iban: string;
1838
+ currency: "CZK";
1839
+ } | undefined;
1840
+ externalAccount?: {
1841
+ iban: string;
1842
+ holderName: string;
1843
+ currency: "CZK";
1844
+ } | undefined;
1686
1845
  };
1687
1846
  };
1688
1847
  output: {
@@ -1697,10 +1856,20 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
1697
1856
  webhook: string;
1698
1857
  ipAuthorization: boolean;
1699
1858
  ownerEmail: string;
1700
- bankAccounts: {
1859
+ operationalAccount: {
1701
1860
  iban: string;
1702
1861
  currency: "CZK";
1703
- }[];
1862
+ };
1863
+ accountModel?: "SIMPLE" | "COLLATERAL" | undefined;
1864
+ collateralAccount?: {
1865
+ iban: string;
1866
+ currency: "CZK";
1867
+ } | undefined;
1868
+ externalAccount?: {
1869
+ iban: string;
1870
+ holderName: string;
1871
+ currency: "CZK";
1872
+ } | undefined;
1704
1873
  };
1705
1874
  };
1706
1875
  output: {
@@ -1715,10 +1884,20 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
1715
1884
  webhook: string;
1716
1885
  ipAuthorization: boolean;
1717
1886
  ownerEmail: string;
1718
- bankAccounts: {
1887
+ operationalAccount: {
1719
1888
  iban: string;
1720
1889
  currency: "CZK";
1721
- }[];
1890
+ };
1891
+ accountModel?: "SIMPLE" | "COLLATERAL" | undefined;
1892
+ collateralAccount?: {
1893
+ iban: string;
1894
+ currency: "CZK";
1895
+ } | undefined;
1896
+ externalAccount?: {
1897
+ iban: string;
1898
+ holderName: string;
1899
+ currency: "CZK";
1900
+ } | undefined;
1722
1901
  };
1723
1902
  };
1724
1903
  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;
@@ -200,15 +201,22 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
200
201
  authorizedIps: {
201
202
  ip: string;
202
203
  }[];
204
+ bankAccounts: {
205
+ type: "COLLATERAL" | "OPERATIONAL";
206
+ iban: string;
207
+ currency: string;
208
+ id?: string | undefined;
209
+ }[];
203
210
  users: {
204
211
  id: string;
205
212
  email: string;
206
213
  role: string;
207
214
  }[];
208
- bankAccounts?: {
215
+ externalAccount?: {
209
216
  iban: string;
210
- currency: "CZK" | "EUR" | "USD";
211
- }[] | null | undefined;
217
+ holderName: string;
218
+ currency: string;
219
+ } | null | undefined;
212
220
  };
213
221
  };
214
222
  outputFormat: "json";
@@ -245,6 +253,7 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
245
253
  output: {
246
254
  accounts: {
247
255
  id: string;
256
+ type: "COLLATERAL" | "OPERATIONAL";
248
257
  status: "ACTIVE" | "INACTIVE" | "BLOCKED" | "DISABLED";
249
258
  accountHolderName: string | null;
250
259
  iban: string | null;
@@ -858,6 +867,15 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
858
867
  output: {
859
868
  message: string;
860
869
  code?: string | undefined;
870
+ } | {
871
+ error: "INSUFFICIENT_COLLATERAL_FUNDS";
872
+ message: string;
873
+ details: {
874
+ available: number;
875
+ requested: number;
876
+ shortfall: number;
877
+ currency: string;
878
+ };
861
879
  };
862
880
  outputFormat: "json";
863
881
  status: 400;
@@ -1001,6 +1019,65 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
1001
1019
  };
1002
1020
  outputFormat: "json";
1003
1021
  status: 500;
1022
+ } | {
1023
+ input: {
1024
+ param: {
1025
+ id: string;
1026
+ } & {
1027
+ [x: string]: string;
1028
+ [x: number]: string;
1029
+ [x: symbol]: string;
1030
+ };
1031
+ header: {
1032
+ 'x-idempotency-key': string;
1033
+ };
1034
+ json: {
1035
+ paymentType: "DOMESTIC";
1036
+ amount: {
1037
+ value: number;
1038
+ 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";
1039
+ };
1040
+ debtorAccountId: string;
1041
+ creditor: {
1042
+ name: string;
1043
+ iban?: string | undefined;
1044
+ accountNumber?: string | undefined;
1045
+ 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;
1046
+ swiftBic?: string | undefined;
1047
+ sortCode?: string | undefined;
1048
+ routingNumber?: string | undefined;
1049
+ clabe?: string | undefined;
1050
+ bsb?: string | undefined;
1051
+ brBankNumber?: string | undefined;
1052
+ };
1053
+ referenceId?: string | undefined;
1054
+ remittanceInfo?: {
1055
+ message?: string | undefined;
1056
+ variableSymbol?: string | undefined;
1057
+ constantSymbol?: string | undefined;
1058
+ specificSymbol?: string | undefined;
1059
+ } | undefined;
1060
+ instructionPriority?: "NORMAL" | "INSTANT" | undefined;
1061
+ };
1062
+ };
1063
+ output: {
1064
+ error: "INTERNAL_TOPUP_FAILED";
1065
+ message: string;
1066
+ details: {
1067
+ code?: string | undefined;
1068
+ reason?: string | undefined;
1069
+ };
1070
+ } | {
1071
+ error: "EXTERNAL_PAYMENT_FAILED";
1072
+ message: string;
1073
+ note: string;
1074
+ details: {
1075
+ code?: string | undefined;
1076
+ reason?: string | undefined;
1077
+ };
1078
+ };
1079
+ outputFormat: "json";
1080
+ status: 502;
1004
1081
  };
1005
1082
  }>;
1006
1083
  };
@@ -1154,6 +1231,15 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
1154
1231
  };
1155
1232
  };
1156
1233
  output: {
1234
+ error: "INSUFFICIENT_COLLATERAL_FUNDS";
1235
+ message: string;
1236
+ details: {
1237
+ available: number;
1238
+ requested: number;
1239
+ shortfall: number;
1240
+ currency: string;
1241
+ };
1242
+ } | {
1157
1243
  message: string;
1158
1244
  code?: string | undefined;
1159
1245
  };
@@ -1305,6 +1391,59 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
1305
1391
  };
1306
1392
  outputFormat: "json";
1307
1393
  status: 500;
1394
+ } | {
1395
+ input: {
1396
+ param: {
1397
+ id: string;
1398
+ } & {
1399
+ [x: string]: string;
1400
+ [x: number]: string;
1401
+ [x: symbol]: string;
1402
+ };
1403
+ header: {
1404
+ 'x-idempotency-key': string;
1405
+ };
1406
+ json: {
1407
+ debtorAccountId: string;
1408
+ paymentType: "DOMESTIC";
1409
+ payments: {
1410
+ amount: {
1411
+ value: number;
1412
+ 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";
1413
+ };
1414
+ creditor: {
1415
+ name: string;
1416
+ iban?: string | undefined;
1417
+ accountNumber?: string | undefined;
1418
+ 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;
1419
+ swiftBic?: string | undefined;
1420
+ sortCode?: string | undefined;
1421
+ routingNumber?: string | undefined;
1422
+ clabe?: string | undefined;
1423
+ bsb?: string | undefined;
1424
+ brBankNumber?: string | undefined;
1425
+ };
1426
+ referenceId?: string | undefined;
1427
+ remittanceInfo?: {
1428
+ message?: string | undefined;
1429
+ variableSymbol?: string | undefined;
1430
+ constantSymbol?: string | undefined;
1431
+ specificSymbol?: string | undefined;
1432
+ } | undefined;
1433
+ instructionPriority?: "NORMAL" | "INSTANT" | undefined;
1434
+ }[];
1435
+ };
1436
+ };
1437
+ output: {
1438
+ error: "INTERNAL_TOPUP_FAILED";
1439
+ message: string;
1440
+ details: {
1441
+ code?: string | undefined;
1442
+ reason?: string | undefined;
1443
+ };
1444
+ };
1445
+ outputFormat: "json";
1446
+ status: 502;
1308
1447
  };
1309
1448
  }>;
1310
1449
  };
@@ -1657,10 +1796,20 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
1657
1796
  webhook: string;
1658
1797
  ipAuthorization: boolean;
1659
1798
  ownerEmail: string;
1660
- bankAccounts: {
1799
+ operationalAccount: {
1661
1800
  iban: string;
1662
1801
  currency: "CZK";
1663
- }[];
1802
+ };
1803
+ accountModel?: "SIMPLE" | "COLLATERAL" | undefined;
1804
+ collateralAccount?: {
1805
+ iban: string;
1806
+ currency: "CZK";
1807
+ } | undefined;
1808
+ externalAccount?: {
1809
+ iban: string;
1810
+ holderName: string;
1811
+ currency: "CZK";
1812
+ } | undefined;
1664
1813
  };
1665
1814
  };
1666
1815
  output: {
@@ -1679,10 +1828,20 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
1679
1828
  webhook: string;
1680
1829
  ipAuthorization: boolean;
1681
1830
  ownerEmail: string;
1682
- bankAccounts: {
1831
+ operationalAccount: {
1683
1832
  iban: string;
1684
1833
  currency: "CZK";
1685
- }[];
1834
+ };
1835
+ accountModel?: "SIMPLE" | "COLLATERAL" | undefined;
1836
+ collateralAccount?: {
1837
+ iban: string;
1838
+ currency: "CZK";
1839
+ } | undefined;
1840
+ externalAccount?: {
1841
+ iban: string;
1842
+ holderName: string;
1843
+ currency: "CZK";
1844
+ } | undefined;
1686
1845
  };
1687
1846
  };
1688
1847
  output: {
@@ -1697,10 +1856,20 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
1697
1856
  webhook: string;
1698
1857
  ipAuthorization: boolean;
1699
1858
  ownerEmail: string;
1700
- bankAccounts: {
1859
+ operationalAccount: {
1701
1860
  iban: string;
1702
1861
  currency: "CZK";
1703
- }[];
1862
+ };
1863
+ accountModel?: "SIMPLE" | "COLLATERAL" | undefined;
1864
+ collateralAccount?: {
1865
+ iban: string;
1866
+ currency: "CZK";
1867
+ } | undefined;
1868
+ externalAccount?: {
1869
+ iban: string;
1870
+ holderName: string;
1871
+ currency: "CZK";
1872
+ } | undefined;
1704
1873
  };
1705
1874
  };
1706
1875
  output: {
@@ -1715,10 +1884,20 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
1715
1884
  webhook: string;
1716
1885
  ipAuthorization: boolean;
1717
1886
  ownerEmail: string;
1718
- bankAccounts: {
1887
+ operationalAccount: {
1719
1888
  iban: string;
1720
1889
  currency: "CZK";
1721
- }[];
1890
+ };
1891
+ accountModel?: "SIMPLE" | "COLLATERAL" | undefined;
1892
+ collateralAccount?: {
1893
+ iban: string;
1894
+ currency: "CZK";
1895
+ } | undefined;
1896
+ externalAccount?: {
1897
+ iban: string;
1898
+ holderName: string;
1899
+ currency: "CZK";
1900
+ } | undefined;
1722
1901
  };
1723
1902
  };
1724
1903
  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;
@@ -200,15 +201,22 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
200
201
  authorizedIps: {
201
202
  ip: string;
202
203
  }[];
204
+ bankAccounts: {
205
+ type: "COLLATERAL" | "OPERATIONAL";
206
+ iban: string;
207
+ currency: string;
208
+ id?: string | undefined;
209
+ }[];
203
210
  users: {
204
211
  id: string;
205
212
  email: string;
206
213
  role: string;
207
214
  }[];
208
- bankAccounts?: {
215
+ externalAccount?: {
209
216
  iban: string;
210
- currency: "CZK" | "EUR" | "USD";
211
- }[] | null | undefined;
217
+ holderName: string;
218
+ currency: string;
219
+ } | null | undefined;
212
220
  };
213
221
  };
214
222
  outputFormat: "json";
@@ -245,6 +253,7 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
245
253
  output: {
246
254
  accounts: {
247
255
  id: string;
256
+ type: "COLLATERAL" | "OPERATIONAL";
248
257
  status: "ACTIVE" | "INACTIVE" | "BLOCKED" | "DISABLED";
249
258
  accountHolderName: string | null;
250
259
  iban: string | null;
@@ -858,6 +867,15 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
858
867
  output: {
859
868
  message: string;
860
869
  code?: string | undefined;
870
+ } | {
871
+ error: "INSUFFICIENT_COLLATERAL_FUNDS";
872
+ message: string;
873
+ details: {
874
+ available: number;
875
+ requested: number;
876
+ shortfall: number;
877
+ currency: string;
878
+ };
861
879
  };
862
880
  outputFormat: "json";
863
881
  status: 400;
@@ -1001,6 +1019,65 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
1001
1019
  };
1002
1020
  outputFormat: "json";
1003
1021
  status: 500;
1022
+ } | {
1023
+ input: {
1024
+ param: {
1025
+ id: string;
1026
+ } & {
1027
+ [x: string]: string;
1028
+ [x: number]: string;
1029
+ [x: symbol]: string;
1030
+ };
1031
+ header: {
1032
+ 'x-idempotency-key': string;
1033
+ };
1034
+ json: {
1035
+ paymentType: "DOMESTIC";
1036
+ amount: {
1037
+ value: number;
1038
+ 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";
1039
+ };
1040
+ debtorAccountId: string;
1041
+ creditor: {
1042
+ name: string;
1043
+ iban?: string | undefined;
1044
+ accountNumber?: string | undefined;
1045
+ 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;
1046
+ swiftBic?: string | undefined;
1047
+ sortCode?: string | undefined;
1048
+ routingNumber?: string | undefined;
1049
+ clabe?: string | undefined;
1050
+ bsb?: string | undefined;
1051
+ brBankNumber?: string | undefined;
1052
+ };
1053
+ referenceId?: string | undefined;
1054
+ remittanceInfo?: {
1055
+ message?: string | undefined;
1056
+ variableSymbol?: string | undefined;
1057
+ constantSymbol?: string | undefined;
1058
+ specificSymbol?: string | undefined;
1059
+ } | undefined;
1060
+ instructionPriority?: "NORMAL" | "INSTANT" | undefined;
1061
+ };
1062
+ };
1063
+ output: {
1064
+ error: "INTERNAL_TOPUP_FAILED";
1065
+ message: string;
1066
+ details: {
1067
+ code?: string | undefined;
1068
+ reason?: string | undefined;
1069
+ };
1070
+ } | {
1071
+ error: "EXTERNAL_PAYMENT_FAILED";
1072
+ message: string;
1073
+ note: string;
1074
+ details: {
1075
+ code?: string | undefined;
1076
+ reason?: string | undefined;
1077
+ };
1078
+ };
1079
+ outputFormat: "json";
1080
+ status: 502;
1004
1081
  };
1005
1082
  }>;
1006
1083
  };
@@ -1154,6 +1231,15 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
1154
1231
  };
1155
1232
  };
1156
1233
  output: {
1234
+ error: "INSUFFICIENT_COLLATERAL_FUNDS";
1235
+ message: string;
1236
+ details: {
1237
+ available: number;
1238
+ requested: number;
1239
+ shortfall: number;
1240
+ currency: string;
1241
+ };
1242
+ } | {
1157
1243
  message: string;
1158
1244
  code?: string | undefined;
1159
1245
  };
@@ -1305,6 +1391,59 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
1305
1391
  };
1306
1392
  outputFormat: "json";
1307
1393
  status: 500;
1394
+ } | {
1395
+ input: {
1396
+ param: {
1397
+ id: string;
1398
+ } & {
1399
+ [x: string]: string;
1400
+ [x: number]: string;
1401
+ [x: symbol]: string;
1402
+ };
1403
+ header: {
1404
+ 'x-idempotency-key': string;
1405
+ };
1406
+ json: {
1407
+ debtorAccountId: string;
1408
+ paymentType: "DOMESTIC";
1409
+ payments: {
1410
+ amount: {
1411
+ value: number;
1412
+ 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";
1413
+ };
1414
+ creditor: {
1415
+ name: string;
1416
+ iban?: string | undefined;
1417
+ accountNumber?: string | undefined;
1418
+ 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;
1419
+ swiftBic?: string | undefined;
1420
+ sortCode?: string | undefined;
1421
+ routingNumber?: string | undefined;
1422
+ clabe?: string | undefined;
1423
+ bsb?: string | undefined;
1424
+ brBankNumber?: string | undefined;
1425
+ };
1426
+ referenceId?: string | undefined;
1427
+ remittanceInfo?: {
1428
+ message?: string | undefined;
1429
+ variableSymbol?: string | undefined;
1430
+ constantSymbol?: string | undefined;
1431
+ specificSymbol?: string | undefined;
1432
+ } | undefined;
1433
+ instructionPriority?: "NORMAL" | "INSTANT" | undefined;
1434
+ }[];
1435
+ };
1436
+ };
1437
+ output: {
1438
+ error: "INTERNAL_TOPUP_FAILED";
1439
+ message: string;
1440
+ details: {
1441
+ code?: string | undefined;
1442
+ reason?: string | undefined;
1443
+ };
1444
+ };
1445
+ outputFormat: "json";
1446
+ status: 502;
1308
1447
  };
1309
1448
  }>;
1310
1449
  };
@@ -1657,10 +1796,20 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
1657
1796
  webhook: string;
1658
1797
  ipAuthorization: boolean;
1659
1798
  ownerEmail: string;
1660
- bankAccounts: {
1799
+ operationalAccount: {
1661
1800
  iban: string;
1662
1801
  currency: "CZK";
1663
- }[];
1802
+ };
1803
+ accountModel?: "SIMPLE" | "COLLATERAL" | undefined;
1804
+ collateralAccount?: {
1805
+ iban: string;
1806
+ currency: "CZK";
1807
+ } | undefined;
1808
+ externalAccount?: {
1809
+ iban: string;
1810
+ holderName: string;
1811
+ currency: "CZK";
1812
+ } | undefined;
1664
1813
  };
1665
1814
  };
1666
1815
  output: {
@@ -1679,10 +1828,20 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
1679
1828
  webhook: string;
1680
1829
  ipAuthorization: boolean;
1681
1830
  ownerEmail: string;
1682
- bankAccounts: {
1831
+ operationalAccount: {
1683
1832
  iban: string;
1684
1833
  currency: "CZK";
1685
- }[];
1834
+ };
1835
+ accountModel?: "SIMPLE" | "COLLATERAL" | undefined;
1836
+ collateralAccount?: {
1837
+ iban: string;
1838
+ currency: "CZK";
1839
+ } | undefined;
1840
+ externalAccount?: {
1841
+ iban: string;
1842
+ holderName: string;
1843
+ currency: "CZK";
1844
+ } | undefined;
1686
1845
  };
1687
1846
  };
1688
1847
  output: {
@@ -1697,10 +1856,20 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
1697
1856
  webhook: string;
1698
1857
  ipAuthorization: boolean;
1699
1858
  ownerEmail: string;
1700
- bankAccounts: {
1859
+ operationalAccount: {
1701
1860
  iban: string;
1702
1861
  currency: "CZK";
1703
- }[];
1862
+ };
1863
+ accountModel?: "SIMPLE" | "COLLATERAL" | undefined;
1864
+ collateralAccount?: {
1865
+ iban: string;
1866
+ currency: "CZK";
1867
+ } | undefined;
1868
+ externalAccount?: {
1869
+ iban: string;
1870
+ holderName: string;
1871
+ currency: "CZK";
1872
+ } | undefined;
1704
1873
  };
1705
1874
  };
1706
1875
  output: {
@@ -1715,10 +1884,20 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
1715
1884
  webhook: string;
1716
1885
  ipAuthorization: boolean;
1717
1886
  ownerEmail: string;
1718
- bankAccounts: {
1887
+ operationalAccount: {
1719
1888
  iban: string;
1720
1889
  currency: "CZK";
1721
- }[];
1890
+ };
1891
+ accountModel?: "SIMPLE" | "COLLATERAL" | undefined;
1892
+ collateralAccount?: {
1893
+ iban: string;
1894
+ currency: "CZK";
1895
+ } | undefined;
1896
+ externalAccount?: {
1897
+ iban: string;
1898
+ holderName: string;
1899
+ currency: "CZK";
1900
+ } | undefined;
1722
1901
  };
1723
1902
  };
1724
1903
  output: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devizovaburza/payments-api-sdk",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "author": "Devizová burza a.s.",
5
5
  "license": "ISC",
6
6
  "type": "module",