Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions doc/controllers/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ List<EventResponse> listEvents(
| `sinceId` | `Long` | Query, Optional | Returns events with an id greater than or equal to the one specified |
| `maxId` | `Long` | Query, Optional | Returns events with an id less than or equal to the one specified |
| `direction` | [`Direction`](../../doc/models/direction.md) | Query, Optional | The sort direction of the returned events.<br>**Default**: `Direction.DESC` |
| `filter` | [`List<EventType>`](../../doc/models/event-type.md) | Query, Optional | You can pass multiple event keys after comma.<br>Use in query `filter=signup_success,payment_success`. |
| `filter` | [`List<EventKey>`](../../doc/models/event-key.md) | Query, Optional | You can pass multiple event keys after comma.<br>Use in query `filter=signup_success,payment_success`. |
| `dateField` | [`ListEventsDateField`](../../doc/models/list-events-date-field.md) | Query, Optional | The type of filter you would like to apply to your search. |
| `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. |
| `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. |
Expand All @@ -119,8 +119,8 @@ ListEventsInput listEventsInput = new ListEventsInput.Builder()
.perPage(50)
.direction(Direction.DESC)
.filter(Arrays.asList(
EventType.CUSTOM_FIELD_VALUE_CHANGE,
EventType.PAYMENT_SUCCESS
EventKey.CUSTOM_FIELD_VALUE_CHANGE,
EventKey.PAYMENT_SUCCESS
))
.dateField(ListEventsDateField.CREATED_AT)
.build();
Expand Down Expand Up @@ -227,7 +227,7 @@ List<EventResponse> listSubscriptionEvents(
| `sinceId` | `Long` | Query, Optional | Returns events with an id greater than or equal to the one specified |
| `maxId` | `Long` | Query, Optional | Returns events with an id less than or equal to the one specified |
| `direction` | [`Direction`](../../doc/models/direction.md) | Query, Optional | The sort direction of the returned events.<br>**Default**: `Direction.DESC` |
| `filter` | [`List<EventType>`](../../doc/models/event-type.md) | Query, Optional | You can pass multiple event keys after comma.<br>Use in query `filter=signup_success,payment_success`. |
| `filter` | [`List<EventKey>`](../../doc/models/event-key.md) | Query, Optional | You can pass multiple event keys after comma.<br>Use in query `filter=signup_success,payment_success`. |

## Response Type

Expand All @@ -243,8 +243,8 @@ ListSubscriptionEventsInput listSubscriptionEventsInput = new ListSubscriptionEv
.perPage(50)
.direction(Direction.DESC)
.filter(Arrays.asList(
EventType.CUSTOM_FIELD_VALUE_CHANGE,
EventType.PAYMENT_SUCCESS
EventKey.CUSTOM_FIELD_VALUE_CHANGE,
EventKey.PAYMENT_SUCCESS
))
.build();

Expand Down Expand Up @@ -320,7 +320,7 @@ CountResponse readEventsCount(
| `sinceId` | `Long` | Query, Optional | Returns events with an id greater than or equal to the one specified |
| `maxId` | `Long` | Query, Optional | Returns events with an id less than or equal to the one specified |
| `direction` | [`Direction`](../../doc/models/direction.md) | Query, Optional | The sort direction of the returned events.<br>**Default**: `Direction.DESC` |
| `filter` | [`List<EventType>`](../../doc/models/event-type.md) | Query, Optional | You can pass multiple event keys after comma.<br>Use in query `filter=signup_success,payment_success`. |
| `filter` | [`List<EventKey>`](../../doc/models/event-key.md) | Query, Optional | You can pass multiple event keys after comma.<br>Use in query `filter=signup_success,payment_success`. |

## Response Type

Expand All @@ -334,8 +334,8 @@ ReadEventsCountInput readEventsCountInput = new ReadEventsCountInput.Builder()
.perPage(50)
.direction(Direction.DESC)
.filter(Arrays.asList(
EventType.CUSTOM_FIELD_VALUE_CHANGE,
EventType.PAYMENT_SUCCESS
EventKey.CUSTOM_FIELD_VALUE_CHANGE,
EventKey.PAYMENT_SUCCESS
))
.build();

Expand Down
1 change: 1 addition & 0 deletions doc/controllers/product-price-points.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ ListProductPricePointsResponse listProductPricePoints(
| `perPage` | `Integer` | Query, Optional | This parameter indicates how many records to fetch in each request. Default value is 10. The maximum allowed values is 200; any per_page value over 200 will be changed to 200.<br>**Default**: `10`<br>**Constraints**: `<= 200` |
| `currencyPrices` | `Boolean` | Query, Optional | When fetching a product's price points, 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. If the product price point is set to use_site_exchange_rate: true, it will return pricing based on the current exchange rate. If the flag is set to false, it will return all of the defined prices for each currency. |
| `filterType` | [`List<PricePointType>`](../../doc/models/price-point-type.md) | Query, Optional | Use in query: `filter[type]=catalog,default`. |
| `archived` | `Boolean` | Query, Optional | Set to include archived price points in the response. |

## Response Type

Expand Down
46 changes: 0 additions & 46 deletions doc/models/event-type.md

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
import com.maxio.advancedbilling.exceptions.ApiException;
import com.maxio.advancedbilling.http.request.HttpMethod;
import com.maxio.advancedbilling.models.CountResponse;
import com.maxio.advancedbilling.models.EventKey;
import com.maxio.advancedbilling.models.EventResponse;
import com.maxio.advancedbilling.models.EventType;
import com.maxio.advancedbilling.models.ListEventsInput;
import com.maxio.advancedbilling.models.ListSubscriptionEventsInput;
import com.maxio.advancedbilling.models.ReadEventsCountInput;
Expand Down Expand Up @@ -93,7 +93,7 @@ private ApiCall<List<EventResponse>, ApiException> prepareListEventsRequest(
.queryParam(param -> param.key("direction")
.value((input.getDirection() != null) ? input.getDirection().value() : "desc").isRequired(false))
.queryParam(param -> param.key("filter")
.value(EventType.toValue(input.getFilter())).isRequired(false))
.value(EventKey.toValue(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")
Expand Down Expand Up @@ -156,7 +156,7 @@ private ApiCall<List<EventResponse>, ApiException> prepareListSubscriptionEvents
.queryParam(param -> param.key("direction")
.value((input.getDirection() != null) ? input.getDirection().value() : "desc").isRequired(false))
.queryParam(param -> param.key("filter")
.value(EventType.toValue(input.getFilter())).isRequired(false))
.value(EventKey.toValue(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"))
Expand Down Expand Up @@ -206,7 +206,7 @@ private ApiCall<CountResponse, ApiException> prepareReadEventsCountRequest(
.queryParam(param -> param.key("direction")
.value((input.getDirection() != null) ? input.getDirection().value() : "desc").isRequired(false))
.queryParam(param -> param.key("filter")
.value(EventType.toValue(input.getFilter())).isRequired(false))
.value(EventKey.toValue(input.getFilter())).isRequired(false))
.headerParam(param -> param.key("accept").value("application/json"))
.withAuth(auth -> auth
.add("BasicAuth"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ private ApiCall<ListProductPricePointsResponse, ApiException> prepareListProduct
.value(input.getCurrencyPrices()).isRequired(false))
.queryParam(param -> param.key("filter[type]")
.value(PricePointType.toValue(input.getFilterType())).isRequired(false))
.queryParam(param -> param.key("archived")
.value(input.getArchived()).isRequired(false))
.templateParam(param -> param.key("product_id").value(input.getProductId())
.shouldEncode(true))
.headerParam(param -> param.key("accept").value("application/json"))
Expand Down
220 changes: 0 additions & 220 deletions src/main/java/com/maxio/advancedbilling/models/EventType.java

This file was deleted.

Loading
Loading