public function create(Country &$country)
    {
        $data = $country->exportData();
        $endpoint = '/admin/countries.json';
        $response = $this->request(
            $endpoint, 'POST', array(
            'country' => $data
            )
        );
        $country->setData($response['country']);
    }
public function create(Country &$country)
    {
        $data = $country->exportData();
        $endpoint = '/admin/countries.json';
        $response = $this->request(
            $endpoint, 'POST', array(
            'country' => $data
            )
        );
        $country->setData($response['country']);
    }
public function create ( Country & $ country ) { $ data = $ country -> exportData ( ) ; $ endpoint = '/admin/countries.json' ; $ response = $ this -> request ( $ endpoint , 'POST' , array ( 'country' => $ data ) ) ; $ country -> setData ( $ response [ 'country' ] ) ; }
Create a country

@link   https://help.shopify.com/api/reference/country#create
@param  Country $country
@return void
Create a country