Skip to content

Commit

Permalink
Update OpenAPI.json
Browse files Browse the repository at this point in the history
  • Loading branch information
weronika-kurczyna committed Oct 16, 2023
1 parent b5abd9e commit 48c2635
Showing 1 changed file with 31 additions and 40 deletions.
71 changes: 31 additions & 40 deletions reference/OpenAPI.json
Original file line number Diff line number Diff line change
Expand Up @@ -10590,14 +10590,32 @@
"total"
]
},
"rewards_update_assignment_request_body": {
"type": "object",
"description": "Request body schema for **PUT** `/rewards/{rewardID}/assignments/{assignmentID}`.",
"title": "Update Reward Assignment Request Body",
"rewards_create_assignment_request_body": {
"description": "Request body schema for **POST** `/rewards/{rewardID}/assignments`.",
"title": "Create Reward Assignment Request Body",
"oneOf": [
{
"$ref": "#/components/schemas/rewards_create_assignment_main_reward_request_body"
},
{
"$ref": "#/components/schemas/rewards_create_assignment_coin_reward_request_body"
}
]
},
"rewards_create_assignment_main_reward_request_body": {
"description": "Request body schema for **POST** `/rewards/{rewardID}/assignments`.",
"title": "Main Reward",
"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"
],
"properties": {
"loyalty": {
"type": "object",
Expand All @@ -10611,43 +10629,16 @@
}
}
}
}
},
"required": [
"campaign",
"parameters"
]
},
"rewards_create_assignment_request_body": {
"rewards_create_assignment_coin_reward_request_body": {
"description": "Request body schema for **POST** `/rewards/{rewardID}/assignments`.",
"title": "Create Reward Assignment Request Body",
"title": "Coin Reward",
"oneOf": [
{
"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"
],
"properties": {
"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"
]
},
{
"properties": {
"campaign": {
Expand Down Expand Up @@ -29836,7 +29827,7 @@
"$ref": "#/components/schemas/4_obj_reward_assignment_object"
}
},
"8_req_update_reward_assignment": {
"rewards_update_assignment_request_body": {
"title": "Update Reward Assignment Request Body",
"type": "object",
"description": "Request body schema for **PUT** `/loyalties/{campaignId}/rewards/{assignmentId}`.",
Expand Down Expand Up @@ -54789,7 +54780,7 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/4_obj_reward_assignment_object"
"$ref": "#/components/schemas/reward_assignment"
}
}
}
Expand Down

0 comments on commit 48c2635

Please sign in to comment.