Skip to content

Commit

Permalink
Merge pull request #13 from erik-ropez/master
Browse files Browse the repository at this point in the history
API URL change and converttoopen endpoint fix
  • Loading branch information
sudiptochoudhury authored Jun 26, 2024
2 parents 194e2bd + a807479 commit 8dcb758
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ $resultJson = $subscriptions->addCustomer(['display_name'=> 'Sudipto Choudhury',
`addInvoiceComments(array)`<br/> \[POST\] /invoices/{invoice_id}/comments | `invoice_id`<br/>`description` | *Add comments to an invoice*<br/>**Placeholders to replace** : <br/> `invoice_id` |
`enableInvoicePaymentReminder(array)`<br/> \[POST\] /invoices/{invoice_id}/paymentreminder/enable | `invoice_id` | *Enabling payment reminder for a particular invoice*<br/>**Placeholders to replace** : <br/> `invoice_id` |
`setInvoiceAsSent(array)`<br/> \[POST\] /invoices/{invoice_id}/sent | `invoice_id` | *Making a draft invoice as Sent*<br/>**Placeholders to replace** : <br/> `invoice_id` |
`openInvoice(array)`<br/>[ \[POST\] /invoices/{invoice_id}/convertoopen ](https://www.zoho.com/subscriptions/api/v1/#Invoices_Convert_to_open) | `invoice_id` | *Change the status of an invoice to open*<br/>**Placeholders to replace** : <br/> `invoice_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Invoices_Convert_to_open) |
`openInvoice(array)`<br/>[ \[POST\] /invoices/{invoice_id}/converttoopen ](https://www.zoho.com/subscriptions/api/v1/#Invoices_Convert_to_open) | `invoice_id` | *Change the status of an invoice to open*<br/>**Placeholders to replace** : <br/> `invoice_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Invoices_Convert_to_open) |
`getInvoiceRecentActivities(array)`<br/> \[GET\] /invoices/{invoice_id}/recentactivities | `invoice_id` | *Retrieving recent activities of a particular invoice*<br/>**Placeholders to replace** : <br/> `invoice_id` |
`emailInvoice(array)`<br/> \[POST\] /invoices/{invoice_id}/email | `invoice_id`<br/>`to_mail_ids`<br/>`cc_mail_ids`<br/>`subject`<br/>`body` | *Email a particular invoice*<br/>**Placeholders to replace** : <br/> `invoice_id` |
`deleteInvoiceComment(array)`<br/> \[DELETE\] /invoices/{invoice_id}/comments/{comment_id} | `invoice_id`<br/>`comment_id` | *Deleting a particular comment of an invoice*<br/>**Placeholders to replace** : <br/> `invoice_id`<br/> `comment_id` |
Expand Down
2 changes: 1 addition & 1 deletion src/Zoho/Subscriptions/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ class Api extends ApiForge
'zohoOrgId' => '',
'tld' => 'com', // eu, in, com.au
'client' => [
'base_uri' => 'https://subscriptions.zoho.{{tld}}/api/v1/',
'base_uri' => 'https://www.zohoapis.{{tld}}/billing/v1/',
'verify' => false,
'headers' => [
'Authorization' => 'Zoho-oauthtoken {{oauthtoken}}',
Expand Down
2 changes: 1 addition & 1 deletion src/Zoho/Subscriptions/Import.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ public function filterFinalName($value, $helperData = [])
"addinvoicessent" => "setInvoicesAsSent",
"addinvoicepaymentreminderenable" => "enableInvoicePaymentReminder",
"addinvoicesent" => "setInvoiceAsSent",
"addinvoiceconvertoopen" => "openInvoice",
"addinvoiceconverttoopen" => "openInvoice",
"emailaninvoice" => "emailInvoice",
"addinvoicepaymentreminderdisable" => "disableInvoicePaymentReminder",
"getbankaccountpendinginvoices" => "getBankAccountPendingInvoices",
Expand Down
4 changes: 2 additions & 2 deletions src/Zoho/Subscriptions/config/postman.json
Original file line number Diff line number Diff line change
Expand Up @@ -6040,7 +6040,7 @@
"raw": ""
},
"url": {
"raw": "https://{{domain-url}}/api/v1/invoices/{invoice_id}/convertoopen",
"raw": "https://{{domain-url}}/api/v1/invoices/{invoice_id}/converttoopen",
"protocol": "https",
"host": [
"{{domain-url}}"
Expand All @@ -6050,7 +6050,7 @@
"v1",
"invoices",
"{invoice_id}",
"convertoopen"
"converttoopen"
]
},
"description": "*Change the status of an invoice to open*\n\n**Placeholders to replace** : \n\n\t`invoice_id`\n\n[API DOC](https://www.zoho.com/subscriptions/api/v1/#Invoices_Convert_to_open)\n\n[HELP DOC]()"
Expand Down
2 changes: 1 addition & 1 deletion src/Zoho/Subscriptions/config/subscriptions.json
Original file line number Diff line number Diff line change
Expand Up @@ -2817,7 +2817,7 @@
},
"openInvoice": {
"httpMethod": "POST",
"uri": "invoices/{invoice_id}/convertoopen",
"uri": "invoices/{invoice_id}/converttoopen",
"responseModel": "getResponse",
"parameters": {
"invoice_id": {
Expand Down
2 changes: 1 addition & 1 deletion subscriptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
`addInvoiceComments(array)`<br/> \[POST\] /invoices/{invoice_id}/comments | `invoice_id`<br/>`description` | *Add comments to an invoice*<br/>**Placeholders to replace** : <br/> `invoice_id` |
`enableInvoicePaymentReminder(array)`<br/> \[POST\] /invoices/{invoice_id}/paymentreminder/enable | `invoice_id` | *Enabling payment reminder for a particular invoice*<br/>**Placeholders to replace** : <br/> `invoice_id` |
`setInvoiceAsSent(array)`<br/> \[POST\] /invoices/{invoice_id}/sent | `invoice_id` | *Making a draft invoice as Sent*<br/>**Placeholders to replace** : <br/> `invoice_id` |
`openInvoice(array)`<br/>[ \[POST\] /invoices/{invoice_id}/convertoopen ](https://www.zoho.com/subscriptions/api/v1/#Invoices_Convert_to_open) | `invoice_id` | *Change the status of an invoice to open*<br/>**Placeholders to replace** : <br/> `invoice_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Invoices_Convert_to_open) |
`openInvoice(array)`<br/>[ \[POST\] /invoices/{invoice_id}/converttoopen ](https://www.zoho.com/subscriptions/api/v1/#Invoices_Convert_to_open) | `invoice_id` | *Change the status of an invoice to open*<br/>**Placeholders to replace** : <br/> `invoice_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Invoices_Convert_to_open) |
`getInvoiceRecentActivities(array)`<br/> \[GET\] /invoices/{invoice_id}/recentactivities | `invoice_id` | *Retrieving recent activities of a particular invoice*<br/>**Placeholders to replace** : <br/> `invoice_id` |
`emailInvoice(array)`<br/> \[POST\] /invoices/{invoice_id}/email | `invoice_id`<br/>`to_mail_ids`<br/>`cc_mail_ids`<br/>`subject`<br/>`body` | *Email a particular invoice*<br/>**Placeholders to replace** : <br/> `invoice_id` |
`deleteInvoiceComment(array)`<br/> \[DELETE\] /invoices/{invoice_id}/comments/{comment_id} | `invoice_id`<br/>`comment_id` | *Deleting a particular comment of an invoice*<br/>**Placeholders to replace** : <br/> `invoice_id`<br/> `comment_id` |
Expand Down

0 comments on commit 8dcb758

Please sign in to comment.