| @@ 23-31 (lines=9) @@ | ||
| 20 | * |
|
| 21 | * @return $this |
|
| 22 | */ |
|
| 23 | public function all(): self |
|
| 24 | { |
|
| 25 | // Set HTTP params |
|
| 26 | $this->type = 'get'; |
|
| 27 | $this->endpoint = '/webhooks' . '?' . $this->getQuery(); |
|
| 28 | $this->response = WebhooksList::class; |
|
| 29 | ||
| 30 | return $this; |
|
| 31 | } |
|
| 32 | ||
| 33 | /** |
|
| 34 | * Create a new webhook |
|
| @@ 25-33 (lines=9) @@ | ||
| 22 | * |
|
| 23 | * @return $this |
|
| 24 | */ |
|
| 25 | public function all(): self |
|
| 26 | { |
|
| 27 | // Set HTTP params |
|
| 28 | $this->type = 'get'; |
|
| 29 | $this->endpoint = '/customers' . '?' . $this->getQuery(); |
|
| 30 | $this->response = CustomersList::class; |
|
| 31 | ||
| 32 | return $this; |
|
| 33 | } |
|
| 34 | ||
| 35 | /** |
|
| 36 | * Create a new customer. |
|
| @@ 21-29 (lines=9) @@ | ||
| 18 | * |
|
| 19 | * @return $this |
|
| 20 | */ |
|
| 21 | public function all(): self |
|
| 22 | { |
|
| 23 | // Set HTTP params |
|
| 24 | $this->type = 'get'; |
|
| 25 | $this->endpoint = '/payments' . '?' . $this->getQuery(); |
|
| 26 | $this->response = PaymentsList::class; |
|
| 27 | ||
| 28 | return $this; |
|
| 29 | } |
|
| 30 | ||
| 31 | /** |
|
| 32 | * Retrieve a specific paymen |
|