square_api = $api_client->getCustomersApi(); } /** * Sets the data for getting an existing customer. * * @since 2.0.0 * * @param string $customer_id customer ID */ public function set_get_customer_data( $customer_id ) { $this->square_api_method = 'retrieveCustomer'; $this->square_api_args = array( $customer_id ); } /** * Sets the data for getting all existing customer. * * @since 2.0.0 * * @param string $cursor pagination cursor */ public function set_get_customers_data( $cursor = '' ) { $this->square_api_method = 'listCustomers'; if ( $cursor ) { $this->square_api_args = array( $cursor ); } } }