Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DE-677] - Manual filename renaming due to not being handled by SDK auto-generation #117

Merged
merged 1 commit into from
Feb 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -173,24 +173,24 @@ private ApiCall<List<SubscriptionComponentResponse>, 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();
}

/**
* Builds the ApiCall object for bulkUpdateSubscriptionComponentsPricePoints.
*/
private ApiCall<BulkComponentSPricePointAssignment, ApiException> prepareBulkUpdateSubscriptionComponentsPricePointsRequest(
private ApiCall<BulkComponentsPricePointAssignment, ApiException> prepareBulkUpdateSubscriptionComponentsPricePointsRequest(
final int subscriptionId,
final BulkComponentSPricePointAssignment body) throws JsonProcessingException, IOException {
return new ApiCall.Builder<BulkComponentSPricePointAssignment, ApiException>()
final BulkComponentsPricePointAssignment body) throws JsonProcessingException, IOException {
return new ApiCall.Builder<BulkComponentsPricePointAssignment, ApiException>()
.globalConfig(getGlobalConfiguration())
.requestBuilder(requestBuilder -> requestBuilder
.server(Server.ENUM_DEFAULT.value())
Expand All @@ -207,7 +207,7 @@ private ApiCall<BulkComponentSPricePointAssignment, ApiException> 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}'.",
Expand Down Expand Up @@ -1091,4 +1091,4 @@ private ApiCall<ListSubscriptionComponentsResponse, ApiException> prepareListSub
.arraySerializationFormat(ArraySerializationFormat.CSV))
.build();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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<ComponentSPricePointAssignment> components;

/**
* Default constructor.
*/
public BulkComponentSPricePointAssignment() {
public BulkComponentsPricePointAssignment() {
}

/**
* Initialization constructor.
* @param components List of ComponentSPricePointAssignment value for components.
*/
public BulkComponentSPricePointAssignment(
public BulkComponentsPricePointAssignment(
List<ComponentSPricePointAssignment> components) {
this.components = components;
}
Expand All @@ -54,19 +54,19 @@ public void setComponents(List<ComponentSPricePointAssignment> 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()
Expand All @@ -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<ComponentSPricePointAssignment> components;
Expand All @@ -93,11 +93,11 @@ public Builder components(List<ComponentSPricePointAssignment> 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);
}
}
}
Loading