Skip to content

Commit

Permalink
Merge pull request #11 from nigel-wells/feature/subscription-paginati…
Browse files Browse the repository at this point in the history
…on-support

Add pagination support to subscriptions and customers
  • Loading branch information
sudiptochoudhury authored Jan 16, 2024
2 parents ab48cab + 0908ac8 commit 194e2bd
Showing 1 changed file with 26 additions and 5 deletions.
31 changes: 26 additions & 5 deletions src/Zoho/Subscriptions/config/subscriptions.json
Original file line number Diff line number Diff line change
Expand Up @@ -218,12 +218,18 @@
},
"getCustomers": {
"httpMethod": "GET",
"uri": "customers?filter_by={filter_by}",
"uri": "customers?filter_by={filter_by}&page={page}&per_page={per_page}",
"responseModel": "getResponse",
"parameters": {
"filter_by": {
"location": "uri",
"default": "Status.All"
},
"page": {
"location": "uri"
},
"per_page": {
"location": "uri"
}
}
},
Expand Down Expand Up @@ -1162,7 +1168,7 @@
},
"getSubscriptions": {
"httpMethod": "GET",
"uri": "subscriptions?filter_by={filter_by}&customer_id={customer_id}",
"uri": "subscriptions?filter_by={filter_by}&customer_id={customer_id}&page={page}&per_page={per_page}",
"responseModel": "getResponse",
"parameters": {
"filter_by": {
Expand All @@ -1171,6 +1177,12 @@
},
"customer_id": {
"location": "uri"
},
"page": {
"location": "uri"
},
"per_page": {
"location": "uri"
}
}
},
Expand Down Expand Up @@ -2739,12 +2751,21 @@
},
"getInvoices": {
"httpMethod": "GET",
"uri": "invoices?filter_by={filter_by}",
"uri": "invoices?filter_by={filter_by}&customer_id={customer_id}&page={page}&per_page={per_page}",
"responseModel": "getResponse",
"parameters": {
"filter_by": {
"location": "uri",
"default": "Status.All"
"location": "uri",
"default": "Status.All"
},
"customer_id": {
"location": "uri"
},
"page": {
"location": "uri"
},
"per_page": {
"location": "uri"
}
}
},
Expand Down

0 comments on commit 194e2bd

Please sign in to comment.