square_api; } /** * Get the method to call on the Square API instance. * * @since 2.0.0 * * @return string */ public function get_square_api_method() { return $this->square_api_method; } /** * Gets the arguments to call the Square API method with. * * @since 2.0.0 * * @return array */ public function get_square_api_args() { return $this->square_api_args; } /** * Returns whether this request is set to get HTTP info. * * @since 2.0.0 * * @return bool */ public function get_with_http_info() { return $this->with_http_info; } /** * Gets the HTTP method. * * @since 2.0.0 */ public function get_method() { // TODO: Implement get_method() method. } /** * Gets the query parameters. * * @since 2.0.0 */ public function get_params() { // TODO: Implement get_params() method. } /** * Gets the path. * * @since 2.0.0 */ public function get_path() { // TODO: Implement get_path() method. } /** * Gets the request data. * * @since 2.0.0 */ public function get_data() { // TODO: Implement get_data() method. } /** * Gets the request data as a string. * * @since 2.0.0 * * @return string */ public function to_string() { $body = ''; if ( is_callable( array( $this->square_request, '__toString' ) ) ) { $body = $this->square_request->__toString(); } elseif ( is_array( $this->square_api_args ) ) { $body = array(); foreach ( $this->square_api_args as $key => $arg ) { if ( is_callable( array( $arg, '__toString' ) ) ) { $body[ $key ] = $arg->__toString(); } } $body = implode( ',', $body ); } return $body; } /** * Gets the request data as a string with all sensitive information masked. * * @since 2.0.0 * * @return string */ public function to_string_safe() { return $this->to_string(); } }