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,349 @@
1
+ import { z } from 'zod';
2
+ export declare const settlementInterfaceSchema: z.ZodObject<{
3
+ payoutInfo: z.ZodOptional<z.ZodObject<{
4
+ name: z.ZodOptional<z.ZodString>;
5
+ account: z.ZodOptional<z.ZodString>;
6
+ routing: z.ZodOptional<z.ZodString>;
7
+ merchantEin: z.ZodOptional<z.ZodString>;
8
+ label: z.ZodOptional<z.ZodString>;
9
+ bankCountry: z.ZodOptional<z.ZodString>;
10
+ bank: z.ZodOptional<z.ZodString>;
11
+ swift: z.ZodOptional<z.ZodString>;
12
+ address: z.ZodOptional<z.ZodString>;
13
+ city: z.ZodOptional<z.ZodString>;
14
+ postal: z.ZodOptional<z.ZodString>;
15
+ sort: z.ZodOptional<z.ZodString>;
16
+ wire: z.ZodOptional<z.ZodBoolean>;
17
+ bankName: z.ZodOptional<z.ZodString>;
18
+ bankAddress: z.ZodOptional<z.ZodString>;
19
+ bankAddress2: z.ZodOptional<z.ZodString>;
20
+ iban: z.ZodOptional<z.ZodString>;
21
+ additionalInformation: z.ZodOptional<z.ZodString>;
22
+ accountHolderName: z.ZodOptional<z.ZodString>;
23
+ accountHolderAddress: z.ZodOptional<z.ZodString>;
24
+ accountHolderAddress2: z.ZodOptional<z.ZodString>;
25
+ accountHolderPostalCode: z.ZodOptional<z.ZodString>;
26
+ accountHolderCity: z.ZodOptional<z.ZodString>;
27
+ accountHolderCountry: z.ZodOptional<z.ZodString>;
28
+ }, "strip", z.ZodTypeAny, {
29
+ sort?: string | undefined;
30
+ address?: string | undefined;
31
+ name?: string | undefined;
32
+ label?: string | undefined;
33
+ city?: string | undefined;
34
+ account?: string | undefined;
35
+ routing?: string | undefined;
36
+ merchantEin?: string | undefined;
37
+ bankCountry?: string | undefined;
38
+ bank?: string | undefined;
39
+ swift?: string | undefined;
40
+ postal?: string | undefined;
41
+ wire?: boolean | undefined;
42
+ bankName?: string | undefined;
43
+ bankAddress?: string | undefined;
44
+ bankAddress2?: string | undefined;
45
+ iban?: string | undefined;
46
+ additionalInformation?: string | undefined;
47
+ accountHolderName?: string | undefined;
48
+ accountHolderAddress?: string | undefined;
49
+ accountHolderAddress2?: string | undefined;
50
+ accountHolderPostalCode?: string | undefined;
51
+ accountHolderCity?: string | undefined;
52
+ accountHolderCountry?: string | undefined;
53
+ }, {
54
+ sort?: string | undefined;
55
+ address?: string | undefined;
56
+ name?: string | undefined;
57
+ label?: string | undefined;
58
+ city?: string | undefined;
59
+ account?: string | undefined;
60
+ routing?: string | undefined;
61
+ merchantEin?: string | undefined;
62
+ bankCountry?: string | undefined;
63
+ bank?: string | undefined;
64
+ swift?: string | undefined;
65
+ postal?: string | undefined;
66
+ wire?: boolean | undefined;
67
+ bankName?: string | undefined;
68
+ bankAddress?: string | undefined;
69
+ bankAddress2?: string | undefined;
70
+ iban?: string | undefined;
71
+ additionalInformation?: string | undefined;
72
+ accountHolderName?: string | undefined;
73
+ accountHolderAddress?: string | undefined;
74
+ accountHolderAddress2?: string | undefined;
75
+ accountHolderPostalCode?: string | undefined;
76
+ accountHolderCity?: string | undefined;
77
+ accountHolderCountry?: string | undefined;
78
+ }>>;
79
+ withholdings: z.ZodOptional<z.ZodArray<z.ZodObject<{
80
+ amount: z.ZodNumber;
81
+ code: z.ZodString;
82
+ description: z.ZodOptional<z.ZodString>;
83
+ notes: z.ZodOptional<z.ZodString>;
84
+ label: z.ZodOptional<z.ZodString>;
85
+ bankCountry: z.ZodOptional<z.ZodString>;
86
+ }, "strip", z.ZodTypeAny, {
87
+ code: string;
88
+ amount: number;
89
+ label?: string | undefined;
90
+ description?: string | undefined;
91
+ bankCountry?: string | undefined;
92
+ notes?: string | undefined;
93
+ }, {
94
+ code: string;
95
+ amount: number;
96
+ label?: string | undefined;
97
+ description?: string | undefined;
98
+ bankCountry?: string | undefined;
99
+ notes?: string | undefined;
100
+ }>, "many">>;
101
+ ledgerEntries: z.ZodOptional<z.ZodArray<z.ZodObject<{
102
+ invoiceData: z.ZodOptional<z.ZodObject<{
103
+ refundInfo: z.ZodOptional<z.ZodObject<{
104
+ supportRequest: z.ZodOptional<z.ZodString>;
105
+ currency: z.ZodString;
106
+ refundRequestEid: z.ZodOptional<z.ZodString>;
107
+ amounts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
108
+ }, "strip", z.ZodTypeAny, {
109
+ currency: string;
110
+ supportRequest?: string | undefined;
111
+ amounts?: Record<string, number> | undefined;
112
+ refundRequestEid?: string | undefined;
113
+ }, {
114
+ currency: string;
115
+ supportRequest?: string | undefined;
116
+ amounts?: Record<string, number> | undefined;
117
+ refundRequestEid?: string | undefined;
118
+ }>>;
119
+ price: z.ZodNumber;
120
+ orderId: z.ZodOptional<z.ZodString>;
121
+ date: z.ZodOptional<z.ZodString>;
122
+ currency: z.ZodOptional<z.ZodString>;
123
+ transactionCurrency: z.ZodOptional<z.ZodString>;
124
+ payoutPercentage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
125
+ }, "strip", z.ZodTypeAny, {
126
+ price: number;
127
+ currency?: string | undefined;
128
+ date?: string | undefined;
129
+ refundInfo?: {
130
+ currency: string;
131
+ supportRequest?: string | undefined;
132
+ amounts?: Record<string, number> | undefined;
133
+ refundRequestEid?: string | undefined;
134
+ } | undefined;
135
+ orderId?: string | undefined;
136
+ transactionCurrency?: string | undefined;
137
+ payoutPercentage?: Record<string, number> | undefined;
138
+ }, {
139
+ price: number;
140
+ currency?: string | undefined;
141
+ date?: string | undefined;
142
+ refundInfo?: {
143
+ currency: string;
144
+ supportRequest?: string | undefined;
145
+ amounts?: Record<string, number> | undefined;
146
+ refundRequestEid?: string | undefined;
147
+ } | undefined;
148
+ orderId?: string | undefined;
149
+ transactionCurrency?: string | undefined;
150
+ payoutPercentage?: Record<string, number> | undefined;
151
+ }>>;
152
+ amount: z.ZodNumber;
153
+ code: z.ZodOptional<z.ZodNumber>;
154
+ invoiceId: z.ZodOptional<z.ZodString>;
155
+ timestamp: z.ZodOptional<z.ZodString>;
156
+ description: z.ZodOptional<z.ZodString>;
157
+ }, "strip", z.ZodTypeAny, {
158
+ amount: number;
159
+ code?: number | undefined;
160
+ description?: string | undefined;
161
+ timestamp?: string | undefined;
162
+ invoiceId?: string | undefined;
163
+ invoiceData?: {
164
+ price: number;
165
+ currency?: string | undefined;
166
+ date?: string | undefined;
167
+ refundInfo?: {
168
+ currency: string;
169
+ supportRequest?: string | undefined;
170
+ amounts?: Record<string, number> | undefined;
171
+ refundRequestEid?: string | undefined;
172
+ } | undefined;
173
+ orderId?: string | undefined;
174
+ transactionCurrency?: string | undefined;
175
+ payoutPercentage?: Record<string, number> | undefined;
176
+ } | undefined;
177
+ }, {
178
+ amount: number;
179
+ code?: number | undefined;
180
+ description?: string | undefined;
181
+ timestamp?: string | undefined;
182
+ invoiceId?: string | undefined;
183
+ invoiceData?: {
184
+ price: number;
185
+ currency?: string | undefined;
186
+ date?: string | undefined;
187
+ refundInfo?: {
188
+ currency: string;
189
+ supportRequest?: string | undefined;
190
+ amounts?: Record<string, number> | undefined;
191
+ refundRequestEid?: string | undefined;
192
+ } | undefined;
193
+ orderId?: string | undefined;
194
+ transactionCurrency?: string | undefined;
195
+ payoutPercentage?: Record<string, number> | undefined;
196
+ } | undefined;
197
+ }>, "many">>;
198
+ id: z.ZodNullable<z.ZodString>;
199
+ accountId: z.ZodNullable<z.ZodString>;
200
+ currency: z.ZodString;
201
+ status: z.ZodString;
202
+ dateCreated: z.ZodString;
203
+ dateExecuted: z.ZodString;
204
+ openingDate: z.ZodString;
205
+ closingDate: z.ZodString;
206
+ openingBalance: z.ZodNumber;
207
+ ledgerEntriesSum: z.ZodNumber;
208
+ withholdingsSum: z.ZodOptional<z.ZodNumber>;
209
+ totalAmount: z.ZodNumber;
210
+ token: z.ZodOptional<z.ZodString>;
211
+ }, "strip", z.ZodTypeAny, {
212
+ id: string | null;
213
+ status: string;
214
+ currency: string;
215
+ dateExecuted: string;
216
+ accountId: string | null;
217
+ dateCreated: string;
218
+ openingDate: string;
219
+ closingDate: string;
220
+ openingBalance: number;
221
+ ledgerEntriesSum: number;
222
+ totalAmount: number;
223
+ token?: string | undefined;
224
+ payoutInfo?: {
225
+ sort?: string | undefined;
226
+ address?: string | undefined;
227
+ name?: string | undefined;
228
+ label?: string | undefined;
229
+ city?: string | undefined;
230
+ account?: string | undefined;
231
+ routing?: string | undefined;
232
+ merchantEin?: string | undefined;
233
+ bankCountry?: string | undefined;
234
+ bank?: string | undefined;
235
+ swift?: string | undefined;
236
+ postal?: string | undefined;
237
+ wire?: boolean | undefined;
238
+ bankName?: string | undefined;
239
+ bankAddress?: string | undefined;
240
+ bankAddress2?: string | undefined;
241
+ iban?: string | undefined;
242
+ additionalInformation?: string | undefined;
243
+ accountHolderName?: string | undefined;
244
+ accountHolderAddress?: string | undefined;
245
+ accountHolderAddress2?: string | undefined;
246
+ accountHolderPostalCode?: string | undefined;
247
+ accountHolderCity?: string | undefined;
248
+ accountHolderCountry?: string | undefined;
249
+ } | undefined;
250
+ withholdings?: {
251
+ code: string;
252
+ amount: number;
253
+ label?: string | undefined;
254
+ description?: string | undefined;
255
+ bankCountry?: string | undefined;
256
+ notes?: string | undefined;
257
+ }[] | undefined;
258
+ ledgerEntries?: {
259
+ amount: number;
260
+ code?: number | undefined;
261
+ description?: string | undefined;
262
+ timestamp?: string | undefined;
263
+ invoiceId?: string | undefined;
264
+ invoiceData?: {
265
+ price: number;
266
+ currency?: string | undefined;
267
+ date?: string | undefined;
268
+ refundInfo?: {
269
+ currency: string;
270
+ supportRequest?: string | undefined;
271
+ amounts?: Record<string, number> | undefined;
272
+ refundRequestEid?: string | undefined;
273
+ } | undefined;
274
+ orderId?: string | undefined;
275
+ transactionCurrency?: string | undefined;
276
+ payoutPercentage?: Record<string, number> | undefined;
277
+ } | undefined;
278
+ }[] | undefined;
279
+ withholdingsSum?: number | undefined;
280
+ }, {
281
+ id: string | null;
282
+ status: string;
283
+ currency: string;
284
+ dateExecuted: string;
285
+ accountId: string | null;
286
+ dateCreated: string;
287
+ openingDate: string;
288
+ closingDate: string;
289
+ openingBalance: number;
290
+ ledgerEntriesSum: number;
291
+ totalAmount: number;
292
+ token?: string | undefined;
293
+ payoutInfo?: {
294
+ sort?: string | undefined;
295
+ address?: string | undefined;
296
+ name?: string | undefined;
297
+ label?: string | undefined;
298
+ city?: string | undefined;
299
+ account?: string | undefined;
300
+ routing?: string | undefined;
301
+ merchantEin?: string | undefined;
302
+ bankCountry?: string | undefined;
303
+ bank?: string | undefined;
304
+ swift?: string | undefined;
305
+ postal?: string | undefined;
306
+ wire?: boolean | undefined;
307
+ bankName?: string | undefined;
308
+ bankAddress?: string | undefined;
309
+ bankAddress2?: string | undefined;
310
+ iban?: string | undefined;
311
+ additionalInformation?: string | undefined;
312
+ accountHolderName?: string | undefined;
313
+ accountHolderAddress?: string | undefined;
314
+ accountHolderAddress2?: string | undefined;
315
+ accountHolderPostalCode?: string | undefined;
316
+ accountHolderCity?: string | undefined;
317
+ accountHolderCountry?: string | undefined;
318
+ } | undefined;
319
+ withholdings?: {
320
+ code: string;
321
+ amount: number;
322
+ label?: string | undefined;
323
+ description?: string | undefined;
324
+ bankCountry?: string | undefined;
325
+ notes?: string | undefined;
326
+ }[] | undefined;
327
+ ledgerEntries?: {
328
+ amount: number;
329
+ code?: number | undefined;
330
+ description?: string | undefined;
331
+ timestamp?: string | undefined;
332
+ invoiceId?: string | undefined;
333
+ invoiceData?: {
334
+ price: number;
335
+ currency?: string | undefined;
336
+ date?: string | undefined;
337
+ refundInfo?: {
338
+ currency: string;
339
+ supportRequest?: string | undefined;
340
+ amounts?: Record<string, number> | undefined;
341
+ refundRequestEid?: string | undefined;
342
+ } | undefined;
343
+ orderId?: string | undefined;
344
+ transactionCurrency?: string | undefined;
345
+ payoutPercentage?: Record<string, number> | undefined;
346
+ } | undefined;
347
+ }[] | undefined;
348
+ withholdingsSum?: number | undefined;
349
+ }>;
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.settlementInterfaceSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const WithHoldings_zod_1 = require("./WithHoldings.zod");
6
+ const PayoutInfo_zod_1 = require("./PayoutInfo.zod");
7
+ const SettlementLedgerEntry_zod_1 = require("./SettlementLedgerEntry.zod");
8
+ exports.settlementInterfaceSchema = zod_1.z.object({
9
+ payoutInfo: PayoutInfo_zod_1.payoutInfoInterfaceSchema.optional(),
10
+ withholdings: WithHoldings_zod_1.withHoldingsInterfaceSchema.array().optional(),
11
+ ledgerEntries: SettlementLedgerEntry_zod_1.settlementLedgerEntryInterfaceSchema.array().optional(),
12
+ id: zod_1.z.string().nullable(),
13
+ accountId: zod_1.z.string().nullable(),
14
+ currency: zod_1.z.string(),
15
+ status: zod_1.z.string(),
16
+ dateCreated: zod_1.z.string(),
17
+ dateExecuted: zod_1.z.string(),
18
+ openingDate: zod_1.z.string(),
19
+ closingDate: zod_1.z.string(),
20
+ openingBalance: zod_1.z.number(),
21
+ ledgerEntriesSum: zod_1.z.number(),
22
+ withholdingsSum: zod_1.z.number().optional(),
23
+ totalAmount: zod_1.z.number(),
24
+ token: zod_1.z.string().optional()
25
+ });
26
+ //# sourceMappingURL=Settlement.zod.js.map
@@ -0,0 +1,18 @@
1
+ import { InvoiceData } from './InvoiceData';
2
+ export interface SettlementLedgerEntryInterface {
3
+ amount: number;
4
+ code?: number;
5
+ invoiceId?: string;
6
+ timestamp?: string;
7
+ description?: string;
8
+ invoiceData?: InvoiceData;
9
+ }
10
+ export declare class SettlementLedgerEntry implements SettlementLedgerEntryInterface {
11
+ amount: number;
12
+ code?: number;
13
+ invoiceId?: string;
14
+ timestamp?: string;
15
+ description?: string;
16
+ invoiceData?: InvoiceData;
17
+ constructor();
18
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SettlementLedgerEntry = void 0;
4
+ class SettlementLedgerEntry {
5
+ constructor() { }
6
+ }
7
+ exports.SettlementLedgerEntry = SettlementLedgerEntry;
8
+ //# sourceMappingURL=SettlementLedgerEntry.js.map
@@ -0,0 +1,98 @@
1
+ import { z } from 'zod';
2
+ export declare const settlementLedgerEntryInterfaceSchema: z.ZodObject<{
3
+ invoiceData: z.ZodOptional<z.ZodObject<{
4
+ refundInfo: z.ZodOptional<z.ZodObject<{
5
+ supportRequest: z.ZodOptional<z.ZodString>;
6
+ currency: z.ZodString;
7
+ refundRequestEid: z.ZodOptional<z.ZodString>;
8
+ amounts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
9
+ }, "strip", z.ZodTypeAny, {
10
+ currency: string;
11
+ supportRequest?: string | undefined;
12
+ amounts?: Record<string, number> | undefined;
13
+ refundRequestEid?: string | undefined;
14
+ }, {
15
+ currency: string;
16
+ supportRequest?: string | undefined;
17
+ amounts?: Record<string, number> | undefined;
18
+ refundRequestEid?: string | undefined;
19
+ }>>;
20
+ price: z.ZodNumber;
21
+ orderId: z.ZodOptional<z.ZodString>;
22
+ date: z.ZodOptional<z.ZodString>;
23
+ currency: z.ZodOptional<z.ZodString>;
24
+ transactionCurrency: z.ZodOptional<z.ZodString>;
25
+ payoutPercentage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
26
+ }, "strip", z.ZodTypeAny, {
27
+ price: number;
28
+ currency?: string | undefined;
29
+ date?: string | undefined;
30
+ refundInfo?: {
31
+ currency: string;
32
+ supportRequest?: string | undefined;
33
+ amounts?: Record<string, number> | undefined;
34
+ refundRequestEid?: string | undefined;
35
+ } | undefined;
36
+ orderId?: string | undefined;
37
+ transactionCurrency?: string | undefined;
38
+ payoutPercentage?: Record<string, number> | undefined;
39
+ }, {
40
+ price: number;
41
+ currency?: string | undefined;
42
+ date?: string | undefined;
43
+ refundInfo?: {
44
+ currency: string;
45
+ supportRequest?: string | undefined;
46
+ amounts?: Record<string, number> | undefined;
47
+ refundRequestEid?: string | undefined;
48
+ } | undefined;
49
+ orderId?: string | undefined;
50
+ transactionCurrency?: string | undefined;
51
+ payoutPercentage?: Record<string, number> | undefined;
52
+ }>>;
53
+ amount: z.ZodNumber;
54
+ code: z.ZodOptional<z.ZodNumber>;
55
+ invoiceId: z.ZodOptional<z.ZodString>;
56
+ timestamp: z.ZodOptional<z.ZodString>;
57
+ description: z.ZodOptional<z.ZodString>;
58
+ }, "strip", z.ZodTypeAny, {
59
+ amount: number;
60
+ code?: number | undefined;
61
+ description?: string | undefined;
62
+ timestamp?: string | undefined;
63
+ invoiceId?: string | undefined;
64
+ invoiceData?: {
65
+ price: number;
66
+ currency?: string | undefined;
67
+ date?: string | undefined;
68
+ refundInfo?: {
69
+ currency: string;
70
+ supportRequest?: string | undefined;
71
+ amounts?: Record<string, number> | undefined;
72
+ refundRequestEid?: string | undefined;
73
+ } | undefined;
74
+ orderId?: string | undefined;
75
+ transactionCurrency?: string | undefined;
76
+ payoutPercentage?: Record<string, number> | undefined;
77
+ } | undefined;
78
+ }, {
79
+ amount: number;
80
+ code?: number | undefined;
81
+ description?: string | undefined;
82
+ timestamp?: string | undefined;
83
+ invoiceId?: string | undefined;
84
+ invoiceData?: {
85
+ price: number;
86
+ currency?: string | undefined;
87
+ date?: string | undefined;
88
+ refundInfo?: {
89
+ currency: string;
90
+ supportRequest?: string | undefined;
91
+ amounts?: Record<string, number> | undefined;
92
+ refundRequestEid?: string | undefined;
93
+ } | undefined;
94
+ orderId?: string | undefined;
95
+ transactionCurrency?: string | undefined;
96
+ payoutPercentage?: Record<string, number> | undefined;
97
+ } | undefined;
98
+ }>;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.settlementLedgerEntryInterfaceSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const InvoiceData_zod_1 = require("./InvoiceData.zod");
6
+ exports.settlementLedgerEntryInterfaceSchema = zod_1.z.object({
7
+ invoiceData: InvoiceData_zod_1.invoiceDataInterfaceSchema.optional(),
8
+ amount: zod_1.z.number(),
9
+ code: zod_1.z.number().optional(),
10
+ invoiceId: zod_1.z.string().optional(),
11
+ timestamp: zod_1.z.string().optional(),
12
+ description: zod_1.z.string().optional()
13
+ });
14
+ //# sourceMappingURL=SettlementLedgerEntry.zod.js.map
@@ -0,0 +1,17 @@
1
+ export interface WithHoldingsInterface {
2
+ amount: number;
3
+ code: string;
4
+ description?: string;
5
+ notes?: string;
6
+ label?: string;
7
+ bankCountry?: string;
8
+ }
9
+ export declare class WithHoldings implements WithHoldingsInterface {
10
+ amount: number;
11
+ code: string;
12
+ description?: string;
13
+ notes?: string;
14
+ label?: string;
15
+ bankCountry?: string;
16
+ constructor();
17
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WithHoldings = void 0;
4
+ class WithHoldings {
5
+ constructor() { }
6
+ }
7
+ exports.WithHoldings = WithHoldings;
8
+ //# sourceMappingURL=WithHoldings.js.map
@@ -0,0 +1,23 @@
1
+ import { z } from 'zod';
2
+ export declare const withHoldingsInterfaceSchema: z.ZodObject<{
3
+ amount: z.ZodNumber;
4
+ code: z.ZodString;
5
+ description: z.ZodOptional<z.ZodString>;
6
+ notes: z.ZodOptional<z.ZodString>;
7
+ label: z.ZodOptional<z.ZodString>;
8
+ bankCountry: z.ZodOptional<z.ZodString>;
9
+ }, "strip", z.ZodTypeAny, {
10
+ code: string;
11
+ amount: number;
12
+ label?: string | undefined;
13
+ description?: string | undefined;
14
+ bankCountry?: string | undefined;
15
+ notes?: string | undefined;
16
+ }, {
17
+ code: string;
18
+ amount: number;
19
+ label?: string | undefined;
20
+ description?: string | undefined;
21
+ bankCountry?: string | undefined;
22
+ notes?: string | undefined;
23
+ }>;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.withHoldingsInterfaceSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.withHoldingsInterfaceSchema = zod_1.z.object({
6
+ amount: zod_1.z.number(),
7
+ code: zod_1.z.string(),
8
+ description: zod_1.z.string().optional(),
9
+ notes: zod_1.z.string().optional(),
10
+ label: zod_1.z.string().optional(),
11
+ bankCountry: zod_1.z.string().optional()
12
+ });
13
+ //# sourceMappingURL=WithHoldings.zod.js.map
@@ -0,0 +1,26 @@
1
+ import { CurrencyQrInterface } from './CurrencyQr';
2
+ /**
3
+ * The type Currencies.
4
+ *
5
+ * @see <a href="https://bitpay.com/api/#rest-api-resources-wallets">Wallets</a>
6
+ */
7
+ export interface CurrenciesInterface {
8
+ code: string;
9
+ p2p?: boolean;
10
+ dappBrowser?: boolean;
11
+ payPro?: boolean;
12
+ qr?: CurrencyQrInterface;
13
+ image?: string;
14
+ withdrawalFee?: string;
15
+ walletConnect?: boolean;
16
+ }
17
+ export declare class Currencies implements CurrenciesInterface {
18
+ code: string;
19
+ p2p?: boolean;
20
+ dappBrowser?: boolean;
21
+ payPro?: boolean;
22
+ qr?: CurrencyQrInterface;
23
+ image?: string;
24
+ withdrawalFee?: string;
25
+ walletConnect?: boolean;
26
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Currencies = void 0;
4
+ class Currencies {
5
+ }
6
+ exports.Currencies = Currencies;
7
+ //# sourceMappingURL=Currencies.js.map
@@ -0,0 +1,44 @@
1
+ import { z } from 'zod';
2
+ export declare const currenciesInterfaceSchema: z.ZodObject<{
3
+ qr: z.ZodOptional<z.ZodObject<{
4
+ type: z.ZodString;
5
+ collapsed: z.ZodOptional<z.ZodString>;
6
+ }, "strip", z.ZodTypeAny, {
7
+ type: string;
8
+ collapsed?: string | undefined;
9
+ }, {
10
+ type: string;
11
+ collapsed?: string | undefined;
12
+ }>>;
13
+ code: z.ZodString;
14
+ p2p: z.ZodOptional<z.ZodBoolean>;
15
+ dappBrowser: z.ZodOptional<z.ZodBoolean>;
16
+ payPro: z.ZodOptional<z.ZodBoolean>;
17
+ image: z.ZodOptional<z.ZodString>;
18
+ withdrawalFee: z.ZodOptional<z.ZodString>;
19
+ walletConnect: z.ZodOptional<z.ZodBoolean>;
20
+ }, "strip", z.ZodTypeAny, {
21
+ code: string;
22
+ image?: string | undefined;
23
+ qr?: {
24
+ type: string;
25
+ collapsed?: string | undefined;
26
+ } | undefined;
27
+ p2p?: boolean | undefined;
28
+ dappBrowser?: boolean | undefined;
29
+ payPro?: boolean | undefined;
30
+ withdrawalFee?: string | undefined;
31
+ walletConnect?: boolean | undefined;
32
+ }, {
33
+ code: string;
34
+ image?: string | undefined;
35
+ qr?: {
36
+ type: string;
37
+ collapsed?: string | undefined;
38
+ } | undefined;
39
+ p2p?: boolean | undefined;
40
+ dappBrowser?: boolean | undefined;
41
+ payPro?: boolean | undefined;
42
+ withdrawalFee?: string | undefined;
43
+ walletConnect?: boolean | undefined;
44
+ }>;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.currenciesInterfaceSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const CurrencyQr_zod_1 = require("./CurrencyQr.zod");
6
+ exports.currenciesInterfaceSchema = zod_1.z.object({
7
+ qr: CurrencyQr_zod_1.currencyQrInterfaceSchema.optional(),
8
+ code: zod_1.z.string(),
9
+ p2p: zod_1.z.boolean().optional(),
10
+ dappBrowser: zod_1.z.boolean().optional(),
11
+ payPro: zod_1.z.boolean().optional(),
12
+ image: zod_1.z.string().optional(),
13
+ withdrawalFee: zod_1.z.string().optional(),
14
+ walletConnect: zod_1.z.boolean().optional()
15
+ });
16
+ //# sourceMappingURL=Currencies.zod.js.map