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,20 @@
|
|
1
|
+
import { RefundInfo } from './RefundInfo';
|
2
|
+
export interface InvoiceDataInterface {
|
3
|
+
price: number;
|
4
|
+
orderId?: string;
|
5
|
+
date?: string;
|
6
|
+
currency?: string;
|
7
|
+
transactionCurrency?: string;
|
8
|
+
payoutPercentage?: Record<string, number>;
|
9
|
+
refundInfo?: RefundInfo;
|
10
|
+
}
|
11
|
+
export declare class InvoiceData implements InvoiceDataInterface {
|
12
|
+
price: number;
|
13
|
+
orderId?: string;
|
14
|
+
date?: string;
|
15
|
+
currency?: string;
|
16
|
+
transactionCurrency?: string;
|
17
|
+
payoutPercentage?: Record<string, number>;
|
18
|
+
refundInfo?: RefundInfo;
|
19
|
+
constructor();
|
20
|
+
}
|
@@ -0,0 +1,51 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare const invoiceDataInterfaceSchema: z.ZodObject<{
|
3
|
+
refundInfo: z.ZodOptional<z.ZodObject<{
|
4
|
+
supportRequest: z.ZodOptional<z.ZodString>;
|
5
|
+
currency: z.ZodString;
|
6
|
+
refundRequestEid: z.ZodOptional<z.ZodString>;
|
7
|
+
amounts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
9
|
+
currency: string;
|
10
|
+
supportRequest?: string | undefined;
|
11
|
+
amounts?: Record<string, number> | undefined;
|
12
|
+
refundRequestEid?: string | undefined;
|
13
|
+
}, {
|
14
|
+
currency: string;
|
15
|
+
supportRequest?: string | undefined;
|
16
|
+
amounts?: Record<string, number> | undefined;
|
17
|
+
refundRequestEid?: string | undefined;
|
18
|
+
}>>;
|
19
|
+
price: z.ZodNumber;
|
20
|
+
orderId: z.ZodOptional<z.ZodString>;
|
21
|
+
date: z.ZodOptional<z.ZodString>;
|
22
|
+
currency: z.ZodOptional<z.ZodString>;
|
23
|
+
transactionCurrency: z.ZodOptional<z.ZodString>;
|
24
|
+
payoutPercentage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
25
|
+
}, "strip", z.ZodTypeAny, {
|
26
|
+
price: number;
|
27
|
+
currency?: string | undefined;
|
28
|
+
date?: string | undefined;
|
29
|
+
refundInfo?: {
|
30
|
+
currency: string;
|
31
|
+
supportRequest?: string | undefined;
|
32
|
+
amounts?: Record<string, number> | undefined;
|
33
|
+
refundRequestEid?: string | undefined;
|
34
|
+
} | undefined;
|
35
|
+
orderId?: string | undefined;
|
36
|
+
transactionCurrency?: string | undefined;
|
37
|
+
payoutPercentage?: Record<string, number> | undefined;
|
38
|
+
}, {
|
39
|
+
price: number;
|
40
|
+
currency?: string | undefined;
|
41
|
+
date?: string | undefined;
|
42
|
+
refundInfo?: {
|
43
|
+
currency: string;
|
44
|
+
supportRequest?: string | undefined;
|
45
|
+
amounts?: Record<string, number> | undefined;
|
46
|
+
refundRequestEid?: string | undefined;
|
47
|
+
} | undefined;
|
48
|
+
orderId?: string | undefined;
|
49
|
+
transactionCurrency?: string | undefined;
|
50
|
+
payoutPercentage?: Record<string, number> | undefined;
|
51
|
+
}>;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.invoiceDataInterfaceSchema = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
const RefundInfo_zod_1 = require("./RefundInfo.zod");
|
6
|
+
exports.invoiceDataInterfaceSchema = zod_1.z.object({
|
7
|
+
refundInfo: RefundInfo_zod_1.refundInfoInterfaceSchema.optional(),
|
8
|
+
price: zod_1.z.number(),
|
9
|
+
orderId: zod_1.z.string().optional(),
|
10
|
+
date: zod_1.z.string().optional(),
|
11
|
+
currency: zod_1.z.string().optional(),
|
12
|
+
transactionCurrency: zod_1.z.string().optional(),
|
13
|
+
payoutPercentage: zod_1.z.record(zod_1.z.number()).optional()
|
14
|
+
});
|
15
|
+
//# sourceMappingURL=InvoiceData.zod.js.map
|
@@ -0,0 +1,53 @@
|
|
1
|
+
export interface PayoutInfoInterface {
|
2
|
+
name?: string;
|
3
|
+
account?: string;
|
4
|
+
routing?: string;
|
5
|
+
merchantEin?: string;
|
6
|
+
label?: string;
|
7
|
+
bankCountry?: string;
|
8
|
+
bank?: string;
|
9
|
+
swift?: string;
|
10
|
+
address?: string;
|
11
|
+
city?: string;
|
12
|
+
postal?: string;
|
13
|
+
sort?: string;
|
14
|
+
wire?: boolean;
|
15
|
+
bankName?: string;
|
16
|
+
bankAddress?: string;
|
17
|
+
bankAddress2?: string;
|
18
|
+
iban?: string;
|
19
|
+
additionalInformation?: string;
|
20
|
+
accountHolderName?: string;
|
21
|
+
accountHolderAddress?: string;
|
22
|
+
accountHolderAddress2?: string;
|
23
|
+
accountHolderPostalCode?: string;
|
24
|
+
accountHolderCity?: string;
|
25
|
+
accountHolderCountry?: string;
|
26
|
+
}
|
27
|
+
export declare class PayoutInfo implements PayoutInfoInterface {
|
28
|
+
name?: string;
|
29
|
+
account?: string;
|
30
|
+
routing?: string;
|
31
|
+
merchantEin?: string;
|
32
|
+
label?: string;
|
33
|
+
bankCountry?: string;
|
34
|
+
bank?: string;
|
35
|
+
swift?: string;
|
36
|
+
address?: string;
|
37
|
+
city?: string;
|
38
|
+
postal?: string;
|
39
|
+
sort?: string;
|
40
|
+
wire?: boolean;
|
41
|
+
bankName?: string;
|
42
|
+
bankAddress?: string;
|
43
|
+
bankAddress2?: string;
|
44
|
+
iban?: string;
|
45
|
+
additionalInformation?: string;
|
46
|
+
accountHolderName?: string;
|
47
|
+
accountHolderAddress?: string;
|
48
|
+
accountHolderAddress2?: string;
|
49
|
+
accountHolderPostalCode?: string;
|
50
|
+
accountHolderCity?: string;
|
51
|
+
accountHolderCountry?: string;
|
52
|
+
constructor();
|
53
|
+
}
|
@@ -0,0 +1,77 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare const payoutInfoInterfaceSchema: z.ZodObject<{
|
3
|
+
name: z.ZodOptional<z.ZodString>;
|
4
|
+
account: z.ZodOptional<z.ZodString>;
|
5
|
+
routing: z.ZodOptional<z.ZodString>;
|
6
|
+
merchantEin: z.ZodOptional<z.ZodString>;
|
7
|
+
label: z.ZodOptional<z.ZodString>;
|
8
|
+
bankCountry: z.ZodOptional<z.ZodString>;
|
9
|
+
bank: z.ZodOptional<z.ZodString>;
|
10
|
+
swift: z.ZodOptional<z.ZodString>;
|
11
|
+
address: z.ZodOptional<z.ZodString>;
|
12
|
+
city: z.ZodOptional<z.ZodString>;
|
13
|
+
postal: z.ZodOptional<z.ZodString>;
|
14
|
+
sort: z.ZodOptional<z.ZodString>;
|
15
|
+
wire: z.ZodOptional<z.ZodBoolean>;
|
16
|
+
bankName: z.ZodOptional<z.ZodString>;
|
17
|
+
bankAddress: z.ZodOptional<z.ZodString>;
|
18
|
+
bankAddress2: z.ZodOptional<z.ZodString>;
|
19
|
+
iban: z.ZodOptional<z.ZodString>;
|
20
|
+
additionalInformation: z.ZodOptional<z.ZodString>;
|
21
|
+
accountHolderName: z.ZodOptional<z.ZodString>;
|
22
|
+
accountHolderAddress: z.ZodOptional<z.ZodString>;
|
23
|
+
accountHolderAddress2: z.ZodOptional<z.ZodString>;
|
24
|
+
accountHolderPostalCode: z.ZodOptional<z.ZodString>;
|
25
|
+
accountHolderCity: z.ZodOptional<z.ZodString>;
|
26
|
+
accountHolderCountry: z.ZodOptional<z.ZodString>;
|
27
|
+
}, "strip", z.ZodTypeAny, {
|
28
|
+
sort?: string | undefined;
|
29
|
+
address?: string | undefined;
|
30
|
+
name?: string | undefined;
|
31
|
+
label?: string | undefined;
|
32
|
+
city?: string | undefined;
|
33
|
+
account?: string | undefined;
|
34
|
+
routing?: string | undefined;
|
35
|
+
merchantEin?: string | undefined;
|
36
|
+
bankCountry?: string | undefined;
|
37
|
+
bank?: string | undefined;
|
38
|
+
swift?: string | undefined;
|
39
|
+
postal?: string | undefined;
|
40
|
+
wire?: boolean | undefined;
|
41
|
+
bankName?: string | undefined;
|
42
|
+
bankAddress?: string | undefined;
|
43
|
+
bankAddress2?: string | undefined;
|
44
|
+
iban?: string | undefined;
|
45
|
+
additionalInformation?: string | undefined;
|
46
|
+
accountHolderName?: string | undefined;
|
47
|
+
accountHolderAddress?: string | undefined;
|
48
|
+
accountHolderAddress2?: string | undefined;
|
49
|
+
accountHolderPostalCode?: string | undefined;
|
50
|
+
accountHolderCity?: string | undefined;
|
51
|
+
accountHolderCountry?: string | undefined;
|
52
|
+
}, {
|
53
|
+
sort?: string | undefined;
|
54
|
+
address?: string | undefined;
|
55
|
+
name?: string | undefined;
|
56
|
+
label?: string | undefined;
|
57
|
+
city?: string | undefined;
|
58
|
+
account?: string | undefined;
|
59
|
+
routing?: string | undefined;
|
60
|
+
merchantEin?: string | undefined;
|
61
|
+
bankCountry?: string | undefined;
|
62
|
+
bank?: string | undefined;
|
63
|
+
swift?: string | undefined;
|
64
|
+
postal?: string | undefined;
|
65
|
+
wire?: boolean | undefined;
|
66
|
+
bankName?: string | undefined;
|
67
|
+
bankAddress?: string | undefined;
|
68
|
+
bankAddress2?: string | undefined;
|
69
|
+
iban?: string | undefined;
|
70
|
+
additionalInformation?: string | undefined;
|
71
|
+
accountHolderName?: string | undefined;
|
72
|
+
accountHolderAddress?: string | undefined;
|
73
|
+
accountHolderAddress2?: string | undefined;
|
74
|
+
accountHolderPostalCode?: string | undefined;
|
75
|
+
accountHolderCity?: string | undefined;
|
76
|
+
accountHolderCountry?: string | undefined;
|
77
|
+
}>;
|
@@ -0,0 +1,31 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.payoutInfoInterfaceSchema = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
exports.payoutInfoInterfaceSchema = zod_1.z.object({
|
6
|
+
name: zod_1.z.string().optional(),
|
7
|
+
account: zod_1.z.string().optional(),
|
8
|
+
routing: zod_1.z.string().optional(),
|
9
|
+
merchantEin: zod_1.z.string().optional(),
|
10
|
+
label: zod_1.z.string().optional(),
|
11
|
+
bankCountry: zod_1.z.string().optional(),
|
12
|
+
bank: zod_1.z.string().optional(),
|
13
|
+
swift: zod_1.z.string().optional(),
|
14
|
+
address: zod_1.z.string().optional(),
|
15
|
+
city: zod_1.z.string().optional(),
|
16
|
+
postal: zod_1.z.string().optional(),
|
17
|
+
sort: zod_1.z.string().optional(),
|
18
|
+
wire: zod_1.z.boolean().optional(),
|
19
|
+
bankName: zod_1.z.string().optional(),
|
20
|
+
bankAddress: zod_1.z.string().optional(),
|
21
|
+
bankAddress2: zod_1.z.string().optional(),
|
22
|
+
iban: zod_1.z.string().optional(),
|
23
|
+
additionalInformation: zod_1.z.string().optional(),
|
24
|
+
accountHolderName: zod_1.z.string().optional(),
|
25
|
+
accountHolderAddress: zod_1.z.string().optional(),
|
26
|
+
accountHolderAddress2: zod_1.z.string().optional(),
|
27
|
+
accountHolderPostalCode: zod_1.z.string().optional(),
|
28
|
+
accountHolderCity: zod_1.z.string().optional(),
|
29
|
+
accountHolderCountry: zod_1.z.string().optional()
|
30
|
+
});
|
31
|
+
//# sourceMappingURL=PayoutInfo.zod.js.map
|
@@ -0,0 +1,13 @@
|
|
1
|
+
export interface RefundInfoInterface {
|
2
|
+
supportRequest?: string;
|
3
|
+
currency: string;
|
4
|
+
refundRequestEid?: string;
|
5
|
+
amounts?: Record<string, number>;
|
6
|
+
}
|
7
|
+
export declare class RefundInfo implements RefundInfoInterface {
|
8
|
+
supportRequest?: string;
|
9
|
+
currency: string;
|
10
|
+
refundRequestEid?: string;
|
11
|
+
amounts?: Record<string, number>;
|
12
|
+
constructor();
|
13
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare const refundInfoInterfaceSchema: z.ZodObject<{
|
3
|
+
supportRequest: z.ZodOptional<z.ZodString>;
|
4
|
+
currency: z.ZodString;
|
5
|
+
refundRequestEid: z.ZodOptional<z.ZodString>;
|
6
|
+
amounts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
8
|
+
currency: string;
|
9
|
+
supportRequest?: string | undefined;
|
10
|
+
amounts?: Record<string, number> | undefined;
|
11
|
+
refundRequestEid?: string | undefined;
|
12
|
+
}, {
|
13
|
+
currency: string;
|
14
|
+
supportRequest?: string | undefined;
|
15
|
+
amounts?: Record<string, number> | undefined;
|
16
|
+
refundRequestEid?: string | undefined;
|
17
|
+
}>;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.refundInfoInterfaceSchema = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
exports.refundInfoInterfaceSchema = zod_1.z.object({
|
6
|
+
supportRequest: zod_1.z.string().optional(),
|
7
|
+
currency: zod_1.z.string(),
|
8
|
+
refundRequestEid: zod_1.z.string().optional(),
|
9
|
+
amounts: zod_1.z.record(zod_1.z.number()).optional()
|
10
|
+
});
|
11
|
+
//# sourceMappingURL=RefundInfo.zod.js.map
|
@@ -0,0 +1,40 @@
|
|
1
|
+
import { PayoutInfo } from './PayoutInfo';
|
2
|
+
import { SettlementLedgerEntry } from './SettlementLedgerEntry';
|
3
|
+
import { WithHoldings } from './WithHoldings';
|
4
|
+
export interface SettlementInterface {
|
5
|
+
id: string | null;
|
6
|
+
accountId: string | null;
|
7
|
+
currency: string;
|
8
|
+
payoutInfo?: PayoutInfo;
|
9
|
+
status: string;
|
10
|
+
dateCreated: string;
|
11
|
+
dateExecuted: string;
|
12
|
+
openingDate: string;
|
13
|
+
closingDate: string;
|
14
|
+
openingBalance: number;
|
15
|
+
ledgerEntriesSum: number;
|
16
|
+
withholdings?: WithHoldings[];
|
17
|
+
withholdingsSum?: number;
|
18
|
+
totalAmount: number;
|
19
|
+
ledgerEntries?: SettlementLedgerEntry[];
|
20
|
+
token?: string;
|
21
|
+
}
|
22
|
+
export declare class Settlement implements SettlementInterface {
|
23
|
+
id: string | null;
|
24
|
+
accountId: string | null;
|
25
|
+
currency: string;
|
26
|
+
payoutInfo?: PayoutInfo;
|
27
|
+
status: string;
|
28
|
+
dateCreated: string;
|
29
|
+
dateExecuted: string;
|
30
|
+
openingDate: string;
|
31
|
+
closingDate: string;
|
32
|
+
openingBalance: number;
|
33
|
+
ledgerEntriesSum: number;
|
34
|
+
withholdings?: WithHoldings[];
|
35
|
+
withholdingsSum?: number;
|
36
|
+
totalAmount: number;
|
37
|
+
ledgerEntries?: SettlementLedgerEntry[];
|
38
|
+
token?: string;
|
39
|
+
constructor();
|
40
|
+
}
|