diff --git a/LICENSE b/LICENSE index b9181f72..b85cedd2 100644 --- a/LICENSE +++ b/LICENSE @@ -3,7 +3,7 @@ License: The MIT License (MIT) http://opensource.org/licenses/MIT -Copyright (c) 2014 - 2024 APIMATIC Limited +Copyright (c) 2014 - 2025 APIMATIC Limited Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index beaa4287..80eb7d75 100644 --- a/README.md +++ b/README.md @@ -33,16 +33,16 @@ Install the SDK by adding the following dependency in your project's pom.xml fil com.maxio advanced-billing-sdk - 6.0.0 + 6.1.0 ``` You can also view the package at: -https://central.sonatype.com/artifact/com.maxio/advanced-billing-sdk/6.0.0 +https://central.sonatype.com/artifact/com.maxio/advanced-billing-sdk/6.1.0 ## Initialize the API Client -**_Note:_** Documentation for the client can be found [here.](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/client.md) +**_Note:_** Documentation for the client can be found [here.](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/client.md) The following parameters are configurable for the API Client: @@ -50,8 +50,8 @@ The following parameters are configurable for the API Client: | --- | --- | --- | | `site` | `String` | The subdomain for your Advanced Billing site.
*Default*: `"subdomain"` | | `environment` | `Environment` | The API environment.
**Default: `Environment.US`** | -| `httpClientConfig` | [`Consumer`](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/http-client-configuration-builder.md) | Set up Http Client Configuration instance. | -| `basicAuthCredentials` | [`BasicAuthCredentials`](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/auth/basic-authentication.md) | The Credentials Setter for Basic Authentication | +| `httpClientConfig` | [`Consumer`](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/http-client-configuration-builder.md) | Set up Http Client Configuration instance. | +| `basicAuthCredentials` | [`BasicAuthCredentials`](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/auth/basic-authentication.md) | The Credentials Setter for Basic Authentication | The API client can be initialized as follows: @@ -84,55 +84,55 @@ The SDK can be configured to use a different environment for making API calls. A This API uses the following authentication schemes. -* [`BasicAuth (Basic Authentication)`](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/auth/basic-authentication.md) +* [`BasicAuth (Basic Authentication)`](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/auth/basic-authentication.md) ## List of APIs -* [API Exports](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/controllers/api-exports.md) -* [Advance Invoice](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/controllers/advance-invoice.md) -* [Billing Portal](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/controllers/billing-portal.md) -* [Component Price Points](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/controllers/component-price-points.md) -* [Custom Fields](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/controllers/custom-fields.md) -* [Events-Based Billing Segments](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/controllers/events-based-billing-segments.md) -* [Payment Profiles](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/controllers/payment-profiles.md) -* [Product Families](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/controllers/product-families.md) -* [Product Price Points](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/controllers/product-price-points.md) -* [Proforma Invoices](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/controllers/proforma-invoices.md) -* [Reason Codes](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/controllers/reason-codes.md) -* [Referral Codes](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/controllers/referral-codes.md) -* [Sales Commissions](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/controllers/sales-commissions.md) -* [Subscription Components](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/controllers/subscription-components.md) -* [Subscription Groups](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/controllers/subscription-groups.md) -* [Subscription Group Invoice Account](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/controllers/subscription-group-invoice-account.md) -* [Subscription Group Status](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/controllers/subscription-group-status.md) -* [Subscription Invoice Account](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/controllers/subscription-invoice-account.md) -* [Subscription Notes](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/controllers/subscription-notes.md) -* [Subscription Products](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/controllers/subscription-products.md) -* [Subscription Status](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/controllers/subscription-status.md) -* [Coupons](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/controllers/coupons.md) -* [Components](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/controllers/components.md) -* [Customers](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/controllers/customers.md) -* [Events](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/controllers/events.md) -* [Insights](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/controllers/insights.md) -* [Invoices](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/controllers/invoices.md) -* [Offers](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/controllers/offers.md) -* [Products](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/controllers/products.md) -* [Sites](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/controllers/sites.md) -* [Subscriptions](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/controllers/subscriptions.md) -* [Webhooks](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/controllers/webhooks.md) +* [API Exports](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/controllers/api-exports.md) +* [Advance Invoice](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/controllers/advance-invoice.md) +* [Billing Portal](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/controllers/billing-portal.md) +* [Component Price Points](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/controllers/component-price-points.md) +* [Custom Fields](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/controllers/custom-fields.md) +* [Events-Based Billing Segments](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/controllers/events-based-billing-segments.md) +* [Payment Profiles](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/controllers/payment-profiles.md) +* [Product Families](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/controllers/product-families.md) +* [Product Price Points](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/controllers/product-price-points.md) +* [Proforma Invoices](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/controllers/proforma-invoices.md) +* [Reason Codes](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/controllers/reason-codes.md) +* [Referral Codes](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/controllers/referral-codes.md) +* [Sales Commissions](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/controllers/sales-commissions.md) +* [Subscription Components](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/controllers/subscription-components.md) +* [Subscription Groups](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/controllers/subscription-groups.md) +* [Subscription Group Invoice Account](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/controllers/subscription-group-invoice-account.md) +* [Subscription Group Status](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/controllers/subscription-group-status.md) +* [Subscription Invoice Account](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/controllers/subscription-invoice-account.md) +* [Subscription Notes](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/controllers/subscription-notes.md) +* [Subscription Products](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/controllers/subscription-products.md) +* [Subscription Status](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/controllers/subscription-status.md) +* [Coupons](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/controllers/coupons.md) +* [Components](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/controllers/components.md) +* [Customers](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/controllers/customers.md) +* [Events](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/controllers/events.md) +* [Insights](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/controllers/insights.md) +* [Invoices](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/controllers/invoices.md) +* [Offers](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/controllers/offers.md) +* [Products](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/controllers/products.md) +* [Sites](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/controllers/sites.md) +* [Subscriptions](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/controllers/subscriptions.md) +* [Webhooks](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/controllers/webhooks.md) ## Classes Documentation -* [Utility Classes](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/utility-classes.md) -* [HttpRequest](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/http-request.md) -* [HttpResponse](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/http-response.md) -* [HttpStringResponse](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/http-string-response.md) -* [HttpContext](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/http-context.md) -* [HttpBodyRequest](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/http-body-request.md) -* [HttpCallback Interface](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/http-callback-interface.md) -* [Headers](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/headers.md) -* [ApiException](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/api-exception.md) -* [Configuration Interface](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/configuration-interface.md) -* [HttpClientConfiguration](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/http-client-configuration.md) -* [HttpClientConfiguration.Builder](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/http-client-configuration-builder.md) +* [Utility Classes](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/utility-classes.md) +* [HttpRequest](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/http-request.md) +* [HttpResponse](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/http-response.md) +* [HttpStringResponse](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/http-string-response.md) +* [HttpContext](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/http-context.md) +* [HttpBodyRequest](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/http-body-request.md) +* [HttpCallback Interface](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/http-callback-interface.md) +* [Headers](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/headers.md) +* [ApiException](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/api-exception.md) +* [Configuration Interface](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/configuration-interface.md) +* [HttpClientConfiguration](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/http-client-configuration.md) +* [HttpClientConfiguration.Builder](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/http-client-configuration-builder.md) diff --git a/doc/controllers/sites.md b/doc/controllers/sites.md index 3757a851..204b44c8 100644 --- a/doc/controllers/sites.md +++ b/doc/controllers/sites.md @@ -69,6 +69,7 @@ try { "string" ], "relationship_invoicing_enabled": true, + "schedule_subscription_cancellation_enabled": true, "customer_hierarchy_enabled": true, "whopays_enabled": true, "whopays_default_payer": "string", diff --git a/doc/models/prepaid-product-price-point-filter.md b/doc/models/prepaid-product-price-point-filter.md index 43b4b3f7..2e7684e0 100644 --- a/doc/models/prepaid-product-price-point-filter.md +++ b/doc/models/prepaid-product-price-point-filter.md @@ -9,7 +9,7 @@ | Name | Type | Tags | Description | Getter | Setter | | --- | --- | --- | --- | --- | --- | -| `ProductPricePointId` | `String` | Required, Constant | Passed as a parameter to list methods to return only non null values.
**Default**: `"not_null"` | String getProductPricePointId() | setProductPricePointId(String productPricePointId) | +| `ProductPricePointId` | `String` | Required, Constant | Passed as a parameter to list methods to return only non null values.
**Value**: `"not_null"` | String getProductPricePointId() | setProductPricePointId(String productPricePointId) | ## Example (as JSON) diff --git a/doc/models/site.md b/doc/models/site.md index 6917d651..8b6b5e61 100644 --- a/doc/models/site.md +++ b/doc/models/site.md @@ -16,6 +16,7 @@ | `SellerId` | `Integer` | Optional | - | Integer getSellerId() | setSellerId(Integer sellerId) | | `NonPrimaryCurrencies` | `List` | Optional | - | List getNonPrimaryCurrencies() | setNonPrimaryCurrencies(List nonPrimaryCurrencies) | | `RelationshipInvoicingEnabled` | `Boolean` | Optional | - | Boolean getRelationshipInvoicingEnabled() | setRelationshipInvoicingEnabled(Boolean relationshipInvoicingEnabled) | +| `ScheduleSubscriptionCancellationEnabled` | `Boolean` | Optional | - | Boolean getScheduleSubscriptionCancellationEnabled() | setScheduleSubscriptionCancellationEnabled(Boolean scheduleSubscriptionCancellationEnabled) | | `CustomerHierarchyEnabled` | `Boolean` | Optional | - | Boolean getCustomerHierarchyEnabled() | setCustomerHierarchyEnabled(Boolean customerHierarchyEnabled) | | `WhopaysEnabled` | `Boolean` | Optional | - | Boolean getWhopaysEnabled() | setWhopaysEnabled(Boolean whopaysEnabled) | | `WhopaysDefaultPayer` | `String` | Optional | - | String getWhopaysDefaultPayer() | setWhopaysDefaultPayer(String whopaysDefaultPayer) | diff --git a/pom.xml b/pom.xml index dc0ec9ae..92f6bf68 100644 --- a/pom.xml +++ b/pom.xml @@ -8,7 +8,7 @@ 4.0.0 com.maxio advanced-billing-sdk - 6.0.0 + 6.1.0 jar Advanced Billing SDK Ultimate billing and pricing flexibility for B2B SaaS. @@ -52,7 +52,7 @@ Maxio integrates directly into your product, so you can seamlessly manage your p io.apimatic core - [0.6.6, 0.7) + [0.6.7, 0.7) io.apimatic diff --git a/src/main/java/com/maxio/advancedbilling/AdvancedBillingClient.java b/src/main/java/com/maxio/advancedbilling/AdvancedBillingClient.java index b5db090a..412d0aad 100644 --- a/src/main/java/com/maxio/advancedbilling/AdvancedBillingClient.java +++ b/src/main/java/com/maxio/advancedbilling/AdvancedBillingClient.java @@ -99,7 +99,7 @@ public final class AdvancedBillingClient implements Configuration { private static final CompatibilityFactory compatibilityFactory = new CompatibilityFactoryImpl(); - private static String userAgent = "AB SDK Java:6.0.0 on OS {os-info}"; + private static String userAgent = "AB SDK Java:6.1.0 on OS {os-info}"; /** * Current API environment. diff --git a/src/main/java/com/maxio/advancedbilling/exceptions/ApiException.java b/src/main/java/com/maxio/advancedbilling/exceptions/ApiException.java index f21e35bf..e21eaeb7 100644 --- a/src/main/java/com/maxio/advancedbilling/exceptions/ApiException.java +++ b/src/main/java/com/maxio/advancedbilling/exceptions/ApiException.java @@ -16,8 +16,6 @@ public class ApiException extends CoreApiException { //UID for serialization private static final long serialVersionUID = 1L; - //private fields - /** * Initialization constructor. * @param reason The reason for throwing exception @@ -35,4 +33,13 @@ public ApiException(String reason) { public ApiException(String reason, Context context) { super(reason, context); } + + /** + * Converts this ApiException into string format. + * @return String representation of this class + */ + @Override + public String toString() { + return "ApiException [" + "statusCode=" + getResponseCode() + ", message=" + getMessage() + "]"; + } } \ No newline at end of file diff --git a/src/main/java/com/maxio/advancedbilling/exceptions/ComponentAllocationErrorException.java b/src/main/java/com/maxio/advancedbilling/exceptions/ComponentAllocationErrorException.java index c7592d15..cc45072d 100644 --- a/src/main/java/com/maxio/advancedbilling/exceptions/ComponentAllocationErrorException.java +++ b/src/main/java/com/maxio/advancedbilling/exceptions/ComponentAllocationErrorException.java @@ -46,4 +46,14 @@ public List getErrors() { private void setErrors(List errors) { this.errors = errors; } + + /** + * Converts this ComponentAllocationErrorException into string format. + * @return String representation of this class + */ + @Override + public String toString() { + return "ComponentAllocationErrorException [" + "statusCode=" + getResponseCode() + + ", message=" + getMessage() + ", errors=" + errors + "]"; + } } diff --git a/src/main/java/com/maxio/advancedbilling/exceptions/ComponentPricePointErrorException.java b/src/main/java/com/maxio/advancedbilling/exceptions/ComponentPricePointErrorException.java index d294dcd3..c4cf35fe 100644 --- a/src/main/java/com/maxio/advancedbilling/exceptions/ComponentPricePointErrorException.java +++ b/src/main/java/com/maxio/advancedbilling/exceptions/ComponentPricePointErrorException.java @@ -46,4 +46,14 @@ public List getErrors() { private void setErrors(List errors) { this.errors = errors; } + + /** + * Converts this ComponentPricePointErrorException into string format. + * @return String representation of this class + */ + @Override + public String toString() { + return "ComponentPricePointErrorException [" + "statusCode=" + getResponseCode() + + ", message=" + getMessage() + ", errors=" + errors + "]"; + } } diff --git a/src/main/java/com/maxio/advancedbilling/exceptions/CustomerErrorResponseException.java b/src/main/java/com/maxio/advancedbilling/exceptions/CustomerErrorResponseException.java index dec23247..978914cc 100644 --- a/src/main/java/com/maxio/advancedbilling/exceptions/CustomerErrorResponseException.java +++ b/src/main/java/com/maxio/advancedbilling/exceptions/CustomerErrorResponseException.java @@ -45,4 +45,14 @@ public CustomerErrorResponseErrors getErrors() { private void setErrors(CustomerErrorResponseErrors errors) { this.errors = errors; } + + /** + * Converts this CustomerErrorResponseException into string format. + * @return String representation of this class + */ + @Override + public String toString() { + return "CustomerErrorResponseException [" + "statusCode=" + getResponseCode() + ", message=" + + getMessage() + ", errors=" + errors + "]"; + } } diff --git a/src/main/java/com/maxio/advancedbilling/exceptions/ErrorArrayMapResponseException.java b/src/main/java/com/maxio/advancedbilling/exceptions/ErrorArrayMapResponseException.java index d6425d3d..36be7f08 100644 --- a/src/main/java/com/maxio/advancedbilling/exceptions/ErrorArrayMapResponseException.java +++ b/src/main/java/com/maxio/advancedbilling/exceptions/ErrorArrayMapResponseException.java @@ -45,4 +45,14 @@ public Map getErrors() { private void setErrors(Map errors) { this.errors = errors; } + + /** + * Converts this ErrorArrayMapResponseException into string format. + * @return String representation of this class + */ + @Override + public String toString() { + return "ErrorArrayMapResponseException [" + "statusCode=" + getResponseCode() + ", message=" + + getMessage() + ", errors=" + errors + "]"; + } } diff --git a/src/main/java/com/maxio/advancedbilling/exceptions/ErrorListResponseException.java b/src/main/java/com/maxio/advancedbilling/exceptions/ErrorListResponseException.java index f6a1bab1..29b26cdb 100644 --- a/src/main/java/com/maxio/advancedbilling/exceptions/ErrorListResponseException.java +++ b/src/main/java/com/maxio/advancedbilling/exceptions/ErrorListResponseException.java @@ -45,4 +45,14 @@ public List getErrors() { private void setErrors(List errors) { this.errors = errors; } + + /** + * Converts this ErrorListResponseException into string format. + * @return String representation of this class + */ + @Override + public String toString() { + return "ErrorListResponseException [" + "statusCode=" + getResponseCode() + ", message=" + + getMessage() + ", errors=" + errors + "]"; + } } diff --git a/src/main/java/com/maxio/advancedbilling/exceptions/ErrorStringMapResponseException.java b/src/main/java/com/maxio/advancedbilling/exceptions/ErrorStringMapResponseException.java index c3d22e3b..f004a3c9 100644 --- a/src/main/java/com/maxio/advancedbilling/exceptions/ErrorStringMapResponseException.java +++ b/src/main/java/com/maxio/advancedbilling/exceptions/ErrorStringMapResponseException.java @@ -45,4 +45,14 @@ public Map getErrors() { private void setErrors(Map errors) { this.errors = errors; } + + /** + * Converts this ErrorStringMapResponseException into string format. + * @return String representation of this class + */ + @Override + public String toString() { + return "ErrorStringMapResponseException [" + "statusCode=" + getResponseCode() + + ", message=" + getMessage() + ", errors=" + errors + "]"; + } } diff --git a/src/main/java/com/maxio/advancedbilling/exceptions/EventBasedBillingListSegmentsErrorsException.java b/src/main/java/com/maxio/advancedbilling/exceptions/EventBasedBillingListSegmentsErrorsException.java index b1109339..6af3f140 100644 --- a/src/main/java/com/maxio/advancedbilling/exceptions/EventBasedBillingListSegmentsErrorsException.java +++ b/src/main/java/com/maxio/advancedbilling/exceptions/EventBasedBillingListSegmentsErrorsException.java @@ -45,4 +45,14 @@ public Errors getErrors() { private void setErrors(Errors errors) { this.errors = errors; } + + /** + * Converts this EventBasedBillingListSegmentsErrorsException into string format. + * @return String representation of this class + */ + @Override + public String toString() { + return "EventBasedBillingListSegmentsErrorsException [" + "statusCode=" + getResponseCode() + + ", message=" + getMessage() + ", errors=" + errors + "]"; + } } diff --git a/src/main/java/com/maxio/advancedbilling/exceptions/EventBasedBillingSegmentErrorsException.java b/src/main/java/com/maxio/advancedbilling/exceptions/EventBasedBillingSegmentErrorsException.java index cd0858a6..c24fc52d 100644 --- a/src/main/java/com/maxio/advancedbilling/exceptions/EventBasedBillingSegmentErrorsException.java +++ b/src/main/java/com/maxio/advancedbilling/exceptions/EventBasedBillingSegmentErrorsException.java @@ -51,4 +51,14 @@ public Map getErrors() { private void setErrors(Map errors) { this.errors = errors; } + + /** + * Converts this EventBasedBillingSegmentErrorsException into string format. + * @return String representation of this class + */ + @Override + public String toString() { + return "EventBasedBillingSegmentErrorsException [" + "statusCode=" + getResponseCode() + + ", message=" + getMessage() + ", errors=" + errors + "]"; + } } diff --git a/src/main/java/com/maxio/advancedbilling/exceptions/EventBasedBillingSegmentException.java b/src/main/java/com/maxio/advancedbilling/exceptions/EventBasedBillingSegmentException.java index 25971fef..45e8cc99 100644 --- a/src/main/java/com/maxio/advancedbilling/exceptions/EventBasedBillingSegmentException.java +++ b/src/main/java/com/maxio/advancedbilling/exceptions/EventBasedBillingSegmentException.java @@ -45,4 +45,14 @@ public EventBasedBillingSegmentError getErrors() { private void setErrors(EventBasedBillingSegmentError errors) { this.errors = errors; } + + /** + * Converts this EventBasedBillingSegmentException into string format. + * @return String representation of this class + */ + @Override + public String toString() { + return "EventBasedBillingSegmentException [" + "statusCode=" + getResponseCode() + + ", message=" + getMessage() + ", errors=" + errors + "]"; + } } diff --git a/src/main/java/com/maxio/advancedbilling/exceptions/ProductPricePointErrorResponseException.java b/src/main/java/com/maxio/advancedbilling/exceptions/ProductPricePointErrorResponseException.java index 518ff28b..f0b367c3 100644 --- a/src/main/java/com/maxio/advancedbilling/exceptions/ProductPricePointErrorResponseException.java +++ b/src/main/java/com/maxio/advancedbilling/exceptions/ProductPricePointErrorResponseException.java @@ -45,4 +45,14 @@ public ProductPricePointErrors getErrors() { private void setErrors(ProductPricePointErrors errors) { this.errors = errors; } + + /** + * Converts this ProductPricePointErrorResponseException into string format. + * @return String representation of this class + */ + @Override + public String toString() { + return "ProductPricePointErrorResponseException [" + "statusCode=" + getResponseCode() + + ", message=" + getMessage() + ", errors=" + errors + "]"; + } } diff --git a/src/main/java/com/maxio/advancedbilling/exceptions/ProformaBadRequestErrorResponseException.java b/src/main/java/com/maxio/advancedbilling/exceptions/ProformaBadRequestErrorResponseException.java index 66a33a2a..ca7f8b6f 100644 --- a/src/main/java/com/maxio/advancedbilling/exceptions/ProformaBadRequestErrorResponseException.java +++ b/src/main/java/com/maxio/advancedbilling/exceptions/ProformaBadRequestErrorResponseException.java @@ -45,4 +45,14 @@ public ProformaError getErrors() { private void setErrors(ProformaError errors) { this.errors = errors; } + + /** + * Converts this ProformaBadRequestErrorResponseException into string format. + * @return String representation of this class + */ + @Override + public String toString() { + return "ProformaBadRequestErrorResponseException [" + "statusCode=" + getResponseCode() + + ", message=" + getMessage() + ", errors=" + errors + "]"; + } } diff --git a/src/main/java/com/maxio/advancedbilling/exceptions/RefundPrepaymentBaseErrorsResponseException.java b/src/main/java/com/maxio/advancedbilling/exceptions/RefundPrepaymentBaseErrorsResponseException.java index da506d16..3ea228f2 100644 --- a/src/main/java/com/maxio/advancedbilling/exceptions/RefundPrepaymentBaseErrorsResponseException.java +++ b/src/main/java/com/maxio/advancedbilling/exceptions/RefundPrepaymentBaseErrorsResponseException.java @@ -45,4 +45,14 @@ public RefundPrepaymentBaseRefundError getErrors() { private void setErrors(RefundPrepaymentBaseRefundError errors) { this.errors = errors; } + + /** + * Converts this RefundPrepaymentBaseErrorsResponseException into string format. + * @return String representation of this class + */ + @Override + public String toString() { + return "RefundPrepaymentBaseErrorsResponseException [" + "statusCode=" + getResponseCode() + + ", message=" + getMessage() + ", errors=" + errors + "]"; + } } diff --git a/src/main/java/com/maxio/advancedbilling/exceptions/SingleErrorResponseException.java b/src/main/java/com/maxio/advancedbilling/exceptions/SingleErrorResponseException.java index c839423a..08e36d7a 100644 --- a/src/main/java/com/maxio/advancedbilling/exceptions/SingleErrorResponseException.java +++ b/src/main/java/com/maxio/advancedbilling/exceptions/SingleErrorResponseException.java @@ -44,4 +44,14 @@ public String getError() { private void setError(String error) { this.error = error; } + + /** + * Converts this SingleErrorResponseException into string format. + * @return String representation of this class + */ + @Override + public String toString() { + return "SingleErrorResponseException [" + "statusCode=" + getResponseCode() + ", message=" + + getMessage() + ", error=" + error + "]"; + } } diff --git a/src/main/java/com/maxio/advancedbilling/exceptions/SingleStringErrorResponseException.java b/src/main/java/com/maxio/advancedbilling/exceptions/SingleStringErrorResponseException.java index a3fb9a0a..c47ea310 100644 --- a/src/main/java/com/maxio/advancedbilling/exceptions/SingleStringErrorResponseException.java +++ b/src/main/java/com/maxio/advancedbilling/exceptions/SingleStringErrorResponseException.java @@ -44,4 +44,14 @@ public String getErrors() { private void setErrors(String errors) { this.errors = errors; } + + /** + * Converts this SingleStringErrorResponseException into string format. + * @return String representation of this class + */ + @Override + public String toString() { + return "SingleStringErrorResponseException [" + "statusCode=" + getResponseCode() + + ", message=" + getMessage() + ", errors=" + errors + "]"; + } } diff --git a/src/main/java/com/maxio/advancedbilling/exceptions/SubscriptionAddCouponErrorException.java b/src/main/java/com/maxio/advancedbilling/exceptions/SubscriptionAddCouponErrorException.java index 3d85cd92..53bf8e28 100644 --- a/src/main/java/com/maxio/advancedbilling/exceptions/SubscriptionAddCouponErrorException.java +++ b/src/main/java/com/maxio/advancedbilling/exceptions/SubscriptionAddCouponErrorException.java @@ -102,4 +102,15 @@ public List getSubscription() { private void setSubscription(List subscription) { this.subscription = subscription; } + + /** + * Converts this SubscriptionAddCouponErrorException into string format. + * @return String representation of this class + */ + @Override + public String toString() { + return "SubscriptionAddCouponErrorException [" + "statusCode=" + getResponseCode() + + ", message=" + getMessage() + ", codes=" + codes + ", couponCode=" + couponCode + + ", couponCodes=" + couponCodes + ", subscription=" + subscription + "]"; + } } diff --git a/src/main/java/com/maxio/advancedbilling/exceptions/SubscriptionComponentAllocationErrorException.java b/src/main/java/com/maxio/advancedbilling/exceptions/SubscriptionComponentAllocationErrorException.java index 25c9d397..6de017d1 100644 --- a/src/main/java/com/maxio/advancedbilling/exceptions/SubscriptionComponentAllocationErrorException.java +++ b/src/main/java/com/maxio/advancedbilling/exceptions/SubscriptionComponentAllocationErrorException.java @@ -46,4 +46,14 @@ public List getErrors() { private void setErrors(List errors) { this.errors = errors; } + + /** + * Converts this SubscriptionComponentAllocationErrorException into string format. + * @return String representation of this class + */ + @Override + public String toString() { + return "SubscriptionComponentAllocationErrorException [" + "statusCode=" + getResponseCode() + + ", message=" + getMessage() + ", errors=" + errors + "]"; + } } diff --git a/src/main/java/com/maxio/advancedbilling/exceptions/SubscriptionGroupCreateErrorResponseException.java b/src/main/java/com/maxio/advancedbilling/exceptions/SubscriptionGroupCreateErrorResponseException.java index 99fb1bf3..e037051b 100644 --- a/src/main/java/com/maxio/advancedbilling/exceptions/SubscriptionGroupCreateErrorResponseException.java +++ b/src/main/java/com/maxio/advancedbilling/exceptions/SubscriptionGroupCreateErrorResponseException.java @@ -45,4 +45,14 @@ public SubscriptionGroupCreateErrorResponseErrors getErrors() { private void setErrors(SubscriptionGroupCreateErrorResponseErrors errors) { this.errors = errors; } + + /** + * Converts this SubscriptionGroupCreateErrorResponseException into string format. + * @return String representation of this class + */ + @Override + public String toString() { + return "SubscriptionGroupCreateErrorResponseException [" + "statusCode=" + getResponseCode() + + ", message=" + getMessage() + ", errors=" + errors + "]"; + } } diff --git a/src/main/java/com/maxio/advancedbilling/exceptions/SubscriptionGroupSignupErrorResponseException.java b/src/main/java/com/maxio/advancedbilling/exceptions/SubscriptionGroupSignupErrorResponseException.java index 07631eae..8c76a0d5 100644 --- a/src/main/java/com/maxio/advancedbilling/exceptions/SubscriptionGroupSignupErrorResponseException.java +++ b/src/main/java/com/maxio/advancedbilling/exceptions/SubscriptionGroupSignupErrorResponseException.java @@ -45,4 +45,14 @@ public SubscriptionGroupSignupError getErrors() { private void setErrors(SubscriptionGroupSignupError errors) { this.errors = errors; } + + /** + * Converts this SubscriptionGroupSignupErrorResponseException into string format. + * @return String representation of this class + */ + @Override + public String toString() { + return "SubscriptionGroupSignupErrorResponseException [" + "statusCode=" + getResponseCode() + + ", message=" + getMessage() + ", errors=" + errors + "]"; + } } diff --git a/src/main/java/com/maxio/advancedbilling/exceptions/SubscriptionGroupUpdateErrorResponseException.java b/src/main/java/com/maxio/advancedbilling/exceptions/SubscriptionGroupUpdateErrorResponseException.java index dcf6e039..9e63c179 100644 --- a/src/main/java/com/maxio/advancedbilling/exceptions/SubscriptionGroupUpdateErrorResponseException.java +++ b/src/main/java/com/maxio/advancedbilling/exceptions/SubscriptionGroupUpdateErrorResponseException.java @@ -45,4 +45,14 @@ public SubscriptionGroupUpdateError getErrors() { private void setErrors(SubscriptionGroupUpdateError errors) { this.errors = errors; } + + /** + * Converts this SubscriptionGroupUpdateErrorResponseException into string format. + * @return String representation of this class + */ + @Override + public String toString() { + return "SubscriptionGroupUpdateErrorResponseException [" + "statusCode=" + getResponseCode() + + ", message=" + getMessage() + ", errors=" + errors + "]"; + } } diff --git a/src/main/java/com/maxio/advancedbilling/exceptions/SubscriptionRemoveCouponErrorsException.java b/src/main/java/com/maxio/advancedbilling/exceptions/SubscriptionRemoveCouponErrorsException.java index 0eb0e0e7..54b4ecb2 100644 --- a/src/main/java/com/maxio/advancedbilling/exceptions/SubscriptionRemoveCouponErrorsException.java +++ b/src/main/java/com/maxio/advancedbilling/exceptions/SubscriptionRemoveCouponErrorsException.java @@ -45,4 +45,14 @@ public List getSubscription() { private void setSubscription(List subscription) { this.subscription = subscription; } + + /** + * Converts this SubscriptionRemoveCouponErrorsException into string format. + * @return String representation of this class + */ + @Override + public String toString() { + return "SubscriptionRemoveCouponErrorsException [" + "statusCode=" + getResponseCode() + + ", message=" + getMessage() + ", subscription=" + subscription + "]"; + } } diff --git a/src/main/java/com/maxio/advancedbilling/exceptions/SubscriptionResponseErrorException.java b/src/main/java/com/maxio/advancedbilling/exceptions/SubscriptionResponseErrorException.java index 7fddb07b..128f2204 100644 --- a/src/main/java/com/maxio/advancedbilling/exceptions/SubscriptionResponseErrorException.java +++ b/src/main/java/com/maxio/advancedbilling/exceptions/SubscriptionResponseErrorException.java @@ -45,4 +45,14 @@ public Subscription getSubscription() { private void setSubscription(Subscription subscription) { this.subscription = subscription; } + + /** + * Converts this SubscriptionResponseErrorException into string format. + * @return String representation of this class + */ + @Override + public String toString() { + return "SubscriptionResponseErrorException [" + "statusCode=" + getResponseCode() + + ", message=" + getMessage() + ", subscription=" + subscription + "]"; + } } diff --git a/src/main/java/com/maxio/advancedbilling/exceptions/SubscriptionsMrrErrorResponseException.java b/src/main/java/com/maxio/advancedbilling/exceptions/SubscriptionsMrrErrorResponseException.java index 136dc8aa..74b8f10d 100644 --- a/src/main/java/com/maxio/advancedbilling/exceptions/SubscriptionsMrrErrorResponseException.java +++ b/src/main/java/com/maxio/advancedbilling/exceptions/SubscriptionsMrrErrorResponseException.java @@ -45,4 +45,14 @@ public AttributeError getErrors() { private void setErrors(AttributeError errors) { this.errors = errors; } + + /** + * Converts this SubscriptionsMrrErrorResponseException into string format. + * @return String representation of this class + */ + @Override + public String toString() { + return "SubscriptionsMrrErrorResponseException [" + "statusCode=" + getResponseCode() + + ", message=" + getMessage() + ", errors=" + errors + "]"; + } } diff --git a/src/main/java/com/maxio/advancedbilling/exceptions/TooManyManagementLinkRequestsErrorException.java b/src/main/java/com/maxio/advancedbilling/exceptions/TooManyManagementLinkRequestsErrorException.java index 73370fc0..18309490 100644 --- a/src/main/java/com/maxio/advancedbilling/exceptions/TooManyManagementLinkRequestsErrorException.java +++ b/src/main/java/com/maxio/advancedbilling/exceptions/TooManyManagementLinkRequestsErrorException.java @@ -45,4 +45,14 @@ public TooManyManagementLinkRequests getErrors() { private void setErrors(TooManyManagementLinkRequests errors) { this.errors = errors; } + + /** + * Converts this TooManyManagementLinkRequestsErrorException into string format. + * @return String representation of this class + */ + @Override + public String toString() { + return "TooManyManagementLinkRequestsErrorException [" + "statusCode=" + getResponseCode() + + ", message=" + getMessage() + ", errors=" + errors + "]"; + } } diff --git a/src/main/java/com/maxio/advancedbilling/http/Headers.java b/src/main/java/com/maxio/advancedbilling/http/Headers.java index d144d541..49ae2a79 100644 --- a/src/main/java/com/maxio/advancedbilling/http/Headers.java +++ b/src/main/java/com/maxio/advancedbilling/http/Headers.java @@ -232,13 +232,4 @@ public List remove(String headerName) { } return null; } - - /** - * Converts this Headers into string format. - * @return String representation of this class - */ - @Override - public String toString() { - return "Headers " + headers; - } } \ No newline at end of file diff --git a/src/main/java/com/maxio/advancedbilling/http/client/HttpContext.java b/src/main/java/com/maxio/advancedbilling/http/client/HttpContext.java index df32730b..4f3ee583 100644 --- a/src/main/java/com/maxio/advancedbilling/http/client/HttpContext.java +++ b/src/main/java/com/maxio/advancedbilling/http/client/HttpContext.java @@ -42,13 +42,4 @@ public HttpRequest getRequest() { public HttpResponse getResponse() { return response; } - - /** - * Converts this HttpContext into string format. - * @return String representation of this class - */ - @Override - public String toString() { - return "HttpContext [request=" + request + ", response=" + response + "]"; - } } \ No newline at end of file diff --git a/src/main/java/com/maxio/advancedbilling/http/request/HttpBodyRequest.java b/src/main/java/com/maxio/advancedbilling/http/request/HttpBodyRequest.java index 831606f0..5a041ce3 100644 --- a/src/main/java/com/maxio/advancedbilling/http/request/HttpBodyRequest.java +++ b/src/main/java/com/maxio/advancedbilling/http/request/HttpBodyRequest.java @@ -26,15 +26,4 @@ public HttpBodyRequest(HttpMethod method, StringBuilder queryUrlBuilder, Headers Map queryParams, Object body) { super(method, queryUrlBuilder, headers, queryParams, body); } - - /** - * Converts this HttpBodyRequest into string format. - * @return String representation of this class - */ - @Override - public String toString() { - return "HttpBodyRequest [httpMethod=" + getHttpMethod() - + ", headers=" + getHeaders() + ", queryUrlBuilder=" + getQueryUrl() - + ", queryParameters=" + getQueryParameters() + ", body=" + getBody() + "]"; - } } diff --git a/src/main/java/com/maxio/advancedbilling/http/request/HttpRequest.java b/src/main/java/com/maxio/advancedbilling/http/request/HttpRequest.java index c9e3700a..f5a22ad0 100644 --- a/src/main/java/com/maxio/advancedbilling/http/request/HttpRequest.java +++ b/src/main/java/com/maxio/advancedbilling/http/request/HttpRequest.java @@ -126,17 +126,6 @@ public void addQueryParameter(String key, Object value) { queryParameters.put(key, value); } - /** - * Converts this HttpRequest into string format. - * @return String representation of this class - */ - @Override - public String toString() { - return "HttpRequest [httpMethod=" + httpMethod + ", headers=" + headers - + ", queryUrlBuilder=" + queryUrlBuilder + ", queryParameters=" + queryParameters - + ", parameters=" + parameters + "]"; - } - /** * Get the request URL * diff --git a/src/main/java/com/maxio/advancedbilling/http/response/HttpResponse.java b/src/main/java/com/maxio/advancedbilling/http/response/HttpResponse.java index d9dcb4bf..82aa2f13 100644 --- a/src/main/java/com/maxio/advancedbilling/http/response/HttpResponse.java +++ b/src/main/java/com/maxio/advancedbilling/http/response/HttpResponse.java @@ -103,14 +103,4 @@ public String getRawBodyString() { public String getBody() { return body; } - - /** - * Converts this HttpResponse into string format. - * @return String representation of this class - */ - @Override - public String toString() { - return "HttpResponse [statusCode=" + statusCode + ", headers=" + headers + ", rawBody=" - + getRawBodyString() + "]"; - } } \ No newline at end of file diff --git a/src/main/java/com/maxio/advancedbilling/http/response/HttpStringResponse.java b/src/main/java/com/maxio/advancedbilling/http/response/HttpStringResponse.java index 3c13cb3c..955a8d78 100644 --- a/src/main/java/com/maxio/advancedbilling/http/response/HttpStringResponse.java +++ b/src/main/java/com/maxio/advancedbilling/http/response/HttpStringResponse.java @@ -24,14 +24,4 @@ public class HttpStringResponse extends HttpResponse { public HttpStringResponse(int code, Headers headers, InputStream rawBody, String body) { super(code, headers, rawBody, body); } - - /** - * Converts this HttpStringResponse into string format. - * @return String representation of this class - */ - @Override - public String toString() { - return "HttpStringResponse [statusCode=" + getStatusCode() + ", headers=" + getHeaders() - + ", body=" + getBody() + "]"; - } } diff --git a/src/main/java/com/maxio/advancedbilling/models/Site.java b/src/main/java/com/maxio/advancedbilling/models/Site.java index 3e1ba38e..aa05f1bc 100644 --- a/src/main/java/com/maxio/advancedbilling/models/Site.java +++ b/src/main/java/com/maxio/advancedbilling/models/Site.java @@ -24,6 +24,7 @@ public class Site private Integer sellerId; private List nonPrimaryCurrencies; private Boolean relationshipInvoicingEnabled; + private Boolean scheduleSubscriptionCancellationEnabled; private Boolean customerHierarchyEnabled; private Boolean whopaysEnabled; private String whopaysDefaultPayer; @@ -49,6 +50,8 @@ public Site() { * @param sellerId Integer value for sellerId. * @param nonPrimaryCurrencies List of String value for nonPrimaryCurrencies. * @param relationshipInvoicingEnabled Boolean value for relationshipInvoicingEnabled. + * @param scheduleSubscriptionCancellationEnabled Boolean value for + * scheduleSubscriptionCancellationEnabled. * @param customerHierarchyEnabled Boolean value for customerHierarchyEnabled. * @param whopaysEnabled Boolean value for whopaysEnabled. * @param whopaysDefaultPayer String value for whopaysDefaultPayer. @@ -67,6 +70,7 @@ public Site( Integer sellerId, List nonPrimaryCurrencies, Boolean relationshipInvoicingEnabled, + Boolean scheduleSubscriptionCancellationEnabled, Boolean customerHierarchyEnabled, Boolean whopaysEnabled, String whopaysDefaultPayer, @@ -83,6 +87,7 @@ public Site( this.sellerId = sellerId; this.nonPrimaryCurrencies = nonPrimaryCurrencies; this.relationshipInvoicingEnabled = relationshipInvoicingEnabled; + this.scheduleSubscriptionCancellationEnabled = scheduleSubscriptionCancellationEnabled; this.customerHierarchyEnabled = customerHierarchyEnabled; this.whopaysEnabled = whopaysEnabled; this.whopaysDefaultPayer = whopaysDefaultPayer; @@ -227,6 +232,25 @@ public void setRelationshipInvoicingEnabled(Boolean relationshipInvoicingEnabled this.relationshipInvoicingEnabled = relationshipInvoicingEnabled; } + /** + * Getter for ScheduleSubscriptionCancellationEnabled. + * @return Returns the Boolean + */ + @JsonGetter("schedule_subscription_cancellation_enabled") + @JsonInclude(JsonInclude.Include.NON_NULL) + public Boolean getScheduleSubscriptionCancellationEnabled() { + return scheduleSubscriptionCancellationEnabled; + } + + /** + * Setter for ScheduleSubscriptionCancellationEnabled. + * @param scheduleSubscriptionCancellationEnabled Value for Boolean + */ + @JsonSetter("schedule_subscription_cancellation_enabled") + public void setScheduleSubscriptionCancellationEnabled(Boolean scheduleSubscriptionCancellationEnabled) { + this.scheduleSubscriptionCancellationEnabled = scheduleSubscriptionCancellationEnabled; + } + /** * Getter for CustomerHierarchyEnabled. * @return Returns the Boolean @@ -407,7 +431,8 @@ public String toString() { return "Site [" + "id=" + id + ", name=" + name + ", subdomain=" + subdomain + ", currency=" + currency + ", sellerId=" + sellerId + ", nonPrimaryCurrencies=" + nonPrimaryCurrencies + ", relationshipInvoicingEnabled=" - + relationshipInvoicingEnabled + ", customerHierarchyEnabled=" + + relationshipInvoicingEnabled + ", scheduleSubscriptionCancellationEnabled=" + + scheduleSubscriptionCancellationEnabled + ", customerHierarchyEnabled=" + customerHierarchyEnabled + ", whopaysEnabled=" + whopaysEnabled + ", whopaysDefaultPayer=" + whopaysDefaultPayer + ", allocationSettings=" + allocationSettings + ", defaultPaymentCollectionMethod=" @@ -430,6 +455,7 @@ public Builder toBuilder() { .sellerId(getSellerId()) .nonPrimaryCurrencies(getNonPrimaryCurrencies()) .relationshipInvoicingEnabled(getRelationshipInvoicingEnabled()) + .scheduleSubscriptionCancellationEnabled(getScheduleSubscriptionCancellationEnabled()) .customerHierarchyEnabled(getCustomerHierarchyEnabled()) .whopaysEnabled(getWhopaysEnabled()) .whopaysDefaultPayer(getWhopaysDefaultPayer()) @@ -453,6 +479,7 @@ public static class Builder { private Integer sellerId; private List nonPrimaryCurrencies; private Boolean relationshipInvoicingEnabled; + private Boolean scheduleSubscriptionCancellationEnabled; private Boolean customerHierarchyEnabled; private Boolean whopaysEnabled; private String whopaysDefaultPayer; @@ -535,6 +562,18 @@ public Builder relationshipInvoicingEnabled(Boolean relationshipInvoicingEnabled return this; } + /** + * Setter for scheduleSubscriptionCancellationEnabled. + * @param scheduleSubscriptionCancellationEnabled Boolean value for + * scheduleSubscriptionCancellationEnabled. + * @return Builder + */ + public Builder scheduleSubscriptionCancellationEnabled( + Boolean scheduleSubscriptionCancellationEnabled) { + this.scheduleSubscriptionCancellationEnabled = scheduleSubscriptionCancellationEnabled; + return this; + } + /** * Setter for customerHierarchyEnabled. * @param customerHierarchyEnabled Boolean value for customerHierarchyEnabled. @@ -631,9 +670,10 @@ public Builder test(Boolean test) { */ public Site build() { return new Site(id, name, subdomain, currency, sellerId, nonPrimaryCurrencies, - relationshipInvoicingEnabled, customerHierarchyEnabled, whopaysEnabled, - whopaysDefaultPayer, allocationSettings, defaultPaymentCollectionMethod, - organizationAddress, taxConfiguration, netTerms, test); + relationshipInvoicingEnabled, scheduleSubscriptionCancellationEnabled, + customerHierarchyEnabled, whopaysEnabled, whopaysDefaultPayer, + allocationSettings, defaultPaymentCollectionMethod, organizationAddress, + taxConfiguration, netTerms, test); } } } diff --git a/src/main/java/com/maxio/advancedbilling/utilities/FileWrapper.java b/src/main/java/com/maxio/advancedbilling/utilities/FileWrapper.java index 455c3e31..7ed1a301 100644 --- a/src/main/java/com/maxio/advancedbilling/utilities/FileWrapper.java +++ b/src/main/java/com/maxio/advancedbilling/utilities/FileWrapper.java @@ -53,4 +53,13 @@ public File getFile() { public String getContentType() { return contentType; } + + /** + * Converts FileWrapper object into string format. + * @return String representation of this class + */ + @Override + public String toString() { + return "FileWrapper [fileName=" + (file != null ? file.getName() : "") + ", contentType=" + contentType + "]"; + } } diff --git a/tests/src/test/java/com/maxio/advancedbilling/controllers/subscriptionstatus/SubscriptionStatusControllerTestBase.java b/tests/src/test/java/com/maxio/advancedbilling/controllers/subscriptionstatus/SubscriptionStatusControllerTestBase.java index b8534c45..1d1afdf1 100644 --- a/tests/src/test/java/com/maxio/advancedbilling/controllers/subscriptionstatus/SubscriptionStatusControllerTestBase.java +++ b/tests/src/test/java/com/maxio/advancedbilling/controllers/subscriptionstatus/SubscriptionStatusControllerTestBase.java @@ -47,7 +47,7 @@ Subscription createSubscription() throws IOException, ApiException { .creditCardAttributes( new PaymentProfileAttributes.Builder() .expirationMonth(PaymentProfileAttributesExpirationMonth.fromNumber(12)) - .expirationYear(PaymentProfileAttributesExpirationYear.fromNumber(2024)) + .expirationYear(PaymentProfileAttributesExpirationYear.fromNumber(2050)) .fullNumber("1") .build() )