Skip to content

Commit

Permalink
Merge pull request #240 from sachinvodafone/main
Browse files Browse the repository at this point in the history
Update Subscription Yaml file for issue 220 and 238
  • Loading branch information
akoshunyadi authored Jan 16, 2025
2 parents c78ed24 + 4d10df0 commit d488963
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 32 deletions.
27 changes: 24 additions & 3 deletions code/API_definitions/connected-network-type-subscriptions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/Subscription"
examples:
subscription-active:
$ref: "#/components/examples/SUBSCRIPTION_ACTIVE"
"202":
description: Request accepted to be processed. It applies for async creation process.
headers:
Expand Down Expand Up @@ -406,7 +409,7 @@ components:
subscriptionExpireTime:
type: string
format: date-time
example: 2023-01-17T13:18:23.682Z
example: "2023-01-17T13:18:23.682Z"
description: The subscription expiration time (in date-time format) requested by the API consumer.
subscriptionMaxEvents:
type: integer
Expand Down Expand Up @@ -1197,7 +1200,7 @@ components:
device:
phoneNumber: +123456789
connectedNetworkType: 5G
time: 2023-03-22T05:40:23.682Z
time: "2023-03-22T05:40:23.682Z"

SUBSCRIPTION_ENDS:
value:
Expand All @@ -1211,4 +1214,22 @@ components:
phoneNumber: +123456789
terminationReason: SUBSCRIPTION_EXPIRED
subscriptionId: dv10-h556-rt89-1403
time: 2024-03-05T15:00:23.682Z
time: "2024-03-05T15:00:23.682Z"

SUBSCRIPTION_ACTIVE:
value:
id: 550e8400-e29b-41d4-a716-446655440000
sink: https://endpoint.example.com/sink
protocol: HTTP
types:
- "org.camaraproject.connected-network-type-subscriptions.v0.network-type-changed"
config:
subscriptionDetail:
device:
phoneNumber: "+123456789"
subscriptionExpireTime: "2024-07-17T13:18:23.682Z"
subscriptionMaxEvents: 5
initialEvent: true
startsAt: "2024-07-03T21:12:02.871Z"
expiresAt: "2024-07-03T21:12:02.871Z"
status: ACTIVE
28 changes: 14 additions & 14 deletions code/API_definitions/device-reachability-status-subscriptions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ components:
subscriptionExpireTime:
type: string
format: date-time
example: 2023-01-17T13:18:23.682Z
example: "2023-01-17T13:18:23.682Z"
description: The subscription expiration time (in date-time format) requested by the API consumer.
subscriptionMaxEvents:
type: integer
Expand Down Expand Up @@ -1247,7 +1247,7 @@ components:
device:
phoneNumber: +123456787
subscriptionId: qs15-h556-rt89-1298
time: 2023-01-19T13:18:23.682Z
time: "2023-01-19T13:18:23.682Z"

REACHABILITY_SMS:
value:
Expand All @@ -1260,7 +1260,7 @@ components:
device:
phoneNumber: +123456787
subscriptionId: qs15-h556-rt89-1298
time: 2023-01-19T13:18:23.682Z
time: "2023-01-19T13:18:23.682Z"

REACHABILITY_DISCONNECTED:
value:
Expand All @@ -1273,7 +1273,7 @@ components:
device:
phoneNumber: +123456787
subscriptionId: qs15-h556-rt89-1298
time: 2023-01-19T13:18:23.682Z
time: "2023-01-19T13:18:23.682Z"

SUBSCRIPTION_ENDS:
value:
Expand All @@ -1287,7 +1287,7 @@ components:
phoneNumber: +123456789
terminationReason: SUBSCRIPTION_EXPIRED
subscriptionId: qs15-h556-rt89-1298
time: 2024-03-22T05:40:23.682Z
time: "2024-03-22T05:40:23.682Z"

SUBSCRIPTION_ACTIVE:
value:
Expand All @@ -1300,11 +1300,11 @@ components:
subscriptionDetail:
device:
phoneNumber: "+123456789"
subscriptionExpireTime: 2024-07-17T13:18:23.682Z
subscriptionExpireTime: "2024-07-17T13:18:23.682Z"
subscriptionMaxEvents: 5
initialEvent: true
startsAt: 2024-07-03T21:12:02.871Z
expiresAt: 2024-07-03T21:12:02.871Z
startsAt: "2024-07-03T21:12:02.871Z"
expiresAt: "2024-07-03T21:12:02.871Z"
status: ACTIVE

SUBSCRIPTION_ACTIVATION_REQUESTED:
Expand All @@ -1318,11 +1318,11 @@ components:
subscriptionDetail:
device:
phoneNumber: "+123456789"
subscriptionExpireTime: 2024-07-17T13:18:23.682Z
subscriptionExpireTime: "2024-07-17T13:18:23.682Z"
subscriptionMaxEvents: 5
initialEvent: true
startsAt: 2024-07-03T21:12:02.871Z
expiresAt: 2024-07-03T21:12:02.871Z
startsAt: "2024-07-03T21:12:02.871Z"
expiresAt: "2024-07-03T21:12:02.871Z"
status: ACTIVATION_REQUESTED

SUBSCRIPTION_DELETED:
Expand All @@ -1336,9 +1336,9 @@ components:
subscriptionDetail:
device:
phoneNumber: "+123456789"
subscriptionExpireTime: 2024-07-17T13:18:23.682Z
subscriptionExpireTime: "2024-07-17T13:18:23.682Z"
subscriptionMaxEvents: 5
initialEvent: true
startsAt: 2024-07-03T21:12:02.871Z
expiresAt: 2024-07-03T21:12:02.871Z
startsAt: "2024-07-03T21:12:02.871Z"
expiresAt: "2024-07-03T21:12:02.871Z"
status: DELETED
30 changes: 15 additions & 15 deletions code/API_definitions/device-roaming-status-subscriptions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ components:
subscriptionExpireTime:
type: string
format: date-time
example: 2023-01-17T13:18:23.682Z
example: "2023-01-17T13:18:23.682Z"
description: The subscription expiration time (in date-time format) requested by the API consumer.
subscriptionMaxEvents:
type: integer
Expand Down Expand Up @@ -1307,7 +1307,7 @@ components:
countryCode: 208
countryName: FR
subscriptionId: qs15-h556-rt89-1298
time: 2023-01-17T13:18:23.682Z
time: "2023-01-17T13:18:23.682Z"

ROAMING_OFF:
value:
Expand All @@ -1320,7 +1320,7 @@ components:
device:
phoneNumber: +123456788
subscriptionId: qs15-h556-rt89-1298
time: 2023-01-18T13:18:23.682Z
time: "2023-01-18T13:18:23.682Z"

ROAMING_ON:
value:
Expand All @@ -1333,7 +1333,7 @@ components:
device:
phoneNumber: +123456787
subscriptionId: qs15-h556-rt89-1298
time: 2023-01-19T13:18:23.682Z
time: "2023-01-19T13:18:23.682Z"

ROAMING_CHANGE_COUNTRY:
value:
Expand All @@ -1348,7 +1348,7 @@ components:
countryCode: 214
countryName: ["ES"]
subscriptionId: qs15-h556-rt89-1298
time: 2023-01-19T13:18:23.682Z
time: "2023-01-19T13:18:23.682Z"

SUBSCRIPTION_ENDS:
value:
Expand All @@ -1362,7 +1362,7 @@ components:
phoneNumber: +123456789
terminationReason: SUBSCRIPTION_EXPIRED
subscriptionId: qs15-h556-rt89-1298
time: 2023-01-19T13:18:23.682Z
time: "2023-01-19T13:18:23.682Z"

SUBSCRIPTION_ACTIVE:
value:
Expand All @@ -1375,11 +1375,11 @@ components:
subscriptionDetail:
device:
phoneNumber: "+123456789"
subscriptionExpireTime: 2024-07-17T13:18:23.682Z
subscriptionExpireTime: "2024-07-17T13:18:23.682Z"
subscriptionMaxEvents: 5
initialEvent: true
startsAt: 2024-07-03T21:12:02.871Z
expiresAt: 2024-07-03T21:12:02.871Z
startsAt: "2024-07-03T21:12:02.871Z"
expiresAt: "2024-07-03T21:12:02.871Z"
status: ACTIVE

SUBSCRIPTION_ACTIVATION_REQUESTED:
Expand All @@ -1393,11 +1393,11 @@ components:
subscriptionDetail:
device:
phoneNumber: "+123456789"
subscriptionExpireTime: 2024-07-17T13:18:23.682Z
subscriptionExpireTime: "2024-07-17T13:18:23.682Z"
subscriptionMaxEvents: 5
initialEvent: true
startsAt: 2024-07-03T21:12:02.871Z
expiresAt: 2024-07-03T21:12:02.871Z
startsAt: "2024-07-03T21:12:02.871Z"
expiresAt: "2024-07-03T21:12:02.871Z"
status: ACTIVATION_REQUESTED

SUBSCRIPTION_DELETED:
Expand All @@ -1411,9 +1411,9 @@ components:
subscriptionDetail:
device:
phoneNumber: "+123456789"
subscriptionExpireTime: 2024-07-17T13:18:23.682Z
subscriptionExpireTime: "2024-07-17T13:18:23.682Z"
subscriptionMaxEvents: 5
initialEvent: true
startsAt: 2024-07-03T21:12:02.871Z
expiresAt: 2024-07-03T21:12:02.871Z
startsAt: "2024-07-03T21:12:02.871Z"
expiresAt: "2024-07-03T21:12:02.871Z"
status: DELETED

0 comments on commit d488963

Please sign in to comment.