From 21a23b0f386fc7f7e500ea14491fcfafcb6d1a79 Mon Sep 17 00:00:00 2001 From: Nigel Wells Date: Fri, 1 Dec 2023 11:05:11 +1300 Subject: [PATCH 1/3] Add pagination support to getSubscriptions --- src/Zoho/Subscriptions/config/subscriptions.json | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Zoho/Subscriptions/config/subscriptions.json b/src/Zoho/Subscriptions/config/subscriptions.json index 05d39c4..cb42df2 100644 --- a/src/Zoho/Subscriptions/config/subscriptions.json +++ b/src/Zoho/Subscriptions/config/subscriptions.json @@ -1162,7 +1162,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": { @@ -1171,6 +1171,12 @@ }, "customer_id": { "location": "uri" + }, + "page": { + "location": "uri" + }, + "per_page": { + "location": "uri" } } }, From d6999ed198ca5fb7231c7d30c68b57a21bcb5050 Mon Sep 17 00:00:00 2001 From: Nigel Wells Date: Fri, 1 Dec 2023 15:07:43 +1300 Subject: [PATCH 2/3] Add pagination support to getCustomers --- src/Zoho/Subscriptions/config/subscriptions.json | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Zoho/Subscriptions/config/subscriptions.json b/src/Zoho/Subscriptions/config/subscriptions.json index cb42df2..883b6e4 100644 --- a/src/Zoho/Subscriptions/config/subscriptions.json +++ b/src/Zoho/Subscriptions/config/subscriptions.json @@ -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" } } }, From 0908ac885f4ca3acdd74d8c0eb9e8ab612cc66cb Mon Sep 17 00:00:00 2001 From: Nigel Wells Date: Tue, 16 Jan 2024 11:40:50 +1300 Subject: [PATCH 3/3] * Add pagination support to getInvoices * Allow filtering invoices by customer ID --- src/Zoho/Subscriptions/config/subscriptions.json | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/Zoho/Subscriptions/config/subscriptions.json b/src/Zoho/Subscriptions/config/subscriptions.json index 883b6e4..5476f1f 100644 --- a/src/Zoho/Subscriptions/config/subscriptions.json +++ b/src/Zoho/Subscriptions/config/subscriptions.json @@ -2751,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" } } },