diff --git a/ghost/members-api/lib/controllers/router.js b/ghost/members-api/lib/controllers/router.js index f93d3e4704..9c7beb57c2 100644 --- a/ghost/members-api/lib/controllers/router.js +++ b/ghost/members-api/lib/controllers/router.js @@ -152,7 +152,7 @@ module.exports = class RouterController { } coupon = { - id: offer.stripeCouponId + id: offer.stripe_coupon_id }; } catch (err) { res.writeHead(500); diff --git a/ghost/offers/lib/application/OfferMapper.js b/ghost/offers/lib/application/OfferMapper.js index 09f4da5546..6cff4ecde0 100644 --- a/ghost/offers/lib/application/OfferMapper.js +++ b/ghost/offers/lib/application/OfferMapper.js @@ -24,6 +24,8 @@ * * @prop {'active'|'archived'} status * + * @prop {string} stripe_coupon_id + * * @prop {object} tier * @prop {string} tier.id * @prop {string} tier.name @@ -49,6 +51,7 @@ class OfferMapper { currency_restriction: offer.type.value === 'fixed', currency: offer.type.value === 'fixed' ? offer.currency.value : null, status: offer.status.value, + stripe_coupon_id: offer.stripeCouponId, tier: { id: offer.tier.id, name: offer.tier.name