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:
parent
959fbae83d
commit
dec46383b7
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue