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,13 @@
1
+ /**
2
+ * The type Currency qr.
3
+ *
4
+ * @see <a href="https://bitpay.com/api/#rest-api-resources-wallets">Wallets</a>
5
+ */
6
+ export interface CurrencyQrInterface {
7
+ type: string;
8
+ collapsed?: string;
9
+ }
10
+ export declare class CurrencyQr implements CurrencyQrInterface {
11
+ type: string;
12
+ collapsed?: string;
13
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CurrencyQr = void 0;
4
+ class CurrencyQr {
5
+ }
6
+ exports.CurrencyQr = CurrencyQr;
7
+ //# sourceMappingURL=CurrencyQr.js.map
@@ -0,0 +1,11 @@
1
+ import { z } from 'zod';
2
+ export declare const currencyQrInterfaceSchema: z.ZodObject<{
3
+ type: z.ZodString;
4
+ collapsed: z.ZodOptional<z.ZodString>;
5
+ }, "strip", z.ZodTypeAny, {
6
+ type: string;
7
+ collapsed?: string | undefined;
8
+ }, {
9
+ type: string;
10
+ collapsed?: string | undefined;
11
+ }>;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.currencyQrInterfaceSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.currencyQrInterfaceSchema = zod_1.z.object({
6
+ type: zod_1.z.string(),
7
+ collapsed: zod_1.z.string().optional()
8
+ });
9
+ //# sourceMappingURL=CurrencyQr.zod.js.map
@@ -0,0 +1,22 @@
1
+ /**
2
+ * The type Wallet. Currencies are fiat currencies supported by BitPay.
3
+ *
4
+ * @see <a href="https://bitpay.com/api/#rest-api-resources-wallets">Wallets</a>
5
+ */
6
+ import { CurrenciesInterface } from './Currencies';
7
+ export interface WalletInterface {
8
+ key?: string;
9
+ displayName?: string;
10
+ avatar?: string;
11
+ payPro?: boolean;
12
+ currencies?: CurrenciesInterface[];
13
+ image?: string;
14
+ }
15
+ export declare class Wallet implements WalletInterface {
16
+ key?: string;
17
+ displayName?: string;
18
+ avatar?: string;
19
+ payPro?: boolean;
20
+ currencies?: CurrenciesInterface[];
21
+ image?: string;
22
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Wallet = void 0;
4
+ class Wallet {
5
+ }
6
+ exports.Wallet = Wallet;
7
+ //# sourceMappingURL=Wallet.js.map
@@ -0,0 +1,89 @@
1
+ import { z } from 'zod';
2
+ export declare const walletInterfaceSchema: z.ZodObject<{
3
+ currencies: z.ZodOptional<z.ZodArray<z.ZodObject<{
4
+ qr: z.ZodOptional<z.ZodObject<{
5
+ type: z.ZodString;
6
+ collapsed: z.ZodOptional<z.ZodString>;
7
+ }, "strip", z.ZodTypeAny, {
8
+ type: string;
9
+ collapsed?: string | undefined;
10
+ }, {
11
+ type: string;
12
+ collapsed?: string | undefined;
13
+ }>>;
14
+ code: z.ZodString;
15
+ p2p: z.ZodOptional<z.ZodBoolean>;
16
+ dappBrowser: z.ZodOptional<z.ZodBoolean>;
17
+ payPro: z.ZodOptional<z.ZodBoolean>;
18
+ image: z.ZodOptional<z.ZodString>;
19
+ withdrawalFee: z.ZodOptional<z.ZodString>;
20
+ walletConnect: z.ZodOptional<z.ZodBoolean>;
21
+ }, "strip", z.ZodTypeAny, {
22
+ code: string;
23
+ image?: string | undefined;
24
+ qr?: {
25
+ type: string;
26
+ collapsed?: string | undefined;
27
+ } | undefined;
28
+ p2p?: boolean | undefined;
29
+ dappBrowser?: boolean | undefined;
30
+ payPro?: boolean | undefined;
31
+ withdrawalFee?: string | undefined;
32
+ walletConnect?: boolean | undefined;
33
+ }, {
34
+ code: string;
35
+ image?: string | undefined;
36
+ qr?: {
37
+ type: string;
38
+ collapsed?: string | undefined;
39
+ } | undefined;
40
+ p2p?: boolean | undefined;
41
+ dappBrowser?: boolean | undefined;
42
+ payPro?: boolean | undefined;
43
+ withdrawalFee?: string | undefined;
44
+ walletConnect?: boolean | undefined;
45
+ }>, "many">>;
46
+ key: z.ZodOptional<z.ZodString>;
47
+ displayName: z.ZodOptional<z.ZodString>;
48
+ avatar: z.ZodOptional<z.ZodString>;
49
+ payPro: z.ZodOptional<z.ZodBoolean>;
50
+ image: z.ZodOptional<z.ZodString>;
51
+ }, "strip", z.ZodTypeAny, {
52
+ key?: string | undefined;
53
+ image?: string | undefined;
54
+ currencies?: {
55
+ code: string;
56
+ image?: string | undefined;
57
+ qr?: {
58
+ type: string;
59
+ collapsed?: string | undefined;
60
+ } | undefined;
61
+ p2p?: boolean | undefined;
62
+ dappBrowser?: boolean | undefined;
63
+ payPro?: boolean | undefined;
64
+ withdrawalFee?: string | undefined;
65
+ walletConnect?: boolean | undefined;
66
+ }[] | undefined;
67
+ payPro?: boolean | undefined;
68
+ displayName?: string | undefined;
69
+ avatar?: string | undefined;
70
+ }, {
71
+ key?: string | undefined;
72
+ image?: string | undefined;
73
+ currencies?: {
74
+ code: string;
75
+ image?: string | undefined;
76
+ qr?: {
77
+ type: string;
78
+ collapsed?: string | undefined;
79
+ } | undefined;
80
+ p2p?: boolean | undefined;
81
+ dappBrowser?: boolean | undefined;
82
+ payPro?: boolean | undefined;
83
+ withdrawalFee?: string | undefined;
84
+ walletConnect?: boolean | undefined;
85
+ }[] | undefined;
86
+ payPro?: boolean | undefined;
87
+ displayName?: string | undefined;
88
+ avatar?: string | undefined;
89
+ }>;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.walletInterfaceSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const Currencies_zod_1 = require("./Currencies.zod");
6
+ exports.walletInterfaceSchema = zod_1.z.object({
7
+ currencies: Currencies_zod_1.currenciesInterfaceSchema.array().optional(),
8
+ key: zod_1.z.string().optional(),
9
+ displayName: zod_1.z.string().optional(),
10
+ avatar: zod_1.z.string().optional(),
11
+ payPro: zod_1.z.boolean().optional(),
12
+ image: zod_1.z.string().optional()
13
+ });
14
+ //# sourceMappingURL=Wallet.zod.js.map
@@ -0,0 +1,35 @@
1
+ import { z } from 'zod';
2
+ export declare const invoiceWebhookBuyerFieldsInterfaceSchema: z.ZodObject<{
3
+ buyerName: z.ZodOptional<z.ZodString>;
4
+ buyerAddress1: z.ZodOptional<z.ZodString>;
5
+ buyerAddress2: z.ZodOptional<z.ZodString>;
6
+ buyerCity: z.ZodOptional<z.ZodString>;
7
+ buyerState: z.ZodOptional<z.ZodString>;
8
+ buyerZip: z.ZodOptional<z.ZodString>;
9
+ buyerCountry: z.ZodOptional<z.ZodString>;
10
+ buyerPhone: z.ZodOptional<z.ZodString>;
11
+ buyerNotify: z.ZodOptional<z.ZodBoolean>;
12
+ buyerEmail: z.ZodOptional<z.ZodString>;
13
+ }, "strip", z.ZodTypeAny, {
14
+ buyerName?: string | undefined;
15
+ buyerAddress1?: string | undefined;
16
+ buyerAddress2?: string | undefined;
17
+ buyerCity?: string | undefined;
18
+ buyerState?: string | undefined;
19
+ buyerZip?: string | undefined;
20
+ buyerCountry?: string | undefined;
21
+ buyerPhone?: string | undefined;
22
+ buyerNotify?: boolean | undefined;
23
+ buyerEmail?: string | undefined;
24
+ }, {
25
+ buyerName?: string | undefined;
26
+ buyerAddress1?: string | undefined;
27
+ buyerAddress2?: string | undefined;
28
+ buyerCity?: string | undefined;
29
+ buyerState?: string | undefined;
30
+ buyerZip?: string | undefined;
31
+ buyerCountry?: string | undefined;
32
+ buyerPhone?: string | undefined;
33
+ buyerNotify?: boolean | undefined;
34
+ buyerEmail?: string | undefined;
35
+ }>;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.invoiceWebhookBuyerFieldsInterfaceSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.invoiceWebhookBuyerFieldsInterfaceSchema = zod_1.z.object({
6
+ buyerName: zod_1.z.string().optional(),
7
+ buyerAddress1: zod_1.z.string().optional(),
8
+ buyerAddress2: zod_1.z.string().optional(),
9
+ buyerCity: zod_1.z.string().optional(),
10
+ buyerState: zod_1.z.string().optional(),
11
+ buyerZip: zod_1.z.string().optional(),
12
+ buyerCountry: zod_1.z.string().optional(),
13
+ buyerPhone: zod_1.z.string().optional(),
14
+ buyerNotify: zod_1.z.boolean().optional(),
15
+ buyerEmail: zod_1.z.string().optional()
16
+ });
17
+ //# sourceMappingURL=InvoiceBuyerFields.zod.js.map
@@ -0,0 +1,21 @@
1
+ import { InvoiceWebhookBuyerFieldsInterface } from './InvoiceWebhookBuyerFields';
2
+ export interface InvoiceWebhook {
3
+ id?: string;
4
+ url?: string;
5
+ posData?: string;
6
+ status?: string;
7
+ price?: string;
8
+ currency?: string;
9
+ invoiceTime?: string;
10
+ currencyTime?: string;
11
+ exceptionStatus?: string;
12
+ buyerFields?: InvoiceWebhookBuyerFieldsInterface;
13
+ paymentSubtotals?: Record<string, number>;
14
+ paymentTotals?: Record<string, number>;
15
+ exchangeRates?: Record<string, Record<string, number>>;
16
+ amountPaid?: number;
17
+ orderId?: string;
18
+ transactionCurrency?: string;
19
+ inInvoiceId?: string;
20
+ inPaymentRequest?: string;
21
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=InvoiceWebhook.js.map
@@ -0,0 +1,114 @@
1
+ import { z } from 'zod';
2
+ export declare const invoiceWebhookSchema: z.ZodObject<{
3
+ id: z.ZodOptional<z.ZodString>;
4
+ url: z.ZodOptional<z.ZodString>;
5
+ posData: z.ZodOptional<z.ZodString>;
6
+ status: z.ZodOptional<z.ZodString>;
7
+ price: z.ZodOptional<z.ZodString>;
8
+ currency: z.ZodOptional<z.ZodString>;
9
+ invoiceTime: z.ZodOptional<z.ZodString>;
10
+ currencyTime: z.ZodOptional<z.ZodString>;
11
+ exceptionStatus: z.ZodOptional<z.ZodString>;
12
+ buyerFields: z.ZodOptional<z.ZodObject<{
13
+ buyerName: z.ZodOptional<z.ZodString>;
14
+ buyerAddress1: z.ZodOptional<z.ZodString>;
15
+ buyerAddress2: z.ZodOptional<z.ZodString>;
16
+ buyerCity: z.ZodOptional<z.ZodString>;
17
+ buyerState: z.ZodOptional<z.ZodString>;
18
+ buyerZip: z.ZodOptional<z.ZodString>;
19
+ buyerCountry: z.ZodOptional<z.ZodString>;
20
+ buyerPhone: z.ZodOptional<z.ZodString>;
21
+ buyerNotify: z.ZodOptional<z.ZodBoolean>;
22
+ buyerEmail: z.ZodOptional<z.ZodString>;
23
+ }, "strip", z.ZodTypeAny, {
24
+ buyerName?: string | undefined;
25
+ buyerAddress1?: string | undefined;
26
+ buyerAddress2?: string | undefined;
27
+ buyerCity?: string | undefined;
28
+ buyerState?: string | undefined;
29
+ buyerZip?: string | undefined;
30
+ buyerCountry?: string | undefined;
31
+ buyerPhone?: string | undefined;
32
+ buyerNotify?: boolean | undefined;
33
+ buyerEmail?: string | undefined;
34
+ }, {
35
+ buyerName?: string | undefined;
36
+ buyerAddress1?: string | undefined;
37
+ buyerAddress2?: string | undefined;
38
+ buyerCity?: string | undefined;
39
+ buyerState?: string | undefined;
40
+ buyerZip?: string | undefined;
41
+ buyerCountry?: string | undefined;
42
+ buyerPhone?: string | undefined;
43
+ buyerNotify?: boolean | undefined;
44
+ buyerEmail?: string | undefined;
45
+ }>>;
46
+ paymentSubtotals: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNumber>>;
47
+ paymentTotals: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNumber>>;
48
+ exchangeRates: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>>;
49
+ amountPaid: z.ZodOptional<z.ZodNumber>;
50
+ orderId: z.ZodOptional<z.ZodString>;
51
+ transactionCurrency: z.ZodOptional<z.ZodString>;
52
+ inInvoiceId: z.ZodOptional<z.ZodString>;
53
+ inPaymentRequest: z.ZodOptional<z.ZodString>;
54
+ }, "strip", z.ZodTypeAny, {
55
+ exchangeRates: Record<string, Record<string, number>> | null;
56
+ paymentSubtotals: Record<string, number> | null;
57
+ paymentTotals: Record<string, number> | null;
58
+ id?: string | undefined;
59
+ url?: string | undefined;
60
+ status?: string | undefined;
61
+ currency?: string | undefined;
62
+ price?: string | undefined;
63
+ posData?: string | undefined;
64
+ orderId?: string | undefined;
65
+ invoiceTime?: string | undefined;
66
+ exceptionStatus?: string | undefined;
67
+ transactionCurrency?: string | undefined;
68
+ amountPaid?: number | undefined;
69
+ buyerFields?: {
70
+ buyerName?: string | undefined;
71
+ buyerAddress1?: string | undefined;
72
+ buyerAddress2?: string | undefined;
73
+ buyerCity?: string | undefined;
74
+ buyerState?: string | undefined;
75
+ buyerZip?: string | undefined;
76
+ buyerCountry?: string | undefined;
77
+ buyerPhone?: string | undefined;
78
+ buyerNotify?: boolean | undefined;
79
+ buyerEmail?: string | undefined;
80
+ } | undefined;
81
+ currencyTime?: string | undefined;
82
+ inInvoiceId?: string | undefined;
83
+ inPaymentRequest?: string | undefined;
84
+ }, {
85
+ exchangeRates: Record<string, Record<string, number>> | null;
86
+ paymentSubtotals: Record<string, number> | null;
87
+ paymentTotals: Record<string, number> | null;
88
+ id?: string | undefined;
89
+ url?: string | undefined;
90
+ status?: string | undefined;
91
+ currency?: string | undefined;
92
+ price?: string | undefined;
93
+ posData?: string | undefined;
94
+ orderId?: string | undefined;
95
+ invoiceTime?: string | undefined;
96
+ exceptionStatus?: string | undefined;
97
+ transactionCurrency?: string | undefined;
98
+ amountPaid?: number | undefined;
99
+ buyerFields?: {
100
+ buyerName?: string | undefined;
101
+ buyerAddress1?: string | undefined;
102
+ buyerAddress2?: string | undefined;
103
+ buyerCity?: string | undefined;
104
+ buyerState?: string | undefined;
105
+ buyerZip?: string | undefined;
106
+ buyerCountry?: string | undefined;
107
+ buyerPhone?: string | undefined;
108
+ buyerNotify?: boolean | undefined;
109
+ buyerEmail?: string | undefined;
110
+ } | undefined;
111
+ currencyTime?: string | undefined;
112
+ inInvoiceId?: string | undefined;
113
+ inPaymentRequest?: string | undefined;
114
+ }>;
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.invoiceWebhookSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const InvoiceBuyerFields_zod_1 = require("./InvoiceBuyerFields.zod");
6
+ exports.invoiceWebhookSchema = zod_1.z.object({
7
+ id: zod_1.z.string().optional(),
8
+ url: zod_1.z.string().optional(),
9
+ posData: zod_1.z.string().optional(),
10
+ status: zod_1.z.string().optional(),
11
+ price: zod_1.z.string().optional(),
12
+ currency: zod_1.z.string().optional(),
13
+ invoiceTime: zod_1.z.string().optional(),
14
+ currencyTime: zod_1.z.string().optional(),
15
+ exceptionStatus: zod_1.z.string().optional(),
16
+ buyerFields: InvoiceBuyerFields_zod_1.invoiceWebhookBuyerFieldsInterfaceSchema.optional(),
17
+ paymentSubtotals: zod_1.z.record(zod_1.z.number()).nullable(),
18
+ paymentTotals: zod_1.z.record(zod_1.z.number()).nullable(),
19
+ exchangeRates: zod_1.z.record(zod_1.z.record(zod_1.z.number())).nullable(),
20
+ amountPaid: zod_1.z.number().optional(),
21
+ orderId: zod_1.z.string().optional(),
22
+ transactionCurrency: zod_1.z.string().optional(),
23
+ inInvoiceId: zod_1.z.string().optional(),
24
+ inPaymentRequest: zod_1.z.string().optional()
25
+ });
26
+ //# sourceMappingURL=InvoiceWebhook.zod.js.map
@@ -0,0 +1,12 @@
1
+ export interface InvoiceWebhookBuyerFieldsInterface {
2
+ buyerName?: string;
3
+ buyerAddress1?: string;
4
+ buyerAddress2?: string;
5
+ buyerCity?: string;
6
+ buyerState?: string;
7
+ buyerZip?: string;
8
+ buyerCountry?: string;
9
+ buyerPhone?: string;
10
+ buyerNotify?: boolean;
11
+ buyerEmail?: string;
12
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=InvoiceWebhookBuyerFields.js.map
@@ -0,0 +1,22 @@
1
+ import { PayoutTransaction } from '../Payout/PayoutTransaction';
2
+ export interface PayoutWebhookInterface {
3
+ id?: string;
4
+ recipientId?: string;
5
+ shopperId?: string;
6
+ price?: number;
7
+ currency?: string;
8
+ ledgerCurrency?: string;
9
+ exchangeRates?: Record<string, Record<string, number>>;
10
+ email?: string;
11
+ reference?: string;
12
+ label?: string;
13
+ notificationUrl?: string;
14
+ notificationEmail?: string;
15
+ effectiveDate?: string;
16
+ requestDate?: string;
17
+ status?: string;
18
+ transactions?: PayoutTransaction[];
19
+ accountId?: string;
20
+ date?: string;
21
+ groupId?: string;
22
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=PayoutWebhook.js.map
@@ -0,0 +1,87 @@
1
+ import { z } from 'zod';
2
+ export declare const payoutWebhookSchema: z.ZodObject<{
3
+ id: z.ZodOptional<z.ZodString>;
4
+ recipientId: z.ZodOptional<z.ZodString>;
5
+ shopperId: z.ZodOptional<z.ZodString>;
6
+ price: z.ZodOptional<z.ZodNumber>;
7
+ currency: z.ZodOptional<z.ZodString>;
8
+ ledgerCurrency: z.ZodOptional<z.ZodString>;
9
+ exchangeRates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>>;
10
+ email: z.ZodOptional<z.ZodString>;
11
+ reference: z.ZodOptional<z.ZodString>;
12
+ label: z.ZodOptional<z.ZodString>;
13
+ notificationUrl: z.ZodOptional<z.ZodString>;
14
+ notificationEmail: z.ZodOptional<z.ZodString>;
15
+ effectiveDate: z.ZodOptional<z.ZodString>;
16
+ requestDate: z.ZodOptional<z.ZodString>;
17
+ status: z.ZodOptional<z.ZodString>;
18
+ transactions: z.ZodOptional<z.ZodArray<z.ZodObject<{
19
+ txid: z.ZodString;
20
+ amount: z.ZodNumber;
21
+ date: z.ZodString;
22
+ confirmations: z.ZodOptional<z.ZodNumber>;
23
+ }, "strip", z.ZodTypeAny, {
24
+ date: string;
25
+ amount: number;
26
+ txid: string;
27
+ confirmations?: number | undefined;
28
+ }, {
29
+ date: string;
30
+ amount: number;
31
+ txid: string;
32
+ confirmations?: number | undefined;
33
+ }>, "many">>;
34
+ accountId: z.ZodOptional<z.ZodString>;
35
+ date: z.ZodOptional<z.ZodString>;
36
+ groupId: z.ZodOptional<z.ZodString>;
37
+ }, "strip", z.ZodTypeAny, {
38
+ id?: string | undefined;
39
+ label?: string | undefined;
40
+ email?: string | undefined;
41
+ status?: string | undefined;
42
+ currency?: string | undefined;
43
+ date?: string | undefined;
44
+ price?: number | undefined;
45
+ transactions?: {
46
+ date: string;
47
+ amount: number;
48
+ txid: string;
49
+ confirmations?: number | undefined;
50
+ }[] | undefined;
51
+ notificationEmail?: string | undefined;
52
+ exchangeRates?: Record<string, Record<string, number>> | undefined;
53
+ requestDate?: string | undefined;
54
+ reference?: string | undefined;
55
+ effectiveDate?: string | undefined;
56
+ ledgerCurrency?: string | undefined;
57
+ accountId?: string | undefined;
58
+ recipientId?: string | undefined;
59
+ shopperId?: string | undefined;
60
+ groupId?: string | undefined;
61
+ notificationUrl?: string | undefined;
62
+ }, {
63
+ id?: string | undefined;
64
+ label?: string | undefined;
65
+ email?: string | undefined;
66
+ status?: string | undefined;
67
+ currency?: string | undefined;
68
+ date?: string | undefined;
69
+ price?: number | undefined;
70
+ transactions?: {
71
+ date: string;
72
+ amount: number;
73
+ txid: string;
74
+ confirmations?: number | undefined;
75
+ }[] | undefined;
76
+ notificationEmail?: string | undefined;
77
+ exchangeRates?: Record<string, Record<string, number>> | undefined;
78
+ requestDate?: string | undefined;
79
+ reference?: string | undefined;
80
+ effectiveDate?: string | undefined;
81
+ ledgerCurrency?: string | undefined;
82
+ accountId?: string | undefined;
83
+ recipientId?: string | undefined;
84
+ shopperId?: string | undefined;
85
+ groupId?: string | undefined;
86
+ notificationUrl?: string | undefined;
87
+ }>;
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.payoutWebhookSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const PayoutTransaction_zod_1 = require("../Payout/PayoutTransaction.zod");
6
+ exports.payoutWebhookSchema = zod_1.z.object({
7
+ id: zod_1.z.string().optional(),
8
+ recipientId: zod_1.z.string().optional(),
9
+ shopperId: zod_1.z.string().optional(),
10
+ price: zod_1.z.number().optional(),
11
+ currency: zod_1.z.string().optional(),
12
+ ledgerCurrency: zod_1.z.string().optional(),
13
+ exchangeRates: zod_1.z.record(zod_1.z.record(zod_1.z.number())).optional(),
14
+ email: zod_1.z.string().optional(),
15
+ reference: zod_1.z.string().optional(),
16
+ label: zod_1.z.string().optional(),
17
+ notificationUrl: zod_1.z.string().optional(),
18
+ notificationEmail: zod_1.z.string().optional(),
19
+ effectiveDate: zod_1.z.string().optional(),
20
+ requestDate: zod_1.z.string().optional(),
21
+ status: zod_1.z.string().optional(),
22
+ transactions: zod_1.z.array(PayoutTransaction_zod_1.payoutTransactionInterfaceSchema).optional(),
23
+ accountId: zod_1.z.string().optional(),
24
+ date: zod_1.z.string().optional(),
25
+ groupId: zod_1.z.string().optional()
26
+ });
27
+ //# sourceMappingURL=PayoutWebhook.zod.js.map
@@ -0,0 +1,21 @@
1
+ export interface RefundWebhook {
2
+ amount?: number;
3
+ buyerPaysRefundFee?: boolean;
4
+ currency?: string;
5
+ id?: string;
6
+ immediate?: boolean;
7
+ invoice?: string;
8
+ lastRefundNotification?: string;
9
+ refundFee?: number;
10
+ requestDate?: string;
11
+ status?: string;
12
+ supportRequest?: string;
13
+ reference?: string;
14
+ guid?: string;
15
+ refundAddress?: string;
16
+ type?: string;
17
+ txid?: string;
18
+ transactionCurrency?: string;
19
+ transactionAmount?: number;
20
+ transactionRefundFee?: number;
21
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=RefundWebhook.js.map
@@ -0,0 +1,62 @@
1
+ import { z } from 'zod';
2
+ export declare const refundWebhookSchema: z.ZodObject<{
3
+ amount: z.ZodNullable<z.ZodNumber>;
4
+ buyerPaysRefundFee: z.ZodNullable<z.ZodBoolean>;
5
+ currency: z.ZodNullable<z.ZodString>;
6
+ id: z.ZodNullable<z.ZodString>;
7
+ immediate: z.ZodNullable<z.ZodBoolean>;
8
+ invoice: z.ZodNullable<z.ZodString>;
9
+ lastRefundNotification: z.ZodNullable<z.ZodString>;
10
+ refundFee: z.ZodNullable<z.ZodNumber>;
11
+ requestDate: z.ZodNullable<z.ZodString>;
12
+ status: z.ZodNullable<z.ZodString>;
13
+ supportRequest: z.ZodNullable<z.ZodString>;
14
+ reference: z.ZodNullable<z.ZodString>;
15
+ guid: z.ZodNullable<z.ZodString>;
16
+ refundAddress: z.ZodNullable<z.ZodString>;
17
+ type: z.ZodNullable<z.ZodString>;
18
+ txid: z.ZodNullable<z.ZodString>;
19
+ transactionCurrency: z.ZodNullable<z.ZodString>;
20
+ transactionAmount: z.ZodNullable<z.ZodNumber>;
21
+ transactionRefundFee: z.ZodNullable<z.ZodNumber>;
22
+ }, "strip", z.ZodTypeAny, {
23
+ type: string | null;
24
+ id: string | null;
25
+ status: string | null;
26
+ currency: string | null;
27
+ guid: string | null;
28
+ amount: number | null;
29
+ txid: string | null;
30
+ supportRequest: string | null;
31
+ transactionCurrency: string | null;
32
+ refundAddress: string | null;
33
+ requestDate: string | null;
34
+ invoice: string | null;
35
+ reference: string | null;
36
+ transactionAmount: number | null;
37
+ transactionRefundFee: number | null;
38
+ lastRefundNotification: string | null;
39
+ refundFee: number | null;
40
+ immediate: boolean | null;
41
+ buyerPaysRefundFee: boolean | null;
42
+ }, {
43
+ type: string | null;
44
+ id: string | null;
45
+ status: string | null;
46
+ currency: string | null;
47
+ guid: string | null;
48
+ amount: number | null;
49
+ txid: string | null;
50
+ supportRequest: string | null;
51
+ transactionCurrency: string | null;
52
+ refundAddress: string | null;
53
+ requestDate: string | null;
54
+ invoice: string | null;
55
+ reference: string | null;
56
+ transactionAmount: number | null;
57
+ transactionRefundFee: number | null;
58
+ lastRefundNotification: string | null;
59
+ refundFee: number | null;
60
+ immediate: boolean | null;
61
+ buyerPaysRefundFee: boolean | null;
62
+ }>;