@parra/parra-js-sdk 0.3.628 → 0.3.630

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.
@@ -1804,6 +1804,7 @@ export interface UpdateProductRequestBody {
1804
1804
  image_asset_id?: string | null;
1805
1805
  cta_title?: string | null;
1806
1806
  cta_url?: string | null;
1807
+ price?: AnyPrice | null;
1807
1808
  }
1808
1809
  export interface CreateProductEntitlementRequestBody {
1809
1810
  entitlement_id: string;
@@ -7525,7 +7526,7 @@ declare class ParraAPI {
7525
7526
  listNotificationTopics: (tenant_id: string, options?: Options) => Promise<Array<NotificationTopic>>;
7526
7527
  updateNotificationTopicById: (tenant_id: string, notification_topic_id: string, body?: UpdateNotificationTopicRequestBody, options?: Options) => Promise<NotificationTopic>;
7527
7528
  deleteNotificationTopicById: (tenant_id: string, notification_topic_id: string, options?: Options) => Promise<Response>;
7528
- createCheckoutSession: (body: CreateCheckoutSessionRequestBody, options?: Options) => Promise<CheckoutSession>;
7529
+ createCheckoutSession: (tenant_id: string, body: CreateCheckoutSessionRequestBody, options?: Options) => Promise<CheckoutSession>;
7529
7530
  getPlansForTenantById: (tenant_id: string, options?: Options) => Promise<TenantPlansResponse>;
7530
7531
  createBillingPortalSession: (tenant_id: string, options?: Options) => Promise<BillingPortalSession>;
7531
7532
  listSchemas: (tenant_id: string, options?: Options) => Promise<Array<Schema>>;
package/dist/ParraAPI.js CHANGED
@@ -2335,9 +2335,9 @@ var ParraAPI = /** @class */ (function () {
2335
2335
  if (options === void 0) { options = {}; }
2336
2336
  return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notifications/topics/").concat(notification_topic_id), method: "delete" }, options));
2337
2337
  };
2338
- this.createCheckoutSession = function (body, options) {
2338
+ this.createCheckoutSession = function (tenant_id, body, options) {
2339
2339
  if (options === void 0) { options = {}; }
2340
- return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/checkout/sessions"), method: "post", body: JSON.stringify(body), headers: {
2340
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/checkout/sessions"), method: "post", body: JSON.stringify(body), headers: {
2341
2341
  "content-type": "application/json",
2342
2342
  } }, options));
2343
2343
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.3.628",
3
+ "version": "0.3.630",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",