-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathheadspace.json
More file actions
70 lines (69 loc) · 1.73 KB
/
headspace.json
File metadata and controls
70 lines (69 loc) · 1.73 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
var obj = JSON.parse($response.body);
obj={
"links" : {
"self" : "/subscription/user-subscriptions/{userSubscriptionId}"
},
"included" : [
{
"type" : "subscriptions",
"id" : "HSUSER_VWFD10R5IIO0KZCMB",
"attributes" : {
"id" : "HSUSER_VWFD10R5IIO0KZCMB",
"name" : "iOS Annual (14-day free trial)",
"subscriptionId" : "HSSUBS_B2CSUBSCRIBER"
}
},
{
"type" : "vouchers",
"id" : "9352483",
"attributes" : {
"planId" : 171,
"id" : "9352483",
"code" : "IOSIAP_FT_14D_ANNUAL",
"numMonths" : 12,
"voucherId" : "171",
"platform" : "iap",
"name" : "iOS Annual (14-day free trial)"
}
}
],
"data" : {
"id" : "9352483",
"relationships" : {
"voucher" : {
"data" : {
"type" : "vouchers",
"id" : "9352483"
}
},
"subscription" : {
"data" : {
"type" : "subscriptions",
"id" : "HSUSER_VWFD10R5IIO0KZCMB"
}
}
},
"type" : "userSubscriptions",
"attributes" : {
"status" : "ACTIVE",
"nextRenewalDate" : "2090-05-24T08:04:30.000Z",
"endDate" : "2090-05-24T08:04:30.000Z",
"id" : "9352483",
"startDate" : "2021-05-10T08:04:30.000Z",
"cancelled" : false,
"userSubscriptionId" : "9352483",
"subscriptionDetails" : {
"planAffiliation" : null,
"term" : 12,
"membership" : "PRIMARY",
"platform" : "APPLE",
"planCategory" : "FREE_TRIAL",
"version" : "V3",
"externalId" : "6098e9520cd650000aecc456",
"businessModel" : "B2C"
},
"isV3Subscription" : true
}
}
}
$done({body: JSON.stringify(obj)});