Skip to content

Commit ec1def9

Browse files
[in_app_purchase_storekit] Use _$SKPaymentDiscountWrapperToJson (#12721)
Part of flutter/flutter#183937 ## Pre-Review Checklist **Note**: The Flutter team is currently trialing the use of [Gemini Code Assist for GitHub](https://developers.google.com/gemini-code-assist/docs/review-github-code). Comments from the `gemini-code-assist` bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed. [^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.
1 parent fa7225d commit ec1def9

2 files changed

Lines changed: 5 additions & 7 deletions

File tree

‎packages/in_app_purchase/in_app_purchase_storekit/CHANGELOG.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## NEXT
2+
3+
* Fixes lint issues.
4+
15
## 0.4.13
26

37
* Exposes expirationDate on SK2PurchaseDetails.

‎packages/in_app_purchase/in_app_purchase_storekit/lib/src/store_kit_wrappers/sk_payment_queue_wrapper.dart‎

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -539,13 +539,7 @@ class SKPaymentDiscountWrapper {
539539

540540
/// Creates a Map object describes the payment object.
541541
Map<String, dynamic> toMap() {
542-
return <String, dynamic>{
543-
'identifier': identifier,
544-
'keyIdentifier': keyIdentifier,
545-
'nonce': nonce,
546-
'signature': signature,
547-
'timestamp': timestamp,
548-
};
542+
return _$SKPaymentDiscountWrapperToJson(this);
549543
}
550544

551545
/// The identifier of the discount offer.

0 commit comments

Comments
 (0)