Skip to content

Commit

Permalink
Add support for discount codes (#64)
Browse files Browse the repository at this point in the history
* add support for app store discount codes

* add support for app store discount codes

* add support for app store discount codes
  • Loading branch information
mhuta committed Nov 21, 2022
1 parent d7c8f55 commit 829fe72
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ data class LatestReceiptInfo (
@get:JsonProperty("quantity") val quantity: String?,
@get:JsonProperty("subscription_group_identifier") val subscriptionGroupIdentifier: String?,
@get:JsonProperty("transaction_id") val transactionId: String,
@get:JsonProperty("web_order_line_item_id") val webOrderLineItemId: String?
@get:JsonProperty("web_order_line_item_id") val webOrderLineItemId: String?,
@get:JsonProperty("offer_code_ref_name") val offerCodeRefName: String?
): Serializable {

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ class AppStoreSubscriptionService(private val userAppClient: UserAppClient, priv
expiryTimeMillis = latestReceiptInfo.expiresDateMs,
countryCode = null,
currencyCode = null,
discountCode = null,
discountCode = latestReceiptInfo.offerCodeRefName,
appStoreReceipt = statusUpdateNotification.unifiedReceipt.latestReceipt,
isTrialPeriod = latestReceiptInfo.isTrialPeriod
)
Expand Down

0 comments on commit 829fe72

Please sign in to comment.