0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

Updated API to use snake_case for redemption_count

no-issue
This commit is contained in:
Fabien O'Carroll 2021-10-18 17:29:30 +02:00
parent 959fbae83d
commit dec46383b7

View file

@ -23,7 +23,7 @@
* @prop {null|number} duration_in_months
*
* @prop {'active'|'archived'} status
* @prop {number} redemptionCount
* @prop {number} redemption_count
*
* @prop {string} stripe_coupon_id
*
@ -53,7 +53,7 @@ class OfferMapper {
currency: offer.type.value === 'fixed' ? offer.currency.value : null,
status: offer.status.value,
stripe_coupon_id: offer.stripeCouponId,
redemptionCount: offer.redemptionCount,
redemption_count: offer.redemptionCount,
tier: {
id: offer.tier.id,
name: offer.tier.name