Skip to content

Commit

Permalink
PHP code additions
Browse files Browse the repository at this point in the history
  • Loading branch information
reshmabidikar committed Oct 6, 2023
1 parent 4af10ae commit 097e25a
Showing 1 changed file with 108 additions and 0 deletions.
108 changes: 108 additions & 0 deletions source/includes/_invoice.md
Original file line number Diff line number Diff line change
Expand Up @@ -3198,6 +3198,23 @@ invoiceApi.upload_catalog_translation(locale,
comment='comment')
```
````javascript
````
````php
$apiInstance = $client->getInvoiceApi();
$xKillbillCreatedBy = "user";
$xKillbillReason = "reason";
$xKillbillComment = "comment";
$body = "sports-monthly = Voiture Sport";
$locale = "fr_FR";
$deleteIfExists = true;
$result = $apiInstance->uploadCatalogTranslation($body, $xKillbillCreatedBy, $locale, $xKillbillReason, $xKillbillComment, $deleteIfExists);
````
**Request Body**
A table of translation items. For example:
Expand Down Expand Up @@ -3255,6 +3272,17 @@ locale = 'fr_FR'
translations = invoiceApi.get_catalog_translation(locale)
```
````javascript
````
````php
$apiInstance = $client->getInvoiceApi();
$locale = "fr_FR";
$result = $apiInstance->getCatalogTranslation($locale);
````
> Example Response:
```json
Expand Down Expand Up @@ -3355,6 +3383,23 @@ invoiceApi.upload_invoice_translation(locale,
comment='comment')
```
````javascript
````
````php
$apiInstance = $client->getInvoiceApi();
$xKillbillCreatedBy = "user";
$xKillbillReason = "reason";
$xKillbillComment = "comment";
$body = "invoiceDate = date de facture";
$locale = "fr_FR";
$deleteIfExists = true;
$result = $apiInstance->uploadInvoiceTranslation($body, $xKillbillCreatedBy, $locale, $xKillbillReason, $xKillbillComment, $deleteIfExists);
````
**Request Body**
A table of translation items. For example:
Expand Down Expand Up @@ -3417,6 +3462,17 @@ locale = 'fr_FR'
translations = invoiceApi.get_invoice_translation(locale)
```
````javascript
````
````php
$apiInstance = $client->getInvoiceApi();
$locale = "fr_FR";
$result = $apiInstance->getInvoiceTranslation($locale);
````
> Example Response:
```text/plain
Expand Down Expand Up @@ -3514,6 +3570,22 @@ invoiceApi.upload_invoice_mp_template(body,
comment='comment')
```
````javascript
````
````php
$apiInstance = $client->getInvoiceApi();
$xKillbillCreatedBy = "user";
$xKillbillReason = "reason";
$xKillbillComment = "comment";
$body = "Some HTML String";
$deleteIfExists = true;
$result = $apiInstance->uploadInvoiceMPTemplate($body, $xKillbillCreatedBy, $xKillbillReason, $xKillbillComment, $deleteIfExists);
````
**Request Body**
Contains a mustache manual pay template in HTML format. Alternatively, the path of template file can also be specified as the request body.
Expand Down Expand Up @@ -3567,6 +3639,17 @@ locale = 'fr_FR'
template = invoiceApi.get_invoice_mp_template(locale)
```
````javascript
````
````php
$apiInstance = $client->getInvoiceApi();
$locale = "fr_FR";
$result = $apiInstance->getInvoiceMPTemplate($locale);
````
> Example Response:
```text/plain
Expand Down Expand Up @@ -3754,6 +3837,22 @@ invoiceApi.upload_invoice_template(body,
comment='comment')
```
````javascript
````
````php
$apiInstance = $client->getInvoiceApi();
$xKillbillCreatedBy = "user";
$xKillbillReason = "reason";
$xKillbillComment = "comment";
$body = "Some HTML String";
$deleteIfExists = true;
$result = $apiInstance->uploadInvoiceTemplate($body, $xKillbillCreatedBy, $xKillbillReason, $xKillbillComment, $deleteIfExists);
````
**Request Body**
Expand Down Expand Up @@ -3807,6 +3906,15 @@ invoiceApi = killbill.api.InvoiceApi()
template = invoiceApi.get_invoice_template()
```
````javascript
````
````php
$apiInstance = $client->getInvoiceApi();
$result = $apiInstance->getInvoiceTemplate();
````
> Example Response:
```text/plain
Expand Down

0 comments on commit 097e25a

Please sign in to comment.