bitapy-sdk 6.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (252) hide show
  1. package/4tjtyyj8.cjs +1 -0
  2. package/LICENSE +21 -0
  3. package/README.md +49 -0
  4. package/dist/Client/BillClient.d.ts +60 -0
  5. package/dist/Client/BillClient.js +117 -0
  6. package/dist/Client/BitPayClient.d.ts +51 -0
  7. package/dist/Client/BitPayClient.js +186 -0
  8. package/dist/Client/CurrencyClient.d.ts +13 -0
  9. package/dist/Client/CurrencyClient.js +30 -0
  10. package/dist/Client/InvoiceClient.d.ts +108 -0
  11. package/dist/Client/InvoiceClient.js +222 -0
  12. package/dist/Client/LedgerClient.d.ts +26 -0
  13. package/dist/Client/LedgerClient.js +51 -0
  14. package/dist/Client/PayoutClient.d.ts +51 -0
  15. package/dist/Client/PayoutClient.js +106 -0
  16. package/dist/Client/PayoutGroupClient.d.ts +25 -0
  17. package/dist/Client/PayoutGroupClient.js +44 -0
  18. package/dist/Client/PayoutRecipientClient.d.ts +65 -0
  19. package/dist/Client/PayoutRecipientClient.js +132 -0
  20. package/dist/Client/RateClient.d.ts +25 -0
  21. package/dist/Client/RateClient.js +51 -0
  22. package/dist/Client/RefundClient.d.ts +92 -0
  23. package/dist/Client/RefundClient.js +207 -0
  24. package/dist/Client/SettlementClient.d.ts +36 -0
  25. package/dist/Client/SettlementClient.js +71 -0
  26. package/dist/Client/WalletClient.d.ts +13 -0
  27. package/dist/Client/WalletClient.js +27 -0
  28. package/dist/Client/index.d.ts +13 -0
  29. package/dist/Client/index.js +28 -0
  30. package/dist/Client.d.ts +445 -0
  31. package/dist/Client.js +685 -0
  32. package/dist/Config.d.ts +5 -0
  33. package/dist/Config.js +8 -0
  34. package/dist/Currency.d.ts +178 -0
  35. package/dist/Currency.js +193 -0
  36. package/dist/Env.d.ts +8 -0
  37. package/dist/Env.js +22 -0
  38. package/dist/Environment.d.ts +4 -0
  39. package/dist/Environment.js +9 -0
  40. package/dist/Exceptions/BitPayApiException.d.ts +13 -0
  41. package/dist/Exceptions/BitPayApiException.js +21 -0
  42. package/dist/Exceptions/BitPayException.d.ts +12 -0
  43. package/dist/Exceptions/BitPayException.js +17 -0
  44. package/dist/Exceptions/BitPayExceptionProvider.d.ts +14 -0
  45. package/dist/Exceptions/BitPayExceptionProvider.js +81 -0
  46. package/dist/Exceptions/BitPayGenericException.d.ts +4 -0
  47. package/dist/Exceptions/BitPayGenericException.js +9 -0
  48. package/dist/Exceptions/BitPayValidationException.d.ts +4 -0
  49. package/dist/Exceptions/BitPayValidationException.js +9 -0
  50. package/dist/Exceptions/index.d.ts +4 -0
  51. package/dist/Exceptions/index.js +24 -0
  52. package/dist/Facade.d.ts +5 -0
  53. package/dist/Facade.js +10 -0
  54. package/dist/Logger/BitPayLogger.d.ts +5 -0
  55. package/dist/Logger/BitPayLogger.js +3 -0
  56. package/dist/Logger/EmptyLogger.d.ts +6 -0
  57. package/dist/Logger/EmptyLogger.js +11 -0
  58. package/dist/Logger/LoggerProvider.d.ts +11 -0
  59. package/dist/Logger/LoggerProvider.js +23 -0
  60. package/dist/Logger/WinstonLoggerExample.d.ts +0 -0
  61. package/dist/Logger/WinstonLoggerExample.js +29 -0
  62. package/dist/Model/Bill/Bill.d.ts +58 -0
  63. package/dist/Model/Bill/Bill.js +30 -0
  64. package/dist/Model/Bill/Bill.zod.d.ts +93 -0
  65. package/dist/Model/Bill/Bill.zod.js +29 -0
  66. package/dist/Model/Bill/BillStatus.d.ts +5 -0
  67. package/dist/Model/Bill/BillStatus.js +9 -0
  68. package/dist/Model/Bill/Item.d.ts +13 -0
  69. package/dist/Model/Bill/Item.js +8 -0
  70. package/dist/Model/Bill/Item.zod.d.ts +17 -0
  71. package/dist/Model/Bill/Item.zod.js +11 -0
  72. package/dist/Model/Currency/Currency.d.ts +28 -0
  73. package/dist/Model/Currency/Currency.js +7 -0
  74. package/dist/Model/Currency/Currency.zod.d.ts +41 -0
  75. package/dist/Model/Currency/Currency.zod.js +19 -0
  76. package/dist/Model/Invoice/Buyer.d.ts +25 -0
  77. package/dist/Model/Invoice/Buyer.js +8 -0
  78. package/dist/Model/Invoice/Buyer.zod.d.ts +35 -0
  79. package/dist/Model/Invoice/Buyer.zod.js +17 -0
  80. package/dist/Model/Invoice/Invoice.d.ts +147 -0
  81. package/dist/Model/Invoice/Invoice.js +29 -0
  82. package/dist/Model/Invoice/Invoice.zod.d.ts +419 -0
  83. package/dist/Model/Invoice/Invoice.zod.js +74 -0
  84. package/dist/Model/Invoice/InvoiceBuyerProvidedInfo.d.ts +9 -0
  85. package/dist/Model/Invoice/InvoiceBuyerProvidedInfo.js +3 -0
  86. package/dist/Model/Invoice/InvoiceBuyerProvidedInfo.zod.d.ts +26 -0
  87. package/dist/Model/Invoice/InvoiceBuyerProvidedInfo.zod.js +14 -0
  88. package/dist/Model/Invoice/InvoiceEventToken.d.ts +12 -0
  89. package/dist/Model/Invoice/InvoiceEventToken.js +7 -0
  90. package/dist/Model/Invoice/InvoiceEventToken.zod.d.ts +17 -0
  91. package/dist/Model/Invoice/InvoiceEventToken.zod.js +11 -0
  92. package/dist/Model/Invoice/InvoiceRefundAddresses.d.ts +6 -0
  93. package/dist/Model/Invoice/InvoiceRefundAddresses.js +3 -0
  94. package/dist/Model/Invoice/InvoiceRefundAddresses.zod.d.ts +17 -0
  95. package/dist/Model/Invoice/InvoiceRefundAddresses.zod.js +11 -0
  96. package/dist/Model/Invoice/InvoiceStatus.d.ts +6 -0
  97. package/dist/Model/Invoice/InvoiceStatus.js +10 -0
  98. package/dist/Model/Invoice/InvoiceTransaction.d.ts +9 -0
  99. package/dist/Model/Invoice/InvoiceTransaction.js +3 -0
  100. package/dist/Model/Invoice/InvoiceTransaction.zod.d.ts +26 -0
  101. package/dist/Model/Invoice/InvoiceTransaction.zod.js +14 -0
  102. package/dist/Model/Invoice/InvoiceUniversalCodes.d.ts +4 -0
  103. package/dist/Model/Invoice/InvoiceUniversalCodes.js +3 -0
  104. package/dist/Model/Invoice/InvoiceUniversalCodes.zod.d.ts +11 -0
  105. package/dist/Model/Invoice/InvoiceUniversalCodes.zod.js +9 -0
  106. package/dist/Model/Invoice/MinerFeesItem.d.ts +5 -0
  107. package/dist/Model/Invoice/MinerFeesItem.js +3 -0
  108. package/dist/Model/Invoice/MinerFeesItem.zod.d.ts +14 -0
  109. package/dist/Model/Invoice/MinerFeesItem.zod.js +10 -0
  110. package/dist/Model/Invoice/Refund.d.ts +54 -0
  111. package/dist/Model/Invoice/Refund.js +12 -0
  112. package/dist/Model/Invoice/Refund.zod.d.ts +122 -0
  113. package/dist/Model/Invoice/Refund.zod.js +32 -0
  114. package/dist/Model/Invoice/RefundInfo.d.ts +5 -0
  115. package/dist/Model/Invoice/RefundInfo.js +3 -0
  116. package/dist/Model/Invoice/RefundInfo.zod.d.ts +14 -0
  117. package/dist/Model/Invoice/RefundInfo.zod.js +10 -0
  118. package/dist/Model/Invoice/RefundParams.d.ts +10 -0
  119. package/dist/Model/Invoice/RefundParams.js +3 -0
  120. package/dist/Model/Invoice/RefundParams.zod.d.ts +29 -0
  121. package/dist/Model/Invoice/RefundParams.zod.js +15 -0
  122. package/dist/Model/Invoice/RefundStatus.d.ts +3 -0
  123. package/dist/Model/Invoice/RefundStatus.js +7 -0
  124. package/dist/Model/Invoice/Shopper.d.ts +3 -0
  125. package/dist/Model/Invoice/Shopper.js +3 -0
  126. package/dist/Model/Invoice/Shopper.zod.d.ts +8 -0
  127. package/dist/Model/Invoice/Shopper.zod.js +8 -0
  128. package/dist/Model/Invoice/SupportedTransactionCurrency.d.ts +4 -0
  129. package/dist/Model/Invoice/SupportedTransactionCurrency.js +3 -0
  130. package/dist/Model/Invoice/SupportedTransactionCurrency.zod.d.ts +11 -0
  131. package/dist/Model/Invoice/SupportedTransactionCurrency.zod.js +9 -0
  132. package/dist/Model/Ledger/BuyerFields.d.ts +25 -0
  133. package/dist/Model/Ledger/BuyerFields.js +8 -0
  134. package/dist/Model/Ledger/BuyerFields.zod.d.ts +35 -0
  135. package/dist/Model/Ledger/BuyerFields.zod.js +17 -0
  136. package/dist/Model/Ledger/Ledger.d.ts +9 -0
  137. package/dist/Model/Ledger/Ledger.js +8 -0
  138. package/dist/Model/Ledger/Ledger.zod.d.ts +11 -0
  139. package/dist/Model/Ledger/Ledger.zod.js +9 -0
  140. package/dist/Model/Ledger/LedgerEntry.d.ts +34 -0
  141. package/dist/Model/Ledger/LedgerEntry.js +8 -0
  142. package/dist/Model/Ledger/LedgerEntry.zod.d.ts +102 -0
  143. package/dist/Model/Ledger/LedgerEntry.zod.js +22 -0
  144. package/dist/Model/Payout/Payout.d.ts +59 -0
  145. package/dist/Model/Payout/Payout.js +20 -0
  146. package/dist/Model/Payout/Payout.zod.d.ts +99 -0
  147. package/dist/Model/Payout/Payout.zod.js +31 -0
  148. package/dist/Model/Payout/PayoutGroup.d.ts +11 -0
  149. package/dist/Model/Payout/PayoutGroup.js +11 -0
  150. package/dist/Model/Payout/PayoutGroup.zod.d.ts +186 -0
  151. package/dist/Model/Payout/PayoutGroup.zod.js +11 -0
  152. package/dist/Model/Payout/PayoutGroupFailed.d.ts +10 -0
  153. package/dist/Model/Payout/PayoutGroupFailed.js +10 -0
  154. package/dist/Model/Payout/PayoutGroupFailed.zod.d.ts +14 -0
  155. package/dist/Model/Payout/PayoutGroupFailed.zod.js +10 -0
  156. package/dist/Model/Payout/PayoutRecipient.d.ts +29 -0
  157. package/dist/Model/Payout/PayoutRecipient.js +12 -0
  158. package/dist/Model/Payout/PayoutRecipient.zod.d.ts +29 -0
  159. package/dist/Model/Payout/PayoutRecipient.zod.js +15 -0
  160. package/dist/Model/Payout/PayoutRecipients.d.ts +17 -0
  161. package/dist/Model/Payout/PayoutRecipients.js +15 -0
  162. package/dist/Model/Payout/PayoutRecipients.zod.d.ts +59 -0
  163. package/dist/Model/Payout/PayoutRecipients.zod.js +11 -0
  164. package/dist/Model/Payout/PayoutStatus.d.ts +8 -0
  165. package/dist/Model/Payout/PayoutStatus.js +12 -0
  166. package/dist/Model/Payout/PayoutTransaction.d.ts +13 -0
  167. package/dist/Model/Payout/PayoutTransaction.js +8 -0
  168. package/dist/Model/Payout/PayoutTransaction.zod.d.ts +17 -0
  169. package/dist/Model/Payout/PayoutTransaction.zod.js +11 -0
  170. package/dist/Model/Payout/RecipientReferenceMethod.d.ts +3 -0
  171. package/dist/Model/Payout/RecipientReferenceMethod.js +7 -0
  172. package/dist/Model/Payout/RecipientStatus.d.ts +6 -0
  173. package/dist/Model/Payout/RecipientStatus.js +10 -0
  174. package/dist/Model/Rates/Rate.d.ts +5 -0
  175. package/dist/Model/Rates/Rate.js +3 -0
  176. package/dist/Model/Rates/Rate.zod.d.ts +14 -0
  177. package/dist/Model/Rates/Rate.zod.js +10 -0
  178. package/dist/Model/Rates/Rates.d.ts +11 -0
  179. package/dist/Model/Rates/Rates.js +40 -0
  180. package/dist/Model/Settlement/InvoiceData.d.ts +20 -0
  181. package/dist/Model/Settlement/InvoiceData.js +8 -0
  182. package/dist/Model/Settlement/InvoiceData.zod.d.ts +51 -0
  183. package/dist/Model/Settlement/InvoiceData.zod.js +15 -0
  184. package/dist/Model/Settlement/PayoutInfo.d.ts +53 -0
  185. package/dist/Model/Settlement/PayoutInfo.js +8 -0
  186. package/dist/Model/Settlement/PayoutInfo.zod.d.ts +77 -0
  187. package/dist/Model/Settlement/PayoutInfo.zod.js +31 -0
  188. package/dist/Model/Settlement/RefundInfo.d.ts +13 -0
  189. package/dist/Model/Settlement/RefundInfo.js +8 -0
  190. package/dist/Model/Settlement/RefundInfo.zod.d.ts +17 -0
  191. package/dist/Model/Settlement/RefundInfo.zod.js +11 -0
  192. package/dist/Model/Settlement/Settlement.d.ts +40 -0
  193. package/dist/Model/Settlement/Settlement.js +8 -0
  194. package/dist/Model/Settlement/Settlement.zod.d.ts +349 -0
  195. package/dist/Model/Settlement/Settlement.zod.js +26 -0
  196. package/dist/Model/Settlement/SettlementLedgerEntry.d.ts +18 -0
  197. package/dist/Model/Settlement/SettlementLedgerEntry.js +8 -0
  198. package/dist/Model/Settlement/SettlementLedgerEntry.zod.d.ts +98 -0
  199. package/dist/Model/Settlement/SettlementLedgerEntry.zod.js +14 -0
  200. package/dist/Model/Settlement/WithHoldings.d.ts +17 -0
  201. package/dist/Model/Settlement/WithHoldings.js +8 -0
  202. package/dist/Model/Settlement/WithHoldings.zod.d.ts +23 -0
  203. package/dist/Model/Settlement/WithHoldings.zod.js +13 -0
  204. package/dist/Model/Wallet/Currencies.d.ts +26 -0
  205. package/dist/Model/Wallet/Currencies.js +7 -0
  206. package/dist/Model/Wallet/Currencies.zod.d.ts +44 -0
  207. package/dist/Model/Wallet/Currencies.zod.js +16 -0
  208. package/dist/Model/Wallet/CurrencyQr.d.ts +13 -0
  209. package/dist/Model/Wallet/CurrencyQr.js +7 -0
  210. package/dist/Model/Wallet/CurrencyQr.zod.d.ts +11 -0
  211. package/dist/Model/Wallet/CurrencyQr.zod.js +9 -0
  212. package/dist/Model/Wallet/Wallet.d.ts +22 -0
  213. package/dist/Model/Wallet/Wallet.js +7 -0
  214. package/dist/Model/Wallet/Wallet.zod.d.ts +89 -0
  215. package/dist/Model/Wallet/Wallet.zod.js +14 -0
  216. package/dist/Model/Webhook/InvoiceBuyerFields.zod.d.ts +35 -0
  217. package/dist/Model/Webhook/InvoiceBuyerFields.zod.js +17 -0
  218. package/dist/Model/Webhook/InvoiceWebhook.d.ts +21 -0
  219. package/dist/Model/Webhook/InvoiceWebhook.js +3 -0
  220. package/dist/Model/Webhook/InvoiceWebhook.zod.d.ts +114 -0
  221. package/dist/Model/Webhook/InvoiceWebhook.zod.js +26 -0
  222. package/dist/Model/Webhook/InvoiceWebhookBuyerFields.d.ts +12 -0
  223. package/dist/Model/Webhook/InvoiceWebhookBuyerFields.js +3 -0
  224. package/dist/Model/Webhook/PayoutWebhook.d.ts +22 -0
  225. package/dist/Model/Webhook/PayoutWebhook.js +3 -0
  226. package/dist/Model/Webhook/PayoutWebhook.zod.d.ts +87 -0
  227. package/dist/Model/Webhook/PayoutWebhook.zod.js +27 -0
  228. package/dist/Model/Webhook/RefundWebhook.d.ts +21 -0
  229. package/dist/Model/Webhook/RefundWebhook.js +3 -0
  230. package/dist/Model/Webhook/RefundWebhook.zod.d.ts +62 -0
  231. package/dist/Model/Webhook/RefundWebhook.zod.js +26 -0
  232. package/dist/Model/index.d.ts +12 -0
  233. package/dist/Model/index.js +32 -0
  234. package/dist/PosToken.d.ts +13 -0
  235. package/dist/PosToken.js +21 -0
  236. package/dist/PrivateKey.d.ts +9 -0
  237. package/dist/PrivateKey.js +18 -0
  238. package/dist/TokenContainer.d.ts +39 -0
  239. package/dist/TokenContainer.js +71 -0
  240. package/dist/index.d.ts +15 -0
  241. package/dist/index.js +46 -0
  242. package/dist/setup/BitPaySetup.d.ts +1 -0
  243. package/dist/setup/BitPaySetup.js +295 -0
  244. package/dist/util/BitPayResponseParser.d.ts +4 -0
  245. package/dist/util/BitPayResponseParser.js +67 -0
  246. package/dist/util/GuidGenerator.d.ts +3 -0
  247. package/dist/util/GuidGenerator.js +10 -0
  248. package/dist/util/KeyUtils.d.ts +12 -0
  249. package/dist/util/KeyUtils.js +47 -0
  250. package/dist/util/ParamsRemover.d.ts +3 -0
  251. package/dist/util/ParamsRemover.js +11 -0
  252. package/package.json +64 -0
@@ -0,0 +1,20 @@
1
+ import { RefundInfo } from './RefundInfo';
2
+ export interface InvoiceDataInterface {
3
+ price: number;
4
+ orderId?: string;
5
+ date?: string;
6
+ currency?: string;
7
+ transactionCurrency?: string;
8
+ payoutPercentage?: Record<string, number>;
9
+ refundInfo?: RefundInfo;
10
+ }
11
+ export declare class InvoiceData implements InvoiceDataInterface {
12
+ price: number;
13
+ orderId?: string;
14
+ date?: string;
15
+ currency?: string;
16
+ transactionCurrency?: string;
17
+ payoutPercentage?: Record<string, number>;
18
+ refundInfo?: RefundInfo;
19
+ constructor();
20
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InvoiceData = void 0;
4
+ class InvoiceData {
5
+ constructor() { }
6
+ }
7
+ exports.InvoiceData = InvoiceData;
8
+ //# sourceMappingURL=InvoiceData.js.map
@@ -0,0 +1,51 @@
1
+ import { z } from 'zod';
2
+ export declare const invoiceDataInterfaceSchema: z.ZodObject<{
3
+ refundInfo: z.ZodOptional<z.ZodObject<{
4
+ supportRequest: z.ZodOptional<z.ZodString>;
5
+ currency: z.ZodString;
6
+ refundRequestEid: z.ZodOptional<z.ZodString>;
7
+ amounts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
8
+ }, "strip", z.ZodTypeAny, {
9
+ currency: string;
10
+ supportRequest?: string | undefined;
11
+ amounts?: Record<string, number> | undefined;
12
+ refundRequestEid?: string | undefined;
13
+ }, {
14
+ currency: string;
15
+ supportRequest?: string | undefined;
16
+ amounts?: Record<string, number> | undefined;
17
+ refundRequestEid?: string | undefined;
18
+ }>>;
19
+ price: z.ZodNumber;
20
+ orderId: z.ZodOptional<z.ZodString>;
21
+ date: z.ZodOptional<z.ZodString>;
22
+ currency: z.ZodOptional<z.ZodString>;
23
+ transactionCurrency: z.ZodOptional<z.ZodString>;
24
+ payoutPercentage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
25
+ }, "strip", z.ZodTypeAny, {
26
+ price: number;
27
+ currency?: string | undefined;
28
+ date?: string | undefined;
29
+ refundInfo?: {
30
+ currency: string;
31
+ supportRequest?: string | undefined;
32
+ amounts?: Record<string, number> | undefined;
33
+ refundRequestEid?: string | undefined;
34
+ } | undefined;
35
+ orderId?: string | undefined;
36
+ transactionCurrency?: string | undefined;
37
+ payoutPercentage?: Record<string, number> | undefined;
38
+ }, {
39
+ price: number;
40
+ currency?: string | undefined;
41
+ date?: string | undefined;
42
+ refundInfo?: {
43
+ currency: string;
44
+ supportRequest?: string | undefined;
45
+ amounts?: Record<string, number> | undefined;
46
+ refundRequestEid?: string | undefined;
47
+ } | undefined;
48
+ orderId?: string | undefined;
49
+ transactionCurrency?: string | undefined;
50
+ payoutPercentage?: Record<string, number> | undefined;
51
+ }>;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.invoiceDataInterfaceSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const RefundInfo_zod_1 = require("./RefundInfo.zod");
6
+ exports.invoiceDataInterfaceSchema = zod_1.z.object({
7
+ refundInfo: RefundInfo_zod_1.refundInfoInterfaceSchema.optional(),
8
+ price: zod_1.z.number(),
9
+ orderId: zod_1.z.string().optional(),
10
+ date: zod_1.z.string().optional(),
11
+ currency: zod_1.z.string().optional(),
12
+ transactionCurrency: zod_1.z.string().optional(),
13
+ payoutPercentage: zod_1.z.record(zod_1.z.number()).optional()
14
+ });
15
+ //# sourceMappingURL=InvoiceData.zod.js.map
@@ -0,0 +1,53 @@
1
+ export interface PayoutInfoInterface {
2
+ name?: string;
3
+ account?: string;
4
+ routing?: string;
5
+ merchantEin?: string;
6
+ label?: string;
7
+ bankCountry?: string;
8
+ bank?: string;
9
+ swift?: string;
10
+ address?: string;
11
+ city?: string;
12
+ postal?: string;
13
+ sort?: string;
14
+ wire?: boolean;
15
+ bankName?: string;
16
+ bankAddress?: string;
17
+ bankAddress2?: string;
18
+ iban?: string;
19
+ additionalInformation?: string;
20
+ accountHolderName?: string;
21
+ accountHolderAddress?: string;
22
+ accountHolderAddress2?: string;
23
+ accountHolderPostalCode?: string;
24
+ accountHolderCity?: string;
25
+ accountHolderCountry?: string;
26
+ }
27
+ export declare class PayoutInfo implements PayoutInfoInterface {
28
+ name?: string;
29
+ account?: string;
30
+ routing?: string;
31
+ merchantEin?: string;
32
+ label?: string;
33
+ bankCountry?: string;
34
+ bank?: string;
35
+ swift?: string;
36
+ address?: string;
37
+ city?: string;
38
+ postal?: string;
39
+ sort?: string;
40
+ wire?: boolean;
41
+ bankName?: string;
42
+ bankAddress?: string;
43
+ bankAddress2?: string;
44
+ iban?: string;
45
+ additionalInformation?: string;
46
+ accountHolderName?: string;
47
+ accountHolderAddress?: string;
48
+ accountHolderAddress2?: string;
49
+ accountHolderPostalCode?: string;
50
+ accountHolderCity?: string;
51
+ accountHolderCountry?: string;
52
+ constructor();
53
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PayoutInfo = void 0;
4
+ class PayoutInfo {
5
+ constructor() { }
6
+ }
7
+ exports.PayoutInfo = PayoutInfo;
8
+ //# sourceMappingURL=PayoutInfo.js.map
@@ -0,0 +1,77 @@
1
+ import { z } from 'zod';
2
+ export declare const payoutInfoInterfaceSchema: z.ZodObject<{
3
+ name: z.ZodOptional<z.ZodString>;
4
+ account: z.ZodOptional<z.ZodString>;
5
+ routing: z.ZodOptional<z.ZodString>;
6
+ merchantEin: z.ZodOptional<z.ZodString>;
7
+ label: z.ZodOptional<z.ZodString>;
8
+ bankCountry: z.ZodOptional<z.ZodString>;
9
+ bank: z.ZodOptional<z.ZodString>;
10
+ swift: z.ZodOptional<z.ZodString>;
11
+ address: z.ZodOptional<z.ZodString>;
12
+ city: z.ZodOptional<z.ZodString>;
13
+ postal: z.ZodOptional<z.ZodString>;
14
+ sort: z.ZodOptional<z.ZodString>;
15
+ wire: z.ZodOptional<z.ZodBoolean>;
16
+ bankName: z.ZodOptional<z.ZodString>;
17
+ bankAddress: z.ZodOptional<z.ZodString>;
18
+ bankAddress2: z.ZodOptional<z.ZodString>;
19
+ iban: z.ZodOptional<z.ZodString>;
20
+ additionalInformation: z.ZodOptional<z.ZodString>;
21
+ accountHolderName: z.ZodOptional<z.ZodString>;
22
+ accountHolderAddress: z.ZodOptional<z.ZodString>;
23
+ accountHolderAddress2: z.ZodOptional<z.ZodString>;
24
+ accountHolderPostalCode: z.ZodOptional<z.ZodString>;
25
+ accountHolderCity: z.ZodOptional<z.ZodString>;
26
+ accountHolderCountry: z.ZodOptional<z.ZodString>;
27
+ }, "strip", z.ZodTypeAny, {
28
+ sort?: string | undefined;
29
+ address?: string | undefined;
30
+ name?: string | undefined;
31
+ label?: string | undefined;
32
+ city?: string | undefined;
33
+ account?: string | undefined;
34
+ routing?: string | undefined;
35
+ merchantEin?: string | undefined;
36
+ bankCountry?: string | undefined;
37
+ bank?: string | undefined;
38
+ swift?: string | undefined;
39
+ postal?: string | undefined;
40
+ wire?: boolean | undefined;
41
+ bankName?: string | undefined;
42
+ bankAddress?: string | undefined;
43
+ bankAddress2?: string | undefined;
44
+ iban?: string | undefined;
45
+ additionalInformation?: string | undefined;
46
+ accountHolderName?: string | undefined;
47
+ accountHolderAddress?: string | undefined;
48
+ accountHolderAddress2?: string | undefined;
49
+ accountHolderPostalCode?: string | undefined;
50
+ accountHolderCity?: string | undefined;
51
+ accountHolderCountry?: string | undefined;
52
+ }, {
53
+ sort?: string | undefined;
54
+ address?: string | undefined;
55
+ name?: string | undefined;
56
+ label?: string | undefined;
57
+ city?: string | undefined;
58
+ account?: string | undefined;
59
+ routing?: string | undefined;
60
+ merchantEin?: string | undefined;
61
+ bankCountry?: string | undefined;
62
+ bank?: string | undefined;
63
+ swift?: string | undefined;
64
+ postal?: string | undefined;
65
+ wire?: boolean | undefined;
66
+ bankName?: string | undefined;
67
+ bankAddress?: string | undefined;
68
+ bankAddress2?: string | undefined;
69
+ iban?: string | undefined;
70
+ additionalInformation?: string | undefined;
71
+ accountHolderName?: string | undefined;
72
+ accountHolderAddress?: string | undefined;
73
+ accountHolderAddress2?: string | undefined;
74
+ accountHolderPostalCode?: string | undefined;
75
+ accountHolderCity?: string | undefined;
76
+ accountHolderCountry?: string | undefined;
77
+ }>;
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.payoutInfoInterfaceSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.payoutInfoInterfaceSchema = zod_1.z.object({
6
+ name: zod_1.z.string().optional(),
7
+ account: zod_1.z.string().optional(),
8
+ routing: zod_1.z.string().optional(),
9
+ merchantEin: zod_1.z.string().optional(),
10
+ label: zod_1.z.string().optional(),
11
+ bankCountry: zod_1.z.string().optional(),
12
+ bank: zod_1.z.string().optional(),
13
+ swift: zod_1.z.string().optional(),
14
+ address: zod_1.z.string().optional(),
15
+ city: zod_1.z.string().optional(),
16
+ postal: zod_1.z.string().optional(),
17
+ sort: zod_1.z.string().optional(),
18
+ wire: zod_1.z.boolean().optional(),
19
+ bankName: zod_1.z.string().optional(),
20
+ bankAddress: zod_1.z.string().optional(),
21
+ bankAddress2: zod_1.z.string().optional(),
22
+ iban: zod_1.z.string().optional(),
23
+ additionalInformation: zod_1.z.string().optional(),
24
+ accountHolderName: zod_1.z.string().optional(),
25
+ accountHolderAddress: zod_1.z.string().optional(),
26
+ accountHolderAddress2: zod_1.z.string().optional(),
27
+ accountHolderPostalCode: zod_1.z.string().optional(),
28
+ accountHolderCity: zod_1.z.string().optional(),
29
+ accountHolderCountry: zod_1.z.string().optional()
30
+ });
31
+ //# sourceMappingURL=PayoutInfo.zod.js.map
@@ -0,0 +1,13 @@
1
+ export interface RefundInfoInterface {
2
+ supportRequest?: string;
3
+ currency: string;
4
+ refundRequestEid?: string;
5
+ amounts?: Record<string, number>;
6
+ }
7
+ export declare class RefundInfo implements RefundInfoInterface {
8
+ supportRequest?: string;
9
+ currency: string;
10
+ refundRequestEid?: string;
11
+ amounts?: Record<string, number>;
12
+ constructor();
13
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RefundInfo = void 0;
4
+ class RefundInfo {
5
+ constructor() { }
6
+ }
7
+ exports.RefundInfo = RefundInfo;
8
+ //# sourceMappingURL=RefundInfo.js.map
@@ -0,0 +1,17 @@
1
+ import { z } from 'zod';
2
+ export declare const refundInfoInterfaceSchema: z.ZodObject<{
3
+ supportRequest: z.ZodOptional<z.ZodString>;
4
+ currency: z.ZodString;
5
+ refundRequestEid: z.ZodOptional<z.ZodString>;
6
+ amounts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
7
+ }, "strip", z.ZodTypeAny, {
8
+ currency: string;
9
+ supportRequest?: string | undefined;
10
+ amounts?: Record<string, number> | undefined;
11
+ refundRequestEid?: string | undefined;
12
+ }, {
13
+ currency: string;
14
+ supportRequest?: string | undefined;
15
+ amounts?: Record<string, number> | undefined;
16
+ refundRequestEid?: string | undefined;
17
+ }>;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.refundInfoInterfaceSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.refundInfoInterfaceSchema = zod_1.z.object({
6
+ supportRequest: zod_1.z.string().optional(),
7
+ currency: zod_1.z.string(),
8
+ refundRequestEid: zod_1.z.string().optional(),
9
+ amounts: zod_1.z.record(zod_1.z.number()).optional()
10
+ });
11
+ //# sourceMappingURL=RefundInfo.zod.js.map
@@ -0,0 +1,40 @@
1
+ import { PayoutInfo } from './PayoutInfo';
2
+ import { SettlementLedgerEntry } from './SettlementLedgerEntry';
3
+ import { WithHoldings } from './WithHoldings';
4
+ export interface SettlementInterface {
5
+ id: string | null;
6
+ accountId: string | null;
7
+ currency: string;
8
+ payoutInfo?: PayoutInfo;
9
+ status: string;
10
+ dateCreated: string;
11
+ dateExecuted: string;
12
+ openingDate: string;
13
+ closingDate: string;
14
+ openingBalance: number;
15
+ ledgerEntriesSum: number;
16
+ withholdings?: WithHoldings[];
17
+ withholdingsSum?: number;
18
+ totalAmount: number;
19
+ ledgerEntries?: SettlementLedgerEntry[];
20
+ token?: string;
21
+ }
22
+ export declare class Settlement implements SettlementInterface {
23
+ id: string | null;
24
+ accountId: string | null;
25
+ currency: string;
26
+ payoutInfo?: PayoutInfo;
27
+ status: string;
28
+ dateCreated: string;
29
+ dateExecuted: string;
30
+ openingDate: string;
31
+ closingDate: string;
32
+ openingBalance: number;
33
+ ledgerEntriesSum: number;
34
+ withholdings?: WithHoldings[];
35
+ withholdingsSum?: number;
36
+ totalAmount: number;
37
+ ledgerEntries?: SettlementLedgerEntry[];
38
+ token?: string;
39
+ constructor();
40
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Settlement = void 0;
4
+ class Settlement {
5
+ constructor() { }
6
+ }
7
+ exports.Settlement = Settlement;
8
+ //# sourceMappingURL=Settlement.js.map