@stigg/js-client-sdk 2.24.0 → 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.
- package/dist/api/SubscriptionsApi.d.ts +1 -1
- package/dist/client.d.ts +4 -3
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/models.d.ts +2 -1
- package/dist/src/api/SubscriptionsApi.d.ts +1 -1
- package/dist/src/client.d.ts +4 -3
- package/dist/src/models.d.ts +2 -1
- package/package.json +2 -2
|
@@ -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,
|
|
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
|
-
*
|
|
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
|
-
*
|
|
189
|
-
* @return {Promise<
|
|
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>;
|