@payabli/sdk-node 0.0.135 → 0.0.137
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/LICENSE.md +5 -6
- package/README.md +19 -13
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/Client.d.ts +6 -0
- package/dist/cjs/Client.js +52 -42
- package/dist/cjs/api/resources/ghostCard/client/Client.d.ts +70 -0
- package/dist/cjs/api/resources/ghostCard/client/Client.js +204 -0
- package/dist/cjs/api/resources/ghostCard/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/ghostCard/client/index.js +17 -0
- package/dist/cjs/api/resources/ghostCard/client/requests/CreateGhostCardRequestBody.d.ts +54 -0
- package/dist/cjs/api/resources/ghostCard/client/requests/CreateGhostCardRequestBody.js +3 -0
- package/dist/cjs/api/resources/ghostCard/client/requests/UpdateCardRequestBody.d.ts +14 -0
- package/dist/cjs/api/resources/ghostCard/client/requests/UpdateCardRequestBody.js +3 -0
- package/dist/cjs/api/resources/ghostCard/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/ghostCard/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/ghostCard/exports.d.ts +2 -0
- package/dist/cjs/api/resources/ghostCard/exports.js +21 -0
- package/dist/cjs/api/resources/ghostCard/index.d.ts +2 -0
- package/dist/cjs/api/resources/ghostCard/index.js +18 -0
- package/dist/cjs/api/resources/ghostCard/types/CardStatus.d.ts +8 -0
- package/dist/cjs/api/resources/ghostCard/types/CardStatus.js +11 -0
- package/dist/cjs/api/resources/ghostCard/types/CreateGhostCardResponse.d.ts +17 -0
- package/dist/cjs/api/resources/ghostCard/types/CreateGhostCardResponse.js +3 -0
- package/dist/cjs/api/resources/ghostCard/types/index.d.ts +2 -0
- package/dist/cjs/api/resources/ghostCard/types/index.js +18 -0
- package/dist/cjs/api/resources/index.d.ts +6 -0
- package/dist/cjs/api/resources/index.js +7 -1
- package/dist/cjs/api/resources/payoutSubscription/client/Client.d.ts +156 -0
- package/dist/cjs/api/resources/payoutSubscription/client/Client.js +385 -0
- package/dist/cjs/api/resources/payoutSubscription/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/payoutSubscription/client/index.js +17 -0
- package/dist/cjs/api/resources/payoutSubscription/client/requests/RequestPayoutSchedule.d.ts +67 -0
- package/dist/cjs/api/resources/payoutSubscription/client/requests/RequestPayoutSchedule.js +3 -0
- package/dist/cjs/api/resources/payoutSubscription/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/payoutSubscription/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/payoutSubscription/exports.d.ts +2 -0
- package/dist/cjs/api/resources/payoutSubscription/exports.js +21 -0
- package/dist/cjs/api/resources/payoutSubscription/index.d.ts +2 -0
- package/dist/cjs/api/resources/payoutSubscription/index.js +18 -0
- package/dist/cjs/api/resources/payoutSubscription/types/AddPayoutSubscriptionResponse.d.ts +20 -0
- package/dist/cjs/api/resources/payoutSubscription/types/AddPayoutSubscriptionResponse.js +3 -0
- package/dist/cjs/api/resources/payoutSubscription/types/DeletePayoutSubscriptionResponse.d.ts +14 -0
- package/dist/cjs/api/resources/payoutSubscription/types/DeletePayoutSubscriptionResponse.js +3 -0
- package/dist/cjs/api/resources/payoutSubscription/types/GetPayoutSubscriptionResponse.d.ts +151 -0
- package/dist/cjs/api/resources/payoutSubscription/types/GetPayoutSubscriptionResponse.js +3 -0
- package/dist/cjs/api/resources/payoutSubscription/types/PayoutPaymentDetail.d.ts +31 -0
- package/dist/cjs/api/resources/payoutSubscription/types/PayoutPaymentDetail.js +3 -0
- package/dist/cjs/api/resources/payoutSubscription/types/PayoutScheduleDetail.d.ts +9 -0
- package/dist/cjs/api/resources/payoutSubscription/types/PayoutScheduleDetail.js +3 -0
- package/dist/cjs/api/resources/payoutSubscription/types/PayoutSetPause.d.ts +4 -0
- package/dist/cjs/api/resources/payoutSubscription/types/PayoutSetPause.js +3 -0
- package/dist/cjs/api/resources/payoutSubscription/types/PayoutSubscriptionQueryRecord.d.ts +195 -0
- package/dist/cjs/api/resources/payoutSubscription/types/PayoutSubscriptionQueryRecord.js +3 -0
- package/dist/cjs/api/resources/payoutSubscription/types/PayoutSubscriptionQueryRecordPascal.d.ts +195 -0
- package/dist/cjs/api/resources/payoutSubscription/types/PayoutSubscriptionQueryRecordPascal.js +3 -0
- package/dist/cjs/api/resources/payoutSubscription/types/PayoutSubscriptionRequestBody.d.ts +69 -0
- package/dist/cjs/api/resources/payoutSubscription/types/PayoutSubscriptionRequestBody.js +3 -0
- package/dist/cjs/api/resources/payoutSubscription/types/QueryPayoutSubscriptionResponse.d.ts +155 -0
- package/dist/cjs/api/resources/payoutSubscription/types/QueryPayoutSubscriptionResponse.js +3 -0
- package/dist/cjs/api/resources/payoutSubscription/types/UpdatePayoutSubscriptionBody.d.ts +9 -0
- package/dist/cjs/api/resources/payoutSubscription/types/UpdatePayoutSubscriptionBody.js +3 -0
- package/dist/cjs/api/resources/payoutSubscription/types/UpdatePayoutSubscriptionResponse.d.ts +15 -0
- package/dist/cjs/api/resources/payoutSubscription/types/UpdatePayoutSubscriptionResponse.js +3 -0
- package/dist/cjs/api/resources/payoutSubscription/types/index.d.ts +12 -0
- package/dist/cjs/api/resources/payoutSubscription/types/index.js +28 -0
- package/dist/cjs/api/resources/query/client/Client.d.ts +46 -6
- package/dist/cjs/api/resources/query/client/Client.js +150 -6
- package/dist/cjs/api/resources/query/client/requests/ListPayoutSubscriptionsOrgRequest.d.ts +84 -0
- package/dist/cjs/api/resources/query/client/requests/ListPayoutSubscriptionsOrgRequest.js +3 -0
- package/dist/cjs/api/resources/query/client/requests/ListPayoutSubscriptionsRequest.d.ts +84 -0
- package/dist/cjs/api/resources/query/client/requests/ListPayoutSubscriptionsRequest.js +3 -0
- package/dist/cjs/api/resources/query/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/types/Remitaddress1.d.ts +1 -1
- package/dist/cjs/api/types/Remitaddress2.d.ts +1 -1
- package/dist/cjs/api/types/Remitcity.d.ts +1 -1
- package/dist/cjs/api/types/Remitcountry.d.ts +1 -1
- package/dist/cjs/api/types/Remitstate.d.ts +1 -1
- package/dist/cjs/api/types/Remitzip.d.ts +1 -1
- package/dist/cjs/api/types/VendorData.d.ts +6 -6
- package/dist/cjs/api/types/VendorEin.d.ts +1 -1
- package/dist/cjs/api/types/VendorName1.d.ts +1 -1
- package/dist/cjs/api/types/VendorName2.d.ts +1 -1
- package/dist/cjs/api/types/VendorNumber.d.ts +1 -1
- package/dist/cjs/api/types/VendorOutData.d.ts +9 -9
- package/dist/cjs/api/types/VendorQueryRecord.d.ts +1 -1
- package/dist/cjs/api/types/Vendorstatus.d.ts +5 -3
- package/dist/cjs/core/file/file.js +3 -2
- 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 +6 -0
- package/dist/esm/Client.mjs +10 -0
- package/dist/esm/api/resources/ghostCard/client/Client.d.mts +70 -0
- package/dist/esm/api/resources/ghostCard/client/Client.mjs +167 -0
- package/dist/esm/api/resources/ghostCard/client/index.d.mts +1 -0
- package/dist/esm/api/resources/ghostCard/client/index.mjs +1 -0
- package/dist/esm/api/resources/ghostCard/client/requests/CreateGhostCardRequestBody.d.mts +54 -0
- package/dist/esm/api/resources/ghostCard/client/requests/CreateGhostCardRequestBody.mjs +2 -0
- package/dist/esm/api/resources/ghostCard/client/requests/UpdateCardRequestBody.d.mts +14 -0
- package/dist/esm/api/resources/ghostCard/client/requests/UpdateCardRequestBody.mjs +2 -0
- package/dist/esm/api/resources/ghostCard/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/ghostCard/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/ghostCard/exports.d.mts +2 -0
- package/dist/esm/api/resources/ghostCard/exports.mjs +3 -0
- package/dist/esm/api/resources/ghostCard/index.d.mts +2 -0
- package/dist/esm/api/resources/ghostCard/index.mjs +2 -0
- package/dist/esm/api/resources/ghostCard/types/CardStatus.d.mts +8 -0
- package/dist/esm/api/resources/ghostCard/types/CardStatus.mjs +8 -0
- package/dist/esm/api/resources/ghostCard/types/CreateGhostCardResponse.d.mts +17 -0
- package/dist/esm/api/resources/ghostCard/types/CreateGhostCardResponse.mjs +2 -0
- package/dist/esm/api/resources/ghostCard/types/index.d.mts +2 -0
- package/dist/esm/api/resources/ghostCard/types/index.mjs +2 -0
- package/dist/esm/api/resources/index.d.mts +6 -0
- package/dist/esm/api/resources/index.mjs +6 -0
- package/dist/esm/api/resources/payoutSubscription/client/Client.d.mts +156 -0
- package/dist/esm/api/resources/payoutSubscription/client/Client.mjs +348 -0
- package/dist/esm/api/resources/payoutSubscription/client/index.d.mts +1 -0
- package/dist/esm/api/resources/payoutSubscription/client/index.mjs +1 -0
- package/dist/esm/api/resources/payoutSubscription/client/requests/RequestPayoutSchedule.d.mts +67 -0
- package/dist/esm/api/resources/payoutSubscription/client/requests/RequestPayoutSchedule.mjs +2 -0
- package/dist/esm/api/resources/payoutSubscription/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/payoutSubscription/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/payoutSubscription/exports.d.mts +2 -0
- package/dist/esm/api/resources/payoutSubscription/exports.mjs +3 -0
- package/dist/esm/api/resources/payoutSubscription/index.d.mts +2 -0
- package/dist/esm/api/resources/payoutSubscription/index.mjs +2 -0
- package/dist/esm/api/resources/payoutSubscription/types/AddPayoutSubscriptionResponse.d.mts +20 -0
- package/dist/esm/api/resources/payoutSubscription/types/AddPayoutSubscriptionResponse.mjs +2 -0
- package/dist/esm/api/resources/payoutSubscription/types/DeletePayoutSubscriptionResponse.d.mts +14 -0
- package/dist/esm/api/resources/payoutSubscription/types/DeletePayoutSubscriptionResponse.mjs +2 -0
- package/dist/esm/api/resources/payoutSubscription/types/GetPayoutSubscriptionResponse.d.mts +151 -0
- package/dist/esm/api/resources/payoutSubscription/types/GetPayoutSubscriptionResponse.mjs +2 -0
- package/dist/esm/api/resources/payoutSubscription/types/PayoutPaymentDetail.d.mts +31 -0
- package/dist/esm/api/resources/payoutSubscription/types/PayoutPaymentDetail.mjs +2 -0
- package/dist/esm/api/resources/payoutSubscription/types/PayoutScheduleDetail.d.mts +9 -0
- package/dist/esm/api/resources/payoutSubscription/types/PayoutScheduleDetail.mjs +2 -0
- package/dist/esm/api/resources/payoutSubscription/types/PayoutSetPause.d.mts +4 -0
- package/dist/esm/api/resources/payoutSubscription/types/PayoutSetPause.mjs +2 -0
- package/dist/esm/api/resources/payoutSubscription/types/PayoutSubscriptionQueryRecord.d.mts +195 -0
- package/dist/esm/api/resources/payoutSubscription/types/PayoutSubscriptionQueryRecord.mjs +2 -0
- package/dist/esm/api/resources/payoutSubscription/types/PayoutSubscriptionQueryRecordPascal.d.mts +195 -0
- package/dist/esm/api/resources/payoutSubscription/types/PayoutSubscriptionQueryRecordPascal.mjs +2 -0
- package/dist/esm/api/resources/payoutSubscription/types/PayoutSubscriptionRequestBody.d.mts +69 -0
- package/dist/esm/api/resources/payoutSubscription/types/PayoutSubscriptionRequestBody.mjs +2 -0
- package/dist/esm/api/resources/payoutSubscription/types/QueryPayoutSubscriptionResponse.d.mts +155 -0
- package/dist/esm/api/resources/payoutSubscription/types/QueryPayoutSubscriptionResponse.mjs +2 -0
- package/dist/esm/api/resources/payoutSubscription/types/UpdatePayoutSubscriptionBody.d.mts +9 -0
- package/dist/esm/api/resources/payoutSubscription/types/UpdatePayoutSubscriptionBody.mjs +2 -0
- package/dist/esm/api/resources/payoutSubscription/types/UpdatePayoutSubscriptionResponse.d.mts +15 -0
- package/dist/esm/api/resources/payoutSubscription/types/UpdatePayoutSubscriptionResponse.mjs +2 -0
- package/dist/esm/api/resources/payoutSubscription/types/index.d.mts +12 -0
- package/dist/esm/api/resources/payoutSubscription/types/index.mjs +12 -0
- package/dist/esm/api/resources/query/client/Client.d.mts +46 -6
- package/dist/esm/api/resources/query/client/Client.mjs +150 -6
- package/dist/esm/api/resources/query/client/requests/ListPayoutSubscriptionsOrgRequest.d.mts +84 -0
- package/dist/esm/api/resources/query/client/requests/ListPayoutSubscriptionsOrgRequest.mjs +2 -0
- package/dist/esm/api/resources/query/client/requests/ListPayoutSubscriptionsRequest.d.mts +84 -0
- package/dist/esm/api/resources/query/client/requests/ListPayoutSubscriptionsRequest.mjs +2 -0
- package/dist/esm/api/resources/query/client/requests/index.d.mts +2 -0
- package/dist/esm/api/types/Remitaddress1.d.mts +1 -1
- package/dist/esm/api/types/Remitaddress2.d.mts +1 -1
- package/dist/esm/api/types/Remitcity.d.mts +1 -1
- package/dist/esm/api/types/Remitcountry.d.mts +1 -1
- package/dist/esm/api/types/Remitstate.d.mts +1 -1
- package/dist/esm/api/types/Remitzip.d.mts +1 -1
- package/dist/esm/api/types/VendorData.d.mts +6 -6
- package/dist/esm/api/types/VendorEin.d.mts +1 -1
- package/dist/esm/api/types/VendorName1.d.mts +1 -1
- package/dist/esm/api/types/VendorName2.d.mts +1 -1
- package/dist/esm/api/types/VendorNumber.d.mts +1 -1
- package/dist/esm/api/types/VendorOutData.d.mts +9 -9
- package/dist/esm/api/types/VendorQueryRecord.d.mts +1 -1
- package/dist/esm/api/types/Vendorstatus.d.mts +5 -3
- package/dist/esm/core/file/file.mjs +3 -2
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +29 -7
- package/reference.md +685 -78
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Remittance address. Used for mailing paper checks.
|
|
2
|
+
* Remittance street address. Used for mailing paper checks. Required if any remittance address field is provided. Allowed characters are letters, numbers, spaces, and `. ,
|
|
3
3
|
*/
|
|
4
4
|
export type Remitaddress1 = string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Remittance address state. Used for mailing paper checks.
|
|
2
|
+
* Remittance address state or province. Used for mailing paper checks. Required if any remittance address field is provided. Must be a valid US state or Canadian province abbreviation.
|
|
3
3
|
*/
|
|
4
4
|
export type Remitstate = string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Remittance address ZIP code. Used for mailing paper checks.
|
|
2
|
+
* Remittance address ZIP or postal code. Used for mailing paper checks. Required if any remittance address field is provided. For US addresses, use five digits or ZIP+4 format.
|
|
3
3
|
*/
|
|
4
4
|
export type Remitzip = string;
|
|
@@ -2,17 +2,17 @@ import type * as Payabli from "../index.mjs";
|
|
|
2
2
|
export interface VendorData {
|
|
3
3
|
vendorNumber?: Payabli.VendorNumber | undefined;
|
|
4
4
|
AdditionalData?: Payabli.AdditionalData | undefined;
|
|
5
|
-
/** Vendor's address */
|
|
5
|
+
/** Vendor's street address. If any address field is provided, this field is required along with `city`, `state`, and `zip`. Allowed characters are letters, numbers, spaces, and `. , */
|
|
6
6
|
address1?: Payabli.AddressNullable | undefined;
|
|
7
|
-
/** Additional line for vendor's address. */
|
|
7
|
+
/** Additional line for vendor's address, such as a suite or unit number. Always optional. */
|
|
8
8
|
address2?: Payabli.AddressAddtlNullable | undefined;
|
|
9
9
|
/** Object containing vendor's bank information. */
|
|
10
10
|
billingData?: Payabli.BillingData | undefined;
|
|
11
|
-
/** Vendor's city. */
|
|
11
|
+
/** Vendor's city. Required if any address field is provided. */
|
|
12
12
|
city?: string | undefined;
|
|
13
13
|
/** Array of objects describing the vendor's contacts. */
|
|
14
14
|
contacts?: Payabli.ContactsField | undefined;
|
|
15
|
-
/** Vendor's country. */
|
|
15
|
+
/** Vendor's country. Must be `US` or `CA`. Defaults to `US` if not provided. */
|
|
16
16
|
country?: string | undefined;
|
|
17
17
|
/** Custom field 1 for vendor */
|
|
18
18
|
customField1?: string | undefined;
|
|
@@ -40,9 +40,9 @@ export interface VendorData {
|
|
|
40
40
|
remitEmail?: Payabli.RemitEmail | undefined;
|
|
41
41
|
remitState?: Payabli.Remitstate | undefined;
|
|
42
42
|
remitZip?: Payabli.Remitzip | undefined;
|
|
43
|
-
/** Vendor's state. Must be a
|
|
43
|
+
/** Vendor's state or province. Required if any address field is provided. Must be a valid US state abbreviation (such as `CA`, `NY`) or Canadian province abbreviation (such as `ON`, `BC`), depending on the `country` value. */
|
|
44
44
|
state?: string | undefined;
|
|
45
45
|
vendorStatus?: Payabli.Vendorstatus | undefined;
|
|
46
|
-
/** Vendor's
|
|
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
48
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type * as Payabli from "../index.mjs";
|
|
2
2
|
export interface VendorOutData {
|
|
3
3
|
additionalData?: Payabli.AdditionalData | undefined;
|
|
4
|
-
/** Vendor's address */
|
|
4
|
+
/** Vendor's street address. Allowed characters are letters, numbers, spaces, and `. , */
|
|
5
5
|
Address1?: Payabli.AddressNullable | undefined;
|
|
6
|
-
/** Additional line for vendor's address. */
|
|
6
|
+
/** Additional line for vendor's address, such as a suite or unit number. */
|
|
7
7
|
Address2?: Payabli.AddressAddtlNullable | undefined;
|
|
8
8
|
/** Object containing vendor's bank information. */
|
|
9
9
|
BillingData?: Payabli.BillingData | undefined;
|
|
@@ -11,11 +11,11 @@ export interface VendorOutData {
|
|
|
11
11
|
City: string;
|
|
12
12
|
/** Array of objects describing the vendor's contacts. */
|
|
13
13
|
Contacts?: Payabli.ContactsField | undefined;
|
|
14
|
-
/** Vendor's country. */
|
|
14
|
+
/** Vendor's country. `US` or `CA`. */
|
|
15
15
|
Country: string;
|
|
16
16
|
/** Account number of paypoint in the vendor side. */
|
|
17
17
|
customerVendorAccount?: string | undefined;
|
|
18
|
-
/** EIN/Tax ID for vendor. In
|
|
18
|
+
/** EIN/Tax ID for vendor. Must be nine digits formatted as `XX-XXXXXXX`. In responses, this field is masked and looks like: `XXXXX6789`. */
|
|
19
19
|
EIN: string;
|
|
20
20
|
/** Vendor's email address. Required for vCard. */
|
|
21
21
|
Email?: Payabli.Email | undefined;
|
|
@@ -23,14 +23,14 @@ export interface VendorOutData {
|
|
|
23
23
|
InternalReferenceId?: number | undefined;
|
|
24
24
|
LocationCode?: Payabli.LocationCode | undefined;
|
|
25
25
|
Mcc?: Payabli.Mcc | undefined;
|
|
26
|
-
/** Primary name for vendor. Required for new vendor. */
|
|
26
|
+
/** Primary name for vendor. Required for new vendor. Allowed characters are letters, numbers, spaces, and `. , ' & ( ) */
|
|
27
27
|
Name1: string;
|
|
28
|
-
/** Secondary name for vendor. */
|
|
28
|
+
/** Secondary name for vendor. If provided, allowed characters are the same as `Name1`. */
|
|
29
29
|
Name2?: string | undefined;
|
|
30
30
|
payeeName1?: Payabli.PayeeName | undefined;
|
|
31
31
|
payeeName2?: Payabli.PayeeName | undefined;
|
|
32
32
|
PaymentMethod?: Payabli.VendorPaymentMethod | undefined;
|
|
33
|
-
/** Vendor's phone number */
|
|
33
|
+
/** Vendor's phone number. Digits only when creating or updating a vendor. */
|
|
34
34
|
Phone: string;
|
|
35
35
|
remitAddress1?: Payabli.Remitaddress1 | undefined;
|
|
36
36
|
remitAddress2?: Payabli.Remitaddress2 | undefined;
|
|
@@ -38,12 +38,12 @@ export interface VendorOutData {
|
|
|
38
38
|
remitCountry?: Payabli.Remitcountry | undefined;
|
|
39
39
|
remitState?: Payabli.Remitstate | undefined;
|
|
40
40
|
remitZip?: Payabli.Remitzip | undefined;
|
|
41
|
-
/** Vendor's state. Must be a
|
|
41
|
+
/** Vendor's state or province. Must be a valid US state or Canadian province abbreviation, depending on the `Country` value. */
|
|
42
42
|
State: string;
|
|
43
43
|
/** Payabli identifier for vendor record. Required when `VendorNumber` isn't included. */
|
|
44
44
|
VendorId?: Payabli.Vendorid | undefined;
|
|
45
45
|
VendorNumber?: Payabli.VendorNumber | undefined;
|
|
46
46
|
VendorStatus?: Payabli.Vendorstatus | undefined;
|
|
47
|
-
/** Vendor's
|
|
47
|
+
/** Vendor's ZIP or postal code. For US addresses, five digits (`12345`) or ZIP+4 format (`12345-6789`). */
|
|
48
48
|
Zip: string;
|
|
49
49
|
}
|
|
@@ -6,7 +6,7 @@ import type * as Payabli from "../index.mjs";
|
|
|
6
6
|
* Name1: "Herman's Coatings",
|
|
7
7
|
* Name2: "Herman's Coating Supply Company, LLC",
|
|
8
8
|
* EIN: "123456789",
|
|
9
|
-
* Phone: "
|
|
9
|
+
* Phone: "2125551234",
|
|
10
10
|
* Email: "example@email.com",
|
|
11
11
|
* Address1: "123 Ocean Drive",
|
|
12
12
|
* Address2: "Suite 400",
|
|
@@ -48,7 +48,7 @@ function getFileWithMetadata(file_1) {
|
|
|
48
48
|
}
|
|
49
49
|
if ("path" in file) {
|
|
50
50
|
const fs = yield import("fs");
|
|
51
|
-
if (!fs ||
|
|
51
|
+
if (!(fs === null || fs === void 0 ? void 0 : fs.createReadStream)) {
|
|
52
52
|
throw new Error("File path uploads are not supported in this environment.");
|
|
53
53
|
}
|
|
54
54
|
const data = fs.createReadStream(file.path);
|
|
@@ -89,9 +89,10 @@ function isFileLike(value) {
|
|
|
89
89
|
}
|
|
90
90
|
function tryGetFileSizeFromPath(path) {
|
|
91
91
|
return __awaiter(this, void 0, void 0, function* () {
|
|
92
|
+
var _a;
|
|
92
93
|
try {
|
|
93
94
|
const fs = yield import("fs");
|
|
94
|
-
if (!fs ||
|
|
95
|
+
if (!((_a = fs === null || fs === void 0 ? void 0 : fs.promises) === null || _a === void 0 ? void 0 : _a.stat)) {
|
|
95
96
|
return undefined;
|
|
96
97
|
}
|
|
97
98
|
const fileStat = yield fs.promises.stat(path);
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.0.
|
|
1
|
+
export declare const SDK_VERSION = "0.0.137";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.0.
|
|
1
|
+
export const SDK_VERSION = "0.0.137";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@payabli/sdk-node",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.137",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -99,6 +99,17 @@
|
|
|
99
99
|
},
|
|
100
100
|
"default": "./dist/cjs/api/resources/export/exports.js"
|
|
101
101
|
},
|
|
102
|
+
"./ghostCard": {
|
|
103
|
+
"import": {
|
|
104
|
+
"types": "./dist/esm/api/resources/ghostCard/exports.d.mts",
|
|
105
|
+
"default": "./dist/esm/api/resources/ghostCard/exports.mjs"
|
|
106
|
+
},
|
|
107
|
+
"require": {
|
|
108
|
+
"types": "./dist/cjs/api/resources/ghostCard/exports.d.ts",
|
|
109
|
+
"default": "./dist/cjs/api/resources/ghostCard/exports.js"
|
|
110
|
+
},
|
|
111
|
+
"default": "./dist/cjs/api/resources/ghostCard/exports.js"
|
|
112
|
+
},
|
|
102
113
|
"./hostedPaymentPages": {
|
|
103
114
|
"import": {
|
|
104
115
|
"types": "./dist/esm/api/resources/hostedPaymentPages/exports.d.mts",
|
|
@@ -231,6 +242,17 @@
|
|
|
231
242
|
},
|
|
232
243
|
"default": "./dist/cjs/api/resources/paymentMethodDomain/exports.js"
|
|
233
244
|
},
|
|
245
|
+
"./payoutSubscription": {
|
|
246
|
+
"import": {
|
|
247
|
+
"types": "./dist/esm/api/resources/payoutSubscription/exports.d.mts",
|
|
248
|
+
"default": "./dist/esm/api/resources/payoutSubscription/exports.mjs"
|
|
249
|
+
},
|
|
250
|
+
"require": {
|
|
251
|
+
"types": "./dist/cjs/api/resources/payoutSubscription/exports.d.ts",
|
|
252
|
+
"default": "./dist/cjs/api/resources/payoutSubscription/exports.js"
|
|
253
|
+
},
|
|
254
|
+
"default": "./dist/cjs/api/resources/payoutSubscription/exports.js"
|
|
255
|
+
},
|
|
234
256
|
"./paypoint": {
|
|
235
257
|
"import": {
|
|
236
258
|
"types": "./dist/esm/api/resources/paypoint/exports.d.mts",
|
|
@@ -354,13 +376,13 @@
|
|
|
354
376
|
},
|
|
355
377
|
"dependencies": {},
|
|
356
378
|
"devDependencies": {
|
|
357
|
-
"webpack": "^5.
|
|
358
|
-
"ts-loader": "^9.5.
|
|
359
|
-
"vitest": "^
|
|
379
|
+
"webpack": "^5.105.4",
|
|
380
|
+
"ts-loader": "^9.5.4",
|
|
381
|
+
"vitest": "^4.1.1",
|
|
360
382
|
"msw": "2.11.2",
|
|
361
383
|
"@types/node": "^18.19.70",
|
|
362
|
-
"typescript": "~5.
|
|
363
|
-
"@biomejs/biome": "2.4.
|
|
384
|
+
"typescript": "~5.9.3",
|
|
385
|
+
"@biomejs/biome": "2.4.9"
|
|
364
386
|
},
|
|
365
387
|
"browser": {
|
|
366
388
|
"fs": false,
|
|
@@ -369,7 +391,7 @@
|
|
|
369
391
|
"stream": false,
|
|
370
392
|
"crypto": false
|
|
371
393
|
},
|
|
372
|
-
"packageManager": "pnpm@10.
|
|
394
|
+
"packageManager": "pnpm@10.33.0",
|
|
373
395
|
"engines": {
|
|
374
396
|
"node": ">=18.0.0"
|
|
375
397
|
},
|