Skip to content

Commit

Permalink
more schemas name changes
Browse files Browse the repository at this point in the history
  • Loading branch information
p-zielinski committed Nov 29, 2023
1 parent 7b167e6 commit 2853acf
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 29 deletions.
2 changes: 1 addition & 1 deletion Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,7 @@ Endpoint change:
- VoucherTransactionsExportFilterConditions (old `16_obj_filter_gift_card_transactions_voucher_id`)

- validation_rules_list_rules_assignments_response_body (old `13_res_validation-rules_validationRuleId_assignments`)
- validation_rule_assignment (old `13_obj_validation_rule_assignment_object`)
- ValidationRuleAssignment (old `13_obj_validation_rule_assignment_object`)

**Removed models**
- `8_obj_export_loyalty_card_transactions` - used only in one place, replaced with: `VoucherTransactionsExportParameters` in `8_req_create_loyalty_card_transactions_export` schema
Expand Down
63 changes: 36 additions & 27 deletions reference/OpenAPI.json
Original file line number Diff line number Diff line change
Expand Up @@ -9818,7 +9818,7 @@
"description": "The type of object represented by JSON. This object stores information about the promotion tier."
},
"validation_rule_assignments": {
"$ref": "#/components/schemas/ValidationRulesListRulesAssignmentsResponseBody"
"$ref": "#/components/schemas/ValidationRuleAssignmentsList"
},
"category_id": {
"type": "string",
Expand Down Expand Up @@ -10813,7 +10813,7 @@
}
}
},
"reward_assignment_base": {
"RewardAssignmentBase": {
"title": "Reward Assignment Base",
"type": "object",
"properties": {
Expand Down Expand Up @@ -10876,32 +10876,32 @@
"title": "Reward Assignment",
"oneOf": [
{
"$ref": "#/components/schemas/reward_assignment_coin_reward"
"$ref": "#/components/schemas/RewardAssignmentCoinReward"
},
{
"$ref": "#/components/schemas/reward_assignment_campaign_and_material_reward"
"$ref": "#/components/schemas/RewardAssignmentCampaignAndMaterialReward"
}
],
"type": "object"
},
"reward_assignment_coin_reward": {
"RewardAssignmentCoinReward": {
"title": "Pay with Points Reward",
"$ref": "#/components/schemas/reward_assignment_base",
"$ref": "#/components/schemas/RewardAssignmentBase",
"type": "object"
},
"reward_assignment_campaign_and_material_reward": {
"RewardAssignmentCampaignAndMaterialReward": {
"title": "Digital or Material Reward",
"allOf": [
{
"$ref": "#/components/schemas/reward_assignment_base"
"$ref": "#/components/schemas/RewardAssignmentBase"
},
{
"$ref": "#/components/schemas/reward_assignment_campaign_and_material_reward_parameters"
"$ref": "#/components/schemas/RewardAssignmentCampaignAndMaterialRewardParameters"
}
],
"type": "object"
},
"reward_assignment_campaign_and_material_reward_parameters": {
"RewardAssignmentCampaignAndMaterialRewardParameters": {
"title": "Digital or Material Reward - Parameters",
"type": "object",
"properties": {
Expand Down Expand Up @@ -10929,7 +10929,7 @@
"parameters"
]
},
"rewards_list_assignments_response_body": {
"RewardsListAssignmentsResponseBody": {
"type": "object",
"description": "Response body schema for GET /rewards/{rewardID}/assignments.",
"title": "List Reward Assignments Response Body",
Expand Down Expand Up @@ -10962,19 +10962,19 @@
"total"
]
},
"rewards_create_assignment_request_body": {
"RewardsCreateAssignmentRequestBody": {
"description": "Request body schema for **POST** `/rewards/{rewardID}/assignments`.",
"title": "Create Reward Assignment Request Body",
"oneOf": [
{
"$ref": "#/components/schemas/rewards_create_assignment_campaign_and_material_reward_request_body"
"$ref": "#/components/schemas/RewardsCreateAssignmentCampaignAndMaterialRewardRequestBody"
},
{
"$ref": "#/components/schemas/rewards_create_assignment_coin_reward_request_body"
"$ref": "#/components/schemas/RewardsCreateAssignmentCoinRewardRequestBody"
}
]
},
"rewards_create_assignment_campaign_and_material_reward_request_body": {
"RewardsCreateAssignmentCampaignAndMaterialRewardRequestBody": {
"description": "Request body schema for **POST** `/rewards/{rewardID}/assignments`.",
"title": "Digital Or Material Reward",
"properties": {
Expand Down Expand Up @@ -11007,7 +11007,7 @@
"parameters"
]
},
"rewards_create_assignment_coin_reward_request_body": {
"RewardsCreateAssignmentCoinRewardRequestBody": {
"description": "Request body schema for **POST** `/rewards/{rewardID}/assignments`.",
"title": "Pay with Points Reward",
"type": "object",
Expand Down Expand Up @@ -25339,7 +25339,7 @@
"$ref": "#/components/schemas/4_obj_reward_assignment_object"
}
},
"rewards_update_assignment_request_body": {
"RewardsUpdateAssignmentRequestBody": {
"title": "Update Reward Assignment Request Body",
"type": "object",
"description": "Request body schema for **PUT** `/loyalties/{campaignId}/rewards/{assignmentId}`.",
Expand Down Expand Up @@ -29029,7 +29029,7 @@
},
"required": ["object", "data_ref", "data", "total"]
},
"validation_rule_assignment": {
"ValidationRuleAssignment": {
"title": "Validation Rule Assignment",
"type": "object",
"description": "This is an object representing a validation rule assignment.",
Expand Down Expand Up @@ -29088,10 +29088,10 @@
"object"
]
},
"ValidationRulesListRulesAssignmentsResponseBody": {
"ValidationRuleAssignmentsList": {
"type": "object",
"description": "Validation Rule Assignments",
"title": "Validation Rule Assignments",
"description": "Validation Rule Assignments List",
"title": "Validation Rule Assignments List",
"properties": {
"object": {
"type": "string",
Expand All @@ -29107,7 +29107,7 @@
"type": "array",
"description": "A dictionary that contains an array of validation rule assignments.",
"items": {
"$ref": "#/components/schemas/validation_rule_assignment"
"$ref": "#/components/schemas/ValidationRuleAssignment"
}
},
"total": {
Expand All @@ -29122,6 +29122,15 @@
"total"
]
},

"ValidationRulesListRulesAssignmentsResponseBody": {
"type": "object",
"allOf": [
{
"$ref": "#/components/schemas/ValidationRuleAssignmentsList"
}
]
},
"13_req_create_validation_rule_assignments": {
"description": "Respone body schema for **POST** `/validation-rules/{validationRuleId}/assignments`.",
"title": "Create Validation Rule Assignments Request Body",
Expand Down Expand Up @@ -48975,7 +48984,7 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/rewards_list_assignments_response_body"
"$ref": "#/components/schemas/RewardsListAssignmentsResponseBody"
},
"examples": {
"Example": {
Expand Down Expand Up @@ -49063,7 +49072,7 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/rewards_create_assignment_request_body"
"$ref": "#/components/schemas/RewardsCreateAssignmentRequestBody"
},
"examples": {
"Example": {
Expand Down Expand Up @@ -49232,7 +49241,7 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/rewards_update_assignment_request_body"
"$ref": "#/components/schemas/RewardsUpdateAssignmentRequestBody"
},
"examples": {
"Example": {
Expand Down Expand Up @@ -67580,7 +67589,7 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/rewards_update_assignment_request_body"
"$ref": "#/components/schemas/RewardsUpdateAssignmentRequestBody"
},
"examples": {
"Example": {
Expand Down Expand Up @@ -76729,7 +76738,7 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/validation_rule_assignment"
"$ref": "#/components/schemas/ValidationRuleAssignment"
},
"examples": {
"Example": {
Expand Down
2 changes: 1 addition & 1 deletion scripts/md-tables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const mdTables: [string, string?][] = [
],
["ValidationRuleResponse", "VALIDATION-RULES-API-Validation-Rule-Object.md"],
[
"validation_rule_assignment",
"ValidationRuleAssignment",
"VALIDATION-RULES-API-Validation-Rule-Assignment-Object.md",
],
["14_obj_segment_object", "SEGMENTS-API-Customer-Segment-Object.md"],
Expand Down

0 comments on commit 2853acf

Please sign in to comment.