@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | * |
| 61 | 61 | * @see https://developer.paypal.com/docs/api/invoicing/v2/#invoices_list |
| 62 | 62 | */ |
| 63 | - public function listInvoices($page=1, $size=20, $totals=true, array $fields=[]) |
|
| 63 | + public function listInvoices($page = 1, $size = 20, $totals = true, array $fields = []) |
|
| 64 | 64 | { |
| 65 | 65 | $fields_list = collect($fields); |
| 66 | 66 | |
@@ -176,7 +176,7 @@ discard block |
||
| 176 | 176 | * |
| 177 | 177 | * @see https://developer.paypal.com/docs/api/invoicing/v2/#invoices_generate-qr-code |
| 178 | 178 | */ |
| 179 | - public function generateQRCodeInvoice($invoice_id, $width=200, $height=20) |
|
| 179 | + public function generateQRCodeInvoice($invoice_id, $width = 200, $height = 20) |
|
| 180 | 180 | { |
| 181 | 181 | $this->apiEndPoint = "v2/invoicing/invoices/{$invoice_id}/generate-qr-code"; |
| 182 | 182 | $this->apiUrl = collect([$this->apiUrl, $this->apiEndPoint])->implode('/'); |
@@ -207,7 +207,7 @@ discard block |
||
| 207 | 207 | * |
| 208 | 208 | * @see https://developer.paypal.com/docs/api/invoicing/v2/#invoices_payments |
| 209 | 209 | */ |
| 210 | - public function registerPaymentInvoice($invoice_id, $payment_id, $payment_date, $payment_method, $payment_note, $amount, $currency='') |
|
| 210 | + public function registerPaymentInvoice($invoice_id, $payment_id, $payment_date, $payment_method, $payment_note, $amount, $currency = '') |
|
| 211 | 211 | { |
| 212 | 212 | $this->apiEndPoint = "v2/invoicing/invoices/{$invoice_id}/payments"; |
| 213 | 213 | $this->apiUrl = collect([$this->apiUrl, $this->apiEndPoint])->implode('/'); |
@@ -271,7 +271,7 @@ discard block |
||
| 271 | 271 | * |
| 272 | 272 | * @see https://developer.paypal.com/docs/api/invoicing/v2/#invoices_refunds |
| 273 | 273 | */ |
| 274 | - public function refundInvoice($invoice_id, $payment_date, $payment_method, $amount, $currency='') |
|
| 274 | + public function refundInvoice($invoice_id, $payment_date, $payment_method, $amount, $currency = '') |
|
| 275 | 275 | { |
| 276 | 276 | $this->apiEndPoint = "v2/invoicing/invoices/{$invoice_id}/refunds"; |
| 277 | 277 | $this->apiUrl = collect([$this->apiUrl, $this->apiEndPoint])->implode('/'); |
@@ -334,7 +334,7 @@ discard block |
||
| 334 | 334 | * |
| 335 | 335 | * @see https://developer.paypal.com/docs/api/invoicing/v2/#invoices_send |
| 336 | 336 | */ |
| 337 | - public function sendInvoice($invoice_id, $subject='', $note='', $send_recipient=true, $send_merchant=false, array $recipients=[]) |
|
| 337 | + public function sendInvoice($invoice_id, $subject = '', $note = '', $send_recipient = true, $send_merchant = false, array $recipients = []) |
|
| 338 | 338 | { |
| 339 | 339 | $this->apiEndPoint = "v2/invoicing/invoices/{$invoice_id}/send"; |
| 340 | 340 | $this->apiUrl = collect([$this->apiUrl, $this->apiEndPoint])->implode('/'); |
@@ -378,7 +378,7 @@ discard block |
||
| 378 | 378 | * |
| 379 | 379 | * @see https://developer.paypal.com/docs/api/invoicing/v2/#invoices_remind |
| 380 | 380 | */ |
| 381 | - public function sendInvoiceReminder($invoice_id, $subject='', $note='', $send_recipient=true, $send_merchant=false, array $recipients=[]) |
|
| 381 | + public function sendInvoiceReminder($invoice_id, $subject = '', $note = '', $send_recipient = true, $send_merchant = false, array $recipients = []) |
|
| 382 | 382 | { |
| 383 | 383 | $this->apiEndPoint = "v2/invoicing/invoices/{$invoice_id}/remind"; |
| 384 | 384 | $this->apiUrl = collect([$this->apiUrl, $this->apiEndPoint])->implode('/'); |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | * |
| 41 | 41 | * @see https://developer.paypal.com/docs/api/invoicing/v2/#templates_list |
| 42 | 42 | */ |
| 43 | - public function listInvoiceTemplates($page=1, $size=20, $fields='all') |
|
| 43 | + public function listInvoiceTemplates($page = 1, $size = 20, $fields = 'all') |
|
| 44 | 44 | { |
| 45 | 45 | $this->apiEndPoint = "v2/invoicing/templates?page={$page}&page_size={$size}&fields={$fields}"; |
| 46 | 46 | $this->apiUrl = collect([$this->apiUrl, $this->apiEndPoint])->implode('/'); |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | * |
| 20 | 20 | * @see https://developer.paypal.com/docs/api/invoicing/v2/#invoices_list |
| 21 | 21 | */ |
| 22 | - public function searchInvoices($filters, $page=1, $size=20, $totals=true, array $fields=[]) |
|
| 22 | + public function searchInvoices($filters, $page = 1, $size = 20, $totals = true, array $fields = []) |
|
| 23 | 23 | { |
| 24 | 24 | $fields_list = collect($fields); |
| 25 | 25 | |