@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.
Files changed (178) hide show
  1. package/LICENSE.md +5 -6
  2. package/README.md +19 -13
  3. package/dist/cjs/BaseClient.js +2 -2
  4. package/dist/cjs/Client.d.ts +6 -0
  5. package/dist/cjs/Client.js +52 -42
  6. package/dist/cjs/api/resources/ghostCard/client/Client.d.ts +70 -0
  7. package/dist/cjs/api/resources/ghostCard/client/Client.js +204 -0
  8. package/dist/cjs/api/resources/ghostCard/client/index.d.ts +1 -0
  9. package/dist/cjs/api/resources/ghostCard/client/index.js +17 -0
  10. package/dist/cjs/api/resources/ghostCard/client/requests/CreateGhostCardRequestBody.d.ts +54 -0
  11. package/dist/cjs/api/resources/ghostCard/client/requests/CreateGhostCardRequestBody.js +3 -0
  12. package/dist/cjs/api/resources/ghostCard/client/requests/UpdateCardRequestBody.d.ts +14 -0
  13. package/dist/cjs/api/resources/ghostCard/client/requests/UpdateCardRequestBody.js +3 -0
  14. package/dist/cjs/api/resources/ghostCard/client/requests/index.d.ts +2 -0
  15. package/dist/cjs/api/resources/ghostCard/client/requests/index.js +2 -0
  16. package/dist/cjs/api/resources/ghostCard/exports.d.ts +2 -0
  17. package/dist/cjs/api/resources/ghostCard/exports.js +21 -0
  18. package/dist/cjs/api/resources/ghostCard/index.d.ts +2 -0
  19. package/dist/cjs/api/resources/ghostCard/index.js +18 -0
  20. package/dist/cjs/api/resources/ghostCard/types/CardStatus.d.ts +8 -0
  21. package/dist/cjs/api/resources/ghostCard/types/CardStatus.js +11 -0
  22. package/dist/cjs/api/resources/ghostCard/types/CreateGhostCardResponse.d.ts +17 -0
  23. package/dist/cjs/api/resources/ghostCard/types/CreateGhostCardResponse.js +3 -0
  24. package/dist/cjs/api/resources/ghostCard/types/index.d.ts +2 -0
  25. package/dist/cjs/api/resources/ghostCard/types/index.js +18 -0
  26. package/dist/cjs/api/resources/index.d.ts +6 -0
  27. package/dist/cjs/api/resources/index.js +7 -1
  28. package/dist/cjs/api/resources/payoutSubscription/client/Client.d.ts +156 -0
  29. package/dist/cjs/api/resources/payoutSubscription/client/Client.js +385 -0
  30. package/dist/cjs/api/resources/payoutSubscription/client/index.d.ts +1 -0
  31. package/dist/cjs/api/resources/payoutSubscription/client/index.js +17 -0
  32. package/dist/cjs/api/resources/payoutSubscription/client/requests/RequestPayoutSchedule.d.ts +67 -0
  33. package/dist/cjs/api/resources/payoutSubscription/client/requests/RequestPayoutSchedule.js +3 -0
  34. package/dist/cjs/api/resources/payoutSubscription/client/requests/index.d.ts +1 -0
  35. package/dist/cjs/api/resources/payoutSubscription/client/requests/index.js +2 -0
  36. package/dist/cjs/api/resources/payoutSubscription/exports.d.ts +2 -0
  37. package/dist/cjs/api/resources/payoutSubscription/exports.js +21 -0
  38. package/dist/cjs/api/resources/payoutSubscription/index.d.ts +2 -0
  39. package/dist/cjs/api/resources/payoutSubscription/index.js +18 -0
  40. package/dist/cjs/api/resources/payoutSubscription/types/AddPayoutSubscriptionResponse.d.ts +20 -0
  41. package/dist/cjs/api/resources/payoutSubscription/types/AddPayoutSubscriptionResponse.js +3 -0
  42. package/dist/cjs/api/resources/payoutSubscription/types/DeletePayoutSubscriptionResponse.d.ts +14 -0
  43. package/dist/cjs/api/resources/payoutSubscription/types/DeletePayoutSubscriptionResponse.js +3 -0
  44. package/dist/cjs/api/resources/payoutSubscription/types/GetPayoutSubscriptionResponse.d.ts +151 -0
  45. package/dist/cjs/api/resources/payoutSubscription/types/GetPayoutSubscriptionResponse.js +3 -0
  46. package/dist/cjs/api/resources/payoutSubscription/types/PayoutPaymentDetail.d.ts +31 -0
  47. package/dist/cjs/api/resources/payoutSubscription/types/PayoutPaymentDetail.js +3 -0
  48. package/dist/cjs/api/resources/payoutSubscription/types/PayoutScheduleDetail.d.ts +9 -0
  49. package/dist/cjs/api/resources/payoutSubscription/types/PayoutScheduleDetail.js +3 -0
  50. package/dist/cjs/api/resources/payoutSubscription/types/PayoutSetPause.d.ts +4 -0
  51. package/dist/cjs/api/resources/payoutSubscription/types/PayoutSetPause.js +3 -0
  52. package/dist/cjs/api/resources/payoutSubscription/types/PayoutSubscriptionQueryRecord.d.ts +195 -0
  53. package/dist/cjs/api/resources/payoutSubscription/types/PayoutSubscriptionQueryRecord.js +3 -0
  54. package/dist/cjs/api/resources/payoutSubscription/types/PayoutSubscriptionQueryRecordPascal.d.ts +195 -0
  55. package/dist/cjs/api/resources/payoutSubscription/types/PayoutSubscriptionQueryRecordPascal.js +3 -0
  56. package/dist/cjs/api/resources/payoutSubscription/types/PayoutSubscriptionRequestBody.d.ts +69 -0
  57. package/dist/cjs/api/resources/payoutSubscription/types/PayoutSubscriptionRequestBody.js +3 -0
  58. package/dist/cjs/api/resources/payoutSubscription/types/QueryPayoutSubscriptionResponse.d.ts +155 -0
  59. package/dist/cjs/api/resources/payoutSubscription/types/QueryPayoutSubscriptionResponse.js +3 -0
  60. package/dist/cjs/api/resources/payoutSubscription/types/UpdatePayoutSubscriptionBody.d.ts +9 -0
  61. package/dist/cjs/api/resources/payoutSubscription/types/UpdatePayoutSubscriptionBody.js +3 -0
  62. package/dist/cjs/api/resources/payoutSubscription/types/UpdatePayoutSubscriptionResponse.d.ts +15 -0
  63. package/dist/cjs/api/resources/payoutSubscription/types/UpdatePayoutSubscriptionResponse.js +3 -0
  64. package/dist/cjs/api/resources/payoutSubscription/types/index.d.ts +12 -0
  65. package/dist/cjs/api/resources/payoutSubscription/types/index.js +28 -0
  66. package/dist/cjs/api/resources/query/client/Client.d.ts +46 -6
  67. package/dist/cjs/api/resources/query/client/Client.js +150 -6
  68. package/dist/cjs/api/resources/query/client/requests/ListPayoutSubscriptionsOrgRequest.d.ts +84 -0
  69. package/dist/cjs/api/resources/query/client/requests/ListPayoutSubscriptionsOrgRequest.js +3 -0
  70. package/dist/cjs/api/resources/query/client/requests/ListPayoutSubscriptionsRequest.d.ts +84 -0
  71. package/dist/cjs/api/resources/query/client/requests/ListPayoutSubscriptionsRequest.js +3 -0
  72. package/dist/cjs/api/resources/query/client/requests/index.d.ts +2 -0
  73. package/dist/cjs/api/types/Remitaddress1.d.ts +1 -1
  74. package/dist/cjs/api/types/Remitaddress2.d.ts +1 -1
  75. package/dist/cjs/api/types/Remitcity.d.ts +1 -1
  76. package/dist/cjs/api/types/Remitcountry.d.ts +1 -1
  77. package/dist/cjs/api/types/Remitstate.d.ts +1 -1
  78. package/dist/cjs/api/types/Remitzip.d.ts +1 -1
  79. package/dist/cjs/api/types/VendorData.d.ts +6 -6
  80. package/dist/cjs/api/types/VendorEin.d.ts +1 -1
  81. package/dist/cjs/api/types/VendorName1.d.ts +1 -1
  82. package/dist/cjs/api/types/VendorName2.d.ts +1 -1
  83. package/dist/cjs/api/types/VendorNumber.d.ts +1 -1
  84. package/dist/cjs/api/types/VendorOutData.d.ts +9 -9
  85. package/dist/cjs/api/types/VendorQueryRecord.d.ts +1 -1
  86. package/dist/cjs/api/types/Vendorstatus.d.ts +5 -3
  87. package/dist/cjs/core/file/file.js +3 -2
  88. package/dist/cjs/version.d.ts +1 -1
  89. package/dist/cjs/version.js +1 -1
  90. package/dist/esm/BaseClient.mjs +2 -2
  91. package/dist/esm/Client.d.mts +6 -0
  92. package/dist/esm/Client.mjs +10 -0
  93. package/dist/esm/api/resources/ghostCard/client/Client.d.mts +70 -0
  94. package/dist/esm/api/resources/ghostCard/client/Client.mjs +167 -0
  95. package/dist/esm/api/resources/ghostCard/client/index.d.mts +1 -0
  96. package/dist/esm/api/resources/ghostCard/client/index.mjs +1 -0
  97. package/dist/esm/api/resources/ghostCard/client/requests/CreateGhostCardRequestBody.d.mts +54 -0
  98. package/dist/esm/api/resources/ghostCard/client/requests/CreateGhostCardRequestBody.mjs +2 -0
  99. package/dist/esm/api/resources/ghostCard/client/requests/UpdateCardRequestBody.d.mts +14 -0
  100. package/dist/esm/api/resources/ghostCard/client/requests/UpdateCardRequestBody.mjs +2 -0
  101. package/dist/esm/api/resources/ghostCard/client/requests/index.d.mts +2 -0
  102. package/dist/esm/api/resources/ghostCard/client/requests/index.mjs +1 -0
  103. package/dist/esm/api/resources/ghostCard/exports.d.mts +2 -0
  104. package/dist/esm/api/resources/ghostCard/exports.mjs +3 -0
  105. package/dist/esm/api/resources/ghostCard/index.d.mts +2 -0
  106. package/dist/esm/api/resources/ghostCard/index.mjs +2 -0
  107. package/dist/esm/api/resources/ghostCard/types/CardStatus.d.mts +8 -0
  108. package/dist/esm/api/resources/ghostCard/types/CardStatus.mjs +8 -0
  109. package/dist/esm/api/resources/ghostCard/types/CreateGhostCardResponse.d.mts +17 -0
  110. package/dist/esm/api/resources/ghostCard/types/CreateGhostCardResponse.mjs +2 -0
  111. package/dist/esm/api/resources/ghostCard/types/index.d.mts +2 -0
  112. package/dist/esm/api/resources/ghostCard/types/index.mjs +2 -0
  113. package/dist/esm/api/resources/index.d.mts +6 -0
  114. package/dist/esm/api/resources/index.mjs +6 -0
  115. package/dist/esm/api/resources/payoutSubscription/client/Client.d.mts +156 -0
  116. package/dist/esm/api/resources/payoutSubscription/client/Client.mjs +348 -0
  117. package/dist/esm/api/resources/payoutSubscription/client/index.d.mts +1 -0
  118. package/dist/esm/api/resources/payoutSubscription/client/index.mjs +1 -0
  119. package/dist/esm/api/resources/payoutSubscription/client/requests/RequestPayoutSchedule.d.mts +67 -0
  120. package/dist/esm/api/resources/payoutSubscription/client/requests/RequestPayoutSchedule.mjs +2 -0
  121. package/dist/esm/api/resources/payoutSubscription/client/requests/index.d.mts +1 -0
  122. package/dist/esm/api/resources/payoutSubscription/client/requests/index.mjs +1 -0
  123. package/dist/esm/api/resources/payoutSubscription/exports.d.mts +2 -0
  124. package/dist/esm/api/resources/payoutSubscription/exports.mjs +3 -0
  125. package/dist/esm/api/resources/payoutSubscription/index.d.mts +2 -0
  126. package/dist/esm/api/resources/payoutSubscription/index.mjs +2 -0
  127. package/dist/esm/api/resources/payoutSubscription/types/AddPayoutSubscriptionResponse.d.mts +20 -0
  128. package/dist/esm/api/resources/payoutSubscription/types/AddPayoutSubscriptionResponse.mjs +2 -0
  129. package/dist/esm/api/resources/payoutSubscription/types/DeletePayoutSubscriptionResponse.d.mts +14 -0
  130. package/dist/esm/api/resources/payoutSubscription/types/DeletePayoutSubscriptionResponse.mjs +2 -0
  131. package/dist/esm/api/resources/payoutSubscription/types/GetPayoutSubscriptionResponse.d.mts +151 -0
  132. package/dist/esm/api/resources/payoutSubscription/types/GetPayoutSubscriptionResponse.mjs +2 -0
  133. package/dist/esm/api/resources/payoutSubscription/types/PayoutPaymentDetail.d.mts +31 -0
  134. package/dist/esm/api/resources/payoutSubscription/types/PayoutPaymentDetail.mjs +2 -0
  135. package/dist/esm/api/resources/payoutSubscription/types/PayoutScheduleDetail.d.mts +9 -0
  136. package/dist/esm/api/resources/payoutSubscription/types/PayoutScheduleDetail.mjs +2 -0
  137. package/dist/esm/api/resources/payoutSubscription/types/PayoutSetPause.d.mts +4 -0
  138. package/dist/esm/api/resources/payoutSubscription/types/PayoutSetPause.mjs +2 -0
  139. package/dist/esm/api/resources/payoutSubscription/types/PayoutSubscriptionQueryRecord.d.mts +195 -0
  140. package/dist/esm/api/resources/payoutSubscription/types/PayoutSubscriptionQueryRecord.mjs +2 -0
  141. package/dist/esm/api/resources/payoutSubscription/types/PayoutSubscriptionQueryRecordPascal.d.mts +195 -0
  142. package/dist/esm/api/resources/payoutSubscription/types/PayoutSubscriptionQueryRecordPascal.mjs +2 -0
  143. package/dist/esm/api/resources/payoutSubscription/types/PayoutSubscriptionRequestBody.d.mts +69 -0
  144. package/dist/esm/api/resources/payoutSubscription/types/PayoutSubscriptionRequestBody.mjs +2 -0
  145. package/dist/esm/api/resources/payoutSubscription/types/QueryPayoutSubscriptionResponse.d.mts +155 -0
  146. package/dist/esm/api/resources/payoutSubscription/types/QueryPayoutSubscriptionResponse.mjs +2 -0
  147. package/dist/esm/api/resources/payoutSubscription/types/UpdatePayoutSubscriptionBody.d.mts +9 -0
  148. package/dist/esm/api/resources/payoutSubscription/types/UpdatePayoutSubscriptionBody.mjs +2 -0
  149. package/dist/esm/api/resources/payoutSubscription/types/UpdatePayoutSubscriptionResponse.d.mts +15 -0
  150. package/dist/esm/api/resources/payoutSubscription/types/UpdatePayoutSubscriptionResponse.mjs +2 -0
  151. package/dist/esm/api/resources/payoutSubscription/types/index.d.mts +12 -0
  152. package/dist/esm/api/resources/payoutSubscription/types/index.mjs +12 -0
  153. package/dist/esm/api/resources/query/client/Client.d.mts +46 -6
  154. package/dist/esm/api/resources/query/client/Client.mjs +150 -6
  155. package/dist/esm/api/resources/query/client/requests/ListPayoutSubscriptionsOrgRequest.d.mts +84 -0
  156. package/dist/esm/api/resources/query/client/requests/ListPayoutSubscriptionsOrgRequest.mjs +2 -0
  157. package/dist/esm/api/resources/query/client/requests/ListPayoutSubscriptionsRequest.d.mts +84 -0
  158. package/dist/esm/api/resources/query/client/requests/ListPayoutSubscriptionsRequest.mjs +2 -0
  159. package/dist/esm/api/resources/query/client/requests/index.d.mts +2 -0
  160. package/dist/esm/api/types/Remitaddress1.d.mts +1 -1
  161. package/dist/esm/api/types/Remitaddress2.d.mts +1 -1
  162. package/dist/esm/api/types/Remitcity.d.mts +1 -1
  163. package/dist/esm/api/types/Remitcountry.d.mts +1 -1
  164. package/dist/esm/api/types/Remitstate.d.mts +1 -1
  165. package/dist/esm/api/types/Remitzip.d.mts +1 -1
  166. package/dist/esm/api/types/VendorData.d.mts +6 -6
  167. package/dist/esm/api/types/VendorEin.d.mts +1 -1
  168. package/dist/esm/api/types/VendorName1.d.mts +1 -1
  169. package/dist/esm/api/types/VendorName2.d.mts +1 -1
  170. package/dist/esm/api/types/VendorNumber.d.mts +1 -1
  171. package/dist/esm/api/types/VendorOutData.d.mts +9 -9
  172. package/dist/esm/api/types/VendorQueryRecord.d.mts +1 -1
  173. package/dist/esm/api/types/Vendorstatus.d.mts +5 -3
  174. package/dist/esm/core/file/file.mjs +3 -2
  175. package/dist/esm/version.d.mts +1 -1
  176. package/dist/esm/version.mjs +1 -1
  177. package/package.json +29 -7
  178. 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 additional line. Used for mailing paper checks.
