Skip to content
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
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
100 changes: 50 additions & 50 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,25 +33,25 @@ Install the SDK by adding the following dependency in your project's pom.xml fil
<dependency>
<groupId>com.maxio</groupId>
<artifactId>advanced-billing-sdk</artifactId>
<version>6.0.0</version>
<version>6.1.0</version>
</dependency>
```

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:

| Parameter | Type | Description |
| --- | --- | --- |
| `site` | `String` | The subdomain for your Advanced Billing site.<br>*Default*: `"subdomain"` |
| `environment` | `Environment` | The API environment. <br> **Default: `Environment.US`** |
| `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. |
| `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<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. |
| `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:

Expand Down Expand Up @@ -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)

1 change: 1 addition & 0 deletions doc/controllers/sites.md
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion doc/models/prepaid-product-price-point-filter.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.<br>**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.<br>**Value**: `"not_null"` | String getProductPricePointId() | setProductPricePointId(String productPricePointId) |

## Example (as JSON)

Expand Down
1 change: 1 addition & 0 deletions doc/models/site.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
| `SellerId` | `Integer` | Optional | - | Integer getSellerId() | setSellerId(Integer sellerId) |
| `NonPrimaryCurrencies` | `List<String>` | Optional | - | List<String> getNonPrimaryCurrencies() | setNonPrimaryCurrencies(List<String> 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) |
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.maxio</groupId>
<artifactId>advanced-billing-sdk</artifactId>
<version>6.0.0</version>
<version>6.1.0</version>
<packaging>jar</packaging>
<name>Advanced Billing SDK</name>
<description>Ultimate billing and pricing flexibility for B2B SaaS.
Expand Down Expand Up @@ -52,7 +52,7 @@ Maxio integrates directly into your product, so you can seamlessly manage your p
<dependency>
<groupId>io.apimatic</groupId>
<artifactId>core</artifactId>
<version>[0.6.6, 0.7)</version>
<version>[0.6.7, 0.7)</version>
</dependency>
<dependency>
<groupId>io.apimatic</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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() + "]";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,14 @@ public List<ComponentAllocationErrorItem> getErrors() {
private void setErrors(List<ComponentAllocationErrorItem> 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 + "]";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,14 @@ public List<ComponentPricePointErrorItem> getErrors() {
private void setErrors(List<ComponentPricePointErrorItem> 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 + "]";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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 + "]";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,14 @@ public Map<String, Object> getErrors() {
private void setErrors(Map<String, Object> 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 + "]";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,14 @@ public List<String> getErrors() {
private void setErrors(List<String> 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 + "]";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,14 @@ public Map<String, String> getErrors() {
private void setErrors(Map<String, String> 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 + "]";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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 + "]";
}
}
Loading
Loading