Created
October 24, 2019 18:15
-
-
Save chankanzu/542c4e87bcfa09add00bb52268539b61 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var obj = JSON.parse($response.body); | |
obj["subscription"]= { | |
"in_free_trial_window": true, | |
"subscription_plan": "com.calm.yearly.trial.one_week.usd_50", | |
"began": "2019-04-22T12:12:54.000Z", | |
"is_lifetime": true, | |
"valid": true, | |
"is_renewable": true, | |
"is_in_billing_retry_period": false, | |
"will_renew": true, | |
"expires": "2099-04-29T12:12:54.000Z", | |
"user_id": "KgagpU1URv", | |
"type": "ios", | |
"is_canceled": false, | |
"free_trial_began": "2019-04-22T12:12:54.000Z", | |
"coupon_used": false, | |
"has_ever_done_free_trial": true, | |
"is_free": false, | |
"ios_details": { | |
"product_id": "com.calm.yearly.trial.one_week.usd_50", | |
"began": "2019-04-22T12:12:54.000Z", | |
"is_free_trial": true, | |
"id": "540000370675471", | |
"is_canceled": false, | |
"is_renewable": true, | |
"free_trial_ended": "2099-04-29T12:12:54.000Z", | |
"free_trial_began": "2019-04-22T12:12:54.000Z", | |
"will_renew": true, | |
"original_transaction_id": "540000370675471", | |
"expires": "2099-04-29T12:12:54.000Z" | |
}, | |
"free_trial_ended": "2099-04-29T12:12:54.000Z" | |
}; | |
$done({body: JSON.stringify(obj)}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment