Skip to content

Commit

Permalink
update all reward assignment methods
Browse files Browse the repository at this point in the history
  • Loading branch information
weronika-kurczyna committed Oct 13, 2023
1 parent 1817839 commit 0a7de7d
Showing 1 changed file with 47 additions and 46 deletions.
93 changes: 47 additions & 46 deletions reference/OpenAPI.json
Original file line number Diff line number Diff line change
Expand Up @@ -9466,7 +9466,7 @@
}
},
"reward_base": {
"title": "Reward Base",
"title": "Reward Object Base",
"type": "object",
"properties": {
"name": {
Expand Down Expand Up @@ -10547,26 +10547,17 @@
],
"allOf": [
{
"$ref": "#/components/schemas/reward_assignment_base",
"x-stoplight": {
"id": "jh3hi27sz0tb0"
}
"$ref": "#/components/schemas/reward_assignment_base"
},
{
"$ref": "#/components/schemas/reward_assignment_identity",
"x-stoplight": {
"id": "t6wsmzz6nx39e"
}
"$ref": "#/components/schemas/reward_assignment_identity"
},
{
"$ref": "#/components/schemas/reward_assignment_response_data",
"x-stoplight": {
"id": "oyv1erbi7j8wp"
}
"$ref": "#/components/schemas/reward_assignment_response_data"
}
]
},
"4_res_list_reward_assignments": {
"rewards_list_assignments_response_body": {
"type": "object",
"description": "Response body schema for **GET** `/rewards/{rewardID}/assignments`.",
"title": "List Reward Assignments Response Body",
Expand All @@ -10584,16 +10575,22 @@
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/4_obj_reward_assignment_object"
"$ref": "#/components/schemas/reward_assignment"
}
},
"total": {
"type": "integer",
"description": "Total number of reward assignments."
}
}
},
"required": [
"object",
"data_ref",
"data",
"total"
]
},
"4_req_update_reward_assignment": {
"rewards_update_assignments_request_body": {
"type": "object",
"description": "Request body schema for **PUT** `/rewards/{rewardID}/assignments/{assignmentID}`.",
"title": "Update Reward Assignment Request Body",
Expand All @@ -10616,39 +10613,43 @@
}
}
},
"4_req_create_reward_assignment": {
"type": "object",
"rewards_create_assignment_request_body": {
"description": "Request body schema for **POST** `/rewards/{rewardID}/assignments`.",
"title": "Create Reward Assignment Request Body",
"properties": {
"campaign": {
"type": "string",
"description": "The campaign ID of the campaign to which the reward is to be assigned."
},
"parameters": {
"type": "object",
"description": "Defines the cost of the reward.",
"required": [
"loyalty"
],
"oneOf": [
{
"properties": {
"loyalty": {
"campaign": {
"type": "string",
"description": "The campaign ID of the campaign to which the reward is to be assigned."
},
"parameters": {
"type": "object",
"description": "Defines the equivalent points value of the reward.",
"description": "Defines the cost of the reward.",
"required": [
"loyalty"
],
"properties": {
"points": {
"type": "integer",
"description": "Number of points that will be subtracted from the loyalty card points balance if the reward is redeemed."
"loyalty": {
"type": "object",
"description": "Defines the equivalent points value of the reward.",
"properties": {
"points": {
"type": "integer",
"description": "Number of points that will be subtracted from the loyalty card points balance if the reward is redeemed."
}
}
}
}
}
}
},
"required": [
"campaign",
"parameters"
]
}
},
"required": [
"campaign",
"parameters"
]
],
"type": "object"
},
"5_obj_publication_object": {
"title": "Publication Object",
Expand Down Expand Up @@ -54376,7 +54377,7 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/4_res_list_reward_assignments"
"$ref": "#/components/schemas/rewards_list_assignments_response_body"
},
"examples": {
"Example": {
Expand Down Expand Up @@ -54464,7 +54465,7 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/4_req_create_reward_assignment"
"$ref": "#/components/schemas/rewards_create_assignment_request_body"
},
"examples": {
"Example": {
Expand All @@ -54487,7 +54488,7 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/4_obj_reward_assignment_object"
"$ref": "#/components/schemas/reward_assignment"
},
"examples": {
"Example": {
Expand Down Expand Up @@ -54655,7 +54656,7 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/4_obj_reward_assignment_object"
"$ref": "#/components/schemas/reward_assignment"
},
"examples": {
"Example": {
Expand Down Expand Up @@ -73145,7 +73146,7 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/8_req_update_reward_assignment"
"$ref": "#/components/schemas/rewards_update_assignments_request_body"
},
"examples": {
"Example": {
Expand Down

0 comments on commit 0a7de7d

Please sign in to comment.