diff --git a/build.gradle b/build.gradle index 6896826..172fc36 100644 --- a/build.gradle +++ b/build.gradle @@ -48,7 +48,7 @@ java { group = 'com.schematichq' -version = '1.1.1' +version = '1.1.2' jar { dependsOn(":generatePomFileForMavenPublication") @@ -79,7 +79,7 @@ publishing { maven(MavenPublication) { groupId = 'com.schematichq' artifactId = 'schematic-java' - version = '1.1.1' + version = '1.1.2' from components.java pom { name = 'schematic' diff --git a/src/main/java/com/schematic/api/core/ClientOptions.java b/src/main/java/com/schematic/api/core/ClientOptions.java index 653a2c9..b65705a 100644 --- a/src/main/java/com/schematic/api/core/ClientOptions.java +++ b/src/main/java/com/schematic/api/core/ClientOptions.java @@ -33,7 +33,7 @@ private ClientOptions( { put("X-Fern-Language", "JAVA"); put("X-Fern-SDK-Name", "com.schematic.fern:api-sdk"); - put("X-Fern-SDK-Version", "1.1.1"); + put("X-Fern-SDK-Version", "1.1.2"); } }); this.headerSuppliers = headerSuppliers; diff --git a/src/main/java/com/schematic/api/core/RequestOptions.java b/src/main/java/com/schematic/api/core/RequestOptions.java index 2411b1e..2b4fb2e 100644 --- a/src/main/java/com/schematic/api/core/RequestOptions.java +++ b/src/main/java/com/schematic/api/core/RequestOptions.java @@ -7,6 +7,7 @@ import java.util.Map; import java.util.Optional; import java.util.concurrent.TimeUnit; +import java.util.function.Supplier; public final class RequestOptions { private final String apiKey; @@ -15,10 +16,21 @@ public final class RequestOptions { private final TimeUnit timeoutTimeUnit; - private RequestOptions(String apiKey, Optional timeout, TimeUnit timeoutTimeUnit) { + private final Map headers; + + private final Map> headerSuppliers; + + private RequestOptions( + String apiKey, + Optional timeout, + TimeUnit timeoutTimeUnit, + Map headers, + Map> headerSuppliers) { this.apiKey = apiKey; this.timeout = timeout; this.timeoutTimeUnit = timeoutTimeUnit; + this.headers = headers; + this.headerSuppliers = headerSuppliers; } public Optional getTimeout() { @@ -34,6 +46,10 @@ public Map getHeaders() { if (this.apiKey != null) { headers.put("X-Schematic-Api-Key", this.apiKey); } + headers.putAll(this.headers); + this.headerSuppliers.forEach((key, supplier) -> { + headers.put(key, supplier.get()); + }); return headers; } @@ -48,6 +64,10 @@ public static final class Builder { private TimeUnit timeoutTimeUnit = TimeUnit.SECONDS; + private final Map headers = new HashMap<>(); + + private final Map> headerSuppliers = new HashMap<>(); + public Builder apiKey(String apiKey) { this.apiKey = apiKey; return this; @@ -64,8 +84,18 @@ public Builder timeout(Integer timeout, TimeUnit timeoutTimeUnit) { return this; } + public Builder addHeader(String key, String value) { + this.headers.put(key, value); + return this; + } + + public Builder addHeader(String key, Supplier value) { + this.headerSuppliers.put(key, value); + return this; + } + public RequestOptions build() { - return new RequestOptions(apiKey, timeout, timeoutTimeUnit); + return new RequestOptions(apiKey, timeout, timeoutTimeUnit, headers, headerSuppliers); } } } diff --git a/src/main/java/com/schematic/api/resources/billing/BillingClient.java b/src/main/java/com/schematic/api/resources/billing/BillingClient.java index e706a29..1fe43e8 100644 --- a/src/main/java/com/schematic/api/resources/billing/BillingClient.java +++ b/src/main/java/com/schematic/api/resources/billing/BillingClient.java @@ -874,7 +874,7 @@ public ListProductPricesResponse listProductPrices( } if (request.getPriceUsageType().isPresent()) { httpUrl.addQueryParameter( - "price_usage_type", request.getPriceUsageType().get()); + "price_usage_type", request.getPriceUsageType().get().toString()); } if (request.getWithoutLinkedToPlan().isPresent()) { httpUrl.addQueryParameter( @@ -1078,7 +1078,7 @@ public ListBillingProductsResponse listBillingProducts( } if (request.getPriceUsageType().isPresent()) { httpUrl.addQueryParameter( - "price_usage_type", request.getPriceUsageType().get()); + "price_usage_type", request.getPriceUsageType().get().toString()); } if (request.getWithoutLinkedToPlan().isPresent()) { httpUrl.addQueryParameter( @@ -1167,7 +1167,7 @@ public CountBillingProductsResponse countBillingProducts( } if (request.getPriceUsageType().isPresent()) { httpUrl.addQueryParameter( - "price_usage_type", request.getPriceUsageType().get()); + "price_usage_type", request.getPriceUsageType().get().toString()); } if (request.getWithoutLinkedToPlan().isPresent()) { httpUrl.addQueryParameter( diff --git a/src/main/java/com/schematic/api/resources/billing/requests/CountBillingProductsRequest.java b/src/main/java/com/schematic/api/resources/billing/requests/CountBillingProductsRequest.java index 3856688..978a21a 100644 --- a/src/main/java/com/schematic/api/resources/billing/requests/CountBillingProductsRequest.java +++ b/src/main/java/com/schematic/api/resources/billing/requests/CountBillingProductsRequest.java @@ -12,6 +12,7 @@ import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.schematic.api.core.ObjectMappers; +import com.schematic.api.resources.billing.types.CountBillingProductsRequestPriceUsageType; import java.util.HashMap; import java.util.Map; import java.util.Objects; @@ -26,7 +27,7 @@ public final class CountBillingProductsRequest { private final Optional q; - private final Optional priceUsageType; + private final Optional priceUsageType; private final Optional withoutLinkedToPlan; @@ -44,7 +45,7 @@ private CountBillingProductsRequest( Optional ids, Optional name, Optional q, - Optional priceUsageType, + Optional priceUsageType, Optional withoutLinkedToPlan, Optional withZeroPrice, Optional withPricesOnly, @@ -79,7 +80,7 @@ public Optional getQ() { } @JsonProperty("price_usage_type") - public Optional getPriceUsageType() { + public Optional getPriceUsageType() { return priceUsageType; } @@ -177,7 +178,7 @@ public static final class Builder { private Optional q = Optional.empty(); - private Optional priceUsageType = Optional.empty(); + private Optional priceUsageType = Optional.empty(); private Optional withoutLinkedToPlan = Optional.empty(); @@ -241,12 +242,12 @@ public Builder q(String q) { } @JsonSetter(value = "price_usage_type", nulls = Nulls.SKIP) - public Builder priceUsageType(Optional priceUsageType) { + public Builder priceUsageType(Optional priceUsageType) { this.priceUsageType = priceUsageType; return this; } - public Builder priceUsageType(String priceUsageType) { + public Builder priceUsageType(CountBillingProductsRequestPriceUsageType priceUsageType) { this.priceUsageType = Optional.ofNullable(priceUsageType); return this; } diff --git a/src/main/java/com/schematic/api/resources/billing/requests/CreateBillingPriceRequestBody.java b/src/main/java/com/schematic/api/resources/billing/requests/CreateBillingPriceRequestBody.java index c64a0c4..43ed8b2 100644 --- a/src/main/java/com/schematic/api/resources/billing/requests/CreateBillingPriceRequestBody.java +++ b/src/main/java/com/schematic/api/resources/billing/requests/CreateBillingPriceRequestBody.java @@ -12,6 +12,7 @@ import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.schematic.api.core.ObjectMappers; +import com.schematic.api.resources.billing.types.CreateBillingPriceRequestBodyUsageType; import java.util.HashMap; import java.util.Map; import java.util.Objects; @@ -35,7 +36,7 @@ public final class CreateBillingPriceRequestBody { private final String productExternalId; - private final String usageType; + private final CreateBillingPriceRequestBodyUsageType usageType; private final Map additionalProperties; @@ -47,7 +48,7 @@ private CreateBillingPriceRequestBody( int price, String priceExternalId, String productExternalId, - String usageType, + CreateBillingPriceRequestBodyUsageType usageType, Map additionalProperties) { this.currency = currency; this.interval = interval; @@ -96,7 +97,7 @@ public String getProductExternalId() { } @JsonProperty("usage_type") - public String getUsageType() { + public CreateBillingPriceRequestBodyUsageType getUsageType() { return usageType; } @@ -171,7 +172,7 @@ public interface ProductExternalIdStage { } public interface UsageTypeStage { - _FinalStage usageType(@NotNull String usageType); + _FinalStage usageType(@NotNull CreateBillingPriceRequestBodyUsageType usageType); } public interface _FinalStage { @@ -204,7 +205,7 @@ public static final class Builder private String productExternalId; - private String usageType; + private CreateBillingPriceRequestBodyUsageType usageType; private Optional meterId = Optional.empty(); @@ -270,7 +271,7 @@ public UsageTypeStage productExternalId(@NotNull String productExternalId) { @java.lang.Override @JsonSetter("usage_type") - public _FinalStage usageType(@NotNull String usageType) { + public _FinalStage usageType(@NotNull CreateBillingPriceRequestBodyUsageType usageType) { this.usageType = Objects.requireNonNull(usageType, "usageType must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/billing/requests/ListBillingProductsRequest.java b/src/main/java/com/schematic/api/resources/billing/requests/ListBillingProductsRequest.java index 04dc4d1..50324cb 100644 --- a/src/main/java/com/schematic/api/resources/billing/requests/ListBillingProductsRequest.java +++ b/src/main/java/com/schematic/api/resources/billing/requests/ListBillingProductsRequest.java @@ -12,6 +12,7 @@ import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.schematic.api.core.ObjectMappers; +import com.schematic.api.resources.billing.types.ListBillingProductsRequestPriceUsageType; import java.util.HashMap; import java.util.Map; import java.util.Objects; @@ -26,7 +27,7 @@ public final class ListBillingProductsRequest { private final Optional q; - private final Optional priceUsageType; + private final Optional priceUsageType; private final Optional withoutLinkedToPlan; @@ -44,7 +45,7 @@ private ListBillingProductsRequest( Optional ids, Optional name, Optional q, - Optional priceUsageType, + Optional priceUsageType, Optional withoutLinkedToPlan, Optional withZeroPrice, Optional withPricesOnly, @@ -79,7 +80,7 @@ public Optional getQ() { } @JsonProperty("price_usage_type") - public Optional getPriceUsageType() { + public Optional getPriceUsageType() { return priceUsageType; } @@ -177,7 +178,7 @@ public static final class Builder { private Optional q = Optional.empty(); - private Optional priceUsageType = Optional.empty(); + private Optional priceUsageType = Optional.empty(); private Optional withoutLinkedToPlan = Optional.empty(); @@ -241,12 +242,12 @@ public Builder q(String q) { } @JsonSetter(value = "price_usage_type", nulls = Nulls.SKIP) - public Builder priceUsageType(Optional priceUsageType) { + public Builder priceUsageType(Optional priceUsageType) { this.priceUsageType = priceUsageType; return this; } - public Builder priceUsageType(String priceUsageType) { + public Builder priceUsageType(ListBillingProductsRequestPriceUsageType priceUsageType) { this.priceUsageType = Optional.ofNullable(priceUsageType); return this; } diff --git a/src/main/java/com/schematic/api/resources/billing/requests/ListProductPricesRequest.java b/src/main/java/com/schematic/api/resources/billing/requests/ListProductPricesRequest.java index 2620f16..6440405 100644 --- a/src/main/java/com/schematic/api/resources/billing/requests/ListProductPricesRequest.java +++ b/src/main/java/com/schematic/api/resources/billing/requests/ListProductPricesRequest.java @@ -12,6 +12,7 @@ import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.schematic.api.core.ObjectMappers; +import com.schematic.api.resources.billing.types.ListProductPricesRequestPriceUsageType; import java.util.HashMap; import java.util.Map; import java.util.Objects; @@ -26,7 +27,7 @@ public final class ListProductPricesRequest { private final Optional q; - private final Optional priceUsageType; + private final Optional priceUsageType; private final Optional withoutLinkedToPlan; @@ -44,7 +45,7 @@ private ListProductPricesRequest( Optional ids, Optional name, Optional q, - Optional priceUsageType, + Optional priceUsageType, Optional withoutLinkedToPlan, Optional withZeroPrice, Optional withPricesOnly, @@ -79,7 +80,7 @@ public Optional getQ() { } @JsonProperty("price_usage_type") - public Optional getPriceUsageType() { + public Optional getPriceUsageType() { return priceUsageType; } @@ -177,7 +178,7 @@ public static final class Builder { private Optional q = Optional.empty(); - private Optional priceUsageType = Optional.empty(); + private Optional priceUsageType = Optional.empty(); private Optional withoutLinkedToPlan = Optional.empty(); @@ -241,12 +242,12 @@ public Builder q(String q) { } @JsonSetter(value = "price_usage_type", nulls = Nulls.SKIP) - public Builder priceUsageType(Optional priceUsageType) { + public Builder priceUsageType(Optional priceUsageType) { this.priceUsageType = priceUsageType; return this; } - public Builder priceUsageType(String priceUsageType) { + public Builder priceUsageType(ListProductPricesRequestPriceUsageType priceUsageType) { this.priceUsageType = Optional.ofNullable(priceUsageType); return this; } diff --git a/src/main/java/com/schematic/api/resources/billing/types/CountBillingProductsParams.java b/src/main/java/com/schematic/api/resources/billing/types/CountBillingProductsParams.java index a560515..7918a47 100644 --- a/src/main/java/com/schematic/api/resources/billing/types/CountBillingProductsParams.java +++ b/src/main/java/com/schematic/api/resources/billing/types/CountBillingProductsParams.java @@ -29,7 +29,7 @@ public final class CountBillingProductsParams { private final Optional offset; - private final Optional priceUsageType; + private final Optional priceUsageType; private final Optional q; @@ -46,7 +46,7 @@ private CountBillingProductsParams( Optional limit, Optional name, Optional offset, - Optional priceUsageType, + Optional priceUsageType, Optional q, Optional withPricesOnly, Optional withZeroPrice, @@ -91,7 +91,7 @@ public Optional getOffset() { } @JsonProperty("price_usage_type") - public Optional getPriceUsageType() { + public Optional getPriceUsageType() { return priceUsageType; } @@ -180,7 +180,7 @@ public static final class Builder { private Optional offset = Optional.empty(); - private Optional priceUsageType = Optional.empty(); + private Optional priceUsageType = Optional.empty(); private Optional q = Optional.empty(); @@ -253,12 +253,12 @@ public Builder offset(Integer offset) { } @JsonSetter(value = "price_usage_type", nulls = Nulls.SKIP) - public Builder priceUsageType(Optional priceUsageType) { + public Builder priceUsageType(Optional priceUsageType) { this.priceUsageType = priceUsageType; return this; } - public Builder priceUsageType(String priceUsageType) { + public Builder priceUsageType(CountBillingProductsResponseParamsPriceUsageType priceUsageType) { this.priceUsageType = Optional.ofNullable(priceUsageType); return this; } diff --git a/src/main/java/com/schematic/api/resources/billing/types/CountBillingProductsRequestPriceUsageType.java b/src/main/java/com/schematic/api/resources/billing/types/CountBillingProductsRequestPriceUsageType.java new file mode 100644 index 0000000..f52ba99 --- /dev/null +++ b/src/main/java/com/schematic/api/resources/billing/types/CountBillingProductsRequestPriceUsageType.java @@ -0,0 +1,24 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.schematic.api.resources.billing.types; + +import com.fasterxml.jackson.annotation.JsonValue; + +public enum CountBillingProductsRequestPriceUsageType { + LICENSED("licensed"), + + METERED("metered"); + + private final String value; + + CountBillingProductsRequestPriceUsageType(String value) { + this.value = value; + } + + @JsonValue + @java.lang.Override + public String toString() { + return this.value; + } +} diff --git a/src/main/java/com/schematic/api/resources/billing/types/CountBillingProductsResponseParamsPriceUsageType.java b/src/main/java/com/schematic/api/resources/billing/types/CountBillingProductsResponseParamsPriceUsageType.java new file mode 100644 index 0000000..c0440ac --- /dev/null +++ b/src/main/java/com/schematic/api/resources/billing/types/CountBillingProductsResponseParamsPriceUsageType.java @@ -0,0 +1,24 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.schematic.api.resources.billing.types; + +import com.fasterxml.jackson.annotation.JsonValue; + +public enum CountBillingProductsResponseParamsPriceUsageType { + LICENSED("licensed"), + + METERED("metered"); + + private final String value; + + CountBillingProductsResponseParamsPriceUsageType(String value) { + this.value = value; + } + + @JsonValue + @java.lang.Override + public String toString() { + return this.value; + } +} diff --git a/src/main/java/com/schematic/api/resources/billing/types/CreateBillingPriceRequestBodyUsageType.java b/src/main/java/com/schematic/api/resources/billing/types/CreateBillingPriceRequestBodyUsageType.java new file mode 100644 index 0000000..69543bf --- /dev/null +++ b/src/main/java/com/schematic/api/resources/billing/types/CreateBillingPriceRequestBodyUsageType.java @@ -0,0 +1,24 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.schematic.api.resources.billing.types; + +import com.fasterxml.jackson.annotation.JsonValue; + +public enum CreateBillingPriceRequestBodyUsageType { + LICENSED("licensed"), + + METERED("metered"); + + private final String value; + + CreateBillingPriceRequestBodyUsageType(String value) { + this.value = value; + } + + @JsonValue + @java.lang.Override + public String toString() { + return this.value; + } +} diff --git a/src/main/java/com/schematic/api/resources/billing/types/ListBillingProductsParams.java b/src/main/java/com/schematic/api/resources/billing/types/ListBillingProductsParams.java index 056b450..7235d48 100644 --- a/src/main/java/com/schematic/api/resources/billing/types/ListBillingProductsParams.java +++ b/src/main/java/com/schematic/api/resources/billing/types/ListBillingProductsParams.java @@ -29,7 +29,7 @@ public final class ListBillingProductsParams { private final Optional offset; - private final Optional priceUsageType; + private final Optional priceUsageType; private final Optional q; @@ -46,7 +46,7 @@ private ListBillingProductsParams( Optional limit, Optional name, Optional offset, - Optional priceUsageType, + Optional priceUsageType, Optional q, Optional withPricesOnly, Optional withZeroPrice, @@ -91,7 +91,7 @@ public Optional getOffset() { } @JsonProperty("price_usage_type") - public Optional getPriceUsageType() { + public Optional getPriceUsageType() { return priceUsageType; } @@ -180,7 +180,7 @@ public static final class Builder { private Optional offset = Optional.empty(); - private Optional priceUsageType = Optional.empty(); + private Optional priceUsageType = Optional.empty(); private Optional q = Optional.empty(); @@ -253,12 +253,12 @@ public Builder offset(Integer offset) { } @JsonSetter(value = "price_usage_type", nulls = Nulls.SKIP) - public Builder priceUsageType(Optional priceUsageType) { + public Builder priceUsageType(Optional priceUsageType) { this.priceUsageType = priceUsageType; return this; } - public Builder priceUsageType(String priceUsageType) { + public Builder priceUsageType(ListBillingProductsResponseParamsPriceUsageType priceUsageType) { this.priceUsageType = Optional.ofNullable(priceUsageType); return this; } diff --git a/src/main/java/com/schematic/api/resources/billing/types/ListBillingProductsRequestPriceUsageType.java b/src/main/java/com/schematic/api/resources/billing/types/ListBillingProductsRequestPriceUsageType.java new file mode 100644 index 0000000..c98f627 --- /dev/null +++ b/src/main/java/com/schematic/api/resources/billing/types/ListBillingProductsRequestPriceUsageType.java @@ -0,0 +1,24 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.schematic.api.resources.billing.types; + +import com.fasterxml.jackson.annotation.JsonValue; + +public enum ListBillingProductsRequestPriceUsageType { + LICENSED("licensed"), + + METERED("metered"); + + private final String value; + + ListBillingProductsRequestPriceUsageType(String value) { + this.value = value; + } + + @JsonValue + @java.lang.Override + public String toString() { + return this.value; + } +} diff --git a/src/main/java/com/schematic/api/resources/billing/types/ListBillingProductsResponseParamsPriceUsageType.java b/src/main/java/com/schematic/api/resources/billing/types/ListBillingProductsResponseParamsPriceUsageType.java new file mode 100644 index 0000000..d556648 --- /dev/null +++ b/src/main/java/com/schematic/api/resources/billing/types/ListBillingProductsResponseParamsPriceUsageType.java @@ -0,0 +1,24 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.schematic.api.resources.billing.types; + +import com.fasterxml.jackson.annotation.JsonValue; + +public enum ListBillingProductsResponseParamsPriceUsageType { + LICENSED("licensed"), + + METERED("metered"); + + private final String value; + + ListBillingProductsResponseParamsPriceUsageType(String value) { + this.value = value; + } + + @JsonValue + @java.lang.Override + public String toString() { + return this.value; + } +} diff --git a/src/main/java/com/schematic/api/resources/billing/types/ListProductPricesParams.java b/src/main/java/com/schematic/api/resources/billing/types/ListProductPricesParams.java index 4b6415e..46c81ba 100644 --- a/src/main/java/com/schematic/api/resources/billing/types/ListProductPricesParams.java +++ b/src/main/java/com/schematic/api/resources/billing/types/ListProductPricesParams.java @@ -29,7 +29,7 @@ public final class ListProductPricesParams { private final Optional offset; - private final Optional priceUsageType; + private final Optional priceUsageType; private final Optional q; @@ -46,7 +46,7 @@ private ListProductPricesParams( Optional limit, Optional name, Optional offset, - Optional priceUsageType, + Optional priceUsageType, Optional q, Optional withPricesOnly, Optional withZeroPrice, @@ -91,7 +91,7 @@ public Optional getOffset() { } @JsonProperty("price_usage_type") - public Optional getPriceUsageType() { + public Optional getPriceUsageType() { return priceUsageType; } @@ -180,7 +180,7 @@ public static final class Builder { private Optional offset = Optional.empty(); - private Optional priceUsageType = Optional.empty(); + private Optional priceUsageType = Optional.empty(); private Optional q = Optional.empty(); @@ -253,12 +253,12 @@ public Builder offset(Integer offset) { } @JsonSetter(value = "price_usage_type", nulls = Nulls.SKIP) - public Builder priceUsageType(Optional priceUsageType) { + public Builder priceUsageType(Optional priceUsageType) { this.priceUsageType = priceUsageType; return this; } - public Builder priceUsageType(String priceUsageType) { + public Builder priceUsageType(ListProductPricesResponseParamsPriceUsageType priceUsageType) { this.priceUsageType = Optional.ofNullable(priceUsageType); return this; } diff --git a/src/main/java/com/schematic/api/resources/billing/types/ListProductPricesRequestPriceUsageType.java b/src/main/java/com/schematic/api/resources/billing/types/ListProductPricesRequestPriceUsageType.java new file mode 100644 index 0000000..085d59d --- /dev/null +++ b/src/main/java/com/schematic/api/resources/billing/types/ListProductPricesRequestPriceUsageType.java @@ -0,0 +1,24 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.schematic.api.resources.billing.types; + +import com.fasterxml.jackson.annotation.JsonValue; + +public enum ListProductPricesRequestPriceUsageType { + LICENSED("licensed"), + + METERED("metered"); + + private final String value; + + ListProductPricesRequestPriceUsageType(String value) { + this.value = value; + } + + @JsonValue + @java.lang.Override + public String toString() { + return this.value; + } +} diff --git a/src/main/java/com/schematic/api/resources/billing/types/ListProductPricesResponseParamsPriceUsageType.java b/src/main/java/com/schematic/api/resources/billing/types/ListProductPricesResponseParamsPriceUsageType.java new file mode 100644 index 0000000..8f5236b --- /dev/null +++ b/src/main/java/com/schematic/api/resources/billing/types/ListProductPricesResponseParamsPriceUsageType.java @@ -0,0 +1,24 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.schematic.api.resources.billing.types; + +import com.fasterxml.jackson.annotation.JsonValue; + +public enum ListProductPricesResponseParamsPriceUsageType { + LICENSED("licensed"), + + METERED("metered"); + + private final String value; + + ListProductPricesResponseParamsPriceUsageType(String value) { + this.value = value; + } + + @JsonValue + @java.lang.Override + public String toString() { + return this.value; + } +}