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,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.shopperSchema = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
exports.shopperSchema = zod_1.z.object({
|
6
|
+
user: zod_1.z.string().optional()
|
7
|
+
});
|
8
|
+
//# sourceMappingURL=Shopper.zod.js.map
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare const supportedTransactionCurrencySchema: z.ZodObject<{
|
3
|
+
enabled: z.ZodBoolean;
|
4
|
+
reason: z.ZodOptional<z.ZodString>;
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
6
|
+
enabled: boolean;
|
7
|
+
reason?: string | undefined;
|
8
|
+
}, {
|
9
|
+
enabled: boolean;
|
10
|
+
reason?: string | undefined;
|
11
|
+
}>;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.supportedTransactionCurrencySchema = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
exports.supportedTransactionCurrencySchema = zod_1.z.object({
|
6
|
+
enabled: zod_1.z.boolean(),
|
7
|
+
reason: zod_1.z.string().optional()
|
8
|
+
});
|
9
|
+
//# sourceMappingURL=SupportedTransactionCurrency.zod.js.map
|
@@ -0,0 +1,25 @@
|
|
1
|
+
export interface BuyerFieldsInterface {
|
2
|
+
buyerName?: string;
|
3
|
+
buyerAddress1?: string;
|
4
|
+
buyerAddress2?: string;
|
5
|
+
buyerCity?: string;
|
6
|
+
buyerState?: string;
|
7
|
+
buyerZip?: string;
|
8
|
+
buyerCountry?: string;
|
9
|
+
buyerPhone?: string;
|
10
|
+
buyerNotify?: boolean;
|
11
|
+
buyerEmail?: string;
|
12
|
+
}
|
13
|
+
export declare class BuyerFields implements BuyerFields {
|
14
|
+
buyerName?: string;
|
15
|
+
buyerAddress1?: string;
|
16
|
+
buyerAddress2?: string;
|
17
|
+
buyerCity?: string;
|
18
|
+
buyerState?: string;
|
19
|
+
buyerZip?: string;
|
20
|
+
buyerCountry?: string;
|
21
|
+
buyerPhone?: string;
|
22
|
+
buyerNotify?: boolean;
|
23
|
+
buyerEmail?: string;
|
24
|
+
constructor();
|
25
|
+
}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare const buyerFieldsInterfaceSchema: z.ZodObject<{
|
3
|
+
buyerName: z.ZodOptional<z.ZodString>;
|
4
|
+
buyerAddress1: z.ZodOptional<z.ZodString>;
|
5
|
+
buyerAddress2: z.ZodOptional<z.ZodString>;
|
6
|
+
buyerCity: z.ZodOptional<z.ZodString>;
|
7
|
+
buyerState: z.ZodOptional<z.ZodString>;
|
8
|
+
buyerZip: z.ZodOptional<z.ZodString>;
|
9
|
+
buyerCountry: z.ZodOptional<z.ZodString>;
|
10
|
+
buyerPhone: z.ZodOptional<z.ZodString>;
|
11
|
+
buyerNotify: z.ZodOptional<z.ZodBoolean>;
|
12
|
+
buyerEmail: z.ZodOptional<z.ZodString>;
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
14
|
+
buyerName?: string | undefined;
|
15
|
+
buyerAddress1?: string | undefined;
|
16
|
+
buyerAddress2?: string | undefined;
|
17
|
+
buyerCity?: string | undefined;
|
18
|
+
buyerState?: string | undefined;
|
19
|
+
buyerZip?: string | undefined;
|
20
|
+
buyerCountry?: string | undefined;
|
21
|
+
buyerPhone?: string | undefined;
|
22
|
+
buyerNotify?: boolean | undefined;
|
23
|
+
buyerEmail?: string | undefined;
|
24
|
+
}, {
|
25
|
+
buyerName?: string | undefined;
|
26
|
+
buyerAddress1?: string | undefined;
|
27
|
+
buyerAddress2?: string | undefined;
|
28
|
+
buyerCity?: string | undefined;
|
29
|
+
buyerState?: string | undefined;
|
30
|
+
buyerZip?: string | undefined;
|
31
|
+
buyerCountry?: string | undefined;
|
32
|
+
buyerPhone?: string | undefined;
|
33
|
+
buyerNotify?: boolean | undefined;
|
34
|
+
buyerEmail?: string | undefined;
|
35
|
+
}>;
|
@@ -0,0 +1,17 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.buyerFieldsInterfaceSchema = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
exports.buyerFieldsInterfaceSchema = zod_1.z.object({
|
6
|
+
buyerName: zod_1.z.string().optional(),
|
7
|
+
buyerAddress1: zod_1.z.string().optional(),
|
8
|
+
buyerAddress2: zod_1.z.string().optional(),
|
9
|
+
buyerCity: zod_1.z.string().optional(),
|
10
|
+
buyerState: zod_1.z.string().optional(),
|
11
|
+
buyerZip: zod_1.z.string().optional(),
|
12
|
+
buyerCountry: zod_1.z.string().optional(),
|
13
|
+
buyerPhone: zod_1.z.string().optional(),
|
14
|
+
buyerNotify: zod_1.z.boolean().optional(),
|
15
|
+
buyerEmail: zod_1.z.string().optional()
|
16
|
+
});
|
17
|
+
//# sourceMappingURL=BuyerFields.zod.js.map
|
@@ -0,0 +1,9 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ledgerInterfaceSchema = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
exports.ledgerInterfaceSchema = zod_1.z.object({
|
6
|
+
currency: zod_1.z.string(),
|
7
|
+
balance: zod_1.z.number()
|
8
|
+
});
|
9
|
+
//# sourceMappingURL=Ledger.zod.js.map
|
@@ -0,0 +1,34 @@
|
|
1
|
+
import { BuyerFields } from './BuyerFields';
|
2
|
+
export interface LedgerEntryInterface {
|
3
|
+
type: string;
|
4
|
+
amount: number;
|
5
|
+
code: number;
|
6
|
+
description?: string;
|
7
|
+
timestamp?: string;
|
8
|
+
txType?: string;
|
9
|
+
scale?: number;
|
10
|
+
invoiceId: string;
|
11
|
+
buyerFields?: BuyerFields;
|
12
|
+
invoiceAmount: number;
|
13
|
+
invoiceCurrency: string;
|
14
|
+
transactionCurrency: string;
|
15
|
+
id: string;
|
16
|
+
supportRequest?: string;
|
17
|
+
}
|
18
|
+
export declare class LedgerEntry implements LedgerEntryInterface {
|
19
|
+
type: string;
|
20
|
+
amount: number;
|
21
|
+
code: number;
|
22
|
+
description?: string;
|
23
|
+
timestamp?: string;
|
24
|
+
txType?: string;
|
25
|
+
scale?: number;
|
26
|
+
invoiceId: string;
|
27
|
+
buyerFields?: BuyerFields;
|
28
|
+
invoiceAmount: number;
|
29
|
+
invoiceCurrency: string;
|
30
|
+
transactionCurrency: string;
|
31
|
+
id: string;
|
32
|
+
supportRequest?: string;
|
33
|
+
constructor();
|
34
|
+
}
|
@@ -0,0 +1,102 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare const ledgerEntryInterfaceSchema: z.ZodObject<{
|
3
|
+
buyerFields: z.ZodObject<{
|
4
|
+
buyerName: z.ZodOptional<z.ZodString>;
|
5
|
+
buyerAddress1: z.ZodOptional<z.ZodString>;
|
6
|
+
buyerAddress2: z.ZodOptional<z.ZodString>;
|
7
|
+
buyerCity: z.ZodOptional<z.ZodString>;
|
8
|
+
buyerState: z.ZodOptional<z.ZodString>;
|
9
|
+
buyerZip: z.ZodOptional<z.ZodString>;
|
10
|
+
buyerCountry: z.ZodOptional<z.ZodString>;
|
11
|
+
buyerPhone: z.ZodOptional<z.ZodString>;
|
12
|
+
buyerNotify: z.ZodOptional<z.ZodBoolean>;
|
13
|
+
buyerEmail: z.ZodOptional<z.ZodString>;
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
15
|
+
buyerName?: string | undefined;
|
16
|
+
buyerAddress1?: string | undefined;
|
17
|
+
buyerAddress2?: string | undefined;
|
18
|
+
buyerCity?: string | undefined;
|
19
|
+
buyerState?: string | undefined;
|
20
|
+
buyerZip?: string | undefined;
|
21
|
+
buyerCountry?: string | undefined;
|
22
|
+
buyerPhone?: string | undefined;
|
23
|
+
buyerNotify?: boolean | undefined;
|
24
|
+
buyerEmail?: string | undefined;
|
25
|
+
}, {
|
26
|
+
buyerName?: string | undefined;
|
27
|
+
buyerAddress1?: string | undefined;
|
28
|
+
buyerAddress2?: string | undefined;
|
29
|
+
buyerCity?: string | undefined;
|
30
|
+
buyerState?: string | undefined;
|
31
|
+
buyerZip?: string | undefined;
|
32
|
+
buyerCountry?: string | undefined;
|
33
|
+
buyerPhone?: string | undefined;
|
34
|
+
buyerNotify?: boolean | undefined;
|
35
|
+
buyerEmail?: string | undefined;
|
36
|
+
}>;
|
37
|
+
type: z.ZodString;
|
38
|
+
amount: z.ZodNumber;
|
39
|
+
code: z.ZodNumber;
|
40
|
+
description: z.ZodOptional<z.ZodString>;
|
41
|
+
timestamp: z.ZodOptional<z.ZodString>;
|
42
|
+
txType: z.ZodOptional<z.ZodString>;
|
43
|
+
scale: z.ZodOptional<z.ZodNumber>;
|
44
|
+
invoiceId: z.ZodString;
|
45
|
+
invoiceAmount: z.ZodNumber;
|
46
|
+
invoiceCurrency: z.ZodString;
|
47
|
+
transactionCurrency: z.ZodString;
|
48
|
+
id: z.ZodString;
|
49
|
+
supportRequest: z.ZodOptional<z.ZodString>;
|
50
|
+
}, "strip", z.ZodTypeAny, {
|
51
|
+
type: string;
|
52
|
+
code: number;
|
53
|
+
id: string;
|
54
|
+
amount: number;
|
55
|
+
transactionCurrency: string;
|
56
|
+
buyerFields: {
|
57
|
+
buyerName?: string | undefined;
|
58
|
+
buyerAddress1?: string | undefined;
|
59
|
+
buyerAddress2?: string | undefined;
|
60
|
+
buyerCity?: string | undefined;
|
61
|
+
buyerState?: string | undefined;
|
62
|
+
buyerZip?: string | undefined;
|
63
|
+
buyerCountry?: string | undefined;
|
64
|
+
buyerPhone?: string | undefined;
|
65
|
+
buyerNotify?: boolean | undefined;
|
66
|
+
buyerEmail?: string | undefined;
|
67
|
+
};
|
68
|
+
invoiceId: string;
|
69
|
+
invoiceAmount: number;
|
70
|
+
invoiceCurrency: string;
|
71
|
+
scale?: number | undefined;
|
72
|
+
description?: string | undefined;
|
73
|
+
supportRequest?: string | undefined;
|
74
|
+
timestamp?: string | undefined;
|
75
|
+
txType?: string | undefined;
|
76
|
+
}, {
|
77
|
+
type: string;
|
78
|
+
code: number;
|
79
|
+
id: string;
|
80
|
+
amount: number;
|
81
|
+
transactionCurrency: string;
|
82
|
+
buyerFields: {
|
83
|
+
buyerName?: string | undefined;
|
84
|
+
buyerAddress1?: string | undefined;
|
85
|
+
buyerAddress2?: string | undefined;
|
86
|
+
buyerCity?: string | undefined;
|
87
|
+
buyerState?: string | undefined;
|
88
|
+
buyerZip?: string | undefined;
|
89
|
+
buyerCountry?: string | undefined;
|
90
|
+
buyerPhone?: string | undefined;
|
91
|
+
buyerNotify?: boolean | undefined;
|
92
|
+
buyerEmail?: string | undefined;
|
93
|
+
};
|
94
|
+
invoiceId: string;
|
95
|
+
invoiceAmount: number;
|
96
|
+
invoiceCurrency: string;
|
97
|
+
scale?: number | undefined;
|
98
|
+
description?: string | undefined;
|
99
|
+
supportRequest?: string | undefined;
|
100
|
+
timestamp?: string | undefined;
|
101
|
+
txType?: string | undefined;
|
102
|
+
}>;
|
@@ -0,0 +1,22 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ledgerEntryInterfaceSchema = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
const BuyerFields_zod_1 = require("./BuyerFields.zod");
|
6
|
+
exports.ledgerEntryInterfaceSchema = zod_1.z.object({
|
7
|
+
buyerFields: BuyerFields_zod_1.buyerFieldsInterfaceSchema,
|
8
|
+
type: zod_1.z.string(),
|
9
|
+
amount: zod_1.z.number(),
|
10
|
+
code: zod_1.z.number(),
|
11
|
+
description: zod_1.z.string().optional(),
|
12
|
+
timestamp: zod_1.z.string().optional(),
|
13
|
+
txType: zod_1.z.string().optional(),
|
14
|
+
scale: zod_1.z.number().optional(),
|
15
|
+
invoiceId: zod_1.z.string(),
|
16
|
+
invoiceAmount: zod_1.z.number(),
|
17
|
+
invoiceCurrency: zod_1.z.string(),
|
18
|
+
transactionCurrency: zod_1.z.string(),
|
19
|
+
id: zod_1.z.string(),
|
20
|
+
supportRequest: zod_1.z.string().optional()
|
21
|
+
});
|
22
|
+
//# sourceMappingURL=LedgerEntry.zod.js.map
|
@@ -0,0 +1,59 @@
|
|
1
|
+
import { PayoutTransaction } from './PayoutTransaction';
|
2
|
+
export interface PayoutInterface {
|
3
|
+
amount: number;
|
4
|
+
currency: string;
|
5
|
+
ledgerCurrency: string;
|
6
|
+
token?: string;
|
7
|
+
effectiveDate?: string;
|
8
|
+
dateExecuted?: string;
|
9
|
+
accountId?: string;
|
10
|
+
reference?: string;
|
11
|
+
notificationEmail?: string;
|
12
|
+
notificationURL?: string;
|
13
|
+
email?: string;
|
14
|
+
recipientId?: string;
|
15
|
+
shopperId?: string;
|
16
|
+
label?: string;
|
17
|
+
message?: string;
|
18
|
+
id?: string;
|
19
|
+
status?: string;
|
20
|
+
groupId?: string;
|
21
|
+
requestDate?: string;
|
22
|
+
exchangeRates?: Record<string, Record<string, number>>;
|
23
|
+
transactions?: PayoutTransaction[];
|
24
|
+
code?: number;
|
25
|
+
ignoreEmails?: boolean;
|
26
|
+
}
|
27
|
+
export declare class Payout implements PayoutInterface {
|
28
|
+
amount: number;
|
29
|
+
currency: string;
|
30
|
+
ledgerCurrency: string;
|
31
|
+
token?: string;
|
32
|
+
effectiveDate?: string;
|
33
|
+
dateExecuted?: string;
|
34
|
+
accountId?: string;
|
35
|
+
reference?: string;
|
36
|
+
notificationEmail?: string;
|
37
|
+
notificationURL?: string;
|
38
|
+
email?: string;
|
39
|
+
recipientId?: string;
|
40
|
+
shopperId?: string;
|
41
|
+
label?: string;
|
42
|
+
message?: string;
|
43
|
+
id?: string;
|
44
|
+
status?: string;
|
45
|
+
groupId?: string;
|
46
|
+
requestDate?: string;
|
47
|
+
exchangeRates?: Record<string, Record<string, number>>;
|
48
|
+
transactions?: PayoutTransaction[];
|
49
|
+
code?: number;
|
50
|
+
ignoreEmails: boolean;
|
51
|
+
/**
|
52
|
+
* Constructor, create a request Payout object.
|
53
|
+
*
|
54
|
+
* @param amount The decimal amount to be paid in the Payout request.
|
55
|
+
* @param currency The three digit currency string for the Payout to use.
|
56
|
+
* @param ledgerCurrency The three digit currency string for the Payout to use.
|
57
|
+
*/
|
58
|
+
constructor(amount: number, currency: string, ledgerCurrency: string);
|
59
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.Payout = void 0;
|
4
|
+
class Payout {
|
5
|
+
/**
|
6
|
+
* Constructor, create a request Payout object.
|
7
|
+
*
|
8
|
+
* @param amount The decimal amount to be paid in the Payout request.
|
9
|
+
* @param currency The three digit currency string for the Payout to use.
|
10
|
+
* @param ledgerCurrency The three digit currency string for the Payout to use.
|
11
|
+
*/
|
12
|
+
constructor(amount, currency, ledgerCurrency) {
|
13
|
+
this.ignoreEmails = false;
|
14
|
+
this.currency = currency;
|
15
|
+
this.amount = amount;
|
16
|
+
this.ledgerCurrency = ledgerCurrency;
|
17
|
+
}
|
18
|
+
}
|
19
|
+
exports.Payout = Payout;
|
20
|
+
//# sourceMappingURL=Payout.js.map
|
@@ -0,0 +1,99 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare const payoutInterfaceSchema: z.ZodObject<{
|
3
|
+
transactions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
4
|
+
txid: z.ZodString;
|
5
|
+
amount: z.ZodNumber;
|
6
|
+
date: z.ZodString;
|
7
|
+
confirmations: z.ZodOptional<z.ZodNumber>;
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
9
|
+
date: string;
|
10
|
+
amount: number;
|
11
|
+
txid: string;
|
12
|
+
confirmations?: number | undefined;
|
13
|
+
}, {
|
14
|
+
date: string;
|
15
|
+
amount: number;
|
16
|
+
txid: string;
|
17
|
+
confirmations?: number | undefined;
|
18
|
+
}>, "many">>;
|
19
|
+
token: z.ZodOptional<z.ZodString>;
|
20
|
+
amount: z.ZodOptional<z.ZodNumber>;
|
21
|
+
currency: z.ZodOptional<z.ZodString>;
|
22
|
+
effectiveDate: z.ZodOptional<z.ZodString>;
|
23
|
+
dateExecuted: z.ZodOptional<z.ZodString>;
|
24
|
+
ledgerCurrency: z.ZodOptional<z.ZodString>;
|
25
|
+
accountId: z.ZodOptional<z.ZodString>;
|
26
|
+
reference: z.ZodOptional<z.ZodString>;
|
27
|
+
notificationEmail: z.ZodOptional<z.ZodString>;
|
28
|
+
notificationURL: z.ZodOptional<z.ZodString>;
|
29
|
+
email: z.ZodOptional<z.ZodString>;
|
30
|
+
recipientId: z.ZodOptional<z.ZodString>;
|
31
|
+
shopperId: z.ZodOptional<z.ZodString>;
|
32
|
+
label: z.ZodOptional<z.ZodString>;
|
33
|
+
message: z.ZodOptional<z.ZodString>;
|
34
|
+
id: z.ZodOptional<z.ZodString>;
|
35
|
+
status: z.ZodOptional<z.ZodString>;
|
36
|
+
groupId: z.ZodOptional<z.ZodString>;
|
37
|
+
requestDate: z.ZodOptional<z.ZodString>;
|
38
|
+
exchangeRates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>>;
|
39
|
+
code: z.ZodOptional<z.ZodNumber>;
|
40
|
+
ignoreEmails: z.ZodOptional<z.ZodBoolean>;
|
41
|
+
}, "strip", z.ZodTypeAny, {
|
42
|
+
code?: number | undefined;
|
43
|
+
message?: string | undefined;
|
44
|
+
id?: string | undefined;
|
45
|
+
label?: string | undefined;
|
46
|
+
email?: string | undefined;
|
47
|
+
status?: string | undefined;
|
48
|
+
currency?: string | undefined;
|
49
|
+
token?: string | undefined;
|
50
|
+
amount?: number | undefined;
|
51
|
+
transactions?: {
|
52
|
+
date: string;
|
53
|
+
amount: number;
|
54
|
+
txid: string;
|
55
|
+
confirmations?: number | undefined;
|
56
|
+
}[] | undefined;
|
57
|
+
notificationURL?: string | undefined;
|
58
|
+
notificationEmail?: string | undefined;
|
59
|
+
exchangeRates?: Record<string, Record<string, number>> | undefined;
|
60
|
+
requestDate?: string | undefined;
|
61
|
+
reference?: string | undefined;
|
62
|
+
effectiveDate?: string | undefined;
|
63
|
+
dateExecuted?: string | undefined;
|
64
|
+
ledgerCurrency?: string | undefined;
|
65
|
+
accountId?: string | undefined;
|
66
|
+
recipientId?: string | undefined;
|
67
|
+
shopperId?: string | undefined;
|
68
|
+
groupId?: string | undefined;
|
69
|
+
ignoreEmails?: boolean | undefined;
|
70
|
+
}, {
|
71
|
+
code?: number | undefined;
|
72
|
+
message?: string | undefined;
|
73
|
+
id?: string | undefined;
|
74
|
+
label?: string | undefined;
|
75
|
+
email?: string | undefined;
|
76
|
+
status?: string | undefined;
|
77
|
+
currency?: string | undefined;
|
78
|
+
token?: string | undefined;
|
79
|
+
amount?: number | undefined;
|
80
|
+
transactions?: {
|
81
|
+
date: string;
|
82
|
+
amount: number;
|
83
|
+
txid: string;
|
84
|
+
confirmations?: number | undefined;
|
85
|
+
}[] | undefined;
|
86
|
+
notificationURL?: string | undefined;
|
87
|
+
notificationEmail?: string | undefined;
|
88
|
+
exchangeRates?: Record<string, Record<string, number>> | undefined;
|
89
|
+
requestDate?: string | undefined;
|
90
|
+
reference?: string | undefined;
|
91
|
+
effectiveDate?: string | undefined;
|
92
|
+
dateExecuted?: string | undefined;
|
93
|
+
ledgerCurrency?: string | undefined;
|
94
|
+
accountId?: string | undefined;
|
95
|
+
recipientId?: string | undefined;
|
96
|
+
shopperId?: string | undefined;
|
97
|
+
groupId?: string | undefined;
|
98
|
+
ignoreEmails?: boolean | undefined;
|
99
|
+
}>;
|
@@ -0,0 +1,31 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.payoutInterfaceSchema = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
const PayoutTransaction_zod_1 = require("./PayoutTransaction.zod");
|
6
|
+
exports.payoutInterfaceSchema = zod_1.z.object({
|
7
|
+
transactions: PayoutTransaction_zod_1.payoutTransactionInterfaceSchema.array().optional(),
|
8
|
+
token: zod_1.z.string().optional(),
|
9
|
+
amount: zod_1.z.number().optional(),
|
10
|
+
currency: zod_1.z.string().optional(),
|
11
|
+
effectiveDate: zod_1.z.string().optional(),
|
12
|
+
dateExecuted: zod_1.z.string().optional(),
|
13
|
+
ledgerCurrency: zod_1.z.string().optional(),
|
14
|
+
accountId: zod_1.z.string().optional(),
|
15
|
+
reference: zod_1.z.string().optional(),
|
16
|
+
notificationEmail: zod_1.z.string().optional(),
|
17
|
+
notificationURL: zod_1.z.string().optional(),
|
18
|
+
email: zod_1.z.string().optional(),
|
19
|
+
recipientId: zod_1.z.string().optional(),
|
20
|
+
shopperId: zod_1.z.string().optional(),
|
21
|
+
label: zod_1.z.string().optional(),
|
22
|
+
message: zod_1.z.string().optional(),
|
23
|
+
id: zod_1.z.string().optional(),
|
24
|
+
status: zod_1.z.string().optional(),
|
25
|
+
groupId: zod_1.z.string().optional(),
|
26
|
+
requestDate: zod_1.z.string().optional(),
|
27
|
+
exchangeRates: zod_1.z.record(zod_1.z.record(zod_1.z.number())).optional(),
|
28
|
+
code: zod_1.z.number().optional(),
|
29
|
+
ignoreEmails: zod_1.z.boolean().optional()
|
30
|
+
});
|
31
|
+
//# sourceMappingURL=Payout.zod.js.map
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { PayoutInterface } from './Payout';
|
2
|
+
import { PayoutGroupFailedInterface } from './PayoutGroupFailed';
|
3
|
+
export interface PayoutGroupInterface {
|
4
|
+
payouts: PayoutInterface[];
|
5
|
+
failed: PayoutGroupFailedInterface[];
|
6
|
+
}
|
7
|
+
export declare class PayoutGroup implements PayoutGroupInterface {
|
8
|
+
payouts: PayoutInterface[];
|
9
|
+
failed: PayoutGroupFailedInterface[];
|
10
|
+
constructor(payouts: PayoutInterface[], failed: PayoutGroupFailedInterface[]);
|
11
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.PayoutGroup = void 0;
|
4
|
+
class PayoutGroup {
|
5
|
+
constructor(payouts, failed) {
|
6
|
+
this.payouts = payouts;
|
7
|
+
this.failed = failed;
|
8
|
+
}
|
9
|
+
}
|
10
|
+
exports.PayoutGroup = PayoutGroup;
|
11
|
+
//# sourceMappingURL=PayoutGroup.js.map
|