diff --git a/README.md b/README.md
index 3f2c73db..745fb9c1 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
- 2.0.0
+ 3.0.0
```
You can also view the package at:
-https://mvnrepository.com/artifact/com.maxio/advanced-billing-sdk/2.0.0
+https://mvnrepository.com/artifact/com.maxio/advanced-billing-sdk/3.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/2.0.0/doc/client.md)
+**_Note:_** Documentation for the client can be found [here.](https://www.github.com/maxio-com/ab-java-sdk/tree/3.0.0/doc/client.md)
The following parameters are configurable for the API Client:
@@ -51,8 +51,8 @@ The following parameters are configurable for the API Client:
| `subdomain` | `String` | The subdomain for your Chargify site.
*Default*: `"subdomain"` |
| `domain` | `String` | The Chargify server domain.
*Default*: `"chargify.com"` |
| `environment` | `Environment` | The API environment.
**Default: `Environment.PRODUCTION`** |
-| `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 |
+| `httpClientConfig` | [`ReadonlyHttpClientConfiguration`](https://www.github.com/maxio-com/ab-java-sdk/tree/3.0.0/doc/http-client-configuration.md) | Http Client Configuration instance. |
+| `basicAuthCredentials` | [`BasicAuthCredentials`](https://www.github.com/maxio-com/ab-java-sdk/tree/3.0.0/doc/$a/https://www.github.com/maxio-com/ab-java-sdk/tree/3.0.0/basic-authentication.md) | The Credentials Setter for Basic Authentication |
The API client can be initialized as follows:
@@ -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/2.0.0/doc/$a/https://www.github.com/maxio-com/ab-java-sdk/tree/2.0.0/basic-authentication.md)
+* [`BasicAuth (Basic Authentication)`](https://www.github.com/maxio-com/ab-java-sdk/tree/3.0.0/doc/$a/https://www.github.com/maxio-com/ab-java-sdk/tree/3.0.0/basic-authentication.md)
## List of APIs
-* [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)
+* [API Exports](https://www.github.com/maxio-com/ab-java-sdk/tree/3.0.0/doc/controllers/api-exports.md)
+* [Advance Invoice](https://www.github.com/maxio-com/ab-java-sdk/tree/3.0.0/doc/controllers/advance-invoice.md)
+* [Billing Portal](https://www.github.com/maxio-com/ab-java-sdk/tree/3.0.0/doc/controllers/billing-portal.md)
+* [Custom Fields](https://www.github.com/maxio-com/ab-java-sdk/tree/3.0.0/doc/controllers/custom-fields.md)
+* [Events-Based Billing Segments](https://www.github.com/maxio-com/ab-java-sdk/tree/3.0.0/doc/controllers/events-based-billing-segments.md)
+* [Payment Profiles](https://www.github.com/maxio-com/ab-java-sdk/tree/3.0.0/doc/controllers/payment-profiles.md)
+* [Product Families](https://www.github.com/maxio-com/ab-java-sdk/tree/3.0.0/doc/controllers/product-families.md)
+* [Product Price Points](https://www.github.com/maxio-com/ab-java-sdk/tree/3.0.0/doc/controllers/product-price-points.md)
+* [Proforma Invoices](https://www.github.com/maxio-com/ab-java-sdk/tree/3.0.0/doc/controllers/proforma-invoices.md)
+* [Reason Codes](https://www.github.com/maxio-com/ab-java-sdk/tree/3.0.0/doc/controllers/reason-codes.md)
+* [Referral Codes](https://www.github.com/maxio-com/ab-java-sdk/tree/3.0.0/doc/controllers/referral-codes.md)
+* [Sales Commissions](https://www.github.com/maxio-com/ab-java-sdk/tree/3.0.0/doc/controllers/sales-commissions.md)
+* [Subscription Components](https://www.github.com/maxio-com/ab-java-sdk/tree/3.0.0/doc/controllers/subscription-components.md)
+* [Subscription Groups](https://www.github.com/maxio-com/ab-java-sdk/tree/3.0.0/doc/controllers/subscription-groups.md)
+* [Subscription Group Invoice Account](https://www.github.com/maxio-com/ab-java-sdk/tree/3.0.0/doc/controllers/subscription-group-invoice-account.md)
+* [Subscription Group Status](https://www.github.com/maxio-com/ab-java-sdk/tree/3.0.0/doc/controllers/subscription-group-status.md)
+* [Subscription Invoice Account](https://www.github.com/maxio-com/ab-java-sdk/tree/3.0.0/doc/controllers/subscription-invoice-account.md)
+* [Subscription Notes](https://www.github.com/maxio-com/ab-java-sdk/tree/3.0.0/doc/controllers/subscription-notes.md)
+* [Subscription Products](https://www.github.com/maxio-com/ab-java-sdk/tree/3.0.0/doc/controllers/subscription-products.md)
+* [Subscription Status](https://www.github.com/maxio-com/ab-java-sdk/tree/3.0.0/doc/controllers/subscription-status.md)
+* [Coupons](https://www.github.com/maxio-com/ab-java-sdk/tree/3.0.0/doc/controllers/coupons.md)
+* [Components](https://www.github.com/maxio-com/ab-java-sdk/tree/3.0.0/doc/controllers/components.md)
+* [Customers](https://www.github.com/maxio-com/ab-java-sdk/tree/3.0.0/doc/controllers/customers.md)
+* [Events](https://www.github.com/maxio-com/ab-java-sdk/tree/3.0.0/doc/controllers/events.md)
+* [Insights](https://www.github.com/maxio-com/ab-java-sdk/tree/3.0.0/doc/controllers/insights.md)
+* [Invoices](https://www.github.com/maxio-com/ab-java-sdk/tree/3.0.0/doc/controllers/invoices.md)
+* [Offers](https://www.github.com/maxio-com/ab-java-sdk/tree/3.0.0/doc/controllers/offers.md)
+* [Products](https://www.github.com/maxio-com/ab-java-sdk/tree/3.0.0/doc/controllers/products.md)
+* [Sites](https://www.github.com/maxio-com/ab-java-sdk/tree/3.0.0/doc/controllers/sites.md)
+* [Subscriptions](https://www.github.com/maxio-com/ab-java-sdk/tree/3.0.0/doc/controllers/subscriptions.md)
+* [Webhooks](https://www.github.com/maxio-com/ab-java-sdk/tree/3.0.0/doc/controllers/webhooks.md)
## Classes Documentation
-* [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)
+* [Utility Classes](https://www.github.com/maxio-com/ab-java-sdk/tree/3.0.0/doc/utility-classes.md)
+* [HttpRequest](https://www.github.com/maxio-com/ab-java-sdk/tree/3.0.0/doc/http-request.md)
+* [HttpResponse](https://www.github.com/maxio-com/ab-java-sdk/tree/3.0.0/doc/http-response.md)
+* [HttpStringResponse](https://www.github.com/maxio-com/ab-java-sdk/tree/3.0.0/doc/http-string-response.md)
+* [HttpContext](https://www.github.com/maxio-com/ab-java-sdk/tree/3.0.0/doc/http-context.md)
+* [HttpBodyRequest](https://www.github.com/maxio-com/ab-java-sdk/tree/3.0.0/doc/http-body-request.md)
+* [Headers](https://www.github.com/maxio-com/ab-java-sdk/tree/3.0.0/doc/headers.md)
+* [ApiException](https://www.github.com/maxio-com/ab-java-sdk/tree/3.0.0/doc/api-exception.md)
+* [Configuration Interface](https://www.github.com/maxio-com/ab-java-sdk/tree/3.0.0/doc/configuration-interface.md)
+* [HttpClientConfiguration](https://www.github.com/maxio-com/ab-java-sdk/tree/3.0.0/doc/http-client-configuration.md)
+* [HttpClientConfiguration.Builder](https://www.github.com/maxio-com/ab-java-sdk/tree/3.0.0/doc/http-client-configuration-builder.md)
diff --git a/doc/controllers/components.md b/doc/controllers/components.md
index 44029873..9913264e 100644
--- a/doc/controllers/components.md
+++ b/doc/controllers/components.md
@@ -630,7 +630,6 @@ try {
"taxable": false,
"description": null,
"default_price_point_id": null,
- "prices": [],
"price_point_count": 0,
"price_points_url": "https://staging.chargify.com/components/1489581/price_points",
"default_price_point_name": "Original",
@@ -969,8 +968,7 @@ List listComponents(
| `includeArchived` | `Boolean` | Query, Optional | Include archived items |
| `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.
Use in query `page=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.
Use in query `per_page=200`. |
-| `filterIds` | `List` | Query, Optional | Allows fetching components with matching id based on provided value. Use in query `filter[ids]=1,2,3`. |
-| `filterUseSiteExchangeRate` | `Boolean` | Query, Optional | Allows fetching components with matching use_site_exchange_rate based on provided value (refers to default price point). Use in query `filter[use_site_exchange_rate]=true`. |
+| `filter` | [`ListComponentsFilter`](../../doc/models/list-components-filter.md) | Query, Optional | Filter to use for List Components operations |
## Response Type
@@ -983,7 +981,14 @@ ListComponentsInput listComponentsInput = new ListComponentsInput.Builder()
.dateField(BasicDateField.UPDATED_AT)
.page(2)
.perPage(50)
-Liquid error: Value cannot be null. (Parameter 'key')Liquid error: Value cannot be null. (Parameter 'key') .build();
+ .filter(new ListComponentsFilter.Builder()
+ .ids(Arrays.asList(
+ 1,
+ 2,
+ 3
+ ))
+ .build())
+ .build();
try {
List result = componentsController.listComponents(listComponentsInput);
@@ -1263,15 +1268,14 @@ List listComponentsForProductFamily(
| --- | --- | --- | --- |
| `productFamilyId` | `int` | Template, Required | The Chargify id of the product family |
| `includeArchived` | `Boolean` | Query, Optional | Include archived items. |
-| `filterIds` | `List` | Query, Optional | Allows fetching components with matching id based on provided value. Use in query `filter[ids]=1,2`. |
| `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.
Use in query `page=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.
Use in query `per_page=200`. |
+| `filter` | [`ListComponentsFilter`](../../doc/models/list-components-filter.md) | Query, Optional | Filter to use for List Components operations |
| `dateField` | [`BasicDateField`](../../doc/models/basic-date-field.md) | Query, Optional | The type of filter you would like to apply to your search. Use in query `date_field=created_at`. |
| `endDate` | `String` | Query, Optional | The end date (format YYYY-MM-DD) with which to filter the date_field. Returns components with a timestamp up to and including 11:59:59PM in your site’s time zone on the date specified. |
| `endDatetime` | `String` | Query, Optional | The end date and time (format YYYY-MM-DD HH:MM:SS) with which to filter the date_field. Returns components with a timestamp at or before exact time provided in query. You can specify timezone in query - otherwise your site's time zone will be used. If provided, this parameter will be used instead of end_date. optional. |
| `startDate` | `String` | Query, Optional | The start date (format YYYY-MM-DD) with which to filter the date_field. Returns components with a timestamp at or after midnight (12:00:00 AM) in your site’s time zone on the date specified. |
| `startDatetime` | `String` | Query, Optional | The start date and time (format YYYY-MM-DD HH:MM:SS) with which to filter the date_field. Returns components with a timestamp at or after exact time provided in query. You can specify timezone in query - otherwise your site's time zone will be used. If provided, this parameter will be used instead of start_date. |
-| `filterUseSiteExchangeRate` | `Boolean` | Query, Optional | Allows fetching components with matching use_site_exchange_rate based on provided value (refers to default price point). Use in query `filter[use_site_exchange_rate]=true`. |
## Response Type
@@ -1283,10 +1287,17 @@ List listComponentsForProductFamily(
ListComponentsForProductFamilyInput listComponentsForProductFamilyInput = new ListComponentsForProductFamilyInput.Builder(
140
)
-Liquid error: Value cannot be null. (Parameter 'key').page(2)
+.page(2)
.perPage(50)
+.filter(new ListComponentsFilter.Builder()
+ .ids(Arrays.asList(
+ 1,
+ 2,
+ 3
+ ))
+ .build())
.dateField(BasicDateField.UPDATED_AT)
-Liquid error: Value cannot be null. (Parameter 'key').build();
+.build();
try {
List result = componentsController.listComponentsForProductFamily(listComponentsForProductFamilyInput);
@@ -2113,18 +2124,11 @@ ListComponentsPricePointsResponse listAllComponentPricePoints(
| Parameter | Type | Tags | Description |
| --- | --- | --- | --- |
-| `filterDateField` | [`BasicDateField`](../../doc/models/basic-date-field.md) | Query, Optional | The type of filter you would like to apply to your search. Use in query: `filter[date_field]=created_at`. |
-| `filterEndDate` | `LocalDate` | Query, Optional | The end date (format YYYY-MM-DD) with which to filter the date_field. Returns price points with a timestamp up to and including 11:59:59PM in your site’s time zone on the date specified. |
-| `filterEndDatetime` | `ZonedDateTime` | Query, Optional | The end date and time (format YYYY-MM-DD HH:MM:SS) with which to filter the date_field. Returns price points with a timestamp at or before exact time provided in query. You can specify timezone in query - otherwise your site's time zone will be used. If provided, this parameter will be used instead of end_date. |
| `include` | [`ListComponentsPricePointsInclude`](../../doc/models/list-components-price-points-include.md) | Query, Optional | Allows including additional data in the response. Use in query: `include=currency_prices`. |
| `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.
Use in query `page=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.
Use in query `per_page=200`. |
-| `filterStartDate` | `LocalDate` | Query, Optional | The start date (format YYYY-MM-DD) with which to filter the date_field. Returns price points with a timestamp at or after midnight (12:00:00 AM) in your site’s time zone on the date specified. |
-| `filterStartDatetime` | `ZonedDateTime` | Query, Optional | The start date and time (format YYYY-MM-DD HH:MM:SS) with which to filter the date_field. Returns price points with a timestamp at or after exact time provided in query. You can specify timezone in query - otherwise your site's time zone will be used. If provided, this parameter will be used instead of start_date. |
-| `filterType` | [`List`](../../doc/models/price-point-type.md) | Query, Optional | Allows fetching price points with matching type. Use in query: `filter[type]=custom,catalog`. |
| `direction` | [`SortingDirection`](../../doc/models/sorting-direction.md) | Query, Optional | Controls the order in which results are returned.
Use in query `direction=asc`. |
-| `filterIds` | `List` | Query, Optional | Allows fetching price points with matching id based on provided values. Use in query: `filter[ids]=1,2,3`. |
-| `filterArchivedAt` | [`IncludeNotNull`](../../doc/models/include-not-null.md) | Query, Optional | Allows fetching price points only if archived_at is present or not. Use in query: `filter[archived_at]=not_null`. |
+| `filter` | [`ListPricePointsFilter`](../../doc/models/list-price-points-filter.md) | Query, Optional | Filter to use for List PricePoints operations |
## Response Type
@@ -2134,10 +2138,26 @@ ListComponentsPricePointsResponse listAllComponentPricePoints(
```java
ListAllComponentPricePointsInput listAllComponentPricePointsInput = new ListAllComponentPricePointsInput.Builder()
-Liquid error: Value cannot be null. (Parameter 'key')Liquid error: Value cannot be null. (Parameter 'key')Liquid error: Value cannot be null. (Parameter 'key') .include(ListComponentsPricePointsInclude.CURRENCY_PRICES)
+ .include(ListComponentsPricePointsInclude.CURRENCY_PRICES)
.page(2)
.perPage(50)
-Liquid error: Value cannot be null. (Parameter 'key')Liquid error: Value cannot be null. (Parameter 'key')Liquid error: Value cannot be null. (Parameter 'key')Liquid error: Value cannot be null. (Parameter 'key')Liquid error: Value cannot be null. (Parameter 'key') .build();
+ .filter(new ListPricePointsFilter.Builder()
+ .startDate(DateTimeHelper.fromSimpleDate("2011-12-17"))
+ .endDate(DateTimeHelper.fromSimpleDate("2011-12-15"))
+ .startDatetime(DateTimeHelper.fromRfc8601DateTime("12/19/2011 09:15:30"))
+ .endDatetime(DateTimeHelper.fromRfc8601DateTime("06/07/2019 17:20:06"))
+ .type(Arrays.asList(
+ PricePointType.CATALOG,
+ PricePointType.ENUM_DEFAULT,
+ PricePointType.CUSTOM
+ ))
+ .ids(Arrays.asList(
+ 1,
+ 2,
+ 3
+ ))
+ .build())
+ .build();
try {
ListComponentsPricePointsResponse result = componentsController.listAllComponentPricePoints(listAllComponentPricePointsInput);
diff --git a/doc/controllers/coupons.md b/doc/controllers/coupons.md
index d833726c..6aa2b0d6 100644
--- a/doc/controllers/coupons.md
+++ b/doc/controllers/coupons.md
@@ -128,15 +128,8 @@ List listCouponsForProductFamily(
| `productFamilyId` | `int` | Template, Required | The Chargify id of the product family to which the coupon belongs |
| `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.
Use in query `page=1`. |
| `perPage` | `Integer` | Query, Optional | This parameter indicates how many records to fetch in each request. Default value is 30. The maximum allowed values is 200; any per_page value over 200 will be changed to 200.
Use in query `per_page=200`. |
-| `filterDateField` | [`BasicDateField`](../../doc/models/basic-date-field.md) | Query, Optional | The type of filter you would like to apply to your search. Use in query `filter[date_field]=created_at`. |
-| `filterEndDate` | `LocalDate` | Query, Optional | The end date (format YYYY-MM-DD) with which to filter the date_field. Returns coupons with a timestamp up to and including 11:59:59PM in your site’s time zone on the date specified. Use in query `filter[date_field]=2011-12-15`. |
-| `filterEndDatetime` | `ZonedDateTime` | Query, Optional | The end date and time (format YYYY-MM-DD HH:MM:SS) with which to filter the date_field. Returns coupons with a timestamp at or before exact time provided in query. You can specify timezone in query - otherwise your site's time zone will be used. If provided, this parameter will be used instead of end_date. Use in query `?filter[end_datetime]=2011-12-1T10:15:30+01:00`. |
-| `filterStartDate` | `LocalDate` | Query, Optional | The start date (format YYYY-MM-DD) with which to filter the date_field. Returns coupons with a timestamp at or after midnight (12:00:00 AM) in your site’s time zone on the date specified. Use in query `filter[start_date]=2011-12-17`. |
-| `filterStartDatetime` | `ZonedDateTime` | Query, Optional | The start date and time (format YYYY-MM-DD HH:MM:SS) with which to filter the date_field. Returns coupons with a timestamp at or after exact time provided in query. You can specify timezone in query - otherwise your site's time zone will be used. If provided, this parameter will be used instead of start_date. Use in query `filter[start_datetime]=2011-12-19T10:15:30+01:00`. |
-| `filterIds` | `List` | Query, Optional | Allows fetching coupons with matching id based on provided values. Use in query `filter[ids]=1,2,3`. |
-| `filterCodes` | `List` | Query, Optional | Allows fetching coupons with matching codes based on provided values. Use in query `filter[codes]=free,free_trial`. |
+| `filter` | [`ListCouponsFilter`](../../doc/models/list-coupons-filter.md) | Query, Optional | Filter to use for List Coupons operations |
| `currencyPrices` | `Boolean` | Query, Optional | When fetching coupons, if you have defined multiple currencies at the site level, you can optionally pass the `?currency_prices=true` query param to include an array of currency price data in the response. Use in query `currency_prices=true`. |
-| `filterUseSiteExchangeRate` | `Boolean` | Query, Optional | Allows fetching coupons with matching use_site_exchange_rate based on provided value. Use in query `filter[use_site_exchange_rate]=true`. |
## Response Type
@@ -150,8 +143,23 @@ ListCouponsForProductFamilyInput listCouponsForProductFamilyInput = new ListCoup
)
.page(2)
.perPage(50)
-Liquid error: Value cannot be null. (Parameter 'key')Liquid error: Value cannot be null. (Parameter 'key')Liquid error: Value cannot be null. (Parameter 'key')Liquid error: Value cannot be null. (Parameter 'key')Liquid error: Value cannot be null. (Parameter 'key')Liquid error: Value cannot be null. (Parameter 'key')Liquid error: Value cannot be null. (Parameter 'key').currencyPrices(true)
-Liquid error: Value cannot be null. (Parameter 'key').build();
+.filter(new ListCouponsFilter.Builder()
+ .startDate(DateTimeHelper.fromSimpleDate("2011-12-17"))
+ .endDate(DateTimeHelper.fromSimpleDate("2011-12-15"))
+ .startDatetime(DateTimeHelper.fromRfc8601DateTime("12/19/2011 09:15:30"))
+ .endDatetime(DateTimeHelper.fromRfc8601DateTime("06/07/2019 17:20:06"))
+ .ids(Arrays.asList(
+ 1,
+ 2,
+ 3
+ ))
+ .codes(Arrays.asList(
+ "free",
+ "free_trial"
+ ))
+ .build())
+.currencyPrices(true)
+.build();
try {
List result = couponsController.listCouponsForProductFamily(listCouponsForProductFamilyInput);
@@ -189,7 +197,6 @@ try {
"conversion_limit": "100",
"stackable": false,
"compounding_strategy": "compound",
- "coupon_restrictions": [],
"use_site_exchange_rate": true
}
},
@@ -215,7 +222,6 @@ try {
"conversion_limit": "100",
"stackable": false,
"compounding_strategy": "compound",
- "coupon_restrictions": [],
"use_site_exchange_rate": true
}
},
@@ -360,8 +366,7 @@ try {
"archived_at": null,
"conversion_limit": null,
"stackable": true,
- "compounding_strategy": "compound",
- "coupon_restrictions": []
+ "compounding_strategy": "compound"
}
}
```
@@ -461,8 +466,7 @@ try {
"archived_at": null,
"conversion_limit": null,
"stackable": true,
- "compounding_strategy": "compound",
- "coupon_restrictions": []
+ "compounding_strategy": "compound"
}
}
```
@@ -531,8 +535,7 @@ try {
"archived_at": "2016-12-02T13:09:33-05:00",
"conversion_limit": null,
"stackable": true,
- "compounding_strategy": "compound",
- "coupon_restrictions": []
+ "compounding_strategy": "compound"
}
}
```
@@ -555,20 +558,8 @@ List listCoupons(
| --- | --- | --- | --- |
| `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.
Use in query `page=1`. |
| `perPage` | `Integer` | Query, Optional | This parameter indicates how many records to fetch in each request. Default value is 30. The maximum allowed values is 200; any per_page value over 200 will be changed to 200.
Use in query `per_page=200`. |
-| `dateField` | [`BasicDateField`](../../doc/models/basic-date-field.md) | Query, Optional | The field was deprecated: on January 20, 2022. We recommend using filter[date_field] instead to achieve the same result. The type of filter you would like to apply to your search. |
-| `startDate` | `LocalDate` | Query, Optional | The field was deprecated: on January 20, 2022. We recommend using filter[start_date] instead to achieve the same result. The start date (format YYYY-MM-DD) with which to filter the date_field. Returns coupons with a timestamp at or after midnight (12:00:00 AM) in your site’s time zone on the date specified. |
-| `endDate` | `LocalDate` | Query, Optional | The field was deprecated: on January 20, 2022. We recommend using filter[end_date] instead to achieve the same result. The end date (format YYYY-MM-DD) with which to filter the date_field. Returns coupons with a timestamp up to and including 11:59:59PM in your site’s time zone on the date specified. |
-| `startDatetime` | `ZonedDateTime` | Query, Optional | The field was deprecated: on January 20, 2022. We recommend using filter[start_datetime] instead to achieve the same result. The start date and time (format YYYY-MM-DD HH:MM:SS) with which to filter the date_field. Returns coupons with a timestamp at or after exact time provided in query. You can specify timezone in query - otherwise your site's time zone will be used. If provided, this parameter will be used instead of start_date. |
-| `endDatetime` | `ZonedDateTime` | Query, Optional | The field was deprecated: on January 20, 2022. We recommend using filter[end_datetime] instead to achieve the same result. The end date and time (format YYYY-MM-DD HH:MM:SS) with which to filter the date_field. Returns coupons with a timestamp at or before exact time provided in query. You can specify timezone in query - otherwise your site's time zone will be used. If provided, this parameter will be used instead of end_date. |
-| `filterIds` | `List` | Query, Optional | Allows fetching coupons with matching id based on provided values. Use in query `filter[ids]=1,2,3`. |
-| `filterCodes` | `List` | Query, Optional | Allows fetching coupons with matching code based on provided values. Use in query `filter[ids]=1,2,3`. |
+| `filter` | [`ListCouponsFilter`](../../doc/models/list-coupons-filter.md) | Query, Optional | Filter to use for List Coupons operations |
| `currencyPrices` | `Boolean` | Query, Optional | When fetching coupons, if you have defined multiple currencies at the site level, you can optionally pass the `?currency_prices=true` query param to include an array of currency price data in the response. Use in query `currency_prices=true`. |
-| `filterEndDate` | `LocalDate` | Query, Optional | The end date (format YYYY-MM-DD) with which to filter the date_field. Returns coupons with a timestamp up to and including 11:59:59PM in your site’s time zone on the date specified. Use in query `filter[end_date]=2011-12-17`. |
-| `filterEndDatetime` | `ZonedDateTime` | Query, Optional | The end date and time (format YYYY-MM-DD HH:MM:SS) with which to filter the date_field. Returns coupons with a timestamp at or before exact time provided in query. You can specify timezone in query - otherwise your site's time zone will be used. If provided, this parameter will be used instead of end_date. Use in query `filter[end_datetime]=2011-12-19T10:15:30+01:00`. |
-| `filterStartDate` | `LocalDate` | Query, Optional | The start date (format YYYY-MM-DD) with which to filter the date_field. Returns coupons with a timestamp at or after midnight (12:00:00 AM) in your site’s time zone on the date specified. Use in query `filter[start_date]=2011-12-19`. |
-| `filterStartDatetime` | `ZonedDateTime` | Query, Optional | The start date and time (format YYYY-MM-DD HH:MM:SS) with which to filter the date_field. Returns coupons with a timestamp at or after exact time provided in query. You can specify timezone in query - otherwise your site's time zone will be used. If provided, this parameter will be used instead of start_date. Use in query `filter[start_datetime]=2011-12-19T10:15:30+01:00`. |
-| `filterDateField` | [`BasicDateField`](../../doc/models/basic-date-field.md) | Query, Optional | The type of filter you would like to apply to your search. Use in query `filter[date_field]=updated_at`. |
-| `filterUseSiteExchangeRate` | `Boolean` | Query, Optional | Allows fetching coupons with matching use_site_exchange_rate based on provided value. Use in query `filter[use_site_exchange_rate]=true`. |
## Response Type
@@ -580,12 +571,23 @@ List listCoupons(
ListCouponsInput listCouponsInput = new ListCouponsInput.Builder()
.page(2)
.perPage(50)
- .dateField(BasicDateField.UPDATED_AT)
- .startDate(DateTimeHelper.fromSimpleDate("2011-12-17"))
- .startDatetime(DateTimeHelper.fromRfc8601DateTime("06/07/2019 17:20:06"))
- .endDatetime(DateTimeHelper.fromRfc8601DateTime("06/07/2019 17:20:06"))
-Liquid error: Value cannot be null. (Parameter 'key')Liquid error: Value cannot be null. (Parameter 'key') .currencyPrices(true)
-Liquid error: Value cannot be null. (Parameter 'key')Liquid error: Value cannot be null. (Parameter 'key')Liquid error: Value cannot be null. (Parameter 'key')Liquid error: Value cannot be null. (Parameter 'key')Liquid error: Value cannot be null. (Parameter 'key')Liquid error: Value cannot be null. (Parameter 'key') .build();
+ .filter(new ListCouponsFilter.Builder()
+ .startDate(DateTimeHelper.fromSimpleDate("2011-12-17"))
+ .endDate(DateTimeHelper.fromSimpleDate("2011-12-15"))
+ .startDatetime(DateTimeHelper.fromRfc8601DateTime("12/19/2011 09:15:30"))
+ .endDatetime(DateTimeHelper.fromRfc8601DateTime("06/07/2019 17:20:06"))
+ .ids(Arrays.asList(
+ 1,
+ 2,
+ 3
+ ))
+ .codes(Arrays.asList(
+ "free",
+ "free_trial"
+ ))
+ .build())
+ .currencyPrices(true)
+ .build();
try {
List result = couponsController.listCoupons(listCouponsInput);
@@ -798,8 +800,7 @@ try {
"archived_at": null,
"conversion_limit": null,
"stackable": true,
- "compounding_strategy": "full-price",
- "coupon_restrictions": []
+ "compounding_strategy": "full-price"
}
}
```
@@ -955,9 +956,7 @@ try {
"BALTIMOREFALL",
"ORLANDOFALL",
"DETROITFALL"
- ],
- "duplicate_codes": [],
- "invalid_codes": []
+ ]
}
```
diff --git a/doc/controllers/custom-fields.md b/doc/controllers/custom-fields.md
index 8ab7857d..25bd1410 100644
--- a/doc/controllers/custom-fields.md
+++ b/doc/controllers/custom-fields.md
@@ -104,7 +104,6 @@ try {
{
"name": "Color",
"scope": {
- "hosted": [],
"csv": "0",
"statements": "0",
"invoices": "0",
@@ -117,7 +116,6 @@ try {
{
"name": "Brand",
"scope": {
- "hosted": [],
"csv": "0",
"statements": "0",
"invoices": "0",
@@ -520,8 +518,8 @@ Void deleteMetadata(
```java
ResourceType resourceType = ResourceType.SUBSCRIPTIONS;
int resourceId = 60;
-Liquid error: Value cannot be null. (Parameter 'key')try {
- customFieldsController.deleteMetadata(resourceType, resourceId, null, Liquid error: Value cannot be null. (Parameter 'key'));
+try {
+ customFieldsController.deleteMetadata(resourceType, resourceId, null, null);
} catch (ApiException e) {
e.printStackTrace();
} catch (IOException e) {
@@ -586,7 +584,7 @@ ListMetadataForResourceTypeInput listMetadataForResourceTypeInput = new ListMeta
.page(2)
.perPage(50)
.dateField(BasicDateField.UPDATED_AT)
-Liquid error: Value cannot be null. (Parameter 'key').build();
+.build();
try {
PaginatedMetadata result = customFieldsController.listMetadataForResourceType(listMetadataForResourceTypeInput);
diff --git a/doc/controllers/events-based-billing-segments.md b/doc/controllers/events-based-billing-segments.md
index 63fd77b0..0bf5d89b 100644
--- a/doc/controllers/events-based-billing-segments.md
+++ b/doc/controllers/events-based-billing-segments.md
@@ -118,10 +118,7 @@ ListSegmentsResponse listSegmentsForPricePoint(
| `pricePointId` | `String` | Template, Required | ID or Handle for the Price Point belonging to the Component |
| `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.
Use in query `page=1`. |
| `perPage` | `Integer` | Query, Optional | This parameter indicates how many records to fetch in each request. Default value is 30. The maximum allowed values is 200; any per_page value over 200 will be changed to 200.
Use in query `per_page=200`. |
-| `filterSegmentProperty1Value` | `String` | Query, Optional | The value passed here would be used to filter segments. Pass a value related to `segment_property_1` on attached Metric. If empty string is passed, this filter would be rejected. Use in query `filter[segment_property_1_value]=EU`. |
-| `filterSegmentProperty2Value` | `String` | Query, Optional | The value passed here would be used to filter segments. Pass a value related to `segment_property_2` on attached Metric. If empty string is passed, this filter would be rejected. |
-| `filterSegmentProperty3Value` | `String` | Query, Optional | The value passed here would be used to filter segments. Pass a value related to `segment_property_3` on attached Metric. If empty string is passed, this filter would be rejected. |
-| `filterSegmentProperty4Value` | `String` | Query, Optional | The value passed here would be used to filter segments. Pass a value related to `segment_property_4` on attached Metric. If empty string is passed, this filter would be rejected. |
+| `filter` | [`ListSegmentsFilter`](../../doc/models/list-segments-filter.md) | Query, Optional | Filter to use for List Segments for a Price Point operation |
## Response Type
@@ -136,7 +133,10 @@ ListSegmentsForPricePointInput listSegmentsForPricePointInput = new ListSegments
)
.page(2)
.perPage(50)
-Liquid error: Value cannot be null. (Parameter 'key')Liquid error: Value cannot be null. (Parameter 'key')Liquid error: Value cannot be null. (Parameter 'key')Liquid error: Value cannot be null. (Parameter 'key').build();
+.filter(new ListSegmentsFilter.Builder()
+ .segmentProperty1Value("EU")
+ .build())
+.build();
try {
ListSegmentsResponse result = eventsBasedBillingSegmentsController.listSegmentsForPricePoint(listSegmentsForPricePointInput);
diff --git a/doc/controllers/insights.md b/doc/controllers/insights.md
index d13e1a30..5a3a046a 100644
--- a/doc/controllers/insights.md
+++ b/doc/controllers/insights.md
@@ -259,7 +259,7 @@ SubscriptionMRRResponse listMrrPerSubscription(
| Parameter | Type | Tags | Description |
| --- | --- | --- | --- |
-| `filterSubscriptionIds` | `List` | Query, Optional | Submit ids in order to limit results. Use in query: `filter[subscription_ids]=1,2,3`. |
+| `filter` | [`ListMrrFilter`](../../doc/models/list-mrr-filter.md) | Query, Optional | Filter to use for List MRR per subscription operation |
| `atTime` | `String` | Query, Optional | Submit a timestamp in ISO8601 format to request MRR for a historic time. Use in query: `at_time=2022-01-10T10:00:00-05:00`. |
| `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.
Use in query `page=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.
Use in query `per_page=200`. |
@@ -273,7 +273,14 @@ SubscriptionMRRResponse listMrrPerSubscription(
```java
ListMrrPerSubscriptionInput listMrrPerSubscriptionInput = new ListMrrPerSubscriptionInput.Builder()
-Liquid error: Value cannot be null. (Parameter 'key') .atTime("at_time=2022-01-10T10:00:00-05:00")
+ .filter(new ListMrrFilter.Builder()
+ .subscriptionIds(Arrays.asList(
+ 1,
+ 2,
+ 3
+ ))
+ .build())
+ .atTime("at_time=2022-01-10T10:00:00-05:00")
.page(2)
.perPage(50)
.direction(Direction.DESC)
diff --git a/doc/controllers/invoices.md b/doc/controllers/invoices.md
index b24f5c71..ae5f5c12 100644
--- a/doc/controllers/invoices.md
+++ b/doc/controllers/invoices.md
@@ -568,9 +568,6 @@ try {
"price_point_id": null
}
],
- "discounts": [],
- "taxes": [],
- "credits": [],
"payments": [
{
"transaction_time": "2018-07-26T15:22:02Z",
@@ -588,8 +585,6 @@ try {
"prepayment": false
}
],
- "refunds": [],
- "custom_fields": [],
"public_url": "https://www.chargifypay.com/invoice/inv_8jzrw74xq8kxr?token=fb6kpjz5rcr2vttyjs4rcv6y"
}
```
@@ -736,7 +731,6 @@ try {
"organization": null,
"email": "evan4@example.com"
},
- "recipient_emails": [],
"net_terms": 0,
"memo": "Thanks for your business! If you have any questions, please contact your account manager.",
"billing_address": {
@@ -1002,8 +996,6 @@ try {
"total_amount": "168.61",
"paid_amount": "168.61",
"due_amount": "0.0",
- "credits": [],
- "refunds": [],
"payments": [
{
"memo": "Non-Resumable Canceled On Purpose - Standard Plan: Renewal payment",
@@ -1021,7 +1013,6 @@ try {
"prepayment": false
}
],
- "custom_fields": [],
"display_settings": {
"hide_zero_subtotal_lines": false,
"include_discounts_on_lines": false
@@ -2714,12 +2705,6 @@ try {
"price_point_id": null
}
],
- "discounts": [],
- "taxes": [],
- "credits": [],
- "payments": [],
- "refunds": [],
- "custom_fields": [],
"public_url": "https://www.test-chargifypay.com/invoice/inv_98nbmb93gxjz8?token=rmfmwvbdy4xmyw5f29j5gc6x"
}
}
diff --git a/doc/controllers/offers.md b/doc/controllers/offers.md
index ca1b755f..48eb5a73 100644
--- a/doc/controllers/offers.md
+++ b/doc/controllers/offers.md
@@ -201,8 +201,7 @@ try {
"price_point_id": 149438,
"price_point_name": "Auto-created",
"starting_quantity": "0.0",
- "editable": false,
- "currency_prices": []
+ "editable": false
}
],
"offer_discounts": [
diff --git a/doc/controllers/product-families.md b/doc/controllers/product-families.md
index 6eb34f17..e05e476f 100644
--- a/doc/controllers/product-families.md
+++ b/doc/controllers/product-families.md
@@ -33,14 +33,13 @@ List listProductsForProductFamily(
| `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.
Use in query `page=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.
Use in query `per_page=200`. |
| `dateField` | [`BasicDateField`](../../doc/models/basic-date-field.md) | Query, Optional | The type of filter you would like to apply to your search.
Use in query: `date_field=created_at`. |
+| `filter` | [`ListProductsFilter`](../../doc/models/list-products-filter.md) | Query, Optional | Filter to use for List Products operations |
| `startDate` | `String` | Query, Optional | The start date (format YYYY-MM-DD) with which to filter the date_field. Returns products with a timestamp at or after midnight (12:00:00 AM) in your site’s time zone on the date specified. |
| `endDate` | `String` | Query, Optional | The end date (format YYYY-MM-DD) with which to filter the date_field. Returns products with a timestamp up to and including 11:59:59PM in your site’s time zone on the date specified. |
| `startDatetime` | `String` | Query, Optional | The start date and time (format YYYY-MM-DD HH:MM:SS) with which to filter the date_field. Returns products with a timestamp at or after exact time provided in query. You can specify timezone in query - otherwise your site's time zone will be used. If provided, this parameter will be used instead of start_date. |
| `endDatetime` | `String` | Query, Optional | The end date and time (format YYYY-MM-DD HH:MM:SS) with which to filter the date_field. Returns products with a timestamp at or before exact time provided in query. You can specify timezone in query - otherwise your site's time zone will be used. If provided, this parameter will be used instead of end_date. |
| `includeArchived` | `Boolean` | Query, Optional | Include archived products |
| `include` | [`ListProductsInclude`](../../doc/models/list-products-include.md) | Query, Optional | Allows including additional data in the response. Use in query `include=prepaid_product_price_point`. |
-| `filterPrepaidProductPricePointProductPricePointId` | [`IncludeNotNull`](../../doc/models/include-not-null.md) | Query, Optional | Allows fetching products only if a prepaid product price point is present or not. To use this filter you also have to include the following param in the request `include=prepaid_product_price_point`. Use in query `filter[prepaid_product_price_point][product_price_point_id]=not_null`. |
-| `filterUseSiteExchangeRate` | `Boolean` | Query, Optional | Allows fetching products with matching use_site_exchange_rate based on provided value (refers to default price point). Use in query `filter[use_site_exchange_rate]=true`. |
## Response Type
@@ -56,7 +55,7 @@ ListProductsForProductFamilyInput listProductsForProductFamilyInput = new ListPr
.perPage(50)
.dateField(BasicDateField.UPDATED_AT)
.include(ListProductsInclude.PREPAID_PRODUCT_PRICE_POINT)
-Liquid error: Value cannot be null. (Parameter 'key')Liquid error: Value cannot be null. (Parameter 'key').build();
+.build();
try {
List result = productFamiliesController.listProductsForProductFamily(listProductsForProductFamilyInput);
diff --git a/doc/controllers/product-price-points.md b/doc/controllers/product-price-points.md
index 530cd1f7..6bc51840 100644
--- a/doc/controllers/product-price-points.md
+++ b/doc/controllers/product-price-points.md
@@ -567,8 +567,7 @@ try {
"accounting_code": null,
"created_at": "2023-12-01T06:56:12-05:00",
"updated_at": "2023-12-01T06:56:12-05:00"
- },
- "public_signup_pages": []
+ }
}
}
```
@@ -863,14 +862,7 @@ ListProductPricePointsResponse listAllProductPricePoints(
| Parameter | Type | Tags | Description |
| --- | --- | --- | --- |
| `direction` | [`SortingDirection`](../../doc/models/sorting-direction.md) | Query, Optional | Controls the order in which results are returned.
Use in query `direction=asc`. |
-| `filterArchivedAt` | [`IncludeNotNull`](../../doc/models/include-not-null.md) | Query, Optional | Allows fetching price points only if archived_at is present or not. Use in query: `filter[archived_at]=not_null`. |
-| `filterDateField` | [`BasicDateField`](../../doc/models/basic-date-field.md) | Query, Optional | The type of filter you would like to apply to your search. Use in query: `filter[date_field]=created_at`. |
-| `filterEndDate` | `LocalDate` | Query, Optional | The end date (format YYYY-MM-DD) with which to filter the date_field. Returns price points with a timestamp up to and including 11:59:59PM in your site’s time zone on the date specified. |
-| `filterEndDatetime` | `ZonedDateTime` | Query, Optional | The end date and time (format YYYY-MM-DD HH:MM:SS) with which to filter the date_field. Returns price points with a timestamp at or before exact time provided in query. You can specify timezone in query - otherwise your site's time zone will be used. If provided, this parameter will be used instead of end_date. |
-| `filterIds` | `List` | Query, Optional | Allows fetching price points with matching id based on provided values. Use in query: `filter[ids]=1,2,3`. |
-| `filterStartDate` | `LocalDate` | Query, Optional | The start date (format YYYY-MM-DD) with which to filter the date_field. Returns price points with a timestamp at or after midnight (12:00:00 AM) in your site’s time zone on the date specified. |
-| `filterStartDatetime` | `ZonedDateTime` | Query, Optional | The start date and time (format YYYY-MM-DD HH:MM:SS) with which to filter the date_field. Returns price points with a timestamp at or after exact time provided in query. You can specify timezone in query - otherwise your site's time zone will be used. If provided, this parameter will be used instead of start_date. |
-| `filterType` | [`List`](../../doc/models/price-point-type.md) | Query, Optional | Allows fetching price points with matching type. Use in query: `filter[type]=catalog,custom`. |
+| `filter` | [`ListPricePointsFilter`](../../doc/models/list-price-points-filter.md) | Query, Optional | Filter to use for List PricePoints operations |
| `include` | [`ListProductsPricePointsInclude`](../../doc/models/list-products-price-points-include.md) | Query, Optional | Allows including additional data in the response. Use in query: `include=currency_prices`. |
| `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.
Use in query `page=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.
Use in query `per_page=200`. |
@@ -883,7 +875,23 @@ ListProductPricePointsResponse listAllProductPricePoints(
```java
ListAllProductPricePointsInput listAllProductPricePointsInput = new ListAllProductPricePointsInput.Builder()
-Liquid error: Value cannot be null. (Parameter 'key')Liquid error: Value cannot be null. (Parameter 'key')Liquid error: Value cannot be null. (Parameter 'key')Liquid error: Value cannot be null. (Parameter 'key')Liquid error: Value cannot be null. (Parameter 'key')Liquid error: Value cannot be null. (Parameter 'key')Liquid error: Value cannot be null. (Parameter 'key')Liquid error: Value cannot be null. (Parameter 'key') .include(ListProductsPricePointsInclude.CURRENCY_PRICES)
+ .filter(new ListPricePointsFilter.Builder()
+ .startDate(DateTimeHelper.fromSimpleDate("2011-12-17"))
+ .endDate(DateTimeHelper.fromSimpleDate("2011-12-15"))
+ .startDatetime(DateTimeHelper.fromRfc8601DateTime("12/19/2011 09:15:30"))
+ .endDatetime(DateTimeHelper.fromRfc8601DateTime("06/07/2019 17:20:06"))
+ .type(Arrays.asList(
+ PricePointType.CATALOG,
+ PricePointType.ENUM_DEFAULT,
+ PricePointType.CUSTOM
+ ))
+ .ids(Arrays.asList(
+ 1,
+ 2,
+ 3
+ ))
+ .build())
+ .include(ListProductsPricePointsInclude.CURRENCY_PRICES)
.page(2)
.perPage(50)
.build();
diff --git a/doc/controllers/products.md b/doc/controllers/products.md
index 37afbb56..8508a3f2 100644
--- a/doc/controllers/products.md
+++ b/doc/controllers/products.md
@@ -201,7 +201,6 @@ try {
"handle": "acme-products",
"accounting_code": null
},
- "public_signup_pages": [],
"product_price_point_name": "Default"
}
}
@@ -380,7 +379,6 @@ try {
"handle": "acme-products",
"accounting_code": null
},
- "public_signup_pages": [],
"product_price_point_name": "Default"
}
}
@@ -510,6 +508,7 @@ List listProducts(
| Parameter | Type | Tags | Description |
| --- | --- | --- | --- |
| `dateField` | [`BasicDateField`](../../doc/models/basic-date-field.md) | Query, Optional | The type of filter you would like to apply to your search.
Use in query: `date_field=created_at`. |
+| `filter` | [`ListProductsFilter`](../../doc/models/list-products-filter.md) | Query, Optional | Filter to use for List Products operations |
| `endDate` | `LocalDate` | Query, Optional | The end date (format YYYY-MM-DD) with which to filter the date_field. Returns products with a timestamp up to and including 11:59:59PM in your site’s time zone on the date specified. |
| `endDatetime` | `ZonedDateTime` | Query, Optional | The end date and time (format YYYY-MM-DD HH:MM:SS) with which to filter the date_field. Returns products with a timestamp at or before exact time provided in query. You can specify timezone in query - otherwise your site''s time zone will be used. If provided, this parameter will be used instead of end_date. |
| `startDate` | `LocalDate` | Query, Optional | The start date (format YYYY-MM-DD) with which to filter the date_field. Returns products with a timestamp at or after midnight (12:00:00 AM) in your site’s time zone on the date specified. |
@@ -518,8 +517,6 @@ List listProducts(
| `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.
Use in query `per_page=200`. |
| `includeArchived` | `Boolean` | Query, Optional | Include archived products. Use in query: `include_archived=true`. |
| `include` | [`ListProductsInclude`](../../doc/models/list-products-include.md) | Query, Optional | Allows including additional data in the response. Use in query `include=prepaid_product_price_point`. |
-| `filterPrepaidProductPricePointProductPricePointId` | [`IncludeNotNull`](../../doc/models/include-not-null.md) | Query, Optional | Allows fetching products only if a prepaid product price point is present or not. To use this filter you also have to include the following param in the request `include=prepaid_product_price_point`. Use in query `filter[prepaid_product_price_point][product_price_point_id]=not_null`. |
-| `filterUseSiteExchangeRate` | `Boolean` | Query, Optional | Allows fetching products with matching use_site_exchange_rate based on provided value (refers to default price point). Use in query `filter[use_site_exchange_rate]=true`. |
## Response Type
@@ -534,7 +531,7 @@ ListProductsInput listProductsInput = new ListProductsInput.Builder()
.perPage(50)
.includeArchived(true)
.include(ListProductsInclude.PREPAID_PRODUCT_PRICE_POINT)
-Liquid error: Value cannot be null. (Parameter 'key')Liquid error: Value cannot be null. (Parameter 'key') .build();
+ .build();
try {
List result = productsController.listProducts(listProductsInput);
diff --git a/doc/controllers/subscription-components.md b/doc/controllers/subscription-components.md
index 71107f32..c4fc619e 100644
--- a/doc/controllers/subscription-components.md
+++ b/doc/controllers/subscription-components.md
@@ -112,6 +112,7 @@ List listSubscriptionComponents(
| `subscriptionId` | `int` | Template, Required | The Chargify id of the subscription |
| `dateField` | [`SubscriptionListDateField`](../../doc/models/subscription-list-date-field.md) | Query, Optional | The type of filter you'd like to apply to your search. Use in query `date_field=updated_at`. |
| `direction` | [`SortingDirection`](../../doc/models/sorting-direction.md) | Query, Optional | Controls the order in which results are returned.
Use in query `direction=asc`. |
+| `filter` | [`ListSubscriptionComponentsFilter`](../../doc/models/list-subscription-components-filter.md) | Query, Optional | Filter to use for List Subscription Components operation |
| `endDate` | `String` | Query, Optional | The end date (format YYYY-MM-DD) with which to filter the date_field. Returns components with a timestamp up to and including 11:59:59PM in your site’s time zone on the date specified. |
| `endDatetime` | `String` | Query, Optional | The end date and time (format YYYY-MM-DD HH:MM:SS) with which to filter the date_field. Returns components with a timestamp at or before exact time provided in query. You can specify timezone in query - otherwise your site''s time zone will be used. If provided, this parameter will be used instead of end_date. |
| `pricePointIds` | [`IncludeNotNull`](../../doc/models/include-not-null.md) | Query, Optional | Allows fetching components allocation only if price point id is present. Use in query `price_point_ids=not_null`. |
@@ -120,8 +121,6 @@ List listSubscriptionComponents(
| `startDate` | `String` | Query, Optional | The start date (format YYYY-MM-DD) with which to filter the date_field. Returns components with a timestamp at or after midnight (12:00:00 AM) in your site’s time zone on the date specified. |
| `startDatetime` | `String` | Query, Optional | The start date and time (format YYYY-MM-DD HH:MM:SS) with which to filter the date_field. Returns components with a timestamp at or after exact time provided in query. You can specify timezone in query - otherwise your site''s time zone will be used. If provided, this parameter will be used instead of start_date. |
| `include` | [`ListSubscriptionComponentsInclude`](../../doc/models/list-subscription-components-include.md) | Query, Optional | Allows including additional data in the response. Use in query `include=subscription`. |
-| `filterUseSiteExchangeRate` | `Boolean` | Query, Optional | Allows fetching components allocation with matching use_site_exchange_rate based on provided value. Use in query `filter[use_site_exchange_rate]=true`. |
-| `filterCurrencies` | `List` | Query, Optional | Allows fetching components allocation with matching currency based on provided values. Use in query `filter[currencies]=EUR,USD`. |
## Response Type
@@ -134,6 +133,12 @@ ListSubscriptionComponentsInput listSubscriptionComponentsInput = new ListSubscr
222
)
.dateField(SubscriptionListDateField.UPDATED_AT)
+.filter(new ListSubscriptionComponentsFilter.Builder()
+ .currencies(Arrays.asList(
+ "EUR",
+ "USD"
+ ))
+ .build())
.pricePointIds(IncludeNotNull.NOT_NULL)
.productFamilyIds(Arrays.asList(
1,
@@ -142,7 +147,7 @@ ListSubscriptionComponentsInput listSubscriptionComponentsInput = new ListSubscr
))
.sort(ListSubscriptionComponentsSort.UPDATED_AT)
.include(ListSubscriptionComponentsInclude.SUBSCRIPTION)
-Liquid error: Value cannot be null. (Parameter 'key')Liquid error: Value cannot be null. (Parameter 'key').build();
+.build();
try {
List result = subscriptionComponentsController.listSubscriptionComponents(listSubscriptionComponentsInput);
@@ -402,8 +407,7 @@ try {
"description": "Duis",
"handle": "ea dolore dolore sunt",
"accounting_code": null
- },
- "public_signup_pages": []
+ }
}
}
}
@@ -1493,6 +1497,7 @@ ListSubscriptionComponentsResponse listSubscriptionComponentsForSite(
| `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.
Use in query `per_page=200`. |
| `sort` | [`ListSubscriptionComponentsSort`](../../doc/models/list-subscription-components-sort.md) | Query, Optional | The attribute by which to sort. Use in query: `sort=updated_at`. |
| `direction` | [`SortingDirection`](../../doc/models/sorting-direction.md) | Query, Optional | Controls the order in which results are returned.
Use in query `direction=asc`. |
+| `filter` | [`ListSubscriptionComponentsForSiteFilter`](../../doc/models/list-subscription-components-for-site-filter.md) | Query, Optional | Filter to use for List Subscription Components For Site operation |
| `dateField` | [`SubscriptionListDateField`](../../doc/models/subscription-list-date-field.md) | Query, Optional | The type of filter you'd like to apply to your search. Use in query: `date_field=updated_at`. |
| `startDate` | `String` | Query, Optional | The start date (format YYYY-MM-DD) with which to filter the date_field. Returns components with a timestamp at or after midnight (12:00:00 AM) in your site’s time zone on the date specified. Use in query `start_date=2011-12-15`. |
| `startDatetime` | `String` | Query, Optional | The start date and time (format YYYY-MM-DD HH:MM:SS) with which to filter the date_field. Returns components with a timestamp at or after exact time provided in query. You can specify timezone in query - otherwise your site''s time zone will be used. If provided, this parameter will be used instead of start_date. Use in query `start_datetime=2022-07-01 09:00:05`. |
@@ -1502,14 +1507,6 @@ ListSubscriptionComponentsResponse listSubscriptionComponentsForSite(
| `pricePointIds` | [`IncludeNotNull`](../../doc/models/include-not-null.md) | Query, Optional | Allows fetching components allocation only if price point id is present. Use in query `price_point_ids=not_null`. |
| `productFamilyIds` | `List` | Query, Optional | Allows fetching components allocation with matching product family id based on provided ids. Use in query `product_family_ids=1,2,3`. |
| `include` | [`ListSubscriptionComponentsInclude`](../../doc/models/list-subscription-components-include.md) | Query, Optional | Allows including additional data in the response. Use in query `include=subscription`. |
-| `filterUseSiteExchangeRate` | `Boolean` | Query, Optional | Allows fetching components allocation with matching use_site_exchange_rate based on provided value. Use in query `filter[use_site_exchange_rate]=true`. |
-| `filterCurrencies` | `List` | Query, Optional | Allows fetching components allocation with matching currency based on provided values. Use in query `filter[currencies]=USD,EUR`. |
-| `filterSubscriptionStates` | [`List`](../../doc/models/subscription-state-filter.md) | Query, Optional | Allows fetching components allocations that belong to the subscription with matching states based on provided values. To use this filter you also have to include the following param in the request `include=subscription`. Use in query `filter[subscription][states]=active,canceled&include=subscription`. |
-| `filterSubscriptionDateField` | [`SubscriptionListDateField`](../../doc/models/subscription-list-date-field.md) | Query, Optional | The type of filter you'd like to apply to your search. To use this filter you also have to include the following param in the request `include=subscription`. |
-| `filterSubscriptionStartDate` | `LocalDate` | Query, Optional | The start date (format YYYY-MM-DD) with which to filter the date_field. Returns components that belong to the subscription with a timestamp at or after midnight (12:00:00 AM) in your site’s time zone on the date specified. To use this filter you also have to include the following param in the request `include=subscription`. |
-| `filterSubscriptionStartDatetime` | `ZonedDateTime` | Query, Optional | The start date and time (format YYYY-MM-DD HH:MM:SS) with which to filter the date_field. Returns components that belong to the subscription with a timestamp at or after exact time provided in query. You can specify timezone in query - otherwise your site''s time zone will be used. If provided, this parameter will be used instead of start_date. To use this filter you also have to include the following param in the request `include=subscription`. |
-| `filterSubscriptionEndDate` | `LocalDate` | Query, Optional | The end date (format YYYY-MM-DD) with which to filter the date_field. Returns components that belong to the subscription with a timestamp up to and including 11:59:59PM in your site’s time zone on the date specified. To use this filter you also have to include the following param in the request `include=subscription`. |
-| `filterSubscriptionEndDatetime` | `ZonedDateTime` | Query, Optional | The end date and time (format YYYY-MM-DD HH:MM:SS) with which to filter the date_field. Returns components that belong to the subscription with a timestamp at or before exact time provided in query. You can specify timezone in query - otherwise your site''s time zone will be used. If provided, this parameter will be used instead of end_date. To use this filter you also have to include the following param in the request `include=subscription`. |
## Response Type
@@ -1522,6 +1519,12 @@ ListSubscriptionComponentsForSiteInput listSubscriptionComponentsForSiteInput =
.page(2)
.perPage(50)
.sort(ListSubscriptionComponentsSort.UPDATED_AT)
+ .filter(new ListSubscriptionComponentsForSiteFilter.Builder()
+ .currencies(Arrays.asList(
+ "EUR",
+ "USD"
+ ))
+ .build())
.dateField(SubscriptionListDateField.UPDATED_AT)
.subscriptionIds(Arrays.asList(
1,
@@ -1535,7 +1538,7 @@ ListSubscriptionComponentsForSiteInput listSubscriptionComponentsForSiteInput =
3
))
.include(ListSubscriptionComponentsInclude.SUBSCRIPTION)
-Liquid error: Value cannot be null. (Parameter 'key')Liquid error: Value cannot be null. (Parameter 'key')Liquid error: Value cannot be null. (Parameter 'key')Liquid error: Value cannot be null. (Parameter 'key')Liquid error: Value cannot be null. (Parameter 'key')Liquid error: Value cannot be null. (Parameter 'key')Liquid error: Value cannot be null. (Parameter 'key')Liquid error: Value cannot be null. (Parameter 'key') .build();
+ .build();
try {
ListSubscriptionComponentsResponse result = subscriptionComponentsController.listSubscriptionComponentsForSite(listSubscriptionComponentsForSiteInput);
diff --git a/doc/controllers/subscription-group-invoice-account.md b/doc/controllers/subscription-group-invoice-account.md
index 37bf4377..9d9d788f 100644
--- a/doc/controllers/subscription-group-invoice-account.md
+++ b/doc/controllers/subscription-group-invoice-account.md
@@ -84,11 +84,9 @@ ListSubscriptionGroupPrepaymentResponse listPrepaymentsForSubscriptionGroup(
| Parameter | Type | Tags | Description |
| --- | --- | --- | --- |
| `uid` | `String` | Template, Required | The uid of the subscription group |
-| `filterDateField` | [`ListSubscriptionGroupPrepaymentDateField`](../../doc/models/list-subscription-group-prepayment-date-field.md) | Query, Optional | The type of filter you would like to apply to your search.
Use in query: `filter[date_field]=created_at`. |
-| `filterEndDate` | `LocalDate` | Query, Optional | The end date (format YYYY-MM-DD) with which to filter the date_field.
Returns prepayments with a timestamp up to and including 11:59:59PM in your site's time zone on the date specified.
Use in query: `filter[end_date]=2011-12-15`. |
-| `filterStartDate` | `LocalDate` | Query, Optional | The start date (format YYYY-MM-DD) with which to filter the date_field.
Returns prepayments with a timestamp at or after midnight (12:00:00 AM) in your site's time zone on the date specified.
Use in query: `filter[start_date]=2011-12-15`. |
| `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.
Use in query `page=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.
Use in query `per_page=200`. |
+| `filter` | [`ListPrepaymentsFilter`](../../doc/models/list-prepayments-filter.md) | Query, Optional | Filter to use for List Prepayments operations |
## Response Type
@@ -100,8 +98,13 @@ ListSubscriptionGroupPrepaymentResponse listPrepaymentsForSubscriptionGroup(
ListPrepaymentsForSubscriptionGroupInput listPrepaymentsForSubscriptionGroupInput = new ListPrepaymentsForSubscriptionGroupInput.Builder(
"uid0"
)
-Liquid error: Value cannot be null. (Parameter 'key')Liquid error: Value cannot be null. (Parameter 'key')Liquid error: Value cannot be null. (Parameter 'key').page(2)
+.page(2)
.perPage(50)
+.filter(new ListPrepaymentsFilter.Builder()
+ .dateField(ListPrepaymentDateField.CREATED_AT)
+ .startDate(DateTimeHelper.fromSimpleDate("2024-01-01"))
+ .endDate(DateTimeHelper.fromSimpleDate("2024-01-31"))
+ .build())
.build();
try {
diff --git a/doc/controllers/subscription-groups.md b/doc/controllers/subscription-groups.md
index 97048bc5..8e4f426e 100644
--- a/doc/controllers/subscription-groups.md
+++ b/doc/controllers/subscription-groups.md
@@ -194,7 +194,10 @@ ListSubscriptionGroupsResponse listSubscriptionGroups(
ListSubscriptionGroupsInput listSubscriptionGroupsInput = new ListSubscriptionGroupsInput.Builder()
.page(2)
.perPage(50)
-Liquid error: Value cannot be null. (Parameter 'key') .build();
+ .include(Arrays.asList(
+ SubscriptionGroupsListInclude.ACCOUNT_BALANCES
+ ))
+ .build();
try {
ListSubscriptionGroupsResponse result = subscriptionGroupsController.listSubscriptionGroups(listSubscriptionGroupsInput);
@@ -274,8 +277,12 @@ FullSubscriptionGroupResponse readSubscriptionGroup(
```java
String uid = "uid0";
-Liquid error: Value cannot be null. (Parameter 'key')try {
- FullSubscriptionGroupResponse result = subscriptionGroupsController.readSubscriptionGroup(uid, Liquid error: Value cannot be null. (Parameter 'key'));
+List include = Arrays.asList(
+ SubscriptionGroupInclude.CURRENT_BILLING_AMOUNT_IN_CENTS
+);
+
+try {
+ FullSubscriptionGroupResponse result = subscriptionGroupsController.readSubscriptionGroup(uid, include);
System.out.println(result);
} catch (ApiException e) {
e.printStackTrace();
@@ -330,7 +337,7 @@ Liquid error: Value cannot be null. (Parameter 'key')try {
# Update Subscription Group Members
Use this endpoint to update subscription group members.
-`"member_ids": []` should contain an array of both subscription IDs to set as group members and subscription IDs already present in the groups. Not including them will result in removing them from subscription group. To clean up members, just leave the array empty.
+`"member_ids"` should contain an array of both subscription IDs to set as group members and subscription IDs already present in the groups. Not including them will result in removing them from subscription group. To clean up members, just leave the array empty.
```java
SubscriptionGroupResponse updateSubscriptionGroupMembers(
diff --git a/doc/controllers/subscription-invoice-account.md b/doc/controllers/subscription-invoice-account.md
index 7b8292ab..e9543089 100644
--- a/doc/controllers/subscription-invoice-account.md
+++ b/doc/controllers/subscription-invoice-account.md
@@ -144,9 +144,7 @@ PrepaymentsResponse listPrepayments(
| `subscriptionId` | `int` | Template, Required | The Chargify id of the subscription |
| `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.
Use in query `page=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.
Use in query `per_page=200`. |
-| `filterDateField` | [`BasicDateField`](../../doc/models/basic-date-field.md) | Query, Optional | The type of filter you would like to apply to your search. created_at - Time when prepayment was created. application_at - Time when prepayment was applied to invoice. Use in query `filter[date_field]=created_at`. |
-| `filterStartDate` | `LocalDate` | Query, Optional | The start date (format YYYY-MM-DD) with which to filter the date_field. Returns prepayments with a timestamp at or after midnight (12:00:00 AM) in your site’s time zone on the date specified. Use in query `filter[start_date]=2011-12-15`. |
-| `filterEndDate` | `LocalDate` | Query, Optional | The end date (format YYYY-MM-DD) with which to filter the date_field. Returns prepayments with a timestamp up to and including 11:59:59PM in your site’s time zone on the date specified. Use in query `filter[end_date]=2011-12-15`. |
+| `filter` | [`ListPrepaymentsFilter`](../../doc/models/list-prepayments-filter.md) | Query, Optional | Filter to use for List Prepayments operations |
## Response Type
@@ -160,7 +158,12 @@ ListPrepaymentsInput listPrepaymentsInput = new ListPrepaymentsInput.Builder(
)
.page(2)
.perPage(50)
-Liquid error: Value cannot be null. (Parameter 'key')Liquid error: Value cannot be null. (Parameter 'key')Liquid error: Value cannot be null. (Parameter 'key').build();
+.filter(new ListPrepaymentsFilter.Builder()
+ .dateField(ListPrepaymentDateField.CREATED_AT)
+ .startDate(DateTimeHelper.fromSimpleDate("2024-01-01"))
+ .endDate(DateTimeHelper.fromSimpleDate("2024-01-31"))
+ .build())
+.build();
try {
PrepaymentsResponse result = subscriptionInvoiceAccountController.listPrepayments(listPrepaymentsInput);
diff --git a/doc/controllers/subscription-status.md b/doc/controllers/subscription-status.md
index 5b4a0832..663702d0 100644
--- a/doc/controllers/subscription-status.md
+++ b/doc/controllers/subscription-status.md
@@ -110,7 +110,6 @@ try {
"coupon_uses_allowed": null,
"reason_code": null,
"automatically_resume_at": null,
- "coupon_codes": [],
"offer_id": null,
"credit_balance_in_cents": 0,
"prepayment_balance_in_cents": 0,
@@ -785,7 +784,6 @@ try {
"coupon_uses_allowed": null,
"reason_code": null,
"automatically_resume_at": "2019-01-20T00:00:00-06:00",
- "coupon_codes": [],
"customer": {
"id": 19948683,
"first_name": "Vanessa",
@@ -842,8 +840,7 @@ try {
"description": "",
"handle": "acme-products",
"accounting_code": null
- },
- "public_signup_pages": []
+ }
},
"credit_card": {
"id": 13826563,
diff --git a/doc/controllers/subscriptions.md b/doc/controllers/subscriptions.md
index a0ceee4a..f335d82f 100644
--- a/doc/controllers/subscriptions.md
+++ b/doc/controllers/subscriptions.md
@@ -902,7 +902,10 @@ ListSubscriptionsInput listSubscriptionsInput = new ListSubscriptionsInput.Build
.startDatetime(DateTimeHelper.fromRfc8601DateTime("2022-07-01 09:00:05"))
.endDatetime(DateTimeHelper.fromRfc8601DateTime("2022-08-01 10:00:05"))
.sort(SubscriptionSort.SIGNUP_DATE)
-Liquid error: Value cannot be null. (Parameter 'key') .build();
+ .include(Arrays.asList(
+ SubscriptionListInclude.SELF_SERVICE_PAGE_TOKEN
+ ))
+ .build();
try {
List result = subscriptionsController.listSubscriptions(listSubscriptionsInput);
@@ -1148,8 +1151,13 @@ SubscriptionResponse readSubscription(
```java
int subscriptionId = 222;
-Liquid error: Value cannot be null. (Parameter 'key')try {
- SubscriptionResponse result = subscriptionsController.readSubscription(subscriptionId, Liquid error: Value cannot be null. (Parameter 'key'));
+List include = Arrays.asList(
+ SubscriptionInclude.COUPONS,
+ SubscriptionInclude.SELF_SERVICE_PAGE_TOKEN
+);
+
+try {
+ SubscriptionResponse result = subscriptionsController.readSubscription(subscriptionId, include);
System.out.println(result);
} catch (ApiException e) {
e.printStackTrace();
@@ -1436,8 +1444,13 @@ Void purgeSubscription(
```java
int subscriptionId = 222;
int ack = 252;
-Liquid error: Value cannot be null. (Parameter 'key')try {
- subscriptionsController.purgeSubscription(subscriptionId, ack, Liquid error: Value cannot be null. (Parameter 'key'));
+List cascade = Arrays.asList(
+ SubscriptionPurgeType.CUSTOMER,
+ SubscriptionPurgeType.PAYMENT_PROFILE
+);
+
+try {
+ subscriptionsController.purgeSubscription(subscriptionId, ack, cascade);
} catch (ApiException e) {
e.printStackTrace();
} catch (IOException e) {
diff --git a/doc/models/allocation.md b/doc/models/allocation.md
index 096838b9..f0c809e7 100644
--- a/doc/models/allocation.md
+++ b/doc/models/allocation.md
@@ -30,7 +30,7 @@
| `InitiateDunning` | `Boolean` | Optional | If true, if the immediate component payment fails, initiate dunning for the subscription.
Otherwise, leave the charges on the subscription to pay for at renewal. | Boolean getInitiateDunning() | setInitiateDunning(Boolean initiateDunning) |
| `UpgradeCharge` | [`CreditType`](../../doc/models/credit-type.md) | Optional | The type of credit to be created when upgrading/downgrading. Defaults to the component and then site setting if one is not provided.
Available values: `full`, `prorated`, `none`. | CreditType getUpgradeCharge() | setUpgradeCharge(CreditType upgradeCharge) |
| `DowngradeCredit` | [`CreditType`](../../doc/models/credit-type.md) | Optional | The type of credit to be created when upgrading/downgrading. Defaults to the component and then site setting if one is not provided.
Available values: `full`, `prorated`, `none`. | CreditType getDowngradeCredit() | setDowngradeCredit(CreditType downgradeCredit) |
-| `Payment` | [`AllocationPayment`](../../doc/models/containers/allocation-payment.md) | Optional | This is a container for one-of cases. | AllocationPayment getPayment() | setPayment(AllocationPayment payment) |
+| `Payment` | [`PaymentForAllocation`](../../doc/models/payment-for-allocation.md) | Optional | - | PaymentForAllocation getPayment() | setPayment(PaymentForAllocation payment) |
| `ExpiresAt` | `ZonedDateTime` | Optional | - | ZonedDateTime getExpiresAt() | setExpiresAt(ZonedDateTime expiresAt) |
| `UsedQuantity` | `Long` | Optional | - | Long getUsedQuantity() | setUsedQuantity(Long usedQuantity) |
| `ChargeId` | `Long` | Optional | - | Long getChargeId() | setChargeId(Long chargeId) |
diff --git a/doc/models/component-price-point.md b/doc/models/component-price-point.md
index 8fc4cdad..a6822a74 100644
--- a/doc/models/component-price-point.md
+++ b/doc/models/component-price-point.md
@@ -24,7 +24,7 @@
| `SubscriptionId` | `Integer` | Optional | (only used for Custom Pricing - ie. when the price point's type is `custom`) The id of the subscription that the custom price point is for. | Integer getSubscriptionId() | setSubscriptionId(Integer subscriptionId) |
| `TaxIncluded` | `Boolean` | Optional | - | Boolean getTaxIncluded() | setTaxIncluded(Boolean taxIncluded) |
| `Interval` | `Integer` | Optional | The numerical interval. i.e. an interval of ‘30’ coupled with an interval_unit of day would mean this component price point would renew every 30 days. This property is only available for sites with Multifrequency enabled. | Integer getInterval() | setInterval(Integer interval) |
-| `IntervalUnit` | [`ComponentPricePointIntervalUnit`](../../doc/models/containers/component-price-point-interval-unit.md) | Optional | This is a container for one-of cases. | ComponentPricePointIntervalUnit getIntervalUnit() | setIntervalUnit(ComponentPricePointIntervalUnit intervalUnit) |
+| `IntervalUnit` | [`IntervalUnit`](../../doc/models/interval-unit.md) | Optional | A string representing the interval unit for this component price point, either month or day. This property is only available for sites with Multifrequency enabled. | IntervalUnit getIntervalUnit() | setIntervalUnit(IntervalUnit intervalUnit) |
| `CurrencyPrices` | [`List`](../../doc/models/component-currency-price.md) | Optional | An array of currency pricing data is available when multiple currencies are defined for the site. It varies based on the use_site_exchange_rate setting for the price point. This parameter is present only in the response of read endpoints, after including the appropriate query parameter. | List getCurrencyPrices() | setCurrencyPrices(List currencyPrices) |
## Example (as JSON)
diff --git a/doc/models/component-response.md b/doc/models/component-response.md
index a6e4eee6..2095c6c6 100644
--- a/doc/models/component-response.md
+++ b/doc/models/component-response.md
@@ -20,7 +20,7 @@
"id": 80,
"name": "name8",
"handle": "handle4",
- "pricing_scheme": "tiered",
+ "pricing_scheme": "per_unit",
"unit_name": "unit_name0"
}
}
diff --git a/doc/models/component.md b/doc/models/component.md
index c77de4a7..03d058e0 100644
--- a/doc/models/component.md
+++ b/doc/models/component.md
@@ -12,7 +12,7 @@
| `Id` | `Integer` | Optional | The unique ID assigned to the component by Chargify. This ID can be used to fetch the component from the API. | Integer getId() | setId(Integer id) |
| `Name` | `String` | Optional | The name of the Component, suitable for display on statements. i.e. Text Messages. | String getName() | setName(String name) |
| `Handle` | `String` | Optional | The component API handle | String getHandle() | setHandle(String handle) |
-| `PricingScheme` | [`ComponentPricingScheme`](../../doc/models/containers/component-pricing-scheme.md) | Optional | This is a container for one-of cases. | ComponentPricingScheme getPricingScheme() | setPricingScheme(ComponentPricingScheme pricingScheme) |
+| `PricingScheme` | [`PricingScheme`](../../doc/models/pricing-scheme.md) | Optional | - | PricingScheme getPricingScheme() | setPricingScheme(PricingScheme pricingScheme) |
| `UnitName` | `String` | Optional | The name of the unit that the component’s usage is measured in. i.e. message | String getUnitName() | setUnitName(String unitName) |
| `UnitPrice` | `String` | Optional | The amount the customer will be charged per unit. This field is only populated for ‘per_unit’ pricing schemes, otherwise it may be null. | String getUnitPrice() | setUnitPrice(String unitPrice) |
| `ProductFamilyId` | `Integer` | Optional | The id of the Product Family to which the Component belongs | Integer getProductFamilyId() | setProductFamilyId(Integer productFamilyId) |
@@ -52,7 +52,7 @@
"id": 24,
"name": "name2",
"handle": "handle8",
- "pricing_scheme": "tiered",
+ "pricing_scheme": "per_unit",
"unit_name": "unit_name4"
}
```
diff --git a/doc/models/containers/allocation-payment.md b/doc/models/containers/allocation-payment.md
deleted file mode 100644
index 51632999..00000000
--- a/doc/models/containers/allocation-payment.md
+++ /dev/null
@@ -1,13 +0,0 @@
-
-# Allocation Payment
-
-## Class Name
-
-`AllocationPayment`
-
-## Cases
-
-| Type | Factory Method |
-| --- | --- |
-| [`PaymentForAllocation`](../../../doc/models/payment-for-allocation.md) | AllocationPayment.fromPaymentForAllocation(PaymentForAllocation paymentForAllocation) |
-
diff --git a/doc/models/containers/component-price-point-interval-unit.md b/doc/models/containers/component-price-point-interval-unit.md
deleted file mode 100644
index b05542dc..00000000
--- a/doc/models/containers/component-price-point-interval-unit.md
+++ /dev/null
@@ -1,13 +0,0 @@
-
-# Component Price Point Interval Unit
-
-## Class Name
-
-`ComponentPricePointIntervalUnit`
-
-## Cases
-
-| Type | Factory Method |
-| --- | --- |
-| [`IntervalUnit`](../../../doc/models/interval-unit.md) | ComponentPricePointIntervalUnit.fromIntervalUnit(IntervalUnit intervalUnit) |
-
diff --git a/doc/models/containers/component-pricing-scheme.md b/doc/models/containers/component-pricing-scheme.md
deleted file mode 100644
index cb94f1e4..00000000
--- a/doc/models/containers/component-pricing-scheme.md
+++ /dev/null
@@ -1,13 +0,0 @@
-
-# Component Pricing Scheme
-
-## Class Name
-
-`ComponentPricingScheme`
-
-## Cases
-
-| Type | Factory Method |
-| --- | --- |
-| [`PricingScheme`](../../../doc/models/pricing-scheme.md) | ComponentPricingScheme.fromPricingScheme(PricingScheme pricingScheme) |
-
diff --git a/doc/models/containers/customer-change-billing-address.md b/doc/models/containers/customer-change-billing-address.md
deleted file mode 100644
index 42d55667..00000000
--- a/doc/models/containers/customer-change-billing-address.md
+++ /dev/null
@@ -1,13 +0,0 @@
-
-# Customer Change Billing Address
-
-## Class Name
-
-`CustomerChangeBillingAddress`
-
-## Cases
-
-| Type | Factory Method |
-| --- | --- |
-| [`AddressChange`](../../../doc/models/address-change.md) | CustomerChangeBillingAddress.fromAddressChange(AddressChange addressChange) |
-
diff --git a/doc/models/containers/customer-change-custom-fields.md b/doc/models/containers/customer-change-custom-fields.md
deleted file mode 100644
index 587565bf..00000000
--- a/doc/models/containers/customer-change-custom-fields.md
+++ /dev/null
@@ -1,13 +0,0 @@
-
-# Customer Change Custom Fields
-
-## Class Name
-
-`CustomerChangeCustomFields`
-
-## Cases
-
-| Type | Factory Method |
-| --- | --- |
-| [`CustomerCustomFieldsChange`](../../../doc/models/customer-custom-fields-change.md) | CustomerChangeCustomFields.fromCustomerCustomFieldsChange(CustomerCustomFieldsChange customerCustomFieldsChange) |
-
diff --git a/doc/models/containers/customer-change-payer.md b/doc/models/containers/customer-change-payer.md
deleted file mode 100644
index 8018dd70..00000000
--- a/doc/models/containers/customer-change-payer.md
+++ /dev/null
@@ -1,13 +0,0 @@
-
-# Customer Change Payer
-
-## Class Name
-
-`CustomerChangePayer`
-
-## Cases
-
-| Type | Factory Method |
-| --- | --- |
-| [`CustomerPayerChange`](../../../doc/models/customer-payer-change.md) | CustomerChangePayer.fromCustomerPayerChange(CustomerPayerChange customerPayerChange) |
-
diff --git a/doc/models/containers/customer-change-shipping-address.md b/doc/models/containers/customer-change-shipping-address.md
deleted file mode 100644
index f715f824..00000000
--- a/doc/models/containers/customer-change-shipping-address.md
+++ /dev/null
@@ -1,13 +0,0 @@
-
-# Customer Change Shipping Address
-
-## Class Name
-
-`CustomerChangeShippingAddress`
-
-## Cases
-
-| Type | Factory Method |
-| --- | --- |
-| [`AddressChange`](../../../doc/models/address-change.md) | CustomerChangeShippingAddress.fromAddressChange(AddressChange addressChange) |
-
diff --git a/doc/models/containers/invoice-line-item-component-cost-data-2.md b/doc/models/containers/invoice-line-item-component-cost-data-2.md
deleted file mode 100644
index b90cacaf..00000000
--- a/doc/models/containers/invoice-line-item-component-cost-data-2.md
+++ /dev/null
@@ -1,13 +0,0 @@
-
-# Invoice Line Item Component Cost Data 2
-
-## Class Name
-
-`InvoiceLineItemComponentCostData2`
-
-## Cases
-
-| Type | Factory Method |
-| --- | --- |
-| [`InvoiceLineItemComponentCostData`](../../../doc/models/invoice-line-item-component-cost-data.md) | InvoiceLineItemComponentCostData2.fromInvoiceLineItemComponentCostData(InvoiceLineItemComponentCostData invoiceLineItemComponentCostData) |
-
diff --git a/doc/models/containers/product-expiration-interval-unit.md b/doc/models/containers/product-expiration-interval-unit.md
deleted file mode 100644
index 1ef7e2b9..00000000
--- a/doc/models/containers/product-expiration-interval-unit.md
+++ /dev/null
@@ -1,13 +0,0 @@
-
-# Product Expiration Interval Unit
-
-## Class Name
-
-`ProductExpirationIntervalUnit`
-
-## Cases
-
-| Type | Factory Method |
-| --- | --- |
-| [`ExtendedIntervalUnit`](../../../doc/models/extended-interval-unit.md) | ProductExpirationIntervalUnit.fromExtendedIntervalUnit(ExtendedIntervalUnit extendedIntervalUnit) |
-
diff --git a/doc/models/containers/product-trial-interval-unit.md b/doc/models/containers/product-trial-interval-unit.md
deleted file mode 100644
index 3529a8f3..00000000
--- a/doc/models/containers/product-trial-interval-unit.md
+++ /dev/null
@@ -1,13 +0,0 @@
-
-# Product Trial Interval Unit
-
-## Class Name
-
-`ProductTrialIntervalUnit`
-
-## Cases
-
-| Type | Factory Method |
-| --- | --- |
-| [`IntervalUnit`](../../../doc/models/interval-unit.md) | ProductTrialIntervalUnit.fromIntervalUnit(IntervalUnit intervalUnit) |
-
diff --git a/doc/models/containers/record-payment-response-prepayment.md b/doc/models/containers/record-payment-response-prepayment.md
deleted file mode 100644
index 546d61f1..00000000
--- a/doc/models/containers/record-payment-response-prepayment.md
+++ /dev/null
@@ -1,13 +0,0 @@
-
-# Record Payment Response Prepayment
-
-## Class Name
-
-`RecordPaymentResponsePrepayment`
-
-## Cases
-
-| Type | Factory Method |
-| --- | --- |
-| [`InvoicePrePayment`](../../../doc/models/invoice-pre-payment.md) | RecordPaymentResponsePrepayment.fromInvoicePrePayment(InvoicePrePayment invoicePrePayment) |
-
diff --git a/doc/models/containers/subscription-component-pricing-scheme.md b/doc/models/containers/subscription-component-pricing-scheme.md
deleted file mode 100644
index a285ca18..00000000
--- a/doc/models/containers/subscription-component-pricing-scheme.md
+++ /dev/null
@@ -1,13 +0,0 @@
-
-# Subscription Component Pricing Scheme
-
-## Class Name
-
-`SubscriptionComponentPricingScheme`
-
-## Cases
-
-| Type | Factory Method |
-| --- | --- |
-| [`PricingScheme`](../../../doc/models/pricing-scheme.md) | SubscriptionComponentPricingScheme.fromPricingScheme(PricingScheme pricingScheme) |
-
diff --git a/doc/models/containers/subscription-group-2.md b/doc/models/containers/subscription-group-2.md
deleted file mode 100644
index a146fb13..00000000
--- a/doc/models/containers/subscription-group-2.md
+++ /dev/null
@@ -1,13 +0,0 @@
-
-# Subscription Group 2
-
-## Class Name
-
-`SubscriptionGroup2`
-
-## Cases
-
-| Type | Factory Method |
-| --- | --- |
-| [`NestedSubscriptionGroup`](../../../doc/models/nested-subscription-group.md) | SubscriptionGroup2.fromNestedSubscriptionGroup(NestedSubscriptionGroup nestedSubscriptionGroup) |
-
diff --git a/doc/models/containers/void-invoice-event-data-credit-note-attributes.md b/doc/models/containers/void-invoice-event-data-credit-note-attributes.md
deleted file mode 100644
index d75536dd..00000000
--- a/doc/models/containers/void-invoice-event-data-credit-note-attributes.md
+++ /dev/null
@@ -1,13 +0,0 @@
-
-# Void Invoice Event Data Credit Note Attributes
-
-## Class Name
-
-`VoidInvoiceEventDataCreditNoteAttributes`
-
-## Cases
-
-| Type | Factory Method |
-| --- | --- |
-| [`CreditNote`](../../../doc/models/credit-note.md) | VoidInvoiceEventDataCreditNoteAttributes.fromCreditNote(CreditNote creditNote) |
-
diff --git a/doc/models/customer-change.md b/doc/models/customer-change.md
index 6cbd6dd6..9ff0cfe5 100644
--- a/doc/models/customer-change.md
+++ b/doc/models/customer-change.md
@@ -9,10 +9,10 @@
| Name | Type | Tags | Description | Getter | Setter |
| --- | --- | --- | --- | --- | --- |
-| `Payer` | [`CustomerChangePayer`](../../doc/models/containers/customer-change-payer.md) | Optional | This is a container for one-of cases. | CustomerChangePayer getPayer() | setPayer(CustomerChangePayer payer) |
-| `ShippingAddress` | [`CustomerChangeShippingAddress`](../../doc/models/containers/customer-change-shipping-address.md) | Optional | This is a container for one-of cases. | CustomerChangeShippingAddress getShippingAddress() | setShippingAddress(CustomerChangeShippingAddress shippingAddress) |
-| `BillingAddress` | [`CustomerChangeBillingAddress`](../../doc/models/containers/customer-change-billing-address.md) | Optional | This is a container for one-of cases. | CustomerChangeBillingAddress getBillingAddress() | setBillingAddress(CustomerChangeBillingAddress billingAddress) |
-| `CustomFields` | [`CustomerChangeCustomFields`](../../doc/models/containers/customer-change-custom-fields.md) | Optional | This is a container for one-of cases. | CustomerChangeCustomFields getCustomFields() | setCustomFields(CustomerChangeCustomFields customFields) |
+| `Payer` | [`CustomerPayerChange`](../../doc/models/customer-payer-change.md) | Optional | - | CustomerPayerChange getPayer() | setPayer(CustomerPayerChange payer) |
+| `ShippingAddress` | [`AddressChange`](../../doc/models/address-change.md) | Optional | - | AddressChange getShippingAddress() | setShippingAddress(AddressChange shippingAddress) |
+| `BillingAddress` | [`AddressChange`](../../doc/models/address-change.md) | Optional | - | AddressChange getBillingAddress() | setBillingAddress(AddressChange billingAddress) |
+| `CustomFields` | [`CustomerCustomFieldsChange`](../../doc/models/customer-custom-fields-change.md) | Optional | - | CustomerCustomFieldsChange getCustomFields() | setCustomFields(CustomerCustomFieldsChange customFields) |
## Example (as JSON)
@@ -66,6 +66,13 @@
},
"custom_fields": {
"before": [
+ {
+ "owner_id": 26,
+ "owner_type": "Customer",
+ "name": "name0",
+ "value": "value2",
+ "metadatum_id": 26
+ },
{
"owner_id": 26,
"owner_type": "Customer",
@@ -82,6 +89,13 @@
"value": "value4",
"metadatum_id": 130
},
+ {
+ "owner_id": 130,
+ "owner_type": "Customer",
+ "name": "name2",
+ "value": "value4",
+ "metadatum_id": 130
+ },
{
"owner_id": 130,
"owner_type": "Customer",
diff --git a/doc/models/customer-changes-preview-response.md b/doc/models/customer-changes-preview-response.md
index d6a4f973..85ab20bb 100644
--- a/doc/models/customer-changes-preview-response.md
+++ b/doc/models/customer-changes-preview-response.md
@@ -64,6 +64,13 @@
},
"custom_fields": {
"before": [
+ {
+ "owner_id": 26,
+ "owner_type": "Customer",
+ "name": "name0",
+ "value": "value2",
+ "metadatum_id": 26
+ },
{
"owner_id": 26,
"owner_type": "Customer",
@@ -80,6 +87,13 @@
"value": "value4",
"metadatum_id": 130
},
+ {
+ "owner_id": 130,
+ "owner_type": "Customer",
+ "name": "name2",
+ "value": "value4",
+ "metadatum_id": 130
+ },
{
"owner_id": 130,
"owner_type": "Customer",
diff --git a/doc/models/invoice-line-item.md b/doc/models/invoice-line-item.md
index a6148087..a3e5efe3 100644
--- a/doc/models/invoice-line-item.md
+++ b/doc/models/invoice-line-item.md
@@ -27,7 +27,7 @@
| `ComponentId` | `Integer` | Optional | The ID of the component being billed. Will be `nil` for non-component charges. | Integer getComponentId() | setComponentId(Integer componentId) |
| `PricePointId` | `Integer` | Optional | The price point ID of the component being billed. Will be `nil` for non-component charges. | Integer getPricePointId() | setPricePointId(Integer pricePointId) |
| `Hide` | `Boolean` | Optional | - | Boolean getHide() | setHide(Boolean hide) |
-| `ComponentCostData` | [`InvoiceLineItemComponentCostData2`](../../doc/models/containers/invoice-line-item-component-cost-data-2.md) | Optional | This is a container for one-of cases. | InvoiceLineItemComponentCostData2 getComponentCostData() | setComponentCostData(InvoiceLineItemComponentCostData2 componentCostData) |
+| `ComponentCostData` | [`InvoiceLineItemComponentCostData`](../../doc/models/invoice-line-item-component-cost-data.md) | Optional | - | InvoiceLineItemComponentCostData getComponentCostData() | setComponentCostData(InvoiceLineItemComponentCostData componentCostData) |
| `ProductPricePointId` | `Integer` | Optional | The price point ID of the line item's product | Integer getProductPricePointId() | setProductPricePointId(Integer productPricePointId) |
| `CustomItem` | `Boolean` | Optional | - | Boolean getCustomItem() | setCustomItem(Boolean customItem) |
| `Kind` | `String` | Optional | - | String getKind() | setKind(String kind) |
diff --git a/doc/models/list-components-filter.md b/doc/models/list-components-filter.md
new file mode 100644
index 00000000..79c4010b
--- /dev/null
+++ b/doc/models/list-components-filter.md
@@ -0,0 +1,27 @@
+
+# List Components Filter
+
+## Structure
+
+`ListComponentsFilter`
+
+## Fields
+
+| Name | Type | Tags | Description | Getter | Setter |
+| --- | --- | --- | --- | --- | --- |
+| `Ids` | `List` | Optional | Allows fetching components with matching id based on provided value. Use in query `filter[ids]=1,2,3`.
**Constraints**: *Minimum Items*: `1` | List getIds() | setIds(List ids) |
+| `UseSiteExchangeRate` | `Boolean` | Optional | Allows fetching components with matching use_site_exchange_rate based on provided value (refers to default price point). Use in query `filter[use_site_exchange_rate]=true`. | Boolean getUseSiteExchangeRate() | setUseSiteExchangeRate(Boolean useSiteExchangeRate) |
+
+## Example (as JSON)
+
+```json
+{
+ "ids": [
+ 1,
+ 2,
+ 3
+ ],
+ "use_site_exchange_rate": false
+}
+```
+
diff --git a/doc/models/list-coupons-filter.md b/doc/models/list-coupons-filter.md
new file mode 100644
index 00000000..72c3de63
--- /dev/null
+++ b/doc/models/list-coupons-filter.md
@@ -0,0 +1,41 @@
+
+# List Coupons Filter
+
+## Structure
+
+`ListCouponsFilter`
+
+## Fields
+
+| Name | Type | Tags | Description | Getter | Setter |
+| --- | --- | --- | --- | --- | --- |
+| `DateField` | [`BasicDateField`](../../doc/models/basic-date-field.md) | Optional | The type of filter you would like to apply to your search. Use in query `filter[date_field]=created_at`. | BasicDateField getDateField() | setDateField(BasicDateField dateField) |
+| `StartDate` | `LocalDate` | Optional | The start date (format YYYY-MM-DD) with which to filter the date_field. Returns coupons with a timestamp at or after midnight (12:00:00 AM) in your site’s time zone on the date specified. Use in query `filter[start_date]=2011-12-17`. | LocalDate getStartDate() | setStartDate(LocalDate startDate) |
+| `EndDate` | `LocalDate` | Optional | The end date (format YYYY-MM-DD) with which to filter the date_field. Returns coupons with a timestamp up to and including 11:59:59PM in your site’s time zone on the date specified. Use in query `filter[end_date]=2011-12-15`. | LocalDate getEndDate() | setEndDate(LocalDate endDate) |
+| `StartDatetime` | `ZonedDateTime` | Optional | The start date and time (format YYYY-MM-DD HH:MM:SS) with which to filter the date_field. Returns coupons with a timestamp at or after exact time provided in query. You can specify timezone in query - otherwise your site's time zone will be used. If provided, this parameter will be used instead of start_date. Use in query `filter[start_datetime]=2011-12-19T10:15:30+01:00`. | ZonedDateTime getStartDatetime() | setStartDatetime(ZonedDateTime startDatetime) |
+| `EndDatetime` | `ZonedDateTime` | Optional | The end date and time (format YYYY-MM-DD HH:MM:SS) with which to filter the date_field. Returns coupons with a timestamp at or before exact time provided in query. You can specify timezone in query - otherwise your site's time zone will be used. If provided, this parameter will be used instead of end_date. Use in query `filter[end_datetime]=2011-12-1T10:15:30+01:00`. | ZonedDateTime getEndDatetime() | setEndDatetime(ZonedDateTime endDatetime) |
+| `Ids` | `List` | Optional | Allows fetching coupons with matching id based on provided values. Use in query `filter[ids]=1,2,3`.
**Constraints**: *Minimum Items*: `1` | List getIds() | setIds(List ids) |
+| `Codes` | `List` | Optional | Allows fetching coupons with matching codes based on provided values. Use in query `filter[codes]=free,free_trial`. | List getCodes() | setCodes(List codes) |
+| `UseSiteExchangeRate` | `Boolean` | Optional | Allows fetching coupons with matching use_site_exchange_rate based on provided value. Use in query `filter[use_site_exchange_rate]=true`. | Boolean getUseSiteExchangeRate() | setUseSiteExchangeRate(Boolean useSiteExchangeRate) |
+
+## Example (as JSON)
+
+```json
+{
+ "start_date": "2011-12-17",
+ "end_date": "2011-12-15",
+ "start_datetime": "12/19/2011 09:15:30",
+ "end_datetime": "06/07/2019 17:20:06",
+ "ids": [
+ 1,
+ 2,
+ 3
+ ],
+ "codes": [
+ "free",
+ "free_trial"
+ ],
+ "date_field": "updated_at"
+}
+```
+
diff --git a/doc/models/list-mrr-filter.md b/doc/models/list-mrr-filter.md
new file mode 100644
index 00000000..ce2e7761
--- /dev/null
+++ b/doc/models/list-mrr-filter.md
@@ -0,0 +1,25 @@
+
+# List Mrr Filter
+
+## Structure
+
+`ListMrrFilter`
+
+## Fields
+
+| Name | Type | Tags | Description | Getter | Setter |
+| --- | --- | --- | --- | --- | --- |
+| `SubscriptionIds` | `List` | Optional | Submit ids in order to limit results. Use in query: `filter[subscription_ids]=1,2,3`.
**Constraints**: *Minimum Items*: `1` | List getSubscriptionIds() | setSubscriptionIds(List subscriptionIds) |
+
+## Example (as JSON)
+
+```json
+{
+ "subscription_ids": [
+ 1,
+ 2,
+ 3
+ ]
+}
+```
+
diff --git a/doc/models/list-subscription-group-prepayment-date-field.md b/doc/models/list-prepayment-date-field.md
similarity index 56%
rename from doc/models/list-subscription-group-prepayment-date-field.md
rename to doc/models/list-prepayment-date-field.md
index 9437e58b..a143aa4d 100644
--- a/doc/models/list-subscription-group-prepayment-date-field.md
+++ b/doc/models/list-prepayment-date-field.md
@@ -1,9 +1,9 @@
-# List Subscription Group Prepayment Date Field
+# List Prepayment Date Field
## Enumeration
-`ListSubscriptionGroupPrepaymentDateField`
+`ListPrepaymentDateField`
## Fields
diff --git a/doc/models/list-prepayments-filter.md b/doc/models/list-prepayments-filter.md
new file mode 100644
index 00000000..4dfef3f7
--- /dev/null
+++ b/doc/models/list-prepayments-filter.md
@@ -0,0 +1,25 @@
+
+# List Prepayments Filter
+
+## Structure
+
+`ListPrepaymentsFilter`
+
+## Fields
+
+| Name | Type | Tags | Description | Getter | Setter |
+| --- | --- | --- | --- | --- | --- |
+| `DateField` | [`ListPrepaymentDateField`](../../doc/models/list-prepayment-date-field.md) | Optional | The type of filter you would like to apply to your search. `created_at` - Time when prepayment was created. `application_at` - Time when prepayment was applied to invoice. Use in query `filter[date_field]=created_at`. | ListPrepaymentDateField getDateField() | setDateField(ListPrepaymentDateField dateField) |
+| `StartDate` | `LocalDate` | Optional | The start date (format YYYY-MM-DD) with which to filter the date_field. Returns prepayments with a timestamp at or after midnight (12:00:00 AM) in your site's time zone on the date specified. Use in query: `filter[start_date]=2011-12-15`. | LocalDate getStartDate() | setStartDate(LocalDate startDate) |
+| `EndDate` | `LocalDate` | Optional | The end date (format YYYY-MM-DD) with which to filter the date_field. Returns prepayments with a timestamp up to and including 11:59:59PM in your site's time zone on the date specified. Use in query: `filter[end_date]=2011-12-15`. | LocalDate getEndDate() | setEndDate(LocalDate endDate) |
+
+## Example (as JSON)
+
+```json
+{
+ "date_field": "created_at",
+ "start_date": "2024-01-01",
+ "end_date": "2024-01-31"
+}
+```
+
diff --git a/doc/models/list-price-points-filter.md b/doc/models/list-price-points-filter.md
new file mode 100644
index 00000000..cd8b0b5b
--- /dev/null
+++ b/doc/models/list-price-points-filter.md
@@ -0,0 +1,42 @@
+
+# List Price Points Filter
+
+## Structure
+
+`ListPricePointsFilter`
+
+## Fields
+
+| Name | Type | Tags | Description | Getter | Setter |
+| --- | --- | --- | --- | --- | --- |
+| `DateField` | [`BasicDateField`](../../doc/models/basic-date-field.md) | Optional | The type of filter you would like to apply to your search. Use in query: `filter[date_field]=created_at`. | BasicDateField getDateField() | setDateField(BasicDateField dateField) |
+| `StartDate` | `LocalDate` | Optional | The start date (format YYYY-MM-DD) with which to filter the date_field. Returns price points with a timestamp at or after midnight (12:00:00 AM) in your site’s time zone on the date specified. | LocalDate getStartDate() | setStartDate(LocalDate startDate) |
+| `EndDate` | `LocalDate` | Optional | The end date (format YYYY-MM-DD) with which to filter the date_field. Returns price points with a timestamp up to and including 11:59:59PM in your site’s time zone on the date specified. | LocalDate getEndDate() | setEndDate(LocalDate endDate) |
+| `StartDatetime` | `ZonedDateTime` | Optional | The start date and time (format YYYY-MM-DD HH:MM:SS) with which to filter the date_field. Returns price points with a timestamp at or after exact time provided in query. You can specify timezone in query - otherwise your site's time zone will be used. If provided, this parameter will be used instead of start_date. | ZonedDateTime getStartDatetime() | setStartDatetime(ZonedDateTime startDatetime) |
+| `EndDatetime` | `ZonedDateTime` | Optional | The end date and time (format YYYY-MM-DD HH:MM:SS) with which to filter the date_field. Returns price points with a timestamp at or before exact time provided in query. You can specify timezone in query - otherwise your site's time zone will be used. If provided, this parameter will be used instead of end_date. | ZonedDateTime getEndDatetime() | setEndDatetime(ZonedDateTime endDatetime) |
+| `Type` | [`List`](../../doc/models/price-point-type.md) | Optional | Allows fetching price points with matching type. Use in query: `filter[type]=custom,catalog`. | List getType() | setType(List type) |
+| `Ids` | `List` | Optional | Allows fetching price points with matching id based on provided values. Use in query: `filter[ids]=1,2,3`. | List getIds() | setIds(List ids) |
+| `ArchivedAt` | [`IncludeNotNull`](../../doc/models/include-not-null.md) | Optional | Allows fetching price points only if archived_at is present or not. Use in query: `filter[archived_at]=not_null`. | IncludeNotNull getArchivedAt() | setArchivedAt(IncludeNotNull archivedAt) |
+
+## Example (as JSON)
+
+```json
+{
+ "start_date": "2011-12-17",
+ "end_date": "2011-12-15",
+ "start_datetime": "12/19/2011 09:15:30",
+ "end_datetime": "06/07/2019 17:20:06",
+ "type": [
+ "catalog",
+ "default",
+ "custom"
+ ],
+ "ids": [
+ 1,
+ 2,
+ 3
+ ],
+ "date_field": "updated_at"
+}
+```
+
diff --git a/doc/models/list-products-filter.md b/doc/models/list-products-filter.md
new file mode 100644
index 00000000..6b7dac62
--- /dev/null
+++ b/doc/models/list-products-filter.md
@@ -0,0 +1,25 @@
+
+# List Products Filter
+
+## Structure
+
+`ListProductsFilter`
+
+## Fields
+
+| Name | Type | Tags | Description | Getter | Setter |
+| --- | --- | --- | --- | --- | --- |
+| `PrepaidProductPricePoint` | [`PrepaidProductPricePointFilter`](../../doc/models/prepaid-product-price-point-filter.md) | Optional | Allows fetching products only if a prepaid product price point is present or not. To use this filter you also have to include the following param in the request `include=prepaid_product_price_point`. Use in query `filter[prepaid_product_price_point][product_price_point_id]=not_null`. | PrepaidProductPricePointFilter getPrepaidProductPricePoint() | setPrepaidProductPricePoint(PrepaidProductPricePointFilter prepaidProductPricePoint) |
+| `UseSiteExchangeRate` | `Boolean` | Optional | Allows fetching products with matching use_site_exchange_rate based on provided value (refers to default price point). Use in query `filter[use_site_exchange_rate]=true`. | Boolean getUseSiteExchangeRate() | setUseSiteExchangeRate(Boolean useSiteExchangeRate) |
+
+## Example (as JSON)
+
+```json
+{
+ "prepaid_product_price_point": {
+ "product_price_point_id": "product_price_point_id2"
+ },
+ "use_site_exchange_rate": false
+}
+```
+
diff --git a/doc/models/list-segments-filter.md b/doc/models/list-segments-filter.md
new file mode 100644
index 00000000..6a211bf9
--- /dev/null
+++ b/doc/models/list-segments-filter.md
@@ -0,0 +1,27 @@
+
+# List Segments Filter
+
+## Structure
+
+`ListSegmentsFilter`
+
+## Fields
+
+| Name | Type | Tags | Description | Getter | Setter |
+| --- | --- | --- | --- | --- | --- |
+| `SegmentProperty1Value` | `String` | Optional | The value passed here would be used to filter segments. Pass a value related to `segment_property_1` on attached Metric. If empty string is passed, this filter would be rejected. Use in query `filter[segment_property_1_value]=EU`. | String getSegmentProperty1Value() | setSegmentProperty1Value(String segmentProperty1Value) |
+| `SegmentProperty2Value` | `String` | Optional | The value passed here would be used to filter segments. Pass a value related to `segment_property_2` on attached Metric. If empty string is passed, this filter would be rejected. | String getSegmentProperty2Value() | setSegmentProperty2Value(String segmentProperty2Value) |
+| `SegmentProperty3Value` | `String` | Optional | The value passed here would be used to filter segments. Pass a value related to `segment_property_3` on attached Metric. If empty string is passed, this filter would be rejected. | String getSegmentProperty3Value() | setSegmentProperty3Value(String segmentProperty3Value) |
+| `SegmentProperty4Value` | `String` | Optional | The value passed here would be used to filter segments. Pass a value related to `segment_property_4` on attached Metric. If empty string is passed, this filter would be rejected. | String getSegmentProperty4Value() | setSegmentProperty4Value(String segmentProperty4Value) |
+
+## Example (as JSON)
+
+```json
+{
+ "segment_property_1_value": "EU",
+ "segment_property_2_value": "segment_property_2_value4",
+ "segment_property_3_value": "segment_property_3_value2",
+ "segment_property_4_value": "segment_property_4_value6"
+}
+```
+
diff --git a/doc/models/list-subscription-components-filter.md b/doc/models/list-subscription-components-filter.md
new file mode 100644
index 00000000..63735be2
--- /dev/null
+++ b/doc/models/list-subscription-components-filter.md
@@ -0,0 +1,26 @@
+
+# List Subscription Components Filter
+
+## Structure
+
+`ListSubscriptionComponentsFilter`
+
+## Fields
+
+| Name | Type | Tags | Description | Getter | Setter |
+| --- | --- | --- | --- | --- | --- |
+| `Currencies` | `List` | Optional | Allows fetching components allocation with matching currency based on provided values. Use in query `filter[currencies]=EUR,USD`.
**Constraints**: *Minimum Items*: `1` | List getCurrencies() | setCurrencies(List currencies) |
+| `UseSiteExchangeRate` | `Boolean` | Optional | Allows fetching components allocation with matching use_site_exchange_rate based on provided value. Use in query `filter[use_site_exchange_rate]=true`. | Boolean getUseSiteExchangeRate() | setUseSiteExchangeRate(Boolean useSiteExchangeRate) |
+
+## Example (as JSON)
+
+```json
+{
+ "currencies": [
+ "EUR",
+ "USD"
+ ],
+ "use_site_exchange_rate": false
+}
+```
+
diff --git a/doc/models/list-subscription-components-for-site-filter.md b/doc/models/list-subscription-components-for-site-filter.md
new file mode 100644
index 00000000..83b90ffc
--- /dev/null
+++ b/doc/models/list-subscription-components-for-site-filter.md
@@ -0,0 +1,38 @@
+
+# List Subscription Components for Site Filter
+
+## Structure
+
+`ListSubscriptionComponentsForSiteFilter`
+
+## Fields
+
+| Name | Type | Tags | Description | Getter | Setter |
+| --- | --- | --- | --- | --- | --- |
+| `Currencies` | `List` | Optional | Allows fetching components allocation with matching currency based on provided values. Use in query `filter[currencies]=USD,EUR`.
**Constraints**: *Minimum Items*: `1` | List getCurrencies() | setCurrencies(List currencies) |
+| `UseSiteExchangeRate` | `Boolean` | Optional | Allows fetching components allocation with matching use_site_exchange_rate based on provided value. Use in query `filter[use_site_exchange_rate]=true`. | Boolean getUseSiteExchangeRate() | setUseSiteExchangeRate(Boolean useSiteExchangeRate) |
+| `Subscription` | [`SubscriptionFilter`](../../doc/models/subscription-filter.md) | Optional | Nested filter used for List Subscription Components For Site Filter | SubscriptionFilter getSubscription() | setSubscription(SubscriptionFilter subscription) |
+
+## Example (as JSON)
+
+```json
+{
+ "currencies": [
+ "EUR",
+ "USD"
+ ],
+ "use_site_exchange_rate": false,
+ "subscription": {
+ "states": [
+ "active",
+ "canceled",
+ "expired"
+ ],
+ "date_field": "updated_at",
+ "start_date": "2016-03-13",
+ "end_date": "2016-03-13",
+ "start_datetime": "2016-03-13T12:52:32.123Z"
+ }
+}
+```
+
diff --git a/doc/models/prepaid-product-price-point-filter.md b/doc/models/prepaid-product-price-point-filter.md
new file mode 100644
index 00000000..43b4b3f7
--- /dev/null
+++ b/doc/models/prepaid-product-price-point-filter.md
@@ -0,0 +1,21 @@
+
+# Prepaid Product Price Point Filter
+
+## Structure
+
+`PrepaidProductPricePointFilter`
+
+## Fields
+
+| 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) |
+
+## Example (as JSON)
+
+```json
+{
+ "product_price_point_id": "not_null"
+}
+```
+
diff --git a/doc/models/product.md b/doc/models/product.md
index 19903231..c4cb65bc 100644
--- a/doc/models/product.md
+++ b/doc/models/product.md
@@ -16,7 +16,7 @@
| `AccountingCode` | `String` | Optional | E.g. Internal ID or SKU Number | String getAccountingCode() | setAccountingCode(String accountingCode) |
| `RequestCreditCard` | `Boolean` | Optional | Deprecated value that can be ignored unless you have legacy hosted pages. For Public Signup Page users, please read this attribute from under the signup page. | Boolean getRequestCreditCard() | setRequestCreditCard(Boolean requestCreditCard) |
| `ExpirationInterval` | `Integer` | Optional | A numerical interval for the length a subscription to this product will run before it expires. See the description of interval for a description of how this value is coupled with an interval unit to calculate the full interval | Integer getExpirationInterval() | setExpirationInterval(Integer expirationInterval) |
-| `ExpirationIntervalUnit` | [`ProductExpirationIntervalUnit`](../../doc/models/containers/product-expiration-interval-unit.md) | Optional | This is a container for one-of cases. | ProductExpirationIntervalUnit getExpirationIntervalUnit() | setExpirationIntervalUnit(ProductExpirationIntervalUnit expirationIntervalUnit) |
+| `ExpirationIntervalUnit` | [`ExtendedIntervalUnit`](../../doc/models/extended-interval-unit.md) | Optional | A string representing the expiration interval unit for this product, either month or day | ExtendedIntervalUnit getExpirationIntervalUnit() | setExpirationIntervalUnit(ExtendedIntervalUnit expirationIntervalUnit) |
| `CreatedAt` | `ZonedDateTime` | Optional | Timestamp indicating when this product was created | ZonedDateTime getCreatedAt() | setCreatedAt(ZonedDateTime createdAt) |
| `UpdatedAt` | `ZonedDateTime` | Optional | Timestamp indicating when this product was last updated | ZonedDateTime getUpdatedAt() | setUpdatedAt(ZonedDateTime updatedAt) |
| `PriceInCents` | `Long` | Optional | The product price, in integer cents | Long getPriceInCents() | setPriceInCents(Long priceInCents) |
@@ -25,7 +25,7 @@
| `InitialChargeInCents` | `Long` | Optional | The up front charge you have specified. | Long getInitialChargeInCents() | setInitialChargeInCents(Long initialChargeInCents) |
| `TrialPriceInCents` | `Long` | Optional | The price of the trial period for a subscription to this product, in integer cents. | Long getTrialPriceInCents() | setTrialPriceInCents(Long trialPriceInCents) |
| `TrialInterval` | `Integer` | Optional | A numerical interval for the length of the trial period of a subscription to this product. See the description of interval for a description of how this value is coupled with an interval unit to calculate the full interval | Integer getTrialInterval() | setTrialInterval(Integer trialInterval) |
-| `TrialIntervalUnit` | [`ProductTrialIntervalUnit`](../../doc/models/containers/product-trial-interval-unit.md) | Optional | This is a container for one-of cases. | ProductTrialIntervalUnit getTrialIntervalUnit() | setTrialIntervalUnit(ProductTrialIntervalUnit trialIntervalUnit) |
+| `TrialIntervalUnit` | [`IntervalUnit`](../../doc/models/interval-unit.md) | Optional | A string representing the trial interval unit for this product, either month or day | IntervalUnit getTrialIntervalUnit() | setTrialIntervalUnit(IntervalUnit trialIntervalUnit) |
| `ArchivedAt` | `ZonedDateTime` | Optional | Timestamp indicating when this product was archived | ZonedDateTime getArchivedAt() | setArchivedAt(ZonedDateTime archivedAt) |
| `RequireCreditCard` | `Boolean` | Optional | Boolean that controls whether a payment profile is required to be entered for customers wishing to sign up on this product. | Boolean getRequireCreditCard() | setRequireCreditCard(Boolean requireCreditCard) |
| `ReturnParams` | `String` | Optional | - | String getReturnParams() | setReturnParams(String returnParams) |
diff --git a/doc/models/record-payment-response.md b/doc/models/record-payment-response.md
index 678d3cc9..7a56e611 100644
--- a/doc/models/record-payment-response.md
+++ b/doc/models/record-payment-response.md
@@ -10,7 +10,7 @@
| Name | Type | Tags | Description | Getter | Setter |
| --- | --- | --- | --- | --- | --- |
| `PaidInvoices` | [`List`](../../doc/models/paid-invoice.md) | Optional | - | List getPaidInvoices() | setPaidInvoices(List paidInvoices) |
-| `Prepayment` | [`RecordPaymentResponsePrepayment`](../../doc/models/containers/record-payment-response-prepayment.md) | Optional | This is a container for one-of cases. | RecordPaymentResponsePrepayment getPrepayment() | setPrepayment(RecordPaymentResponsePrepayment prepayment) |
+| `Prepayment` | [`InvoicePrePayment`](../../doc/models/invoice-pre-payment.md) | Optional | - | InvoicePrePayment getPrepayment() | setPrepayment(InvoicePrePayment prepayment) |
## Example (as JSON)
@@ -37,9 +37,9 @@
}
],
"prepayment": {
- "subscription_id": 180,
- "amount_in_cents": 100,
- "ending_balance_in_cents": 60
+ "subscription_id": 148,
+ "amount_in_cents": 124,
+ "ending_balance_in_cents": 164
}
}
```
diff --git a/doc/models/subscription-component.md b/doc/models/subscription-component.md
index 4c0150d7..75c90c51 100644
--- a/doc/models/subscription-component.md
+++ b/doc/models/subscription-component.md
@@ -17,7 +17,7 @@
| `UnitBalance` | `Integer` | Optional | - | Integer getUnitBalance() | setUnitBalance(Integer unitBalance) |
| `Currency` | `String` | Optional | - | String getCurrency() | setCurrency(String currency) |
| `AllocatedQuantity` | [`SubscriptionComponentAllocatedQuantity`](../../doc/models/containers/subscription-component-allocated-quantity.md) | Optional | This is a container for one-of cases. | SubscriptionComponentAllocatedQuantity getAllocatedQuantity() | setAllocatedQuantity(SubscriptionComponentAllocatedQuantity allocatedQuantity) |
-| `PricingScheme` | [`SubscriptionComponentPricingScheme`](../../doc/models/containers/subscription-component-pricing-scheme.md) | Optional | This is a container for one-of cases. | SubscriptionComponentPricingScheme getPricingScheme() | setPricingScheme(SubscriptionComponentPricingScheme pricingScheme) |
+| `PricingScheme` | [`PricingScheme`](../../doc/models/pricing-scheme.md) | Optional | - | PricingScheme getPricingScheme() | setPricingScheme(PricingScheme pricingScheme) |
| `ComponentId` | `Integer` | Optional | - | Integer getComponentId() | setComponentId(Integer componentId) |
| `ComponentHandle` | `String` | Optional | - | String getComponentHandle() | setComponentHandle(String componentHandle) |
| `SubscriptionId` | `Integer` | Optional | - | Integer getSubscriptionId() | setSubscriptionId(Integer subscriptionId) |
diff --git a/doc/models/subscription-filter.md b/doc/models/subscription-filter.md
new file mode 100644
index 00000000..a0f57a3d
--- /dev/null
+++ b/doc/models/subscription-filter.md
@@ -0,0 +1,36 @@
+
+# Subscription Filter
+
+Nested filter used for List Subscription Components For Site Filter
+
+## Structure
+
+`SubscriptionFilter`
+
+## Fields
+
+| Name | Type | Tags | Description | Getter | Setter |
+| --- | --- | --- | --- | --- | --- |
+| `States` | [`List`](../../doc/models/subscription-state-filter.md) | Optional | Allows fetching components allocations that belong to the subscription with matching states based on provided values. To use this filter you also have to include the following param in the request `include=subscription`. Use in query `filter[subscription][states]=active,canceled&include=subscription`.
**Constraints**: *Minimum Items*: `1` | List getStates() | setStates(List states) |
+| `DateField` | [`SubscriptionListDateField`](../../doc/models/subscription-list-date-field.md) | Optional | The type of filter you'd like to apply to your search. To use this filter you also have to include the following param in the request `include=subscription`. | SubscriptionListDateField getDateField() | setDateField(SubscriptionListDateField dateField) |
+| `StartDate` | `LocalDate` | Optional | The start date (format YYYY-MM-DD) with which to filter the date_field. Returns components that belong to the subscription with a timestamp at or after midnight (12:00:00 AM) in your site’s time zone on the date specified. To use this filter you also have to include the following param in the request `include=subscription`. | LocalDate getStartDate() | setStartDate(LocalDate startDate) |
+| `EndDate` | `LocalDate` | Optional | The end date (format YYYY-MM-DD) with which to filter the date_field. Returns components that belong to the subscription with a timestamp up to and including 11:59:59PM in your site’s time zone on the date specified. To use this filter you also have to include the following param in the request `include=subscription`. | LocalDate getEndDate() | setEndDate(LocalDate endDate) |
+| `StartDatetime` | `ZonedDateTime` | Optional | The start date and time (format YYYY-MM-DD HH:MM:SS) with which to filter the date_field. Returns components that belong to the subscription with a timestamp at or after exact time provided in query. You can specify timezone in query - otherwise your site''s time zone will be used. If provided, this parameter will be used instead of start_date. To use this filter you also have to include the following param in the request `include=subscription`. | ZonedDateTime getStartDatetime() | setStartDatetime(ZonedDateTime startDatetime) |
+| `EndDatetime` | `ZonedDateTime` | Optional | The end date and time (format YYYY-MM-DD HH:MM:SS) with which to filter the date_field. Returns components that belong to the subscription with a timestamp at or before exact time provided in query. You can specify timezone in query - otherwise your site''s time zone will be used. If provided, this parameter will be used instead of end_date. To use this filter you also have to include the following param in the request `include=subscription`. | ZonedDateTime getEndDatetime() | setEndDatetime(ZonedDateTime endDatetime) |
+
+## Example (as JSON)
+
+```json
+{
+ "states": [
+ "active",
+ "canceled"
+ ],
+ "start_date": "2024-01-17",
+ "end_date": "2024-01-31",
+ "start_datetime": "01/17/2024 09:15:30",
+ "end_datetime": "01/17/2024 17:20:06",
+ "date_field": "updated_at"
+}
+```
+
diff --git a/doc/models/subscription.md b/doc/models/subscription.md
index 87e7ec97..3fccc31a 100644
--- a/doc/models/subscription.md
+++ b/doc/models/subscription.md
@@ -38,7 +38,7 @@
| `Customer` | [`Customer`](../../doc/models/customer.md) | Optional | - | Customer getCustomer() | setCustomer(Customer customer) |
| `Product` | [`Product`](../../doc/models/product.md) | Optional | - | Product getProduct() | setProduct(Product product) |
| `CreditCard` | [`CreditCardPaymentProfile`](../../doc/models/credit-card-payment-profile.md) | Optional | - | CreditCardPaymentProfile getCreditCard() | setCreditCard(CreditCardPaymentProfile creditCard) |
-| `Group` | [`SubscriptionGroup2`](../../doc/models/containers/subscription-group-2.md) | Optional | This is a container for one-of cases. | SubscriptionGroup2 getGroup() | setGroup(SubscriptionGroup2 group) |
+| `Group` | [`NestedSubscriptionGroup`](../../doc/models/nested-subscription-group.md) | Optional | - | NestedSubscriptionGroup getGroup() | setGroup(NestedSubscriptionGroup group) |
| `BankAccount` | [`BankAccountPaymentProfile`](../../doc/models/bank-account-payment-profile.md) | Optional | - | BankAccountPaymentProfile getBankAccount() | setBankAccount(BankAccountPaymentProfile bankAccount) |
| `PaymentType` | `String` | Optional | The payment profile type for the active profile on file. | String getPaymentType() | setPaymentType(String paymentType) |
| `ReferralCode` | `String` | Optional | The subscription's unique code that can be given to referrals. | String getReferralCode() | setReferralCode(String referralCode) |
@@ -51,7 +51,7 @@
| `CouponCodes` | `List` | Optional | An array for all the coupons attached to the subscription. | List getCouponCodes() | setCouponCodes(List couponCodes) |
| `OfferId` | `Integer` | Optional | The ID of the offer associated with the subscription. | Integer getOfferId() | setOfferId(Integer offerId) |
| `PayerId` | `Integer` | Optional | On Relationship Invoicing, the ID of the individual paying for the subscription. Defaults to the Customer ID unless the 'Customer Hierarchies & WhoPays' feature is enabled. | Integer getPayerId() | setPayerId(Integer payerId) |
-| `CurrentBillingAmountInCents` | `Long` | Optional | The balance in cents plus the estimated renewal amount in cents. | Long getCurrentBillingAmountInCents() | setCurrentBillingAmountInCents(Long currentBillingAmountInCents) |
+| `CurrentBillingAmountInCents` | `Long` | Optional | The balance in cents plus the estimated renewal amount in cents. Returned ONLY for readSubscription operation as it's compute intensive operation. | Long getCurrentBillingAmountInCents() | setCurrentBillingAmountInCents(Long currentBillingAmountInCents) |
| `ProductPricePointId` | `Integer` | Optional | The product price point currently subscribed to. | Integer getProductPricePointId() | setProductPricePointId(Integer productPricePointId) |
| `ProductPricePointType` | [`PricePointType`](../../doc/models/price-point-type.md) | Optional | Price point type. We expose the following types:
1. **default**: a price point that is marked as a default price for a certain product.
2. **custom**: a custom price point.
3. **catalog**: a price point that is **not** marked as a default price for a certain product and is **not** a custom one. | PricePointType getProductPricePointType() | setProductPricePointType(PricePointType productPricePointType) |
| `NextProductPricePointId` | `Integer` | Optional | If a delayed product change is scheduled, the ID of the product price point that the subscription will be changed to at the next renewal. | Integer getNextProductPricePointId() | setNextProductPricePointId(Integer nextProductPricePointId) |
diff --git a/doc/models/update-customer.md b/doc/models/update-customer.md
index 2150e0b2..07c9b380 100644
--- a/doc/models/update-customer.md
+++ b/doc/models/update-customer.md
@@ -27,6 +27,7 @@
| `TaxExempt` | `Boolean` | Optional | - | Boolean getTaxExempt() | setTaxExempt(Boolean taxExempt) |
| `TaxExemptReason` | `String` | Optional | - | String getTaxExemptReason() | setTaxExemptReason(String taxExemptReason) |
| `ParentId` | `Integer` | Optional | - | Integer getParentId() | setParentId(Integer parentId) |
+| `Verified` | `Boolean` | Optional | Is the customer verified to use ACH as a payment method. Available only on Authorize.Net gateway | Boolean getVerified() | setVerified(Boolean verified) |
## Example (as JSON)
diff --git a/doc/models/void-invoice-event-data.md b/doc/models/void-invoice-event-data.md
index 1bd3abc5..60373866 100644
--- a/doc/models/void-invoice-event-data.md
+++ b/doc/models/void-invoice-event-data.md
@@ -11,7 +11,7 @@ Example schema for an `void_invoice` event
| Name | Type | Tags | Description | Getter | Setter |
| --- | --- | --- | --- | --- | --- |
-| `CreditNoteAttributes` | [`VoidInvoiceEventDataCreditNoteAttributes`](../../doc/models/containers/void-invoice-event-data-credit-note-attributes.md) | Required | This is a container for one-of cases. | VoidInvoiceEventDataCreditNoteAttributes getCreditNoteAttributes() | setCreditNoteAttributes(VoidInvoiceEventDataCreditNoteAttributes creditNoteAttributes) |
+| `CreditNoteAttributes` | [`CreditNote`](../../doc/models/credit-note.md) | Required | - | CreditNote getCreditNoteAttributes() | setCreditNoteAttributes(CreditNote creditNoteAttributes) |
| `Memo` | `String` | Required | The memo provided during invoice voiding. | String getMemo() | setMemo(String memo) |
| `AppliedAmount` | `String` | Required | The amount of the void. | String getAppliedAmount() | setAppliedAmount(String appliedAmount) |
| `TransactionTime` | `ZonedDateTime` | Required | The time the refund was applied, in ISO 8601 format, i.e. "2019-06-07T17:20:06Z" | ZonedDateTime getTransactionTime() | setTransactionTime(ZonedDateTime transactionTime) |
@@ -24,9 +24,9 @@ Example schema for an `void_invoice` event
{
"credit_note_attributes": {
"uid": "uid2",
- "site_id": 218,
- "customer_id": 74,
- "subscription_id": 146,
+ "site_id": 72,
+ "customer_id": 184,
+ "subscription_id": 0,
"number": "number0"
},
"memo": "memo6",
diff --git a/pom.xml b/pom.xml
index 7e22aa86..4afcdd33 100644
--- a/pom.xml
+++ b/pom.xml
@@ -8,7 +8,7 @@
4.0.0
com.maxio
advanced-billing-sdk
- 2.0.0
+ 3.0.0
jar
Advanced Billing SDK
Ultimate billing and pricing flexibility for B2B SaaS.
diff --git a/src/main/java/com/maxio/advancedbilling/AdvancedBillingClient.java b/src/main/java/com/maxio/advancedbilling/AdvancedBillingClient.java
index cfdcbc51..aed06425 100644
--- a/src/main/java/com/maxio/advancedbilling/AdvancedBillingClient.java
+++ b/src/main/java/com/maxio/advancedbilling/AdvancedBillingClient.java
@@ -95,7 +95,7 @@ public final class AdvancedBillingClient implements Configuration {
private static final CompatibilityFactory compatibilityFactory = new CompatibilityFactoryImpl();
- private static String userAgent = "AB SDK Java:2.0.0 on OS {os-info}";
+ private static String userAgent = "AB SDK Java:3.0.0 on OS {os-info}";
/**
* Current API environment.
diff --git a/src/main/java/com/maxio/advancedbilling/Environment.java b/src/main/java/com/maxio/advancedbilling/Environment.java
index 847c369a..6695c1e8 100644
--- a/src/main/java/com/maxio/advancedbilling/Environment.java
+++ b/src/main/java/com/maxio/advancedbilling/Environment.java
@@ -48,8 +48,7 @@ public enum Environment {
@JsonCreator
public static Environment constructFromString(String toConvert) throws IOException {
Environment enumValue = fromString(toConvert);
- if (enumValue == null)
- {
+ if (enumValue == null) {
throw new IOException("Unable to create enum instance with value: " + toConvert);
}
return enumValue;
diff --git a/src/main/java/com/maxio/advancedbilling/Server.java b/src/main/java/com/maxio/advancedbilling/Server.java
index b07ffe2a..fd939f2e 100644
--- a/src/main/java/com/maxio/advancedbilling/Server.java
+++ b/src/main/java/com/maxio/advancedbilling/Server.java
@@ -38,8 +38,7 @@ public enum Server {
@JsonCreator
public static Server constructFromString(String toConvert) throws IOException {
Server enumValue = fromString(toConvert);
- if (enumValue == null)
- {
+ if (enumValue == null) {
throw new IOException("Unable to create enum instance with value: " + toConvert);
}
return enumValue;
diff --git a/src/main/java/com/maxio/advancedbilling/controllers/ComponentsController.java b/src/main/java/com/maxio/advancedbilling/controllers/ComponentsController.java
index 7818adfd..faba28f9 100644
--- a/src/main/java/com/maxio/advancedbilling/controllers/ComponentsController.java
+++ b/src/main/java/com/maxio/advancedbilling/controllers/ComponentsController.java
@@ -8,7 +8,6 @@
import com.fasterxml.jackson.core.JsonProcessingException;
import com.maxio.advancedbilling.ApiHelper;
-import com.maxio.advancedbilling.DateTimeHelper;
import com.maxio.advancedbilling.Server;
import com.maxio.advancedbilling.exceptions.ApiException;
import com.maxio.advancedbilling.exceptions.ErrorArrayMapResponseException;
@@ -589,10 +588,8 @@ private ApiCall, ApiException> prepareListComponentsRequ
.value(input.getPage()).isRequired(false))
.queryParam(param -> param.key("per_page")
.value(input.getPerPage()).isRequired(false))
- .queryParam(param -> param.key("filter[ids]")
- .value(input.getFilterIds()).isRequired(false))
- .queryParam(param -> param.key("filter[use_site_exchange_rate]")
- .value(input.getFilterUseSiteExchangeRate()).isRequired(false))
+ .queryParam(param -> param.key("filter")
+ .value(input.getFilter()).isRequired(false))
.headerParam(param -> param.key("accept").value("application/json"))
.withAuth(auth -> auth
.add("BasicAuth"))
@@ -731,12 +728,12 @@ private ApiCall, ApiException> prepareListComponentsForP
.path("/product_families/{product_family_id}/components.json")
.queryParam(param -> param.key("include_archived")
.value(input.getIncludeArchived()).isRequired(false))
- .queryParam(param -> param.key("filter[ids]")
- .value(input.getFilterIds()).isRequired(false))
.queryParam(param -> param.key("page")
.value(input.getPage()).isRequired(false))
.queryParam(param -> param.key("per_page")
.value(input.getPerPage()).isRequired(false))
+ .queryParam(param -> param.key("filter")
+ .value(input.getFilter()).isRequired(false))
.queryParam(param -> param.key("date_field")
.value((input.getDateField() != null) ? input.getDateField().value() : null).isRequired(false))
.queryParam(param -> param.key("end_date")
@@ -747,8 +744,6 @@ private ApiCall, ApiException> prepareListComponentsForP
.value(input.getStartDate()).isRequired(false))
.queryParam(param -> param.key("start_datetime")
.value(input.getStartDatetime()).isRequired(false))
- .queryParam(param -> param.key("filter[use_site_exchange_rate]")
- .value(input.getFilterUseSiteExchangeRate()).isRequired(false))
.templateParam(param -> param.key("product_family_id").value(input.getProductFamilyId()).isRequired(false)
.shouldEncode(true))
.headerParam(param -> param.key("accept").value("application/json"))
@@ -1183,30 +1178,16 @@ private ApiCall prepareListAllC
.requestBuilder(requestBuilder -> requestBuilder
.server(Server.ENUM_DEFAULT.value())
.path("/components_price_points.json")
- .queryParam(param -> param.key("filter[date_field]")
- .value((input.getFilterDateField() != null) ? input.getFilterDateField().value() : null).isRequired(false))
- .queryParam(param -> param.key("filter[end_date]")
- .value(DateTimeHelper.toSimpleDate(input.getFilterEndDate())).isRequired(false))
- .queryParam(param -> param.key("filter[end_datetime]")
- .value(DateTimeHelper.toRfc8601DateTime(input.getFilterEndDatetime())).isRequired(false))
.queryParam(param -> param.key("include")
.value((input.getInclude() != null) ? input.getInclude().value() : null).isRequired(false))
.queryParam(param -> param.key("page")
.value(input.getPage()).isRequired(false))
.queryParam(param -> param.key("per_page")
.value(input.getPerPage()).isRequired(false))
- .queryParam(param -> param.key("filter[start_date]")
- .value(DateTimeHelper.toSimpleDate(input.getFilterStartDate())).isRequired(false))
- .queryParam(param -> param.key("filter[start_datetime]")
- .value(DateTimeHelper.toRfc8601DateTime(input.getFilterStartDatetime())).isRequired(false))
- .queryParam(param -> param.key("filter[type]")
- .value(PricePointType.toValue(input.getFilterType())).isRequired(false))
.queryParam(param -> param.key("direction")
.value((input.getDirection() != null) ? input.getDirection().value() : null).isRequired(false))
- .queryParam(param -> param.key("filter[ids]")
- .value(input.getFilterIds()).isRequired(false))
- .queryParam(param -> param.key("filter[archived_at]")
- .value((input.getFilterArchivedAt() != null) ? input.getFilterArchivedAt().value() : null).isRequired(false))
+ .queryParam(param -> param.key("filter")
+ .value(input.getFilter()).isRequired(false))
.headerParam(param -> param.key("accept").value("application/json"))
.withAuth(auth -> auth
.add("BasicAuth"))
diff --git a/src/main/java/com/maxio/advancedbilling/controllers/CouponsController.java b/src/main/java/com/maxio/advancedbilling/controllers/CouponsController.java
index 99633ce9..c832430c 100644
--- a/src/main/java/com/maxio/advancedbilling/controllers/CouponsController.java
+++ b/src/main/java/com/maxio/advancedbilling/controllers/CouponsController.java
@@ -8,7 +8,6 @@
import com.fasterxml.jackson.core.JsonProcessingException;
import com.maxio.advancedbilling.ApiHelper;
-import com.maxio.advancedbilling.DateTimeHelper;
import com.maxio.advancedbilling.Server;
import com.maxio.advancedbilling.exceptions.ApiException;
import com.maxio.advancedbilling.exceptions.ErrorListResponseException;
@@ -132,24 +131,10 @@ private ApiCall, ApiException> prepareListCouponsForProduct
.value(input.getPage()).isRequired(false))
.queryParam(param -> param.key("per_page")
.value(input.getPerPage()).isRequired(false))
- .queryParam(param -> param.key("filter[date_field]")
- .value((input.getFilterDateField() != null) ? input.getFilterDateField().value() : null).isRequired(false))
- .queryParam(param -> param.key("filter[end_date]")
- .value(DateTimeHelper.toSimpleDate(input.getFilterEndDate())).isRequired(false))
- .queryParam(param -> param.key("filter[end_datetime]")
- .value(DateTimeHelper.toRfc8601DateTime(input.getFilterEndDatetime())).isRequired(false))
- .queryParam(param -> param.key("filter[start_date]")
- .value(DateTimeHelper.toSimpleDate(input.getFilterStartDate())).isRequired(false))
- .queryParam(param -> param.key("filter[start_datetime]")
- .value(DateTimeHelper.toRfc8601DateTime(input.getFilterStartDatetime())).isRequired(false))
- .queryParam(param -> param.key("filter[ids]")
- .value(input.getFilterIds()).isRequired(false))
- .queryParam(param -> param.key("filter[codes]")
- .value(input.getFilterCodes()).isRequired(false))
+ .queryParam(param -> param.key("filter")
+ .value(input.getFilter()).isRequired(false))
.queryParam(param -> param.key("currency_prices")
.value(input.getCurrencyPrices()).isRequired(false))
- .queryParam(param -> param.key("filter[use_site_exchange_rate]")
- .value(input.getFilterUseSiteExchangeRate()).isRequired(false))
.templateParam(param -> param.key("product_family_id").value(input.getProductFamilyId()).isRequired(false)
.shouldEncode(true))
.headerParam(param -> param.key("accept").value("application/json"))
@@ -394,34 +379,10 @@ private ApiCall, ApiException> prepareListCouponsRequest(
.value(input.getPage()).isRequired(false))
.queryParam(param -> param.key("per_page")
.value(input.getPerPage()).isRequired(false))
- .queryParam(param -> param.key("date_field")
- .value((input.getDateField() != null) ? input.getDateField().value() : null).isRequired(false))
- .queryParam(param -> param.key("start_date")
- .value(DateTimeHelper.toSimpleDate(input.getStartDate())).isRequired(false))
- .queryParam(param -> param.key("end_date")
- .value(DateTimeHelper.toSimpleDate(input.getEndDate())).isRequired(false))
- .queryParam(param -> param.key("start_datetime")
- .value(DateTimeHelper.toRfc8601DateTime(input.getStartDatetime())).isRequired(false))
- .queryParam(param -> param.key("end_datetime")
- .value(DateTimeHelper.toRfc8601DateTime(input.getEndDatetime())).isRequired(false))
- .queryParam(param -> param.key("filter[ids]")
- .value(input.getFilterIds()).isRequired(false))
- .queryParam(param -> param.key("filter[codes]")
- .value(input.getFilterCodes()).isRequired(false))
+ .queryParam(param -> param.key("filter")
+ .value(input.getFilter()).isRequired(false))
.queryParam(param -> param.key("currency_prices")
.value(input.getCurrencyPrices()).isRequired(false))
- .queryParam(param -> param.key("filter[end_date]")
- .value(DateTimeHelper.toSimpleDate(input.getFilterEndDate())).isRequired(false))
- .queryParam(param -> param.key("filter[end_datetime]")
- .value(DateTimeHelper.toRfc8601DateTime(input.getFilterEndDatetime())).isRequired(false))
- .queryParam(param -> param.key("filter[start_date]")
- .value(DateTimeHelper.toSimpleDate(input.getFilterStartDate())).isRequired(false))
- .queryParam(param -> param.key("filter[start_datetime]")
- .value(DateTimeHelper.toRfc8601DateTime(input.getFilterStartDatetime())).isRequired(false))
- .queryParam(param -> param.key("filter[date_field]")
- .value((input.getFilterDateField() != null) ? input.getFilterDateField().value() : null).isRequired(false))
- .queryParam(param -> param.key("filter[use_site_exchange_rate]")
- .value(input.getFilterUseSiteExchangeRate()).isRequired(false))
.headerParam(param -> param.key("accept").value("application/json"))
.withAuth(auth -> auth
.add("BasicAuth"))
diff --git a/src/main/java/com/maxio/advancedbilling/controllers/CustomFieldsController.java b/src/main/java/com/maxio/advancedbilling/controllers/CustomFieldsController.java
index df7ae1dc..04f08463 100644
--- a/src/main/java/com/maxio/advancedbilling/controllers/CustomFieldsController.java
+++ b/src/main/java/com/maxio/advancedbilling/controllers/CustomFieldsController.java
@@ -371,7 +371,7 @@ private ApiCall prepareListMetadataRequest(
.nullify404(false)
.globalErrorCase(GLOBAL_ERROR_CASES))
.endpointConfiguration(param -> param
- .arraySerializationFormat(ArraySerializationFormat.PLAIN))
+ .arraySerializationFormat(ArraySerializationFormat.CSV))
.build();
}
@@ -472,7 +472,7 @@ private ApiCall prepareDeleteMetadataRequest(
.path("/{resource_type}/{resource_id}/metadata.json")
.queryParam(param -> param.key("name")
.value(name).isRequired(false))
- .queryParam(param -> param.key("names[]")
+ .queryParam(param -> param.key("names")
.value(names).isRequired(false))
.templateParam(param -> param.key("resource_type").value((resourceType != null) ? resourceType.value() : null)
.shouldEncode(true))
@@ -488,7 +488,7 @@ private ApiCall prepareDeleteMetadataRequest(
(reason, context) -> new ApiException(reason, context)))
.globalErrorCase(GLOBAL_ERROR_CASES))
.endpointConfiguration(param -> param
- .arraySerializationFormat(ArraySerializationFormat.PLAIN))
+ .arraySerializationFormat(ArraySerializationFormat.UNINDEXED))
.build();
}
@@ -535,7 +535,7 @@ private ApiCall prepareListMetadataForResourceT
.value(DateTimeHelper.toRfc8601DateTime(input.getEndDatetime())).isRequired(false))
.queryParam(param -> param.key("with_deleted")
.value(input.getWithDeleted()).isRequired(false))
- .queryParam(param -> param.key("resource_ids[]")
+ .queryParam(param -> param.key("resource_ids")
.value(input.getResourceIds()).isRequired(false))
.queryParam(param -> param.key("direction")
.value((input.getDirection() != null) ? input.getDirection().value() : null).isRequired(false))
@@ -551,7 +551,7 @@ private ApiCall prepareListMetadataForResourceT
.nullify404(false)
.globalErrorCase(GLOBAL_ERROR_CASES))
.endpointConfiguration(param -> param
- .arraySerializationFormat(ArraySerializationFormat.CSV))
+ .arraySerializationFormat(ArraySerializationFormat.UNINDEXED))
.build();
}
}
\ No newline at end of file
diff --git a/src/main/java/com/maxio/advancedbilling/controllers/EventsBasedBillingSegmentsController.java b/src/main/java/com/maxio/advancedbilling/controllers/EventsBasedBillingSegmentsController.java
index 1dfce3c8..b8370588 100644
--- a/src/main/java/com/maxio/advancedbilling/controllers/EventsBasedBillingSegmentsController.java
+++ b/src/main/java/com/maxio/advancedbilling/controllers/EventsBasedBillingSegmentsController.java
@@ -130,14 +130,8 @@ private ApiCall prepareListSegmentsForPriceP
.value(input.getPage()).isRequired(false))
.queryParam(param -> param.key("per_page")
.value(input.getPerPage()).isRequired(false))
- .queryParam(param -> param.key("filter[segment_property_1_value]")
- .value(input.getFilterSegmentProperty1Value()).isRequired(false))
- .queryParam(param -> param.key("filter[segment_property_2_value]")
- .value(input.getFilterSegmentProperty2Value()).isRequired(false))
- .queryParam(param -> param.key("filter[segment_property_3_value]")
- .value(input.getFilterSegmentProperty3Value()).isRequired(false))
- .queryParam(param -> param.key("filter[segment_property_4_value]")
- .value(input.getFilterSegmentProperty4Value()).isRequired(false))
+ .queryParam(param -> param.key("filter")
+ .value(input.getFilter()).isRequired(false))
.templateParam(param -> param.key("component_id").value(input.getComponentId())
.shouldEncode(true))
.templateParam(param -> param.key("price_point_id").value(input.getPricePointId())
diff --git a/src/main/java/com/maxio/advancedbilling/controllers/InsightsController.java b/src/main/java/com/maxio/advancedbilling/controllers/InsightsController.java
index 27cebbc6..f0a5f39b 100644
--- a/src/main/java/com/maxio/advancedbilling/controllers/InsightsController.java
+++ b/src/main/java/com/maxio/advancedbilling/controllers/InsightsController.java
@@ -208,8 +208,8 @@ private ApiCall prepareListMrrPerSubscrip
.requestBuilder(requestBuilder -> requestBuilder
.server(Server.ENUM_DEFAULT.value())
.path("/subscriptions_mrr.json")
- .queryParam(param -> param.key("filter[subscription_ids]")
- .value(input.getFilterSubscriptionIds()).isRequired(false))
+ .queryParam(param -> param.key("filter")
+ .value(input.getFilter()).isRequired(false))
.queryParam(param -> param.key("at_time")
.value(input.getAtTime()).isRequired(false))
.queryParam(param -> param.key("page")
diff --git a/src/main/java/com/maxio/advancedbilling/controllers/ProductFamiliesController.java b/src/main/java/com/maxio/advancedbilling/controllers/ProductFamiliesController.java
index 05295682..1e873a06 100644
--- a/src/main/java/com/maxio/advancedbilling/controllers/ProductFamiliesController.java
+++ b/src/main/java/com/maxio/advancedbilling/controllers/ProductFamiliesController.java
@@ -65,6 +65,8 @@ private ApiCall, ApiException> prepareListProductsForProdu
.value(input.getPerPage()).isRequired(false))
.queryParam(param -> param.key("date_field")
.value((input.getDateField() != null) ? input.getDateField().value() : null).isRequired(false))
+ .queryParam(param -> param.key("filter")
+ .value(input.getFilter()).isRequired(false))
.queryParam(param -> param.key("start_date")
.value(input.getStartDate()).isRequired(false))
.queryParam(param -> param.key("end_date")
@@ -77,10 +79,6 @@ private ApiCall, ApiException> prepareListProductsForProdu
.value(input.getIncludeArchived()).isRequired(false))
.queryParam(param -> param.key("include")
.value((input.getInclude() != null) ? input.getInclude().value() : null).isRequired(false))
- .queryParam(param -> param.key("filter[prepaid_product_price_point][product_price_point_id]")
- .value((input.getFilterPrepaidProductPricePointProductPricePointId() != null) ? input.getFilterPrepaidProductPricePointProductPricePointId().value() : null).isRequired(false))
- .queryParam(param -> param.key("filter[use_site_exchange_rate]")
- .value(input.getFilterUseSiteExchangeRate()).isRequired(false))
.templateParam(param -> param.key("product_family_id").value(input.getProductFamilyId()).isRequired(false)
.shouldEncode(true))
.headerParam(param -> param.key("accept").value("application/json"))
diff --git a/src/main/java/com/maxio/advancedbilling/controllers/ProductPricePointsController.java b/src/main/java/com/maxio/advancedbilling/controllers/ProductPricePointsController.java
index 002f706b..a60c1751 100644
--- a/src/main/java/com/maxio/advancedbilling/controllers/ProductPricePointsController.java
+++ b/src/main/java/com/maxio/advancedbilling/controllers/ProductPricePointsController.java
@@ -8,7 +8,6 @@
import com.fasterxml.jackson.core.JsonProcessingException;
import com.maxio.advancedbilling.ApiHelper;
-import com.maxio.advancedbilling.DateTimeHelper;
import com.maxio.advancedbilling.Server;
import com.maxio.advancedbilling.exceptions.ApiException;
import com.maxio.advancedbilling.exceptions.ErrorArrayMapResponseException;
@@ -573,22 +572,8 @@ private ApiCall prepareListAllProd
.path("/products_price_points.json")
.queryParam(param -> param.key("direction")
.value((input.getDirection() != null) ? input.getDirection().value() : null).isRequired(false))
- .queryParam(param -> param.key("filter[archived_at]")
- .value((input.getFilterArchivedAt() != null) ? input.getFilterArchivedAt().value() : null).isRequired(false))
- .queryParam(param -> param.key("filter[date_field]")
- .value((input.getFilterDateField() != null) ? input.getFilterDateField().value() : null).isRequired(false))
- .queryParam(param -> param.key("filter[end_date]")
- .value(DateTimeHelper.toSimpleDate(input.getFilterEndDate())).isRequired(false))
- .queryParam(param -> param.key("filter[end_datetime]")
- .value(DateTimeHelper.toRfc8601DateTime(input.getFilterEndDatetime())).isRequired(false))
- .queryParam(param -> param.key("filter[ids]")
- .value(input.getFilterIds()).isRequired(false))
- .queryParam(param -> param.key("filter[start_date]")
- .value(DateTimeHelper.toSimpleDate(input.getFilterStartDate())).isRequired(false))
- .queryParam(param -> param.key("filter[start_datetime]")
- .value(DateTimeHelper.toRfc8601DateTime(input.getFilterStartDatetime())).isRequired(false))
- .queryParam(param -> param.key("filter[type]")
- .value(PricePointType.toValue(input.getFilterType())).isRequired(false))
+ .queryParam(param -> param.key("filter")
+ .value(input.getFilter()).isRequired(false))
.queryParam(param -> param.key("include")
.value((input.getInclude() != null) ? input.getInclude().value() : null).isRequired(false))
.queryParam(param -> param.key("page")
diff --git a/src/main/java/com/maxio/advancedbilling/controllers/ProductsController.java b/src/main/java/com/maxio/advancedbilling/controllers/ProductsController.java
index 67cec11e..d2b25b8a 100644
--- a/src/main/java/com/maxio/advancedbilling/controllers/ProductsController.java
+++ b/src/main/java/com/maxio/advancedbilling/controllers/ProductsController.java
@@ -285,6 +285,8 @@ private ApiCall, ApiException> prepareListProductsRequest(
.path("/products.json")
.queryParam(param -> param.key("date_field")
.value((input.getDateField() != null) ? input.getDateField().value() : null).isRequired(false))
+ .queryParam(param -> param.key("filter")
+ .value(input.getFilter()).isRequired(false))
.queryParam(param -> param.key("end_date")
.value(DateTimeHelper.toSimpleDate(input.getEndDate())).isRequired(false))
.queryParam(param -> param.key("end_datetime")
@@ -301,10 +303,6 @@ private ApiCall, ApiException> prepareListProductsRequest(
.value(input.getIncludeArchived()).isRequired(false))
.queryParam(param -> param.key("include")
.value((input.getInclude() != null) ? input.getInclude().value() : null).isRequired(false))
- .queryParam(param -> param.key("filter[prepaid_product_price_point][product_price_point_id]")
- .value((input.getFilterPrepaidProductPricePointProductPricePointId() != null) ? input.getFilterPrepaidProductPricePointProductPricePointId().value() : null).isRequired(false))
- .queryParam(param -> param.key("filter[use_site_exchange_rate]")
- .value(input.getFilterUseSiteExchangeRate()).isRequired(false))
.headerParam(param -> param.key("accept").value("application/json"))
.withAuth(auth -> auth
.add("BasicAuth"))
diff --git a/src/main/java/com/maxio/advancedbilling/controllers/SubscriptionComponentsController.java b/src/main/java/com/maxio/advancedbilling/controllers/SubscriptionComponentsController.java
index 75fc32a7..10c0d546 100644
--- a/src/main/java/com/maxio/advancedbilling/controllers/SubscriptionComponentsController.java
+++ b/src/main/java/com/maxio/advancedbilling/controllers/SubscriptionComponentsController.java
@@ -31,7 +31,6 @@
import com.maxio.advancedbilling.models.PreviewAllocationsRequest;
import com.maxio.advancedbilling.models.SubscriptionComponentResponse;
import com.maxio.advancedbilling.models.SubscriptionResponse;
-import com.maxio.advancedbilling.models.SubscriptionStateFilter;
import com.maxio.advancedbilling.models.UpdateAllocationExpirationDate;
import com.maxio.advancedbilling.models.UsageResponse;
import com.maxio.advancedbilling.models.containers.CreateUsageComponentId;
@@ -130,6 +129,8 @@ private ApiCall, ApiException> prepareListSu
.value((input.getDateField() != null) ? input.getDateField().value() : null).isRequired(false))
.queryParam(param -> param.key("direction")
.value((input.getDirection() != null) ? input.getDirection().value() : null).isRequired(false))
+ .queryParam(param -> param.key("filter")
+ .value(input.getFilter()).isRequired(false))
.queryParam(param -> param.key("end_date")
.value(input.getEndDate()).isRequired(false))
.queryParam(param -> param.key("end_datetime")
@@ -146,10 +147,6 @@ private ApiCall, ApiException> prepareListSu
.value(input.getStartDatetime()).isRequired(false))
.queryParam(param -> param.key("include")
.value((input.getInclude() != null) ? input.getInclude().value() : null).isRequired(false))
- .queryParam(param -> param.key("filter[use_site_exchange_rate]")
- .value(input.getFilterUseSiteExchangeRate()).isRequired(false))
- .queryParam(param -> param.key("filter[currencies]")
- .value(input.getFilterCurrencies()).isRequired(false))
.templateParam(param -> param.key("subscription_id").value(input.getSubscriptionId()).isRequired(false)
.shouldEncode(true))
.headerParam(param -> param.key("accept").value("application/json"))
@@ -1050,6 +1047,8 @@ private ApiCall prepareListSub
.value((input.getSort() != null) ? input.getSort().value() : null).isRequired(false))
.queryParam(param -> param.key("direction")
.value((input.getDirection() != null) ? input.getDirection().value() : null).isRequired(false))
+ .queryParam(param -> param.key("filter")
+ .value(input.getFilter()).isRequired(false))
.queryParam(param -> param.key("date_field")
.value((input.getDateField() != null) ? input.getDateField().value() : null).isRequired(false))
.queryParam(param -> param.key("start_date")
@@ -1068,22 +1067,6 @@ private ApiCall prepareListSub
.value(input.getProductFamilyIds()).isRequired(false))
.queryParam(param -> param.key("include")
.value((input.getInclude() != null) ? input.getInclude().value() : null).isRequired(false))
- .queryParam(param -> param.key("filter[use_site_exchange_rate]")
- .value(input.getFilterUseSiteExchangeRate()).isRequired(false))
- .queryParam(param -> param.key("filter[currencies]")
- .value(input.getFilterCurrencies()).isRequired(false))
- .queryParam(param -> param.key("filter[subscription][states]")
- .value(SubscriptionStateFilter.toValue(input.getFilterSubscriptionStates())).isRequired(false))
- .queryParam(param -> param.key("filter[subscription][date_field]")
- .value((input.getFilterSubscriptionDateField() != null) ? input.getFilterSubscriptionDateField().value() : null).isRequired(false))
- .queryParam(param -> param.key("filter[subscription][start_date]")
- .value(DateTimeHelper.toSimpleDate(input.getFilterSubscriptionStartDate())).isRequired(false))
- .queryParam(param -> param.key("filter[subscription][start_datetime]")
- .value(DateTimeHelper.toRfc8601DateTime(input.getFilterSubscriptionStartDatetime())).isRequired(false))
- .queryParam(param -> param.key("filter[subscription][end_date]")
- .value(DateTimeHelper.toSimpleDate(input.getFilterSubscriptionEndDate())).isRequired(false))
- .queryParam(param -> param.key("filter[subscription][end_datetime]")
- .value(DateTimeHelper.toRfc8601DateTime(input.getFilterSubscriptionEndDatetime())).isRequired(false))
.headerParam(param -> param.key("accept").value("application/json"))
.withAuth(auth -> auth
.add("BasicAuth"))
diff --git a/src/main/java/com/maxio/advancedbilling/controllers/SubscriptionGroupInvoiceAccountController.java b/src/main/java/com/maxio/advancedbilling/controllers/SubscriptionGroupInvoiceAccountController.java
index 718a1477..2ec379f8 100644
--- a/src/main/java/com/maxio/advancedbilling/controllers/SubscriptionGroupInvoiceAccountController.java
+++ b/src/main/java/com/maxio/advancedbilling/controllers/SubscriptionGroupInvoiceAccountController.java
@@ -8,7 +8,6 @@
import com.fasterxml.jackson.core.JsonProcessingException;
import com.maxio.advancedbilling.ApiHelper;
-import com.maxio.advancedbilling.DateTimeHelper;
import com.maxio.advancedbilling.Server;
import com.maxio.advancedbilling.exceptions.ApiException;
import com.maxio.advancedbilling.exceptions.ErrorListResponseException;
@@ -112,16 +111,12 @@ private ApiCall prepareLi
.requestBuilder(requestBuilder -> requestBuilder
.server(Server.ENUM_DEFAULT.value())
.path("/subscription_groups/{uid}/prepayments.json")
- .queryParam(param -> param.key("filter[date_field]")
- .value((input.getFilterDateField() != null) ? input.getFilterDateField().value() : null).isRequired(false))
- .queryParam(param -> param.key("filter[end_date]")
- .value(DateTimeHelper.toSimpleDate(input.getFilterEndDate())).isRequired(false))
- .queryParam(param -> param.key("filter[start_date]")
- .value(DateTimeHelper.toSimpleDate(input.getFilterStartDate())).isRequired(false))
.queryParam(param -> param.key("page")
.value(input.getPage()).isRequired(false))
.queryParam(param -> param.key("per_page")
.value(input.getPerPage()).isRequired(false))
+ .queryParam(param -> param.key("filter")
+ .value(input.getFilter()).isRequired(false))
.templateParam(param -> param.key("uid").value(input.getUid())
.shouldEncode(true))
.headerParam(param -> param.key("accept").value("application/json"))
diff --git a/src/main/java/com/maxio/advancedbilling/controllers/SubscriptionGroupsController.java b/src/main/java/com/maxio/advancedbilling/controllers/SubscriptionGroupsController.java
index 63d0a278..bef74d75 100644
--- a/src/main/java/com/maxio/advancedbilling/controllers/SubscriptionGroupsController.java
+++ b/src/main/java/com/maxio/advancedbilling/controllers/SubscriptionGroupsController.java
@@ -170,7 +170,7 @@ private ApiCall prepareListSubscri
.value(input.getPage()).isRequired(false))
.queryParam(param -> param.key("per_page")
.value(input.getPerPage()).isRequired(false))
- .queryParam(param -> param.key("include[]")
+ .queryParam(param -> param.key("include")
.value(SubscriptionGroupsListInclude.toValue(input.getInclude())).isRequired(false))
.headerParam(param -> param.key("accept").value("application/json"))
.withAuth(auth -> auth
@@ -182,7 +182,7 @@ private ApiCall prepareListSubscri
.nullify404(false)
.globalErrorCase(GLOBAL_ERROR_CASES))
.endpointConfiguration(param -> param
- .arraySerializationFormat(ArraySerializationFormat.CSV))
+ .arraySerializationFormat(ArraySerializationFormat.UNINDEXED))
.build();
}
@@ -215,7 +215,7 @@ private ApiCall prepareReadSubscrip
.requestBuilder(requestBuilder -> requestBuilder
.server(Server.ENUM_DEFAULT.value())
.path("/subscription_groups/{uid}.json")
- .queryParam(param -> param.key("include[]")
+ .queryParam(param -> param.key("include")
.value(SubscriptionGroupInclude.toValue(include)).isRequired(false))
.templateParam(param -> param.key("uid").value(uid)
.shouldEncode(true))
@@ -229,12 +229,12 @@ private ApiCall prepareReadSubscrip
.nullify404(false)
.globalErrorCase(GLOBAL_ERROR_CASES))
.endpointConfiguration(param -> param
- .arraySerializationFormat(ArraySerializationFormat.CSV))
+ .arraySerializationFormat(ArraySerializationFormat.UNINDEXED))
.build();
}
/**
- * Use this endpoint to update subscription group members. `"member_ids": []` should contain an
+ * Use this endpoint to update subscription group members. `"member_ids"` should contain an
* array of both subscription IDs to set as group members and subscription IDs already present
* in the groups. Not including them will result in removing them from subscription group. To
* clean up members, just leave the array empty.
diff --git a/src/main/java/com/maxio/advancedbilling/controllers/SubscriptionInvoiceAccountController.java b/src/main/java/com/maxio/advancedbilling/controllers/SubscriptionInvoiceAccountController.java
index 95296cfe..b854c443 100644
--- a/src/main/java/com/maxio/advancedbilling/controllers/SubscriptionInvoiceAccountController.java
+++ b/src/main/java/com/maxio/advancedbilling/controllers/SubscriptionInvoiceAccountController.java
@@ -8,7 +8,6 @@
import com.fasterxml.jackson.core.JsonProcessingException;
import com.maxio.advancedbilling.ApiHelper;
-import com.maxio.advancedbilling.DateTimeHelper;
import com.maxio.advancedbilling.Server;
import com.maxio.advancedbilling.exceptions.ApiException;
import com.maxio.advancedbilling.exceptions.ErrorListResponseException;
@@ -161,12 +160,8 @@ private ApiCall prepareListPrepaymentsRequest
.value(input.getPage()).isRequired(false))
.queryParam(param -> param.key("per_page")
.value(input.getPerPage()).isRequired(false))
- .queryParam(param -> param.key("filter[date_field]")
- .value((input.getFilterDateField() != null) ? input.getFilterDateField().value() : null).isRequired(false))
- .queryParam(param -> param.key("filter[start_date]")
- .value(DateTimeHelper.toSimpleDate(input.getFilterStartDate())).isRequired(false))
- .queryParam(param -> param.key("filter[end_date]")
- .value(DateTimeHelper.toSimpleDate(input.getFilterEndDate())).isRequired(false))
+ .queryParam(param -> param.key("filter")
+ .value(input.getFilter()).isRequired(false))
.templateParam(param -> param.key("subscription_id").value(input.getSubscriptionId()).isRequired(false)
.shouldEncode(true))
.headerParam(param -> param.key("accept").value("application/json"))
diff --git a/src/main/java/com/maxio/advancedbilling/controllers/SubscriptionsController.java b/src/main/java/com/maxio/advancedbilling/controllers/SubscriptionsController.java
index 845c4b3f..f76e348c 100644
--- a/src/main/java/com/maxio/advancedbilling/controllers/SubscriptionsController.java
+++ b/src/main/java/com/maxio/advancedbilling/controllers/SubscriptionsController.java
@@ -509,7 +509,7 @@ private ApiCall, ApiException> prepareListSubscriptio
.value((input.getDirection() != null) ? input.getDirection().value() : null).isRequired(false))
.queryParam(param -> param.key("sort")
.value((input.getSort() != null) ? input.getSort().value() : "signup_date").isRequired(false))
- .queryParam(param -> param.key("include[]")
+ .queryParam(param -> param.key("include")
.value(SubscriptionListInclude.toValue(input.getInclude())).isRequired(false))
.headerParam(param -> param.key("accept").value("application/json"))
.withAuth(auth -> auth
@@ -522,7 +522,7 @@ private ApiCall, ApiException> prepareListSubscriptio
.nullify404(false)
.globalErrorCase(GLOBAL_ERROR_CASES))
.endpointConfiguration(param -> param
- .arraySerializationFormat(ArraySerializationFormat.CSV))
+ .arraySerializationFormat(ArraySerializationFormat.UNINDEXED))
.build();
}
@@ -641,7 +641,7 @@ private ApiCall prepareReadSubscriptionReque
.requestBuilder(requestBuilder -> requestBuilder
.server(Server.ENUM_DEFAULT.value())
.path("/subscriptions/{subscription_id}.json")
- .queryParam(param -> param.key("include[]")
+ .queryParam(param -> param.key("include")
.value(SubscriptionInclude.toValue(include)).isRequired(false))
.templateParam(param -> param.key("subscription_id").value(subscriptionId).isRequired(false)
.shouldEncode(true))
@@ -655,7 +655,7 @@ private ApiCall prepareReadSubscriptionReque
.nullify404(false)
.globalErrorCase(GLOBAL_ERROR_CASES))
.endpointConfiguration(param -> param
- .arraySerializationFormat(ArraySerializationFormat.PLAIN))
+ .arraySerializationFormat(ArraySerializationFormat.UNINDEXED))
.build();
}
@@ -797,7 +797,7 @@ private ApiCall preparePurgeSubscriptionRequest(
.path("/subscriptions/{subscription_id}/purge.json")
.queryParam(param -> param.key("ack")
.value(ack).isRequired(false))
- .queryParam(param -> param.key("cascade[]")
+ .queryParam(param -> param.key("cascade")
.value(SubscriptionPurgeType.toValue(cascade)).isRequired(false))
.templateParam(param -> param.key("subscription_id").value(subscriptionId).isRequired(false)
.shouldEncode(true))
@@ -808,7 +808,7 @@ private ApiCall preparePurgeSubscriptionRequest(
.nullify404(false)
.globalErrorCase(GLOBAL_ERROR_CASES))
.endpointConfiguration(param -> param
- .arraySerializationFormat(ArraySerializationFormat.PLAIN))
+ .arraySerializationFormat(ArraySerializationFormat.CSV))
.build();
}
diff --git a/src/main/java/com/maxio/advancedbilling/models/AddressChange.java b/src/main/java/com/maxio/advancedbilling/models/AddressChange.java
index 329d0b49..850b0e46 100644
--- a/src/main/java/com/maxio/advancedbilling/models/AddressChange.java
+++ b/src/main/java/com/maxio/advancedbilling/models/AddressChange.java
@@ -6,9 +6,7 @@
package com.maxio.advancedbilling.models;
-import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonGetter;
-import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonSetter;
import io.apimatic.core.types.BaseModel;
@@ -31,10 +29,9 @@ public AddressChange() {
* @param before InvoiceAddress value for before.
* @param after InvoiceAddress value for after.
*/
- @JsonCreator
public AddressChange(
- @JsonProperty("before") InvoiceAddress before,
- @JsonProperty("after") InvoiceAddress after) {
+ InvoiceAddress before,
+ InvoiceAddress after) {
this.before = before;
this.after = after;
}
diff --git a/src/main/java/com/maxio/advancedbilling/models/Allocation.java b/src/main/java/com/maxio/advancedbilling/models/Allocation.java
index 89523471..6b97d798 100644
--- a/src/main/java/com/maxio/advancedbilling/models/Allocation.java
+++ b/src/main/java/com/maxio/advancedbilling/models/Allocation.java
@@ -12,7 +12,6 @@
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.maxio.advancedbilling.DateTimeHelper;
-import com.maxio.advancedbilling.models.containers.AllocationPayment;
import com.maxio.advancedbilling.models.containers.AllocationPreviousQuantity;
import com.maxio.advancedbilling.models.containers.AllocationQuantity;
import io.apimatic.core.types.BaseModel;
@@ -45,7 +44,7 @@ public class Allocation
private Boolean initiateDunning;
private OptionalNullable upgradeCharge;
private OptionalNullable downgradeCredit;
- private OptionalNullable payment;
+ private OptionalNullable payment;
private ZonedDateTime expiresAt;
private Long usedQuantity;
private Long chargeId;
@@ -79,7 +78,7 @@ public Allocation() {
* @param initiateDunning Boolean value for initiateDunning.
* @param upgradeCharge CreditType value for upgradeCharge.
* @param downgradeCredit CreditType value for downgradeCredit.
- * @param payment AllocationPayment value for payment.
+ * @param payment PaymentForAllocation value for payment.
* @param expiresAt ZonedDateTime value for expiresAt.
* @param usedQuantity Long value for usedQuantity.
* @param chargeId Long value for chargeId.
@@ -106,7 +105,7 @@ public Allocation(
Boolean initiateDunning,
CreditType upgradeCharge,
CreditType downgradeCredit,
- AllocationPayment payment,
+ PaymentForAllocation payment,
ZonedDateTime expiresAt,
Long usedQuantity,
Long chargeId) {
@@ -160,7 +159,7 @@ public Allocation(
* @param initiateDunning Boolean value for initiateDunning.
* @param upgradeCharge CreditType value for upgradeCharge.
* @param downgradeCredit CreditType value for downgradeCredit.
- * @param payment AllocationPayment value for payment.
+ * @param payment PaymentForAllocation value for payment.
* @param expiresAt ZonedDateTime value for expiresAt.
* @param usedQuantity Long value for usedQuantity.
* @param chargeId Long value for chargeId.
@@ -175,8 +174,8 @@ protected Allocation(Integer allocationId, Integer componentId,
IntervalUnit intervalUnit, Integer previousPricePointId, Boolean accrueCharge,
Boolean initiateDunning, OptionalNullable upgradeCharge,
OptionalNullable downgradeCredit,
- OptionalNullable payment, ZonedDateTime expiresAt, Long usedQuantity,
- Long chargeId) {
+ OptionalNullable payment, ZonedDateTime expiresAt,
+ Long usedQuantity, Long chargeId) {
this.allocationId = allocationId;
this.componentId = componentId;
this.componentHandle = componentHandle;
@@ -751,29 +750,29 @@ public void unsetDowngradeCredit() {
/**
* Internal Getter for Payment.
- * @return Returns the Internal AllocationPayment
+ * @return Returns the Internal PaymentForAllocation
*/
@JsonGetter("payment")
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonSerialize(using = OptionalNullable.Serializer.class)
- protected OptionalNullable internalGetPayment() {
+ protected OptionalNullable internalGetPayment() {
return this.payment;
}
/**
* Getter for Payment.
- * @return Returns the AllocationPayment
+ * @return Returns the PaymentForAllocation
*/
- public AllocationPayment getPayment() {
+ public PaymentForAllocation getPayment() {
return OptionalNullable.getFrom(payment);
}
/**
* Setter for Payment.
- * @param payment Value for AllocationPayment
+ * @param payment Value for PaymentForAllocation
*/
@JsonSetter("payment")
- public void setPayment(AllocationPayment payment) {
+ public void setPayment(PaymentForAllocation payment) {
this.payment = OptionalNullable.of(payment);
}
@@ -924,7 +923,7 @@ public static class Builder {
private Boolean initiateDunning;
private OptionalNullable upgradeCharge;
private OptionalNullable downgradeCredit;
- private OptionalNullable payment;
+ private OptionalNullable payment;
private ZonedDateTime expiresAt;
private Long usedQuantity;
private Long chargeId;
@@ -1179,10 +1178,10 @@ public Builder unsetDowngradeCredit() {
/**
* Setter for payment.
- * @param payment AllocationPayment value for payment.
+ * @param payment PaymentForAllocation value for payment.
* @return Builder
*/
- public Builder payment(AllocationPayment payment) {
+ public Builder payment(PaymentForAllocation payment) {
this.payment = OptionalNullable.of(payment);
return this;
}
diff --git a/src/main/java/com/maxio/advancedbilling/models/AllocationPreviewDirection.java b/src/main/java/com/maxio/advancedbilling/models/AllocationPreviewDirection.java
index ca5b1c1f..958d43d3 100644
--- a/src/main/java/com/maxio/advancedbilling/models/AllocationPreviewDirection.java
+++ b/src/main/java/com/maxio/advancedbilling/models/AllocationPreviewDirection.java
@@ -42,8 +42,7 @@ public enum AllocationPreviewDirection {
@JsonCreator
public static AllocationPreviewDirection constructFromString(String toConvert) throws IOException {
AllocationPreviewDirection enumValue = fromString(toConvert);
- if (enumValue == null)
- {
+ if (enumValue == null) {
throw new IOException("Unable to create enum instance with value: " + toConvert);
}
return enumValue;
diff --git a/src/main/java/com/maxio/advancedbilling/models/AllocationPreviewLineItemKind.java b/src/main/java/com/maxio/advancedbilling/models/AllocationPreviewLineItemKind.java
index a309225c..2237ebd7 100644
--- a/src/main/java/com/maxio/advancedbilling/models/AllocationPreviewLineItemKind.java
+++ b/src/main/java/com/maxio/advancedbilling/models/AllocationPreviewLineItemKind.java
@@ -50,8 +50,7 @@ public enum AllocationPreviewLineItemKind {
@JsonCreator
public static AllocationPreviewLineItemKind constructFromString(String toConvert) throws IOException {
AllocationPreviewLineItemKind enumValue = fromString(toConvert);
- if (enumValue == null)
- {
+ if (enumValue == null) {
throw new IOException("Unable to create enum instance with value: " + toConvert);
}
return enumValue;
diff --git a/src/main/java/com/maxio/advancedbilling/models/AutoInvite.java b/src/main/java/com/maxio/advancedbilling/models/AutoInvite.java
index dbd4454e..1b41e7b3 100644
--- a/src/main/java/com/maxio/advancedbilling/models/AutoInvite.java
+++ b/src/main/java/com/maxio/advancedbilling/models/AutoInvite.java
@@ -48,8 +48,7 @@ public enum AutoInvite {
@JsonCreator
public static AutoInvite constructFromInteger(Integer toConvert) throws IOException {
AutoInvite enumValue = fromInteger(toConvert);
- if (enumValue == null)
- {
+ if (enumValue == null) {
throw new IOException("Unable to create enum instance with value: " + toConvert);
}
return enumValue;
diff --git a/src/main/java/com/maxio/advancedbilling/models/BankAccountHolderType.java b/src/main/java/com/maxio/advancedbilling/models/BankAccountHolderType.java
index ed9398fa..74816cf1 100644
--- a/src/main/java/com/maxio/advancedbilling/models/BankAccountHolderType.java
+++ b/src/main/java/com/maxio/advancedbilling/models/BankAccountHolderType.java
@@ -42,8 +42,7 @@ public enum BankAccountHolderType {
@JsonCreator
public static BankAccountHolderType constructFromString(String toConvert) throws IOException {
BankAccountHolderType enumValue = fromString(toConvert);
- if (enumValue == null)
- {
+ if (enumValue == null) {
throw new IOException("Unable to create enum instance with value: " + toConvert);
}
return enumValue;
diff --git a/src/main/java/com/maxio/advancedbilling/models/BankAccountType.java b/src/main/java/com/maxio/advancedbilling/models/BankAccountType.java
index a795561b..d5535e95 100644
--- a/src/main/java/com/maxio/advancedbilling/models/BankAccountType.java
+++ b/src/main/java/com/maxio/advancedbilling/models/BankAccountType.java
@@ -42,8 +42,7 @@ public enum BankAccountType {
@JsonCreator
public static BankAccountType constructFromString(String toConvert) throws IOException {
BankAccountType enumValue = fromString(toConvert);
- if (enumValue == null)
- {
+ if (enumValue == null) {
throw new IOException("Unable to create enum instance with value: " + toConvert);
}
return enumValue;
diff --git a/src/main/java/com/maxio/advancedbilling/models/BankAccountVault.java b/src/main/java/com/maxio/advancedbilling/models/BankAccountVault.java
index 59e57968..ef7d581d 100644
--- a/src/main/java/com/maxio/advancedbilling/models/BankAccountVault.java
+++ b/src/main/java/com/maxio/advancedbilling/models/BankAccountVault.java
@@ -54,8 +54,7 @@ public enum BankAccountVault {
@JsonCreator
public static BankAccountVault constructFromString(String toConvert) throws IOException {
BankAccountVault enumValue = fromString(toConvert);
- if (enumValue == null)
- {
+ if (enumValue == null) {
throw new IOException("Unable to create enum instance with value: " + toConvert);
}
return enumValue;
diff --git a/src/main/java/com/maxio/advancedbilling/models/BasicDateField.java b/src/main/java/com/maxio/advancedbilling/models/BasicDateField.java
index 465b9b23..eeb79967 100644
--- a/src/main/java/com/maxio/advancedbilling/models/BasicDateField.java
+++ b/src/main/java/com/maxio/advancedbilling/models/BasicDateField.java
@@ -42,8 +42,7 @@ public enum BasicDateField {
@JsonCreator
public static BasicDateField constructFromString(String toConvert) throws IOException {
BasicDateField enumValue = fromString(toConvert);
- if (enumValue == null)
- {
+ if (enumValue == null) {
throw new IOException("Unable to create enum instance with value: " + toConvert);
}
return enumValue;
diff --git a/src/main/java/com/maxio/advancedbilling/models/BillingManifestLineItemKind.java b/src/main/java/com/maxio/advancedbilling/models/BillingManifestLineItemKind.java
index 1b5272dc..946b8a45 100644
--- a/src/main/java/com/maxio/advancedbilling/models/BillingManifestLineItemKind.java
+++ b/src/main/java/com/maxio/advancedbilling/models/BillingManifestLineItemKind.java
@@ -58,8 +58,7 @@ public enum BillingManifestLineItemKind {
@JsonCreator
public static BillingManifestLineItemKind constructFromString(String toConvert) throws IOException {
BillingManifestLineItemKind enumValue = fromString(toConvert);
- if (enumValue == null)
- {
+ if (enumValue == null) {
throw new IOException("Unable to create enum instance with value: " + toConvert);
}
return enumValue;
diff --git a/src/main/java/com/maxio/advancedbilling/models/CancellationMethod.java b/src/main/java/com/maxio/advancedbilling/models/CancellationMethod.java
index d83d1c6c..4ee09118 100644
--- a/src/main/java/com/maxio/advancedbilling/models/CancellationMethod.java
+++ b/src/main/java/com/maxio/advancedbilling/models/CancellationMethod.java
@@ -54,8 +54,7 @@ public enum CancellationMethod {
@JsonCreator
public static CancellationMethod constructFromString(String toConvert) throws IOException {
CancellationMethod enumValue = fromString(toConvert);
- if (enumValue == null)
- {
+ if (enumValue == null) {
throw new IOException("Unable to create enum instance with value: " + toConvert);
}
return enumValue;
diff --git a/src/main/java/com/maxio/advancedbilling/models/CardType.java b/src/main/java/com/maxio/advancedbilling/models/CardType.java
index 2b90a7e2..7882ab6e 100644
--- a/src/main/java/com/maxio/advancedbilling/models/CardType.java
+++ b/src/main/java/com/maxio/advancedbilling/models/CardType.java
@@ -178,8 +178,7 @@ public enum CardType {
@JsonCreator
public static CardType constructFromString(String toConvert) throws IOException {
CardType enumValue = fromString(toConvert);
- if (enumValue == null)
- {
+ if (enumValue == null) {
throw new IOException("Unable to create enum instance with value: " + toConvert);
}
return enumValue;
diff --git a/src/main/java/com/maxio/advancedbilling/models/CleanupScope.java b/src/main/java/com/maxio/advancedbilling/models/CleanupScope.java
index e2be07f6..f3999e98 100644
--- a/src/main/java/com/maxio/advancedbilling/models/CleanupScope.java
+++ b/src/main/java/com/maxio/advancedbilling/models/CleanupScope.java
@@ -42,8 +42,7 @@ public enum CleanupScope {
@JsonCreator
public static CleanupScope constructFromString(String toConvert) throws IOException {
CleanupScope enumValue = fromString(toConvert);
- if (enumValue == null)
- {
+ if (enumValue == null) {
throw new IOException("Unable to create enum instance with value: " + toConvert);
}
return enumValue;
diff --git a/src/main/java/com/maxio/advancedbilling/models/CollectionMethod.java b/src/main/java/com/maxio/advancedbilling/models/CollectionMethod.java
index f5390d56..fb0674bd 100644
--- a/src/main/java/com/maxio/advancedbilling/models/CollectionMethod.java
+++ b/src/main/java/com/maxio/advancedbilling/models/CollectionMethod.java
@@ -50,8 +50,7 @@ public enum CollectionMethod {
@JsonCreator
public static CollectionMethod constructFromString(String toConvert) throws IOException {
CollectionMethod enumValue = fromString(toConvert);
- if (enumValue == null)
- {
+ if (enumValue == null) {
throw new IOException("Unable to create enum instance with value: " + toConvert);
}
return enumValue;
diff --git a/src/main/java/com/maxio/advancedbilling/models/Component.java b/src/main/java/com/maxio/advancedbilling/models/Component.java
index 741ae3d2..42039769 100644
--- a/src/main/java/com/maxio/advancedbilling/models/Component.java
+++ b/src/main/java/com/maxio/advancedbilling/models/Component.java
@@ -12,7 +12,6 @@
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.maxio.advancedbilling.DateTimeHelper;
-import com.maxio.advancedbilling.models.containers.ComponentPricingScheme;
import io.apimatic.core.types.BaseModel;
import io.apimatic.core.types.OptionalNullable;
import java.time.ZonedDateTime;
@@ -26,7 +25,7 @@ public class Component
private Integer id;
private String name;
private OptionalNullable handle;
- private OptionalNullable pricingScheme;
+ private OptionalNullable pricingScheme;
private String unitName;
private OptionalNullable unitPrice;
private Integer productFamilyId;
@@ -69,7 +68,7 @@ public Component() {
* @param id Integer value for id.
* @param name String value for name.
* @param handle String value for handle.
- * @param pricingScheme ComponentPricingScheme value for pricingScheme.
+ * @param pricingScheme PricingScheme value for pricingScheme.
* @param unitName String value for unitName.
* @param unitPrice String value for unitPrice.
* @param productFamilyId Integer value for productFamilyId.
@@ -105,7 +104,7 @@ public Component(
Integer id,
String name,
String handle,
- ComponentPricingScheme pricingScheme,
+ PricingScheme pricingScheme,
String unitName,
String unitPrice,
Integer productFamilyId,
@@ -177,7 +176,7 @@ public Component(
* @param id Integer value for id.
* @param name String value for name.
* @param handle String value for handle.
- * @param pricingScheme ComponentPricingScheme value for pricingScheme.
+ * @param pricingScheme PricingScheme value for pricingScheme.
* @param unitName String value for unitName.
* @param unitPrice String value for unitPrice.
* @param productFamilyId Integer value for productFamilyId.
@@ -211,7 +210,7 @@ public Component(
*/
protected Component(Integer id, String name, OptionalNullable handle,
- OptionalNullable pricingScheme, String unitName,
+ OptionalNullable pricingScheme, String unitName,
OptionalNullable unitPrice, Integer productFamilyId, String productFamilyName,
OptionalNullable pricePerUnitInCents, ComponentKind kind, Boolean archived,
Boolean taxable, OptionalNullable description,
@@ -347,29 +346,29 @@ public void unsetHandle() {
/**
* Internal Getter for PricingScheme.
- * @return Returns the Internal ComponentPricingScheme
+ * @return Returns the Internal PricingScheme
*/
@JsonGetter("pricing_scheme")
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonSerialize(using = OptionalNullable.Serializer.class)
- protected OptionalNullable internalGetPricingScheme() {
+ protected OptionalNullable internalGetPricingScheme() {
return this.pricingScheme;
}
/**
* Getter for PricingScheme.
- * @return Returns the ComponentPricingScheme
+ * @return Returns the PricingScheme
*/
- public ComponentPricingScheme getPricingScheme() {
+ public PricingScheme getPricingScheme() {
return OptionalNullable.getFrom(pricingScheme);
}
/**
* Setter for PricingScheme.
- * @param pricingScheme Value for ComponentPricingScheme
+ * @param pricingScheme Value for PricingScheme
*/
@JsonSetter("pricing_scheme")
- public void setPricingScheme(ComponentPricingScheme pricingScheme) {
+ public void setPricingScheme(PricingScheme pricingScheme) {
this.pricingScheme = OptionalNullable.of(pricingScheme);
}
@@ -1353,7 +1352,7 @@ public static class Builder {
private Integer id;
private String name;
private OptionalNullable handle;
- private OptionalNullable pricingScheme;
+ private OptionalNullable pricingScheme;
private String unitName;
private OptionalNullable unitPrice;
private Integer productFamilyId;
@@ -1428,10 +1427,10 @@ public Builder unsetHandle() {
/**
* Setter for pricingScheme.
- * @param pricingScheme ComponentPricingScheme value for pricingScheme.
+ * @param pricingScheme PricingScheme value for pricingScheme.
* @return Builder
*/
- public Builder pricingScheme(ComponentPricingScheme pricingScheme) {
+ public Builder pricingScheme(PricingScheme pricingScheme) {
this.pricingScheme = OptionalNullable.of(pricingScheme);
return this;
}
diff --git a/src/main/java/com/maxio/advancedbilling/models/ComponentKind.java b/src/main/java/com/maxio/advancedbilling/models/ComponentKind.java
index 4b27133b..7d83abe1 100644
--- a/src/main/java/com/maxio/advancedbilling/models/ComponentKind.java
+++ b/src/main/java/com/maxio/advancedbilling/models/ComponentKind.java
@@ -54,8 +54,7 @@ public enum ComponentKind {
@JsonCreator
public static ComponentKind constructFromString(String toConvert) throws IOException {
ComponentKind enumValue = fromString(toConvert);
- if (enumValue == null)
- {
+ if (enumValue == null) {
throw new IOException("Unable to create enum instance with value: " + toConvert);
}
return enumValue;
diff --git a/src/main/java/com/maxio/advancedbilling/models/ComponentPricePoint.java b/src/main/java/com/maxio/advancedbilling/models/ComponentPricePoint.java
index f36dedde..05eccae8 100644
--- a/src/main/java/com/maxio/advancedbilling/models/ComponentPricePoint.java
+++ b/src/main/java/com/maxio/advancedbilling/models/ComponentPricePoint.java
@@ -12,7 +12,6 @@
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.maxio.advancedbilling.DateTimeHelper;
-import com.maxio.advancedbilling.models.containers.ComponentPricePointIntervalUnit;
import io.apimatic.core.types.BaseModel;
import io.apimatic.core.types.OptionalNullable;
import java.time.ZonedDateTime;
@@ -38,7 +37,7 @@ public class ComponentPricePoint
private Integer subscriptionId;
private Boolean taxIncluded;
private OptionalNullable interval;
- private OptionalNullable intervalUnit;
+ private OptionalNullable intervalUnit;
private List currencyPrices;
/**
@@ -64,7 +63,7 @@ public ComponentPricePoint() {
* @param subscriptionId Integer value for subscriptionId.
* @param taxIncluded Boolean value for taxIncluded.
* @param interval Integer value for interval.
- * @param intervalUnit ComponentPricePointIntervalUnit value for intervalUnit.
+ * @param intervalUnit IntervalUnit value for intervalUnit.
* @param currencyPrices List of ComponentCurrencyPrice value for currencyPrices.
*/
public ComponentPricePoint(
@@ -83,7 +82,7 @@ public ComponentPricePoint(
Integer subscriptionId,
Boolean taxIncluded,
Integer interval,
- ComponentPricePointIntervalUnit intervalUnit,
+ IntervalUnit intervalUnit,
List currencyPrices) {
this.id = id;
this.type = type;
@@ -121,7 +120,7 @@ public ComponentPricePoint(
* @param subscriptionId Integer value for subscriptionId.
* @param taxIncluded Boolean value for taxIncluded.
* @param interval Integer value for interval.
- * @param intervalUnit ComponentPricePointIntervalUnit value for intervalUnit.
+ * @param intervalUnit IntervalUnit value for intervalUnit.
* @param currencyPrices List of ComponentCurrencyPrice value for currencyPrices.
*/
@@ -130,7 +129,7 @@ protected ComponentPricePoint(Integer id, PricePointType type, Boolean mDefault,
OptionalNullable archivedAt, ZonedDateTime createdAt,
ZonedDateTime updatedAt, List prices, Boolean useSiteExchangeRate,
Integer subscriptionId, Boolean taxIncluded, OptionalNullable interval,
- OptionalNullable intervalUnit,
+ OptionalNullable intervalUnit,
List currencyPrices) {
this.id = id;
this.type = type;
@@ -513,12 +512,12 @@ public void unsetInterval() {
* Internal Getter for IntervalUnit.
* A string representing the interval unit for this component price point, either month or day.
* This property is only available for sites with Multifrequency enabled.
- * @return Returns the Internal ComponentPricePointIntervalUnit
+ * @return Returns the Internal IntervalUnit
*/
@JsonGetter("interval_unit")
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonSerialize(using = OptionalNullable.Serializer.class)
- protected OptionalNullable internalGetIntervalUnit() {
+ protected OptionalNullable internalGetIntervalUnit() {
return this.intervalUnit;
}
@@ -526,9 +525,9 @@ protected OptionalNullable internalGetIntervalU
* Getter for IntervalUnit.
* A string representing the interval unit for this component price point, either month or day.
* This property is only available for sites with Multifrequency enabled.
- * @return Returns the ComponentPricePointIntervalUnit
+ * @return Returns the IntervalUnit
*/
- public ComponentPricePointIntervalUnit getIntervalUnit() {
+ public IntervalUnit getIntervalUnit() {
return OptionalNullable.getFrom(intervalUnit);
}
@@ -536,10 +535,10 @@ public ComponentPricePointIntervalUnit getIntervalUnit() {
* Setter for IntervalUnit.
* A string representing the interval unit for this component price point, either month or day.
* This property is only available for sites with Multifrequency enabled.
- * @param intervalUnit Value for ComponentPricePointIntervalUnit
+ * @param intervalUnit Value for IntervalUnit
*/
@JsonSetter("interval_unit")
- public void setIntervalUnit(ComponentPricePointIntervalUnit intervalUnit) {
+ public void setIntervalUnit(IntervalUnit intervalUnit) {
this.intervalUnit = OptionalNullable.of(intervalUnit);
}
@@ -641,7 +640,7 @@ public static class Builder {
private Integer subscriptionId;
private Boolean taxIncluded;
private OptionalNullable interval;
- private OptionalNullable intervalUnit;
+ private OptionalNullable intervalUnit;
private List currencyPrices;
@@ -816,10 +815,10 @@ public Builder unsetInterval() {
/**
* Setter for intervalUnit.
- * @param intervalUnit ComponentPricePointIntervalUnit value for intervalUnit.
+ * @param intervalUnit IntervalUnit value for intervalUnit.
* @return Builder
*/
- public Builder intervalUnit(ComponentPricePointIntervalUnit intervalUnit) {
+ public Builder intervalUnit(IntervalUnit intervalUnit) {
this.intervalUnit = OptionalNullable.of(intervalUnit);
return this;
}
diff --git a/src/main/java/com/maxio/advancedbilling/models/CompoundingStrategy.java b/src/main/java/com/maxio/advancedbilling/models/CompoundingStrategy.java
index e03124a3..72deeac9 100644
--- a/src/main/java/com/maxio/advancedbilling/models/CompoundingStrategy.java
+++ b/src/main/java/com/maxio/advancedbilling/models/CompoundingStrategy.java
@@ -42,8 +42,7 @@ public enum CompoundingStrategy {
@JsonCreator
public static CompoundingStrategy constructFromString(String toConvert) throws IOException {
CompoundingStrategy enumValue = fromString(toConvert);
- if (enumValue == null)
- {
+ if (enumValue == null) {
throw new IOException("Unable to create enum instance with value: " + toConvert);
}
return enumValue;
diff --git a/src/main/java/com/maxio/advancedbilling/models/CreateInvoiceStatus.java b/src/main/java/com/maxio/advancedbilling/models/CreateInvoiceStatus.java
index 4db48c05..ed0c595e 100644
--- a/src/main/java/com/maxio/advancedbilling/models/CreateInvoiceStatus.java
+++ b/src/main/java/com/maxio/advancedbilling/models/CreateInvoiceStatus.java
@@ -42,8 +42,7 @@ public enum CreateInvoiceStatus {
@JsonCreator
public static CreateInvoiceStatus constructFromString(String toConvert) throws IOException {
CreateInvoiceStatus enumValue = fromString(toConvert);
- if (enumValue == null)
- {
+ if (enumValue == null) {
throw new IOException("Unable to create enum instance with value: " + toConvert);
}
return enumValue;
diff --git a/src/main/java/com/maxio/advancedbilling/models/CreatePrepaymentMethod.java b/src/main/java/com/maxio/advancedbilling/models/CreatePrepaymentMethod.java
index 19533d8e..0af18dd6 100644
--- a/src/main/java/com/maxio/advancedbilling/models/CreatePrepaymentMethod.java
+++ b/src/main/java/com/maxio/advancedbilling/models/CreatePrepaymentMethod.java
@@ -66,8 +66,7 @@ public enum CreatePrepaymentMethod {
@JsonCreator
public static CreatePrepaymentMethod constructFromString(String toConvert) throws IOException {
CreatePrepaymentMethod enumValue = fromString(toConvert);
- if (enumValue == null)
- {
+ if (enumValue == null) {
throw new IOException("Unable to create enum instance with value: " + toConvert);
}
return enumValue;
diff --git a/src/main/java/com/maxio/advancedbilling/models/CreateSignupProformaPreviewInclude.java b/src/main/java/com/maxio/advancedbilling/models/CreateSignupProformaPreviewInclude.java
index 6530985e..e56d9b9f 100644
--- a/src/main/java/com/maxio/advancedbilling/models/CreateSignupProformaPreviewInclude.java
+++ b/src/main/java/com/maxio/advancedbilling/models/CreateSignupProformaPreviewInclude.java
@@ -38,8 +38,7 @@ public enum CreateSignupProformaPreviewInclude {
@JsonCreator
public static CreateSignupProformaPreviewInclude constructFromString(String toConvert) throws IOException {
CreateSignupProformaPreviewInclude enumValue = fromString(toConvert);
- if (enumValue == null)
- {
+ if (enumValue == null) {
throw new IOException("Unable to create enum instance with value: " + toConvert);
}
return enumValue;
diff --git a/src/main/java/com/maxio/advancedbilling/models/CreditNoteStatus.java b/src/main/java/com/maxio/advancedbilling/models/CreditNoteStatus.java
index 8a047b3e..0822002b 100644
--- a/src/main/java/com/maxio/advancedbilling/models/CreditNoteStatus.java
+++ b/src/main/java/com/maxio/advancedbilling/models/CreditNoteStatus.java
@@ -42,8 +42,7 @@ public enum CreditNoteStatus {
@JsonCreator
public static CreditNoteStatus constructFromString(String toConvert) throws IOException {
CreditNoteStatus enumValue = fromString(toConvert);
- if (enumValue == null)
- {
+ if (enumValue == null) {
throw new IOException("Unable to create enum instance with value: " + toConvert);
}
return enumValue;
diff --git a/src/main/java/com/maxio/advancedbilling/models/CreditScheme.java b/src/main/java/com/maxio/advancedbilling/models/CreditScheme.java
index 40ef7448..254fe861 100644
--- a/src/main/java/com/maxio/advancedbilling/models/CreditScheme.java
+++ b/src/main/java/com/maxio/advancedbilling/models/CreditScheme.java
@@ -46,8 +46,7 @@ public enum CreditScheme {
@JsonCreator
public static CreditScheme constructFromString(String toConvert) throws IOException {
CreditScheme enumValue = fromString(toConvert);
- if (enumValue == null)
- {
+ if (enumValue == null) {
throw new IOException("Unable to create enum instance with value: " + toConvert);
}
return enumValue;
diff --git a/src/main/java/com/maxio/advancedbilling/models/CreditType.java b/src/main/java/com/maxio/advancedbilling/models/CreditType.java
index 84937db8..8ec789ae 100644
--- a/src/main/java/com/maxio/advancedbilling/models/CreditType.java
+++ b/src/main/java/com/maxio/advancedbilling/models/CreditType.java
@@ -46,8 +46,7 @@ public enum CreditType {
@JsonCreator
public static CreditType constructFromString(String toConvert) throws IOException {
CreditType enumValue = fromString(toConvert);
- if (enumValue == null)
- {
+ if (enumValue == null) {
throw new IOException("Unable to create enum instance with value: " + toConvert);
}
return enumValue;
diff --git a/src/main/java/com/maxio/advancedbilling/models/CurrencyPriceRole.java b/src/main/java/com/maxio/advancedbilling/models/CurrencyPriceRole.java
index 8f175ff1..9640e13d 100644
--- a/src/main/java/com/maxio/advancedbilling/models/CurrencyPriceRole.java
+++ b/src/main/java/com/maxio/advancedbilling/models/CurrencyPriceRole.java
@@ -46,8 +46,7 @@ public enum CurrencyPriceRole {
@JsonCreator
public static CurrencyPriceRole constructFromString(String toConvert) throws IOException {
CurrencyPriceRole enumValue = fromString(toConvert);
- if (enumValue == null)
- {
+ if (enumValue == null) {
throw new IOException("Unable to create enum instance with value: " + toConvert);
}
return enumValue;
diff --git a/src/main/java/com/maxio/advancedbilling/models/CurrentVault.java b/src/main/java/com/maxio/advancedbilling/models/CurrentVault.java
index c1df7e9f..fdeca0ee 100644
--- a/src/main/java/com/maxio/advancedbilling/models/CurrentVault.java
+++ b/src/main/java/com/maxio/advancedbilling/models/CurrentVault.java
@@ -142,8 +142,7 @@ public enum CurrentVault {
@JsonCreator
public static CurrentVault constructFromString(String toConvert) throws IOException {
CurrentVault enumValue = fromString(toConvert);
- if (enumValue == null)
- {
+ if (enumValue == null) {
throw new IOException("Unable to create enum instance with value: " + toConvert);
}
return enumValue;
diff --git a/src/main/java/com/maxio/advancedbilling/models/CustomFieldOwner.java b/src/main/java/com/maxio/advancedbilling/models/CustomFieldOwner.java
index 9f11afa6..6e2c6be4 100644
--- a/src/main/java/com/maxio/advancedbilling/models/CustomFieldOwner.java
+++ b/src/main/java/com/maxio/advancedbilling/models/CustomFieldOwner.java
@@ -42,8 +42,7 @@ public enum CustomFieldOwner {
@JsonCreator
public static CustomFieldOwner constructFromString(String toConvert) throws IOException {
CustomFieldOwner enumValue = fromString(toConvert);
- if (enumValue == null)
- {
+ if (enumValue == null) {
throw new IOException("Unable to create enum instance with value: " + toConvert);
}
return enumValue;
diff --git a/src/main/java/com/maxio/advancedbilling/models/CustomerChange.java b/src/main/java/com/maxio/advancedbilling/models/CustomerChange.java
index 6451be32..08d01688 100644
--- a/src/main/java/com/maxio/advancedbilling/models/CustomerChange.java
+++ b/src/main/java/com/maxio/advancedbilling/models/CustomerChange.java
@@ -10,10 +10,6 @@
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonSetter;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
-import com.maxio.advancedbilling.models.containers.CustomerChangeBillingAddress;
-import com.maxio.advancedbilling.models.containers.CustomerChangeCustomFields;
-import com.maxio.advancedbilling.models.containers.CustomerChangePayer;
-import com.maxio.advancedbilling.models.containers.CustomerChangeShippingAddress;
import io.apimatic.core.types.BaseModel;
import io.apimatic.core.types.OptionalNullable;
@@ -22,10 +18,10 @@
*/
public class CustomerChange
extends BaseModel {
- private OptionalNullable payer;
- private OptionalNullable shippingAddress;
- private OptionalNullable billingAddress;
- private OptionalNullable customFields;
+ private OptionalNullable payer;
+ private OptionalNullable shippingAddress;
+ private OptionalNullable billingAddress;
+ private OptionalNullable customFields;
/**
* Default constructor.
@@ -35,16 +31,16 @@ public CustomerChange() {
/**
* Initialization constructor.
- * @param payer CustomerChangePayer value for payer.
- * @param shippingAddress CustomerChangeShippingAddress value for shippingAddress.
- * @param billingAddress CustomerChangeBillingAddress value for billingAddress.
- * @param customFields CustomerChangeCustomFields value for customFields.
+ * @param payer CustomerPayerChange value for payer.
+ * @param shippingAddress AddressChange value for shippingAddress.
+ * @param billingAddress AddressChange value for billingAddress.
+ * @param customFields CustomerCustomFieldsChange value for customFields.
*/
public CustomerChange(
- CustomerChangePayer payer,
- CustomerChangeShippingAddress shippingAddress,
- CustomerChangeBillingAddress billingAddress,
- CustomerChangeCustomFields customFields) {
+ CustomerPayerChange payer,
+ AddressChange shippingAddress,
+ AddressChange billingAddress,
+ CustomerCustomFieldsChange customFields) {
this.payer = OptionalNullable.of(payer);
this.shippingAddress = OptionalNullable.of(shippingAddress);
this.billingAddress = OptionalNullable.of(billingAddress);
@@ -53,16 +49,16 @@ public CustomerChange(
/**
* Initialization constructor.
- * @param payer CustomerChangePayer value for payer.
- * @param shippingAddress CustomerChangeShippingAddress value for shippingAddress.
- * @param billingAddress CustomerChangeBillingAddress value for billingAddress.
- * @param customFields CustomerChangeCustomFields value for customFields.
+ * @param payer CustomerPayerChange value for payer.
+ * @param shippingAddress AddressChange value for shippingAddress.
+ * @param billingAddress AddressChange value for billingAddress.
+ * @param customFields CustomerCustomFieldsChange value for customFields.
*/
- protected CustomerChange(OptionalNullable payer,
- OptionalNullable shippingAddress,
- OptionalNullable billingAddress,
- OptionalNullable customFields) {
+ protected CustomerChange(OptionalNullable payer,
+ OptionalNullable shippingAddress,
+ OptionalNullable billingAddress,
+ OptionalNullable customFields) {
this.payer = payer;
this.shippingAddress = shippingAddress;
this.billingAddress = billingAddress;
@@ -71,29 +67,29 @@ protected CustomerChange(OptionalNullable payer,
/**
* Internal Getter for Payer.
- * @return Returns the Internal CustomerChangePayer
+ * @return Returns the Internal CustomerPayerChange
*/
@JsonGetter("payer")
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonSerialize(using = OptionalNullable.Serializer.class)
- protected OptionalNullable internalGetPayer() {
+ protected OptionalNullable internalGetPayer() {
return this.payer;
}
/**
* Getter for Payer.
- * @return Returns the CustomerChangePayer
+ * @return Returns the CustomerPayerChange
*/
- public CustomerChangePayer getPayer() {
+ public CustomerPayerChange getPayer() {
return OptionalNullable.getFrom(payer);
}
/**
* Setter for Payer.
- * @param payer Value for CustomerChangePayer
+ * @param payer Value for CustomerPayerChange
*/
@JsonSetter("payer")
- public void setPayer(CustomerChangePayer payer) {
+ public void setPayer(CustomerPayerChange payer) {
this.payer = OptionalNullable.of(payer);
}
@@ -106,29 +102,29 @@ public void unsetPayer() {
/**
* Internal Getter for ShippingAddress.
- * @return Returns the Internal CustomerChangeShippingAddress
+ * @return Returns the Internal AddressChange
*/
@JsonGetter("shipping_address")
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonSerialize(using = OptionalNullable.Serializer.class)
- protected OptionalNullable internalGetShippingAddress() {
+ protected OptionalNullable internalGetShippingAddress() {
return this.shippingAddress;
}
/**
* Getter for ShippingAddress.
- * @return Returns the CustomerChangeShippingAddress
+ * @return Returns the AddressChange
*/
- public CustomerChangeShippingAddress getShippingAddress() {
+ public AddressChange getShippingAddress() {
return OptionalNullable.getFrom(shippingAddress);
}
/**
* Setter for ShippingAddress.
- * @param shippingAddress Value for CustomerChangeShippingAddress
+ * @param shippingAddress Value for AddressChange
*/
@JsonSetter("shipping_address")
- public void setShippingAddress(CustomerChangeShippingAddress shippingAddress) {
+ public void setShippingAddress(AddressChange shippingAddress) {
this.shippingAddress = OptionalNullable.of(shippingAddress);
}
@@ -141,29 +137,29 @@ public void unsetShippingAddress() {
/**
* Internal Getter for BillingAddress.
- * @return Returns the Internal CustomerChangeBillingAddress
+ * @return Returns the Internal AddressChange
*/
@JsonGetter("billing_address")
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonSerialize(using = OptionalNullable.Serializer.class)
- protected OptionalNullable internalGetBillingAddress() {
+ protected OptionalNullable internalGetBillingAddress() {
return this.billingAddress;
}
/**
* Getter for BillingAddress.
- * @return Returns the CustomerChangeBillingAddress
+ * @return Returns the AddressChange
*/
- public CustomerChangeBillingAddress getBillingAddress() {
+ public AddressChange getBillingAddress() {
return OptionalNullable.getFrom(billingAddress);
}
/**
* Setter for BillingAddress.
- * @param billingAddress Value for CustomerChangeBillingAddress
+ * @param billingAddress Value for AddressChange
*/
@JsonSetter("billing_address")
- public void setBillingAddress(CustomerChangeBillingAddress billingAddress) {
+ public void setBillingAddress(AddressChange billingAddress) {
this.billingAddress = OptionalNullable.of(billingAddress);
}
@@ -176,29 +172,29 @@ public void unsetBillingAddress() {
/**
* Internal Getter for CustomFields.
- * @return Returns the Internal CustomerChangeCustomFields
+ * @return Returns the Internal CustomerCustomFieldsChange
*/
@JsonGetter("custom_fields")
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonSerialize(using = OptionalNullable.Serializer.class)
- protected OptionalNullable internalGetCustomFields() {
+ protected OptionalNullable internalGetCustomFields() {
return this.customFields;
}
/**
* Getter for CustomFields.
- * @return Returns the CustomerChangeCustomFields
+ * @return Returns the CustomerCustomFieldsChange
*/
- public CustomerChangeCustomFields getCustomFields() {
+ public CustomerCustomFieldsChange getCustomFields() {
return OptionalNullable.getFrom(customFields);
}
/**
* Setter for CustomFields.
- * @param customFields Value for CustomerChangeCustomFields
+ * @param customFields Value for CustomerCustomFieldsChange
*/
@JsonSetter("custom_fields")
- public void setCustomFields(CustomerChangeCustomFields customFields) {
+ public void setCustomFields(CustomerCustomFieldsChange customFields) {
this.customFields = OptionalNullable.of(customFields);
}
@@ -238,19 +234,19 @@ public Builder toBuilder() {
* Class to build instances of {@link CustomerChange}.
*/
public static class Builder {
- private OptionalNullable payer;
- private OptionalNullable shippingAddress;
- private OptionalNullable billingAddress;
- private OptionalNullable customFields;
+ private OptionalNullable payer;
+ private OptionalNullable shippingAddress;
+ private OptionalNullable billingAddress;
+ private OptionalNullable customFields;
/**
* Setter for payer.
- * @param payer CustomerChangePayer value for payer.
+ * @param payer CustomerPayerChange value for payer.
* @return Builder
*/
- public Builder payer(CustomerChangePayer payer) {
+ public Builder payer(CustomerPayerChange payer) {
this.payer = OptionalNullable.of(payer);
return this;
}
@@ -266,10 +262,10 @@ public Builder unsetPayer() {
/**
* Setter for shippingAddress.
- * @param shippingAddress CustomerChangeShippingAddress value for shippingAddress.
+ * @param shippingAddress AddressChange value for shippingAddress.
* @return Builder
*/
- public Builder shippingAddress(CustomerChangeShippingAddress shippingAddress) {
+ public Builder shippingAddress(AddressChange shippingAddress) {
this.shippingAddress = OptionalNullable.of(shippingAddress);
return this;
}
@@ -285,10 +281,10 @@ public Builder unsetShippingAddress() {
/**
* Setter for billingAddress.
- * @param billingAddress CustomerChangeBillingAddress value for billingAddress.
+ * @param billingAddress AddressChange value for billingAddress.
* @return Builder
*/
- public Builder billingAddress(CustomerChangeBillingAddress billingAddress) {
+ public Builder billingAddress(AddressChange billingAddress) {
this.billingAddress = OptionalNullable.of(billingAddress);
return this;
}
@@ -304,10 +300,10 @@ public Builder unsetBillingAddress() {
/**
* Setter for customFields.
- * @param customFields CustomerChangeCustomFields value for customFields.
+ * @param customFields CustomerCustomFieldsChange value for customFields.
* @return Builder
*/
- public Builder customFields(CustomerChangeCustomFields customFields) {
+ public Builder customFields(CustomerCustomFieldsChange customFields) {
this.customFields = OptionalNullable.of(customFields);
return this;
}
diff --git a/src/main/java/com/maxio/advancedbilling/models/CustomerCustomFieldsChange.java b/src/main/java/com/maxio/advancedbilling/models/CustomerCustomFieldsChange.java
index d2f16d1a..ee0c1f49 100644
--- a/src/main/java/com/maxio/advancedbilling/models/CustomerCustomFieldsChange.java
+++ b/src/main/java/com/maxio/advancedbilling/models/CustomerCustomFieldsChange.java
@@ -6,9 +6,7 @@
package com.maxio.advancedbilling.models;
-import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonGetter;
-import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonSetter;
import io.apimatic.core.types.BaseModel;
import java.util.List;
@@ -32,10 +30,9 @@ public CustomerCustomFieldsChange() {
* @param before List of InvoiceCustomField value for before.
* @param after List of InvoiceCustomField value for after.
*/
- @JsonCreator
public CustomerCustomFieldsChange(
- @JsonProperty("before") List before,
- @JsonProperty("after") List after) {
+ List before,
+ List after) {
this.before = before;
this.after = after;
}
diff --git a/src/main/java/com/maxio/advancedbilling/models/CustomerPayerChange.java b/src/main/java/com/maxio/advancedbilling/models/CustomerPayerChange.java
index dfac23ae..c439c917 100644
--- a/src/main/java/com/maxio/advancedbilling/models/CustomerPayerChange.java
+++ b/src/main/java/com/maxio/advancedbilling/models/CustomerPayerChange.java
@@ -6,9 +6,7 @@
package com.maxio.advancedbilling.models;
-import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonGetter;
-import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonSetter;
import io.apimatic.core.types.BaseModel;
@@ -31,10 +29,9 @@ public CustomerPayerChange() {
* @param before InvoicePayerChange value for before.
* @param after InvoicePayerChange value for after.
*/
- @JsonCreator
public CustomerPayerChange(
- @JsonProperty("before") InvoicePayerChange before,
- @JsonProperty("after") InvoicePayerChange after) {
+ InvoicePayerChange before,
+ InvoicePayerChange after) {
this.before = before;
this.after = after;
}
diff --git a/src/main/java/com/maxio/advancedbilling/models/Direction.java b/src/main/java/com/maxio/advancedbilling/models/Direction.java
index 790312fc..66b6288c 100644
--- a/src/main/java/com/maxio/advancedbilling/models/Direction.java
+++ b/src/main/java/com/maxio/advancedbilling/models/Direction.java
@@ -42,8 +42,7 @@ public enum Direction {
@JsonCreator
public static Direction constructFromString(String toConvert) throws IOException {
Direction enumValue = fromString(toConvert);
- if (enumValue == null)
- {
+ if (enumValue == null) {
throw new IOException("Unable to create enum instance with value: " + toConvert);
}
return enumValue;
diff --git a/src/main/java/com/maxio/advancedbilling/models/DiscountType.java b/src/main/java/com/maxio/advancedbilling/models/DiscountType.java
index 3fe7f4f6..54b52024 100644
--- a/src/main/java/com/maxio/advancedbilling/models/DiscountType.java
+++ b/src/main/java/com/maxio/advancedbilling/models/DiscountType.java
@@ -42,8 +42,7 @@ public enum DiscountType {
@JsonCreator
public static DiscountType constructFromString(String toConvert) throws IOException {
DiscountType enumValue = fromString(toConvert);
- if (enumValue == null)
- {
+ if (enumValue == null) {
throw new IOException("Unable to create enum instance with value: " + toConvert);
}
return enumValue;
diff --git a/src/main/java/com/maxio/advancedbilling/models/EventType.java b/src/main/java/com/maxio/advancedbilling/models/EventType.java
index ff775e3e..afbecd0b 100644
--- a/src/main/java/com/maxio/advancedbilling/models/EventType.java
+++ b/src/main/java/com/maxio/advancedbilling/models/EventType.java
@@ -170,8 +170,7 @@ public enum EventType {
@JsonCreator
public static EventType constructFromString(String toConvert) throws IOException {
EventType enumValue = fromString(toConvert);
- if (enumValue == null)
- {
+ if (enumValue == null) {
throw new IOException("Unable to create enum instance with value: " + toConvert);
}
return enumValue;
diff --git a/src/main/java/com/maxio/advancedbilling/models/ExtendedIntervalUnit.java b/src/main/java/com/maxio/advancedbilling/models/ExtendedIntervalUnit.java
index 2cd61f7e..2b6fe51f 100644
--- a/src/main/java/com/maxio/advancedbilling/models/ExtendedIntervalUnit.java
+++ b/src/main/java/com/maxio/advancedbilling/models/ExtendedIntervalUnit.java
@@ -46,8 +46,7 @@ public enum ExtendedIntervalUnit {
@JsonCreator
public static ExtendedIntervalUnit constructFromString(String toConvert) throws IOException {
ExtendedIntervalUnit enumValue = fromString(toConvert);
- if (enumValue == null)
- {
+ if (enumValue == null) {
throw new IOException("Unable to create enum instance with value: " + toConvert);
}
return enumValue;
diff --git a/src/main/java/com/maxio/advancedbilling/models/FailedPaymentAction.java b/src/main/java/com/maxio/advancedbilling/models/FailedPaymentAction.java
index 76b2b7e7..7c978619 100644
--- a/src/main/java/com/maxio/advancedbilling/models/FailedPaymentAction.java
+++ b/src/main/java/com/maxio/advancedbilling/models/FailedPaymentAction.java
@@ -46,8 +46,7 @@ public enum FailedPaymentAction {
@JsonCreator
public static FailedPaymentAction constructFromString(String toConvert) throws IOException {
FailedPaymentAction enumValue = fromString(toConvert);
- if (enumValue == null)
- {
+ if (enumValue == null) {
throw new IOException("Unable to create enum instance with value: " + toConvert);
}
return enumValue;
diff --git a/src/main/java/com/maxio/advancedbilling/models/FirstChargeType.java b/src/main/java/com/maxio/advancedbilling/models/FirstChargeType.java
index 11fd8307..2f2b98c7 100644
--- a/src/main/java/com/maxio/advancedbilling/models/FirstChargeType.java
+++ b/src/main/java/com/maxio/advancedbilling/models/FirstChargeType.java
@@ -46,8 +46,7 @@ public enum FirstChargeType {
@JsonCreator
public static FirstChargeType constructFromString(String toConvert) throws IOException {
FirstChargeType enumValue = fromString(toConvert);
- if (enumValue == null)
- {
+ if (enumValue == null) {
throw new IOException("Unable to create enum instance with value: " + toConvert);
}
return enumValue;
diff --git a/src/main/java/com/maxio/advancedbilling/models/GroupTargetType.java b/src/main/java/com/maxio/advancedbilling/models/GroupTargetType.java
index 37d013f9..da808ba8 100644
--- a/src/main/java/com/maxio/advancedbilling/models/GroupTargetType.java
+++ b/src/main/java/com/maxio/advancedbilling/models/GroupTargetType.java
@@ -54,8 +54,7 @@ public enum GroupTargetType {
@JsonCreator
public static GroupTargetType constructFromString(String toConvert) throws IOException {
GroupTargetType enumValue = fromString(toConvert);
- if (enumValue == null)
- {
+ if (enumValue == null) {
throw new IOException("Unable to create enum instance with value: " + toConvert);
}
return enumValue;
diff --git a/src/main/java/com/maxio/advancedbilling/models/GroupType.java b/src/main/java/com/maxio/advancedbilling/models/GroupType.java
index 38e52353..0fa4808d 100644
--- a/src/main/java/com/maxio/advancedbilling/models/GroupType.java
+++ b/src/main/java/com/maxio/advancedbilling/models/GroupType.java
@@ -42,8 +42,7 @@ public enum GroupType {
@JsonCreator
public static GroupType constructFromString(String toConvert) throws IOException {
GroupType enumValue = fromString(toConvert);
- if (enumValue == null)
- {
+ if (enumValue == null) {
throw new IOException("Unable to create enum instance with value: " + toConvert);
}
return enumValue;
diff --git a/src/main/java/com/maxio/advancedbilling/models/IncludeNotNull.java b/src/main/java/com/maxio/advancedbilling/models/IncludeNotNull.java
index b85d3219..5c699e16 100644
--- a/src/main/java/com/maxio/advancedbilling/models/IncludeNotNull.java
+++ b/src/main/java/com/maxio/advancedbilling/models/IncludeNotNull.java
@@ -38,8 +38,7 @@ public enum IncludeNotNull {
@JsonCreator
public static IncludeNotNull constructFromString(String toConvert) throws IOException {
IncludeNotNull enumValue = fromString(toConvert);
- if (enumValue == null)
- {
+ if (enumValue == null) {
throw new IOException("Unable to create enum instance with value: " + toConvert);
}
return enumValue;
diff --git a/src/main/java/com/maxio/advancedbilling/models/IncludeOption.java b/src/main/java/com/maxio/advancedbilling/models/IncludeOption.java
index 79f596e9..2b873a04 100644
--- a/src/main/java/com/maxio/advancedbilling/models/IncludeOption.java
+++ b/src/main/java/com/maxio/advancedbilling/models/IncludeOption.java
@@ -42,8 +42,7 @@ public enum IncludeOption {
@JsonCreator
public static IncludeOption constructFromString(String toConvert) throws IOException {
IncludeOption enumValue = fromString(toConvert);
- if (enumValue == null)
- {
+ if (enumValue == null) {
throw new IOException("Unable to create enum instance with value: " + toConvert);
}
return enumValue;
diff --git a/src/main/java/com/maxio/advancedbilling/models/IntervalUnit.java b/src/main/java/com/maxio/advancedbilling/models/IntervalUnit.java
index ce69970e..d2c1d304 100644
--- a/src/main/java/com/maxio/advancedbilling/models/IntervalUnit.java
+++ b/src/main/java/com/maxio/advancedbilling/models/IntervalUnit.java
@@ -42,8 +42,7 @@ public enum IntervalUnit {
@JsonCreator
public static IntervalUnit constructFromString(String toConvert) throws IOException {
IntervalUnit enumValue = fromString(toConvert);
- if (enumValue == null)
- {
+ if (enumValue == null) {
throw new IOException("Unable to create enum instance with value: " + toConvert);
}
return enumValue;
diff --git a/src/main/java/com/maxio/advancedbilling/models/InvoiceConsolidationLevel.java b/src/main/java/com/maxio/advancedbilling/models/InvoiceConsolidationLevel.java
index b6d4e420..46b7dccd 100644
--- a/src/main/java/com/maxio/advancedbilling/models/InvoiceConsolidationLevel.java
+++ b/src/main/java/com/maxio/advancedbilling/models/InvoiceConsolidationLevel.java
@@ -46,8 +46,7 @@ public enum InvoiceConsolidationLevel {
@JsonCreator
public static InvoiceConsolidationLevel constructFromString(String toConvert) throws IOException {
InvoiceConsolidationLevel enumValue = fromString(toConvert);
- if (enumValue == null)
- {
+ if (enumValue == null) {
throw new IOException("Unable to create enum instance with value: " + toConvert);
}
return enumValue;
diff --git a/src/main/java/com/maxio/advancedbilling/models/InvoiceDateField.java b/src/main/java/com/maxio/advancedbilling/models/InvoiceDateField.java
index ff3aa997..0c1aa9de 100644
--- a/src/main/java/com/maxio/advancedbilling/models/InvoiceDateField.java
+++ b/src/main/java/com/maxio/advancedbilling/models/InvoiceDateField.java
@@ -54,8 +54,7 @@ public enum InvoiceDateField {
@JsonCreator
public static InvoiceDateField constructFromString(String toConvert) throws IOException {
InvoiceDateField enumValue = fromString(toConvert);
- if (enumValue == null)
- {
+ if (enumValue == null) {
throw new IOException("Unable to create enum instance with value: " + toConvert);
}
return enumValue;
diff --git a/src/main/java/com/maxio/advancedbilling/models/InvoiceDiscountSourceType.java b/src/main/java/com/maxio/advancedbilling/models/InvoiceDiscountSourceType.java
index 07373395..eb5f6382 100644
--- a/src/main/java/com/maxio/advancedbilling/models/InvoiceDiscountSourceType.java
+++ b/src/main/java/com/maxio/advancedbilling/models/InvoiceDiscountSourceType.java
@@ -46,8 +46,7 @@ public enum InvoiceDiscountSourceType {
@JsonCreator
public static InvoiceDiscountSourceType constructFromString(String toConvert) throws IOException {
InvoiceDiscountSourceType enumValue = fromString(toConvert);
- if (enumValue == null)
- {
+ if (enumValue == null) {
throw new IOException("Unable to create enum instance with value: " + toConvert);
}
return enumValue;
diff --git a/src/main/java/com/maxio/advancedbilling/models/InvoiceDiscountType.java b/src/main/java/com/maxio/advancedbilling/models/InvoiceDiscountType.java
index 45781d49..7d08bbc6 100644
--- a/src/main/java/com/maxio/advancedbilling/models/InvoiceDiscountType.java
+++ b/src/main/java/com/maxio/advancedbilling/models/InvoiceDiscountType.java
@@ -46,8 +46,7 @@ public enum InvoiceDiscountType {
@JsonCreator
public static InvoiceDiscountType constructFromString(String toConvert) throws IOException {
InvoiceDiscountType enumValue = fromString(toConvert);
- if (enumValue == null)
- {
+ if (enumValue == null) {
throw new IOException("Unable to create enum instance with value: " + toConvert);
}
return enumValue;
diff --git a/src/main/java/com/maxio/advancedbilling/models/InvoiceEventPaymentMethod.java b/src/main/java/com/maxio/advancedbilling/models/InvoiceEventPaymentMethod.java
index cb9b8c4b..ba5f5128 100644
--- a/src/main/java/com/maxio/advancedbilling/models/InvoiceEventPaymentMethod.java
+++ b/src/main/java/com/maxio/advancedbilling/models/InvoiceEventPaymentMethod.java
@@ -54,8 +54,7 @@ public enum InvoiceEventPaymentMethod {
@JsonCreator
public static InvoiceEventPaymentMethod constructFromString(String toConvert) throws IOException {
InvoiceEventPaymentMethod enumValue = fromString(toConvert);
- if (enumValue == null)
- {
+ if (enumValue == null) {
throw new IOException("Unable to create enum instance with value: " + toConvert);
}
return enumValue;
diff --git a/src/main/java/com/maxio/advancedbilling/models/InvoiceEventType.java b/src/main/java/com/maxio/advancedbilling/models/InvoiceEventType.java
index de215f5b..3ff4774f 100644
--- a/src/main/java/com/maxio/advancedbilling/models/InvoiceEventType.java
+++ b/src/main/java/com/maxio/advancedbilling/models/InvoiceEventType.java
@@ -90,8 +90,7 @@ public enum InvoiceEventType {
@JsonCreator
public static InvoiceEventType constructFromString(String toConvert) throws IOException {
InvoiceEventType enumValue = fromString(toConvert);
- if (enumValue == null)
- {
+ if (enumValue == null) {
throw new IOException("Unable to create enum instance with value: " + toConvert);
}
return enumValue;
diff --git a/src/main/java/com/maxio/advancedbilling/models/InvoiceLineItem.java b/src/main/java/com/maxio/advancedbilling/models/InvoiceLineItem.java
index a671b52d..a886d39f 100644
--- a/src/main/java/com/maxio/advancedbilling/models/InvoiceLineItem.java
+++ b/src/main/java/com/maxio/advancedbilling/models/InvoiceLineItem.java
@@ -12,7 +12,6 @@
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.maxio.advancedbilling.DateTimeHelper;
-import com.maxio.advancedbilling.models.containers.InvoiceLineItemComponentCostData2;
import io.apimatic.core.types.BaseModel;
import io.apimatic.core.types.OptionalNullable;
import java.time.LocalDate;
@@ -40,7 +39,7 @@ public class InvoiceLineItem
private OptionalNullable componentId;
private OptionalNullable pricePointId;
private Boolean hide;
- private OptionalNullable componentCostData;
+ private OptionalNullable componentCostData;
private OptionalNullable productPricePointId;
private Boolean customItem;
private String kind;
@@ -71,7 +70,7 @@ public InvoiceLineItem() {
* @param componentId Integer value for componentId.
* @param pricePointId Integer value for pricePointId.
* @param hide Boolean value for hide.
- * @param componentCostData InvoiceLineItemComponentCostData2 value for componentCostData.
+ * @param componentCostData InvoiceLineItemComponentCostData value for componentCostData.
* @param productPricePointId Integer value for productPricePointId.
* @param customItem Boolean value for customItem.
* @param kind String value for kind.
@@ -95,7 +94,7 @@ public InvoiceLineItem(
Integer componentId,
Integer pricePointId,
Boolean hide,
- InvoiceLineItemComponentCostData2 componentCostData,
+ InvoiceLineItemComponentCostData componentCostData,
Integer productPricePointId,
Boolean customItem,
String kind) {
@@ -143,7 +142,7 @@ public InvoiceLineItem(
* @param componentId Integer value for componentId.
* @param pricePointId Integer value for pricePointId.
* @param hide Boolean value for hide.
- * @param componentCostData InvoiceLineItemComponentCostData2 value for componentCostData.
+ * @param componentCostData InvoiceLineItemComponentCostData value for componentCostData.
* @param productPricePointId Integer value for productPricePointId.
* @param customItem Boolean value for customItem.
* @param kind String value for kind.
@@ -155,7 +154,7 @@ protected InvoiceLineItem(String uid, String title, String description, String q
LocalDate periodRangeEnd, Integer transactionId, OptionalNullable productId,
OptionalNullable productVersion, OptionalNullable componentId,
OptionalNullable pricePointId, Boolean hide,
- OptionalNullable componentCostData,
+ OptionalNullable componentCostData,
OptionalNullable productPricePointId, Boolean customItem, String kind) {
this.uid = uid;
this.title = title;
@@ -693,29 +692,29 @@ public void setHide(Boolean hide) {
/**
* Internal Getter for ComponentCostData.
- * @return Returns the Internal InvoiceLineItemComponentCostData2
+ * @return Returns the Internal InvoiceLineItemComponentCostData
*/
@JsonGetter("component_cost_data")
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonSerialize(using = OptionalNullable.Serializer.class)
- protected OptionalNullable internalGetComponentCostData() {
+ protected OptionalNullable internalGetComponentCostData() {
return this.componentCostData;
}
/**
* Getter for ComponentCostData.
- * @return Returns the InvoiceLineItemComponentCostData2
+ * @return Returns the InvoiceLineItemComponentCostData
*/
- public InvoiceLineItemComponentCostData2 getComponentCostData() {
+ public InvoiceLineItemComponentCostData getComponentCostData() {
return OptionalNullable.getFrom(componentCostData);
}
/**
* Setter for ComponentCostData.
- * @param componentCostData Value for InvoiceLineItemComponentCostData2
+ * @param componentCostData Value for InvoiceLineItemComponentCostData
*/
@JsonSetter("component_cost_data")
- public void setComponentCostData(InvoiceLineItemComponentCostData2 componentCostData) {
+ public void setComponentCostData(InvoiceLineItemComponentCostData componentCostData) {
this.componentCostData = OptionalNullable.of(componentCostData);
}
@@ -876,7 +875,7 @@ public static class Builder {
private OptionalNullable componentId;
private OptionalNullable pricePointId;
private Boolean hide;
- private OptionalNullable componentCostData;
+ private OptionalNullable componentCostData;
private OptionalNullable productPricePointId;
private Boolean customItem;
private String kind;
@@ -1101,10 +1100,10 @@ public Builder hide(Boolean hide) {
/**
* Setter for componentCostData.
- * @param componentCostData InvoiceLineItemComponentCostData2 value for componentCostData.
+ * @param componentCostData InvoiceLineItemComponentCostData value for componentCostData.
* @return Builder
*/
- public Builder componentCostData(InvoiceLineItemComponentCostData2 componentCostData) {
+ public Builder componentCostData(InvoiceLineItemComponentCostData componentCostData) {
this.componentCostData = OptionalNullable.of(componentCostData);
return this;
}
diff --git a/src/main/java/com/maxio/advancedbilling/models/InvoicePaymentMethodType.java b/src/main/java/com/maxio/advancedbilling/models/InvoicePaymentMethodType.java
index 812139a9..b7dfd716 100644
--- a/src/main/java/com/maxio/advancedbilling/models/InvoicePaymentMethodType.java
+++ b/src/main/java/com/maxio/advancedbilling/models/InvoicePaymentMethodType.java
@@ -58,8 +58,7 @@ public enum InvoicePaymentMethodType {
@JsonCreator
public static InvoicePaymentMethodType constructFromString(String toConvert) throws IOException {
InvoicePaymentMethodType enumValue = fromString(toConvert);
- if (enumValue == null)
- {
+ if (enumValue == null) {
throw new IOException("Unable to create enum instance with value: " + toConvert);
}
return enumValue;
diff --git a/src/main/java/com/maxio/advancedbilling/models/InvoicePaymentType.java b/src/main/java/com/maxio/advancedbilling/models/InvoicePaymentType.java
index 6748f015..122cb7eb 100644
--- a/src/main/java/com/maxio/advancedbilling/models/InvoicePaymentType.java
+++ b/src/main/java/com/maxio/advancedbilling/models/InvoicePaymentType.java
@@ -50,8 +50,7 @@ public enum InvoicePaymentType {
@JsonCreator
public static InvoicePaymentType constructFromString(String toConvert) throws IOException {
InvoicePaymentType enumValue = fromString(toConvert);
- if (enumValue == null)
- {
+ if (enumValue == null) {
throw new IOException("Unable to create enum instance with value: " + toConvert);
}
return enumValue;
diff --git a/src/main/java/com/maxio/advancedbilling/models/InvoiceRole.java b/src/main/java/com/maxio/advancedbilling/models/InvoiceRole.java
index 28911e2e..7d6b3cbb 100644
--- a/src/main/java/com/maxio/advancedbilling/models/InvoiceRole.java
+++ b/src/main/java/com/maxio/advancedbilling/models/InvoiceRole.java
@@ -74,8 +74,7 @@ public enum InvoiceRole {
@JsonCreator
public static InvoiceRole constructFromString(String toConvert) throws IOException {
InvoiceRole enumValue = fromString(toConvert);
- if (enumValue == null)
- {
+ if (enumValue == null) {
throw new IOException("Unable to create enum instance with value: " + toConvert);
}
return enumValue;
diff --git a/src/main/java/com/maxio/advancedbilling/models/InvoiceSortField.java b/src/main/java/com/maxio/advancedbilling/models/InvoiceSortField.java
index a6719905..31449b38 100644
--- a/src/main/java/com/maxio/advancedbilling/models/InvoiceSortField.java
+++ b/src/main/java/com/maxio/advancedbilling/models/InvoiceSortField.java
@@ -66,8 +66,7 @@ public enum InvoiceSortField {
@JsonCreator
public static InvoiceSortField constructFromString(String toConvert) throws IOException {
InvoiceSortField enumValue = fromString(toConvert);
- if (enumValue == null)
- {
+ if (enumValue == null) {
throw new IOException("Unable to create enum instance with value: " + toConvert);
}
return enumValue;
diff --git a/src/main/java/com/maxio/advancedbilling/models/InvoiceStatus.java b/src/main/java/com/maxio/advancedbilling/models/InvoiceStatus.java
index 84a88897..eb20f08e 100644
--- a/src/main/java/com/maxio/advancedbilling/models/InvoiceStatus.java
+++ b/src/main/java/com/maxio/advancedbilling/models/InvoiceStatus.java
@@ -58,8 +58,7 @@ public enum InvoiceStatus {
@JsonCreator
public static InvoiceStatus constructFromString(String toConvert) throws IOException {
InvoiceStatus enumValue = fromString(toConvert);
- if (enumValue == null)
- {
+ if (enumValue == null) {
throw new IOException("Unable to create enum instance with value: " + toConvert);
}
return enumValue;
diff --git a/src/main/java/com/maxio/advancedbilling/models/ItemCategory.java b/src/main/java/com/maxio/advancedbilling/models/ItemCategory.java
index 46cd4205..4c1138a3 100644
--- a/src/main/java/com/maxio/advancedbilling/models/ItemCategory.java
+++ b/src/main/java/com/maxio/advancedbilling/models/ItemCategory.java
@@ -54,8 +54,7 @@ public enum ItemCategory {
@JsonCreator
public static ItemCategory constructFromString(String toConvert) throws IOException {
ItemCategory enumValue = fromString(toConvert);
- if (enumValue == null)
- {
+ if (enumValue == null) {
throw new IOException("Unable to create enum instance with value: " + toConvert);
}
return enumValue;
diff --git a/src/main/java/com/maxio/advancedbilling/models/LineItemKind.java b/src/main/java/com/maxio/advancedbilling/models/LineItemKind.java
index d7eaf96b..6988ba34 100644
--- a/src/main/java/com/maxio/advancedbilling/models/LineItemKind.java
+++ b/src/main/java/com/maxio/advancedbilling/models/LineItemKind.java
@@ -74,8 +74,7 @@ public enum LineItemKind {
@JsonCreator
public static LineItemKind constructFromString(String toConvert) throws IOException {
LineItemKind enumValue = fromString(toConvert);
- if (enumValue == null)
- {
+ if (enumValue == null) {
throw new IOException("Unable to create enum instance with value: " + toConvert);
}
return enumValue;
diff --git a/src/main/java/com/maxio/advancedbilling/models/LineItemTransactionType.java b/src/main/java/com/maxio/advancedbilling/models/LineItemTransactionType.java
index c7e24787..30ac2294 100644
--- a/src/main/java/com/maxio/advancedbilling/models/LineItemTransactionType.java
+++ b/src/main/java/com/maxio/advancedbilling/models/LineItemTransactionType.java
@@ -62,8 +62,7 @@ public enum LineItemTransactionType {
@JsonCreator
public static LineItemTransactionType constructFromString(String toConvert) throws IOException {
LineItemTransactionType enumValue = fromString(toConvert);
- if (enumValue == null)
- {
+ if (enumValue == null) {
throw new IOException("Unable to create enum instance with value: " + toConvert);
}
return enumValue;
diff --git a/src/main/java/com/maxio/advancedbilling/models/ListAllComponentPricePointsInput.java b/src/main/java/com/maxio/advancedbilling/models/ListAllComponentPricePointsInput.java
index 9555c73b..488e352d 100644
--- a/src/main/java/com/maxio/advancedbilling/models/ListAllComponentPricePointsInput.java
+++ b/src/main/java/com/maxio/advancedbilling/models/ListAllComponentPricePointsInput.java
@@ -9,29 +9,16 @@
import com.fasterxml.jackson.annotation.JsonGetter;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonSetter;
-import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
-import com.fasterxml.jackson.databind.annotation.JsonSerialize;
-import com.maxio.advancedbilling.DateTimeHelper;
-import java.time.LocalDate;
-import java.time.ZonedDateTime;
-import java.util.List;
/**
* This is a model class for ListAllComponentPricePointsInput type.
*/
public class ListAllComponentPricePointsInput {
- private BasicDateField filterDateField;
- private LocalDate filterEndDate;
- private ZonedDateTime filterEndDatetime;
private ListComponentsPricePointsInclude include;
private Integer page;
private Integer perPage;
- private LocalDate filterStartDate;
- private ZonedDateTime filterStartDatetime;
- private List filterType;
private SortingDirection direction;
- private List filterIds;
- private IncludeNotNull filterArchivedAt;
+ private ListPricePointsFilter filter;
/**
* Default constructor.
@@ -43,123 +30,23 @@ public ListAllComponentPricePointsInput() {
/**
* Initialization constructor.
- * @param filterDateField BasicDateField value for filterDateField.
- * @param filterEndDate LocalDate value for filterEndDate.
- * @param filterEndDatetime ZonedDateTime value for filterEndDatetime.
* @param include ListComponentsPricePointsInclude value for include.
* @param page Integer value for page.
* @param perPage Integer value for perPage.
- * @param filterStartDate LocalDate value for filterStartDate.
- * @param filterStartDatetime ZonedDateTime value for filterStartDatetime.
- * @param filterType List of PricePointType value for filterType.
* @param direction SortingDirection value for direction.
- * @param filterIds List of Integer value for filterIds.
- * @param filterArchivedAt IncludeNotNull value for filterArchivedAt.
+ * @param filter ListPricePointsFilter value for filter.
*/
public ListAllComponentPricePointsInput(
- BasicDateField filterDateField,
- LocalDate filterEndDate,
- ZonedDateTime filterEndDatetime,
ListComponentsPricePointsInclude include,
Integer page,
Integer perPage,
- LocalDate filterStartDate,
- ZonedDateTime filterStartDatetime,
- List filterType,
SortingDirection direction,
- List filterIds,
- IncludeNotNull filterArchivedAt) {
- this.filterDateField = filterDateField;
- this.filterEndDate = filterEndDate;
- this.filterEndDatetime = filterEndDatetime;
+ ListPricePointsFilter filter) {
this.include = include;
this.page = page;
this.perPage = perPage;
- this.filterStartDate = filterStartDate;
- this.filterStartDatetime = filterStartDatetime;
- this.filterType = filterType;
this.direction = direction;
- this.filterIds = filterIds;
- this.filterArchivedAt = filterArchivedAt;
- }
-
- /**
- * Getter for FilterDateField.
- * The type of filter you would like to apply to your search. Use in query:
- * `filter[date_field]=created_at`.
- * @return Returns the BasicDateField
- */
- @JsonGetter("filter[date_field]")
- @JsonInclude(JsonInclude.Include.NON_NULL)
- public BasicDateField getFilterDateField() {
- return filterDateField;
- }
-
- /**
- * Setter for FilterDateField.
- * The type of filter you would like to apply to your search. Use in query:
- * `filter[date_field]=created_at`.
- * @param filterDateField Value for BasicDateField
- */
- @JsonSetter("filter[date_field]")
- public void setFilterDateField(BasicDateField filterDateField) {
- this.filterDateField = filterDateField;
- }
-
- /**
- * Getter for FilterEndDate.
- * The end date (format YYYY-MM-DD) with which to filter the date_field. Returns price points
- * with a timestamp up to and including 11:59:59PM in your site’s time zone on the date
- * specified.
- * @return Returns the LocalDate
- */
- @JsonGetter("filter[end_date]")
- @JsonInclude(JsonInclude.Include.NON_NULL)
- @JsonSerialize(using = DateTimeHelper.SimpleDateSerializer.class)
- public LocalDate getFilterEndDate() {
- return filterEndDate;
- }
-
- /**
- * Setter for FilterEndDate.
- * The end date (format YYYY-MM-DD) with which to filter the date_field. Returns price points
- * with a timestamp up to and including 11:59:59PM in your site’s time zone on the date
- * specified.
- * @param filterEndDate Value for LocalDate
- */
- @JsonSetter("filter[end_date]")
- @JsonDeserialize(using = DateTimeHelper.SimpleDateDeserializer.class)
- public void setFilterEndDate(LocalDate filterEndDate) {
- this.filterEndDate = filterEndDate;
- }
-
- /**
- * Getter for FilterEndDatetime.
- * The end date and time (format YYYY-MM-DD HH:MM:SS) with which to filter the date_field.
- * Returns price points with a timestamp at or before exact time provided in query. You can
- * specify timezone in query - otherwise your site's time zone will be used. If provided, this
- * parameter will be used instead of end_date.
- * @return Returns the ZonedDateTime
- */
- @JsonGetter("filter[end_datetime]")
- @JsonInclude(JsonInclude.Include.NON_NULL)
- @JsonSerialize(using = DateTimeHelper.Rfc8601DateTimeSerializer.class)
- public ZonedDateTime getFilterEndDatetime() {
- return filterEndDatetime;
- }
-
- /**
- * Setter for FilterEndDatetime.
- * The end date and time (format YYYY-MM-DD HH:MM:SS) with which to filter the date_field.
- * Returns price points with a timestamp at or before exact time provided in query. You can
- * specify timezone in query - otherwise your site's time zone will be used. If provided, this
- * parameter will be used instead of end_date.
- * @param filterEndDatetime Value for ZonedDateTime
- */
- @JsonSetter("filter[end_datetime]")
- @JsonDeserialize(using = DateTimeHelper.Rfc8601DateTimeDeserializer.class)
- public void setFilterEndDatetime(ZonedDateTime filterEndDatetime) {
- this.filterEndDatetime = filterEndDatetime;
+ this.filter = filter;
}
/**
@@ -237,83 +124,6 @@ public void setPerPage(Integer perPage) {
this.perPage = perPage;
}
- /**
- * Getter for FilterStartDate.
- * The start date (format YYYY-MM-DD) with which to filter the date_field. Returns price points
- * with a timestamp at or after midnight (12:00:00 AM) in your site’s time zone on the date
- * specified.
- * @return Returns the LocalDate
- */
- @JsonGetter("filter[start_date]")
- @JsonInclude(JsonInclude.Include.NON_NULL)
- @JsonSerialize(using = DateTimeHelper.SimpleDateSerializer.class)
- public LocalDate getFilterStartDate() {
- return filterStartDate;
- }
-
- /**
- * Setter for FilterStartDate.
- * The start date (format YYYY-MM-DD) with which to filter the date_field. Returns price points
- * with a timestamp at or after midnight (12:00:00 AM) in your site’s time zone on the date
- * specified.
- * @param filterStartDate Value for LocalDate
- */
- @JsonSetter("filter[start_date]")
- @JsonDeserialize(using = DateTimeHelper.SimpleDateDeserializer.class)
- public void setFilterStartDate(LocalDate filterStartDate) {
- this.filterStartDate = filterStartDate;
- }
-
- /**
- * Getter for FilterStartDatetime.
- * The start date and time (format YYYY-MM-DD HH:MM:SS) with which to filter the date_field.
- * Returns price points with a timestamp at or after exact time provided in query. You can
- * specify timezone in query - otherwise your site's time zone will be used. If provided, this
- * parameter will be used instead of start_date.
- * @return Returns the ZonedDateTime
- */
- @JsonGetter("filter[start_datetime]")
- @JsonInclude(JsonInclude.Include.NON_NULL)
- @JsonSerialize(using = DateTimeHelper.Rfc8601DateTimeSerializer.class)
- public ZonedDateTime getFilterStartDatetime() {
- return filterStartDatetime;
- }
-
- /**
- * Setter for FilterStartDatetime.
- * The start date and time (format YYYY-MM-DD HH:MM:SS) with which to filter the date_field.
- * Returns price points with a timestamp at or after exact time provided in query. You can
- * specify timezone in query - otherwise your site's time zone will be used. If provided, this
- * parameter will be used instead of start_date.
- * @param filterStartDatetime Value for ZonedDateTime
- */
- @JsonSetter("filter[start_datetime]")
- @JsonDeserialize(using = DateTimeHelper.Rfc8601DateTimeDeserializer.class)
- public void setFilterStartDatetime(ZonedDateTime filterStartDatetime) {
- this.filterStartDatetime = filterStartDatetime;
- }
-
- /**
- * Getter for FilterType.
- * Allows fetching price points with matching type. Use in query: `filter[type]=custom,catalog`.
- * @return Returns the List of PricePointType
- */
- @JsonGetter("filter[type]")
- @JsonInclude(JsonInclude.Include.NON_NULL)
- public List getFilterType() {
- return filterType;
- }
-
- /**
- * Setter for FilterType.
- * Allows fetching price points with matching type. Use in query: `filter[type]=custom,catalog`.
- * @param filterType Value for List of PricePointType
- */
- @JsonSetter("filter[type]")
- public void setFilterType(List filterType) {
- this.filterType = filterType;
- }
-
/**
* Getter for Direction.
* Controls the order in which results are returned. Use in query `direction=asc`.
@@ -336,49 +146,24 @@ public void setDirection(SortingDirection direction) {
}
/**
- * Getter for FilterIds.
- * Allows fetching price points with matching id based on provided values. Use in query:
- * `filter[ids]=1,2,3`.
- * @return Returns the List of Integer
+ * Getter for Filter.
+ * Filter to use for List PricePoints operations
+ * @return Returns the ListPricePointsFilter
*/
- @JsonGetter("filter[ids]")
+ @JsonGetter("filter")
@JsonInclude(JsonInclude.Include.NON_NULL)
- public List getFilterIds() {
- return filterIds;
+ public ListPricePointsFilter getFilter() {
+ return filter;
}
/**
- * Setter for FilterIds.
- * Allows fetching price points with matching id based on provided values. Use in query:
- * `filter[ids]=1,2,3`.
- * @param filterIds Value for List of Integer
+ * Setter for Filter.
+ * Filter to use for List PricePoints operations
+ * @param filter Value for ListPricePointsFilter
*/
- @JsonSetter("filter[ids]")
- public void setFilterIds(List filterIds) {
- this.filterIds = filterIds;
- }
-
- /**
- * Getter for FilterArchivedAt.
- * Allows fetching price points only if archived_at is present or not. Use in query:
- * `filter[archived_at]=not_null`.
- * @return Returns the IncludeNotNull
- */
- @JsonGetter("filter[archived_at]")
- @JsonInclude(JsonInclude.Include.NON_NULL)
- public IncludeNotNull getFilterArchivedAt() {
- return filterArchivedAt;
- }
-
- /**
- * Setter for FilterArchivedAt.
- * Allows fetching price points only if archived_at is present or not. Use in query:
- * `filter[archived_at]=not_null`.
- * @param filterArchivedAt Value for IncludeNotNull
- */
- @JsonSetter("filter[archived_at]")
- public void setFilterArchivedAt(IncludeNotNull filterArchivedAt) {
- this.filterArchivedAt = filterArchivedAt;
+ @JsonSetter("filter")
+ public void setFilter(ListPricePointsFilter filter) {
+ this.filter = filter;
}
/**
@@ -387,12 +172,8 @@ public void setFilterArchivedAt(IncludeNotNull filterArchivedAt) {
*/
@Override
public String toString() {
- return "ListAllComponentPricePointsInput [" + "filterDateField=" + filterDateField
- + ", filterEndDate=" + filterEndDate + ", filterEndDatetime=" + filterEndDatetime
- + ", include=" + include + ", page=" + page + ", perPage=" + perPage
- + ", filterStartDate=" + filterStartDate + ", filterStartDatetime="
- + filterStartDatetime + ", filterType=" + filterType + ", direction=" + direction
- + ", filterIds=" + filterIds + ", filterArchivedAt=" + filterArchivedAt + "]";
+ return "ListAllComponentPricePointsInput [" + "include=" + include + ", page=" + page
+ + ", perPage=" + perPage + ", direction=" + direction + ", filter=" + filter + "]";
}
/**
@@ -402,18 +183,11 @@ public String toString() {
*/
public Builder toBuilder() {
Builder builder = new Builder()
- .filterDateField(getFilterDateField())
- .filterEndDate(getFilterEndDate())
- .filterEndDatetime(getFilterEndDatetime())
.include(getInclude())
.page(getPage())
.perPage(getPerPage())
- .filterStartDate(getFilterStartDate())
- .filterStartDatetime(getFilterStartDatetime())
- .filterType(getFilterType())
.direction(getDirection())
- .filterIds(getFilterIds())
- .filterArchivedAt(getFilterArchivedAt());
+ .filter(getFilter());
return builder;
}
@@ -421,50 +195,13 @@ public Builder toBuilder() {
* Class to build instances of {@link ListAllComponentPricePointsInput}.
*/
public static class Builder {
- private BasicDateField filterDateField;
- private LocalDate filterEndDate;
- private ZonedDateTime filterEndDatetime;
private ListComponentsPricePointsInclude include;
private Integer page = 1;
private Integer perPage = 20;
- private LocalDate filterStartDate;
- private ZonedDateTime filterStartDatetime;
- private List filterType;
private SortingDirection direction;
- private List filterIds;
- private IncludeNotNull filterArchivedAt;
-
-
-
- /**
- * Setter for filterDateField.
- * @param filterDateField BasicDateField value for filterDateField.
- * @return Builder
- */
- public Builder filterDateField(BasicDateField filterDateField) {
- this.filterDateField = filterDateField;
- return this;
- }
+ private ListPricePointsFilter filter;
- /**
- * Setter for filterEndDate.
- * @param filterEndDate LocalDate value for filterEndDate.
- * @return Builder
- */
- public Builder filterEndDate(LocalDate filterEndDate) {
- this.filterEndDate = filterEndDate;
- return this;
- }
- /**
- * Setter for filterEndDatetime.
- * @param filterEndDatetime ZonedDateTime value for filterEndDatetime.
- * @return Builder
- */
- public Builder filterEndDatetime(ZonedDateTime filterEndDatetime) {
- this.filterEndDatetime = filterEndDatetime;
- return this;
- }
/**
* Setter for include.
@@ -496,36 +233,6 @@ public Builder perPage(Integer perPage) {
return this;
}
- /**
- * Setter for filterStartDate.
- * @param filterStartDate LocalDate value for filterStartDate.
- * @return Builder
- */
- public Builder filterStartDate(LocalDate filterStartDate) {
- this.filterStartDate = filterStartDate;
- return this;
- }
-
- /**
- * Setter for filterStartDatetime.
- * @param filterStartDatetime ZonedDateTime value for filterStartDatetime.
- * @return Builder
- */
- public Builder filterStartDatetime(ZonedDateTime filterStartDatetime) {
- this.filterStartDatetime = filterStartDatetime;
- return this;
- }
-
- /**
- * Setter for filterType.
- * @param filterType List of PricePointType value for filterType.
- * @return Builder
- */
- public Builder filterType(List filterType) {
- this.filterType = filterType;
- return this;
- }
-
/**
* Setter for direction.
* @param direction SortingDirection value for direction.
@@ -537,22 +244,12 @@ public Builder direction(SortingDirection direction) {
}
/**
- * Setter for filterIds.
- * @param filterIds List of Integer value for filterIds.
- * @return Builder
- */
- public Builder filterIds(List filterIds) {
- this.filterIds = filterIds;
- return this;
- }
-
- /**
- * Setter for filterArchivedAt.
- * @param filterArchivedAt IncludeNotNull value for filterArchivedAt.
+ * Setter for filter.
+ * @param filter ListPricePointsFilter value for filter.
* @return Builder
*/
- public Builder filterArchivedAt(IncludeNotNull filterArchivedAt) {
- this.filterArchivedAt = filterArchivedAt;
+ public Builder filter(ListPricePointsFilter filter) {
+ this.filter = filter;
return this;
}
@@ -561,9 +258,7 @@ public Builder filterArchivedAt(IncludeNotNull filterArchivedAt) {
* @return {@link ListAllComponentPricePointsInput}
*/
public ListAllComponentPricePointsInput build() {
- return new ListAllComponentPricePointsInput(filterDateField, filterEndDate,
- filterEndDatetime, include, page, perPage, filterStartDate, filterStartDatetime,
- filterType, direction, filterIds, filterArchivedAt);
+ return new ListAllComponentPricePointsInput(include, page, perPage, direction, filter);
}
}
}
diff --git a/src/main/java/com/maxio/advancedbilling/models/ListAllProductPricePointsInput.java b/src/main/java/com/maxio/advancedbilling/models/ListAllProductPricePointsInput.java
index 0d308bc6..4cf006fa 100644
--- a/src/main/java/com/maxio/advancedbilling/models/ListAllProductPricePointsInput.java
+++ b/src/main/java/com/maxio/advancedbilling/models/ListAllProductPricePointsInput.java
@@ -9,26 +9,13 @@
import com.fasterxml.jackson.annotation.JsonGetter;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonSetter;
-import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
-import com.fasterxml.jackson.databind.annotation.JsonSerialize;
-import com.maxio.advancedbilling.DateTimeHelper;
-import java.time.LocalDate;
-import java.time.ZonedDateTime;
-import java.util.List;
/**
* This is a model class for ListAllProductPricePointsInput type.
*/
public class ListAllProductPricePointsInput {
private SortingDirection direction;
- private IncludeNotNull filterArchivedAt;
- private BasicDateField filterDateField;
- private LocalDate filterEndDate;
- private ZonedDateTime filterEndDatetime;
- private List filterIds;
- private LocalDate filterStartDate;
- private ZonedDateTime filterStartDatetime;
- private List filterType;
+ private ListPricePointsFilter filter;
private ListProductsPricePointsInclude include;
private Integer page;
private Integer perPage;
@@ -44,40 +31,19 @@ public ListAllProductPricePointsInput() {
/**
* Initialization constructor.
* @param direction SortingDirection value for direction.
- * @param filterArchivedAt IncludeNotNull value for filterArchivedAt.
- * @param filterDateField BasicDateField value for filterDateField.
- * @param filterEndDate LocalDate value for filterEndDate.
- * @param filterEndDatetime ZonedDateTime value for filterEndDatetime.
- * @param filterIds List of Integer value for filterIds.
- * @param filterStartDate LocalDate value for filterStartDate.
- * @param filterStartDatetime ZonedDateTime value for filterStartDatetime.
- * @param filterType List of PricePointType value for filterType.
+ * @param filter ListPricePointsFilter value for filter.
* @param include ListProductsPricePointsInclude value for include.
* @param page Integer value for page.
* @param perPage Integer value for perPage.
*/
public ListAllProductPricePointsInput(
SortingDirection direction,
- IncludeNotNull filterArchivedAt,
- BasicDateField filterDateField,
- LocalDate filterEndDate,
- ZonedDateTime filterEndDatetime,
- List filterIds,
- LocalDate filterStartDate,
- ZonedDateTime filterStartDatetime,
- List filterType,
+ ListPricePointsFilter filter,
ListProductsPricePointsInclude include,
Integer page,
Integer perPage) {
this.direction = direction;
- this.filterArchivedAt = filterArchivedAt;
- this.filterDateField = filterDateField;
- this.filterEndDate = filterEndDate;
- this.filterEndDatetime = filterEndDatetime;
- this.filterIds = filterIds;
- this.filterStartDate = filterStartDate;
- this.filterStartDatetime = filterStartDatetime;
- this.filterType = filterType;
+ this.filter = filter;
this.include = include;
this.page = page;
this.perPage = perPage;
@@ -105,205 +71,24 @@ public void setDirection(SortingDirection direction) {
}
/**
- * Getter for FilterArchivedAt.
- * Allows fetching price points only if archived_at is present or not. Use in query:
- * `filter[archived_at]=not_null`.
- * @return Returns the IncludeNotNull
+ * Getter for Filter.
+ * Filter to use for List PricePoints operations
+ * @return Returns the ListPricePointsFilter
*/
- @JsonGetter("filter[archived_at]")
+ @JsonGetter("filter")
@JsonInclude(JsonInclude.Include.NON_NULL)
- public IncludeNotNull getFilterArchivedAt() {
- return filterArchivedAt;
+ public ListPricePointsFilter getFilter() {
+ return filter;
}
/**
- * Setter for FilterArchivedAt.
- * Allows fetching price points only if archived_at is present or not. Use in query:
- * `filter[archived_at]=not_null`.
- * @param filterArchivedAt Value for IncludeNotNull
+ * Setter for Filter.
+ * Filter to use for List PricePoints operations
+ * @param filter Value for ListPricePointsFilter
*/
- @JsonSetter("filter[archived_at]")
- public void setFilterArchivedAt(IncludeNotNull filterArchivedAt) {
- this.filterArchivedAt = filterArchivedAt;
- }
-
- /**
- * Getter for FilterDateField.
- * The type of filter you would like to apply to your search. Use in query:
- * `filter[date_field]=created_at`.
- * @return Returns the BasicDateField
- */
- @JsonGetter("filter[date_field]")
- @JsonInclude(JsonInclude.Include.NON_NULL)
- public BasicDateField getFilterDateField() {
- return filterDateField;
- }
-
- /**
- * Setter for FilterDateField.
- * The type of filter you would like to apply to your search. Use in query:
- * `filter[date_field]=created_at`.
- * @param filterDateField Value for BasicDateField
- */
- @JsonSetter("filter[date_field]")
- public void setFilterDateField(BasicDateField filterDateField) {
- this.filterDateField = filterDateField;
- }
-
- /**
- * Getter for FilterEndDate.
- * The end date (format YYYY-MM-DD) with which to filter the date_field. Returns price points
- * with a timestamp up to and including 11:59:59PM in your site’s time zone on the date
- * specified.
- * @return Returns the LocalDate
- */
- @JsonGetter("filter[end_date]")
- @JsonInclude(JsonInclude.Include.NON_NULL)
- @JsonSerialize(using = DateTimeHelper.SimpleDateSerializer.class)
- public LocalDate getFilterEndDate() {
- return filterEndDate;
- }
-
- /**
- * Setter for FilterEndDate.
- * The end date (format YYYY-MM-DD) with which to filter the date_field. Returns price points
- * with a timestamp up to and including 11:59:59PM in your site’s time zone on the date
- * specified.
- * @param filterEndDate Value for LocalDate
- */
- @JsonSetter("filter[end_date]")
- @JsonDeserialize(using = DateTimeHelper.SimpleDateDeserializer.class)
- public void setFilterEndDate(LocalDate filterEndDate) {
- this.filterEndDate = filterEndDate;
- }
-
- /**
- * Getter for FilterEndDatetime.
- * The end date and time (format YYYY-MM-DD HH:MM:SS) with which to filter the date_field.
- * Returns price points with a timestamp at or before exact time provided in query. You can
- * specify timezone in query - otherwise your site's time zone will be used. If provided, this
- * parameter will be used instead of end_date.
- * @return Returns the ZonedDateTime
- */
- @JsonGetter("filter[end_datetime]")
- @JsonInclude(JsonInclude.Include.NON_NULL)
- @JsonSerialize(using = DateTimeHelper.Rfc8601DateTimeSerializer.class)
- public ZonedDateTime getFilterEndDatetime() {
- return filterEndDatetime;
- }
-
- /**
- * Setter for FilterEndDatetime.
- * The end date and time (format YYYY-MM-DD HH:MM:SS) with which to filter the date_field.
- * Returns price points with a timestamp at or before exact time provided in query. You can
- * specify timezone in query - otherwise your site's time zone will be used. If provided, this
- * parameter will be used instead of end_date.
- * @param filterEndDatetime Value for ZonedDateTime
- */
- @JsonSetter("filter[end_datetime]")
- @JsonDeserialize(using = DateTimeHelper.Rfc8601DateTimeDeserializer.class)
- public void setFilterEndDatetime(ZonedDateTime filterEndDatetime) {
- this.filterEndDatetime = filterEndDatetime;
- }
-
- /**
- * Getter for FilterIds.
- * Allows fetching price points with matching id based on provided values. Use in query:
- * `filter[ids]=1,2,3`.
- * @return Returns the List of Integer
- */
- @JsonGetter("filter[ids]")
- @JsonInclude(JsonInclude.Include.NON_NULL)
- public List getFilterIds() {
- return filterIds;
- }
-
- /**
- * Setter for FilterIds.
- * Allows fetching price points with matching id based on provided values. Use in query:
- * `filter[ids]=1,2,3`.
- * @param filterIds Value for List of Integer
- */
- @JsonSetter("filter[ids]")
- public void setFilterIds(List filterIds) {
- this.filterIds = filterIds;
- }
-
- /**
- * Getter for FilterStartDate.
- * The start date (format YYYY-MM-DD) with which to filter the date_field. Returns price points
- * with a timestamp at or after midnight (12:00:00 AM) in your site’s time zone on the date
- * specified.
- * @return Returns the LocalDate
- */
- @JsonGetter("filter[start_date]")
- @JsonInclude(JsonInclude.Include.NON_NULL)
- @JsonSerialize(using = DateTimeHelper.SimpleDateSerializer.class)
- public LocalDate getFilterStartDate() {
- return filterStartDate;
- }
-
- /**
- * Setter for FilterStartDate.
- * The start date (format YYYY-MM-DD) with which to filter the date_field. Returns price points
- * with a timestamp at or after midnight (12:00:00 AM) in your site’s time zone on the date
- * specified.
- * @param filterStartDate Value for LocalDate
- */
- @JsonSetter("filter[start_date]")
- @JsonDeserialize(using = DateTimeHelper.SimpleDateDeserializer.class)
- public void setFilterStartDate(LocalDate filterStartDate) {
- this.filterStartDate = filterStartDate;
- }
-
- /**
- * Getter for FilterStartDatetime.
- * The start date and time (format YYYY-MM-DD HH:MM:SS) with which to filter the date_field.
- * Returns price points with a timestamp at or after exact time provided in query. You can
- * specify timezone in query - otherwise your site's time zone will be used. If provided, this
- * parameter will be used instead of start_date.
- * @return Returns the ZonedDateTime
- */
- @JsonGetter("filter[start_datetime]")
- @JsonInclude(JsonInclude.Include.NON_NULL)
- @JsonSerialize(using = DateTimeHelper.Rfc8601DateTimeSerializer.class)
- public ZonedDateTime getFilterStartDatetime() {
- return filterStartDatetime;
- }
-
- /**
- * Setter for FilterStartDatetime.
- * The start date and time (format YYYY-MM-DD HH:MM:SS) with which to filter the date_field.
- * Returns price points with a timestamp at or after exact time provided in query. You can
- * specify timezone in query - otherwise your site's time zone will be used. If provided, this
- * parameter will be used instead of start_date.
- * @param filterStartDatetime Value for ZonedDateTime
- */
- @JsonSetter("filter[start_datetime]")
- @JsonDeserialize(using = DateTimeHelper.Rfc8601DateTimeDeserializer.class)
- public void setFilterStartDatetime(ZonedDateTime filterStartDatetime) {
- this.filterStartDatetime = filterStartDatetime;
- }
-
- /**
- * Getter for FilterType.
- * Allows fetching price points with matching type. Use in query: `filter[type]=catalog,custom`.
- * @return Returns the List of PricePointType
- */
- @JsonGetter("filter[type]")
- @JsonInclude(JsonInclude.Include.NON_NULL)
- public List getFilterType() {
- return filterType;
- }
-
- /**
- * Setter for FilterType.
- * Allows fetching price points with matching type. Use in query: `filter[type]=catalog,custom`.
- * @param filterType Value for List of PricePointType
- */
- @JsonSetter("filter[type]")
- public void setFilterType(List filterType) {
- this.filterType = filterType;
+ @JsonSetter("filter")
+ public void setFilter(ListPricePointsFilter filter) {
+ this.filter = filter;
}
/**
@@ -387,12 +172,8 @@ public void setPerPage(Integer perPage) {
*/
@Override
public String toString() {
- return "ListAllProductPricePointsInput [" + "direction=" + direction + ", filterArchivedAt="
- + filterArchivedAt + ", filterDateField=" + filterDateField + ", filterEndDate="
- + filterEndDate + ", filterEndDatetime=" + filterEndDatetime + ", filterIds="
- + filterIds + ", filterStartDate=" + filterStartDate + ", filterStartDatetime="
- + filterStartDatetime + ", filterType=" + filterType + ", include=" + include
- + ", page=" + page + ", perPage=" + perPage + "]";
+ return "ListAllProductPricePointsInput [" + "direction=" + direction + ", filter=" + filter
+ + ", include=" + include + ", page=" + page + ", perPage=" + perPage + "]";
}
/**
@@ -403,14 +184,7 @@ public String toString() {
public Builder toBuilder() {
Builder builder = new Builder()
.direction(getDirection())
- .filterArchivedAt(getFilterArchivedAt())
- .filterDateField(getFilterDateField())
- .filterEndDate(getFilterEndDate())
- .filterEndDatetime(getFilterEndDatetime())
- .filterIds(getFilterIds())
- .filterStartDate(getFilterStartDate())
- .filterStartDatetime(getFilterStartDatetime())
- .filterType(getFilterType())
+ .filter(getFilter())
.include(getInclude())
.page(getPage())
.perPage(getPerPage());
@@ -422,14 +196,7 @@ public Builder toBuilder() {
*/
public static class Builder {
private SortingDirection direction;
- private IncludeNotNull filterArchivedAt;
- private BasicDateField filterDateField;
- private LocalDate filterEndDate;
- private ZonedDateTime filterEndDatetime;
- private List filterIds;
- private LocalDate filterStartDate;
- private ZonedDateTime filterStartDatetime;
- private List filterType;
+ private ListPricePointsFilter filter;
private ListProductsPricePointsInclude include;
private Integer page = 1;
private Integer perPage = 20;
@@ -447,82 +214,12 @@ public Builder direction(SortingDirection direction) {
}
/**
- * Setter for filterArchivedAt.
- * @param filterArchivedAt IncludeNotNull value for filterArchivedAt.
- * @return Builder
- */
- public Builder filterArchivedAt(IncludeNotNull filterArchivedAt) {
- this.filterArchivedAt = filterArchivedAt;
- return this;
- }
-
- /**
- * Setter for filterDateField.
- * @param filterDateField BasicDateField value for filterDateField.
- * @return Builder
- */
- public Builder filterDateField(BasicDateField filterDateField) {
- this.filterDateField = filterDateField;
- return this;
- }
-
- /**
- * Setter for filterEndDate.
- * @param filterEndDate LocalDate value for filterEndDate.
- * @return Builder
- */
- public Builder filterEndDate(LocalDate filterEndDate) {
- this.filterEndDate = filterEndDate;
- return this;
- }
-
- /**
- * Setter for filterEndDatetime.
- * @param filterEndDatetime ZonedDateTime value for filterEndDatetime.
- * @return Builder
- */
- public Builder filterEndDatetime(ZonedDateTime filterEndDatetime) {
- this.filterEndDatetime = filterEndDatetime;
- return this;
- }
-
- /**
- * Setter for filterIds.
- * @param filterIds List of Integer value for filterIds.
- * @return Builder
- */
- public Builder filterIds(List filterIds) {
- this.filterIds = filterIds;
- return this;
- }
-
- /**
- * Setter for filterStartDate.
- * @param filterStartDate LocalDate value for filterStartDate.
- * @return Builder
- */
- public Builder filterStartDate(LocalDate filterStartDate) {
- this.filterStartDate = filterStartDate;
- return this;
- }
-
- /**
- * Setter for filterStartDatetime.
- * @param filterStartDatetime ZonedDateTime value for filterStartDatetime.
- * @return Builder
- */
- public Builder filterStartDatetime(ZonedDateTime filterStartDatetime) {
- this.filterStartDatetime = filterStartDatetime;
- return this;
- }
-
- /**
- * Setter for filterType.
- * @param filterType List of PricePointType value for filterType.
+ * Setter for filter.
+ * @param filter ListPricePointsFilter value for filter.
* @return Builder
*/
- public Builder filterType(List filterType) {
- this.filterType = filterType;
+ public Builder filter(ListPricePointsFilter filter) {
+ this.filter = filter;
return this;
}
@@ -561,9 +258,7 @@ public Builder perPage(Integer perPage) {
* @return {@link ListAllProductPricePointsInput}
*/
public ListAllProductPricePointsInput build() {
- return new ListAllProductPricePointsInput(direction, filterArchivedAt, filterDateField,
- filterEndDate, filterEndDatetime, filterIds, filterStartDate,
- filterStartDatetime, filterType, include, page, perPage);
+ return new ListAllProductPricePointsInput(direction, filter, include, page, perPage);
}
}
}
diff --git a/src/main/java/com/maxio/advancedbilling/models/ListComponentsFilter.java b/src/main/java/com/maxio/advancedbilling/models/ListComponentsFilter.java
new file mode 100644
index 00000000..db0e0c3c
--- /dev/null
+++ b/src/main/java/com/maxio/advancedbilling/models/ListComponentsFilter.java
@@ -0,0 +1,146 @@
+/*
+ * AdvancedBilling
+ *
+ * This file was automatically generated for Maxio by APIMATIC v3.0 ( https://www.apimatic.io ).
+ */
+
+package com.maxio.advancedbilling.models;
+
+import com.fasterxml.jackson.annotation.JsonGetter;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonSetter;
+import io.apimatic.core.types.BaseModel;
+import java.util.List;
+
+/**
+ * This is a model class for ListComponentsFilter type.
+ */
+public class ListComponentsFilter
+ extends BaseModel {
+ private List ids;
+ private Boolean useSiteExchangeRate;
+
+ /**
+ * Default constructor.
+ */
+ public ListComponentsFilter() {
+ }
+
+ /**
+ * Initialization constructor.
+ * @param ids List of Integer value for ids.
+ * @param useSiteExchangeRate Boolean value for useSiteExchangeRate.
+ */
+ public ListComponentsFilter(
+ List ids,
+ Boolean useSiteExchangeRate) {
+ this.ids = ids;
+ this.useSiteExchangeRate = useSiteExchangeRate;
+ }
+
+ /**
+ * Getter for Ids.
+ * Allows fetching components with matching id based on provided value. Use in query
+ * `filter[ids]=1,2,3`.
+ * @return Returns the List of Integer
+ */
+ @JsonGetter("ids")
+ @JsonInclude(JsonInclude.Include.NON_NULL)
+ public List getIds() {
+ return ids;
+ }
+
+ /**
+ * Setter for Ids.
+ * Allows fetching components with matching id based on provided value. Use in query
+ * `filter[ids]=1,2,3`.
+ * @param ids Value for List of Integer
+ */
+ @JsonSetter("ids")
+ public void setIds(List ids) {
+ this.ids = ids;
+ }
+
+ /**
+ * Getter for UseSiteExchangeRate.
+ * Allows fetching components with matching use_site_exchange_rate based on provided value
+ * (refers to default price point). Use in query `filter[use_site_exchange_rate]=true`.
+ * @return Returns the Boolean
+ */
+ @JsonGetter("use_site_exchange_rate")
+ @JsonInclude(JsonInclude.Include.NON_NULL)
+ public Boolean getUseSiteExchangeRate() {
+ return useSiteExchangeRate;
+ }
+
+ /**
+ * Setter for UseSiteExchangeRate.
+ * Allows fetching components with matching use_site_exchange_rate based on provided value
+ * (refers to default price point). Use in query `filter[use_site_exchange_rate]=true`.
+ * @param useSiteExchangeRate Value for Boolean
+ */
+ @JsonSetter("use_site_exchange_rate")
+ public void setUseSiteExchangeRate(Boolean useSiteExchangeRate) {
+ this.useSiteExchangeRate = useSiteExchangeRate;
+ }
+
+ /**
+ * Converts this ListComponentsFilter into string format.
+ * @return String representation of this class
+ */
+ @Override
+ public String toString() {
+ return "ListComponentsFilter [" + "ids=" + ids + ", useSiteExchangeRate="
+ + useSiteExchangeRate + ", additionalProperties=" + getAdditionalProperties() + "]";
+ }
+
+ /**
+ * Builds a new {@link ListComponentsFilter.Builder} object.
+ * Creates the instance with the state of the current model.
+ * @return a new {@link ListComponentsFilter.Builder} object
+ */
+ public Builder toBuilder() {
+ Builder builder = new Builder()
+ .ids(getIds())
+ .useSiteExchangeRate(getUseSiteExchangeRate());
+ return builder;
+ }
+
+ /**
+ * Class to build instances of {@link ListComponentsFilter}.
+ */
+ public static class Builder {
+ private List ids;
+ private Boolean useSiteExchangeRate;
+
+
+
+ /**
+ * Setter for ids.
+ * @param ids List of Integer value for ids.
+ * @return Builder
+ */
+ public Builder ids(List ids) {
+ this.ids = ids;
+ return this;
+ }
+
+ /**
+ * Setter for useSiteExchangeRate.
+ * @param useSiteExchangeRate Boolean value for useSiteExchangeRate.
+ * @return Builder
+ */
+ public Builder useSiteExchangeRate(Boolean useSiteExchangeRate) {
+ this.useSiteExchangeRate = useSiteExchangeRate;
+ return this;
+ }
+
+ /**
+ * Builds a new {@link ListComponentsFilter} object using the set fields.
+ * @return {@link ListComponentsFilter}
+ */
+ public ListComponentsFilter build() {
+ return new ListComponentsFilter(ids, useSiteExchangeRate);
+ }
+ }
+}
diff --git a/src/main/java/com/maxio/advancedbilling/models/ListComponentsForProductFamilyInput.java b/src/main/java/com/maxio/advancedbilling/models/ListComponentsForProductFamilyInput.java
index d3f3db7a..a204f9b9 100644
--- a/src/main/java/com/maxio/advancedbilling/models/ListComponentsForProductFamilyInput.java
+++ b/src/main/java/com/maxio/advancedbilling/models/ListComponentsForProductFamilyInput.java
@@ -9,7 +9,6 @@
import com.fasterxml.jackson.annotation.JsonGetter;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonSetter;
-import java.util.List;
/**
* This is a model class for ListComponentsForProductFamilyInput type.
@@ -17,15 +16,14 @@
public class ListComponentsForProductFamilyInput {
private int productFamilyId;
private Boolean includeArchived;
- private List filterIds;
private Integer page;
private Integer perPage;
+ private ListComponentsFilter filter;
private BasicDateField dateField;
private String endDate;
private String endDatetime;
private String startDate;
private String startDatetime;
- private Boolean filterUseSiteExchangeRate;
/**
* Default constructor.
@@ -39,39 +37,36 @@ public ListComponentsForProductFamilyInput() {
* Initialization constructor.
* @param productFamilyId int value for productFamilyId.
* @param includeArchived Boolean value for includeArchived.
- * @param filterIds List of Integer value for filterIds.
* @param page Integer value for page.
* @param perPage Integer value for perPage.
+ * @param filter ListComponentsFilter value for filter.
* @param dateField BasicDateField value for dateField.
* @param endDate String value for endDate.
* @param endDatetime String value for endDatetime.
* @param startDate String value for startDate.
* @param startDatetime String value for startDatetime.
- * @param filterUseSiteExchangeRate Boolean value for filterUseSiteExchangeRate.
*/
public ListComponentsForProductFamilyInput(
int productFamilyId,
Boolean includeArchived,
- List filterIds,
Integer page,
Integer perPage,
+ ListComponentsFilter filter,
BasicDateField dateField,
String endDate,
String endDatetime,
String startDate,
- String startDatetime,
- Boolean filterUseSiteExchangeRate) {
+ String startDatetime) {
this.productFamilyId = productFamilyId;
this.includeArchived = includeArchived;
- this.filterIds = filterIds;
this.page = page;
this.perPage = perPage;
+ this.filter = filter;
this.dateField = dateField;
this.endDate = endDate;
this.endDatetime = endDatetime;
this.startDate = startDate;
this.startDatetime = startDatetime;
- this.filterUseSiteExchangeRate = filterUseSiteExchangeRate;
}
/**
@@ -115,29 +110,6 @@ public void setIncludeArchived(Boolean includeArchived) {
this.includeArchived = includeArchived;
}
- /**
- * Getter for FilterIds.
- * Allows fetching components with matching id based on provided value. Use in query
- * `filter[ids]=1,2`.
- * @return Returns the List of Integer
- */
- @JsonGetter("filter[ids]")
- @JsonInclude(JsonInclude.Include.NON_NULL)
- public List getFilterIds() {
- return filterIds;
- }
-
- /**
- * Setter for FilterIds.
- * Allows fetching components with matching id based on provided value. Use in query
- * `filter[ids]=1,2`.
- * @param filterIds Value for List of Integer
- */
- @JsonSetter("filter[ids]")
- public void setFilterIds(List filterIds) {
- this.filterIds = filterIds;
- }
-
/**
* Getter for Page.
* Result records are organized in pages. By default, the first page of results is displayed.
@@ -192,6 +164,27 @@ public void setPerPage(Integer perPage) {
this.perPage = perPage;
}
+ /**
+ * Getter for Filter.
+ * Filter to use for List Components operations
+ * @return Returns the ListComponentsFilter
+ */
+ @JsonGetter("filter")
+ @JsonInclude(JsonInclude.Include.NON_NULL)
+ public ListComponentsFilter getFilter() {
+ return filter;
+ }
+
+ /**
+ * Setter for Filter.
+ * Filter to use for List Components operations
+ * @param filter Value for ListComponentsFilter
+ */
+ @JsonSetter("filter")
+ public void setFilter(ListComponentsFilter filter) {
+ this.filter = filter;
+ }
+
/**
* Getter for DateField.
* The type of filter you would like to apply to your search. Use in query
@@ -317,29 +310,6 @@ public void setStartDatetime(String startDatetime) {
this.startDatetime = startDatetime;
}
- /**
- * Getter for FilterUseSiteExchangeRate.
- * Allows fetching components with matching use_site_exchange_rate based on provided value
- * (refers to default price point). Use in query `filter[use_site_exchange_rate]=true`.
- * @return Returns the Boolean
- */
- @JsonGetter("filter[use_site_exchange_rate]")
- @JsonInclude(JsonInclude.Include.NON_NULL)
- public Boolean getFilterUseSiteExchangeRate() {
- return filterUseSiteExchangeRate;
- }
-
- /**
- * Setter for FilterUseSiteExchangeRate.
- * Allows fetching components with matching use_site_exchange_rate based on provided value
- * (refers to default price point). Use in query `filter[use_site_exchange_rate]=true`.
- * @param filterUseSiteExchangeRate Value for Boolean
- */
- @JsonSetter("filter[use_site_exchange_rate]")
- public void setFilterUseSiteExchangeRate(Boolean filterUseSiteExchangeRate) {
- this.filterUseSiteExchangeRate = filterUseSiteExchangeRate;
- }
-
/**
* Converts this ListComponentsForProductFamilyInput into string format.
* @return String representation of this class
@@ -347,11 +317,10 @@ public void setFilterUseSiteExchangeRate(Boolean filterUseSiteExchangeRate) {
@Override
public String toString() {
return "ListComponentsForProductFamilyInput [" + "productFamilyId=" + productFamilyId
- + ", includeArchived=" + includeArchived + ", filterIds=" + filterIds + ", page="
- + page + ", perPage=" + perPage + ", dateField=" + dateField + ", endDate="
- + endDate + ", endDatetime=" + endDatetime + ", startDate=" + startDate
- + ", startDatetime=" + startDatetime + ", filterUseSiteExchangeRate="
- + filterUseSiteExchangeRate + "]";
+ + ", includeArchived=" + includeArchived + ", page=" + page + ", perPage=" + perPage
+ + ", filter=" + filter + ", dateField=" + dateField + ", endDate=" + endDate
+ + ", endDatetime=" + endDatetime + ", startDate=" + startDate + ", startDatetime="
+ + startDatetime + "]";
}
/**
@@ -362,15 +331,14 @@ public String toString() {
public Builder toBuilder() {
Builder builder = new Builder(productFamilyId)
.includeArchived(getIncludeArchived())
- .filterIds(getFilterIds())
.page(getPage())
.perPage(getPerPage())
+ .filter(getFilter())
.dateField(getDateField())
.endDate(getEndDate())
.endDatetime(getEndDatetime())
.startDate(getStartDate())
- .startDatetime(getStartDatetime())
- .filterUseSiteExchangeRate(getFilterUseSiteExchangeRate());
+ .startDatetime(getStartDatetime());
return builder;
}
@@ -380,15 +348,14 @@ public Builder toBuilder() {
public static class Builder {
private int productFamilyId;
private Boolean includeArchived;
- private List filterIds;
private Integer page = 1;
private Integer perPage = 20;
+ private ListComponentsFilter filter;
private BasicDateField dateField;
private String endDate;
private String endDatetime;
private String startDate;
private String startDatetime;
- private Boolean filterUseSiteExchangeRate;
/**
* Initialization constructor.
@@ -424,16 +391,6 @@ public Builder includeArchived(Boolean includeArchived) {
return this;
}
- /**
- * Setter for filterIds.
- * @param filterIds List of Integer value for filterIds.
- * @return Builder
- */
- public Builder filterIds(List filterIds) {
- this.filterIds = filterIds;
- return this;
- }
-
/**
* Setter for page.
* @param page Integer value for page.
@@ -454,6 +411,16 @@ public Builder perPage(Integer perPage) {
return this;
}
+ /**
+ * Setter for filter.
+ * @param filter ListComponentsFilter value for filter.
+ * @return Builder
+ */
+ public Builder filter(ListComponentsFilter filter) {
+ this.filter = filter;
+ return this;
+ }
+
/**
* Setter for dateField.
* @param dateField BasicDateField value for dateField.
@@ -504,24 +471,13 @@ public Builder startDatetime(String startDatetime) {
return this;
}
- /**
- * Setter for filterUseSiteExchangeRate.
- * @param filterUseSiteExchangeRate Boolean value for filterUseSiteExchangeRate.
- * @return Builder
- */
- public Builder filterUseSiteExchangeRate(Boolean filterUseSiteExchangeRate) {
- this.filterUseSiteExchangeRate = filterUseSiteExchangeRate;
- return this;
- }
-
/**
* Builds a new {@link ListComponentsForProductFamilyInput} object using the set fields.
* @return {@link ListComponentsForProductFamilyInput}
*/
public ListComponentsForProductFamilyInput build() {
- return new ListComponentsForProductFamilyInput(productFamilyId, includeArchived,
- filterIds, page, perPage, dateField, endDate, endDatetime, startDate,
- startDatetime, filterUseSiteExchangeRate);
+ return new ListComponentsForProductFamilyInput(productFamilyId, includeArchived, page,
+ perPage, filter, dateField, endDate, endDatetime, startDate, startDatetime);
}
}
}
diff --git a/src/main/java/com/maxio/advancedbilling/models/ListComponentsInput.java b/src/main/java/com/maxio/advancedbilling/models/ListComponentsInput.java
index 5a834aea..0c1c9647 100644
--- a/src/main/java/com/maxio/advancedbilling/models/ListComponentsInput.java
+++ b/src/main/java/com/maxio/advancedbilling/models/ListComponentsInput.java
@@ -9,7 +9,6 @@
import com.fasterxml.jackson.annotation.JsonGetter;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonSetter;
-import java.util.List;
/**
* This is a model class for ListComponentsInput type.
@@ -23,8 +22,7 @@ public class ListComponentsInput {
private Boolean includeArchived;
private Integer page;
private Integer perPage;
- private List filterIds;
- private Boolean filterUseSiteExchangeRate;
+ private ListComponentsFilter filter;
/**
* Default constructor.
@@ -44,8 +42,7 @@ public ListComponentsInput() {
* @param includeArchived Boolean value for includeArchived.
* @param page Integer value for page.
* @param perPage Integer value for perPage.
- * @param filterIds List of String value for filterIds.
- * @param filterUseSiteExchangeRate Boolean value for filterUseSiteExchangeRate.
+ * @param filter ListComponentsFilter value for filter.
*/
public ListComponentsInput(
BasicDateField dateField,
@@ -56,8 +53,7 @@ public ListComponentsInput(
Boolean includeArchived,
Integer page,
Integer perPage,
- List filterIds,
- Boolean filterUseSiteExchangeRate) {
+ ListComponentsFilter filter) {
this.dateField = dateField;
this.startDate = startDate;
this.endDate = endDate;
@@ -66,8 +62,7 @@ public ListComponentsInput(
this.includeArchived = includeArchived;
this.page = page;
this.perPage = perPage;
- this.filterIds = filterIds;
- this.filterUseSiteExchangeRate = filterUseSiteExchangeRate;
+ this.filter = filter;
}
/**
@@ -269,49 +264,24 @@ public void setPerPage(Integer perPage) {
}
/**
- * Getter for FilterIds.
- * Allows fetching components with matching id based on provided value. Use in query
- * `filter[ids]=1,2,3`.
- * @return Returns the List of String
+ * Getter for Filter.
+ * Filter to use for List Components operations
+ * @return Returns the ListComponentsFilter
*/
- @JsonGetter("filter[ids]")
+ @JsonGetter("filter")
@JsonInclude(JsonInclude.Include.NON_NULL)
- public List getFilterIds() {
- return filterIds;
+ public ListComponentsFilter getFilter() {
+ return filter;
}
/**
- * Setter for FilterIds.
- * Allows fetching components with matching id based on provided value. Use in query
- * `filter[ids]=1,2,3`.
- * @param filterIds Value for List of String
+ * Setter for Filter.
+ * Filter to use for List Components operations
+ * @param filter Value for ListComponentsFilter
*/
- @JsonSetter("filter[ids]")
- public void setFilterIds(List filterIds) {
- this.filterIds = filterIds;
- }
-
- /**
- * Getter for FilterUseSiteExchangeRate.
- * Allows fetching components with matching use_site_exchange_rate based on provided value
- * (refers to default price point). Use in query `filter[use_site_exchange_rate]=true`.
- * @return Returns the Boolean
- */
- @JsonGetter("filter[use_site_exchange_rate]")
- @JsonInclude(JsonInclude.Include.NON_NULL)
- public Boolean getFilterUseSiteExchangeRate() {
- return filterUseSiteExchangeRate;
- }
-
- /**
- * Setter for FilterUseSiteExchangeRate.
- * Allows fetching components with matching use_site_exchange_rate based on provided value
- * (refers to default price point). Use in query `filter[use_site_exchange_rate]=true`.
- * @param filterUseSiteExchangeRate Value for Boolean
- */
- @JsonSetter("filter[use_site_exchange_rate]")
- public void setFilterUseSiteExchangeRate(Boolean filterUseSiteExchangeRate) {
- this.filterUseSiteExchangeRate = filterUseSiteExchangeRate;
+ @JsonSetter("filter")
+ public void setFilter(ListComponentsFilter filter) {
+ this.filter = filter;
}
/**
@@ -323,8 +293,7 @@ public String toString() {
return "ListComponentsInput [" + "dateField=" + dateField + ", startDate=" + startDate
+ ", endDate=" + endDate + ", startDatetime=" + startDatetime + ", endDatetime="
+ endDatetime + ", includeArchived=" + includeArchived + ", page=" + page
- + ", perPage=" + perPage + ", filterIds=" + filterIds
- + ", filterUseSiteExchangeRate=" + filterUseSiteExchangeRate + "]";
+ + ", perPage=" + perPage + ", filter=" + filter + "]";
}
/**
@@ -342,8 +311,7 @@ public Builder toBuilder() {
.includeArchived(getIncludeArchived())
.page(getPage())
.perPage(getPerPage())
- .filterIds(getFilterIds())
- .filterUseSiteExchangeRate(getFilterUseSiteExchangeRate());
+ .filter(getFilter());
return builder;
}
@@ -359,8 +327,7 @@ public static class Builder {
private Boolean includeArchived;
private Integer page = 1;
private Integer perPage = 20;
- private List filterIds;
- private Boolean filterUseSiteExchangeRate;
+ private ListComponentsFilter filter;
@@ -445,22 +412,12 @@ public Builder perPage(Integer perPage) {
}
/**
- * Setter for filterIds.
- * @param filterIds List of String value for filterIds.
- * @return Builder
- */
- public Builder filterIds(List filterIds) {
- this.filterIds = filterIds;
- return this;
- }
-
- /**
- * Setter for filterUseSiteExchangeRate.
- * @param filterUseSiteExchangeRate Boolean value for filterUseSiteExchangeRate.
+ * Setter for filter.
+ * @param filter ListComponentsFilter value for filter.
* @return Builder
*/
- public Builder filterUseSiteExchangeRate(Boolean filterUseSiteExchangeRate) {
- this.filterUseSiteExchangeRate = filterUseSiteExchangeRate;
+ public Builder filter(ListComponentsFilter filter) {
+ this.filter = filter;
return this;
}
@@ -470,8 +427,7 @@ public Builder filterUseSiteExchangeRate(Boolean filterUseSiteExchangeRate) {
*/
public ListComponentsInput build() {
return new ListComponentsInput(dateField, startDate, endDate, startDatetime,
- endDatetime, includeArchived, page, perPage, filterIds,
- filterUseSiteExchangeRate);
+ endDatetime, includeArchived, page, perPage, filter);
}
}
}
diff --git a/src/main/java/com/maxio/advancedbilling/models/ListComponentsPricePointsInclude.java b/src/main/java/com/maxio/advancedbilling/models/ListComponentsPricePointsInclude.java
index c692a033..27383982 100644
--- a/src/main/java/com/maxio/advancedbilling/models/ListComponentsPricePointsInclude.java
+++ b/src/main/java/com/maxio/advancedbilling/models/ListComponentsPricePointsInclude.java
@@ -38,8 +38,7 @@ public enum ListComponentsPricePointsInclude {
@JsonCreator
public static ListComponentsPricePointsInclude constructFromString(String toConvert) throws IOException {
ListComponentsPricePointsInclude enumValue = fromString(toConvert);
- if (enumValue == null)
- {
+ if (enumValue == null) {
throw new IOException("Unable to create enum instance with value: " + toConvert);
}
return enumValue;
diff --git a/src/main/java/com/maxio/advancedbilling/models/ListCouponsFilter.java b/src/main/java/com/maxio/advancedbilling/models/ListCouponsFilter.java
new file mode 100644
index 00000000..fbc5b756
--- /dev/null
+++ b/src/main/java/com/maxio/advancedbilling/models/ListCouponsFilter.java
@@ -0,0 +1,412 @@
+/*
+ * AdvancedBilling
+ *
+ * This file was automatically generated for Maxio by APIMATIC v3.0 ( https://www.apimatic.io ).
+ */
+
+package com.maxio.advancedbilling.models;
+
+import com.fasterxml.jackson.annotation.JsonGetter;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonSetter;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.maxio.advancedbilling.DateTimeHelper;
+import io.apimatic.core.types.BaseModel;
+import java.time.LocalDate;
+import java.time.ZonedDateTime;
+import java.util.List;
+
+/**
+ * This is a model class for ListCouponsFilter type.
+ */
+public class ListCouponsFilter
+ extends BaseModel {
+ private BasicDateField dateField;
+ private LocalDate startDate;
+ private LocalDate endDate;
+ private ZonedDateTime startDatetime;
+ private ZonedDateTime endDatetime;
+ private List