@payabli/sdk-node 0.0.140 → 0.0.142
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -15
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/Client.d.ts +3 -0
- package/dist/cjs/Client.js +41 -36
- package/dist/cjs/api/resources/bill/types/BillOutData.d.ts +5 -1
- package/dist/cjs/api/resources/cloud/client/Client.d.ts +4 -0
- package/dist/cjs/api/resources/cloud/client/Client.js +4 -0
- package/dist/cjs/api/resources/index.d.ts +4 -0
- package/dist/cjs/api/resources/index.js +5 -1
- package/dist/cjs/api/resources/management/client/Client.d.ts +41 -0
- package/dist/cjs/api/resources/management/client/Client.js +131 -0
- package/dist/cjs/api/resources/management/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/management/client/index.js +17 -0
- package/dist/cjs/api/resources/management/client/requests/VerifyAccountDetailsRequest.d.ts +25 -0
- package/dist/cjs/api/resources/management/client/requests/VerifyAccountDetailsRequest.js +3 -0
- package/dist/cjs/api/resources/management/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/management/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/management/exports.d.ts +2 -0
- package/dist/cjs/api/resources/management/exports.js +21 -0
- package/dist/cjs/api/resources/management/index.d.ts +2 -0
- package/dist/cjs/api/resources/management/index.js +18 -0
- package/dist/cjs/api/resources/management/types/BankAccountVerificationDetailsResponse.d.ts +31 -0
- package/dist/cjs/api/resources/management/types/BankAccountVerificationDetailsResponse.js +3 -0
- package/dist/cjs/api/resources/management/types/VerifyAccountDetailsResponse.d.ts +9 -0
- package/dist/cjs/api/resources/management/types/VerifyAccountDetailsResponse.js +3 -0
- package/dist/cjs/api/resources/management/types/index.d.ts +2 -0
- package/dist/cjs/api/resources/management/types/index.js +18 -0
- package/dist/cjs/api/resources/moneyIn/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/moneyIn/client/Client.js +1 -1
- package/dist/cjs/api/resources/moneyIn/types/TransactionDetailPaymentData.d.ts +1 -1
- package/dist/cjs/api/resources/moneyOut/client/Client.d.ts +5 -2
- package/dist/cjs/api/resources/moneyOut/client/Client.js +5 -2
- package/dist/cjs/api/resources/moneyOut/client/requests/MoneyOutTypesRequestOutAuthorize.d.ts +3 -0
- package/dist/cjs/api/resources/moneyOutTypes/types/AuthorizePayoutBody.d.ts +1 -0
- package/dist/cjs/api/resources/payoutSubscription/types/GetPayoutSubscriptionResponse.d.ts +7 -0
- package/dist/cjs/api/resources/payoutSubscription/types/PayoutSubscriptionQueryRecord.d.ts +7 -0
- package/dist/cjs/api/resources/payoutSubscription/types/PayoutSubscriptionQueryRecordPascal.d.ts +7 -0
- package/dist/cjs/api/resources/payoutSubscription/types/QueryPayoutSubscriptionResponse.d.ts +7 -0
- package/dist/cjs/api/resources/query/client/Client.d.ts +42 -0
- package/dist/cjs/api/resources/query/client/Client.js +140 -0
- package/dist/cjs/api/resources/query/client/requests/ListDevicesOrgRequest.d.ts +113 -0
- package/dist/cjs/api/resources/query/client/requests/ListDevicesOrgRequest.js +3 -0
- package/dist/cjs/api/resources/query/client/requests/ListDevicesRequest.d.ts +113 -0
- package/dist/cjs/api/resources/query/client/requests/ListDevicesRequest.js +3 -0
- package/dist/cjs/api/resources/query/client/requests/ListVcardsOrgRequest.d.ts +1 -0
- package/dist/cjs/api/resources/query/client/requests/ListVcardsRequest.d.ts +1 -0
- package/dist/cjs/api/resources/query/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/queryTypes/types/DeviceQueryRecord.d.ts +50 -0
- package/dist/cjs/api/resources/queryTypes/types/DeviceQueryRecord.js +3 -0
- package/dist/cjs/api/resources/queryTypes/types/QueryDeviceResponse.d.ts +45 -0
- package/dist/cjs/api/resources/queryTypes/types/QueryDeviceResponse.js +3 -0
- package/dist/cjs/api/resources/queryTypes/types/index.d.ts +2 -0
- package/dist/cjs/api/resources/queryTypes/types/index.js +2 -0
- package/dist/cjs/api/resources/vendor/client/Client.d.ts +44 -1
- package/dist/cjs/api/resources/vendor/client/Client.js +88 -1
- package/dist/cjs/api/resources/vendor/index.d.ts +1 -0
- package/dist/cjs/api/resources/vendor/index.js +1 -0
- package/dist/cjs/api/resources/vendor/types/VendorEnrichRequest.d.ts +20 -0
- package/dist/cjs/api/resources/vendor/types/VendorEnrichRequest.js +3 -0
- package/dist/cjs/api/resources/vendor/types/VendorEnrichResponse.d.ts +12 -0
- package/dist/cjs/api/resources/vendor/types/VendorEnrichResponse.js +3 -0
- package/dist/cjs/api/resources/vendor/types/VendorEnrichResponseData.d.ts +16 -0
- package/dist/cjs/api/resources/vendor/types/VendorEnrichResponseData.js +3 -0
- package/dist/cjs/api/resources/vendor/types/VendorEnrichmentData.d.ts +10 -0
- package/dist/cjs/api/resources/vendor/types/VendorEnrichmentData.js +3 -0
- package/dist/cjs/api/resources/vendor/types/VendorEnrichmentInvoiceScan.d.ts +35 -0
- package/dist/cjs/api/resources/vendor/types/VendorEnrichmentInvoiceScan.js +3 -0
- package/dist/cjs/api/resources/vendor/types/VendorEnrichmentWebSearch.d.ts +35 -0
- package/dist/cjs/api/resources/vendor/types/VendorEnrichmentWebSearch.js +3 -0
- package/dist/cjs/api/resources/vendor/types/index.d.ts +6 -0
- package/dist/cjs/api/resources/vendor/types/index.js +22 -0
- package/dist/cjs/api/types/AutoCapture.d.ts +4 -0
- package/dist/cjs/api/types/AutoCapture.js +3 -0
- package/dist/cjs/api/types/BinData.d.ts +4 -1
- package/dist/cjs/api/types/NotificationContent.d.ts +0 -1
- package/dist/cjs/api/types/NotificationContent.js +0 -1
- package/dist/cjs/api/types/NotificationStandardRequest.d.ts +0 -1
- package/dist/cjs/api/types/NotificationStandardRequest.js +0 -1
- package/dist/cjs/api/types/ProcessingSection.d.ts +5 -0
- package/dist/cjs/api/types/QueryChargebacksResponse.d.ts +10 -1
- package/dist/cjs/api/types/TemplateElement.d.ts +1 -0
- package/dist/cjs/api/types/VCardCardType.d.ts +6 -0
- package/dist/cjs/api/types/VCardCardType.js +3 -0
- package/dist/cjs/api/types/VCardRecord.d.ts +2 -0
- package/dist/cjs/api/types/VendorData.d.ts +12 -0
- package/dist/cjs/api/types/VendorQueryRecord.d.ts +21 -0
- package/dist/cjs/api/types/index.d.ts +2 -0
- package/dist/cjs/api/types/index.js +2 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/Client.d.mts +3 -0
- package/dist/esm/Client.mjs +5 -0
- package/dist/esm/api/resources/bill/types/BillOutData.d.mts +5 -1
- package/dist/esm/api/resources/cloud/client/Client.d.mts +4 -0
- package/dist/esm/api/resources/cloud/client/Client.mjs +4 -0
- package/dist/esm/api/resources/index.d.mts +4 -0
- package/dist/esm/api/resources/index.mjs +4 -0
- package/dist/esm/api/resources/management/client/Client.d.mts +41 -0
- package/dist/esm/api/resources/management/client/Client.mjs +94 -0
- package/dist/esm/api/resources/management/client/index.d.mts +1 -0
- package/dist/esm/api/resources/management/client/index.mjs +1 -0
- package/dist/esm/api/resources/management/client/requests/VerifyAccountDetailsRequest.d.mts +25 -0
- package/dist/esm/api/resources/management/client/requests/VerifyAccountDetailsRequest.mjs +2 -0
- package/dist/esm/api/resources/management/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/management/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/management/exports.d.mts +2 -0
- package/dist/esm/api/resources/management/exports.mjs +3 -0
- package/dist/esm/api/resources/management/index.d.mts +2 -0
- package/dist/esm/api/resources/management/index.mjs +2 -0
- package/dist/esm/api/resources/management/types/BankAccountVerificationDetailsResponse.d.mts +31 -0
- package/dist/esm/api/resources/management/types/BankAccountVerificationDetailsResponse.mjs +2 -0
- package/dist/esm/api/resources/management/types/VerifyAccountDetailsResponse.d.mts +9 -0
- package/dist/esm/api/resources/management/types/VerifyAccountDetailsResponse.mjs +2 -0
- package/dist/esm/api/resources/management/types/index.d.mts +2 -0
- package/dist/esm/api/resources/management/types/index.mjs +2 -0
- package/dist/esm/api/resources/moneyIn/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/moneyIn/client/Client.mjs +1 -1
- package/dist/esm/api/resources/moneyIn/types/TransactionDetailPaymentData.d.mts +1 -1
- package/dist/esm/api/resources/moneyOut/client/Client.d.mts +5 -2
- package/dist/esm/api/resources/moneyOut/client/Client.mjs +5 -2
- package/dist/esm/api/resources/moneyOut/client/requests/MoneyOutTypesRequestOutAuthorize.d.mts +3 -0
- package/dist/esm/api/resources/moneyOutTypes/types/AuthorizePayoutBody.d.mts +1 -0
- package/dist/esm/api/resources/payoutSubscription/types/GetPayoutSubscriptionResponse.d.mts +7 -0
- package/dist/esm/api/resources/payoutSubscription/types/PayoutSubscriptionQueryRecord.d.mts +7 -0
- package/dist/esm/api/resources/payoutSubscription/types/PayoutSubscriptionQueryRecordPascal.d.mts +7 -0
- package/dist/esm/api/resources/payoutSubscription/types/QueryPayoutSubscriptionResponse.d.mts +7 -0
- package/dist/esm/api/resources/query/client/Client.d.mts +42 -0
- package/dist/esm/api/resources/query/client/Client.mjs +140 -0
- package/dist/esm/api/resources/query/client/requests/ListDevicesOrgRequest.d.mts +113 -0
- package/dist/esm/api/resources/query/client/requests/ListDevicesOrgRequest.mjs +2 -0
- package/dist/esm/api/resources/query/client/requests/ListDevicesRequest.d.mts +113 -0
- package/dist/esm/api/resources/query/client/requests/ListDevicesRequest.mjs +2 -0
- package/dist/esm/api/resources/query/client/requests/ListVcardsOrgRequest.d.mts +1 -0
- package/dist/esm/api/resources/query/client/requests/ListVcardsRequest.d.mts +1 -0
- package/dist/esm/api/resources/query/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/queryTypes/types/DeviceQueryRecord.d.mts +50 -0
- package/dist/esm/api/resources/queryTypes/types/DeviceQueryRecord.mjs +2 -0
- package/dist/esm/api/resources/queryTypes/types/QueryDeviceResponse.d.mts +45 -0
- package/dist/esm/api/resources/queryTypes/types/QueryDeviceResponse.mjs +2 -0
- package/dist/esm/api/resources/queryTypes/types/index.d.mts +2 -0
- package/dist/esm/api/resources/queryTypes/types/index.mjs +2 -0
- package/dist/esm/api/resources/vendor/client/Client.d.mts +44 -1
- package/dist/esm/api/resources/vendor/client/Client.mjs +88 -1
- package/dist/esm/api/resources/vendor/index.d.mts +1 -0
- package/dist/esm/api/resources/vendor/index.mjs +1 -0
- package/dist/esm/api/resources/vendor/types/VendorEnrichRequest.d.mts +20 -0
- package/dist/esm/api/resources/vendor/types/VendorEnrichRequest.mjs +2 -0
- package/dist/esm/api/resources/vendor/types/VendorEnrichResponse.d.mts +12 -0
- package/dist/esm/api/resources/vendor/types/VendorEnrichResponse.mjs +2 -0
- package/dist/esm/api/resources/vendor/types/VendorEnrichResponseData.d.mts +16 -0
- package/dist/esm/api/resources/vendor/types/VendorEnrichResponseData.mjs +2 -0
- package/dist/esm/api/resources/vendor/types/VendorEnrichmentData.d.mts +10 -0
- package/dist/esm/api/resources/vendor/types/VendorEnrichmentData.mjs +2 -0
- package/dist/esm/api/resources/vendor/types/VendorEnrichmentInvoiceScan.d.mts +35 -0
- package/dist/esm/api/resources/vendor/types/VendorEnrichmentInvoiceScan.mjs +2 -0
- package/dist/esm/api/resources/vendor/types/VendorEnrichmentWebSearch.d.mts +35 -0
- package/dist/esm/api/resources/vendor/types/VendorEnrichmentWebSearch.mjs +2 -0
- package/dist/esm/api/resources/vendor/types/index.d.mts +6 -0
- package/dist/esm/api/resources/vendor/types/index.mjs +6 -0
- package/dist/esm/api/types/AutoCapture.d.mts +4 -0
- package/dist/esm/api/types/AutoCapture.mjs +2 -0
- package/dist/esm/api/types/BinData.d.mts +4 -1
- package/dist/esm/api/types/NotificationContent.d.mts +0 -1
- package/dist/esm/api/types/NotificationContent.mjs +0 -1
- package/dist/esm/api/types/NotificationStandardRequest.d.mts +0 -1
- package/dist/esm/api/types/NotificationStandardRequest.mjs +0 -1
- package/dist/esm/api/types/ProcessingSection.d.mts +5 -0
- package/dist/esm/api/types/QueryChargebacksResponse.d.mts +10 -1
- package/dist/esm/api/types/TemplateElement.d.mts +1 -0
- package/dist/esm/api/types/VCardCardType.d.mts +6 -0
- package/dist/esm/api/types/VCardCardType.mjs +2 -0
- package/dist/esm/api/types/VCardRecord.d.mts +2 -0
- package/dist/esm/api/types/VendorData.d.mts +12 -0
- package/dist/esm/api/types/VendorQueryRecord.d.mts +21 -0
- package/dist/esm/api/types/index.d.mts +2 -0
- package/dist/esm/api/types/index.mjs +2 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +12 -1
- package/reference.md +321 -4
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* When `true`, the transaction is automatically captured after a successful authorization. When `false`, you must manually capture the transaction after a successful authorization. Defaults to `false`. See [Manage payouts with the API](/guides/pay-out-developer-payouts-manage) for more information.
|
|
3
|
+
*/
|
|
4
|
+
export type AutoCapture = boolean;
|
|
@@ -46,7 +46,10 @@ export interface BinData {
|
|
|
46
46
|
* Discover.
|
|
47
47
|
*/
|
|
48
48
|
binCardBrand?: string | undefined;
|
|
49
|
-
/**
|
|
49
|
+
/**
|
|
50
|
+
* The type of card: `Credit` or `Debit`. Case can vary between
|
|
51
|
+
* processors, so compare this value case-insensitively.
|
|
52
|
+
*/
|
|
50
53
|
binCardType?: string | undefined;
|
|
51
54
|
/** The category of the card, which indicates the card product. For example: Standard, Gold, Platinum, etc. The binCardCategory for prepaid cards is marked `PREPAID`. */
|
|
52
55
|
binCardCategory?: string | undefined;
|
|
@@ -49,7 +49,6 @@ export declare namespace NotificationContent {
|
|
|
49
49
|
readonly ApprovedApplication: "ApprovedApplication";
|
|
50
50
|
readonly FailedBoardingApplication: "FailedBoardingApplication";
|
|
51
51
|
readonly SubmittedApplication: "SubmittedApplication";
|
|
52
|
-
readonly UnderWritingApplication: "UnderWritingApplication";
|
|
53
52
|
readonly ActivatedMerchant: "ActivatedMerchant";
|
|
54
53
|
readonly ReceivedChargeBack: "ReceivedChargeBack";
|
|
55
54
|
readonly ChargebackUpdated: "ChargebackUpdated";
|
|
@@ -35,7 +35,6 @@ var NotificationContent;
|
|
|
35
35
|
ApprovedApplication: "ApprovedApplication",
|
|
36
36
|
FailedBoardingApplication: "FailedBoardingApplication",
|
|
37
37
|
SubmittedApplication: "SubmittedApplication",
|
|
38
|
-
UnderWritingApplication: "UnderWritingApplication",
|
|
39
38
|
ActivatedMerchant: "ActivatedMerchant",
|
|
40
39
|
ReceivedChargeBack: "ReceivedChargeBack",
|
|
41
40
|
ChargebackUpdated: "ChargebackUpdated",
|
|
@@ -108,7 +108,6 @@ export declare namespace NotificationStandardRequest {
|
|
|
108
108
|
readonly ApprovedApplication: "ApprovedApplication";
|
|
109
109
|
readonly FailedBoardingApplication: "FailedBoardingApplication";
|
|
110
110
|
readonly SubmittedApplication: "SubmittedApplication";
|
|
111
|
-
readonly UnderWritingApplication: "UnderWritingApplication";
|
|
112
111
|
readonly ActivatedMerchant: "ActivatedMerchant";
|
|
113
112
|
readonly ReceivedChargeBack: "ReceivedChargeBack";
|
|
114
113
|
readonly ChargebackUpdated: "ChargebackUpdated";
|
|
@@ -83,7 +83,6 @@ var NotificationStandardRequest;
|
|
|
83
83
|
ApprovedApplication: "ApprovedApplication",
|
|
84
84
|
FailedBoardingApplication: "FailedBoardingApplication",
|
|
85
85
|
SubmittedApplication: "SubmittedApplication",
|
|
86
|
-
UnderWritingApplication: "UnderWritingApplication",
|
|
87
86
|
ActivatedMerchant: "ActivatedMerchant",
|
|
88
87
|
ReceivedChargeBack: "ReceivedChargeBack",
|
|
89
88
|
ChargebackUpdated: "ChargebackUpdated",
|
|
@@ -15,4 +15,9 @@ export interface ProcessingSection {
|
|
|
15
15
|
whenDelivered?: Payabli.TemplateElement | undefined;
|
|
16
16
|
whenProvided?: Payabli.TemplateElement | undefined;
|
|
17
17
|
whenRefunded?: Payabli.TemplateElement | undefined;
|
|
18
|
+
CombinedBatches?: Payabli.TemplateElement | undefined;
|
|
19
|
+
payoutAverageMonthlyVolume?: Payabli.TemplateElement | undefined;
|
|
20
|
+
payoutHighTicketAmount?: Payabli.TemplateElement | undefined;
|
|
21
|
+
payoutAverageTicketAmount?: Payabli.TemplateElement | undefined;
|
|
22
|
+
payoutCreditLimit?: Payabli.TemplateElement | undefined;
|
|
18
23
|
}
|
|
@@ -51,7 +51,16 @@ export declare namespace QueryChargebacksResponse {
|
|
|
51
51
|
Responses?: string | undefined;
|
|
52
52
|
/** Reference for any scheduled transactions. */
|
|
53
53
|
ScheduleReference?: number | undefined;
|
|
54
|
-
/**
|
|
54
|
+
/**
|
|
55
|
+
* Status of the chargeback or ACH return.
|
|
56
|
+
*
|
|
57
|
+
* - 0: Open (chargebacks only)
|
|
58
|
+
* - 1: Pending (chargebacks only)
|
|
59
|
+
* - 2: ClosedWon (chargebacks only)
|
|
60
|
+
* - 3: ClosedLost (chargebacks only)
|
|
61
|
+
* - 4: ACH return (any Nacha return code except R29)
|
|
62
|
+
* - 5: AchDispute (R29 only — debit block)
|
|
63
|
+
*/
|
|
55
64
|
Status?: number | undefined;
|
|
56
65
|
Transaction?: Payabli.TransactionQueryRecords | undefined;
|
|
57
66
|
TransactionTime?: Payabli.TransactionTime | undefined;
|
|
@@ -3,6 +3,7 @@ import type * as Payabli from "../index.js";
|
|
|
3
3
|
* @example
|
|
4
4
|
* {
|
|
5
5
|
* vcardSent: true,
|
|
6
|
+
* cardType: 0,
|
|
6
7
|
* cardToken: "vcrd_5Ty8NrBzXjKuqHm9DwElfP",
|
|
7
8
|
* cardNumber: "44XX XXXX XXXX 1234",
|
|
8
9
|
* cvc: "XXX",
|
|
@@ -43,6 +44,7 @@ import type * as Payabli from "../index.js";
|
|
|
43
44
|
export interface VCardRecord {
|
|
44
45
|
/** When `true`, the vCard has been sent. */
|
|
45
46
|
vcardSent?: boolean | undefined;
|
|
47
|
+
cardType?: Payabli.VCardCardType | undefined;
|
|
46
48
|
cardToken?: string | undefined;
|
|
47
49
|
/** The vCard number. */
|
|
48
50
|
cardNumber?: string | undefined;
|
|
@@ -45,4 +45,16 @@ export interface VendorData {
|
|
|
45
45
|
vendorStatus?: Payabli.Vendorstatus | undefined;
|
|
46
46
|
/** Vendor's ZIP or postal code. Required if any address field is provided. For US addresses, use five digits (`12345`) or ZIP+4 format (`12345-6789`). */
|
|
47
47
|
zip?: string | undefined;
|
|
48
|
+
/** Identifier for the vendor's default stored payment method. */
|
|
49
|
+
defaultMethodId?: string | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* PDF invoice attachment for AI-powered vendor enrichment.
|
|
52
|
+
* When this feature is enabled and you include an attachment, the invoice is scanned and extracted vendor information is merged into the request.
|
|
53
|
+
* Fields in the request body take precedence over extracted data.
|
|
54
|
+
* If the scan fails, vendor creation proceeds with the original request data.
|
|
55
|
+
*
|
|
56
|
+
* See the [vendor enrichment guide](/guides/pay-out-vendor-enrichment-overview) for details.
|
|
57
|
+
* Contact Payabli to enable this feature.
|
|
58
|
+
*/
|
|
59
|
+
attachment?: Payabli.FileContent | undefined;
|
|
48
60
|
}
|
|
@@ -77,6 +77,13 @@ import type * as Payabli from "../index.js";
|
|
|
77
77
|
* customField2: "",
|
|
78
78
|
* customerVendorAccount: "123-456",
|
|
79
79
|
* InternalReferenceId: 1000000,
|
|
80
|
+
* PaymentPortalUrl: "https://greenfield-landscaping.com/pay",
|
|
81
|
+
* CardAccepted: "yes",
|
|
82
|
+
* AchAccepted: "unable to determine",
|
|
83
|
+
* EnrichmentStatus: "fully_enriched",
|
|
84
|
+
* EnrichedBy: "web_search",
|
|
85
|
+
* EnrichedAt: "2026-03-05T14:22:10Z",
|
|
86
|
+
* EnrichmentId: "enrich-3890-a1b2c3d4",
|
|
80
87
|
* externalPaypointID: "Paypoint-100",
|
|
81
88
|
* StoredMethods: []
|
|
82
89
|
* }
|
|
@@ -126,4 +133,18 @@ export interface VendorQueryRecord {
|
|
|
126
133
|
VendorNumber?: Payabli.VendorNumber | undefined;
|
|
127
134
|
VendorStatus?: Payabli.Vendorstatus | undefined;
|
|
128
135
|
Zip?: Payabli.Zip | undefined;
|
|
136
|
+
/** URL for the vendor's online payment portal, if known. Populated by the vendor enrichment pipeline. */
|
|
137
|
+
PaymentPortalUrl?: string | undefined;
|
|
138
|
+
/** Whether the vendor accepts card payments. Values are `yes`, `no`, or `unable to determine`. Populated by the vendor enrichment pipeline. */
|
|
139
|
+
CardAccepted?: string | undefined;
|
|
140
|
+
/** Whether the vendor accepts ACH payments. Values are `yes`, `no`, or `unable to determine`. Populated by the vendor enrichment pipeline. */
|
|
141
|
+
AchAccepted?: string | undefined;
|
|
142
|
+
/** Current enrichment state of the vendor. Values are `not_enriched`, `partially_enriched`, `fully_enriched`, or `fallback_applied`. */
|
|
143
|
+
EnrichmentStatus?: string | undefined;
|
|
144
|
+
/** Which enrichment method resolved the vendor's payment acceptance info. Values are `invoice_scan`, `web_search`, `vendor_network`, or `manual`. */
|
|
145
|
+
EnrichedBy?: string | undefined;
|
|
146
|
+
/** When the vendor was last enriched (UTC). */
|
|
147
|
+
EnrichedAt?: string | undefined;
|
|
148
|
+
/** Identifier for the enrichment request that last updated this vendor. */
|
|
149
|
+
EnrichmentId?: string | undefined;
|
|
129
150
|
}
|
|
@@ -55,6 +55,7 @@ export * from "./AssociatedVendor.js";
|
|
|
55
55
|
export * from "./Attachments.js";
|
|
56
56
|
export * from "./AttestationDate.js";
|
|
57
57
|
export * from "./Authcode.js";
|
|
58
|
+
export * from "./AutoCapture.js";
|
|
58
59
|
export * from "./AutoElement.js";
|
|
59
60
|
export * from "./Avgmonthly.js";
|
|
60
61
|
export * from "./Avgticketamt.js";
|
|
@@ -561,6 +562,7 @@ export * from "./UserQueryRecord.js";
|
|
|
561
562
|
export * from "./UsrAccess.js";
|
|
562
563
|
export * from "./UsrStatus.js";
|
|
563
564
|
export * from "./ValueTemplates.js";
|
|
565
|
+
export * from "./VCardCardType.js";
|
|
564
566
|
export * from "./VCardQueryResponse.js";
|
|
565
567
|
export * from "./VCardRecord.js";
|
|
566
568
|
export * from "./VCardSummary.js";
|
|
@@ -71,6 +71,7 @@ __exportStar(require("./AssociatedVendor.js"), exports);
|
|
|
71
71
|
__exportStar(require("./Attachments.js"), exports);
|
|
72
72
|
__exportStar(require("./AttestationDate.js"), exports);
|
|
73
73
|
__exportStar(require("./Authcode.js"), exports);
|
|
74
|
+
__exportStar(require("./AutoCapture.js"), exports);
|
|
74
75
|
__exportStar(require("./AutoElement.js"), exports);
|
|
75
76
|
__exportStar(require("./Avgmonthly.js"), exports);
|
|
76
77
|
__exportStar(require("./Avgticketamt.js"), exports);
|
|
@@ -577,6 +578,7 @@ __exportStar(require("./UserQueryRecord.js"), exports);
|
|
|
577
578
|
__exportStar(require("./UsrAccess.js"), exports);
|
|
578
579
|
__exportStar(require("./UsrStatus.js"), exports);
|
|
579
580
|
__exportStar(require("./ValueTemplates.js"), exports);
|
|
581
|
+
__exportStar(require("./VCardCardType.js"), exports);
|
|
580
582
|
__exportStar(require("./VCardQueryResponse.js"), exports);
|
|
581
583
|
__exportStar(require("./VCardRecord.js"), exports);
|
|
582
584
|
__exportStar(require("./VCardSummary.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.0.
|
|
1
|
+
export declare const SDK_VERSION = "0.0.142";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
|
|
|
6
6
|
const headers = mergeHeaders({
|
|
7
7
|
"X-Fern-Language": "JavaScript",
|
|
8
8
|
"X-Fern-SDK-Name": "@payabli/sdk-node",
|
|
9
|
-
"X-Fern-SDK-Version": "0.0.
|
|
10
|
-
"User-Agent": "@payabli/sdk-node/0.0.
|
|
9
|
+
"X-Fern-SDK-Version": "0.0.142",
|
|
10
|
+
"User-Agent": "@payabli/sdk-node/0.0.142",
|
|
11
11
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
12
12
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
13
13
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
package/dist/esm/Client.d.mts
CHANGED
|
@@ -10,6 +10,7 @@ import { HostedPaymentPagesClient } from "./api/resources/hostedPaymentPages/cli
|
|
|
10
10
|
import { ImportClient } from "./api/resources/import/client/Client.mjs";
|
|
11
11
|
import { InvoiceClient } from "./api/resources/invoice/client/Client.mjs";
|
|
12
12
|
import { LineItemClient } from "./api/resources/lineItem/client/Client.mjs";
|
|
13
|
+
import { ManagementClient } from "./api/resources/management/client/Client.mjs";
|
|
13
14
|
import { MoneyInClient } from "./api/resources/moneyIn/client/Client.mjs";
|
|
14
15
|
import { MoneyOutClient } from "./api/resources/moneyOut/client/Client.mjs";
|
|
15
16
|
import { NotificationClient } from "./api/resources/notification/client/Client.mjs";
|
|
@@ -50,6 +51,7 @@ export declare class PayabliClient {
|
|
|
50
51
|
protected _import: ImportClient | undefined;
|
|
51
52
|
protected _invoice: InvoiceClient | undefined;
|
|
52
53
|
protected _lineItem: LineItemClient | undefined;
|
|
54
|
+
protected _management: ManagementClient | undefined;
|
|
53
55
|
protected _moneyIn: MoneyInClient | undefined;
|
|
54
56
|
protected _moneyOut: MoneyOutClient | undefined;
|
|
55
57
|
protected _notification: NotificationClient | undefined;
|
|
@@ -81,6 +83,7 @@ export declare class PayabliClient {
|
|
|
81
83
|
get import(): ImportClient;
|
|
82
84
|
get invoice(): InvoiceClient;
|
|
83
85
|
get lineItem(): LineItemClient;
|
|
86
|
+
get management(): ManagementClient;
|
|
84
87
|
get moneyIn(): MoneyInClient;
|
|
85
88
|
get moneyOut(): MoneyOutClient;
|
|
86
89
|
get notification(): NotificationClient;
|
package/dist/esm/Client.mjs
CHANGED
|
@@ -20,6 +20,7 @@ import { HostedPaymentPagesClient } from "./api/resources/hostedPaymentPages/cli
|
|
|
20
20
|
import { ImportClient } from "./api/resources/import/client/Client.mjs";
|
|
21
21
|
import { InvoiceClient } from "./api/resources/invoice/client/Client.mjs";
|
|
22
22
|
import { LineItemClient } from "./api/resources/lineItem/client/Client.mjs";
|
|
23
|
+
import { ManagementClient } from "./api/resources/management/client/Client.mjs";
|
|
23
24
|
import { MoneyInClient } from "./api/resources/moneyIn/client/Client.mjs";
|
|
24
25
|
import { MoneyOutClient } from "./api/resources/moneyOut/client/Client.mjs";
|
|
25
26
|
import { NotificationClient } from "./api/resources/notification/client/Client.mjs";
|
|
@@ -92,6 +93,10 @@ export class PayabliClient {
|
|
|
92
93
|
var _a;
|
|
93
94
|
return ((_a = this._lineItem) !== null && _a !== void 0 ? _a : (this._lineItem = new LineItemClient(this._options)));
|
|
94
95
|
}
|
|
96
|
+
get management() {
|
|
97
|
+
var _a;
|
|
98
|
+
return ((_a = this._management) !== null && _a !== void 0 ? _a : (this._management = new ManagementClient(this._options)));
|
|
99
|
+
}
|
|
95
100
|
get moneyIn() {
|
|
96
101
|
var _a;
|
|
97
102
|
return ((_a = this._moneyIn) !== null && _a !== void 0 ? _a : (this._moneyIn = new MoneyInClient(this._options)));
|
|
@@ -3,7 +3,11 @@ export interface BillOutData {
|
|
|
3
3
|
accountingField1?: Payabli.AccountingField | undefined;
|
|
4
4
|
accountingField2?: Payabli.AccountingField | undefined;
|
|
5
5
|
additionalData?: Payabli.AdditionalDataString | undefined;
|
|
6
|
-
/**
|
|
6
|
+
/**
|
|
7
|
+
* An array of bill images. Attachments aren't required, but we strongly recommend including them. Including a bill image can make payouts smoother and prevent delays. You can include either the Base64-encoded file content, or you can include an fURL to a public file. The maximum file size for image uploads is 30 MB.
|
|
8
|
+
*
|
|
9
|
+
* When vendor enrichment is enabled and the first attachment is a PDF, the invoice is scanned and extracted vendor contact information and bill details (invoice number, amount due, due date) are merged into the request. Fields in the request body take precedence over extracted data. If the scan fails, bill creation proceeds with the original request data. See the [vendor enrichment guide](/guides/pay-out-vendor-enrichment-overview) for details. Contact Payabli to enable this feature.
|
|
10
|
+
*/
|
|
7
11
|
attachments?: Payabli.Attachments | undefined;
|
|
8
12
|
/** Date of bill. Accepted formats: YYYY-MM-DD, MM/DD/YYYY. */
|
|
9
13
|
billDate?: string | undefined;
|
|
@@ -48,6 +48,10 @@ export declare class CloudClient {
|
|
|
48
48
|
historyDevice(entry: string, deviceId: string, requestOptions?: CloudClient.RequestOptions): core.HttpResponsePromise<Payabli.CloudQueryApiResponse>;
|
|
49
49
|
private __historyDevice;
|
|
50
50
|
/**
|
|
51
|
+
* @deprecated
|
|
52
|
+
*
|
|
53
|
+
* Use [List devices by paypoint](/developers/api-reference/cloud/get-list-of-devices-for-a-paypoint) instead, which supports filters, sorting, and pagination.
|
|
54
|
+
*
|
|
51
55
|
* Get a list of cloud devices registered to an entrypoint.
|
|
52
56
|
*
|
|
53
57
|
* @param {string} entry - The paypoint's entrypoint identifier. [Learn more](/developers/api-reference/api-overview#entrypoint-vs-entry)
|
|
@@ -154,6 +154,10 @@ export class CloudClient {
|
|
|
154
154
|
});
|
|
155
155
|
}
|
|
156
156
|
/**
|
|
157
|
+
* @deprecated
|
|
158
|
+
*
|
|
159
|
+
* Use [List devices by paypoint](/developers/api-reference/cloud/get-list-of-devices-for-a-paypoint) instead, which supports filters, sorting, and pagination.
|
|
160
|
+
*
|
|
157
161
|
* Get a list of cloud devices registered to an entrypoint.
|
|
158
162
|
*
|
|
159
163
|
* @param {string} entry - The paypoint's entrypoint identifier. [Learn more](/developers/api-reference/api-overview#entrypoint-vs-entry)
|
|
@@ -31,6 +31,9 @@ export * from "./invoice/types/index.mjs";
|
|
|
31
31
|
export * from "./lineItem/client/requests/index.mjs";
|
|
32
32
|
export * as lineItem from "./lineItem/index.mjs";
|
|
33
33
|
export * from "./lineItem/types/index.mjs";
|
|
34
|
+
export * from "./management/client/requests/index.mjs";
|
|
35
|
+
export * as management from "./management/index.mjs";
|
|
36
|
+
export * from "./management/types/index.mjs";
|
|
34
37
|
export * from "./moneyIn/client/requests/index.mjs";
|
|
35
38
|
export * from "./moneyIn/errors/index.mjs";
|
|
36
39
|
export * as moneyIn from "./moneyIn/index.mjs";
|
|
@@ -83,5 +86,6 @@ export * from "./v2MoneyInTypes/errors/index.mjs";
|
|
|
83
86
|
export * as v2MoneyInTypes from "./v2MoneyInTypes/index.mjs";
|
|
84
87
|
export * from "./v2MoneyInTypes/types/index.mjs";
|
|
85
88
|
export * as vendor from "./vendor/index.mjs";
|
|
89
|
+
export * from "./vendor/types/index.mjs";
|
|
86
90
|
export * from "./wallet/client/requests/index.mjs";
|
|
87
91
|
export * as wallet from "./wallet/index.mjs";
|
|
@@ -31,6 +31,9 @@ export * from "./invoice/types/index.mjs";
|
|
|
31
31
|
export * from "./lineItem/client/requests/index.mjs";
|
|
32
32
|
export * as lineItem from "./lineItem/index.mjs";
|
|
33
33
|
export * from "./lineItem/types/index.mjs";
|
|
34
|
+
export * from "./management/client/requests/index.mjs";
|
|
35
|
+
export * as management from "./management/index.mjs";
|
|
36
|
+
export * from "./management/types/index.mjs";
|
|
34
37
|
export * from "./moneyIn/client/requests/index.mjs";
|
|
35
38
|
export * from "./moneyIn/errors/index.mjs";
|
|
36
39
|
export * as moneyIn from "./moneyIn/index.mjs";
|
|
@@ -83,5 +86,6 @@ export * from "./v2MoneyInTypes/errors/index.mjs";
|
|
|
83
86
|
export * as v2MoneyInTypes from "./v2MoneyInTypes/index.mjs";
|
|
84
87
|
export * from "./v2MoneyInTypes/types/index.mjs";
|
|
85
88
|
export * as vendor from "./vendor/index.mjs";
|
|
89
|
+
export * from "./vendor/types/index.mjs";
|
|
86
90
|
export * from "./wallet/client/requests/index.mjs";
|
|
87
91
|
export * as wallet from "./wallet/index.mjs";
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.mjs";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs";
|
|
3
|
+
import * as core from "../../../../core/index.mjs";
|
|
4
|
+
import * as Payabli from "../../../index.mjs";
|
|
5
|
+
export declare namespace ManagementClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare class ManagementClient {
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<ManagementClient.Options>;
|
|
12
|
+
constructor(options?: ManagementClient.Options);
|
|
13
|
+
/**
|
|
14
|
+
* Verifies a bank account and returns detailed verification results from the verification network, including bank name, account status, and response codes. Unlike a pass/fail verification, this endpoint returns granular data to support decision-making and troubleshooting.
|
|
15
|
+
*
|
|
16
|
+
* When bank authentication is enabled for the paypoint's organization, the endpoint performs an identity verification check on the account holder. Otherwise, it performs an account existence check. When bank authentication is enabled, the `accountHolderType` and `holderName` fields are required.
|
|
17
|
+
*
|
|
18
|
+
* Requires `inboundpayments_create` or `outboundpayments_create` permission.
|
|
19
|
+
*
|
|
20
|
+
* @param {string} entry - The paypoint's entry name identifier.
|
|
21
|
+
* @param {Payabli.VerifyAccountDetailsRequest} request
|
|
22
|
+
* @param {ManagementClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
23
|
+
*
|
|
24
|
+
* @throws {@link Payabli.BadRequestError}
|
|
25
|
+
* @throws {@link Payabli.UnauthorizedError}
|
|
26
|
+
* @throws {@link Payabli.InternalServerError}
|
|
27
|
+
* @throws {@link Payabli.ServiceUnavailableError}
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* await client.management.verifyAccountDetails("entry752", {
|
|
31
|
+
* routingNumber: "122105278",
|
|
32
|
+
* accountNumber: "0000000016",
|
|
33
|
+
* accountType: "Checking",
|
|
34
|
+
* country: "US",
|
|
35
|
+
* accountHolderType: "personal",
|
|
36
|
+
* holderName: "Jane Doe"
|
|
37
|
+
* })
|
|
38
|
+
*/
|
|
39
|
+
verifyAccountDetails(entry: string, request: Payabli.VerifyAccountDetailsRequest, requestOptions?: ManagementClient.RequestOptions): core.HttpResponsePromise<Payabli.VerifyAccountDetailsResponse>;
|
|
40
|
+
private __verifyAccountDetails;
|
|
41
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.mjs";
|
|
12
|
+
import { mergeHeaders } from "../../../../core/headers.mjs";
|
|
13
|
+
import * as core from "../../../../core/index.mjs";
|
|
14
|
+
import * as environments from "../../../../environments.mjs";
|
|
15
|
+
import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCodeError.mjs";
|
|
16
|
+
import * as errors from "../../../../errors/index.mjs";
|
|
17
|
+
import * as Payabli from "../../../index.mjs";
|
|
18
|
+
export class ManagementClient {
|
|
19
|
+
constructor(options = {}) {
|
|
20
|
+
this._options = normalizeClientOptionsWithAuth(options);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Verifies a bank account and returns detailed verification results from the verification network, including bank name, account status, and response codes. Unlike a pass/fail verification, this endpoint returns granular data to support decision-making and troubleshooting.
|
|
24
|
+
*
|
|
25
|
+
* When bank authentication is enabled for the paypoint's organization, the endpoint performs an identity verification check on the account holder. Otherwise, it performs an account existence check. When bank authentication is enabled, the `accountHolderType` and `holderName` fields are required.
|
|
26
|
+
*
|
|
27
|
+
* Requires `inboundpayments_create` or `outboundpayments_create` permission.
|
|
28
|
+
*
|
|
29
|
+
* @param {string} entry - The paypoint's entry name identifier.
|
|
30
|
+
* @param {Payabli.VerifyAccountDetailsRequest} request
|
|
31
|
+
* @param {ManagementClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
32
|
+
*
|
|
33
|
+
* @throws {@link Payabli.BadRequestError}
|
|
34
|
+
* @throws {@link Payabli.UnauthorizedError}
|
|
35
|
+
* @throws {@link Payabli.InternalServerError}
|
|
36
|
+
* @throws {@link Payabli.ServiceUnavailableError}
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* await client.management.verifyAccountDetails("entry752", {
|
|
40
|
+
* routingNumber: "122105278",
|
|
41
|
+
* accountNumber: "0000000016",
|
|
42
|
+
* accountType: "Checking",
|
|
43
|
+
* country: "US",
|
|
44
|
+
* accountHolderType: "personal",
|
|
45
|
+
* holderName: "Jane Doe"
|
|
46
|
+
* })
|
|
47
|
+
*/
|
|
48
|
+
verifyAccountDetails(entry, request, requestOptions) {
|
|
49
|
+
return core.HttpResponsePromise.fromPromise(this.__verifyAccountDetails(entry, request, requestOptions));
|
|
50
|
+
}
|
|
51
|
+
__verifyAccountDetails(entry, request, requestOptions) {
|
|
52
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
54
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
55
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
56
|
+
const _response = yield core.fetcher({
|
|
57
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PayabliEnvironment.Sandbox, `Management/verifyAccountDetails/${core.url.encodePathParam(entry)}`),
|
|
58
|
+
method: "POST",
|
|
59
|
+
headers: _headers,
|
|
60
|
+
contentType: "application/json",
|
|
61
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
62
|
+
requestType: "json",
|
|
63
|
+
body: request,
|
|
64
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
65
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
66
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
67
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
68
|
+
logging: this._options.logging,
|
|
69
|
+
});
|
|
70
|
+
if (_response.ok) {
|
|
71
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
72
|
+
}
|
|
73
|
+
if (_response.error.reason === "status-code") {
|
|
74
|
+
switch (_response.error.statusCode) {
|
|
75
|
+
case 400:
|
|
76
|
+
throw new Payabli.BadRequestError(_response.error.body, _response.rawResponse);
|
|
77
|
+
case 401:
|
|
78
|
+
throw new Payabli.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
79
|
+
case 500:
|
|
80
|
+
throw new Payabli.InternalServerError(_response.error.body, _response.rawResponse);
|
|
81
|
+
case 503:
|
|
82
|
+
throw new Payabli.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
83
|
+
default:
|
|
84
|
+
throw new errors.PayabliError({
|
|
85
|
+
statusCode: _response.error.statusCode,
|
|
86
|
+
body: _response.error.body,
|
|
87
|
+
rawResponse: _response.rawResponse,
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/Management/verifyAccountDetails/{entry}");
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests/index.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests/index.mjs";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* routingNumber: "122105278",
|
|
5
|
+
* accountNumber: "0000000016",
|
|
6
|
+
* accountType: "Checking",
|
|
7
|
+
* country: "US",
|
|
8
|
+
* accountHolderType: "personal",
|
|
9
|
+
* holderName: "Jane Doe"
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
export interface VerifyAccountDetailsRequest {
|
|
13
|
+
/** The bank routing number to verify. */
|
|
14
|
+
routingNumber: string;
|
|
15
|
+
/** The bank account number to verify. */
|
|
16
|
+
accountNumber: string;
|
|
17
|
+
/** The type of bank account, such as `Checking` or `Savings`. */
|
|
18
|
+
accountType?: string;
|
|
19
|
+
/** The ISO country code for the bank account, such as `US`. */
|
|
20
|
+
country?: string;
|
|
21
|
+
/** The type of account holder. Accepted values are `personal` or `business`. Required when bank authentication is enabled for the paypoint's organization. */
|
|
22
|
+
accountHolderType?: string;
|
|
23
|
+
/** The name of the bank account holder. For personal accounts, provide the holder's full name (for example, `Jane Doe`); the value is split on the first space into first and last name. For business accounts, provide the legal business name. Required when bank authentication is enabled for the paypoint's organization. */
|
|
24
|
+
holderName?: string;
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { VerifyAccountDetailsRequest } from "./VerifyAccountDetailsRequest.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Detailed bank account verification results from the verification network.
|
|
3
|
+
*/
|
|
4
|
+
export interface BankAccountVerificationDetailsResponse {
|
|
5
|
+
/** The ABA routing number that was verified. */
|
|
6
|
+
aba?: string | undefined;
|
|
7
|
+
/** The account number that was verified. */
|
|
8
|
+
accountNumber?: string | undefined;
|
|
9
|
+
/** Whether the bank account passed verification. */
|
|
10
|
+
isValid: boolean;
|
|
11
|
+
/** Error message if the verification request failed. */
|
|
12
|
+
errorMessage?: string | undefined;
|
|
13
|
+
/** Overall verification outcome. Possible values include `Pass`, `Verified`, `Declined`, `NoData`, `Bypassed`, and `Error`. */
|
|
14
|
+
verificationResponse?: string | undefined;
|
|
15
|
+
/** Response code returned by the verification network. */
|
|
16
|
+
responseCode?: string | undefined;
|
|
17
|
+
/** Response value associated with the verification outcome. */
|
|
18
|
+
responseValue?: string | undefined;
|
|
19
|
+
/** Human-readable description of the verification outcome. */
|
|
20
|
+
responseDescription?: string | undefined;
|
|
21
|
+
/** Name of the bank associated with the routing number. */
|
|
22
|
+
bankName?: string | undefined;
|
|
23
|
+
/** Account type as reported by the verification network, such as `Checking` or `Savings`. */
|
|
24
|
+
reportedAccountType?: string | undefined;
|
|
25
|
+
/** Date the account was first seen by the verification network (ISO 8601 format). */
|
|
26
|
+
accountAddedDate?: string | undefined;
|
|
27
|
+
/** Date the account record was last updated in the verification network (ISO 8601 format). */
|
|
28
|
+
accountLastUpdatedDate?: string | undefined;
|
|
29
|
+
/** Date the account was closed, if applicable (ISO 8601 format). */
|
|
30
|
+
accountClosedDate?: string | undefined;
|
|
31
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as Payabli from "../../../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Response wrapper for the bank account verification details endpoint.
|
|
4
|
+
*/
|
|
5
|
+
export interface VerifyAccountDetailsResponse {
|
|
6
|
+
isSuccess?: Payabli.IsSuccess | undefined;
|
|
7
|
+
responseText: Payabli.ResponseText;
|
|
8
|
+
responseData?: Payabli.BankAccountVerificationDetailsResponse | undefined;
|
|
9
|
+
}
|