| @@ 10-39 (lines=30) @@ | ||
| 7 | /** |
|
| 8 | * @method Response send() |
|
| 9 | */ |
|
| 10 | class ListGatewaysRequest extends AbstractRequest |
|
| 11 | {
|
|
| 12 | use HasPagination; |
|
| 13 | ||
| 14 | /** |
|
| 15 | * @return array |
|
| 16 | */ |
|
| 17 | public function getData() |
|
| 18 | {
|
|
| 19 | $data = $this->fillPaginationParameters (array()); |
|
| 20 | ||
| 21 | return count($data) ? $data : null; |
|
| 22 | } |
|
| 23 | ||
| 24 | /** |
|
| 25 | * @return string |
|
| 26 | */ |
|
| 27 | public function getEndpoint() |
|
| 28 | {
|
|
| 29 | return $this->endpoint . 'gateways'; |
|
| 30 | } |
|
| 31 | ||
| 32 | /** |
|
| 33 | * @return string |
|
| 34 | */ |
|
| 35 | public function getHttpMethod() |
|
| 36 | {
|
|
| 37 | return 'GET'; |
|
| 38 | } |
|
| 39 | } |
|
| 40 | ||
| @@ 10-39 (lines=30) @@ | ||
| 7 | /** |
|
| 8 | * @method Response send() |
|
| 9 | */ |
|
| 10 | class ListPaymentMethodsRequest extends AbstractRequest |
|
| 11 | {
|
|
| 12 | use HasPagination; |
|
| 13 | ||
| 14 | /** |
|
| 15 | * @return array |
|
| 16 | */ |
|
| 17 | public function getData() |
|
| 18 | {
|
|
| 19 | $data = $this->fillPaginationParameters (array()); |
|
| 20 | ||
| 21 | return count($data) ? $data : null; |
|
| 22 | } |
|
| 23 | ||
| 24 | /** |
|
| 25 | * @return string |
|
| 26 | */ |
|
| 27 | public function getEndpoint() |
|
| 28 | {
|
|
| 29 | return $this->endpoint . 'payment_methods'; |
|
| 30 | } |
|
| 31 | ||
| 32 | /** |
|
| 33 | * @return string |
|
| 34 | */ |
|
| 35 | public function getHttpMethod() |
|
| 36 | {
|
|
| 37 | return 'GET'; |
|
| 38 | } |
|
| 39 | } |
|
| 40 | ||