public function update(array $address_template)
    {
        if(!isset($address_template['id'])) {
            throw new MonetivoException('$address_template["id"] is required');
        }

        return $this->merchantApi->call('put', 'addresses_templates/' . $address_template['id'], [
            'form_params' => $address_template
        ])->toArray();
    }
public function update(array $address_template)
    {
        if(!isset($address_template['id'])) {
            throw new MonetivoException('$address_template["id"] is required');
        }

        return $this->merchantApi->call('put', 'addresses_templates/' . $address_template['id'], [
            'form_params' => $address_template
        ])->toArray();
    }
public function update ( array $ address_template ) { if ( ! isset ( $ address_template [ 'id' ] ) ) { throw new MonetivoException ( '$address_template["id"] is required' ) ; } return $ this -> merchantApi -> call ( 'put' , 'addresses_templates/' . $ address_template [ 'id' ] , [ 'form_params' => $ address_template ] ) -> toArray ( ) ; }
Updates address template
@param array $address_template
@return array
@throws MonetivoException
Updates address template