Skip to content

Commit 0cc72da

Browse files
authored
Merge pull request #28 from OneSignal/user_model_update
Minor updates
2 parents 2b67f93 + 58074be commit 0cc72da

1 file changed

Lines changed: 11 additions & 19 deletions

File tree

api.json

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -127,16 +127,18 @@
127127
},
128128
"apns_key_id": {
129129
"type": "string",
130-
"description": "iOS: Required if using p8. Unique identifier for the p8 authentication key."
130+
"description": "iOS: Required if using p8. Unique identifier for the p8 authentication key.",
131+
"nullable": true
131132
},
132133
"apns_team_id": {
133134
"type": "string",
134-
"description": "iOS: Required if using p8. Team ID generated by Apple for your developer account."
135-
135+
"description": "iOS: Required if using p8. Team ID generated by Apple for your developer account.",
136+
"nullable": true
136137
},
137138
"apns_bundle_id": {
138139
"type": "string",
139-
"description": "iOS: Required if using p8. Bundle ID for your app in the Apple ecosystem."
140+
"description": "iOS: Required if using p8. Bundle ID for your app in the Apple ecosystem.",
141+
"nullable": true
140142
},
141143
"apns_p8": {
142144
"type": "string",
@@ -180,7 +182,8 @@
180182
},
181183
"basic_auth_key": {
182184
"type": "string",
183-
"readOnly": true
185+
"readOnly": true,
186+
"nullable": true
184187
},
185188
"organization_id": {
186189
"type": "string",
@@ -1343,6 +1346,9 @@
13431346
"iso": {
13441347
"type": "string",
13451348
"description": "The 3-letter ISO 4217 currency code. Required for correct storage and conversion of amount."
1349+
},
1350+
"count": {
1351+
"type": "number"
13461352
}
13471353
},
13481354
"required": [
@@ -1772,9 +1778,6 @@
17721778
"session_count": {
17731779
"type": "number"
17741780
},
1775-
"amount_spent": {
1776-
"type": "number"
1777-
},
17781781
"purchases": {
17791782
"type": "array",
17801783
"items": {
@@ -2110,10 +2113,6 @@
21102113
"properties": {
21112114
"identity": {
21122115
"$ref": "#/components/schemas/IdentityObject"
2113-
},
2114-
"retain_previous_owner": {
2115-
"type": "boolean",
2116-
"description": "The request must specify whether the subscription’s previous user should be retained. If so and the subscription is the last subscription for the previous user, then an orphan user will be created. This only applies if the subscription is the previous user’s only subscription. If the previous user had other subscriptions, nothing happens to the user."
21172116
}
21182117
}
21192118
},
@@ -3187,13 +3186,6 @@
31873186
"type": "string"
31883187
}
31893188
},
3190-
{
3191-
"in": "header",
3192-
"name": "subscription_id",
3193-
"schema": {
3194-
"type": "string"
3195-
}
3196-
},
31973189
{
31983190
"in": "path",
31993191
"name": "alias_label",

0 commit comments

Comments
 (0)