Skip to content

Commit

Permalink
Finished CampaignResponse object.
Browse files Browse the repository at this point in the history
  • Loading branch information
jkaliszuk committed Nov 20, 2023
1 parent b1c1ec4 commit a1424f3
Showing 1 changed file with 69 additions and 15 deletions.
84 changes: 69 additions & 15 deletions reference/OpenAPI.json
Original file line number Diff line number Diff line change
Expand Up @@ -7516,7 +7516,7 @@
"description": "Indicates whether the resource can be deleted."
},
"category_id": {
"type": "string",
"type": [ "string", "null" ],
"description": "Unique category ID that this campaign belongs to.",
"example": "cat_0b688929a2476386a7"
},
Expand Down Expand Up @@ -7594,15 +7594,32 @@
}
},
"promotion": {
"$ref": "#/components/schemas/3_res_list_promotion_tiers_from_campaign"
"$ref": "#/components/schemas/PromotionTiersList"
},
"validation_rules_assignments": {
"$ref": "#/components/schemas/ValidationRulesAssignmentsList"
},
"loyalty_tiers_expiration": {
"$ref": "#/components/schemas/LoyaltyTiersExpirationAll"
}
}
},
"required": [
"id",
"name",
"campaign_type",
"type",
"auto_join",
"join_once",
"use_voucher_metadata_schema",
"created_at",
"creation_status",
"vouchers_generation_status",
"protected",
"category_id",
"categories",
"object",
"metadata"
]
},
"CampaignVoucher": {
"type": "object",
Expand Down Expand Up @@ -7631,9 +7648,12 @@
"description": "Defines the redemption limits on vouchers.",
"properties": {
"quantity": {
"type": "integer",
"type": [ "integer", "null" ],
"description": "How many times a voucher can be redeemed. A `null` value means unlimited."
}
},
"required": [
"quantity"
]
}
},
"code_config": {
Expand Down Expand Up @@ -7664,7 +7684,12 @@
"type": "integer",
"description": "The initial count"
}
}
},
"required": [
"length",
"charset",
"pattern"
]
},
"is_referral_code": {
"type": "boolean",
Expand Down Expand Up @@ -7696,7 +7721,13 @@
}
}
}
}
},
"required": [
"type",
"redemption",
"code_config",
"is_referral_code"
]
},
"CampaignLoyaltyCard": {
"type": "object",
Expand Down Expand Up @@ -7726,9 +7757,19 @@
"type": "integer",
"description": "Value of rounding"
}
}
},
"required": [
"period_type",
"period_value",
"rounding_type",
"rounding_value"
]
}
}
},
"required": [
"points",
"expiration_rules"
]
},
"2_loyalty_tiers_expiration_balance": {
"title": "Balance",
Expand Down Expand Up @@ -9529,7 +9570,8 @@
"description": "This is an object representing a promotion tier. Promotion tiers are always assigned to a campaign and cannot be used standalone.",
"title": "Promotion Tier",
"x-tags": [
"PROMOTIONS API"
"PROMOTIONS API",
"CAMPAIGNS API"
],
"properties": {
"id": {
Expand Down Expand Up @@ -9950,7 +9992,7 @@
}
}
},
"3_res_list_promotion_tiers_from_campaign": {
"PromotionTiersList": {
"type": "object",
"description": "Promotion Tiers",
"title": "Promotion Tiers",
Expand Down Expand Up @@ -24066,7 +24108,10 @@
],
"description": "What triggers the tier to be valid for a customer. \n`IMMEDIATE`: After reaching the minimum required points. \n`NEXT_PERIOD`: When the next qualification period starts."
}
}
},
"required": [
"type"
]
},
"expiration_date": {
"type": "object",
Expand Down Expand Up @@ -24121,9 +24166,18 @@
}
}
}
}
},
"required": [
"type",
"extend"
]
}
}
},
"required": [
"qualification_type",
"start_date",
"expiration_date"
]
},
"8_loyalty_tiers_expiration_balance_expiration_date_balance_drop": {
"title": "Balance Drop",
Expand Down Expand Up @@ -47075,7 +47129,7 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/3_res_list_promotion_tiers_from_campaign"
"$ref": "#/components/schemas/PromotionTiersList"
},
"examples": {
"Example": {
Expand Down

0 comments on commit a1424f3

Please sign in to comment.