-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'ADP-1386-Custom-stores-server-side-api' into develop
Fixed issues found by QA
- Loading branch information
Showing
46 changed files
with
320 additions
and
320 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<!---AccessLevel.md ---> | ||
|
||
| Parameter | Type | Required in request | Nullable in request | Description | | ||
| :---------------------------- | :------------ | :------------------ | :------------------ | :----------------------------------------------------------- | | ||
| access_level_id | String | :heavy_plus_sign: | :heavy_minus_sign: | ID for the Paid Access Level set up in the Adapty Dashboard. | | ||
| store | String | :heavy_plus_sign: | :heavy_minus_sign: | Store where the product was bought. Options: **app_store**, **play_store**, **stripe**, or the name of your [custom store](initial-custom). | | ||
| store_product_id | String | :heavy_plus_sign: | :heavy_minus_sign: | ID of the product in the app store (like App Store, Google Play, Stripe) that unlocked this access level. | | ||
| store_base_plan_id | String | :heavy_plus_sign: | :heavy_plus_sign: | [Base plan ID](https://support.google.com/googleplay/android-developer/answer/12154973) in Google Play or [price ID](https://docs.stripe.com/products-prices/how-products-and-prices-work#what-is-a-price) in Stripe. | | ||
| store_transaction_id | String | :heavy_plus_sign: | :heavy_minus_sign: | Transaction ID in the app store (App Store, Google Play, Stripe, etc.). | | ||
| store_original_transaction_id | String | :heavy_plus_sign: | :heavy_minus_sign: | <p>For subscriptions, this ID links the original transaction in the chain of renewals. Later transactions are linked as renewals.</p><p>If there’s no renewal, store_original_transaction_id matches store_transaction_id.</p> | | ||
| offer | Dictionary | :heavy_plus_sign: | :heavy_minus_sign: | Dictionary where keys are offer IDs set by the developer in Adapty Dashboard. Values are [Offer](server-side-api-objects#offer) objects. Can be `null` if the customer has no access levels. | | ||
| environment | String | :heavy_minus_sign: | :heavy_minus_sign: | Environment for the transaction that granted access. Options: `Sandbox`, `Production`. | | ||
| starts_at | ISO 8601 date | :heavy_plus_sign: | :heavy_plus_sign: | The date time when the access level becomes active. Could be in the future. | | ||
| purchased_at | ISO 8601 date | :heavy_plus_sign: | :heavy_minus_sign: | The datetime of the most recent purchase for the access level. | | ||
| originally_purchased_at | ISO 8601 date | :heavy_plus_sign: | :heavy_minus_sign: | For subscriptions, this is the date and time of the very first (original) purchase in the chain, tied to `store_original_transaction_id`. | | ||
| expires_at | ISO 8601 date | :heavy_plus_sign: | :heavy_plus_sign: | The datetime when the access level expires. Might be in the past, or `null` for lifetime access. | | ||
| renewal_cancelled_at | ISO 8601 date | :heavy_plus_sign: | :heavy_plus_sign: | The datetime when auto-renewal was turned off for a subscription. The subscription can still be active; it just won’t auto-renew. Set to `null` if the user reactivates the subscription. | | ||
| billing_issue_detected_at | ISO 8601 date | :heavy_plus_sign: | :heavy_plus_sign: | The datetime when a billing issue was found (like a failed card charge). The subscription might still be active. This is cleared if the payment goes through later. | | ||
| is_in_grace_period | Boolean | :heavy_plus_sign: | :heavy_minus_sign: | Shows whether the subscription is in a [grace period](https://developer.apple.com/news/?id=09122019c) (only for auto-renewable subscriptions). | | ||
| cancellation_reason | String | :heavy_plus_sign: | :heavy_plus_sign: | Reason for cancellation, with options like: `voluntarily_cancelled`, `billing_error`, `price_increase`, `product_was_not_available`, `refund`, `upgraded`, `unknown`. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
...usable/AccessLevelNoProfileAccessLevel.md → ...usable/AccessLevelNoProfileAccessLevel.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
...-3.0/reusable/BillingIssueDetectedDate.md → ...ents/reusable/BillingIssueDetectedDate.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
10 changes: 5 additions & 5 deletions
10
..._docs/version-3.0/reusable/ExpiresDate.md → src/components/reusable/ExpiresDate.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
.../version-3.0/reusable/FamilySharePrice.md → src/components/reusable/FamilySharePrice.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
...cs/version-3.0/reusable/FreeTrialPrice.md → src/components/reusable/FreeTrialPrice.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
...ersion-3.0/reusable/GracePeriodBilling.md → ...components/reusable/GracePeriodBilling.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<!--- GracePeriodExpiresDate ---> | ||
|
||
A grace period is extra time you can give customers to extend their subscription if they couldn’t renew it on time—for instance, if their credit card didn’t go through. This helps keep their settings intact while they resolve any issues. Offering a grace period is optional. | ||
|
||
If you do offer a grace period, the expiration date for it (`grace_period_expires_at`) should be later than the subscription expiration date (`expires_at`). If not, the grace period expiration time will match the subscription expiration time. In any case, the grace period expiration can’t be earlier than the subscription expiration. | ||
|
||
To fix this, make sure the grace period expiration date (`grace_period_expires_at`) is later than the subscription expiration date (`expires_at`). | ||
|
||
###### Body | ||
|
||
| Parameter | Type | Description | | ||
| ----------- | ------- | ------------------------------------------------------------ | | ||
| errors | Object | <ul><li> **source**: (string) Always `grace_period_expires_at`</li><li> **errors**: A description of the error.</li></ul> | | ||
| error_code | String | Short error name. Always `grace_period_expires_date_error`. | | ||
| status_code | Integer | HTTP status. Always `400`. | | ||
|
||
###### Response example | ||
|
||
```json | ||
{ | ||
"errors": [ | ||
{ | ||
"source": "grace_period_expires_at", | ||
"errors": [ | ||
"grace_period_expires_at must be later or equal to expires_at." | ||
] | ||
} | ||
], | ||
"error_code": "grace_period_expires_date_error", | ||
"status_code": 400 | ||
} | ||
``` | ||
|
Oops, something went wrong.