@paid-ai/paid-node 1.2.0 → 1.3.0

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 (200) hide show
  1. package/dist/cjs/Client.d.ts +6 -0
  2. package/dist/cjs/Client.js +12 -2
  3. package/dist/cjs/api/errors/ConflictError.d.ts +6 -0
  4. package/dist/cjs/api/errors/ConflictError.js +50 -0
  5. package/dist/cjs/api/errors/index.d.ts +1 -0
  6. package/dist/cjs/api/errors/index.js +1 -0
  7. package/dist/cjs/api/resources/checkouts/client/Client.d.ts +1 -1
  8. package/dist/cjs/api/resources/checkouts/client/requests/CreateCheckoutRequest.d.ts +2 -0
  9. package/dist/cjs/api/resources/customers/client/Client.d.ts +21 -0
  10. package/dist/cjs/api/resources/customers/client/Client.js +92 -0
  11. package/dist/cjs/api/resources/customers/client/requests/UpsertCustomerUserRequest.d.ts +16 -0
  12. package/dist/cjs/api/resources/customers/client/requests/UpsertCustomerUserRequest.js +3 -0
  13. package/dist/cjs/api/resources/customers/client/requests/index.d.ts +1 -0
  14. package/dist/cjs/api/resources/index.d.ts +6 -0
  15. package/dist/cjs/api/resources/index.js +7 -1
  16. package/dist/cjs/api/resources/orders/client/Client.d.ts +60 -0
  17. package/dist/cjs/api/resources/orders/client/Client.js +242 -0
  18. package/dist/cjs/api/resources/orders/client/requests/BatchSeatAssignmentsRequest.d.ts +22 -0
  19. package/dist/cjs/api/resources/orders/client/requests/BatchSeatAssignmentsRequest.js +3 -0
  20. package/dist/cjs/api/resources/orders/client/requests/ListOrderSeatsRequest.d.ts +14 -0
  21. package/dist/cjs/api/resources/orders/client/requests/ListOrderSeatsRequest.js +3 -0
  22. package/dist/cjs/api/resources/orders/client/requests/UpdateSeatAssignmentRequest.d.ts +12 -0
  23. package/dist/cjs/api/resources/orders/client/requests/UpdateSeatAssignmentRequest.js +3 -0
  24. package/dist/cjs/api/resources/orders/client/requests/index.d.ts +3 -0
  25. package/dist/cjs/api/resources/orders/index.d.ts +1 -0
  26. package/dist/cjs/api/resources/orders/index.js +1 -0
  27. package/dist/cjs/api/resources/orders/types/ListOrderSeatsRequestStatus.d.ts +5 -0
  28. package/dist/cjs/api/resources/orders/types/ListOrderSeatsRequestStatus.js +8 -0
  29. package/dist/cjs/api/resources/orders/types/index.d.ts +1 -0
  30. package/dist/cjs/api/resources/orders/types/index.js +17 -0
  31. package/dist/cjs/api/resources/valueReceipts/client/Client.d.ts +75 -0
  32. package/dist/cjs/api/resources/valueReceipts/client/Client.js +347 -0
  33. package/dist/cjs/api/resources/valueReceipts/client/index.d.ts +1 -0
  34. package/dist/cjs/api/resources/valueReceipts/client/index.js +17 -0
  35. package/dist/cjs/api/resources/valueReceipts/client/requests/GetValueReceiptByIdRequest.d.ts +9 -0
  36. package/dist/cjs/api/resources/valueReceipts/client/requests/GetValueReceiptByIdRequest.js +3 -0
  37. package/dist/cjs/api/resources/valueReceipts/client/requests/ListValueReceiptsRequest.d.ts +10 -0
  38. package/dist/cjs/api/resources/valueReceipts/client/requests/ListValueReceiptsRequest.js +3 -0
  39. package/dist/cjs/api/resources/valueReceipts/client/requests/PublishValueReceiptBody.d.ts +10 -0
  40. package/dist/cjs/api/resources/valueReceipts/client/requests/PublishValueReceiptBody.js +3 -0
  41. package/dist/cjs/api/resources/valueReceipts/client/requests/UnpublishValueReceiptRequest.d.ts +9 -0
  42. package/dist/cjs/api/resources/valueReceipts/client/requests/UnpublishValueReceiptRequest.js +3 -0
  43. package/dist/cjs/api/resources/valueReceipts/client/requests/index.d.ts +4 -0
  44. package/dist/cjs/api/resources/valueReceipts/client/requests/index.js +2 -0
  45. package/dist/cjs/api/resources/valueReceipts/index.d.ts +1 -0
  46. package/dist/cjs/api/resources/valueReceipts/index.js +17 -0
  47. package/dist/cjs/api/resources/webhooks/client/Client.d.ts +63 -0
  48. package/dist/cjs/api/resources/webhooks/client/Client.js +282 -0
  49. package/dist/cjs/api/resources/webhooks/client/index.d.ts +1 -0
  50. package/dist/cjs/api/resources/webhooks/client/index.js +17 -0
  51. package/dist/cjs/api/resources/webhooks/client/requests/TestWebhookRequest.d.ts +10 -0
  52. package/dist/cjs/api/resources/webhooks/client/requests/TestWebhookRequest.js +3 -0
  53. package/dist/cjs/api/resources/webhooks/client/requests/UpdateWebhookRequest.d.ts +14 -0
  54. package/dist/cjs/api/resources/webhooks/client/requests/UpdateWebhookRequest.js +3 -0
  55. package/dist/cjs/api/resources/webhooks/client/requests/index.d.ts +2 -0
  56. package/dist/cjs/api/resources/webhooks/client/requests/index.js +2 -0
  57. package/dist/cjs/api/resources/webhooks/index.d.ts +2 -0
  58. package/dist/cjs/api/resources/webhooks/index.js +18 -0
  59. package/dist/cjs/api/resources/webhooks/types/TestWebhookRequestWebhookName.d.ts +12 -0
  60. package/dist/cjs/api/resources/webhooks/types/TestWebhookRequestWebhookName.js +15 -0
  61. package/dist/cjs/api/resources/webhooks/types/UpdateWebhookRequestWebhookName.d.ts +12 -0
  62. package/dist/cjs/api/resources/webhooks/types/UpdateWebhookRequestWebhookName.js +15 -0
  63. package/dist/cjs/api/resources/webhooks/types/index.d.ts +2 -0
  64. package/dist/cjs/api/resources/webhooks/types/index.js +18 -0
  65. package/dist/cjs/api/types/BatchSeatAssignmentsResponse.d.ts +4 -0
  66. package/dist/cjs/api/types/BatchSeatAssignmentsResponse.js +3 -0
  67. package/dist/cjs/api/types/Checkout.d.ts +1 -0
  68. package/dist/cjs/api/types/CheckoutDetails.d.ts +21 -0
  69. package/dist/cjs/api/types/CheckoutDetails.js +3 -0
  70. package/dist/cjs/api/types/CustomerUser.d.ts +13 -0
  71. package/dist/cjs/api/types/CustomerUser.js +3 -0
  72. package/dist/cjs/api/types/CustomerUserStatus.d.ts +5 -0
  73. package/dist/cjs/api/types/CustomerUserStatus.js +8 -0
  74. package/dist/cjs/api/types/OrderSeat.d.ts +10 -0
  75. package/dist/cjs/api/types/OrderSeat.js +3 -0
  76. package/dist/cjs/api/types/OrderSeatListResponse.d.ts +5 -0
  77. package/dist/cjs/api/types/OrderSeatListResponse.js +3 -0
  78. package/dist/cjs/api/types/SeatAssignee.d.ts +5 -0
  79. package/dist/cjs/api/types/SeatAssignee.js +3 -0
  80. package/dist/cjs/api/types/SeatAssignmentStatus.d.ts +5 -0
  81. package/dist/cjs/api/types/SeatAssignmentStatus.js +8 -0
  82. package/dist/cjs/api/types/ValueReceiptDetail.d.ts +19 -0
  83. package/dist/cjs/api/types/ValueReceiptDetail.js +3 -0
  84. package/dist/cjs/api/types/ValueReceiptListResponse.d.ts +5 -0
  85. package/dist/cjs/api/types/ValueReceiptListResponse.js +3 -0
  86. package/dist/cjs/api/types/ValueReceiptSummary.d.ts +16 -0
  87. package/dist/cjs/api/types/ValueReceiptSummary.js +3 -0
  88. package/dist/cjs/api/types/Webhook.d.ts +24 -0
  89. package/dist/cjs/api/types/Webhook.js +18 -0
  90. package/dist/cjs/api/types/WebhookDeliveryStatus.d.ts +5 -0
  91. package/dist/cjs/api/types/WebhookDeliveryStatus.js +8 -0
  92. package/dist/cjs/api/types/WebhookListResponse.d.ts +4 -0
  93. package/dist/cjs/api/types/WebhookListResponse.js +3 -0
  94. package/dist/cjs/api/types/WebhookTestResponse.d.ts +3 -0
  95. package/dist/cjs/api/types/WebhookTestResponse.js +3 -0
  96. package/dist/cjs/api/types/index.d.ts +15 -0
  97. package/dist/cjs/api/types/index.js +15 -0
  98. package/dist/cjs/version.d.ts +1 -1
  99. package/dist/cjs/version.js +1 -1
  100. package/dist/esm/Client.d.mts +6 -0
  101. package/dist/esm/Client.mjs +12 -2
  102. package/dist/esm/api/errors/ConflictError.d.mts +6 -0
  103. package/dist/esm/api/errors/ConflictError.mjs +13 -0
  104. package/dist/esm/api/errors/index.d.mts +1 -0
  105. package/dist/esm/api/errors/index.mjs +1 -0
  106. package/dist/esm/api/resources/checkouts/client/Client.d.mts +1 -1
  107. package/dist/esm/api/resources/checkouts/client/requests/CreateCheckoutRequest.d.mts +2 -0
  108. package/dist/esm/api/resources/customers/client/Client.d.mts +21 -0
  109. package/dist/esm/api/resources/customers/client/Client.mjs +92 -0
  110. package/dist/esm/api/resources/customers/client/requests/UpsertCustomerUserRequest.d.mts +16 -0
  111. package/dist/esm/api/resources/customers/client/requests/UpsertCustomerUserRequest.mjs +2 -0
  112. package/dist/esm/api/resources/customers/client/requests/index.d.mts +1 -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/orders/client/Client.d.mts +60 -0
  116. package/dist/esm/api/resources/orders/client/Client.mjs +242 -0
  117. package/dist/esm/api/resources/orders/client/requests/BatchSeatAssignmentsRequest.d.mts +22 -0
  118. package/dist/esm/api/resources/orders/client/requests/BatchSeatAssignmentsRequest.mjs +2 -0
  119. package/dist/esm/api/resources/orders/client/requests/ListOrderSeatsRequest.d.mts +14 -0
  120. package/dist/esm/api/resources/orders/client/requests/ListOrderSeatsRequest.mjs +2 -0
  121. package/dist/esm/api/resources/orders/client/requests/UpdateSeatAssignmentRequest.d.mts +12 -0
  122. package/dist/esm/api/resources/orders/client/requests/UpdateSeatAssignmentRequest.mjs +2 -0
  123. package/dist/esm/api/resources/orders/client/requests/index.d.mts +3 -0
  124. package/dist/esm/api/resources/orders/index.d.mts +1 -0
  125. package/dist/esm/api/resources/orders/index.mjs +1 -0
  126. package/dist/esm/api/resources/orders/types/ListOrderSeatsRequestStatus.d.mts +5 -0
  127. package/dist/esm/api/resources/orders/types/ListOrderSeatsRequestStatus.mjs +5 -0
  128. package/dist/esm/api/resources/orders/types/index.d.mts +1 -0
  129. package/dist/esm/api/resources/orders/types/index.mjs +1 -0
  130. package/dist/esm/api/resources/valueReceipts/client/Client.d.mts +75 -0
  131. package/dist/esm/api/resources/valueReceipts/client/Client.mjs +310 -0
  132. package/dist/esm/api/resources/valueReceipts/client/index.d.mts +1 -0
  133. package/dist/esm/api/resources/valueReceipts/client/index.mjs +1 -0
  134. package/dist/esm/api/resources/valueReceipts/client/requests/GetValueReceiptByIdRequest.d.mts +9 -0
  135. package/dist/esm/api/resources/valueReceipts/client/requests/GetValueReceiptByIdRequest.mjs +2 -0
  136. package/dist/esm/api/resources/valueReceipts/client/requests/ListValueReceiptsRequest.d.mts +10 -0
  137. package/dist/esm/api/resources/valueReceipts/client/requests/ListValueReceiptsRequest.mjs +2 -0
  138. package/dist/esm/api/resources/valueReceipts/client/requests/PublishValueReceiptBody.d.mts +10 -0
  139. package/dist/esm/api/resources/valueReceipts/client/requests/PublishValueReceiptBody.mjs +2 -0
  140. package/dist/esm/api/resources/valueReceipts/client/requests/UnpublishValueReceiptRequest.d.mts +9 -0
  141. package/dist/esm/api/resources/valueReceipts/client/requests/UnpublishValueReceiptRequest.mjs +2 -0
  142. package/dist/esm/api/resources/valueReceipts/client/requests/index.d.mts +4 -0
  143. package/dist/esm/api/resources/valueReceipts/client/requests/index.mjs +1 -0
  144. package/dist/esm/api/resources/valueReceipts/index.d.mts +1 -0
  145. package/dist/esm/api/resources/valueReceipts/index.mjs +1 -0
  146. package/dist/esm/api/resources/webhooks/client/Client.d.mts +63 -0
  147. package/dist/esm/api/resources/webhooks/client/Client.mjs +245 -0
  148. package/dist/esm/api/resources/webhooks/client/index.d.mts +1 -0
  149. package/dist/esm/api/resources/webhooks/client/index.mjs +1 -0
  150. package/dist/esm/api/resources/webhooks/client/requests/TestWebhookRequest.d.mts +10 -0
  151. package/dist/esm/api/resources/webhooks/client/requests/TestWebhookRequest.mjs +2 -0
  152. package/dist/esm/api/resources/webhooks/client/requests/UpdateWebhookRequest.d.mts +14 -0
  153. package/dist/esm/api/resources/webhooks/client/requests/UpdateWebhookRequest.mjs +2 -0
  154. package/dist/esm/api/resources/webhooks/client/requests/index.d.mts +2 -0
  155. package/dist/esm/api/resources/webhooks/client/requests/index.mjs +1 -0
  156. package/dist/esm/api/resources/webhooks/index.d.mts +2 -0
  157. package/dist/esm/api/resources/webhooks/index.mjs +2 -0
  158. package/dist/esm/api/resources/webhooks/types/TestWebhookRequestWebhookName.d.mts +12 -0
  159. package/dist/esm/api/resources/webhooks/types/TestWebhookRequestWebhookName.mjs +12 -0
  160. package/dist/esm/api/resources/webhooks/types/UpdateWebhookRequestWebhookName.d.mts +12 -0
  161. package/dist/esm/api/resources/webhooks/types/UpdateWebhookRequestWebhookName.mjs +12 -0
  162. package/dist/esm/api/resources/webhooks/types/index.d.mts +2 -0
  163. package/dist/esm/api/resources/webhooks/types/index.mjs +2 -0
  164. package/dist/esm/api/types/BatchSeatAssignmentsResponse.d.mts +4 -0
  165. package/dist/esm/api/types/BatchSeatAssignmentsResponse.mjs +2 -0
  166. package/dist/esm/api/types/Checkout.d.mts +1 -0
  167. package/dist/esm/api/types/CheckoutDetails.d.mts +21 -0
  168. package/dist/esm/api/types/CheckoutDetails.mjs +2 -0
  169. package/dist/esm/api/types/CustomerUser.d.mts +13 -0
  170. package/dist/esm/api/types/CustomerUser.mjs +2 -0
  171. package/dist/esm/api/types/CustomerUserStatus.d.mts +5 -0
  172. package/dist/esm/api/types/CustomerUserStatus.mjs +5 -0
  173. package/dist/esm/api/types/OrderSeat.d.mts +10 -0
  174. package/dist/esm/api/types/OrderSeat.mjs +2 -0
  175. package/dist/esm/api/types/OrderSeatListResponse.d.mts +5 -0
  176. package/dist/esm/api/types/OrderSeatListResponse.mjs +2 -0
  177. package/dist/esm/api/types/SeatAssignee.d.mts +5 -0
  178. package/dist/esm/api/types/SeatAssignee.mjs +2 -0
  179. package/dist/esm/api/types/SeatAssignmentStatus.d.mts +5 -0
  180. package/dist/esm/api/types/SeatAssignmentStatus.mjs +5 -0
  181. package/dist/esm/api/types/ValueReceiptDetail.d.mts +19 -0
  182. package/dist/esm/api/types/ValueReceiptDetail.mjs +2 -0
  183. package/dist/esm/api/types/ValueReceiptListResponse.d.mts +5 -0
  184. package/dist/esm/api/types/ValueReceiptListResponse.mjs +2 -0
  185. package/dist/esm/api/types/ValueReceiptSummary.d.mts +16 -0
  186. package/dist/esm/api/types/ValueReceiptSummary.mjs +2 -0
  187. package/dist/esm/api/types/Webhook.d.mts +24 -0
  188. package/dist/esm/api/types/Webhook.mjs +15 -0
  189. package/dist/esm/api/types/WebhookDeliveryStatus.d.mts +5 -0
  190. package/dist/esm/api/types/WebhookDeliveryStatus.mjs +5 -0
  191. package/dist/esm/api/types/WebhookListResponse.d.mts +4 -0
  192. package/dist/esm/api/types/WebhookListResponse.mjs +2 -0
  193. package/dist/esm/api/types/WebhookTestResponse.d.mts +3 -0
  194. package/dist/esm/api/types/WebhookTestResponse.mjs +2 -0
  195. package/dist/esm/api/types/index.d.mts +15 -0
  196. package/dist/esm/api/types/index.mjs +15 -0
  197. package/dist/esm/version.d.mts +1 -1
  198. package/dist/esm/version.mjs +1 -1
  199. package/package.json +1 -1
  200. package/reference.md +711 -1
