@outseta/api-client 0.3.41 → 0.3.42

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/dist/index.js CHANGED
@@ -550,6 +550,22 @@ var planDeletePlan = async (planUid, options) => {
550
550
  method: "DELETE"
551
551
  });
552
552
  };
553
+ var getPlanAddOnGetAllPlanAddOnsUrl = (params) => {
554
+ const normalizedParams = new URLSearchParams;
555
+ Object.entries(params || {}).forEach(([key, value]) => {
556
+ if (value !== undefined) {
557
+ normalizedParams.append(key, value === null ? "null" : value.toString());
558
+ }
559
+ });
560
+ const stringifiedParams = normalizedParams.toString();
561
+ return stringifiedParams.length > 0 ? `/api/v1/billing/planaddons?${stringifiedParams}` : `/api/v1/billing/planaddons`;
562
+ };
563
+ var planAddOnGetAllPlanAddOns = async (params, options) => {
564
+ return customFetch(getPlanAddOnGetAllPlanAddOnsUrl(params), {
565
+ ...options,
566
+ method: "GET"
567
+ });
568
+ };
553
569
  var getPlanFamilyGetAllPlanFamiliesUrl = (params) => {
554
570
  const normalizedParams = new URLSearchParams;
555
571
  Object.entries(params || {}).forEach(([key, value]) => {
@@ -2323,6 +2339,7 @@ export {
2323
2339
  getPersonRequestMagicLinkUrl,
2324
2340
  getPersonSetTemporaryPasswordUrl,
2325
2341
  getPersonUpdatePersonUrl,
2342
+ getPlanAddOnGetAllPlanAddOnsUrl,
2326
2343
  getPlanAddPlanUrl,
2327
2344
  getPlanDeletePlanUrl,
2328
2345
  getPlanFamilyAddPlanFamilyUrl,
@@ -2376,6 +2393,7 @@ export {
2376
2393
  personRequestMagicLink,
2377
2394
  personSetTemporaryPassword,
2378
2395
  personUpdatePerson,
2396
+ planAddOnGetAllPlanAddOns,
2379
2397
  planAddPlan,
2380
2398
  planDeletePlan,
2381
2399
  planFamilyAddPlanFamily,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@outseta/api-client",
3
- "version": "0.3.41",
3
+ "version": "0.3.42",
4
4
  "description": "Generated API client for the Outseta REST API",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -16,6 +16,8 @@ import type {
16
16
  PaymentInformation,
17
17
  PaymentInformationSavePaymentInformationBody,
18
18
  Plan,
19
+ PlanAddOnGetAllPlanAddOns200,
20
+ PlanAddOnGetAllPlanAddOnsParams,
19
21
  PlanAddPlanBody,
20
22
  PlanFamily,
21
23
  PlanFamilyAddPlanFamilyBody,
@@ -2193,6 +2195,60 @@ export const planDeletePlan = async (planUid: string | null, options?: RequestIn
2193
2195
  );}
2194
2196
 
2195
2197
 
2198
+ /**
2199
+ * Standard filtering applies, so the associations of a single plan are retrieved
2200
+ with ?Plan.Uid={planUid} and those of a single add-on with ?AddOn.Uid={addOnUid}.
2201
+ A PlanAddOns collection nested inside a plan or an add-on holds at most 100
2202
+ entries, so a plan with more add-ons than that is read in full through this
2203
+ endpoint, which is paginated and has no such maximum.
2204
+ * @summary Retrieve the associations between plans and add-ons.
2205
+ */
2206
+ export type planAddOnGetAllPlanAddOnsResponse200 = {
2207
+ data: PlanAddOnGetAllPlanAddOns200
2208
+ status: 200
2209
+ }
2210
+
2211
+ export type planAddOnGetAllPlanAddOnsResponse401 = {
2212
+ data: void
2213
+ status: 401
2214
+ }
2215
+
2216
+ export type planAddOnGetAllPlanAddOnsResponseSuccess = (planAddOnGetAllPlanAddOnsResponse200) & {
2217
+ headers: Headers;
2218
+ };
2219
+ export type planAddOnGetAllPlanAddOnsResponseError = (planAddOnGetAllPlanAddOnsResponse401) & {
2220
+ headers: Headers;
2221
+ };
2222
+
2223
+ export type planAddOnGetAllPlanAddOnsResponse = (planAddOnGetAllPlanAddOnsResponseSuccess | planAddOnGetAllPlanAddOnsResponseError)
2224
+
2225
+ export const getPlanAddOnGetAllPlanAddOnsUrl = (params?: PlanAddOnGetAllPlanAddOnsParams,) => {
2226
+ const normalizedParams = new URLSearchParams();
2227
+
2228
+ Object.entries(params || {}).forEach(([key, value]) => {
2229
+
2230
+ if (value !== undefined) {
2231
+ normalizedParams.append(key, value === null ? 'null' : value.toString())
2232
+ }
2233
+ });
2234
+
2235
+ const stringifiedParams = normalizedParams.toString();
2236
+
2237
+ return stringifiedParams.length > 0 ? `/api/v1/billing/planaddons?${stringifiedParams}` : `/api/v1/billing/planaddons`
2238
+ }
2239
+
2240
+ export const planAddOnGetAllPlanAddOns = async (params?: PlanAddOnGetAllPlanAddOnsParams, options?: RequestInit): Promise<planAddOnGetAllPlanAddOnsResponse> => {
2241
+
2242
+ return customFetch<planAddOnGetAllPlanAddOnsResponse>(getPlanAddOnGetAllPlanAddOnsUrl(params),
2243
+ {
2244
+ ...options,
2245
+ method: 'GET'
2246
+
2247
+
2248
+ }
2249
+ );}
2250
+
2251
+
2196
2252
  /**
2197
2253
  * @summary Retrieve all plan families.
2198
2254
  */
@@ -16,6 +16,7 @@ import type { AccountAllOfLatestSubscription } from './accountAllOfLatestSubscri
16
16
  import type { AccountAllOfPrimaryContact } from './accountAllOfPrimaryContact';
17
17
  import type { AccountAllOfPrimarySubscription } from './accountAllOfPrimarySubscription';
18
18
  import type { AccountAllOfPrimaryStripeSubscription } from './accountAllOfPrimaryStripeSubscription';
19
+ import type { AccountAllOfStripeCheckoutMetadata } from './accountAllOfStripeCheckoutMetadata';
19
20
 
20
21
  export type AccountAllOf = {
21
22
  /**
@@ -153,6 +154,8 @@ export type AccountAllOf = {
153
154
  /** @nullable */
154
155
  RecaptchaToken?: string | null;
155
156
  /** @nullable */
157
+ StripeCheckoutMetadata?: AccountAllOfStripeCheckoutMetadata;
158
+ /** @nullable */
156
159
  StripeNextInvoiceSequence?: number | null;
157
160
  /** @nullable */
158
161
  StripePrice?: string[] | null;
@@ -0,0 +1,6 @@
1
+ // @ts-nocheck
2
+
3
+ /**
4
+ * @nullable
5
+ */
6
+ export type AccountAllOfStripeCheckoutMetadata = {[key: string]: string} | null;
@@ -64,6 +64,7 @@ export * from './accountAllOfPaymentInformation';
64
64
  export * from './accountAllOfPrimaryContact';
65
65
  export * from './accountAllOfPrimaryStripeSubscription';
66
66
  export * from './accountAllOfPrimarySubscription';
67
+ export * from './accountAllOfStripeCheckoutMetadata';
67
68
  export * from './accountBillingInformationRemovedWebhookPayload';
68
69
  export * from './accountBillingInformationRequestedWebhookPayload';
69
70
  export * from './accountBillingInformationUpdatedWebhookPayload';
@@ -537,6 +538,8 @@ export * from './planAddOn';
537
538
  export * from './planAddOnAllOf';
538
539
  export * from './planAddOnAllOfAddOn';
539
540
  export * from './planAddOnAllOfPlan';
541
+ export * from './planAddOnGetAllPlanAddOns200';
542
+ export * from './planAddOnGetAllPlanAddOnsParams';
540
543
  export * from './planAddPlanBody';
541
544
  export * from './planAllOf';
542
545
  export * from './planAllOfPlanFamily';
@@ -0,0 +1,8 @@
1
+ // @ts-nocheck
2
+ import type { CollectionMetadata } from './collectionMetadata';
3
+ import type { PlanAddOn } from './planAddOn';
4
+
5
+ export type PlanAddOnGetAllPlanAddOns200 = {
6
+ metadata?: CollectionMetadata;
7
+ items?: PlanAddOn[];
8
+ };
@@ -0,0 +1,14 @@
1
+ // @ts-nocheck
2
+ import type { LimitParameter } from './limitParameter';
3
+ import type { OffsetParameter } from './offsetParameter';
4
+
5
+ export type PlanAddOnGetAllPlanAddOnsParams = {
6
+ /**
7
+ * Requested page size. The server caps it at 100, or 25 when requested fields expand child objects or require additional queries; metadata.limit reports the applied value. Use offset=1 for the second page.
8
+ */
9
+ limit?: LimitParameter;
10
+ /**
11
+ * Zero-based page number, not a record offset. With limit=50, the second page is offset=1; offset=50 is page index 50 (records 2501-2550).
12
+ */
13
+ offset?: OffsetParameter;
14
+ };