forked from zhiyicai/langkhach270389-Scripting-20191122
-
Notifications
You must be signed in to change notification settings - Fork 0
/
calm.vip.js
37 lines (34 loc) · 1.08 KB
/
calm.vip.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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)});