@wix/auto_sdk_pricing-plans_top-ups 1.0.0 → 1.0.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.
@@ -212,7 +212,7 @@ interface GetPurchasableTopUpOffersRequest {
212
212
  }
213
213
  interface GetPurchasableTopUpOffersResponse {
214
214
  /**
215
- * Active or renewing pools of the plan subscription that have a credit configuration.
215
+ * Active or renewing pools of the plan subscription that have a credit configuration, for the pool definitions of the plan's top-up offers.
216
216
  * @maxSize 100
217
217
  */
218
218
  pools?: PlanSubscriptionPool[];
@@ -222,7 +222,7 @@ interface GetPurchasableTopUpOffersResponse {
222
222
  */
223
223
  topUpOffers?: TopUpOffer[];
224
224
  }
225
- /** Active or renewing pool of a plan subscription that has a credit configuration, and so can receive credits from top-ups. */
225
+ /** Active or renewing pool of a plan subscription that has a credit configuration, and so can be topped up. */
226
226
  interface PlanSubscriptionPool {
227
227
  /**
228
228
  * ID of the pool definition the pool was created from.
@@ -526,7 +526,7 @@ interface AccountInfo {
526
526
  *
527
527
  * Site members can retrieve only their own top-ups.
528
528
  * @param topUpId - ID of the top-up to retrieve.
529
- * @internal
529
+ * @public
530
530
  * @documentationMaturity preview
531
531
  * @requiredField topUpId
532
532
  * @permissionId pricing_plans:v3:top_up:get_top_up
@@ -544,7 +544,7 @@ declare function getTopUp(topUpId: string): Promise<NonNullablePaths<TopUp, `bal
544
544
  *
545
545
  * [1]: https://dev.wix.com/docs/rest/articles/getting-started/sorting-and-paging
546
546
  * [2]: https://dev.wix.com/docs/rest/articles/getting-started/api-query-language
547
- * @internal
547
+ * @public
548
548
  * @documentationMaturity preview
549
549
  * @permissionId pricing_plans:v3:top_up:query_top_ups
550
550
  * @applicableIdentity APP
@@ -691,13 +691,15 @@ declare const utils: {
691
691
  /**
692
692
  * Retrieves the top-up offers the member who holds a plan subscription can buy, with the pools that receive their credits.
693
693
  *
694
- * Returns the plan subscription's active or renewing pools that have a credit configuration, and the offers of its
695
- * plan that add credits only to pool definitions with such a pool. Returns no pools and no offers when the plan
696
- * subscription doesn't exist or isn't active.
694
+ * Returns the offers of the plan subscription's plan that add credits only to pool definitions where the plan
695
+ * subscription has an active or renewing pool with a credit configuration, and those pools for the pool definitions of
696
+ * the plan's offers. Returns no pools and no offers when the plan subscription isn't active, or when it doesn't exist
697
+ * and the caller can retrieve the top-up offers of any plan subscription.
697
698
  *
698
- * Site members can retrieve only the top-up offers of their own plan subscriptions.
699
+ * Site members can retrieve only the top-up offers of their own plan subscriptions. They get a `PERMISSION_DENIED`
700
+ * error for a plan subscription that doesn't exist or belongs to another member.
699
701
  * @param planSubscriptionId - ID of the plan subscription to retrieve the top-up offers for.
700
- * @internal
702
+ * @public
701
703
  * @documentationMaturity preview
702
704
  * @requiredField planSubscriptionId
703
705
  * @permissionId pricing_plans:v3:top_up:get_purchasable_top_up_offers
@@ -212,7 +212,7 @@ interface GetPurchasableTopUpOffersRequest {
212
212
  }
213
213
  interface GetPurchasableTopUpOffersResponse {
214
214
  /**
215
- * Active or renewing pools of the plan subscription that have a credit configuration.
215
+ * Active or renewing pools of the plan subscription that have a credit configuration, for the pool definitions of the plan's top-up offers.
216
216
  * @maxSize 100
217
217
  */
218
218
  pools?: PlanSubscriptionPool[];
@@ -222,7 +222,7 @@ interface GetPurchasableTopUpOffersResponse {
222
222
  */
223
223
  topUpOffers?: TopUpOffer[];
224
224
  }
225
- /** Active or renewing pool of a plan subscription that has a credit configuration, and so can receive credits from top-ups. */
225
+ /** Active or renewing pool of a plan subscription that has a credit configuration, and so can be topped up. */
226
226
  interface PlanSubscriptionPool {
227
227
  /**
228
228
  * ID of the pool definition the pool was created from.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/auto_sdk_pricing-plans_top-ups",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",
@@ -50,5 +50,5 @@
50
50
  "fqdn": "wix.pricing_plans.v3.top_up"
51
51
  }
52
52
  },
53
- "falconPackageHash": "c93b031856c1022247dfbdb851d18e1e94292c8a396582dbec500eb7"
53
+ "falconPackageHash": "d68bcd2717eee8c935c921c255ebf3bf7ad1f8a528ca301c7ba88b08"
54
54
  }