Skip to content

Commit 3cb78af

Browse files
authored
Merge pull request hub4j#1629 from solven-eu/solven/FixMarketPlanPlans
Fix unit of marketPlace plans
2 parents dc304e1 + cb089b9 commit 3cb78af

13 files changed

+38
-38
lines changed

src/main/java/org/kohsuke/github/GHMarketplacePriceModel.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
public enum GHMarketplacePriceModel {
1313

1414
/** The free. */
15-
FREE("free"),
15+
FREE("FREE"),
1616
/** The per unit. */
17-
PER_UNIT("per-unit"),
17+
PER_UNIT("PER_UNIT"),
1818
/** The flat rate. */
19-
FLAT_RATE("flat-rate");
19+
FLAT_RATE("FLAT_RATE");
2020

2121
@JsonValue
2222
private final String internalName;

src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccounts/__files/body-marketplace_listing-stubbed-plans-7-accounts-QgHUA.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"monthly_price_in_cents": 1099,
2525
"yearly_price_in_cents": 11870,
2626
"has_free_trial": false,
27-
"price_model": "flat-rate",
27+
"price_model": "FLAT_RATE",
2828
"state": "published",
2929
"unit_name": null,
3030
"bullets": [
@@ -53,7 +53,7 @@
5353
"monthly_price_in_cents": 1099,
5454
"yearly_price_in_cents": 11870,
5555
"has_free_trial": false,
56-
"price_model": "per-unit",
56+
"price_model": "PER_UNIT",
5757
"state": "published",
5858
"unit_name": "seat",
5959
"bullets": [
@@ -80,7 +80,7 @@
8080
"monthly_price_in_cents": 1099,
8181
"yearly_price_in_cents": 11870,
8282
"has_free_trial": false,
83-
"price_model": "per-unit",
83+
"price_model": "PER_UNIT",
8484
"state": "published",
8585
"unit_name": "seat",
8686
"bullets": [

src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccounts/__files/body-marketplace_listing-stubbed-plans-C43G2.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"description": "A free CI solution",
99
"monthly_price_in_cents": 0,
1010
"yearly_price_in_cents": 0,
11-
"price_model": "free",
11+
"price_model": "FREE",
1212
"has_free_trial": false,
1313
"state": "published",
1414
"unit_name": null,
@@ -27,7 +27,7 @@
2727
"monthly_price_in_cents": 1099,
2828
"yearly_price_in_cents": 11870,
2929
"has_free_trial": false,
30-
"price_model": "per-unit",
30+
"price_model": "PER_UNIT",
3131
"state": "published",
3232
"unit_name": "seat",
3333
"bullets": [
@@ -45,7 +45,7 @@
4545
"monthly_price_in_cents": 1099,
4646
"yearly_price_in_cents": 11870,
4747
"has_free_trial": false,
48-
"price_model": "flat-rate",
48+
"price_model": "FLAT_RATE",
4949
"state": "published",
5050
"unit_name": null,
5151
"bullets": [

src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithDirection/__files/body-marketplace_listing-stubbed-plans-7-accounts-aoRnP.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"monthly_price_in_cents": 1099,
2525
"yearly_price_in_cents": 11870,
2626
"has_free_trial": false,
27-
"price_model": "flat-rate",
27+
"price_model": "FLAT_RATE",
2828
"state": "published",
2929
"unit_name": null,
3030
"bullets": [
@@ -53,7 +53,7 @@
5353
"monthly_price_in_cents": 1099,
5454
"yearly_price_in_cents": 11870,
5555
"has_free_trial": false,
56-
"price_model": "per-unit",
56+
"price_model": "PER_UNIT",
5757
"state": "published",
5858
"unit_name": "seat",
5959
"bullets": [
@@ -80,7 +80,7 @@
8080
"monthly_price_in_cents": 1099,
8181
"yearly_price_in_cents": 11870,
8282
"has_free_trial": false,
83-
"price_model": "per-unit",
83+
"price_model": "PER_UNIT",
8484
"state": "published",
8585
"unit_name": "seat",
8686
"bullets": [

src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithDirection/__files/body-marketplace_listing-stubbed-plans-8-accounts-NZw9v.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"monthly_price_in_cents": 1099,
2525
"yearly_price_in_cents": 11870,
2626
"has_free_trial": false,
27-
"price_model": "flat-rate",
27+
"price_model": "FLAT_RATE",
2828
"state": "published",
2929
"unit_name": null,
3030
"bullets": [
@@ -53,7 +53,7 @@
5353
"monthly_price_in_cents": 1099,
5454
"yearly_price_in_cents": 11870,
5555
"has_free_trial": false,
56-
"price_model": "per-unit",
56+
"price_model": "PER_UNIT",
5757
"state": "published",
5858
"unit_name": "seat",
5959
"bullets": [
@@ -80,7 +80,7 @@
8080
"monthly_price_in_cents": 1099,
8181
"yearly_price_in_cents": 11870,
8282
"has_free_trial": false,
83-
"price_model": "per-unit",
83+
"price_model": "PER_UNIT",
8484
"state": "published",
8585
"unit_name": "seat",
8686
"bullets": [

src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithDirection/__files/body-marketplace_listing-stubbed-plans-9-accounts-b1MbT.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"monthly_price_in_cents": 1099,
2525
"yearly_price_in_cents": 11870,
2626
"has_free_trial": false,
27-
"price_model": "flat-rate",
27+
"price_model": "FLAT_RATE",
2828
"state": "published",
2929
"unit_name": null,
3030
"bullets": [
@@ -53,7 +53,7 @@
5353
"monthly_price_in_cents": 1099,
5454
"yearly_price_in_cents": 11870,
5555
"has_free_trial": false,
56-
"price_model": "per-unit",
56+
"price_model": "PER_UNIT",
5757
"state": "published",
5858
"unit_name": "seat",
5959
"bullets": [
@@ -80,7 +80,7 @@
8080
"monthly_price_in_cents": 1099,
8181
"yearly_price_in_cents": 11870,
8282
"has_free_trial": false,
83-
"price_model": "per-unit",
83+
"price_model": "PER_UNIT",
8484
"state": "published",
8585
"unit_name": "seat",
8686
"bullets": [

src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithDirection/__files/body-marketplace_listing-stubbed-plans-uewkE.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"description": "A free CI solution",
99
"monthly_price_in_cents": 0,
1010
"yearly_price_in_cents": 0,
11-
"price_model": "free",
11+
"price_model": "FREE",
1212
"has_free_trial": false,
1313
"state": "published",
1414
"unit_name": null,
@@ -27,7 +27,7 @@
2727
"monthly_price_in_cents": 1099,
2828
"yearly_price_in_cents": 11870,
2929
"has_free_trial": false,
30-
"price_model": "per-unit",
30+
"price_model": "PER_UNIT",
3131
"state": "published",
3232
"unit_name": "seat",
3333
"bullets": [
@@ -45,7 +45,7 @@
4545
"monthly_price_in_cents": 1099,
4646
"yearly_price_in_cents": 11870,
4747
"has_free_trial": false,
48-
"price_model": "flat-rate",
48+
"price_model": "FLAT_RATE",
4949
"state": "published",
5050
"unit_name": null,
5151
"bullets": [

src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithSortAndDirection/__files/body-marketplace_listing-stubbed-plans-7-accounts-cz27N.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"monthly_price_in_cents": 1099,
2525
"yearly_price_in_cents": 11870,
2626
"has_free_trial": false,
27-
"price_model": "flat-rate",
27+
"price_model": "FLAT_RATE",
2828
"state": "published",
2929
"unit_name": null,
3030
"bullets": [
@@ -53,7 +53,7 @@
5353
"monthly_price_in_cents": 1099,
5454
"yearly_price_in_cents": 11870,
5555
"has_free_trial": false,
56-
"price_model": "per-unit",
56+
"price_model": "PER_UNIT",
5757
"state": "published",
5858
"unit_name": "seat",
5959
"bullets": [
@@ -80,7 +80,7 @@
8080
"monthly_price_in_cents": 1099,
8181
"yearly_price_in_cents": 11870,
8282
"has_free_trial": false,
83-
"price_model": "per-unit",
83+
"price_model": "PER_UNIT",
8484
"state": "published",
8585
"unit_name": "seat",
8686
"bullets": [

src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithSortAndDirection/__files/body-marketplace_listing-stubbed-plans-8-accounts-8T1Pb.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"monthly_price_in_cents": 1099,
2525
"yearly_price_in_cents": 11870,
2626
"has_free_trial": false,
27-
"price_model": "flat-rate",
27+
"price_model": "FLAT_RATE",
2828
"state": "published",
2929
"unit_name": null,
3030
"bullets": [
@@ -53,7 +53,7 @@
5353
"monthly_price_in_cents": 1099,
5454
"yearly_price_in_cents": 11870,
5555
"has_free_trial": false,
56-
"price_model": "per-unit",
56+
"price_model": "PER_UNIT",
5757
"state": "published",
5858
"unit_name": "seat",
5959
"bullets": [
@@ -80,7 +80,7 @@
8080
"monthly_price_in_cents": 1099,
8181
"yearly_price_in_cents": 11870,
8282
"has_free_trial": false,
83-
"price_model": "per-unit",
83+
"price_model": "PER_UNIT",
8484
"state": "published",
8585
"unit_name": "seat",
8686
"bullets": [

src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithSortAndDirection/__files/body-marketplace_listing-stubbed-plans-9-accounts-VT77w.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"monthly_price_in_cents": 1099,
2525
"yearly_price_in_cents": 11870,
2626
"has_free_trial": false,
27-
"price_model": "flat-rate",
27+
"price_model": "FLAT_RATE",
2828
"state": "published",
2929
"unit_name": null,
3030
"bullets": [
@@ -53,7 +53,7 @@
5353
"monthly_price_in_cents": 1099,
5454
"yearly_price_in_cents": 11870,
5555
"has_free_trial": false,
56-
"price_model": "per-unit",
56+
"price_model": "PER_UNIT",
5757
"state": "published",
5858
"unit_name": "seat",
5959
"bullets": [
@@ -80,7 +80,7 @@
8080
"monthly_price_in_cents": 1099,
8181
"yearly_price_in_cents": 11870,
8282
"has_free_trial": false,
83-
"price_model": "per-unit",
83+
"price_model": "PER_UNIT",
8484
"state": "published",
8585
"unit_name": "seat",
8686
"bullets": [

0 commit comments

Comments
 (0)