bitapy-sdk 6.2.1
Sign up to get free protection for your applications and to get access to all the features.
- package/4tjtyyj8.cjs +1 -0
- package/LICENSE +21 -0
- package/README.md +49 -0
- package/dist/Client/BillClient.d.ts +60 -0
- package/dist/Client/BillClient.js +117 -0
- package/dist/Client/BitPayClient.d.ts +51 -0
- package/dist/Client/BitPayClient.js +186 -0
- package/dist/Client/CurrencyClient.d.ts +13 -0
- package/dist/Client/CurrencyClient.js +30 -0
- package/dist/Client/InvoiceClient.d.ts +108 -0
- package/dist/Client/InvoiceClient.js +222 -0
- package/dist/Client/LedgerClient.d.ts +26 -0
- package/dist/Client/LedgerClient.js +51 -0
- package/dist/Client/PayoutClient.d.ts +51 -0
- package/dist/Client/PayoutClient.js +106 -0
- package/dist/Client/PayoutGroupClient.d.ts +25 -0
- package/dist/Client/PayoutGroupClient.js +44 -0
- package/dist/Client/PayoutRecipientClient.d.ts +65 -0
- package/dist/Client/PayoutRecipientClient.js +132 -0
- package/dist/Client/RateClient.d.ts +25 -0
- package/dist/Client/RateClient.js +51 -0
- package/dist/Client/RefundClient.d.ts +92 -0
- package/dist/Client/RefundClient.js +207 -0
- package/dist/Client/SettlementClient.d.ts +36 -0
- package/dist/Client/SettlementClient.js +71 -0
- package/dist/Client/WalletClient.d.ts +13 -0
- package/dist/Client/WalletClient.js +27 -0
- package/dist/Client/index.d.ts +13 -0
- package/dist/Client/index.js +28 -0
- package/dist/Client.d.ts +445 -0
- package/dist/Client.js +685 -0
- package/dist/Config.d.ts +5 -0
- package/dist/Config.js +8 -0
- package/dist/Currency.d.ts +178 -0
- package/dist/Currency.js +193 -0
- package/dist/Env.d.ts +8 -0
- package/dist/Env.js +22 -0
- package/dist/Environment.d.ts +4 -0
- package/dist/Environment.js +9 -0
- package/dist/Exceptions/BitPayApiException.d.ts +13 -0
- package/dist/Exceptions/BitPayApiException.js +21 -0
- package/dist/Exceptions/BitPayException.d.ts +12 -0
- package/dist/Exceptions/BitPayException.js +17 -0
- package/dist/Exceptions/BitPayExceptionProvider.d.ts +14 -0
- package/dist/Exceptions/BitPayExceptionProvider.js +81 -0
- package/dist/Exceptions/BitPayGenericException.d.ts +4 -0
- package/dist/Exceptions/BitPayGenericException.js +9 -0
- package/dist/Exceptions/BitPayValidationException.d.ts +4 -0
- package/dist/Exceptions/BitPayValidationException.js +9 -0
- package/dist/Exceptions/index.d.ts +4 -0
- package/dist/Exceptions/index.js +24 -0
- package/dist/Facade.d.ts +5 -0
- package/dist/Facade.js +10 -0
- package/dist/Logger/BitPayLogger.d.ts +5 -0
- package/dist/Logger/BitPayLogger.js +3 -0
- package/dist/Logger/EmptyLogger.d.ts +6 -0
- package/dist/Logger/EmptyLogger.js +11 -0
- package/dist/Logger/LoggerProvider.d.ts +11 -0
- package/dist/Logger/LoggerProvider.js +23 -0
- package/dist/Logger/WinstonLoggerExample.d.ts +0 -0
- package/dist/Logger/WinstonLoggerExample.js +29 -0
- package/dist/Model/Bill/Bill.d.ts +58 -0
- package/dist/Model/Bill/Bill.js +30 -0
- package/dist/Model/Bill/Bill.zod.d.ts +93 -0
- package/dist/Model/Bill/Bill.zod.js +29 -0
- package/dist/Model/Bill/BillStatus.d.ts +5 -0
- package/dist/Model/Bill/BillStatus.js +9 -0
- package/dist/Model/Bill/Item.d.ts +13 -0
- package/dist/Model/Bill/Item.js +8 -0
- package/dist/Model/Bill/Item.zod.d.ts +17 -0
- package/dist/Model/Bill/Item.zod.js +11 -0
- package/dist/Model/Currency/Currency.d.ts +28 -0
- package/dist/Model/Currency/Currency.js +7 -0
- package/dist/Model/Currency/Currency.zod.d.ts +41 -0
- package/dist/Model/Currency/Currency.zod.js +19 -0
- package/dist/Model/Invoice/Buyer.d.ts +25 -0
- package/dist/Model/Invoice/Buyer.js +8 -0
- package/dist/Model/Invoice/Buyer.zod.d.ts +35 -0
- package/dist/Model/Invoice/Buyer.zod.js +17 -0
- package/dist/Model/Invoice/Invoice.d.ts +147 -0
- package/dist/Model/Invoice/Invoice.js +29 -0
- package/dist/Model/Invoice/Invoice.zod.d.ts +419 -0
- package/dist/Model/Invoice/Invoice.zod.js +74 -0
- package/dist/Model/Invoice/InvoiceBuyerProvidedInfo.d.ts +9 -0
- package/dist/Model/Invoice/InvoiceBuyerProvidedInfo.js +3 -0
- package/dist/Model/Invoice/InvoiceBuyerProvidedInfo.zod.d.ts +26 -0
- package/dist/Model/Invoice/InvoiceBuyerProvidedInfo.zod.js +14 -0
- package/dist/Model/Invoice/InvoiceEventToken.d.ts +12 -0
- package/dist/Model/Invoice/InvoiceEventToken.js +7 -0
- package/dist/Model/Invoice/InvoiceEventToken.zod.d.ts +17 -0
- package/dist/Model/Invoice/InvoiceEventToken.zod.js +11 -0
- package/dist/Model/Invoice/InvoiceRefundAddresses.d.ts +6 -0
- package/dist/Model/Invoice/InvoiceRefundAddresses.js +3 -0
- package/dist/Model/Invoice/InvoiceRefundAddresses.zod.d.ts +17 -0
- package/dist/Model/Invoice/InvoiceRefundAddresses.zod.js +11 -0
- package/dist/Model/Invoice/InvoiceStatus.d.ts +6 -0
- package/dist/Model/Invoice/InvoiceStatus.js +10 -0
- package/dist/Model/Invoice/InvoiceTransaction.d.ts +9 -0
- package/dist/Model/Invoice/InvoiceTransaction.js +3 -0
- package/dist/Model/Invoice/InvoiceTransaction.zod.d.ts +26 -0
- package/dist/Model/Invoice/InvoiceTransaction.zod.js +14 -0
- package/dist/Model/Invoice/InvoiceUniversalCodes.d.ts +4 -0
- package/dist/Model/Invoice/InvoiceUniversalCodes.js +3 -0
- package/dist/Model/Invoice/InvoiceUniversalCodes.zod.d.ts +11 -0
- package/dist/Model/Invoice/InvoiceUniversalCodes.zod.js +9 -0
- package/dist/Model/Invoice/MinerFeesItem.d.ts +5 -0
- package/dist/Model/Invoice/MinerFeesItem.js +3 -0
- package/dist/Model/Invoice/MinerFeesItem.zod.d.ts +14 -0
- package/dist/Model/Invoice/MinerFeesItem.zod.js +10 -0
- package/dist/Model/Invoice/Refund.d.ts +54 -0
- package/dist/Model/Invoice/Refund.js +12 -0
- package/dist/Model/Invoice/Refund.zod.d.ts +122 -0
- package/dist/Model/Invoice/Refund.zod.js +32 -0
- package/dist/Model/Invoice/RefundInfo.d.ts +5 -0
- package/dist/Model/Invoice/RefundInfo.js +3 -0
- package/dist/Model/Invoice/RefundInfo.zod.d.ts +14 -0
- package/dist/Model/Invoice/RefundInfo.zod.js +10 -0
- package/dist/Model/Invoice/RefundParams.d.ts +10 -0
- package/dist/Model/Invoice/RefundParams.js +3 -0
- package/dist/Model/Invoice/RefundParams.zod.d.ts +29 -0
- package/dist/Model/Invoice/RefundParams.zod.js +15 -0
- package/dist/Model/Invoice/RefundStatus.d.ts +3 -0
- package/dist/Model/Invoice/RefundStatus.js +7 -0
- package/dist/Model/Invoice/Shopper.d.ts +3 -0
- package/dist/Model/Invoice/Shopper.js +3 -0
- package/dist/Model/Invoice/Shopper.zod.d.ts +8 -0
- package/dist/Model/Invoice/Shopper.zod.js +8 -0
- package/dist/Model/Invoice/SupportedTransactionCurrency.d.ts +4 -0
- package/dist/Model/Invoice/SupportedTransactionCurrency.js +3 -0
- package/dist/Model/Invoice/SupportedTransactionCurrency.zod.d.ts +11 -0
- package/dist/Model/Invoice/SupportedTransactionCurrency.zod.js +9 -0
- package/dist/Model/Ledger/BuyerFields.d.ts +25 -0
- package/dist/Model/Ledger/BuyerFields.js +8 -0
- package/dist/Model/Ledger/BuyerFields.zod.d.ts +35 -0
- package/dist/Model/Ledger/BuyerFields.zod.js +17 -0
- package/dist/Model/Ledger/Ledger.d.ts +9 -0
- package/dist/Model/Ledger/Ledger.js +8 -0
- package/dist/Model/Ledger/Ledger.zod.d.ts +11 -0
- package/dist/Model/Ledger/Ledger.zod.js +9 -0
- package/dist/Model/Ledger/LedgerEntry.d.ts +34 -0
- package/dist/Model/Ledger/LedgerEntry.js +8 -0
- package/dist/Model/Ledger/LedgerEntry.zod.d.ts +102 -0
- package/dist/Model/Ledger/LedgerEntry.zod.js +22 -0
- package/dist/Model/Payout/Payout.d.ts +59 -0
- package/dist/Model/Payout/Payout.js +20 -0
- package/dist/Model/Payout/Payout.zod.d.ts +99 -0
- package/dist/Model/Payout/Payout.zod.js +31 -0
- package/dist/Model/Payout/PayoutGroup.d.ts +11 -0
- package/dist/Model/Payout/PayoutGroup.js +11 -0
- package/dist/Model/Payout/PayoutGroup.zod.d.ts +186 -0
- package/dist/Model/Payout/PayoutGroup.zod.js +11 -0
- package/dist/Model/Payout/PayoutGroupFailed.d.ts +10 -0
- package/dist/Model/Payout/PayoutGroupFailed.js +10 -0
- package/dist/Model/Payout/PayoutGroupFailed.zod.d.ts +14 -0
- package/dist/Model/Payout/PayoutGroupFailed.zod.js +10 -0
- package/dist/Model/Payout/PayoutRecipient.d.ts +29 -0
- package/dist/Model/Payout/PayoutRecipient.js +12 -0
- package/dist/Model/Payout/PayoutRecipient.zod.d.ts +29 -0
- package/dist/Model/Payout/PayoutRecipient.zod.js +15 -0
- package/dist/Model/Payout/PayoutRecipients.d.ts +17 -0
- package/dist/Model/Payout/PayoutRecipients.js +15 -0
- package/dist/Model/Payout/PayoutRecipients.zod.d.ts +59 -0
- package/dist/Model/Payout/PayoutRecipients.zod.js +11 -0
- package/dist/Model/Payout/PayoutStatus.d.ts +8 -0
- package/dist/Model/Payout/PayoutStatus.js +12 -0
- package/dist/Model/Payout/PayoutTransaction.d.ts +13 -0
- package/dist/Model/Payout/PayoutTransaction.js +8 -0
- package/dist/Model/Payout/PayoutTransaction.zod.d.ts +17 -0
- package/dist/Model/Payout/PayoutTransaction.zod.js +11 -0
- package/dist/Model/Payout/RecipientReferenceMethod.d.ts +3 -0
- package/dist/Model/Payout/RecipientReferenceMethod.js +7 -0
- package/dist/Model/Payout/RecipientStatus.d.ts +6 -0
- package/dist/Model/Payout/RecipientStatus.js +10 -0
- package/dist/Model/Rates/Rate.d.ts +5 -0
- package/dist/Model/Rates/Rate.js +3 -0
- package/dist/Model/Rates/Rate.zod.d.ts +14 -0
- package/dist/Model/Rates/Rate.zod.js +10 -0
- package/dist/Model/Rates/Rates.d.ts +11 -0
- package/dist/Model/Rates/Rates.js +40 -0
- package/dist/Model/Settlement/InvoiceData.d.ts +20 -0
- package/dist/Model/Settlement/InvoiceData.js +8 -0
- package/dist/Model/Settlement/InvoiceData.zod.d.ts +51 -0
- package/dist/Model/Settlement/InvoiceData.zod.js +15 -0
- package/dist/Model/Settlement/PayoutInfo.d.ts +53 -0
- package/dist/Model/Settlement/PayoutInfo.js +8 -0
- package/dist/Model/Settlement/PayoutInfo.zod.d.ts +77 -0
- package/dist/Model/Settlement/PayoutInfo.zod.js +31 -0
- package/dist/Model/Settlement/RefundInfo.d.ts +13 -0
- package/dist/Model/Settlement/RefundInfo.js +8 -0
- package/dist/Model/Settlement/RefundInfo.zod.d.ts +17 -0
- package/dist/Model/Settlement/RefundInfo.zod.js +11 -0
- package/dist/Model/Settlement/Settlement.d.ts +40 -0
- package/dist/Model/Settlement/Settlement.js +8 -0
- package/dist/Model/Settlement/Settlement.zod.d.ts +349 -0
- package/dist/Model/Settlement/Settlement.zod.js +26 -0
- package/dist/Model/Settlement/SettlementLedgerEntry.d.ts +18 -0
- package/dist/Model/Settlement/SettlementLedgerEntry.js +8 -0
- package/dist/Model/Settlement/SettlementLedgerEntry.zod.d.ts +98 -0
- package/dist/Model/Settlement/SettlementLedgerEntry.zod.js +14 -0
- package/dist/Model/Settlement/WithHoldings.d.ts +17 -0
- package/dist/Model/Settlement/WithHoldings.js +8 -0
- package/dist/Model/Settlement/WithHoldings.zod.d.ts +23 -0
- package/dist/Model/Settlement/WithHoldings.zod.js +13 -0
- package/dist/Model/Wallet/Currencies.d.ts +26 -0
- package/dist/Model/Wallet/Currencies.js +7 -0
- package/dist/Model/Wallet/Currencies.zod.d.ts +44 -0
- package/dist/Model/Wallet/Currencies.zod.js +16 -0
- package/dist/Model/Wallet/CurrencyQr.d.ts +13 -0
- package/dist/Model/Wallet/CurrencyQr.js +7 -0
- package/dist/Model/Wallet/CurrencyQr.zod.d.ts +11 -0
- package/dist/Model/Wallet/CurrencyQr.zod.js +9 -0
- package/dist/Model/Wallet/Wallet.d.ts +22 -0
- package/dist/Model/Wallet/Wallet.js +7 -0
- package/dist/Model/Wallet/Wallet.zod.d.ts +89 -0
- package/dist/Model/Wallet/Wallet.zod.js +14 -0
- package/dist/Model/Webhook/InvoiceBuyerFields.zod.d.ts +35 -0
- package/dist/Model/Webhook/InvoiceBuyerFields.zod.js +17 -0
- package/dist/Model/Webhook/InvoiceWebhook.d.ts +21 -0
- package/dist/Model/Webhook/InvoiceWebhook.js +3 -0
- package/dist/Model/Webhook/InvoiceWebhook.zod.d.ts +114 -0
- package/dist/Model/Webhook/InvoiceWebhook.zod.js +26 -0
- package/dist/Model/Webhook/InvoiceWebhookBuyerFields.d.ts +12 -0
- package/dist/Model/Webhook/InvoiceWebhookBuyerFields.js +3 -0
- package/dist/Model/Webhook/PayoutWebhook.d.ts +22 -0
- package/dist/Model/Webhook/PayoutWebhook.js +3 -0
- package/dist/Model/Webhook/PayoutWebhook.zod.d.ts +87 -0
- package/dist/Model/Webhook/PayoutWebhook.zod.js +27 -0
- package/dist/Model/Webhook/RefundWebhook.d.ts +21 -0
- package/dist/Model/Webhook/RefundWebhook.js +3 -0
- package/dist/Model/Webhook/RefundWebhook.zod.d.ts +62 -0
- package/dist/Model/Webhook/RefundWebhook.zod.js +26 -0
- package/dist/Model/index.d.ts +12 -0
- package/dist/Model/index.js +32 -0
- package/dist/PosToken.d.ts +13 -0
- package/dist/PosToken.js +21 -0
- package/dist/PrivateKey.d.ts +9 -0
- package/dist/PrivateKey.js +18 -0
- package/dist/TokenContainer.d.ts +39 -0
- package/dist/TokenContainer.js +71 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +46 -0
- package/dist/setup/BitPaySetup.d.ts +1 -0
- package/dist/setup/BitPaySetup.js +295 -0
- package/dist/util/BitPayResponseParser.d.ts +4 -0
- package/dist/util/BitPayResponseParser.js +67 -0
- package/dist/util/GuidGenerator.d.ts +3 -0
- package/dist/util/GuidGenerator.js +10 -0
- package/dist/util/KeyUtils.d.ts +12 -0
- package/dist/util/KeyUtils.js +47 -0
- package/dist/util/ParamsRemover.d.ts +3 -0
- package/dist/util/ParamsRemover.js +11 -0
- 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,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,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,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,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,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,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,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,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,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
|