Skip to content

Commit

Permalink
Changed heading level to build right-pane toc
Browse files Browse the repository at this point in the history
  • Loading branch information
Lutik-sun committed Sep 17, 2024
1 parent b3173bd commit 48f574b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 23 deletions.
20 changes: 10 additions & 10 deletions versioned_docs/version-2.0/sdk-models.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ description: ""
metadataTitle: ""
---

### Interfaces
## Interfaces

#### AdaptyPaywallProduct
### AdaptyPaywallProduct

An information about a [product.](https://swift.adapty.io/documentation/adapty/adaptypaywallproduct)

Expand Down Expand Up @@ -34,14 +34,14 @@ An information about a [product.](https://swift.adapty.io/documentation/adapty/a
| subscriptionGroupIdentifier (_iOS only_) | string (optional) | The identifier of the subscription group to which the subscription belongs. (Will be nil for iOS version below 12.0 and macOS version below 10.14). |
| subscriptionPeriod | [`AdaptyProductSubscriptionPeriod`](sdk-models#adaptyproductsubscriptionperiod) (optional) | The period details for products that are subscriptions. (Will be nil for iOS version below 11.2 and macOS version below 10.14.4). |

#### AdaptyProductSubscriptionPeriod
### AdaptyProductSubscriptionPeriod

| Name | Type | Description |
| :------------ | :--------------- | :------------------------------------------------------------------------------------------------------------------------------- |
| unit | AdaptyPeriodUnit | A unit of time that a subscription period is specified in. The possible values are: `day`, `week`, `month`, `year` and `unknown` |
| numberOfUnits | number | A number of period units |

#### AdaptyProductDiscount
### AdaptyProductDiscount

An information about a [product discount.](https://swift.adapty.io/documentation/adapty/adaptyproductdiscount/)

Expand All @@ -57,7 +57,7 @@ An information about a [product discount.](https://swift.adapty.io/documentation
| subscriptionPeriod | [`AdaptyProductSubscriptionPeriod`](sdk-models#adaptyproductsubscriptionperiod) | An information about period for a product discount |


#### AdaptyPaywall
### AdaptyPaywall

An information about a [paywall.](https://swift.adapty.io/documentation/adapty/adaptypaywall)

Expand All @@ -74,7 +74,7 @@ An information about a [paywall.](https://swift.adapty.io/documentation/adapty/a
| locale | string | <p>An identifier of a paywall locale</p><p></p><p>This parameter is expected to be a language code composed of one or more subtags separated by the "-" character. The first subtag is for the language, the second one is for the region (The support for regions will be added later).</p><p>Example: `en` means English, `en-US` represents US English.</p><p>If the parameter is omitted, the paywall will be returned in the default locale.</p> |


#### AdaptyProfile
### AdaptyProfile

An information about a [user's](https://swift.adapty.io/documentation/adapty/adaptyprofile) subscription status and purchase history.

Expand All @@ -87,7 +87,7 @@ An information about a [user's](https://swift.adapty.io/documentation/adapty/ada
| subscriptions | dictionary\<string, [`Subscription `](sdk-models#adaptyprofilesubscription)> | The keys are product ids from a store. The values are information about subscriptions. Can be null if the customer has no subscriptions |
| nonSubscriptions | dictionary\<string, \[[`NonSubscription `](sdk-models#adaptyprofilenonsubscription)]> | The keys are product ids from the store. The values are arrays of information about consumables. Can be null if the customer has no purchases. |

#### AdaptyProfile.AccessLevel
### AdaptyProfile.AccessLevel

Information about the [user's access level.](https://swift.adapty.io/documentation/adapty/adaptyprofile/accesslevel)

Expand All @@ -113,7 +113,7 @@ Information about the [user's access level.](https://swift.adapty.io/documentati
| activePromotionalOfferId | string (Optional) | An id of active promotional offer. |


#### AdaptyProfile.Subscription
### AdaptyProfile.Subscription

Information about the [user's subscription.](https://swift.adapty.io/documentation/adapty/adaptyprofile/subscription)

Expand Down Expand Up @@ -141,7 +141,7 @@ Information about the [user's subscription.](https://swift.adapty.io/documentati
| isSandbox | bool | True if the product was purchased in a sandbox environment |


#### AdaptyProfile.NonSubscription
### AdaptyProfile.NonSubscription

Information about the user's non-subscription purchases.

Expand All @@ -157,7 +157,7 @@ Information about the user's non-subscription purchases.
| isSandbox | boolean | True if the product was purchased in a sandbox environment |


#### AdaptySubscriptionUpdateParameters
### AdaptySubscriptionUpdateParameters

(_Android only_)
Parameters to change one subscription to another.
Expand Down
23 changes: 10 additions & 13 deletions versioned_docs/version-3.0/sdk-models.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,9 @@ description: ""
metadataTitle: ""
---

import Zoom from 'react-medium-image-zoom';
import 'react-medium-image-zoom/dist/styles.css';
## Interfaces

### Interfaces

#### AdaptyPaywallProduct
### AdaptyPaywallProduct

An information about a [product.](https://swift.adapty.io/documentation/adapty/adaptypaywallproduct)

Expand Down Expand Up @@ -37,14 +34,14 @@ An information about a [product.](https://swift.adapty.io/documentation/adapty/a
| subscriptionGroupIdentifier (_iOS only_) | string (optional) | The identifier of the subscription group to which the subscription belongs. (Will be nil for iOS version below 12.0 and macOS version below 10.14). |
| subscriptionPeriod | [`AdaptyProductSubscriptionPeriod`](sdk-models#adaptyproductsubscriptionperiod) (optional) | The period details for products that are subscriptions. (Will be nil for iOS version below 11.2 and macOS version below 10.14.4). |

#### AdaptyProductSubscriptionPeriod
### AdaptyProductSubscriptionPeriod

| Name | Type | Description |
| :------------ | :--------------- | :------------------------------------------------------------------------------------------------------------------------------- |
| unit | AdaptyPeriodUnit | A unit of time that a subscription period is specified in. The possible values are: `day`, `week`, `month`, `year` and `unknown` |
| numberOfUnits | number | A number of period units |

#### AdaptyProductDiscount
### AdaptyProductDiscount

An information about a [product discount.](https://swift.adapty.io/documentation/adapty/adaptyproductdiscount/)

Expand All @@ -60,7 +57,7 @@ An information about a [product discount.](https://swift.adapty.io/documentation
| subscriptionPeriod | [`AdaptyProductSubscriptionPeriod`](sdk-models#adaptyproductsubscriptionperiod) | An information about period for a product discount |


#### AdaptyPaywall
### AdaptyPaywall

An information about a [paywall.](https://swift.adapty.io/documentation/adapty/adaptypaywall)

Expand All @@ -77,7 +74,7 @@ An information about a [paywall.](https://swift.adapty.io/documentation/adapty/a
| locale | string | <p>An identifier of a paywall locale</p><p></p><p>This parameter is expected to be a language code composed of one or more subtags separated by the "-" character. The first subtag is for the language, the second one is for the region (The support for regions will be added later).</p><p>Example: `en` means English, `en-US` represents US English.</p><p>If the parameter is omitted, the paywall will be returned in the default locale.</p> |


#### AdaptyProfile
### AdaptyProfile

An information about a [user's](https://swift.adapty.io/documentation/adapty/adaptyprofile) subscription status and purchase history.

Expand All @@ -90,7 +87,7 @@ An information about a [user's](https://swift.adapty.io/documentation/adapty/ada
| subscriptions | dictionary\<string, [`Subscription `](sdk-models#adaptyprofilesubscription)> | The keys are product ids from a store. The values are information about subscriptions. Can be null if the customer has no subscriptions |
| nonSubscriptions | dictionary\<string, \[[`NonSubscription `](sdk-models#adaptyprofilenonsubscription)]> | The keys are product ids from the store. The values are arrays of information about consumables. Can be null if the customer has no purchases. |

#### AdaptyProfile.AccessLevel
### AdaptyProfile.AccessLevel

Information about the [user's access level.](https://swift.adapty.io/documentation/adapty/adaptyprofile/accesslevel)

Expand All @@ -116,7 +113,7 @@ Information about the [user's access level.](https://swift.adapty.io/documentati
| activePromotionalOfferId | string (Optional) | An id of active promotional offer. |


#### AdaptyProfile.Subscription
### AdaptyProfile.Subscription

Information about the [user's subscription.](https://swift.adapty.io/documentation/adapty/adaptyprofile/subscription)

Expand Down Expand Up @@ -144,7 +141,7 @@ Information about the [user's subscription.](https://swift.adapty.io/documentati
| isSandbox | bool | True if the product was purchased in a sandbox environment |


#### AdaptyProfile.NonSubscription
### AdaptyProfile.NonSubscription

Information about the user's non-subscription purchases.

Expand All @@ -160,7 +157,7 @@ Information about the user's non-subscription purchases.
| isSandbox | boolean | True if the product was purchased in a sandbox environment |


#### AdaptySubscriptionUpdateParameters
### AdaptySubscriptionUpdateParameters

(_Android only_)
Parameters to change one subscription to another.
Expand Down

0 comments on commit 48f574b

Please sign in to comment.