Skip to content

Commit 85d4f38

Browse files
authored
[DE-1099] Release 6.1.0 (#196)
- Added `scheduleSubscriptionCancellationEnabled` property to the `Site` model - Added string representations for exceptions models
1 parent 8a8dec9 commit 85d4f38

File tree

40 files changed

+351
-122
lines changed

40 files changed

+351
-122
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ License:
33
The MIT License (MIT)
44
http://opensource.org/licenses/MIT
55

6-
Copyright (c) 2014 - 2024 APIMATIC Limited
6+
Copyright (c) 2014 - 2025 APIMATIC Limited
77

88
Permission is hereby granted, free of charge, to any person obtaining a copy
99
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 50 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -33,25 +33,25 @@ Install the SDK by adding the following dependency in your project's pom.xml fil
3333
<dependency>
3434
<groupId>com.maxio</groupId>
3535
<artifactId>advanced-billing-sdk</artifactId>
36-
<version>6.0.0</version>
36+
<version>6.1.0</version>
3737
</dependency>
3838
```
3939

4040
You can also view the package at:
41-
https://central.sonatype.com/artifact/com.maxio/advanced-billing-sdk/6.0.0
41+
https://central.sonatype.com/artifact/com.maxio/advanced-billing-sdk/6.1.0
4242

4343
## Initialize the API Client
4444

45-
**_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)
45+
**_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)
4646

4747
The following parameters are configurable for the API Client:
4848

4949
| Parameter | Type | Description |
5050
| --- | --- | --- |
5151
| `site` | `String` | The subdomain for your Advanced Billing site.<br>*Default*: `"subdomain"` |
5252
| `environment` | `Environment` | The API environment. <br> **Default: `Environment.US`** |
53-
| `httpClientConfig` | [`Consumer<HttpClientConfiguration.Builder>`](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. |
54-
| `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 |
53+
| `httpClientConfig` | [`Consumer<HttpClientConfiguration.Builder>`](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. |
54+
| `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 |
5555

5656
The API client can be initialized as follows:
5757

@@ -84,55 +84,55 @@ The SDK can be configured to use a different environment for making API calls. A
8484

8585
This API uses the following authentication schemes.
8686

87-
* [`BasicAuth (Basic Authentication)`](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/auth/basic-authentication.md)
87+
* [`BasicAuth (Basic Authentication)`](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/auth/basic-authentication.md)
8888

8989
## List of APIs
9090

91-
* [API Exports](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/controllers/api-exports.md)
92-
* [Advance Invoice](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/controllers/advance-invoice.md)
93-
* [Billing Portal](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/controllers/billing-portal.md)
94-
* [Component Price Points](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/controllers/component-price-points.md)
95-
* [Custom Fields](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/controllers/custom-fields.md)
96-
* [Events-Based Billing Segments](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/controllers/events-based-billing-segments.md)
97-
* [Payment Profiles](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/controllers/payment-profiles.md)
98-
* [Product Families](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/controllers/product-families.md)
99-
* [Product Price Points](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/controllers/product-price-points.md)
100-
* [Proforma Invoices](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/controllers/proforma-invoices.md)
101-
* [Reason Codes](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/controllers/reason-codes.md)
102-
* [Referral Codes](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/controllers/referral-codes.md)
103-
* [Sales Commissions](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/controllers/sales-commissions.md)
104-
* [Subscription Components](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/controllers/subscription-components.md)
105-
* [Subscription Groups](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/controllers/subscription-groups.md)
106-
* [Subscription Group Invoice Account](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/controllers/subscription-group-invoice-account.md)
107-
* [Subscription Group Status](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/controllers/subscription-group-status.md)
108-
* [Subscription Invoice Account](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/controllers/subscription-invoice-account.md)
109-
* [Subscription Notes](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/controllers/subscription-notes.md)
110-
* [Subscription Products](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/controllers/subscription-products.md)
111-
* [Subscription Status](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/controllers/subscription-status.md)
112-
* [Coupons](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/controllers/coupons.md)
113-
* [Components](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/controllers/components.md)
114-
* [Customers](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/controllers/customers.md)
115-
* [Events](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/controllers/events.md)
116-
* [Insights](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/controllers/insights.md)
117-
* [Invoices](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/controllers/invoices.md)
118-
* [Offers](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/controllers/offers.md)
119-
* [Products](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/controllers/products.md)
120-
* [Sites](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/controllers/sites.md)
121-
* [Subscriptions](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/controllers/subscriptions.md)
122-
* [Webhooks](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/controllers/webhooks.md)
91+
* [API Exports](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/controllers/api-exports.md)
92+
* [Advance Invoice](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/controllers/advance-invoice.md)
93+
* [Billing Portal](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/controllers/billing-portal.md)
94+
* [Component Price Points](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/controllers/component-price-points.md)
95+
* [Custom Fields](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/controllers/custom-fields.md)
96+
* [Events-Based Billing Segments](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/controllers/events-based-billing-segments.md)
97+
* [Payment Profiles](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/controllers/payment-profiles.md)
98+
* [Product Families](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/controllers/product-families.md)
99+
* [Product Price Points](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/controllers/product-price-points.md)
100+
* [Proforma Invoices](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/controllers/proforma-invoices.md)
101+
* [Reason Codes](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/controllers/reason-codes.md)
102+
* [Referral Codes](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/controllers/referral-codes.md)
103+
* [Sales Commissions](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/controllers/sales-commissions.md)
104+
* [Subscription Components](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/controllers/subscription-components.md)
105+
* [Subscription Groups](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/controllers/subscription-groups.md)
106+
* [Subscription Group Invoice Account](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/controllers/subscription-group-invoice-account.md)
107+
* [Subscription Group Status](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/controllers/subscription-group-status.md)
108+
* [Subscription Invoice Account](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/controllers/subscription-invoice-account.md)
109+
* [Subscription Notes](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/controllers/subscription-notes.md)
110+
* [Subscription Products](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/controllers/subscription-products.md)
111+
* [Subscription Status](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/controllers/subscription-status.md)
112+
* [Coupons](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/controllers/coupons.md)
113+
* [Components](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/controllers/components.md)
114+
* [Customers](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/controllers/customers.md)
115+
* [Events](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/controllers/events.md)
116+
* [Insights](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/controllers/insights.md)
117+
* [Invoices](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/controllers/invoices.md)
118+
* [Offers](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/controllers/offers.md)
119+
* [Products](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/controllers/products.md)
120+
* [Sites](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/controllers/sites.md)
121+
* [Subscriptions](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/controllers/subscriptions.md)
122+
* [Webhooks](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/controllers/webhooks.md)
123123

124124
## Classes Documentation
125125

126-
* [Utility Classes](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/utility-classes.md)
127-
* [HttpRequest](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/http-request.md)
128-
* [HttpResponse](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/http-response.md)
129-
* [HttpStringResponse](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/http-string-response.md)
130-
* [HttpContext](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/http-context.md)
131-
* [HttpBodyRequest](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/http-body-request.md)
132-
* [HttpCallback Interface](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/http-callback-interface.md)
133-
* [Headers](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/headers.md)
134-
* [ApiException](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/api-exception.md)
135-
* [Configuration Interface](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/configuration-interface.md)
136-
* [HttpClientConfiguration](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/http-client-configuration.md)
137-
* [HttpClientConfiguration.Builder](https://www.github.com/maxio-com/ab-java-sdk/tree/6.0.0/doc/http-client-configuration-builder.md)
126+
* [Utility Classes](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/utility-classes.md)
127+
* [HttpRequest](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/http-request.md)
128+
* [HttpResponse](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/http-response.md)
129+
* [HttpStringResponse](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/http-string-response.md)
130+
* [HttpContext](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/http-context.md)
131+
* [HttpBodyRequest](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/http-body-request.md)
132+
* [HttpCallback Interface](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/http-callback-interface.md)
133+
* [Headers](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/headers.md)
134+
* [ApiException](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/api-exception.md)
135+
* [Configuration Interface](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/configuration-interface.md)
136+
* [HttpClientConfiguration](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/http-client-configuration.md)
137+
* [HttpClientConfiguration.Builder](https://www.github.com/maxio-com/ab-java-sdk/tree/6.1.0/doc/http-client-configuration-builder.md)
138138

doc/controllers/sites.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ try {
6969
"string"
7070
],
7171
"relationship_invoicing_enabled": true,
72+
"schedule_subscription_cancellation_enabled": true,
7273
"customer_hierarchy_enabled": true,
7374
"whopays_enabled": true,
7475
"whopays_default_payer": "string",

doc/models/prepaid-product-price-point-filter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
| Name | Type | Tags | Description | Getter | Setter |
1111
| --- | --- | --- | --- | --- | --- |
12-
| `ProductPricePointId` | `String` | Required, Constant | Passed as a parameter to list methods to return only non null values.<br>**Default**: `"not_null"` | String getProductPricePointId() | setProductPricePointId(String productPricePointId) |
12+
| `ProductPricePointId` | `String` | Required, Constant | Passed as a parameter to list methods to return only non null values.<br>**Value**: `"not_null"` | String getProductPricePointId() | setProductPricePointId(String productPricePointId) |
1313

1414
## Example (as JSON)
1515

doc/models/site.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
| `SellerId` | `Integer` | Optional | - | Integer getSellerId() | setSellerId(Integer sellerId) |
1717
| `NonPrimaryCurrencies` | `List<String>` | Optional | - | List<String> getNonPrimaryCurrencies() | setNonPrimaryCurrencies(List<String> nonPrimaryCurrencies) |
1818
| `RelationshipInvoicingEnabled` | `Boolean` | Optional | - | Boolean getRelationshipInvoicingEnabled() | setRelationshipInvoicingEnabled(Boolean relationshipInvoicingEnabled) |
19+
| `ScheduleSubscriptionCancellationEnabled` | `Boolean` | Optional | - | Boolean getScheduleSubscriptionCancellationEnabled() | setScheduleSubscriptionCancellationEnabled(Boolean scheduleSubscriptionCancellationEnabled) |
1920
| `CustomerHierarchyEnabled` | `Boolean` | Optional | - | Boolean getCustomerHierarchyEnabled() | setCustomerHierarchyEnabled(Boolean customerHierarchyEnabled) |
2021
| `WhopaysEnabled` | `Boolean` | Optional | - | Boolean getWhopaysEnabled() | setWhopaysEnabled(Boolean whopaysEnabled) |
2122
| `WhopaysDefaultPayer` | `String` | Optional | - | String getWhopaysDefaultPayer() | setWhopaysDefaultPayer(String whopaysDefaultPayer) |

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<modelVersion>4.0.0</modelVersion>
99
<groupId>com.maxio</groupId>
1010
<artifactId>advanced-billing-sdk</artifactId>
11-
<version>6.0.0</version>
11+
<version>6.1.0</version>
1212
<packaging>jar</packaging>
1313
<name>Advanced Billing SDK</name>
1414
<description>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
5252
<dependency>
5353
<groupId>io.apimatic</groupId>
5454
<artifactId>core</artifactId>
55-
<version>[0.6.6, 0.7)</version>
55+
<version>[0.6.7, 0.7)</version>
5656
</dependency>
5757
<dependency>
5858
<groupId>io.apimatic</groupId>

src/main/java/com/maxio/advancedbilling/AdvancedBillingClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public final class AdvancedBillingClient implements Configuration {
9999

100100
private static final CompatibilityFactory compatibilityFactory = new CompatibilityFactoryImpl();
101101

102-
private static String userAgent = "AB SDK Java:6.0.0 on OS {os-info}";
102+
private static String userAgent = "AB SDK Java:6.1.0 on OS {os-info}";
103103

104104
/**
105105
* Current API environment.

src/main/java/com/maxio/advancedbilling/exceptions/ApiException.java

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ public class ApiException extends CoreApiException {
1616
//UID for serialization
1717
private static final long serialVersionUID = 1L;
1818

19-
//private fields
20-
2119
/**
2220
* Initialization constructor.
2321
* @param reason The reason for throwing exception
@@ -35,4 +33,13 @@ public ApiException(String reason) {
3533
public ApiException(String reason, Context context) {
3634
super(reason, context);
3735
}
36+
37+
/**
38+
* Converts this ApiException into string format.
39+
* @return String representation of this class
40+
*/
41+
@Override
42+
public String toString() {
43+
return "ApiException [" + "statusCode=" + getResponseCode() + ", message=" + getMessage() + "]";
44+
}
3845
}

src/main/java/com/maxio/advancedbilling/exceptions/ComponentAllocationErrorException.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,14 @@ public List<ComponentAllocationErrorItem> getErrors() {
4646
private void setErrors(List<ComponentAllocationErrorItem> errors) {
4747
this.errors = errors;
4848
}
49+
50+
/**
51+
* Converts this ComponentAllocationErrorException into string format.
52+
* @return String representation of this class
53+
*/
54+
@Override
55+
public String toString() {
56+
return "ComponentAllocationErrorException [" + "statusCode=" + getResponseCode()
57+
+ ", message=" + getMessage() + ", errors=" + errors + "]";
58+
}
4959
}

src/main/java/com/maxio/advancedbilling/exceptions/ComponentPricePointErrorException.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,14 @@ public List<ComponentPricePointErrorItem> getErrors() {
4646
private void setErrors(List<ComponentPricePointErrorItem> errors) {
4747
this.errors = errors;
4848
}
49+
50+
/**
51+
* Converts this ComponentPricePointErrorException into string format.
52+
* @return String representation of this class
53+
*/
54+
@Override
55+
public String toString() {
56+
return "ComponentPricePointErrorException [" + "statusCode=" + getResponseCode()
57+
+ ", message=" + getMessage() + ", errors=" + errors + "]";
58+
}
4959
}

0 commit comments

Comments
 (0)