@stigg/js-client-sdk 2.24.1 → 2.24.2

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.
@@ -10,7 +10,7 @@ export declare type GetCheckoutStateParams = GetCheckoutState & {
10
10
  declare class SubscriptionsApi {
11
11
  private readonly client;
12
12
  constructor(client: ApolloClient<NormalizedCacheObject>);
13
- applySubscription({ customerId, planId, paymentMethodId, addons, billableFeatures, billingCountryCode, billingId, billingInformation, billingPeriod, metadata, promotionCode, resourceId, skipTrial, startDate, unitQuantity, }: ApplySubscriptionParams): Promise<import("@apollo/client/core").FetchResult<ApplySubscriptionMutation, Record<string, any>, Record<string, any>>>;
13
+ applySubscription({ customerId, planId, paymentMethodId, addons, billableFeatures, billingInformation, billingCountryCode, billingId, billingPeriod, metadata, promotionCode, resourceId, skipTrial, startDate, unitQuantity, }: ApplySubscriptionParams): Promise<import("@apollo/client/core").FetchResult<ApplySubscriptionMutation, Record<string, any>, Record<string, any>>>;
14
14
  checkoutState({ customerId, resourceId, planId, billingCountryCode }: GetCheckoutStateParams): Promise<import("@apollo/client/core").ApolloQueryResult<GetCheckoutStateQuery>>;
15
15
  private mapBillingInformation;
16
16
  }
package/dist/client.d.ts CHANGED
@@ -155,7 +155,8 @@ export declare class Stigg implements StiggClient {
155
155
  */
156
156
  getCheckoutState({ planId, resourceId, billingCountryCode, }: GetCheckoutState): Promise<GetCheckoutStateResults>;
157
157
  /**
158
- * Get customer checkout details
158
+ * Apply subscription changes for a customer
159
+ * Update\Provision a subscription for a customer according to the given subscription input
159
160
  * @param {ApplySubscription} parameters
160
161
  * @returns {Promise<ApplySubscriptionResults>}
161
162
  */
@@ -185,8 +186,8 @@ export declare class Stigg implements StiggClient {
185
186
  */
186
187
  estimateSubscriptionUpdate(estimateSubscriptionUpdate: EstimateSubscriptionUpdate): Promise<SubscriptionPreview>;
187
188
  /**
188
- * Estimate checkout
189
- * @return {Promise<SubscriptionPreview>} Preview of the subscription.
189
+ * Preview subscription provisioning\updates
190
+ * @return {Promise<SubscriptionPreviewV2>} Preview of the subscription.
190
191
  * @param {PreviewSubscription} previewSubscription
191
192
  */
192
193
  previewSubscription(previewSubscription: PreviewSubscription): Promise<SubscriptionPreviewV2>;