Skip to content

Commit

Permalink
Automated commit message (#20)
Browse files Browse the repository at this point in the history
[DE-600] Fix properties formats
  • Loading branch information
maciej-nedza authored Nov 14, 2023
1 parent 78046f9 commit 0f3e6fd
Show file tree
Hide file tree
Showing 152 changed files with 2,511 additions and 2,187 deletions.
92 changes: 46 additions & 46 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -274,16 +274,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>0.0.2</version>
<version>0.0.3</version>
</dependency>
```

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

## Initialize the API Client

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

The following parameters are configurable for the API Client:

Expand All @@ -292,7 +292,7 @@ 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/0.0.2/doc/http-client-configuration.md) | Http Client Configuration instance. |
| `httpClientConfig` | [`ReadonlyHttpClientConfiguration`](https://www.github.com/maxio-com/ab-java-sdk/tree/0.0.3/doc/http-client-configuration.md) | Http Client Configuration instance. |
| `basicAuthUserName` | `String` | The username to use with basic authentication |
| `basicAuthPassword` | `String` | The password to use with basic authentication |

Expand Down Expand Up @@ -326,49 +326,49 @@ This API uses `Basic Authentication`.

## List of APIs

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

## Classes Documentation

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

38 changes: 27 additions & 11 deletions doc/controllers/offers.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,22 +52,23 @@ OfferResponse createOffer(

```java
CreateOfferRequest body = new CreateOfferRequest.Builder(
new CreateOffer.Builder()
.name("Solo")
.handle("han_shot_first")
.description("A Star Wars Story")
.productId(31)
.productPricePointId(102)
.components(Arrays.asList(
new CreateOffer.Builder(
"Solo",
"han_shot_first",
31
)
.description("A Star Wars Story")
.productPricePointId(102)
.components(Arrays.asList(
new CreateOfferComponent.Builder()
.componentId(24)
.startingQuantity(1)
.build()
))
.coupons(Arrays.asList(
.coupons(Arrays.asList(
"DEF456"
))
.build()
.build()
)
.build();

Expand Down Expand Up @@ -135,18 +136,33 @@ try {
This endpoint will list offers for a site.

```java
ListOffersResponse listOffers()
ListOffersResponse listOffers(
final ListOffersInput input)
```

## Parameters

| Parameter | Type | Tags | Description |
| --- | --- | --- | --- |
| `page` | `Integer` | Query, Optional | Result records are organized in pages. By default, the first page of results is displayed. The page parameter specifies a page number of results to fetch. You can start navigating through the pages to consume the results. You do this by passing in a page parameter. Retrieve the next page by adding ?page=2 to the query string. If there are no results to return, then an empty result set will be returned.<br>Use in query `page=1`.<br>**Default**: `1`<br>**Constraints**: `>= 1` |
| `perPage` | `Integer` | Query, Optional | This parameter indicates how many records to fetch in each request. Default value is 20. The maximum allowed values is 200; any per_page value over 200 will be changed to 200.<br>Use in query `per_page=200`.<br>**Default**: `20`<br>**Constraints**: `<= 200` |
| `includeArchived` | `Boolean` | Query, Optional | Include archived products. Use in query: `include_archived=true`. |

## Response Type

[`ListOffersResponse`](../../doc/models/list-offers-response.md)

## Example Usage

```java
ListOffersInput listOffersInput = new ListOffersInput.Builder()
.page(2)
.perPage(50)
.includeArchived(true)
.build();

try {
ListOffersResponse result = offersController.listOffers();
ListOffersResponse result = offersController.listOffers(listOffersInput);
System.out.println(result);
} catch (ApiException e) {
e.printStackTrace();
Expand Down
4 changes: 2 additions & 2 deletions doc/controllers/payment-profiles.md
Original file line number Diff line number Diff line change
Expand Up @@ -768,8 +768,8 @@ BankAccountResponse verifyBankAccount(
int bankAccountId = 252;
BankAccountVerificationRequest body = new BankAccountVerificationRequest.Builder(
new BankAccountVerification.Builder()
.deposit1InCents(32)
.deposit2InCents(45)
.deposit1InCents(32L)
.deposit2InCents(45L)
.build()
)
.build();
Expand Down
20 changes: 10 additions & 10 deletions doc/controllers/product-price-points.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,16 @@ int productId = 202;
CreateProductPricePointRequest body = new CreateProductPricePointRequest.Builder(
new CreateProductPricePoint.Builder(
"Educational",
1000,
1000L,
1,
"month"
)
.handle("educational")
.trialPriceInCents(4900)
.trialPriceInCents(4900L)
.trialInterval(1)
.trialIntervalUnit("month")
.trialType("payment_expected")
.initialChargeInCents(120000)
.initialChargeInCents(120000L)
.initialChargeAfterTrial(false)
.expirationInterval(12)
.expirationIntervalUnit("month")
Expand Down Expand Up @@ -212,7 +212,7 @@ int pricePointId = 10;
UpdateProductPricePointRequest body = new UpdateProductPricePointRequest.Builder(
new UpdateProductPricePoint.Builder()
.handle("educational")
.priceInCents(1250)
.priceInCents(1250L)
.build()
)
.build();
Expand Down Expand Up @@ -548,32 +548,32 @@ BulkCreateProductPricePointsRequest body = new BulkCreateProductPricePointsReque
Arrays.asList(
new CreateProductPricePoint.Builder(
"Educational",
1000,
1000L,
1,
"month"
)
.handle("educational")
.trialPriceInCents(4900)
.trialPriceInCents(4900L)
.trialInterval(1)
.trialIntervalUnit("month")
.trialType("payment_expected")
.initialChargeInCents(120000)
.initialChargeInCents(120000L)
.initialChargeAfterTrial(false)
.expirationInterval(12)
.expirationIntervalUnit("month")
.build(),
new CreateProductPricePoint.Builder(
"More Educational",
2000,
2000L,
1,
"month"
)
.handle("more-educational")
.trialPriceInCents(4900)
.trialPriceInCents(4900L)
.trialInterval(1)
.trialIntervalUnit("month")
.trialType("payment_expected")
.initialChargeInCents(120000)
.initialChargeInCents(120000L)
.initialChargeAfterTrial(false)
.expirationInterval(12)
.expirationIntervalUnit("month")
Expand Down
2 changes: 1 addition & 1 deletion doc/controllers/products.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ CreateOrUpdateProductRequest body = new CreateOrUpdateProductRequest.Builder(
new CreateOrUpdateProduct.Builder(
"Gold Plan",
"This is our gold plan.",
1000,
1000L,
1,
"month"
)
Expand Down
6 changes: 3 additions & 3 deletions doc/controllers/subscriptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -1479,10 +1479,10 @@ PrepaidConfigurationResponse createPrepaidSubscription(
String subscriptionId = "subscription_id0";
UpsertPrepaidConfigurationRequest body = new UpsertPrepaidConfigurationRequest.Builder(
new UpsertPrepaidConfiguration.Builder()
.initialFundingAmountInCents(50000)
.replenishToAmountInCents(50000)
.initialFundingAmountInCents(50000L)
.replenishToAmountInCents(50000L)
.autoReplenish(true)
.replenishThresholdAmountInCents(10000)
.replenishThresholdAmountInCents(10000L)
.build()
)
.build();
Expand Down
2 changes: 1 addition & 1 deletion doc/models/account-balance.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

| Name | Type | Tags | Description | Getter | Setter |
| --- | --- | --- | --- | --- | --- |
| `BalanceInCents` | `Integer` | Optional | The balance in cents. | Integer getBalanceInCents() | setBalanceInCents(Integer balanceInCents) |
| `BalanceInCents` | `Long` | Optional | The balance in cents. | Long getBalanceInCents() | setBalanceInCents(Long balanceInCents) |

## Example (as JSON)

Expand Down
6 changes: 3 additions & 3 deletions doc/models/allocation-payment.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ Information for captured payment, if applicable

| Name | Type | Tags | Description | Getter | Setter |
| --- | --- | --- | --- | --- | --- |
| `Id` | `Double` | Optional | - | Double getId() | setId(Double id) |
| `AmountInCents` | `Integer` | Optional | - | Integer getAmountInCents() | setAmountInCents(Integer amountInCents) |
| `Id` | `Integer` | Optional | - | Integer getId() | setId(Integer id) |
| `AmountInCents` | `Long` | Optional | - | Long getAmountInCents() | setAmountInCents(Long amountInCents) |
| `Success` | `Boolean` | Optional | - | Boolean getSuccess() | setSuccess(Boolean success) |
| `Memo` | `String` | Optional | - | String getMemo() | setMemo(String memo) |

## Example (as JSON)

```json
{
"id": 108.98,
"id": 146,
"amount_in_cents": 232,
"success": false,
"memo": "memo2"
Expand Down
6 changes: 3 additions & 3 deletions doc/models/allocation-preview-line-item.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
| --- | --- | --- | --- | --- | --- |
| `TransactionType` | `String` | Optional | - | String getTransactionType() | setTransactionType(String transactionType) |
| `Kind` | `String` | Optional | - | String getKind() | setKind(String kind) |
| `AmountInCents` | `Integer` | Optional | - | Integer getAmountInCents() | setAmountInCents(Integer amountInCents) |
| `AmountInCents` | `Long` | Optional | - | Long getAmountInCents() | setAmountInCents(Long amountInCents) |
| `Memo` | `String` | Optional | - | String getMemo() | setMemo(String memo) |
| `DiscountAmountInCents` | `Integer` | Optional | - | Integer getDiscountAmountInCents() | setDiscountAmountInCents(Integer discountAmountInCents) |
| `TaxableAmountInCents` | `Integer` | Optional | - | Integer getTaxableAmountInCents() | setTaxableAmountInCents(Integer taxableAmountInCents) |
| `DiscountAmountInCents` | `Long` | Optional | - | Long getDiscountAmountInCents() | setDiscountAmountInCents(Long discountAmountInCents) |
| `TaxableAmountInCents` | `Long` | Optional | - | Long getTaxableAmountInCents() | setTaxableAmountInCents(Long taxableAmountInCents) |
| `ComponentId` | `Integer` | Optional | - | Integer getComponentId() | setComponentId(Integer componentId) |
| `ComponentHandle` | `String` | Optional | - | String getComponentHandle() | setComponentHandle(String componentHandle) |
| `Direction` | `String` | Optional | - | String getDirection() | setDirection(String direction) |
Expand Down
Loading

0 comments on commit 0f3e6fd

Please sign in to comment.