Skip to content

Commit

Permalink
One last changelog change
Browse files Browse the repository at this point in the history
  • Loading branch information
joshdholtz committed Mar 31, 2023
1 parent 887ed37 commit e3d2ecc
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
13 changes: 8 additions & 5 deletions CHANGELOG.latest.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,25 @@ This latest release updates the Android SDK dependency from v5 to [v6](https://g
### New `SubscriptionOption` concept

#### Purchasing
In v4, a Google Play Android `Package` or `StoreProduct` represented a single purchaseable entity, and free trials or intro
offers would automatically be applied to the purchase if the user was eligible.

Now, in Hybrid Common v5, an Google Play Android `Package` or `StoreProduct` represents a duration of a subscription and contains all the ways to
purchase that duration -- any offers and its base plan. Each of these purchase options are `SubscriptionOption`s.
When passing a `Package` to `purchasePackage()` or `StoreProduct` to `purchaseStoreProduct()`, the SDK will use the following logic to choose which
`SubscriptionOption` to purchase:
* - Filters out offers with "rc-ignore-offer" tag
* - Uses `SubscriptionOption` with the longest free trial or cheapest first phase
* - Falls back to base plan
- Filters out offers with "rc-ignore-offer" tag
- Uses `SubscriptionOption` with the longest free trial or cheapest first phase
- Only offers the user is eligible will be applied
- Falls back to base plan

For more control, purchase subscription options with the new `purchaseSubscriptionOption()` method.

#### Models

`StoreProducts` now has a few new properties use for Google Play Android:
`StoreProduct` now has a few new properties use for Google Play Android:
- `defaultOption`
- A subscription option (could be null)
- A subscription option that will automatically be applie when purchasing a `Package` or `StoreProduct`
- `subscriptionOptions`
- A list of subscription options (could be null)

Expand Down
13 changes: 8 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,25 @@ This latest release updates the Android SDK dependency from v5 to [v6](https://g
### New `SubscriptionOption` concept

#### Purchasing
In v4, a Google Play Android `Package` or `StoreProduct` represented a single purchaseable entity, and free trials or intro
offers would automatically be applied to the purchase if the user was eligible.

Now, in Hybrid Common v5, an Google Play Android `Package` or `StoreProduct` represents a duration of a subscription and contains all the ways to
purchase that duration -- any offers and its base plan. Each of these purchase options are `SubscriptionOption`s.
When passing a `Package` to `purchasePackage()` or `StoreProduct` to `purchaseStoreProduct()`, the SDK will use the following logic to choose which
`SubscriptionOption` to purchase:
* - Filters out offers with "rc-ignore-offer" tag
* - Uses `SubscriptionOption` with the longest free trial or cheapest first phase
* - Falls back to base plan
- Filters out offers with "rc-ignore-offer" tag
- Uses `SubscriptionOption` with the longest free trial or cheapest first phase
- Only offers the user is eligible will be applied
- Falls back to base plan

For more control, purchase subscription options with the new `purchaseSubscriptionOption()` method.

#### Models

`StoreProducts` now has a few new properties use for Google Play Android:
`StoreProduct` now has a few new properties use for Google Play Android:
- `defaultOption`
- A subscription option (could be null)
- A subscription option that will automatically be applie when purchasing a `Package` or `StoreProduct`
- `subscriptionOptions`
- A list of subscription options (could be null)

Expand Down

0 comments on commit e3d2ecc

Please sign in to comment.