2
+ * Remittance address additional line, such as a suite or unit number. Used for mailing paper checks. Always optional.
3
3
  */
4
4
  export type Remitaddress2 = string;
@@ -1,4 +1,4 @@
1
1
  /**
2
- * Remittance address city. Used for mailing paper checks.
2
+ * Remittance address city. Used for mailing paper checks. Required if any remittance address field is provided.
3
3
  */
4
4
  export type Remitcity = string;
@@ -1,4 +1,4 @@
1
1
  /**
2
- * Remittance address country. Used for mailing paper checks.
2
+ * Remittance address country. Used for mailing paper checks. Must be `US` or `CA`. Defaults to `US` if not provided.
3
3
  */
4
4
  export type Remitcountry = 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 2 character state code. */
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 zip code. */
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,4 +1,4 @@
1
1
  /**
2
- * EIN/Tax ID for vendor.
2
+ * EIN/Tax ID for vendor. Must be nine digits formatted as `XX-XXXXXXX` (for example, `12-3456789`).
3
3
  */
4
4
  export type VendorEin = string;
@@ -1,4 +1,4 @@
1
1
  /**
2
- * Primary name for vendor. Required for new vendor.
2
+ * Primary name for vendor. Required for new vendor. Allowed characters are letters, numbers, spaces, and the following symbols `. , ' & ( )
3
3
  */
