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,26 @@
1
+ import { z } from 'zod';
2
+ export declare const invoiceBuyerProvidedInfoSchema: z.ZodObject<{
3
+ name: z.ZodOptional<z.ZodString>;
4
+ phoneNumber: z.ZodOptional<z.ZodString>;
5
+ sms: z.ZodOptional<z.ZodString>;
6
+ smsVerified: z.ZodOptional<z.ZodBoolean>;
7
+ selectedTransactionCurrency: z.ZodOptional<z.ZodString>;
8
+ emailAddress: z.ZodOptional<z.ZodString>;
9
+ selectedWallet: z.ZodOptional<z.ZodString>;
10
+ }, "strip", z.ZodTypeAny, {
11
+ name?: string | undefined;
12
+ phoneNumber?: string | undefined;
13
+ sms?: string | undefined;
14
+ smsVerified?: boolean | undefined;
15
+ selectedTransactionCurrency?: string | undefined;
16
+ emailAddress?: string | undefined;
17
+ selectedWallet?: string | undefined;
18
+ }, {
19
+ name?: string | undefined;
20
+ phoneNumber?: string | undefined;
21
+ sms?: string | undefined;
22
+ smsVerified?: boolean | undefined;
23
+ selectedTransactionCurrency?: string | undefined;
24
+ emailAddress?: string | undefined;
25
+ selectedWallet?: string | undefined;
26
+ }>;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.invoiceBuyerProvidedInfoSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.invoiceBuyerProvidedInfoSchema = zod_1.z.object({
6
+ name: zod_1.z.string().optional(),
7
+ phoneNumber: zod_1.z.string().optional(),
8
+ sms: zod_1.z.string().optional(),
9
+ smsVerified: zod_1.z.boolean().optional(),
10
+ selectedTransactionCurrency: zod_1.z.string().optional(),
11
+ emailAddress: zod_1.z.string().optional(),
12
+ selectedWallet: zod_1.z.string().optional()
13
+ });
14
+ //# sourceMappingURL=InvoiceBuyerProvidedInfo.zod.js.map
@@ -0,0 +1,12 @@
1
+ export interface InvoiceEventTokenInterface {
2
+ url: string | null;
3
+ token: string | null;
4
+ events?: string[];
5
+ actions?: string[];
6
+ }
7
+ export declare class InvoiceEventToken implements InvoiceEventTokenInterface {
8
+ url: string | null;
9
+ actions?: string[];
10
+ events?: string[];
11
+ token: string | null;
12
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InvoiceEventToken = void 0;
4
+ class InvoiceEventToken {
5
+ }
6
+ exports.InvoiceEventToken = InvoiceEventToken;
7
+ //# sourceMappingURL=InvoiceEventToken.js.map
@@ -0,0 +1,17 @@
1
+ import { z } from 'zod';
2
+ export declare const invoiceEventTokenInterfaceSchema: z.ZodObject<{
3
+ url: z.ZodNullable<z.ZodString>;
4
+ token: z.ZodNullable<z.ZodString>;
5
+ events: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6
+ actions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
7
+ }, "strip", z.ZodTypeAny, {
8
+ url: string | null;
9
+ token: string | null;
10
+ events?: string[] | undefined;
11
+ actions?: string[] | undefined;
12
+ }, {
13
+ url: string | null;
14
+ token: string | null;
15
+ events?: string[] | undefined;
16
+ actions?: string[] | undefined;
17
+ }>;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.invoiceEventTokenInterfaceSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.invoiceEventTokenInterfaceSchema = zod_1.z.object({
6
+ url: zod_1.z.string().nullable(),
7
+ token: zod_1.z.string().nullable(),
8
+ events: zod_1.z.array(zod_1.z.string()).optional(),
9
+ actions: zod_1.z.array(zod_1.z.string()).optional()
10
+ });
11
+ //# sourceMappingURL=InvoiceEventToken.zod.js.map
@@ -0,0 +1,6 @@
1
+ export interface InvoiceRefundAddresses {
2
+ type: string;
3
+ date: string;
4
+ tag?: number;
5
+ email?: string;
6
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=InvoiceRefundAddresses.js.map
@@ -0,0 +1,17 @@
1
+ import { z } from 'zod';
2
+ export declare const invoiceRefundAddressesSchema: z.ZodObject<{
3
+ type: z.ZodString;
4
+ date: z.ZodString;
5
+ tag: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
6
+ email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
7
+ }, "strip", z.ZodTypeAny, {
8
+ type: string;
9
+ date: string;
10
+ email?: string | null | undefined;
11
+ tag?: number | null | undefined;
12
+ }, {
13
+ type: string;
14
+ date: string;
15
+ email?: string | null | undefined;
16
+ tag?: number | null | undefined;
17
+ }>;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.invoiceRefundAddressesSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.invoiceRefundAddressesSchema = zod_1.z.object({
6
+ type: zod_1.z.string(),
7
+ date: zod_1.z.string(),
8
+ tag: zod_1.z.number().optional().nullable(),
9
+ email: zod_1.z.string().optional().nullable()
10
+ });
11
+ //# sourceMappingURL=InvoiceRefundAddresses.zod.js.map
@@ -0,0 +1,6 @@
1
+ export declare const New = "new";
2
+ export declare const Paid = "paid";
3
+ export declare const Confirmed = "confirmed";
4
+ export declare const Complete = "complete";
5
+ export declare const Expired = "expired";
6
+ export declare const Invalid = "invalid";
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Invalid = exports.Expired = exports.Complete = exports.Confirmed = exports.Paid = exports.New = void 0;
4
+ exports.New = 'new';
5
+ exports.Paid = 'paid';
6
+ exports.Confirmed = 'confirmed';
7
+ exports.Complete = 'complete';
8
+ exports.Expired = 'expired';
9
+ exports.Invalid = 'invalid';
10
+ //# sourceMappingURL=InvoiceStatus.js.map
@@ -0,0 +1,9 @@
1
+ export interface InvoiceTransaction {
2
+ amount: number;
3
+ confirmations?: number;
4
+ time?: string;
5
+ receivedTime?: string;
6
+ txid?: string;
7
+ exRates?: Record<string, number>;
8
+ outputIndex?: number;
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=InvoiceTransaction.js.map
@@ -0,0 +1,26 @@
1
+ import { z } from 'zod';
2
+ export declare const invoiceTransactionSchema: z.ZodObject<{
3
+ amount: z.ZodNumber;
4
+ confirmations: z.ZodOptional<z.ZodNumber>;
5
+ time: z.ZodOptional<z.ZodString>;
6
+ receivedTime: z.ZodOptional<z.ZodString>;
7
+ txid: z.ZodOptional<z.ZodString>;
8
+ exRates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
9
+ outputIndex: z.ZodOptional<z.ZodNumber>;
10
+ }, "strip", z.ZodTypeAny, {
11
+ amount: number;
12
+ time?: string | undefined;
13
+ confirmations?: number | undefined;
14
+ receivedTime?: string | undefined;
15
+ txid?: string | undefined;
16
+ exRates?: Record<string, number> | undefined;
17
+ outputIndex?: number | undefined;
18
+ }, {
19
+ amount: number;
20
+ time?: string | undefined;
21
+ confirmations?: number | undefined;
22
+ receivedTime?: string | undefined;
23
+ txid?: string | undefined;
24
+ exRates?: Record<string, number> | undefined;
25
+ outputIndex?: number | undefined;
26
+ }>;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.invoiceTransactionSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.invoiceTransactionSchema = zod_1.z.object({
6
+ amount: zod_1.z.number(),
7
+ confirmations: zod_1.z.number().optional(),
8
+ time: zod_1.z.string().optional(),
9
+ receivedTime: zod_1.z.string().optional(),
10
+ txid: zod_1.z.string().optional(),
11
+ exRates: zod_1.z.record(zod_1.z.string(), zod_1.z.number()).optional(),
12
+ outputIndex: zod_1.z.number().optional()
13
+ });
14
+ //# sourceMappingURL=InvoiceTransaction.zod.js.map
@@ -0,0 +1,4 @@
1
+ export interface InvoiceUniversalCodes {
2
+ paymentString?: string;
3
+ verificationLink?: string;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=InvoiceUniversalCodes.js.map
@@ -0,0 +1,11 @@
1
+ import { z } from 'zod';
2
+ export declare const invoiceUniversalCodesSchema: z.ZodObject<{
3
+ paymentString: z.ZodOptional<z.ZodString>;
4
+ verificationLink: z.ZodOptional<z.ZodString>;
5
+ }, "strip", z.ZodTypeAny, {
6
+ paymentString?: string | undefined;
7
+ verificationLink?: string | undefined;
8
+ }, {
9
+ paymentString?: string | undefined;
10
+ verificationLink?: string | undefined;
11
+ }>;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.invoiceUniversalCodesSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.invoiceUniversalCodesSchema = zod_1.z.object({
6
+ paymentString: zod_1.z.string().optional(),
7
+ verificationLink: zod_1.z.string().optional()
8
+ });
9
+ //# sourceMappingURL=InvoiceUniversalCodes.zod.js.map
@@ -0,0 +1,5 @@
1
+ export interface MinerFeesItem {
2
+ satoshisPerByte?: number;
3
+ totalFee?: number;
4
+ fiatAmount?: number;
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=MinerFeesItem.js.map
@@ -0,0 +1,14 @@
1
+ import { z } from 'zod';
2
+ export declare const minerFeesItemSchema: z.ZodObject<{
3
+ satoshisPerByte: z.ZodOptional<z.ZodNumber>;
4
+ totalFee: z.ZodOptional<z.ZodNumber>;
5
+ fiatAmount: z.ZodOptional<z.ZodNumber>;
6
+ }, "strip", z.ZodTypeAny, {
7
+ satoshisPerByte?: number | undefined;
8
+ totalFee?: number | undefined;
9
+ fiatAmount?: number | undefined;
10
+ }, {
11
+ satoshisPerByte?: number | undefined;
12
+ totalFee?: number | undefined;
13
+ fiatAmount?: number | undefined;
14
+ }>;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.minerFeesItemSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.minerFeesItemSchema = zod_1.z.object({
6
+ satoshisPerByte: zod_1.z.number().optional(),
7
+ totalFee: zod_1.z.number().optional(),
8
+ fiatAmount: zod_1.z.number().optional()
9
+ });
10
+ //# sourceMappingURL=MinerFeesItem.zod.js.map
@@ -0,0 +1,54 @@
1
+ import { RefundParams } from './RefundParams';
2
+ export interface RefundInterface {
3
+ amount: number;
4
+ currency: string;
5
+ guid?: string;
6
+ refundEmail?: string;
7
+ token?: string;
8
+ id: string;
9
+ requestDate: string;
10
+ status: string;
11
+ invoice: string;
12
+ supportRequest?: string;
13
+ refundAddress?: string;
14
+ txid?: string;
15
+ type?: string;
16
+ reference?: string;
17
+ transactionCurrency: string;
18
+ transactionAmount: number;
19
+ transactionRefundFee: number;
20
+ lastRefundNotification?: string;
21
+ notificationURL?: string;
22
+ refundFee: number;
23
+ immediate: boolean;
24
+ buyerPaysRefundFee: boolean;
25
+ preview?: boolean;
26
+ params?: RefundParams;
27
+ }
28
+ export declare class Refund implements RefundInterface {
29
+ amount: number;
30
+ currency: string;
31
+ guid?: string;
32
+ id: string;
33
+ params?: RefundParams;
34
+ refundEmail?: string;
35
+ requestDate: string;
36
+ status: string;
37
+ token?: string;
38
+ invoice: string;
39
+ supportRequest?: string;
40
+ refundAddress?: string;
41
+ txid?: string;
42
+ type?: string;
43
+ reference?: string;
44
+ transactionCurrency: string;
45
+ transactionAmount: number;
46
+ transactionRefundFee: number;
47
+ lastRefundNotification?: string;
48
+ notificationURL?: string;
49
+ refundFee: number;
50
+ immediate: boolean;
51
+ buyerPaysRefundFee: boolean;
52
+ preview?: boolean;
53
+ constructor(amount: number, invoiceId: string, token: string);
54
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Refund = void 0;
4
+ class Refund {
5
+ constructor(amount, invoiceId, token) {
6
+ this.amount = amount;
7
+ this.invoice = invoiceId;
8
+ this.token = token;
9
+ }
10
+ }
11
+ exports.Refund = Refund;
12
+ //# sourceMappingURL=Refund.js.map
@@ -0,0 +1,122 @@
1
+ import { z } from 'zod';
2
+ export declare const refundInterfaceSchema: z.ZodObject<{
3
+ params: z.ZodOptional<z.ZodObject<{
4
+ requesterType: z.ZodOptional<z.ZodString>;
5
+ requesterEmail: z.ZodOptional<z.ZodString>;
6
+ amount: z.ZodOptional<z.ZodNumber>;
7
+ currency: z.ZodOptional<z.ZodString>;
8
+ email: z.ZodOptional<z.ZodString>;
9
+ purchaserNotifyEmail: z.ZodOptional<z.ZodString>;
10
+ refundAddress: z.ZodOptional<z.ZodString>;
11
+ supportRequestEid: z.ZodOptional<z.ZodString>;
12
+ }, "strip", z.ZodTypeAny, {
13
+ email?: string | undefined;
14
+ currency?: string | undefined;
15
+ amount?: number | undefined;
16
+ requesterType?: string | undefined;
17
+ requesterEmail?: string | undefined;
18
+ purchaserNotifyEmail?: string | undefined;
19
+ refundAddress?: string | undefined;
20
+ supportRequestEid?: string | undefined;
21
+ }, {
22
+ email?: string | undefined;
23
+ currency?: string | undefined;
24
+ amount?: number | undefined;
25
+ requesterType?: string | undefined;
26
+ requesterEmail?: string | undefined;
27
+ purchaserNotifyEmail?: string | undefined;
28
+ refundAddress?: string | undefined;
29
+ supportRequestEid?: string | undefined;
30
+ }>>;
31
+ guid: z.ZodOptional<z.ZodString>;
32
+ refundEmail: z.ZodOptional<z.ZodString>;
33
+ amount: z.ZodNumber;
34
+ currency: z.ZodString;
35
+ token: z.ZodOptional<z.ZodString>;
36
+ id: z.ZodString;
37
+ requestDate: z.ZodString;
38
+ status: z.ZodString;
39
+ invoice: z.ZodString;
40
+ supportRequest: z.ZodOptional<z.ZodString>;
41
+ refundAddress: z.ZodOptional<z.ZodString>;
42
+ txid: z.ZodOptional<z.ZodString>;
43
+ type: z.ZodOptional<z.ZodString>;
44
+ reference: z.ZodOptional<z.ZodString>;
45
+ transactionCurrency: z.ZodString;
46
+ transactionAmount: z.ZodNumber;
47
+ transactionRefundFee: z.ZodNumber;
48
+ lastRefundNotification: z.ZodOptional<z.ZodString>;
49
+ notificationURL: z.ZodOptional<z.ZodString>;
50
+ refundFee: z.ZodNumber;
51
+ immediate: z.ZodBoolean;
52
+ buyerPaysRefundFee: z.ZodBoolean;
53
+ preview: z.ZodOptional<z.ZodBoolean>;
54
+ }, "strip", z.ZodTypeAny, {
55
+ id: string;
56
+ status: string;
57
+ currency: string;
58
+ amount: number;
59
+ transactionCurrency: string;
60
+ requestDate: string;
61
+ invoice: string;
62
+ transactionAmount: number;
63
+ transactionRefundFee: number;
64
+ refundFee: number;
65
+ immediate: boolean;
66
+ buyerPaysRefundFee: boolean;
67
+ type?: string | undefined;
68
+ token?: string | undefined;
69
+ guid?: string | undefined;
70
+ params?: {
71
+ email?: string | undefined;
72
+ currency?: string | undefined;
73
+ amount?: number | undefined;
74
+ requesterType?: string | undefined;
75
+ requesterEmail?: string | undefined;
76
+ purchaserNotifyEmail?: string | undefined;
77
+ refundAddress?: string | undefined;
78
+ supportRequestEid?: string | undefined;
79
+ } | undefined;
80
+ txid?: string | undefined;
81
+ supportRequest?: string | undefined;
82
+ notificationURL?: string | undefined;
83
+ refundAddress?: string | undefined;
84
+ refundEmail?: string | undefined;
85
+ reference?: string | undefined;
86
+ lastRefundNotification?: string | undefined;
87
+ preview?: boolean | undefined;
88
+ }, {
89
+ id: string;
90
+ status: string;
91
+ currency: string;
92
+ amount: number;
93
+ transactionCurrency: string;
94
+ requestDate: string;
95
+ invoice: string;
96
+ transactionAmount: number;
97
+ transactionRefundFee: number;
98
+ refundFee: number;
99
+ immediate: boolean;
100
+ buyerPaysRefundFee: boolean;
101
+ type?: string | undefined;
102
+ token?: string | undefined;
103
+ guid?: string | undefined;
104
+ params?: {
105
+ email?: string | undefined;
106
+ currency?: string | undefined;
107
+ amount?: number | undefined;
108
+ requesterType?: string | undefined;
109
+ requesterEmail?: string | undefined;
110
+ purchaserNotifyEmail?: string | undefined;
111
+ refundAddress?: string | undefined;
112
+ supportRequestEid?: string | undefined;
113
+ } | undefined;
114
+ txid?: string | undefined;
115
+ supportRequest?: string | undefined;
116
+ notificationURL?: string | undefined;
117
+ refundAddress?: string | undefined;
118
+ refundEmail?: string | undefined;
119
+ reference?: string | undefined;
120
+ lastRefundNotification?: string | undefined;
121
+ preview?: boolean | undefined;
122
+ }>;
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.refundInterfaceSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const RefundParams_zod_1 = require("./RefundParams.zod");
6
+ exports.refundInterfaceSchema = zod_1.z.object({
7
+ params: RefundParams_zod_1.refundParamsSchema.optional(),
8
+ guid: zod_1.z.string().optional(),
9
+ refundEmail: zod_1.z.string().optional(),
10
+ amount: zod_1.z.number(),
11
+ currency: zod_1.z.string(),
12
+ token: zod_1.z.string().optional(),
13
+ id: zod_1.z.string(),
14
+ requestDate: zod_1.z.string(),
15
+ status: zod_1.z.string(),
16
+ invoice: zod_1.z.string(),
17
+ supportRequest: zod_1.z.string().optional(),
18
+ refundAddress: zod_1.z.string().optional(),
19
+ txid: zod_1.z.string().optional(),
20
+ type: zod_1.z.string().optional(),
21
+ reference: zod_1.z.string().optional(),
22
+ transactionCurrency: zod_1.z.string(),
23
+ transactionAmount: zod_1.z.number(),
24
+ transactionRefundFee: zod_1.z.number(),
25
+ lastRefundNotification: zod_1.z.string().optional(),
26
+ notificationURL: zod_1.z.string().optional(),
27
+ refundFee: zod_1.z.number(),
28
+ immediate: zod_1.z.boolean(),
29
+ buyerPaysRefundFee: zod_1.z.boolean(),
30
+ preview: zod_1.z.boolean().optional()
31
+ });
32
+ //# sourceMappingURL=Refund.zod.js.map
@@ -0,0 +1,5 @@
1
+ export interface RefundInfo {
2
+ supportRequest: string;
3
+ currency: string;
4
+ amounts: Record<string, number>;
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=RefundInfo.js.map
@@ -0,0 +1,14 @@
1
+ import { z } from 'zod';
2
+ export declare const refundInfoSchema: z.ZodObject<{
3
+ supportRequest: z.ZodString;
4
+ currency: z.ZodString;
5
+ amounts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
6
+ }, "strip", z.ZodTypeAny, {
7
+ currency: string;
8
+ supportRequest: string;
9
+ amounts?: Record<string, number> | undefined;
10
+ }, {
11
+ currency: string;
12
+ supportRequest: string;
13
+ amounts?: Record<string, number> | undefined;
14
+ }>;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.refundInfoSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.refundInfoSchema = zod_1.z.object({
6
+ supportRequest: zod_1.z.string(),
7
+ currency: zod_1.z.string(),
8
+ amounts: zod_1.z.record(zod_1.z.number()).optional()
9
+ });
10
+ //# sourceMappingURL=RefundInfo.zod.js.map
@@ -0,0 +1,10 @@
1
+ export interface RefundParams {
2
+ requesterType?: string;
3
+ requesterEmail?: string;
4
+ amount?: number;
5
+ currency?: string;
6
+ email?: string;
7
+ purchaserNotifyEmail?: string;
8
+ refundAddress?: string;
9
+ supportRequestEid?: string;
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=RefundParams.js.map
@@ -0,0 +1,29 @@
1
+ import { z } from 'zod';
2
+ export declare const refundParamsSchema: z.ZodObject<{
3
+ requesterType: z.ZodOptional<z.ZodString>;
4
+ requesterEmail: z.ZodOptional<z.ZodString>;
5
+ amount: z.ZodOptional<z.ZodNumber>;
6
+ currency: z.ZodOptional<z.ZodString>;
7
+ email: z.ZodOptional<z.ZodString>;
8
+ purchaserNotifyEmail: z.ZodOptional<z.ZodString>;
9
+ refundAddress: z.ZodOptional<z.ZodString>;
10
+ supportRequestEid: z.ZodOptional<z.ZodString>;
11
+ }, "strip", z.ZodTypeAny, {
12
+ email?: string | undefined;
13
+ currency?: string | undefined;
14
+ amount?: number | undefined;
15
+ requesterType?: string | undefined;
16
+ requesterEmail?: string | undefined;
17
+ purchaserNotifyEmail?: string | undefined;
18
+ refundAddress?: string | undefined;
19
+ supportRequestEid?: string | undefined;
20
+ }, {
21
+ email?: string | undefined;
22
+ currency?: string | undefined;
23
+ amount?: number | undefined;
24
+ requesterType?: string | undefined;
25
+ requesterEmail?: string | undefined;
26
+ purchaserNotifyEmail?: string | undefined;
27
+ refundAddress?: string | undefined;
28
+ supportRequestEid?: string | undefined;
29
+ }>;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.refundParamsSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.refundParamsSchema = zod_1.z.object({
6
+ requesterType: zod_1.z.string().optional(),
7
+ requesterEmail: zod_1.z.string().optional(),
8
+ amount: zod_1.z.number().optional(),
9
+ currency: zod_1.z.string().optional(),
10
+ email: zod_1.z.string().optional(),
11
+ purchaserNotifyEmail: zod_1.z.string().optional(),
12
+ refundAddress: zod_1.z.string().optional(),
13
+ supportRequestEid: zod_1.z.string().optional()
14
+ });
15
+ //# sourceMappingURL=RefundParams.zod.js.map
@@ -0,0 +1,3 @@
1
+ export declare const Pending = "pending";
2
+ export declare const Success = "success";
3
+ export declare const Failure = "failure";
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Failure = exports.Success = exports.Pending = void 0;
4
+ exports.Pending = 'pending';
5
+ exports.Success = 'success';
6
+ exports.Failure = 'failure';
7
+ //# sourceMappingURL=RefundStatus.js.map
@@ -0,0 +1,3 @@
1
+ export interface Shopper {
2
+ user?: string;
3
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Shopper.js.map
@@ -0,0 +1,8 @@
1
+ import { z } from 'zod';
2
+ export declare const shopperSchema: z.ZodObject<{
3
+ user: z.ZodOptional<z.ZodString>;
4
+ }, "strip", z.ZodTypeAny, {
5
+ user?: string | undefined;
6
+ }, {
7
+ user?: string | undefined;
8
+ }>;