768511c7cc
refs https://github.com/TryGhost/Team/issues/3349 Tidies up the remaining major pieces which were not covered by tests. Extends the existing test patterns, although the API mocks are getting a bit unmanageable.
45 lines
1.3 KiB
JSON
45 lines
1.3 KiB
JSON
{
|
|
"offers": [
|
|
{
|
|
"id": "6487ea6464fca78ec2fff5fe",
|
|
"name": "First offer",
|
|
"code": "first-offer",
|
|
"display_title": "First offer",
|
|
"display_description": "",
|
|
"type": "percent",
|
|
"cadence": "month",
|
|
"amount": 10,
|
|
"duration": "once",
|
|
"duration_in_months": null,
|
|
"currency_restriction": false,
|
|
"currency": null,
|
|
"status": "active",
|
|
"redemption_count": 0,
|
|
"tier": {
|
|
"id": "645453f4d254799990dd0e22",
|
|
"name": "Supporter"
|
|
}
|
|
},
|
|
{
|
|
"id": "6487f0c364fca78ec2fff600",
|
|
"name": "Second offer",
|
|
"code": "second-offer",
|
|
"display_title": "Second offer",
|
|
"display_description": "",
|
|
"type": "percent",
|
|
"cadence": "month",
|
|
"amount": 12,
|
|
"duration": "repeating",
|
|
"duration_in_months": 3,
|
|
"currency_restriction": false,
|
|
"currency": null,
|
|
"status": "active",
|
|
"redemption_count": 0,
|
|
"tier": {
|
|
"id": "645453f4d254799990dd0e22",
|
|
"name": "Supporter"
|
|
}
|
|
}
|
|
]
|
|
}
|