From ba5643ceae60b4c1baafd9ba79151065305a2dba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patryk=20Grudzie=C5=84?= Date: Thu, 29 Feb 2024 11:55:50 +0100 Subject: [PATCH] [DE-677] - Manual filename renaming due to not being handled by SDK auto-generation --- .../SubscriptionComponentsController.java | 18 ++++++------- ...> BulkComponentsPricePointAssignment.java} | 26 +++++++++---------- 2 files changed, 22 insertions(+), 22 deletions(-) rename src/main/java/com/maxio/advancedbilling/models/{BulkComponentSPricePointAssignment.java => BulkComponentsPricePointAssignment.java} (75%) diff --git a/src/main/java/com/maxio/advancedbilling/controllers/SubscriptionComponentsController.java b/src/main/java/com/maxio/advancedbilling/controllers/SubscriptionComponentsController.java index e4af9f5d..498ff853 100644 --- a/src/main/java/com/maxio/advancedbilling/controllers/SubscriptionComponentsController.java +++ b/src/main/java/com/maxio/advancedbilling/controllers/SubscriptionComponentsController.java @@ -19,7 +19,7 @@ import com.maxio.advancedbilling.models.AllocateComponents; import com.maxio.advancedbilling.models.AllocationPreviewResponse; import com.maxio.advancedbilling.models.AllocationResponse; -import com.maxio.advancedbilling.models.BulkComponentSPricePointAssignment; +import com.maxio.advancedbilling.models.BulkComponentsPricePointAssignment; import com.maxio.advancedbilling.models.CreateAllocationRequest; import com.maxio.advancedbilling.models.CreateUsageRequest; import com.maxio.advancedbilling.models.CreditSchemeRequest; @@ -173,13 +173,13 @@ private ApiCall, ApiException> prepareListSu * string, which will reset the price point to the component's current default price point. * @param subscriptionId Required parameter: The Chargify id of the subscription * @param body Optional parameter: Example: - * @return Returns the BulkComponentSPricePointAssignment response from the API call + * @return Returns the BulkComponentsPricePointAssignment response from the API call * @throws ApiException Represents error response from the server. * @throws IOException Signals that an I/O exception of some sort has occurred. */ - public BulkComponentSPricePointAssignment bulkUpdateSubscriptionComponentsPricePoints( + public BulkComponentsPricePointAssignment bulkUpdateSubscriptionComponentsPricePoints( final int subscriptionId, - final BulkComponentSPricePointAssignment body) throws ApiException, IOException { + final BulkComponentsPricePointAssignment body) throws ApiException, IOException { return prepareBulkUpdateSubscriptionComponentsPricePointsRequest(subscriptionId, body).execute(); } @@ -187,10 +187,10 @@ public BulkComponentSPricePointAssignment bulkUpdateSubscriptionComponentsPriceP /** * Builds the ApiCall object for bulkUpdateSubscriptionComponentsPricePoints. */ - private ApiCall prepareBulkUpdateSubscriptionComponentsPricePointsRequest( + private ApiCall prepareBulkUpdateSubscriptionComponentsPricePointsRequest( final int subscriptionId, - final BulkComponentSPricePointAssignment body) throws JsonProcessingException, IOException { - return new ApiCall.Builder() + final BulkComponentsPricePointAssignment body) throws JsonProcessingException, IOException { + return new ApiCall.Builder() .globalConfig(getGlobalConfiguration()) .requestBuilder(requestBuilder -> requestBuilder .server(Server.ENUM_DEFAULT.value()) @@ -207,7 +207,7 @@ private ApiCall prepareBulkUpd .httpMethod(HttpMethod.POST)) .responseHandler(responseHandler -> responseHandler .deserializer( - response -> ApiHelper.deserialize(response, BulkComponentSPricePointAssignment.class)) + response -> ApiHelper.deserialize(response, BulkComponentsPricePointAssignment.class)) .nullify404(false) .localErrorCase("422", ErrorCase.setTemplate("HTTP Response Not OK. Status code: {$statusCode}. Response: '{$response.body}'.", @@ -1091,4 +1091,4 @@ private ApiCall prepareListSub .arraySerializationFormat(ArraySerializationFormat.CSV)) .build(); } -} \ No newline at end of file +} diff --git a/src/main/java/com/maxio/advancedbilling/models/BulkComponentSPricePointAssignment.java b/src/main/java/com/maxio/advancedbilling/models/BulkComponentsPricePointAssignment.java similarity index 75% rename from src/main/java/com/maxio/advancedbilling/models/BulkComponentSPricePointAssignment.java rename to src/main/java/com/maxio/advancedbilling/models/BulkComponentsPricePointAssignment.java index 96847a10..b3e4e3af 100644 --- a/src/main/java/com/maxio/advancedbilling/models/BulkComponentSPricePointAssignment.java +++ b/src/main/java/com/maxio/advancedbilling/models/BulkComponentsPricePointAssignment.java @@ -13,23 +13,23 @@ import java.util.List; /** - * This is a model class for BulkComponentSPricePointAssignment type. + * This is a model class for BulkComponentsPricePointAssignment type. */ -public class BulkComponentSPricePointAssignment +public class BulkComponentsPricePointAssignment extends BaseModel { private List components; /** * Default constructor. */ - public BulkComponentSPricePointAssignment() { + public BulkComponentsPricePointAssignment() { } /** * Initialization constructor. * @param components List of ComponentSPricePointAssignment value for components. */ - public BulkComponentSPricePointAssignment( + public BulkComponentsPricePointAssignment( List components) { this.components = components; } @@ -54,19 +54,19 @@ public void setComponents(List components) { } /** - * Converts this BulkComponentSPricePointAssignment into string format. + * Converts this BulkComponentsPricePointAssignment into string format. * @return String representation of this class */ @Override public String toString() { - return "BulkComponentSPricePointAssignment [" + "components=" + components + return "BulkComponentsPricePointAssignment [" + "components=" + components + ", additionalProperties=" + getAdditionalProperties() + "]"; } /** - * Builds a new {@link BulkComponentSPricePointAssignment.Builder} object. + * Builds a new {@link BulkComponentsPricePointAssignment.Builder} object. * Creates the instance with the state of the current model. - * @return a new {@link BulkComponentSPricePointAssignment.Builder} object + * @return a new {@link BulkComponentsPricePointAssignment.Builder} object */ public Builder toBuilder() { Builder builder = new Builder() @@ -75,7 +75,7 @@ public Builder toBuilder() { } /** - * Class to build instances of {@link BulkComponentSPricePointAssignment}. + * Class to build instances of {@link BulkComponentsPricePointAssignment}. */ public static class Builder { private List components; @@ -93,11 +93,11 @@ public Builder components(List components) { } /** - * Builds a new {@link BulkComponentSPricePointAssignment} object using the set fields. - * @return {@link BulkComponentSPricePointAssignment} + * Builds a new {@link BulkComponentsPricePointAssignment} object using the set fields. + * @return {@link BulkComponentsPricePointAssignment} */ - public BulkComponentSPricePointAssignment build() { - return new BulkComponentSPricePointAssignment(components); + public BulkComponentsPricePointAssignment build() { + return new BulkComponentsPricePointAssignment(components); } } }