4
4
  export type VendorName1 = string;
@@ -1,4 +1,4 @@
1
1
  /**
2
- * Secondary name for vendor.
2
+ * Secondary name for vendor. If provided, allowed characters are the same as the `name1` field. Letters, numbers, spaces, and `. , ' & ( )
3
3
  */
4
4
  export type VendorName2 = string;
@@ -1,4 +1,4 @@
1
1
  /**
2
- * Custom number identifying the vendor. Must be unique in paypoint.
2
+ * Custom number identifying the vendor. Must be unique in paypoint. Can't be blank.
3
3
  */
4
4
  export type VendorNumber = string;
@@ -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 reponses, this field is masked, and looks like: `XXXXX6789`. */
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 2 character state code. */
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 zip code. */
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: "212-555-1234",
9
+ * Phone: "2125551234",
10
10
  * Email: "example@email.com",
11
11
  * Address1: "123 Ocean Drive",
12
12
  * Address2: "Suite 400",
@@ -1,9 +1,11 @@
1
1
  /**
2
2
  * Vendor's status.
3
- * Allowed status:
3
+ * Allowed values:
4
4
  *
5
- * - 0 Inactive
5
+ * - `0` Inactive
6
6
  *
7
- * - 1 Active
7
+ * - `1` Active
8
+ *
9
+ * - `-99` Deleted
8
10
  */
9
11
  export type Vendorstatus = number;
@@ -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 || !fs.createReadStream) {
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 || !fs.promises || !fs.promises.stat) {
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);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.135";
1
+ export declare const SDK_VERSION = "0.0.137";
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.0.135";
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.135",
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.97.1",
358
- "ts-loader": "^9.5.1",
359
- "vitest": "^3.2.4",
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.7.2",
363
- "@biomejs/biome": "2.4.3"
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.20.0",
394
+ "packageManager": "pnpm@10.33.0",
373
395
  "engines": {
374
396
  "node": ">=18.0.0"
375
397
  },