Skip to content

Commit

Permalink
feat: paginate costs/earnings retrieval
Browse files Browse the repository at this point in the history
  • Loading branch information
malteo committed Jun 26, 2024
1 parent ac5a792 commit c40763e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .mvn/wrapper/maven-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
# under the License.
wrapperVersion=3.3.2
distributionType=only-script
distributionUrl=https://nexus.cloudesire.com/repository/cloudesire-maven-group//org/apache/maven/apache-maven/3.9.7/apache-maven-3.9.7-bin.zip
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.7/apache-maven-3.9.7-bin.zip
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ public class CostsQuery extends BaseQuery
private static final String SUBSCRIPTION_ID = "subscriptionId";
private static final String GROUPING = "grouping";

public CostsQuery setPageRequest( PageRequestQuery pageRequestQuery )
{
putAll( pageRequestQuery );
return this;
}

public CostsQuery from( ZonedDateTime from )
{
put( FROM, from.format( DateTimeFormatter.ISO_OFFSET_DATE_TIME ) );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ public PageRequestQuery()
{
}

public PageRequestQuery( int pageNumber, int pageSize )
{
setPageNumber( pageNumber );
setPageSize( pageSize );
}

public PageRequestQuery( int pageNumber, int pageSize, String sortField )
{
setPageNumber( pageNumber );
Expand Down

0 comments on commit c40763e

Please sign in to comment.