Skip to content

Commit

Permalink
Paywalls: updated PaywallData field names (#2817)
Browse files Browse the repository at this point in the history
These now match how the frontend is configuring them.
  • Loading branch information
NachoSoto committed Jul 20, 2023
1 parent 039bc64 commit 5924fab
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions Sources/Paywalls/PaywallData.swift
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,8 @@ extension PaywallData.LocalizedConfiguration: Codable {
private enum CodingKeys: String, CodingKey {
case title
case subtitle
case callToAction = "cta"
case callToActionWithIntroOffer = "ctaWithIntroOffer"
case callToAction
case callToActionWithIntroOffer
case offerDetails
case offerDetailsWithIntroOffer
}
Expand Down
8 changes: 4 additions & 4 deletions Tests/UnitTests/Networking/Responses/Fixtures/Offerings.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,16 @@
"en_US": {
"title": "Paywall",
"subtitle": "Description",
"cta": "Purchase now",
"cta_with_intro_offer": "Purchase now",
"call_to_action": "Purchase now",
"call_to_action_with_intro_offer": "Purchase now",
"offer_details": "{{ price_per_month }} per month",
"offer_details_with_intro_offer": "Start your {{ intro_duration }} trial, then {{ price_per_month }} per month"
},
"es_ES": {
"title": "Tienda",
"subtitle": "Descripción",
"cta": "Comprar",
"cta_with_intro_offer": "Comprar",
"call_to_action": "Comprar",
"call_to_action_with_intro_offer": "Comprar",
"offer_details": "{{ price_per_month }} cada mes",
"offer_details_with_intro_offer": "Comienza tu prueba de {{ intro_duration }}, y después {{ price_per_month }} cada mes"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
"en_US": {
"title": "Paywall",
"subtitle": "Description",
"cta": "Purchase now",
"cta_with_intro_offer": "Purchase now",
"call_to_action": "Purchase now",
"call_to_action_with_intro_offer": "Purchase now",
"offer_details": "{{ price_per_month }} per month",
"offer_details_with_intro_offer": "Start your {{ intro_duration }} trial, then {{ price_per_month }} per month"
},
"es_ES": {
"title": "Tienda",
"subtitle": "Descripción",
"cta": "Comprar",
"call_to_action": "Comprar",
"offer_details": "{{ price_per_month }} cada mes"
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"it_IT": {
"title": "Paywall",
"subtitle": "Description",
"cta": "Purchase now",
"cta_with_intro_offer": "Purchase now",
"call_to_action": "Purchase now",
"call_to_action_with_intro_offer": "Purchase now",
"offer_details": "{{ price_per_month }} per month",
"offer_details_with_intro_offer": "Start your {{ intro_duration }} trial, then {{ price_per_month }} per month"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"es_ES": {
"title": "Tienda",
"subtitle": "Descripción",
"cta": "Comprar",
"cta_with_intro_offer": "Comprar",
"call_to_action": "Comprar",
"call_to_action_with_intro_offer": "Comprar",
"offer_details": "{{ price_per_month }} cada mes",
"offer_details_with_intro_offer": "Comienza tu prueba de {{ intro_duration }}, y después {{ price_per_month }} cada mes"
}
Expand Down

0 comments on commit 5924fab

Please sign in to comment.