Skip to content

Commit

Permalink
feat: add pagination to list all invoice API (#369)
Browse files Browse the repository at this point in the history
Co-authored-by: Aman Prasad <[email protected]>
  • Loading branch information
AmanGIT07 and Aman Prasad authored Aug 29, 2024
1 parent ae8d062 commit 7f50778
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions raystack/frontier/v1beta1/admin.proto
Original file line number Diff line number Diff line change
Expand Up @@ -664,10 +664,27 @@ message DelegatedCheckoutResponse {

message ListAllInvoicesRequest {
string org_id = 1;
int32 page_size = 2 [
(validate.rules).int32 = {
gte: 1,
ignore_empty: true,
},
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {description: "The maximum number of invoices to return per page. The default is 50."}
];
int32 page_num = 3 [
(validate.rules).int32 = {
gte: 1,
ignore_empty: true,
},
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {description: "The page number to return. The default is 1."}
];
}

message ListAllInvoicesResponse {
repeated Invoice invoices = 1;
int32 count = 2[
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {description: "Total number of records present"}
];
}

message ListAllBillingAccountsRequest {
Expand Down

0 comments on commit 7f50778

Please sign in to comment.