Skip to content

Commit

Permalink
Update OpenAPI.json
Browse files Browse the repository at this point in the history
  • Loading branch information
p-zielinski committed Dec 1, 2023
1 parent d65f1fe commit 6232827
Showing 1 changed file with 85 additions and 74 deletions.
159 changes: 85 additions & 74 deletions reference/OpenAPI.json
Original file line number Diff line number Diff line change
Expand Up @@ -362,11 +362,29 @@
"-category"
]
},
"ParameterOrderListPromotionTiers": {
"type": "string",
"enum": [
"created_at",
"-created_at",
"updated_at",
"-updated_at"
]
},
"ParameterOrderListPromotionTiersClientSide": {
"type": "string",
"enum": [
"created_at",
"-created_at",
"updated_at",
"-updated_at"
]
},
"ParameterExpandListCampaigns": {
"type": "string",
"enum": ["category"]
},
"ParameterOrderCampaigns": {
"ParameterOrderListCampaigns": {
"type": "string",
"enum": [
"created_at",
Expand All @@ -386,7 +404,7 @@
"-code"
]
},
"ParameterOrderVouchersQualification": {
"ParameterOrderExamineVouchersQualification": {
"type": "string",
"enum": [
"created_at",
Expand All @@ -402,16 +420,44 @@
"maximum": 100,
"minimum": 1
},
"ParameterLimitVouchersQualification": {
"ParameterLimitExamineVouchersQualification": {
"type": "integer",
"maximum": 50,
"minimum": 1
},
"ParameterLimitCampaignsQualification": {
"ParameterLimitExamineCampaignsQualification": {
"type": "integer",
"maximum": 50,
"minimum": 1
},
"ParameterOrderExamineCampaignsQualification": {
"type": "string",
"enum": [
"created_at",
"-created_at",
"updated_at",
"-updated_at",
"type",
"-type",
"code",
"-code",
"category",
"-category",
"campaign",
"-campaign"
]
},
"ParameterOrderListAllPromotionStacks": {
"type": "string",
"enum": [
"created_at",
"-created_at",
"updated_at",
"-updated_at",
"name",
"-name"
]
},
"ParameterPage": {
"type": "integer",
"maximum": 100
Expand All @@ -437,6 +483,14 @@
"type": "string",
"example": "cust_nk0N1uNQ1YnupAoJGOgvsODC"
},
"ParameterPromotionTierId": {
"type": "string",
"example": "promo_2EnAik6Jt7dKTOMkRTIgEjZH"
},
"ParameterPromotionStackId": {
"type": "string",
"example": "stack_KOIde7AUf08at12lZ1r3OfFL"
},
"ParameterCreatedBeforeAfter": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -42354,15 +42408,15 @@
},
{
"schema": {
"$ref": "#/components/schemas/ParameterLimitVouchersQualification"
"$ref": "#/components/schemas/ParameterLimitExamineVouchersQualification"
},
"in": "query",
"name": "limit",
"description": "The number of vouchers to be qualified."
},
{
"schema": {
"$ref": "#/components/schemas/ParameterOrderVouchersQualification"
"$ref": "#/components/schemas/ParameterOrderExamineVouchersQualification"
},
"in": "query",
"name": "order",
Expand Down Expand Up @@ -43910,7 +43964,7 @@
},
{
"schema": {
"$ref": "#/components/schemas/ParameterOrderCampaigns"
"$ref": "#/components/schemas/ParameterOrderListCampaigns"
},
"in": "query",
"name": "order",
Expand Down Expand Up @@ -44761,8 +44815,7 @@
"parameters": [
{
"schema": {
"type": "string",
"example": "camp_BcHeMm4QaKjqCWMQFecMp1U0"
"$ref": "#/components/schemas/ParameterCampaignId"
},
"name": "campaignId",
"in": "path",
Expand Down Expand Up @@ -44997,8 +45050,7 @@
"parameters": [
{
"schema": {
"type": "string",
"example": "camp_BcHeMm4QaKjqCWMQFecMp1U0"
"$ref": "#/components/schemas/ParameterCampaignId"
},
"name": "campaignId",
"in": "path",
Expand Down Expand Up @@ -45092,29 +45144,15 @@
},
{
"schema": {
"$ref": "#/components/schemas/ParameterLimitCampaignsQualification"
"$ref": "#/components/schemas/ParameterLimitExamineCampaignsQualification"
},
"in": "query",
"name": "limit",
"description": "The number of campaigns to be qualified. The maximum number is 50."
},
{
"schema": {
"type": "string",
"enum": [
"created_at",
"-created_at",
"updated_at",
"-updated_at",
"type",
"-type",
"code",
"-code",
"category",
"-category",
"campaign",
"-campaign"
]
"$ref": "#/components/schemas/ParameterOrderExamineCampaignsQualification"
},
"in": "query",
"name": "order",
Expand Down Expand Up @@ -45185,8 +45223,7 @@
"parameters": [
{
"schema": {
"type": "string",
"example": "camp_BcHeMm4QaKjqCWMQFecMp1U0"
"$ref": "#/components/schemas/ParameterCampaignId"
},
"name": "campaignId",
"in": "path",
Expand Down Expand Up @@ -45254,8 +45291,7 @@
"parameters": [
{
"schema": {
"type": "string",
"example": "camp_BcHeMm4QaKjqCWMQFecMp1U0"
"$ref": "#/components/schemas/ParameterCampaignId"
},
"name": "campaignId",
"in": "path",
Expand Down Expand Up @@ -45330,37 +45366,31 @@
"parameters": [
{
"schema": {
"type": "boolean"
"$ref": "#/components/schemas/ParameterBoolean"
},
"in": "query",
"name": "is_available",
"description": "This parameter allows filtering promotions that are only available at the moment. When set to `true`, it selects only non-expired and active promotions."
},
{
"schema": {
"type": "integer"
"$ref": "#/components/schemas/ParameterInteger"
},
"in": "query",
"name": "limit",
"description": "A limit on the number of objects to be returned. Limit can range between 1 and 100 items."
},
{
"schema": {
"type": "string"
"$ref": "#/components/schemas/ParameterInteger"
},
"in": "query",
"description": "Which page of results to return.",
"name": "page"
},
{
"schema": {
"type": "string",
"enum": [
"created_at",
"-created_at",
"updated_at",
"-updated_at"
]
"$ref": "#/components/schemas/ParameterOrderListPromotionTiers"
},
"in": "query",
"name": "order",
Expand Down Expand Up @@ -45573,37 +45603,31 @@
"parameters": [
{
"schema": {
"type": "boolean"
"$ref": "#/components/schemas/ParameterBoolean"
},
"in": "query",
"name": "is_available",
"description": "This parameter allows filtering promotions that are only available at the moment. When set to `true`, it selects only non-expired and active promotions."
},
{
"schema": {
"type": "integer"
"$ref": "#/components/schemas/ParameterInteger"
},
"in": "query",
"name": "limit",
"description": "A limit on the number of objects to be returned. Limit can range between 1 and 100 items."
},
{
"schema": {
"type": "string"
"$ref": "#/components/schemas/ParameterInteger"
},
"in": "query",
"description": "Which page of results to return.",
"name": "page"
},
{
"schema": {
"type": "string",
"enum": [
"created_at",
"-created_at",
"updated_at",
"-updated_at"
]
"$ref": "#/components/schemas/ParameterOrderListPromotionTiersClientSide"
},
"in": "query",
"name": "order",
Expand Down Expand Up @@ -45812,7 +45836,7 @@
"parameters": [
{
"schema": {
"type": "string"
"$ref": "#/components/schemas/ParameterCampaignId"
},
"name": "campaignId",
"in": "path",
Expand Down Expand Up @@ -46081,8 +46105,7 @@
"parameters": [
{
"schema": {
"type": "string",
"example": "promo_2EnAik6Jt7dKTOMkRTIgEjZH"
"$ref": "#/components/schemas/ParameterPromotionTierId"
},
"name": "promotionTierId",
"in": "path",
Expand Down Expand Up @@ -46306,8 +46329,7 @@
"parameters": [
{
"schema": {
"type": "string",
"example": "promo_NzjTc3ZXTe7md5SziK3uYtei"
"$ref": "#/components/schemas/ParameterPromotionTierId"
},
"name": "promotionTierId",
"in": "path",
Expand Down Expand Up @@ -46426,8 +46448,7 @@
"parameters": [
{
"schema": {
"type": "string",
"example": "promo_NzjTc3ZXTe7md5SziK3uYtei"
"$ref": "#/components/schemas/ParameterPromotionTierId"
},
"name": "promotionTierId",
"in": "path",
Expand Down Expand Up @@ -46553,31 +46574,23 @@
"parameters": [
{
"schema": {
"type": "integer"
"$ref": "#/components/schemas/ParameterLimit"
},
"in": "query",
"name": "limit",
"description": "A limit on the number of objects to be returned. Limit can range between 1 and 100 items."
},
{
"schema": {
"type": "string"
"$ref": "#/components/schemas/ParameterPage"
},
"in": "query",
"description": "Which page of results to return.",
"name": "page"
},
{
"schema": {
"type": "string",
"enum": [
"created_at",
"-created_at",
"updated_at",
"-updated_at",
"name",
"-name"
]
"$ref": "#/components/schemas/ParameterOrderListAllPromotionStacks"
},
"in": "query",
"name": "order",
Expand Down Expand Up @@ -46760,7 +46773,7 @@
"parameters": [
{
"schema": {
"type": "string"
"$ref": "#/components/schemas/ParameterCampaignId"
},
"name": "campaignId",
"in": "path",
Expand Down Expand Up @@ -46944,8 +46957,7 @@
"parameters": [
{
"schema": {
"type": "string",
"example": "camp_BcHeMm4QaKjqCWMQFecMp1U0"
"$ref": "#/components/schemas/ParameterCampaignId"
},
"name": "campaignId",
"in": "path",
Expand All @@ -46954,8 +46966,7 @@
},
{
"schema": {
"type": "string",
"example": "stack_KOIde7AUf08at12lZ1r3OfFL"
"$ref": "#/components/schemas/ParameterPromotionStackId"
},
"name": "stackId",
"in": "path",
Expand Down

0 comments on commit 6232827

Please sign in to comment.