Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit 77e2c6d

Browse files
committed
Use correct JSON key for introductoryPriceMicros.
The SKUDetailsWrapper property is send using a JSON key with the name `introductoryPriceAmountMicros`. This commit updates the JSON key to use the correct name and makes sure it passes all unit tests again.
1 parent 1b1ec27 commit 77e2c6d

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

packages/in_app_purchase/in_app_purchase_android/lib/src/billing_client_wrappers/sku_details_wrapper.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class SkuDetailsWrapper {
6868
final String introductoryPrice;
6969

7070
/// [introductoryPrice] in micro-units 990000
71-
@JsonKey(defaultValue: '')
71+
@JsonKey(name: 'introductoryPriceAmountMicros', defaultValue: '')
7272
final String introductoryPriceMicros;
7373

7474
/// The number of subscription billing periods for which the user will be given the introductory price, such as 3.

packages/in_app_purchase/in_app_purchase_android/lib/src/billing_client_wrappers/sku_details_wrapper.g.dart

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)