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,147 @@
1
+ import { Buyer } from './Buyer';
2
+ import { InvoiceBuyerProvidedInfo } from './InvoiceBuyerProvidedInfo';
3
+ import { InvoiceTransaction } from './InvoiceTransaction';
4
+ import { Shopper } from './Shopper';
5
+ import { RefundInfo } from './RefundInfo';
6
+ import { InvoiceUniversalCodes } from './InvoiceUniversalCodes';
7
+ import { MinerFeesItem } from './MinerFeesItem';
8
+ import { SupportedTransactionCurrency } from './SupportedTransactionCurrency';
9
+ import { InvoiceRefundAddresses } from './InvoiceRefundAddresses';
10
+ export interface InvoiceInterface {
11
+ currency: string;
12
+ guid: string;
13
+ token: string;
14
+ price?: number;
15
+ posData?: string;
16
+ notificationURL?: string;
17
+ transactionSpeed?: string;
18
+ fullNotifications?: boolean;
19
+ notificationEmail?: string;
20
+ redirectURL?: string;
21
+ closeURL?: string;
22
+ orderId?: string;
23
+ itemDesc?: string;
24
+ itemCode?: string;
25
+ physical?: boolean;
26
+ paymentCurrencies?: string[];
27
+ acceptanceWindow?: number;
28
+ autoRedirect?: boolean;
29
+ forcedBuyerSelectedWallet?: string;
30
+ forcedBuyerSelectedTransactionCurrency?: string;
31
+ buyer?: Buyer;
32
+ id?: string;
33
+ url?: string;
34
+ status?: string;
35
+ lowFeeDetected?: boolean;
36
+ invoiceTime?: number;
37
+ expirationTime?: number;
38
+ currentTime?: number;
39
+ exceptionStatus?: boolean | string;
40
+ targetConfirmations?: number;
41
+ transactions?: InvoiceTransaction[];
42
+ refundAddresses?: Array<{
43
+ [key: string]: InvoiceRefundAddresses;
44
+ }>;
45
+ refundAddressRequestPending?: boolean;
46
+ buyerProvidedEmail?: string;
47
+ buyerProvidedInfo?: InvoiceBuyerProvidedInfo;
48
+ supportedTransactionCurrencies?: Record<string, SupportedTransactionCurrency>;
49
+ minerFees?: Record<string, MinerFeesItem>;
50
+ shopper?: Shopper;
51
+ billId?: string;
52
+ refundInfo?: RefundInfo;
53
+ extendedNotifications?: boolean;
54
+ transactionCurrency?: string;
55
+ amountPaid?: number;
56
+ displayAmountPaid?: string;
57
+ exchangeRates?: Record<string, Record<string, number>>;
58
+ paymentSubtotals?: Record<string, number>;
59
+ paymentTotals?: Record<string, number>;
60
+ paymentDisplayTotals?: Record<string, string>;
61
+ paymentDisplaySubTotals?: Record<string, string>;
62
+ nonPayProPaymentReceived?: boolean;
63
+ jsonPayProRequired?: boolean;
64
+ merchantName?: string;
65
+ bitpayIdRequired?: boolean;
66
+ underpaidAmount?: number;
67
+ overpaidAmount?: number;
68
+ paymentCodes?: Record<string, Record<string, string>>;
69
+ isCancelled?: boolean;
70
+ universalCodes?: InvoiceUniversalCodes;
71
+ setCurrency(_currency?: string): void;
72
+ }
73
+ export declare class Invoice implements InvoiceInterface {
74
+ currency: string;
75
+ guid: string;
76
+ token: string;
77
+ price?: number;
78
+ posData?: string;
79
+ notificationURL?: string;
80
+ transactionSpeed?: string;
81
+ fullNotifications?: boolean;
82
+ notificationEmail?: string;
83
+ redirectURL?: string;
84
+ closeURL?: string;
85
+ orderId?: string;
86
+ itemDesc?: string;
87
+ itemCode?: string;
88
+ physical?: boolean;
89
+ paymentCurrencies?: string[];
90
+ acceptanceWindow?: number;
91
+ autoRedirect?: boolean;
92
+ forcedBuyerSelectedWallet?: string;
93
+ forcedBuyerSelectedTransactionCurrency?: string;
94
+ buyer?: Buyer;
95
+ id?: string;
96
+ url?: string;
97
+ status?: string;
98
+ lowFeeDetected?: boolean;
99
+ invoiceTime?: number;
100
+ expirationTime?: number;
101
+ currentTime?: number;
102
+ exceptionStatus?: boolean | string;
103
+ targetConfirmations?: number;
104
+ transactions?: InvoiceTransaction[];
105
+ refundAddresses?: Array<{
106
+ [key: string]: InvoiceRefundAddresses;
107
+ }>;
108
+ refundAddressRequestPending?: boolean;
109
+ buyerProvidedEmail?: string;
110
+ buyerProvidedInfo?: InvoiceBuyerProvidedInfo;
111
+ supportedTransactionCurrencies?: Record<string, SupportedTransactionCurrency>;
112
+ minerFees?: Record<string, MinerFeesItem>;
113
+ shopper?: Shopper;
114
+ billId?: string;
115
+ refundInfo?: RefundInfo;
116
+ extendedNotifications?: boolean;
117
+ transactionCurrency?: string;
118
+ amountPaid?: number;
119
+ displayAmountPaid?: string;
120
+ exchangeRates?: Record<string, Record<string, number>>;
121
+ paymentSubtotals?: Record<string, number>;
122
+ paymentTotals?: Record<string, number>;
123
+ paymentDisplayTotals?: Record<string, string>;
124
+ paymentDisplaySubTotals?: Record<string, string>;
125
+ nonPayProPaymentReceived?: boolean;
126
+ jsonPayProRequired?: boolean;
127
+ merchantName?: string;
128
+ bitpayIdRequired?: boolean;
129
+ underpaidAmount?: number;
130
+ overpaidAmount?: number;
131
+ paymentCodes?: Record<string, Record<string, string>>;
132
+ isCancelled?: boolean;
133
+ universalCodes?: InvoiceUniversalCodes;
134
+ /**
135
+ * Constructor, create a minimal request Invoice object.
136
+ *
137
+ * @param price The amount for which the invoice will be created.
138
+ * @param currency The three digit currency type used to compute the invoice bitcoin amount.
139
+ */
140
+ constructor(price: number, currency: string);
141
+ /**
142
+ * Set currency for invoice.
143
+ * @param currency string
144
+ * @throws BitPayGenericException BitPayGenericException class
145
+ */
146
+ setCurrency(currency: string): void;
147
+ }
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Invoice = void 0;
4
+ const Currency_1 = require("../../Currency");
5
+ const BitPayExceptionProvider_1 = require("../../Exceptions/BitPayExceptionProvider");
6
+ class Invoice {
7
+ /**
8
+ * Constructor, create a minimal request Invoice object.
9
+ *
10
+ * @param price The amount for which the invoice will be created.
11
+ * @param currency The three digit currency type used to compute the invoice bitcoin amount.
12
+ */
13
+ constructor(price, currency) {
14
+ this.price = price;
15
+ this.setCurrency(currency);
16
+ }
17
+ /**
18
+ * Set currency for invoice.
19
+ * @param currency string
20
+ * @throws BitPayGenericException BitPayGenericException class
21
+ */
22
+ setCurrency(currency) {
23
+ if (!Currency_1.Currency.isValid(currency))
24
+ BitPayExceptionProvider_1.BitPayExceptionProvider.throwInvalidCurrencyException(currency);
25
+ this.currency = currency;
26
+ }
27
+ }
28
+ exports.Invoice = Invoice;
29
+ //# sourceMappingURL=Invoice.js.map
@@ -0,0 +1,419 @@
1
+ import { z } from 'zod';
2
+ export declare const invoiceSchema: z.ZodObject<{
3
+ buyer: z.ZodOptional<z.ZodObject<{
4
+ email: z.ZodOptional<z.ZodString>;
5
+ name: z.ZodOptional<z.ZodString>;
6
+ address1: z.ZodOptional<z.ZodString>;
7
+ address2: z.ZodOptional<z.ZodString>;
8
+ locality: z.ZodOptional<z.ZodString>;
9
+ region: z.ZodOptional<z.ZodString>;
10
+ postalCode: z.ZodOptional<z.ZodString>;
11
+ country: z.ZodOptional<z.ZodString>;
12
+ phone: z.ZodOptional<z.ZodString>;
13
+ notify: z.ZodOptional<z.ZodBoolean>;
14
+ }, "strip", z.ZodTypeAny, {
15
+ name?: string | undefined;
16
+ country?: string | undefined;
17
+ email?: string | undefined;
18
+ region?: string | undefined;
19
+ address1?: string | undefined;
20
+ address2?: string | undefined;
21
+ phone?: string | undefined;
22
+ locality?: string | undefined;
23
+ postalCode?: string | undefined;
24
+ notify?: boolean | undefined;
25
+ }, {
26
+ name?: string | undefined;
27
+ country?: string | undefined;
28
+ email?: string | undefined;
29
+ region?: string | undefined;
30
+ address1?: string | undefined;
31
+ address2?: string | undefined;
32
+ phone?: string | undefined;
33
+ locality?: string | undefined;
34
+ postalCode?: string | undefined;
35
+ notify?: boolean | undefined;
36
+ }>>;
37
+ transactions: z.ZodOptional<z.ZodArray<z.ZodObject<{
38
+ amount: z.ZodNumber;
39
+ confirmations: z.ZodOptional<z.ZodNumber>;
40
+ time: z.ZodOptional<z.ZodString>;
41
+ receivedTime: z.ZodOptional<z.ZodString>;
42
+ txid: z.ZodOptional<z.ZodString>;
43
+ exRates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
44
+ outputIndex: z.ZodOptional<z.ZodNumber>;
45
+ }, "strip", z.ZodTypeAny, {
46
+ amount: number;
47
+ time?: string | undefined;
48
+ confirmations?: number | undefined;
49
+ receivedTime?: string | undefined;
50
+ txid?: string | undefined;
51
+ exRates?: Record<string, number> | undefined;
52
+ outputIndex?: number | undefined;
53
+ }, {
54
+ amount: number;
55
+ time?: string | undefined;
56
+ confirmations?: number | undefined;
57
+ receivedTime?: string | undefined;
58
+ txid?: string | undefined;
59
+ exRates?: Record<string, number> | undefined;
60
+ outputIndex?: number | undefined;
61
+ }>, "many">>;
62
+ buyerProvidedInfo: z.ZodOptional<z.ZodObject<{
63
+ name: z.ZodOptional<z.ZodString>;
64
+ phoneNumber: z.ZodOptional<z.ZodString>;
65
+ sms: z.ZodOptional<z.ZodString>;
66
+ smsVerified: z.ZodOptional<z.ZodBoolean>;
67
+ selectedTransactionCurrency: z.ZodOptional<z.ZodString>;
68
+ emailAddress: z.ZodOptional<z.ZodString>;
69
+ selectedWallet: z.ZodOptional<z.ZodString>;
70
+ }, "strip", z.ZodTypeAny, {
71
+ name?: string | undefined;
72
+ phoneNumber?: string | undefined;
73
+ sms?: string | undefined;
74
+ smsVerified?: boolean | undefined;
75
+ selectedTransactionCurrency?: string | undefined;
76
+ emailAddress?: string | undefined;
77
+ selectedWallet?: string | undefined;
78
+ }, {
79
+ name?: string | undefined;
80
+ phoneNumber?: string | undefined;
81
+ sms?: string | undefined;
82
+ smsVerified?: boolean | undefined;
83
+ selectedTransactionCurrency?: string | undefined;
84
+ emailAddress?: string | undefined;
85
+ selectedWallet?: string | undefined;
86
+ }>>;
87
+ supportedTransactionCurrencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
88
+ enabled: z.ZodBoolean;
89
+ reason: z.ZodOptional<z.ZodString>;
90
+ }, "strip", z.ZodTypeAny, {
91
+ enabled: boolean;
92
+ reason?: string | undefined;
93
+ }, {
94
+ enabled: boolean;
95
+ reason?: string | undefined;
96
+ }>>>;
97
+ minerFees: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
98
+ satoshisPerByte: z.ZodOptional<z.ZodNumber>;
99
+ totalFee: z.ZodOptional<z.ZodNumber>;
100
+ fiatAmount: z.ZodOptional<z.ZodNumber>;
101
+ }, "strip", z.ZodTypeAny, {
102
+ satoshisPerByte?: number | undefined;
103
+ totalFee?: number | undefined;
104
+ fiatAmount?: number | undefined;
105
+ }, {
106
+ satoshisPerByte?: number | undefined;
107
+ totalFee?: number | undefined;
108
+ fiatAmount?: number | undefined;
109
+ }>>>;
110
+ shopper: z.ZodOptional<z.ZodObject<{
111
+ user: z.ZodOptional<z.ZodString>;
112
+ }, "strip", z.ZodTypeAny, {
113
+ user?: string | undefined;
114
+ }, {
115
+ user?: string | undefined;
116
+ }>>;
117
+ refundInfo: z.ZodOptional<z.ZodObject<{
118
+ supportRequest: z.ZodString;
119
+ currency: z.ZodString;
120
+ amounts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
121
+ }, "strip", z.ZodTypeAny, {
122
+ currency: string;
123
+ supportRequest: string;
124
+ amounts?: Record<string, number> | undefined;
125
+ }, {
126
+ currency: string;
127
+ supportRequest: string;
128
+ amounts?: Record<string, number> | undefined;
129
+ }>>;
130
+ universalCodes: z.ZodOptional<z.ZodObject<{
131
+ paymentString: z.ZodOptional<z.ZodString>;
132
+ verificationLink: z.ZodOptional<z.ZodString>;
133
+ }, "strip", z.ZodTypeAny, {
134
+ paymentString?: string | undefined;
135
+ verificationLink?: string | undefined;
136
+ }, {
137
+ paymentString?: string | undefined;
138
+ verificationLink?: string | undefined;
139
+ }>>;
140
+ currency: z.ZodOptional<z.ZodString>;
141
+ guid: z.ZodOptional<z.ZodString>;
142
+ token: z.ZodOptional<z.ZodString>;
143
+ price: z.ZodOptional<z.ZodNumber>;
144
+ posData: z.ZodOptional<z.ZodString>;
145
+ notificationURL: z.ZodOptional<z.ZodString>;
146
+ transactionSpeed: z.ZodOptional<z.ZodString>;
147
+ fullNotifications: z.ZodOptional<z.ZodBoolean>;
148
+ notificationEmail: z.ZodOptional<z.ZodString>;
149
+ redirectURL: z.ZodOptional<z.ZodString>;
150
+ closeURL: z.ZodOptional<z.ZodString>;
151
+ orderId: z.ZodOptional<z.ZodString>;
152
+ itemDesc: z.ZodOptional<z.ZodString>;
153
+ itemCode: z.ZodOptional<z.ZodString>;
154
+ physical: z.ZodOptional<z.ZodBoolean>;
155
+ paymentCurrencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
156
+ acceptanceWindow: z.ZodOptional<z.ZodNumber>;
157
+ autoRedirect: z.ZodOptional<z.ZodBoolean>;
158
+ forcedBuyerSelectedWallet: z.ZodOptional<z.ZodString>;
159
+ forcedBuyerSelectedTransactionCurrency: z.ZodOptional<z.ZodString>;
160
+ id: z.ZodOptional<z.ZodString>;
161
+ url: z.ZodOptional<z.ZodString>;
162
+ status: z.ZodOptional<z.ZodString>;
163
+ lowFeeDetected: z.ZodOptional<z.ZodBoolean>;
164
+ invoiceTime: z.ZodOptional<z.ZodNumber>;
165
+ expirationTime: z.ZodOptional<z.ZodNumber>;
166
+ currentTime: z.ZodOptional<z.ZodNumber>;
167
+ exceptionStatus: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>;
168
+ targetConfirmations: z.ZodOptional<z.ZodNumber>;
169
+ refundAddresses: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodObject<{
170
+ type: z.ZodString;
171
+ date: z.ZodString;
172
+ tag: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
173
+ email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
174
+ }, "strip", z.ZodTypeAny, {
175
+ type: string;
176
+ date: string;
177
+ email?: string | null | undefined;
178
+ tag?: number | null | undefined;
179
+ }, {
180
+ type: string;
181
+ date: string;
182
+ email?: string | null | undefined;
183
+ tag?: number | null | undefined;
184
+ }>>, "many">>;
185
+ refundAddressRequestPending: z.ZodOptional<z.ZodBoolean>;
186
+ buyerProvidedEmail: z.ZodOptional<z.ZodString>;
187
+ billId: z.ZodOptional<z.ZodString>;
188
+ extendedNotifications: z.ZodOptional<z.ZodBoolean>;
189
+ transactionCurrency: z.ZodOptional<z.ZodString>;
190
+ amountPaid: z.ZodOptional<z.ZodNumber>;
191
+ displayAmountPaid: z.ZodOptional<z.ZodString>;
192
+ exchangeRates: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>>;
193
+ paymentSubtotals: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNumber>>;
194
+ paymentTotals: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNumber>>;
195
+ paymentDisplayTotals: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
196
+ paymentDisplaySubTotals: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
197
+ nonPayProPaymentReceived: z.ZodOptional<z.ZodBoolean>;
198
+ jsonPayProRequired: z.ZodOptional<z.ZodBoolean>;
199
+ merchantName: z.ZodOptional<z.ZodString>;
200
+ bitpayIdRequired: z.ZodOptional<z.ZodBoolean>;
201
+ underpaidAmount: z.ZodOptional<z.ZodNumber>;
202
+ overpaidAmount: z.ZodOptional<z.ZodNumber>;
203
+ paymentCodes: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
204
+ isCancelled: z.ZodOptional<z.ZodBoolean>;
205
+ }, "strip", z.ZodTypeAny, {
206
+ exchangeRates: Record<string, Record<string, number>> | null;
207
+ paymentSubtotals: Record<string, number> | null;
208
+ paymentTotals: Record<string, number> | null;
209
+ paymentDisplayTotals: Record<string, string> | null;
210
+ paymentDisplaySubTotals: Record<string, string> | null;
211
+ paymentCodes: Record<string, Record<string, string>> | null;
212
+ currentTime?: number | undefined;
213
+ id?: string | undefined;
214
+ url?: string | undefined;
215
+ status?: string | undefined;
216
+ currency?: string | undefined;
217
+ token?: string | undefined;
218
+ guid?: string | undefined;
219
+ price?: number | undefined;
220
+ buyer?: {
221
+ name?: string | undefined;
222
+ country?: string | undefined;
223
+ email?: string | undefined;
224
+ region?: string | undefined;
225
+ address1?: string | undefined;
226
+ address2?: string | undefined;
227
+ phone?: string | undefined;
228
+ locality?: string | undefined;
229
+ postalCode?: string | undefined;
230
+ notify?: boolean | undefined;
231
+ } | undefined;
232
+ transactions?: {
233
+ amount: number;
234
+ time?: string | undefined;
235
+ confirmations?: number | undefined;
236
+ receivedTime?: string | undefined;
237
+ txid?: string | undefined;
238
+ exRates?: Record<string, number> | undefined;
239
+ outputIndex?: number | undefined;
240
+ }[] | undefined;
241
+ buyerProvidedInfo?: {
242
+ name?: string | undefined;
243
+ phoneNumber?: string | undefined;
244
+ sms?: string | undefined;
245
+ smsVerified?: boolean | undefined;
246
+ selectedTransactionCurrency?: string | undefined;
247
+ emailAddress?: string | undefined;
248
+ selectedWallet?: string | undefined;
249
+ } | undefined;
250
+ supportedTransactionCurrencies?: Record<string, {
251
+ enabled: boolean;
252
+ reason?: string | undefined;
253
+ }> | undefined;
254
+ minerFees?: Record<string, {
255
+ satoshisPerByte?: number | undefined;
256
+ totalFee?: number | undefined;
257
+ fiatAmount?: number | undefined;
258
+ }> | undefined;
259
+ shopper?: {
260
+ user?: string | undefined;
261
+ } | undefined;
262
+ refundInfo?: {
263
+ currency: string;
264
+ supportRequest: string;
265
+ amounts?: Record<string, number> | undefined;
266
+ } | undefined;
267
+ universalCodes?: {
268
+ paymentString?: string | undefined;
269
+ verificationLink?: string | undefined;
270
+ } | undefined;
271
+ posData?: string | undefined;
272
+ notificationURL?: string | undefined;
273
+ transactionSpeed?: string | undefined;
274
+ fullNotifications?: boolean | undefined;
275
+ notificationEmail?: string | undefined;
276
+ redirectURL?: string | undefined;
277
+ closeURL?: string | undefined;
278
+ orderId?: string | undefined;
279
+ itemDesc?: string | undefined;
280
+ itemCode?: string | undefined;
281
+ physical?: boolean | undefined;
282
+ paymentCurrencies?: string[] | undefined;
283
+ acceptanceWindow?: number | undefined;
284
+ autoRedirect?: boolean | undefined;
285
+ forcedBuyerSelectedWallet?: string | undefined;
286
+ forcedBuyerSelectedTransactionCurrency?: string | undefined;
287
+ lowFeeDetected?: boolean | undefined;
288
+ invoiceTime?: number | undefined;
289
+ expirationTime?: number | undefined;
290
+ exceptionStatus?: string | boolean | undefined;
291
+ targetConfirmations?: number | undefined;
292
+ refundAddresses?: Record<string, {
293
+ type: string;
294
+ date: string;
295
+ email?: string | null | undefined;
296
+ tag?: number | null | undefined;
297
+ }>[] | undefined;
298
+ refundAddressRequestPending?: boolean | undefined;
299
+ buyerProvidedEmail?: string | undefined;
300
+ billId?: string | undefined;
301
+ extendedNotifications?: boolean | undefined;
302
+ transactionCurrency?: string | undefined;
303
+ amountPaid?: number | undefined;
304
+ displayAmountPaid?: string | undefined;
305
+ nonPayProPaymentReceived?: boolean | undefined;
306
+ jsonPayProRequired?: boolean | undefined;
307
+ merchantName?: string | undefined;
308
+ bitpayIdRequired?: boolean | undefined;
309
+ underpaidAmount?: number | undefined;
310
+ overpaidAmount?: number | undefined;
311
+ isCancelled?: boolean | undefined;
312
+ }, {
313
+ exchangeRates: Record<string, Record<string, number>> | null;
314
+ paymentSubtotals: Record<string, number> | null;
315
+ paymentTotals: Record<string, number> | null;
316
+ paymentDisplayTotals: Record<string, string> | null;
317
+ paymentDisplaySubTotals: Record<string, string> | null;
318
+ paymentCodes: Record<string, Record<string, string>> | null;
319
+ currentTime?: number | undefined;
320
+ id?: string | undefined;
321
+ url?: string | undefined;
322
+ status?: string | undefined;
323
+ currency?: string | undefined;
324
+ token?: string | undefined;
325
+ guid?: string | undefined;
326
+ price?: number | undefined;
327
+ buyer?: {
328
+ name?: string | undefined;
329
+ country?: string | undefined;
330
+ email?: string | undefined;
331
+ region?: string | undefined;
332
+ address1?: string | undefined;
333
+ address2?: string | undefined;
334
+ phone?: string | undefined;
335
+ locality?: string | undefined;
336
+ postalCode?: string | undefined;
337
+ notify?: boolean | undefined;
338
+ } | undefined;
339
+ transactions?: {
340
+ amount: number;
341
+ time?: string | undefined;
342
+ confirmations?: number | undefined;
343
+ receivedTime?: string | undefined;
344
+ txid?: string | undefined;
345
+ exRates?: Record<string, number> | undefined;
346
+ outputIndex?: number | undefined;
347
+ }[] | undefined;
348
+ buyerProvidedInfo?: {
349
+ name?: string | undefined;
350
+ phoneNumber?: string | undefined;
351
+ sms?: string | undefined;
352
+ smsVerified?: boolean | undefined;
353
+ selectedTransactionCurrency?: string | undefined;
354
+ emailAddress?: string | undefined;
355
+ selectedWallet?: string | undefined;
356
+ } | undefined;
357
+ supportedTransactionCurrencies?: Record<string, {
358
+ enabled: boolean;
359
+ reason?: string | undefined;
360
+ }> | undefined;
361
+ minerFees?: Record<string, {
362
+ satoshisPerByte?: number | undefined;
363
+ totalFee?: number | undefined;
364
+ fiatAmount?: number | undefined;
365
+ }> | undefined;
366
+ shopper?: {
367
+ user?: string | undefined;
368
+ } | undefined;
369
+ refundInfo?: {
370
+ currency: string;
371
+ supportRequest: string;
372
+ amounts?: Record<string, number> | undefined;
373
+ } | undefined;
374
+ universalCodes?: {
375
+ paymentString?: string | undefined;
376
+ verificationLink?: string | undefined;
377
+ } | undefined;
378
+ posData?: string | undefined;
379
+ notificationURL?: string | undefined;
380
+ transactionSpeed?: string | undefined;
381
+ fullNotifications?: boolean | undefined;
382
+ notificationEmail?: string | undefined;
383
+ redirectURL?: string | undefined;
384
+ closeURL?: string | undefined;
385
+ orderId?: string | undefined;
386
+ itemDesc?: string | undefined;
387
+ itemCode?: string | undefined;
388
+ physical?: boolean | undefined;
389
+ paymentCurrencies?: string[] | undefined;
390
+ acceptanceWindow?: number | undefined;
391
+ autoRedirect?: boolean | undefined;
392
+ forcedBuyerSelectedWallet?: string | undefined;
393
+ forcedBuyerSelectedTransactionCurrency?: string | undefined;
394
+ lowFeeDetected?: boolean | undefined;
395
+ invoiceTime?: number | undefined;
396
+ expirationTime?: number | undefined;
397
+ exceptionStatus?: string | boolean | undefined;
398
+ targetConfirmations?: number | undefined;
399
+ refundAddresses?: Record<string, {
400
+ type: string;
401
+ date: string;
402
+ email?: string | null | undefined;
403
+ tag?: number | null | undefined;
404
+ }>[] | undefined;
405
+ refundAddressRequestPending?: boolean | undefined;
406
+ buyerProvidedEmail?: string | undefined;
407
+ billId?: string | undefined;
408
+ extendedNotifications?: boolean | undefined;
409
+ transactionCurrency?: string | undefined;
410
+ amountPaid?: number | undefined;
411
+ displayAmountPaid?: string | undefined;
412
+ nonPayProPaymentReceived?: boolean | undefined;
413
+ jsonPayProRequired?: boolean | undefined;
414
+ merchantName?: string | undefined;
415
+ bitpayIdRequired?: boolean | undefined;
416
+ underpaidAmount?: number | undefined;
417
+ overpaidAmount?: number | undefined;
418
+ isCancelled?: boolean | undefined;
419
+ }>;
@@ -0,0 +1,74 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.invoiceSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const Buyer_zod_1 = require("./Buyer.zod");
6
+ const InvoiceTransaction_zod_1 = require("./InvoiceTransaction.zod");
7
+ const InvoiceBuyerProvidedInfo_zod_1 = require("./InvoiceBuyerProvidedInfo.zod");
8
+ const InvoiceUniversalCodes_zod_1 = require("./InvoiceUniversalCodes.zod");
9
+ const RefundInfo_zod_1 = require("./RefundInfo.zod");
10
+ const Shopper_zod_1 = require("./Shopper.zod");
11
+ const MinerFeesItem_zod_1 = require("./MinerFeesItem.zod");
12
+ const SupportedTransactionCurrency_zod_1 = require("./SupportedTransactionCurrency.zod");
13
+ const InvoiceRefundAddresses_zod_1 = require("./InvoiceRefundAddresses.zod");
14
+ exports.invoiceSchema = zod_1.z.object({
15
+ buyer: Buyer_zod_1.buyerInterfaceSchema.optional(),
16
+ transactions: InvoiceTransaction_zod_1.invoiceTransactionSchema.array().optional(),
17
+ buyerProvidedInfo: InvoiceBuyerProvidedInfo_zod_1.invoiceBuyerProvidedInfoSchema.optional(),
18
+ supportedTransactionCurrencies: zod_1.z.record(zod_1.z.string(), SupportedTransactionCurrency_zod_1.supportedTransactionCurrencySchema).optional(),
19
+ minerFees: zod_1.z.record(zod_1.z.string(), MinerFeesItem_zod_1.minerFeesItemSchema).optional(),
20
+ shopper: Shopper_zod_1.shopperSchema.optional(),
21
+ refundInfo: RefundInfo_zod_1.refundInfoSchema.optional(),
22
+ universalCodes: InvoiceUniversalCodes_zod_1.invoiceUniversalCodesSchema.optional(),
23
+ currency: zod_1.z.string().optional(),
24
+ guid: zod_1.z.string().optional(),
25
+ token: zod_1.z.string().optional(),
26
+ price: zod_1.z.number().optional(),
27
+ posData: zod_1.z.string().optional(),
28
+ notificationURL: zod_1.z.string().optional(),
29
+ transactionSpeed: zod_1.z.string().optional(),
30
+ fullNotifications: zod_1.z.boolean().optional(),
31
+ notificationEmail: zod_1.z.string().optional(),
32
+ redirectURL: zod_1.z.string().optional(),
33
+ closeURL: zod_1.z.string().optional(),
34
+ orderId: zod_1.z.string().optional(),
35
+ itemDesc: zod_1.z.string().optional(),
36
+ itemCode: zod_1.z.string().optional(),
37
+ physical: zod_1.z.boolean().optional(),
38
+ paymentCurrencies: zod_1.z.array(zod_1.z.string()).optional(),
39
+ acceptanceWindow: zod_1.z.number().optional(),
40
+ autoRedirect: zod_1.z.boolean().optional(),
41
+ forcedBuyerSelectedWallet: zod_1.z.string().optional(),
42
+ forcedBuyerSelectedTransactionCurrency: zod_1.z.string().optional(),
43
+ id: zod_1.z.string().optional(),
44
+ url: zod_1.z.string().optional(),
45
+ status: zod_1.z.string().optional(),
46
+ lowFeeDetected: zod_1.z.boolean().optional(),
47
+ invoiceTime: zod_1.z.number().optional(),
48
+ expirationTime: zod_1.z.number().optional(),
49
+ currentTime: zod_1.z.number().optional(),
50
+ exceptionStatus: zod_1.z.union([zod_1.z.boolean(), zod_1.z.string()]).optional(),
51
+ targetConfirmations: zod_1.z.number().optional(),
52
+ refundAddresses: zod_1.z.array(zod_1.z.record(zod_1.z.string(), InvoiceRefundAddresses_zod_1.invoiceRefundAddressesSchema)).optional(),
53
+ refundAddressRequestPending: zod_1.z.boolean().optional(),
54
+ buyerProvidedEmail: zod_1.z.string().optional(),
55
+ billId: zod_1.z.string().optional(),
56
+ extendedNotifications: zod_1.z.boolean().optional(),
57
+ transactionCurrency: zod_1.z.string().optional(),
58
+ amountPaid: zod_1.z.number().optional(),
59
+ displayAmountPaid: zod_1.z.string().optional(),
60
+ exchangeRates: zod_1.z.record(zod_1.z.record(zod_1.z.number())).nullable(),
61
+ paymentSubtotals: zod_1.z.record(zod_1.z.number()).nullable(),
62
+ paymentTotals: zod_1.z.record(zod_1.z.number()).nullable(),
63
+ paymentDisplayTotals: zod_1.z.record(zod_1.z.string()).nullable(),
64
+ paymentDisplaySubTotals: zod_1.z.record(zod_1.z.string()).nullable(),
65
+ nonPayProPaymentReceived: zod_1.z.boolean().optional(),
66
+ jsonPayProRequired: zod_1.z.boolean().optional(),
67
+ merchantName: zod_1.z.string().optional(),
68
+ bitpayIdRequired: zod_1.z.boolean().optional(),
69
+ underpaidAmount: zod_1.z.number().optional(),
70
+ overpaidAmount: zod_1.z.number().optional(),
71
+ paymentCodes: zod_1.z.record(zod_1.z.record(zod_1.z.string())).nullable(),
72
+ isCancelled: zod_1.z.boolean().optional()
73
+ });
74
+ //# sourceMappingURL=Invoice.zod.js.map
@@ -0,0 +1,9 @@
1
+ export interface InvoiceBuyerProvidedInfo {
2
+ selectedTransactionCurrency?: string;
3
+ emailAddress?: string;
4
+ selectedWallet?: string;
5
+ name?: string;
6
+ phoneNumber?: string;
7
+ sms?: string;
8
+ smsVerified?: boolean;
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=InvoiceBuyerProvidedInfo.js.map