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-759] Release 2.0.0 #129

Merged
merged 7 commits into from
Mar 21, 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
96 changes: 48 additions & 48 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,16 @@ 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>1.0.1</version>
<version>2.0.0</version>
</dependency>
```

You can also view the package at:
https://mvnrepository.com/artifact/com.maxio/advanced-billing-sdk/1.0.1
https://mvnrepository.com/artifact/com.maxio/advanced-billing-sdk/2.0.0

## Initialize the API Client

**_Note:_** Documentation for the client can be found [here.](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.1/doc/client.md)
**_Note:_** Documentation for the client can be found [here.](https://www.github.com/maxio-com/ab-java-sdk/tree/2.0.0/doc/client.md)

The following parameters are configurable for the API Client:

Expand All @@ -51,8 +51,8 @@ The following parameters are configurable for the API Client:
| `subdomain` | `String` | The subdomain for your Chargify site.<br>*Default*: `"subdomain"` |
| `domain` | `String` | The Chargify server domain.<br>*Default*: `"chargify.com"` |
| `environment` | `Environment` | The API environment. <br> **Default: `Environment.PRODUCTION`** |
| `httpClientConfig` | [`ReadonlyHttpClientConfiguration`](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.1/doc/http-client-configuration.md) | Http Client Configuration instance. |
| `basicAuthCredentials` | [`BasicAuthCredentials`](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.1/doc/$a/https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.1/basic-authentication.md) | The Credentials Setter for Basic Authentication |
| `httpClientConfig` | [`ReadonlyHttpClientConfiguration`](https://www.github.com/maxio-com/ab-java-sdk/tree/2.0.0/doc/http-client-configuration.md) | Http Client Configuration instance. |
| `basicAuthCredentials` | [`BasicAuthCredentials`](https://www.github.com/maxio-com/ab-java-sdk/tree/2.0.0/doc/$a/https://www.github.com/maxio-com/ab-java-sdk/tree/2.0.0/basic-authentication.md) | The Credentials Setter for Basic Authentication |

The API client can be initialized as follows:

Expand Down Expand Up @@ -86,53 +86,53 @@ 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/1.0.1/doc/$a/https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.1/basic-authentication.md)
* [`BasicAuth (Basic Authentication)`](https://www.github.com/maxio-com/ab-java-sdk/tree/2.0.0/doc/$a/https://www.github.com/maxio-com/ab-java-sdk/tree/2.0.0/basic-authentication.md)

## List of APIs

* [API Exports](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.1/doc/controllers/api-exports.md)
* [Advance Invoice](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.1/doc/controllers/advance-invoice.md)
* [Billing Portal](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.1/doc/controllers/billing-portal.md)
* [Custom Fields](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.1/doc/controllers/custom-fields.md)
* [Events-Based Billing Segments](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.1/doc/controllers/events-based-billing-segments.md)
* [Payment Profiles](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.1/doc/controllers/payment-profiles.md)
* [Product Families](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.1/doc/controllers/product-families.md)
* [Product Price Points](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.1/doc/controllers/product-price-points.md)
* [Proforma Invoices](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.1/doc/controllers/proforma-invoices.md)
* [Reason Codes](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.1/doc/controllers/reason-codes.md)
* [Referral Codes](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.1/doc/controllers/referral-codes.md)
* [Sales Commissions](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.1/doc/controllers/sales-commissions.md)
* [Subscription Components](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.1/doc/controllers/subscription-components.md)
* [Subscription Groups](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.1/doc/controllers/subscription-groups.md)
* [Subscription Group Invoice Account](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.1/doc/controllers/subscription-group-invoice-account.md)
* [Subscription Group Status](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.1/doc/controllers/subscription-group-status.md)
* [Subscription Invoice Account](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.1/doc/controllers/subscription-invoice-account.md)
* [Subscription Notes](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.1/doc/controllers/subscription-notes.md)
* [Subscription Products](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.1/doc/controllers/subscription-products.md)
* [Subscription Status](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.1/doc/controllers/subscription-status.md)
* [Coupons](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.1/doc/controllers/coupons.md)
* [Components](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.1/doc/controllers/components.md)
* [Customers](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.1/doc/controllers/customers.md)
* [Events](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.1/doc/controllers/events.md)
* [Insights](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.1/doc/controllers/insights.md)
* [Invoices](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.1/doc/controllers/invoices.md)
* [Offers](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.1/doc/controllers/offers.md)
* [Products](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.1/doc/controllers/products.md)
* [Sites](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.1/doc/controllers/sites.md)
* [Subscriptions](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.1/doc/controllers/subscriptions.md)
* [Webhooks](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.1/doc/controllers/webhooks.md)
* [API Exports](https://www.github.com/maxio-com/ab-java-sdk/tree/2.0.0/doc/controllers/api-exports.md)
* [Advance Invoice](https://www.github.com/maxio-com/ab-java-sdk/tree/2.0.0/doc/controllers/advance-invoice.md)
* [Billing Portal](https://www.github.com/maxio-com/ab-java-sdk/tree/2.0.0/doc/controllers/billing-portal.md)
* [Custom Fields](https://www.github.com/maxio-com/ab-java-sdk/tree/2.0.0/doc/controllers/custom-fields.md)
* [Events-Based Billing Segments](https://www.github.com/maxio-com/ab-java-sdk/tree/2.0.0/doc/controllers/events-based-billing-segments.md)
* [Payment Profiles](https://www.github.com/maxio-com/ab-java-sdk/tree/2.0.0/doc/controllers/payment-profiles.md)
* [Product Families](https://www.github.com/maxio-com/ab-java-sdk/tree/2.0.0/doc/controllers/product-families.md)
* [Product Price Points](https://www.github.com/maxio-com/ab-java-sdk/tree/2.0.0/doc/controllers/product-price-points.md)
* [Proforma Invoices](https://www.github.com/maxio-com/ab-java-sdk/tree/2.0.0/doc/controllers/proforma-invoices.md)
* [Reason Codes](https://www.github.com/maxio-com/ab-java-sdk/tree/2.0.0/doc/controllers/reason-codes.md)
* [Referral Codes](https://www.github.com/maxio-com/ab-java-sdk/tree/2.0.0/doc/controllers/referral-codes.md)
* [Sales Commissions](https://www.github.com/maxio-com/ab-java-sdk/tree/2.0.0/doc/controllers/sales-commissions.md)
* [Subscription Components](https://www.github.com/maxio-com/ab-java-sdk/tree/2.0.0/doc/controllers/subscription-components.md)
* [Subscription Groups](https://www.github.com/maxio-com/ab-java-sdk/tree/2.0.0/doc/controllers/subscription-groups.md)
* [Subscription Group Invoice Account](https://www.github.com/maxio-com/ab-java-sdk/tree/2.0.0/doc/controllers/subscription-group-invoice-account.md)
* [Subscription Group Status](https://www.github.com/maxio-com/ab-java-sdk/tree/2.0.0/doc/controllers/subscription-group-status.md)
* [Subscription Invoice Account](https://www.github.com/maxio-com/ab-java-sdk/tree/2.0.0/doc/controllers/subscription-invoice-account.md)
* [Subscription Notes](https://www.github.com/maxio-com/ab-java-sdk/tree/2.0.0/doc/controllers/subscription-notes.md)
* [Subscription Products](https://www.github.com/maxio-com/ab-java-sdk/tree/2.0.0/doc/controllers/subscription-products.md)
* [Subscription Status](https://www.github.com/maxio-com/ab-java-sdk/tree/2.0.0/doc/controllers/subscription-status.md)
* [Coupons](https://www.github.com/maxio-com/ab-java-sdk/tree/2.0.0/doc/controllers/coupons.md)
* [Components](https://www.github.com/maxio-com/ab-java-sdk/tree/2.0.0/doc/controllers/components.md)
* [Customers](https://www.github.com/maxio-com/ab-java-sdk/tree/2.0.0/doc/controllers/customers.md)
* [Events](https://www.github.com/maxio-com/ab-java-sdk/tree/2.0.0/doc/controllers/events.md)
* [Insights](https://www.github.com/maxio-com/ab-java-sdk/tree/2.0.0/doc/controllers/insights.md)
* [Invoices](https://www.github.com/maxio-com/ab-java-sdk/tree/2.0.0/doc/controllers/invoices.md)
* [Offers](https://www.github.com/maxio-com/ab-java-sdk/tree/2.0.0/doc/controllers/offers.md)
* [Products](https://www.github.com/maxio-com/ab-java-sdk/tree/2.0.0/doc/controllers/products.md)
* [Sites](https://www.github.com/maxio-com/ab-java-sdk/tree/2.0.0/doc/controllers/sites.md)
* [Subscriptions](https://www.github.com/maxio-com/ab-java-sdk/tree/2.0.0/doc/controllers/subscriptions.md)
* [Webhooks](https://www.github.com/maxio-com/ab-java-sdk/tree/2.0.0/doc/controllers/webhooks.md)

## Classes Documentation

* [Utility Classes](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.1/doc/utility-classes.md)
* [HttpRequest](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.1/doc/http-request.md)
* [HttpResponse](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.1/doc/http-response.md)
* [HttpStringResponse](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.1/doc/http-string-response.md)
* [HttpContext](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.1/doc/http-context.md)
* [HttpBodyRequest](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.1/doc/http-body-request.md)
* [Headers](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.1/doc/headers.md)
* [ApiException](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.1/doc/api-exception.md)
* [Configuration Interface](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.1/doc/configuration-interface.md)
* [HttpClientConfiguration](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.1/doc/http-client-configuration.md)
* [HttpClientConfiguration.Builder](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.1/doc/http-client-configuration-builder.md)
* [Utility Classes](https://www.github.com/maxio-com/ab-java-sdk/tree/2.0.0/doc/utility-classes.md)
* [HttpRequest](https://www.github.com/maxio-com/ab-java-sdk/tree/2.0.0/doc/http-request.md)
* [HttpResponse](https://www.github.com/maxio-com/ab-java-sdk/tree/2.0.0/doc/http-response.md)
* [HttpStringResponse](https://www.github.com/maxio-com/ab-java-sdk/tree/2.0.0/doc/http-string-response.md)
* [HttpContext](https://www.github.com/maxio-com/ab-java-sdk/tree/2.0.0/doc/http-context.md)
* [HttpBodyRequest](https://www.github.com/maxio-com/ab-java-sdk/tree/2.0.0/doc/http-body-request.md)
* [Headers](https://www.github.com/maxio-com/ab-java-sdk/tree/2.0.0/doc/headers.md)
* [ApiException](https://www.github.com/maxio-com/ab-java-sdk/tree/2.0.0/doc/api-exception.md)
* [Configuration Interface](https://www.github.com/maxio-com/ab-java-sdk/tree/2.0.0/doc/configuration-interface.md)
* [HttpClientConfiguration](https://www.github.com/maxio-com/ab-java-sdk/tree/2.0.0/doc/http-client-configuration.md)
* [HttpClientConfiguration.Builder](https://www.github.com/maxio-com/ab-java-sdk/tree/2.0.0/doc/http-client-configuration-builder.md)

8 changes: 4 additions & 4 deletions doc/models/invoice-issued.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
| `Number` | `String` | Required | - | String getNumber() | setNumber(String number) |
| `Role` | `String` | Required | - | String getRole() | setRole(String role) |
| `DueDate` | `LocalDate` | Required | - | LocalDate getDueDate() | setDueDate(LocalDate dueDate) |
| `IssueDate` | `LocalDate` | Required | - | LocalDate getIssueDate() | setIssueDate(LocalDate issueDate) |
| `PaidDate` | `LocalDate` | Required | - | LocalDate getPaidDate() | setPaidDate(LocalDate paidDate) |
| `IssueDate` | `String` | Required | Invoice issue date. Can be an empty string if value is missing. | String getIssueDate() | setIssueDate(String issueDate) |
| `PaidDate` | `String` | Required | Paid date. Can be an empty string if value is missing. | String getPaidDate() | setPaidDate(String paidDate) |
| `DueAmount` | `String` | Required | - | String getDueAmount() | setDueAmount(String dueAmount) |
| `PaidAmount` | `String` | Required | - | String getPaidAmount() | setPaidAmount(String paidAmount) |
| `TaxAmount` | `String` | Required | - | String getTaxAmount() | setTaxAmount(String taxAmount) |
Expand All @@ -33,8 +33,8 @@
"number": "number8",
"role": "role2",
"due_date": "2016-03-13",
"issue_date": "2016-03-13",
"paid_date": "2016-03-13",
"issue_date": "issue_date0",
"paid_date": "paid_date6",
"due_amount": "due_amount6",
"paid_amount": "paid_amount4",
"tax_amount": "tax_amount2",
Expand Down
2 changes: 1 addition & 1 deletion 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>1.0.1</version>
<version>2.0.0</version>
<packaging>jar</packaging>
<name>Advanced Billing SDK</name>
<description>Ultimate billing and pricing flexibility for B2B SaaS.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public final class AdvancedBillingClient implements Configuration {

private static final CompatibilityFactory compatibilityFactory = new CompatibilityFactoryImpl();

private static String userAgent = "AB SDK Java:1.0.1 on OS {os-info}";
private static String userAgent = "AB SDK Java:2.0.0 on OS {os-info}";

/**
* Current API environment.
Expand Down
61 changes: 30 additions & 31 deletions src/main/java/com/maxio/advancedbilling/models/InvoiceIssued.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ public class InvoiceIssued
private String number;
private String role;
private LocalDate dueDate;
private LocalDate issueDate;
private LocalDate paidDate;
private String issueDate;
private String paidDate;
private String dueAmount;
private String paidAmount;
private String taxAmount;
Expand All @@ -50,8 +50,8 @@ public InvoiceIssued() {
* @param number String value for number.
* @param role String value for role.
* @param dueDate LocalDate value for dueDate.
* @param issueDate LocalDate value for issueDate.
* @param paidDate LocalDate value for paidDate.
* @param issueDate String value for issueDate.
* @param paidDate String value for paidDate.
* @param dueAmount String value for dueAmount.
* @param paidAmount String value for paidAmount.
* @param taxAmount String value for taxAmount.
Expand All @@ -68,8 +68,8 @@ public InvoiceIssued(
@JsonProperty("number") String number,
@JsonProperty("role") String role,
@JsonProperty("due_date") LocalDate dueDate,
@JsonProperty("issue_date") LocalDate issueDate,
@JsonProperty("paid_date") LocalDate paidDate,
@JsonProperty("issue_date") String issueDate,
@JsonProperty("paid_date") String paidDate,
@JsonProperty("due_amount") String dueAmount,
@JsonProperty("paid_amount") String paidAmount,
@JsonProperty("tax_amount") String taxAmount,
Expand Down Expand Up @@ -172,41 +172,41 @@ public void setDueDate(LocalDate dueDate) {

/**
* Getter for IssueDate.
* @return Returns the LocalDate
* Invoice issue date. Can be an empty string if value is missing.
* @return Returns the String
*/
@JsonGetter("issue_date")
@JsonSerialize(using = DateTimeHelper.SimpleDateSerializer.class)
public LocalDate getIssueDate() {
public String getIssueDate() {
return issueDate;
}

/**
* Setter for IssueDate.
* @param issueDate Value for LocalDate
* Invoice issue date. Can be an empty string if value is missing.
* @param issueDate Value for String
*/
@JsonSetter("issue_date")
@JsonDeserialize(using = DateTimeHelper.SimpleDateDeserializer.class)
public void setIssueDate(LocalDate issueDate) {
public void setIssueDate(String issueDate) {
this.issueDate = issueDate;
}

/**
* Getter for PaidDate.
* @return Returns the LocalDate
* Paid date. Can be an empty string if value is missing.
* @return Returns the String
*/
@JsonGetter("paid_date")
@JsonSerialize(using = DateTimeHelper.SimpleDateSerializer.class)
public LocalDate getPaidDate() {
public String getPaidDate() {
return paidDate;
}

/**
* Setter for PaidDate.
* @param paidDate Value for LocalDate
* Paid date. Can be an empty string if value is missing.
* @param paidDate Value for String
*/
@JsonSetter("paid_date")
@JsonDeserialize(using = DateTimeHelper.SimpleDateDeserializer.class)
public void setPaidDate(LocalDate paidDate) {
public void setPaidDate(String paidDate) {
this.paidDate = paidDate;
}

Expand Down Expand Up @@ -407,8 +407,8 @@ public static class Builder {
private String number;
private String role;
private LocalDate dueDate;
private LocalDate issueDate;
private LocalDate paidDate;
private String issueDate;
private String paidDate;
private String dueAmount;
private String paidAmount;
private String taxAmount;
Expand All @@ -431,8 +431,8 @@ public Builder() {
* @param number String value for number.
* @param role String value for role.
* @param dueDate LocalDate value for dueDate.
* @param issueDate LocalDate value for issueDate.
* @param paidDate LocalDate value for paidDate.
* @param issueDate String value for issueDate.
* @param paidDate String value for paidDate.
* @param dueAmount String value for dueAmount.
* @param paidAmount String value for paidAmount.
* @param taxAmount String value for taxAmount.
Expand All @@ -443,11 +443,10 @@ public Builder() {
* @param consolidationLevel String value for consolidationLevel.
* @param lineItems List of InvoiceLineItemEventData value for lineItems.
*/
public Builder(String uid, String number, String role, LocalDate dueDate,
LocalDate issueDate, LocalDate paidDate, String dueAmount, String paidAmount,
String taxAmount, String refundAmount, String totalAmount, String statusAmount,
String productName, String consolidationLevel,
List<InvoiceLineItemEventData> lineItems) {
public Builder(String uid, String number, String role, LocalDate dueDate, String issueDate,
String paidDate, String dueAmount, String paidAmount, String taxAmount,
String refundAmount, String totalAmount, String statusAmount, String productName,
String consolidationLevel, List<InvoiceLineItemEventData> lineItems) {
this.uid = uid;
this.number = number;
this.role = role;
Expand Down Expand Up @@ -507,20 +506,20 @@ public Builder dueDate(LocalDate dueDate) {

/**
* Setter for issueDate.
* @param issueDate LocalDate value for issueDate.
* @param issueDate String value for issueDate.
* @return Builder
*/
public Builder issueDate(LocalDate issueDate) {
public Builder issueDate(String issueDate) {
this.issueDate = issueDate;
return this;
}

/**
* Setter for paidDate.
* @param paidDate LocalDate value for paidDate.
* @param paidDate String value for paidDate.
* @return Builder
*/
public Builder paidDate(LocalDate paidDate) {
public Builder paidDate(String paidDate) {
this.paidDate = paidDate;
return this;
}
Expand Down
Loading
Loading