diff --git a/src/main/java/org/kohsuke/github/GHMarketplacePriceModel.java b/src/main/java/org/kohsuke/github/GHMarketplacePriceModel.java index f8a0c5104d..a41cfc651c 100644 --- a/src/main/java/org/kohsuke/github/GHMarketplacePriceModel.java +++ b/src/main/java/org/kohsuke/github/GHMarketplacePriceModel.java @@ -12,11 +12,11 @@ public enum GHMarketplacePriceModel { /** The free. */ - FREE("free"), + FREE("FREE"), /** The per unit. */ - PER_UNIT("per-unit"), + PER_UNIT("PER_UNIT"), /** The flat rate. */ - FLAT_RATE("flat-rate"); + FLAT_RATE("FLAT_RATE"); @JsonValue private final String internalName; diff --git a/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccounts/__files/body-marketplace_listing-stubbed-plans-7-accounts-QgHUA.json b/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccounts/__files/body-marketplace_listing-stubbed-plans-7-accounts-QgHUA.json index a4601c5f5a..d4e5ff9ca9 100644 --- a/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccounts/__files/body-marketplace_listing-stubbed-plans-7-accounts-QgHUA.json +++ b/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccounts/__files/body-marketplace_listing-stubbed-plans-7-accounts-QgHUA.json @@ -24,7 +24,7 @@ "monthly_price_in_cents": 1099, "yearly_price_in_cents": 11870, "has_free_trial": false, - "price_model": "flat-rate", + "price_model": "FLAT_RATE", "state": "published", "unit_name": null, "bullets": [ @@ -53,7 +53,7 @@ "monthly_price_in_cents": 1099, "yearly_price_in_cents": 11870, "has_free_trial": false, - "price_model": "per-unit", + "price_model": "PER_UNIT", "state": "published", "unit_name": "seat", "bullets": [ @@ -80,7 +80,7 @@ "monthly_price_in_cents": 1099, "yearly_price_in_cents": 11870, "has_free_trial": false, - "price_model": "per-unit", + "price_model": "PER_UNIT", "state": "published", "unit_name": "seat", "bullets": [ diff --git a/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccounts/__files/body-marketplace_listing-stubbed-plans-C43G2.json b/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccounts/__files/body-marketplace_listing-stubbed-plans-C43G2.json index 61647508a2..453cf942e5 100644 --- a/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccounts/__files/body-marketplace_listing-stubbed-plans-C43G2.json +++ b/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccounts/__files/body-marketplace_listing-stubbed-plans-C43G2.json @@ -8,7 +8,7 @@ "description": "A free CI solution", "monthly_price_in_cents": 0, "yearly_price_in_cents": 0, - "price_model": "free", + "price_model": "FREE", "has_free_trial": false, "state": "published", "unit_name": null, @@ -27,7 +27,7 @@ "monthly_price_in_cents": 1099, "yearly_price_in_cents": 11870, "has_free_trial": false, - "price_model": "per-unit", + "price_model": "PER_UNIT", "state": "published", "unit_name": "seat", "bullets": [ @@ -45,7 +45,7 @@ "monthly_price_in_cents": 1099, "yearly_price_in_cents": 11870, "has_free_trial": false, - "price_model": "flat-rate", + "price_model": "FLAT_RATE", "state": "published", "unit_name": null, "bullets": [ diff --git a/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithDirection/__files/body-marketplace_listing-stubbed-plans-7-accounts-aoRnP.json b/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithDirection/__files/body-marketplace_listing-stubbed-plans-7-accounts-aoRnP.json index 09a8423762..9892541eac 100644 --- a/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithDirection/__files/body-marketplace_listing-stubbed-plans-7-accounts-aoRnP.json +++ b/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithDirection/__files/body-marketplace_listing-stubbed-plans-7-accounts-aoRnP.json @@ -24,7 +24,7 @@ "monthly_price_in_cents": 1099, "yearly_price_in_cents": 11870, "has_free_trial": false, - "price_model": "flat-rate", + "price_model": "FLAT_RATE", "state": "published", "unit_name": null, "bullets": [ @@ -53,7 +53,7 @@ "monthly_price_in_cents": 1099, "yearly_price_in_cents": 11870, "has_free_trial": false, - "price_model": "per-unit", + "price_model": "PER_UNIT", "state": "published", "unit_name": "seat", "bullets": [ @@ -80,7 +80,7 @@ "monthly_price_in_cents": 1099, "yearly_price_in_cents": 11870, "has_free_trial": false, - "price_model": "per-unit", + "price_model": "PER_UNIT", "state": "published", "unit_name": "seat", "bullets": [ diff --git a/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithDirection/__files/body-marketplace_listing-stubbed-plans-8-accounts-NZw9v.json b/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithDirection/__files/body-marketplace_listing-stubbed-plans-8-accounts-NZw9v.json index 09a8423762..9892541eac 100644 --- a/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithDirection/__files/body-marketplace_listing-stubbed-plans-8-accounts-NZw9v.json +++ b/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithDirection/__files/body-marketplace_listing-stubbed-plans-8-accounts-NZw9v.json @@ -24,7 +24,7 @@ "monthly_price_in_cents": 1099, "yearly_price_in_cents": 11870, "has_free_trial": false, - "price_model": "flat-rate", + "price_model": "FLAT_RATE", "state": "published", "unit_name": null, "bullets": [ @@ -53,7 +53,7 @@ "monthly_price_in_cents": 1099, "yearly_price_in_cents": 11870, "has_free_trial": false, - "price_model": "per-unit", + "price_model": "PER_UNIT", "state": "published", "unit_name": "seat", "bullets": [ @@ -80,7 +80,7 @@ "monthly_price_in_cents": 1099, "yearly_price_in_cents": 11870, "has_free_trial": false, - "price_model": "per-unit", + "price_model": "PER_UNIT", "state": "published", "unit_name": "seat", "bullets": [ diff --git a/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithDirection/__files/body-marketplace_listing-stubbed-plans-9-accounts-b1MbT.json b/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithDirection/__files/body-marketplace_listing-stubbed-plans-9-accounts-b1MbT.json index 09a8423762..9892541eac 100644 --- a/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithDirection/__files/body-marketplace_listing-stubbed-plans-9-accounts-b1MbT.json +++ b/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithDirection/__files/body-marketplace_listing-stubbed-plans-9-accounts-b1MbT.json @@ -24,7 +24,7 @@ "monthly_price_in_cents": 1099, "yearly_price_in_cents": 11870, "has_free_trial": false, - "price_model": "flat-rate", + "price_model": "FLAT_RATE", "state": "published", "unit_name": null, "bullets": [ @@ -53,7 +53,7 @@ "monthly_price_in_cents": 1099, "yearly_price_in_cents": 11870, "has_free_trial": false, - "price_model": "per-unit", + "price_model": "PER_UNIT", "state": "published", "unit_name": "seat", "bullets": [ @@ -80,7 +80,7 @@ "monthly_price_in_cents": 1099, "yearly_price_in_cents": 11870, "has_free_trial": false, - "price_model": "per-unit", + "price_model": "PER_UNIT", "state": "published", "unit_name": "seat", "bullets": [ diff --git a/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithDirection/__files/body-marketplace_listing-stubbed-plans-uewkE.json b/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithDirection/__files/body-marketplace_listing-stubbed-plans-uewkE.json index 61647508a2..453cf942e5 100644 --- a/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithDirection/__files/body-marketplace_listing-stubbed-plans-uewkE.json +++ b/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithDirection/__files/body-marketplace_listing-stubbed-plans-uewkE.json @@ -8,7 +8,7 @@ "description": "A free CI solution", "monthly_price_in_cents": 0, "yearly_price_in_cents": 0, - "price_model": "free", + "price_model": "FREE", "has_free_trial": false, "state": "published", "unit_name": null, @@ -27,7 +27,7 @@ "monthly_price_in_cents": 1099, "yearly_price_in_cents": 11870, "has_free_trial": false, - "price_model": "per-unit", + "price_model": "PER_UNIT", "state": "published", "unit_name": "seat", "bullets": [ @@ -45,7 +45,7 @@ "monthly_price_in_cents": 1099, "yearly_price_in_cents": 11870, "has_free_trial": false, - "price_model": "flat-rate", + "price_model": "FLAT_RATE", "state": "published", "unit_name": null, "bullets": [ diff --git a/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithSortAndDirection/__files/body-marketplace_listing-stubbed-plans-7-accounts-cz27N.json b/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithSortAndDirection/__files/body-marketplace_listing-stubbed-plans-7-accounts-cz27N.json index 09a8423762..9892541eac 100644 --- a/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithSortAndDirection/__files/body-marketplace_listing-stubbed-plans-7-accounts-cz27N.json +++ b/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithSortAndDirection/__files/body-marketplace_listing-stubbed-plans-7-accounts-cz27N.json @@ -24,7 +24,7 @@ "monthly_price_in_cents": 1099, "yearly_price_in_cents": 11870, "has_free_trial": false, - "price_model": "flat-rate", + "price_model": "FLAT_RATE", "state": "published", "unit_name": null, "bullets": [ @@ -53,7 +53,7 @@ "monthly_price_in_cents": 1099, "yearly_price_in_cents": 11870, "has_free_trial": false, - "price_model": "per-unit", + "price_model": "PER_UNIT", "state": "published", "unit_name": "seat", "bullets": [ @@ -80,7 +80,7 @@ "monthly_price_in_cents": 1099, "yearly_price_in_cents": 11870, "has_free_trial": false, - "price_model": "per-unit", + "price_model": "PER_UNIT", "state": "published", "unit_name": "seat", "bullets": [ diff --git a/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithSortAndDirection/__files/body-marketplace_listing-stubbed-plans-8-accounts-8T1Pb.json b/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithSortAndDirection/__files/body-marketplace_listing-stubbed-plans-8-accounts-8T1Pb.json index 09a8423762..9892541eac 100644 --- a/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithSortAndDirection/__files/body-marketplace_listing-stubbed-plans-8-accounts-8T1Pb.json +++ b/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithSortAndDirection/__files/body-marketplace_listing-stubbed-plans-8-accounts-8T1Pb.json @@ -24,7 +24,7 @@ "monthly_price_in_cents": 1099, "yearly_price_in_cents": 11870, "has_free_trial": false, - "price_model": "flat-rate", + "price_model": "FLAT_RATE", "state": "published", "unit_name": null, "bullets": [ @@ -53,7 +53,7 @@ "monthly_price_in_cents": 1099, "yearly_price_in_cents": 11870, "has_free_trial": false, - "price_model": "per-unit", + "price_model": "PER_UNIT", "state": "published", "unit_name": "seat", "bullets": [ @@ -80,7 +80,7 @@ "monthly_price_in_cents": 1099, "yearly_price_in_cents": 11870, "has_free_trial": false, - "price_model": "per-unit", + "price_model": "PER_UNIT", "state": "published", "unit_name": "seat", "bullets": [ diff --git a/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithSortAndDirection/__files/body-marketplace_listing-stubbed-plans-9-accounts-VT77w.json b/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithSortAndDirection/__files/body-marketplace_listing-stubbed-plans-9-accounts-VT77w.json index 09a8423762..9892541eac 100644 --- a/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithSortAndDirection/__files/body-marketplace_listing-stubbed-plans-9-accounts-VT77w.json +++ b/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithSortAndDirection/__files/body-marketplace_listing-stubbed-plans-9-accounts-VT77w.json @@ -24,7 +24,7 @@ "monthly_price_in_cents": 1099, "yearly_price_in_cents": 11870, "has_free_trial": false, - "price_model": "flat-rate", + "price_model": "FLAT_RATE", "state": "published", "unit_name": null, "bullets": [ @@ -53,7 +53,7 @@ "monthly_price_in_cents": 1099, "yearly_price_in_cents": 11870, "has_free_trial": false, - "price_model": "per-unit", + "price_model": "PER_UNIT", "state": "published", "unit_name": "seat", "bullets": [ @@ -80,7 +80,7 @@ "monthly_price_in_cents": 1099, "yearly_price_in_cents": 11870, "has_free_trial": false, - "price_model": "per-unit", + "price_model": "PER_UNIT", "state": "published", "unit_name": "seat", "bullets": [ diff --git a/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithSortAndDirection/__files/body-marketplace_listing-stubbed-plans-xk1MF.json b/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithSortAndDirection/__files/body-marketplace_listing-stubbed-plans-xk1MF.json index 61647508a2..453cf942e5 100644 --- a/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithSortAndDirection/__files/body-marketplace_listing-stubbed-plans-xk1MF.json +++ b/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithSortAndDirection/__files/body-marketplace_listing-stubbed-plans-xk1MF.json @@ -8,7 +8,7 @@ "description": "A free CI solution", "monthly_price_in_cents": 0, "yearly_price_in_cents": 0, - "price_model": "free", + "price_model": "FREE", "has_free_trial": false, "state": "published", "unit_name": null, @@ -27,7 +27,7 @@ "monthly_price_in_cents": 1099, "yearly_price_in_cents": 11870, "has_free_trial": false, - "price_model": "per-unit", + "price_model": "PER_UNIT", "state": "published", "unit_name": "seat", "bullets": [ @@ -45,7 +45,7 @@ "monthly_price_in_cents": 1099, "yearly_price_in_cents": 11870, "has_free_trial": false, - "price_model": "flat-rate", + "price_model": "FLAT_RATE", "state": "published", "unit_name": null, "bullets": [ diff --git a/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listMarketplacePlans/__files/body-marketplace_listing-stubbed-plans-ZDjdu.json b/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listMarketplacePlans/__files/body-marketplace_listing-stubbed-plans-ZDjdu.json index 61647508a2..453cf942e5 100644 --- a/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listMarketplacePlans/__files/body-marketplace_listing-stubbed-plans-ZDjdu.json +++ b/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listMarketplacePlans/__files/body-marketplace_listing-stubbed-plans-ZDjdu.json @@ -8,7 +8,7 @@ "description": "A free CI solution", "monthly_price_in_cents": 0, "yearly_price_in_cents": 0, - "price_model": "free", + "price_model": "FREE", "has_free_trial": false, "state": "published", "unit_name": null, @@ -27,7 +27,7 @@ "monthly_price_in_cents": 1099, "yearly_price_in_cents": 11870, "has_free_trial": false, - "price_model": "per-unit", + "price_model": "PER_UNIT", "state": "published", "unit_name": "seat", "bullets": [ @@ -45,7 +45,7 @@ "monthly_price_in_cents": 1099, "yearly_price_in_cents": 11870, "has_free_trial": false, - "price_model": "flat-rate", + "price_model": "FLAT_RATE", "state": "published", "unit_name": null, "bullets": [ diff --git a/src/test/resources/org/kohsuke/github/GitHubTest/wiremock/getMyMarketplacePurchases/__files/body-user-marketplace_purchases-stubbed-eVWvD.json b/src/test/resources/org/kohsuke/github/GitHubTest/wiremock/getMyMarketplacePurchases/__files/body-user-marketplace_purchases-stubbed-eVWvD.json index a74693a373..70cad368ca 100644 --- a/src/test/resources/org/kohsuke/github/GitHubTest/wiremock/getMyMarketplacePurchases/__files/body-user-marketplace_purchases-stubbed-eVWvD.json +++ b/src/test/resources/org/kohsuke/github/GitHubTest/wiremock/getMyMarketplacePurchases/__files/body-user-marketplace_purchases-stubbed-eVWvD.json @@ -24,7 +24,7 @@ "monthly_price_in_cents": 1099, "yearly_price_in_cents": 11870, "has_free_trial": false, - "price_model": "flat-rate", + "price_model": "FLAT_RATE", "state": "published", "unit_name": null, "bullets": [ @@ -56,7 +56,7 @@ "description": "A free CI solution", "monthly_price_in_cents": 0, "yearly_price_in_cents": 0, - "price_model": "free", + "price_model": "FREE", "has_free_trial": false, "state": "published", "unit_name": null,