@@ -0,0 +1,16 @@
1
+ export interface ValueReceiptSummary {
2
+ id: string;
3
+ status: string;
4
+ publicUrlToken: string;
5
+ publicUrl: string;
6
+ isPublished: boolean;
7
+ customerId: string | null;
8
+ customerName: string | null;
9
+ customerExternalId: string | null;
10
+ orderId: string | null;
11
+ currency: string;
12
+ startDate: string | null;
13
+ endDate: string | null;
14
+ totalDeliveredValue: number | null;
15
+ createdAt: string;
16
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,24 @@
1
+ import type * as Paid from "../index.js";
2
+ export interface Webhook {
3
+ id: string;
4
+ name: Webhook.Name;
5
+ description: string;
6
+ enabled: boolean;
7
+ url: string | null;
8
+ lastSentAt: string | null;
9
+ lastStatus: Paid.WebhookDeliveryStatus | null;
10
+ }
11
+ export declare namespace Webhook {
12
+ const Name: {
13
+ readonly BillingInvoiceCreated: "billing-invoice-created";
14
+ readonly BillingInvoicePaid: "billing-invoice-paid";
15
+ readonly BillingCheckoutCreated: "billing-checkout-created";
16
+ readonly BillingCheckoutCompleted: "billing-checkout-completed";
17
+ readonly BillingCheckoutExpired: "billing-checkout-expired";
18
+ readonly BillingPaymentSucceeded: "billing-payment-succeeded";
19
+ readonly BillingPaymentFailed: "billing-payment-failed";
20
+ readonly BillingCreditsDepleted: "billing-credits-depleted";
21
+ readonly BillingOverageIncurred: "billing-overage-incurred";
22
+ };
23
+ type Name = (typeof Name)[keyof typeof Name];
24
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Webhook = void 0;
5
+ var Webhook;
6
+ (function (Webhook) {
7
+ Webhook.Name = {
8
+ BillingInvoiceCreated: "billing-invoice-created",
9
+ BillingInvoicePaid: "billing-invoice-paid",
10
+ BillingCheckoutCreated: "billing-checkout-created",
11
+ BillingCheckoutCompleted: "billing-checkout-completed",
12
+ BillingCheckoutExpired: "billing-checkout-expired",
13
+ BillingPaymentSucceeded: "billing-payment-succeeded",
14
+ BillingPaymentFailed: "billing-payment-failed",
15
+ BillingCreditsDepleted: "billing-credits-depleted",
16
+ BillingOverageIncurred: "billing-overage-incurred",
17
+ };
18
+ })(Webhook || (exports.Webhook = Webhook = {}));
@@ -0,0 +1,5 @@
1
+ export declare const WebhookDeliveryStatus: {
2
+ readonly Success: "success";
3
+ readonly Failed: "failed";
4
+ };
5
+ export type WebhookDeliveryStatus = (typeof WebhookDeliveryStatus)[keyof typeof WebhookDeliveryStatus];
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.WebhookDeliveryStatus = void 0;
5
+ exports.WebhookDeliveryStatus = {
6
+ Success: "success",
7
+ Failed: "failed",
8
+ };
@@ -0,0 +1,4 @@
1
+ import type * as Paid from "../index.js";
2
+ export interface WebhookListResponse {
3
+ data: Paid.Webhook[];
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export interface WebhookTestResponse {
2
+ success: boolean;
3
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,8 @@
1
1
  export * from "./Attribution.js";
2
+ export * from "./BatchSeatAssignmentsResponse.js";
2
3
  export * from "./BulkSignalsResponse.js";
3
4
  export * from "./Checkout.js";
5
+ export * from "./CheckoutDetails.js";
4
6
  export * from "./CheckoutListResponse.js";
5
7
  export * from "./CheckoutProduct.js";
6
8
  export * from "./CheckoutProductInput.js";
@@ -23,6 +25,8 @@ export * from "./CustomerCreationState.js";
23
25
  export * from "./CustomerListResponse.js";
24
26
  export * from "./CustomerPortal.js";
25
27
  export * from "./CustomerPortalStatus.js";
28
+ export * from "./CustomerUser.js";
29
+ export * from "./CustomerUserStatus.js";
26
30
  export * from "./EmptyResponse.js";
27
31
  export * from "./ErrorResponse.js";
28
32
  export * from "./Invoice.js";
@@ -34,12 +38,23 @@ export * from "./OrderCreationState.js";
34
38
  export * from "./OrderLine.js";
35
39
  export * from "./OrderLinesResponse.js";
36
40
  export * from "./OrderListResponse.js";
41
+ export * from "./OrderSeat.js";
42
+ export * from "./OrderSeatListResponse.js";
37
43
  export * from "./Pagination.js";
38
44
  export * from "./Product.js";
39
45
  export * from "./ProductByExternalId.js";
40
46
  export * from "./ProductById.js";
41
47
  export * from "./ProductListResponse.js";
48
+ export * from "./SeatAssignee.js";
49
+ export * from "./SeatAssignmentStatus.js";
42
50
  export * from "./Signal.js";
43
51
  export * from "./UpdateContactRequest.js";
44
52
  export * from "./UpdateCustomerRequest.js";
45
53
  export * from "./UpdateProductRequest.js";
54
+ export * from "./ValueReceiptDetail.js";
55
+ export * from "./ValueReceiptListResponse.js";
56
+ export * from "./ValueReceiptSummary.js";
57
+ export * from "./Webhook.js";
58
+ export * from "./WebhookDeliveryStatus.js";
59
+ export * from "./WebhookListResponse.js";
60
+ export * from "./WebhookTestResponse.js";
@@ -15,8 +15,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./Attribution.js"), exports);
18
+ __exportStar(require("./BatchSeatAssignmentsResponse.js"), exports);
18
19
  __exportStar(require("./BulkSignalsResponse.js"), exports);
19
20
  __exportStar(require("./Checkout.js"), exports);
21
+ __exportStar(require("./CheckoutDetails.js"), exports);
20
22
  __exportStar(require("./CheckoutListResponse.js"), exports);
21
23
  __exportStar(require("./CheckoutProduct.js"), exports);
22
24
  __exportStar(require("./CheckoutProductInput.js"), exports);
@@ -39,6 +41,8 @@ __exportStar(require("./CustomerCreationState.js"), exports);
39
41
  __exportStar(require("./CustomerListResponse.js"), exports);
40
42
  __exportStar(require("./CustomerPortal.js"), exports);
41
43
  __exportStar(require("./CustomerPortalStatus.js"), exports);
44
+ __exportStar(require("./CustomerUser.js"), exports);
45
+ __exportStar(require("./CustomerUserStatus.js"), exports);
42
46
  __exportStar(require("./EmptyResponse.js"), exports);
43
47
  __exportStar(require("./ErrorResponse.js"), exports);
44
48
  __exportStar(require("./Invoice.js"), exports);
@@ -50,12 +54,23 @@ __exportStar(require("./OrderCreationState.js"), exports);
50
54
  __exportStar(require("./OrderLine.js"), exports);
51
55
  __exportStar(require("./OrderLinesResponse.js"), exports);
52
56
  __exportStar(require("./OrderListResponse.js"), exports);
57
+ __exportStar(require("./OrderSeat.js"), exports);
58
+ __exportStar(require("./OrderSeatListResponse.js"), exports);
53
59
  __exportStar(require("./Pagination.js"), exports);
54
60
  __exportStar(require("./Product.js"), exports);
55
61
  __exportStar(require("./ProductByExternalId.js"), exports);
56
62
  __exportStar(require("./ProductById.js"), exports);
57
63
  __exportStar(require("./ProductListResponse.js"), exports);
64
+ __exportStar(require("./SeatAssignee.js"), exports);
65
+ __exportStar(require("./SeatAssignmentStatus.js"), exports);
58
66
  __exportStar(require("./Signal.js"), exports);
59
67
  __exportStar(require("./UpdateContactRequest.js"), exports);
60
68
  __exportStar(require("./UpdateCustomerRequest.js"), exports);
61
69
  __exportStar(require("./UpdateProductRequest.js"), exports);
70
+ __exportStar(require("./ValueReceiptDetail.js"), exports);
71
+ __exportStar(require("./ValueReceiptListResponse.js"), exports);
72
+ __exportStar(require("./ValueReceiptSummary.js"), exports);
73
+ __exportStar(require("./Webhook.js"), exports);
74
+ __exportStar(require("./WebhookDeliveryStatus.js"), exports);
75
+ __exportStar(require("./WebhookListResponse.js"), exports);
76
+ __exportStar(require("./WebhookTestResponse.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.2.0";
1
+ export declare const SDK_VERSION = "1.3.0";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "1.2.0";
4
+ exports.SDK_VERSION = "1.3.0";
@@ -7,6 +7,8 @@ import { Invoices } from "./api/resources/invoices/client/Client.mjs";
7
7
  import { Orders } from "./api/resources/orders/client/Client.mjs";
8
8
  import { Products } from "./api/resources/products/client/Client.mjs";
9
9
  import { Signals } from "./api/resources/signals/client/Client.mjs";
10
+ import { ValueReceipts } from "./api/resources/valueReceipts/client/Client.mjs";
11
+ import { Webhooks } from "./api/resources/webhooks/client/Client.mjs";
10
12
  import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.mjs";
11
13
  export declare namespace PaidClient {
12
14
  interface Options extends BaseClientOptions {
@@ -25,6 +27,8 @@ export declare class PaidClient {
25
27
  protected _credits: Credits | undefined;
26
28
  protected _checkouts: Checkouts | undefined;
27
29
  protected _customerPortals: CustomerPortals | undefined;
30
+ protected _valueReceipts: ValueReceipts | undefined;
31
+ protected _webhooks: Webhooks | undefined;
28
32
  constructor(_options: PaidClient.Options);
29
33
  get products(): Products;
30
34
  get customers(): Customers;
@@ -35,4 +39,6 @@ export declare class PaidClient {
35
39
  get credits(): Credits;
36
40
  get checkouts(): Checkouts;
37
41
  get customerPortals(): CustomerPortals;
42
+ get valueReceipts(): ValueReceipts;
43
+ get webhooks(): Webhooks;
38
44
  }
@@ -8,6 +8,8 @@ import { Invoices } from "./api/resources/invoices/client/Client.mjs";
8
8
  import { Orders } from "./api/resources/orders/client/Client.mjs";
9
9
  import { Products } from "./api/resources/products/client/Client.mjs";
10
10
  import { Signals } from "./api/resources/signals/client/Client.mjs";
11
+ import { ValueReceipts } from "./api/resources/valueReceipts/client/Client.mjs";
12
+ import { Webhooks } from "./api/resources/webhooks/client/Client.mjs";
11
13
  import { mergeHeaders } from "./core/headers.mjs";
12
14
  import * as core from "./core/index.mjs";
13
15
  export class PaidClient {
@@ -15,8 +17,8 @@ export class PaidClient {
15
17
  this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
16
18
  "X-Fern-Language": "JavaScript",
17
19
  "X-Fern-SDK-Name": "@paid-ai/paid-node",
18
- "X-Fern-SDK-Version": "1.2.0",
19
- "User-Agent": "@paid-ai/paid-node/1.2.0",
20
+ "X-Fern-SDK-Version": "1.3.0",
21
+ "User-Agent": "@paid-ai/paid-node/1.3.0",
20
22
  "X-Fern-Runtime": core.RUNTIME.type,
21
23
  "X-Fern-Runtime-Version": core.RUNTIME.version,
22
24
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -57,4 +59,12 @@ export class PaidClient {
57
59
  var _a;
58
60
  return ((_a = this._customerPortals) !== null && _a !== void 0 ? _a : (this._customerPortals = new CustomerPortals(this._options)));
59
61
  }
62
+ get valueReceipts() {
63
+ var _a;
64
+ return ((_a = this._valueReceipts) !== null && _a !== void 0 ? _a : (this._valueReceipts = new ValueReceipts(this._options)));
65
+ }
66
+ get webhooks() {
67
+ var _a;
68
+ return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new Webhooks(this._options)));
69
+ }
60
70
  }
@@ -0,0 +1,6 @@
1
+ import type * as core from "../../core/index.mjs";
2
+ import * as errors from "../../errors/index.mjs";
3
+ import type * as Paid from "../index.mjs";
4
+ export declare class ConflictError extends errors.PaidError {
5
+ constructor(body: Paid.ErrorResponse, rawResponse?: core.RawResponse);
6
+ }
@@ -0,0 +1,13 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as errors from "../../errors/index.mjs";
3
+ export class ConflictError extends errors.PaidError {
4
+ constructor(body, rawResponse) {
5
+ super({
6
+ message: "ConflictError",
7
+ statusCode: 409,
8
+ body: body,
9
+ rawResponse: rawResponse,
10
+ });
11
+ Object.setPrototypeOf(this, ConflictError.prototype);
12
+ }
13
+ }
@@ -1,4 +1,5 @@
1
1
  export * from "./BadRequestError.mjs";
2
+ export * from "./ConflictError.mjs";
2
3
  export * from "./ForbiddenError.mjs";
3
4
  export * from "./InternalServerError.mjs";
4
5
  export * from "./NotFoundError.mjs";
@@ -1,4 +1,5 @@
1
1
  export * from "./BadRequestError.mjs";
2
+ export * from "./ConflictError.mjs";
2
3
  export * from "./ForbiddenError.mjs";
3
4
  export * from "./InternalServerError.mjs";
4
5
  export * from "./NotFoundError.mjs";
@@ -61,7 +61,7 @@ export declare class Checkouts {
61
61
  * id: "id"
62
62
  * })
63
63
  */
64
- getCheckout(request: Paid.GetCheckoutRequest, requestOptions?: Checkouts.RequestOptions): core.HttpResponsePromise<Paid.Checkout>;
64
+ getCheckout(request: Paid.GetCheckoutRequest, requestOptions?: Checkouts.RequestOptions): core.HttpResponsePromise<Paid.CheckoutDetails>;
65
65
  private __getCheckout;
66
66
  /**
67
67
  * Archive a checkout by ID
@@ -20,4 +20,6 @@ export interface CreateCheckoutRequest {
20
20
  collectAddress?: boolean;
21
21
  collectPhone?: boolean;
22
22
  singleUse?: boolean;
23
+ /** Lock checkout to a specific currency. Omit to allow all currencies supported by the selected plans. */
24
+ currency?: string;
23
25
  }
@@ -84,6 +84,7 @@ export declare class Customers {
84
84
  * @param {Paid.DeleteCustomerByIdRequest} request
85
85
  * @param {Customers.RequestOptions} requestOptions - Request-specific configuration.
86
86
  *
87
+ * @throws {@link Paid.BadRequestError}
87
88
  * @throws {@link Paid.ForbiddenError}
88
89
  * @throws {@link Paid.NotFoundError}
89
90
  * @throws {@link Paid.InternalServerError}
@@ -137,6 +138,7 @@ export declare class Customers {
137
138
  * @param {Paid.DeleteCustomerByExternalIdRequest} request
138
139
  * @param {Customers.RequestOptions} requestOptions - Request-specific configuration.
139
140
  *
141
+ * @throws {@link Paid.BadRequestError}
140
142
  * @throws {@link Paid.ForbiddenError}
141
143
  * @throws {@link Paid.NotFoundError}
142
144
  * @throws {@link Paid.InternalServerError}
@@ -182,5 +184,24 @@ export declare class Customers {
182
184
  */
183
185
  getCustomerCreditBalancesByExternalId(request: Paid.GetCustomerCreditBalancesByExternalIdRequest, requestOptions?: Customers.RequestOptions): core.HttpResponsePromise<Paid.CreditBalanceListResponse>;
184
186
  private __getCustomerCreditBalancesByExternalId;
187
+ /**
188
+ * Create or update a customer user using customer and user external IDs
189
+ *
190
+ * @param {Paid.UpsertCustomerUserRequest} request
191
+ * @param {Customers.RequestOptions} requestOptions - Request-specific configuration.
192
+ *
193
+ * @throws {@link Paid.BadRequestError}
194
+ * @throws {@link Paid.ForbiddenError}
195
+ * @throws {@link Paid.NotFoundError}
196
+ * @throws {@link Paid.InternalServerError}
197
+ *
198
+ * @example
199
+ * await client.customers.upsertCustomerUserByExternalId({
200
+ * customerExternalId: "customerExternalId",
201
+ * userExternalId: "userExternalId"
202
+ * })
203
+ */
204
+ upsertCustomerUserByExternalId(request: Paid.UpsertCustomerUserRequest, requestOptions?: Customers.RequestOptions): core.HttpResponsePromise<Paid.CustomerUser>;
205
+ private __upsertCustomerUserByExternalId;
185
206
  protected _getAuthorizationHeader(): Promise<string>;
186
207
  }
@@ -8,6 +8,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  step((generator = generator.apply(thisArg, _arguments || [])).next());
9
9
  });
10
10
  };
11
+ var __rest = (this && this.__rest) || function (s, e) {
12
+ var t = {};
13
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
14
+ t[p] = s[p];
15
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
16
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
17
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
18
+ t[p[i]] = s[p[i]];
19
+ }
20
+ return t;
21
+ };
11
22
  import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.mjs";
12
23
  import * as core from "../../../../core/index.mjs";
13
24
  import * as environments from "../../../../environments.mjs";
@@ -309,6 +320,7 @@ export class Customers {
309
320
  * @param {Paid.DeleteCustomerByIdRequest} request
310
321
  * @param {Customers.RequestOptions} requestOptions - Request-specific configuration.
311
322
  *
323
+ * @throws {@link Paid.BadRequestError}
312
324
  * @throws {@link Paid.ForbiddenError}
313
325
  * @throws {@link Paid.NotFoundError}
314
326
  * @throws {@link Paid.InternalServerError}
@@ -340,6 +352,8 @@ export class Customers {
340
352
  }
341
353
  if (_response.error.reason === "status-code") {
342
354
  switch (_response.error.statusCode) {
355
+ case 400:
356
+ throw new Paid.BadRequestError(_response.error.body, _response.rawResponse);
343
357
  case 403:
344
358
  throw new Paid.ForbiddenError(_response.error.body, _response.rawResponse);
345
359
  case 404:
@@ -520,6 +534,7 @@ export class Customers {
520
534
  * @param {Paid.DeleteCustomerByExternalIdRequest} request
521
535
  * @param {Customers.RequestOptions} requestOptions - Request-specific configuration.
522
536
  *
537
+ * @throws {@link Paid.BadRequestError}
523
538
  * @throws {@link Paid.ForbiddenError}
524
539
  * @throws {@link Paid.NotFoundError}
525
540
  * @throws {@link Paid.InternalServerError}
@@ -551,6 +566,8 @@ export class Customers {
551
566
  }
552
567
  if (_response.error.reason === "status-code") {
553
568
  switch (_response.error.statusCode) {
569
+ case 400:
570
+ throw new Paid.BadRequestError(_response.error.body, _response.rawResponse);
554
571
  case 403:
555
572
  throw new Paid.ForbiddenError(_response.error.body, _response.rawResponse);
556
573
  case 404:
@@ -718,6 +735,81 @@ export class Customers {
718
735
  }
719
736
  });
720
737
  }
738
+ /**
739
+ * Create or update a customer user using customer and user external IDs
740
+ *
741
+ * @param {Paid.UpsertCustomerUserRequest} request
742
+ * @param {Customers.RequestOptions} requestOptions - Request-specific configuration.
743
+ *
744
+ * @throws {@link Paid.BadRequestError}
745
+ * @throws {@link Paid.ForbiddenError}
746
+ * @throws {@link Paid.NotFoundError}
747
+ * @throws {@link Paid.InternalServerError}
748
+ *
749
+ * @example
750
+ * await client.customers.upsertCustomerUserByExternalId({
751
+ * customerExternalId: "customerExternalId",
752
+ * userExternalId: "userExternalId"
753
+ * })
754
+ */
755
+ upsertCustomerUserByExternalId(request, requestOptions) {
756
+ return core.HttpResponsePromise.fromPromise(this.__upsertCustomerUserByExternalId(request, requestOptions));
757
+ }
758
+ __upsertCustomerUserByExternalId(request, requestOptions) {
759
+ return __awaiter(this, void 0, void 0, function* () {
760
+ var _a, _b, _c, _d, _e, _f, _g, _h;
761
+ const { customerExternalId, userExternalId } = request, _body = __rest(request, ["customerExternalId", "userExternalId"]);
762
+ const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
763
+ const _response = yield core.fetcher({
764
+ 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.PaidEnvironment.Default, `customers/${core.url.encodePathParam(customerExternalId)}/users/${core.url.encodePathParam(userExternalId)}`),
765
+ method: "PUT",
766
+ headers: _headers,
767
+ contentType: "application/json",
768
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
769
+ requestType: "json",
770
+ body: _body,
771
+ 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,
772
+ 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,
773
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
774
+ });
775
+ if (_response.ok) {
776
+ return { data: _response.body, rawResponse: _response.rawResponse };
777
+ }
778
+ if (_response.error.reason === "status-code") {
779
+ switch (_response.error.statusCode) {
780
+ case 400:
781
+ throw new Paid.BadRequestError(_response.error.body, _response.rawResponse);
782
+ case 403:
783
+ throw new Paid.ForbiddenError(_response.error.body, _response.rawResponse);
784
+ case 404:
785
+ throw new Paid.NotFoundError(_response.error.body, _response.rawResponse);
786
+ case 500:
787
+ throw new Paid.InternalServerError(_response.error.body, _response.rawResponse);
788
+ default:
789
+ throw new errors.PaidError({
790
+ statusCode: _response.error.statusCode,
791
+ body: _response.error.body,
792
+ rawResponse: _response.rawResponse,
793
+ });
794
+ }
795
+ }
796
+ switch (_response.error.reason) {
797
+ case "non-json":
798
+ throw new errors.PaidError({
799
+ statusCode: _response.error.statusCode,
800
+ body: _response.error.rawBody,
801
+ rawResponse: _response.rawResponse,
802
+ });
803
+ case "timeout":
804
+ throw new errors.PaidTimeoutError("Timeout exceeded when calling PUT /customers/{customerExternalId}/users/{userExternalId}.");
805
+ case "unknown":
806
+ throw new errors.PaidError({
807
+ message: _response.error.errorMessage,
808
+ rawResponse: _response.rawResponse,
809
+ });
810
+ }
811
+ });
812
+ }
721
813
  _getAuthorizationHeader() {
722
814
  return __awaiter(this, void 0, void 0, function* () {
723
815
  return `Bearer ${yield core.Supplier.get(this._options.token)}`;
@@ -0,0 +1,16 @@
1
+ import type * as Paid from "../../../../index.mjs";
2
+ /**
3
+ * @example
4
+ * {
5
+ * customerExternalId: "customerExternalId",
6
+ * userExternalId: "userExternalId"
7
+ * }
8
+ */
9
+ export interface UpsertCustomerUserRequest {
10
+ customerExternalId: string;
11
+ userExternalId: string;
12
+ name?: string;
13
+ email?: string | null;
14
+ metadata?: Record<string, unknown> | null;
15
+ status?: Paid.CustomerUserStatus;
16
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -8,3 +8,4 @@ export type { GetCustomerCreditBalancesRequest } from "./GetCustomerCreditBalanc
8
8
  export type { ListCustomersRequest } from "./ListCustomersRequest.mjs";
9
9
  export type { UpdateCustomerByExternalIdRequest } from "./UpdateCustomerByExternalIdRequest.mjs";
10
10
  export type { UpdateCustomerByIdRequest } from "./UpdateCustomerByIdRequest.mjs";
11
+ export type { UpsertCustomerUserRequest } from "./UpsertCustomerUserRequest.mjs";
@@ -12,7 +12,13 @@ export * from "./invoices/client/requests/index.mjs";
12
12
  export * as invoices from "./invoices/index.mjs";
13
13
  export * from "./orders/client/requests/index.mjs";
14
14
  export * as orders from "./orders/index.mjs";
15
+ export * from "./orders/types/index.mjs";
15
16
  export * from "./products/client/requests/index.mjs";
16
17
  export * as products from "./products/index.mjs";
17
18
  export * from "./signals/client/requests/index.mjs";
18
19
  export * as signals from "./signals/index.mjs";
20
+ export * from "./valueReceipts/client/requests/index.mjs";
21
+ export * as valueReceipts from "./valueReceipts/index.mjs";
22
+ export * from "./webhooks/client/requests/index.mjs";
23
+ export * as webhooks from "./webhooks/index.mjs";
24
+ export * from "./webhooks/types/index.mjs";
@@ -12,7 +12,13 @@ export * from "./invoices/client/requests/index.mjs";
12
12
  export * as invoices from "./invoices/index.mjs";
13
13
  export * from "./orders/client/requests/index.mjs";
14
14
  export * as orders from "./orders/index.mjs";
15
+ export * from "./orders/types/index.mjs";
15
16
  export * from "./products/client/requests/index.mjs";
16
17
  export * as products from "./products/index.mjs";
17
18
  export * from "./signals/client/requests/index.mjs";
18
19
  export * as signals from "./signals/index.mjs";
20
+ export * from "./valueReceipts/client/requests/index.mjs";
21
+ export * as valueReceipts from "./valueReceipts/index.mjs";
22
+ export * from "./webhooks/client/requests/index.mjs";
23
+ export * as webhooks from "./webhooks/index.mjs";
24
+ export * from "./webhooks/types/index.mjs";
@@ -111,5 +111,65 @@ export declare class Orders {
111
111
  */
112
112
  getOrderLines(request: Paid.GetOrderLinesRequest, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Paid.OrderLinesResponse>;
113
113
  private __getOrderLines;
114
+ /**
115
+ * List seats for an order
116
+ *
117
+ * @param {Paid.ListOrderSeatsRequest} request
118
+ * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
119
+ *
120
+ * @throws {@link Paid.BadRequestError}
121
+ * @throws {@link Paid.ForbiddenError}
122
+ * @throws {@link Paid.NotFoundError}
123
+ * @throws {@link Paid.InternalServerError}
124
+ *
125
+ * @example
126
+ * await client.orders.listOrderSeats({
127
+ * id: "id"
128
+ * })
129
+ */
130
+ listOrderSeats(request: Paid.ListOrderSeatsRequest, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Paid.OrderSeatListResponse>;
131
+ private __listOrderSeats;
132
+ /**
133
+ * Assign or unassign a single seat on an order
134
+ *
135
+ * @param {Paid.UpdateSeatAssignmentRequest} request
136
+ * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
137
+ *
138
+ * @throws {@link Paid.BadRequestError}
139
+ * @throws {@link Paid.ForbiddenError}
140
+ * @throws {@link Paid.NotFoundError}
141
+ * @throws {@link Paid.ConflictError}
142
+ * @throws {@link Paid.InternalServerError}
143
+ *
144
+ * @example
145
+ * await client.orders.updateOrderSeatAssignment({
146
+ * id: "id",
147
+ * seatId: "seatId"
148
+ * })
149
+ */
150
+ updateOrderSeatAssignment(request: Paid.UpdateSeatAssignmentRequest, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Paid.OrderSeat>;
151
+ private __updateOrderSeatAssignment;
152
+ /**
153
+ * Assign or unassign seats in batch for an order
154
+ *
155
+ * @param {Paid.BatchSeatAssignmentsRequest} request
156
+ * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
157
+ *
158
+ * @throws {@link Paid.BadRequestError}
159
+ * @throws {@link Paid.ForbiddenError}
160
+ * @throws {@link Paid.NotFoundError}
161
+ * @throws {@link Paid.ConflictError}
162
+ * @throws {@link Paid.InternalServerError}
163
+ *
164
+ * @example
165
+ * await client.orders.batchOrderSeatAssignments({
166
+ * id: "id",
167
+ * assignments: [{
168
+ * seatId: "seatId"
169
+ * }]
170
+ * })
171
+ */
172
+ batchOrderSeatAssignments(request: Paid.BatchSeatAssignmentsRequest, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Paid.BatchSeatAssignmentsResponse>;
173
+ private __batchOrderSeatAssignments;
114
174
  protected _getAuthorizationHeader(): Promise<string>;
115
175
  }