return new LastIdQuery($query);
} /**
* {@inheritdoc}
*/
public function getMapping() { return [ 'properties' =>
[ 'id' => TypeMappingInterface::MAPPING_LONG_FIELD,
'number' =>
$this->
getTextFieldWithRawData(),
'invoiceAmount' => TypeMappingInterface::MAPPING_DOUBLE_FIELD,
'invoiceShipping' => TypeMappingInterface::MAPPING_DOUBLE_FIELD,
'orderTime' => TypeMappingInterface::MAPPING_DATE_AND_DATE_TIME_FIELD,
'status' => TypeMappingInterface::MAPPING_LONG_FIELD,
'cleared' => TypeMappingInterface::MAPPING_LONG_FIELD,
'customerId' => TypeMappingInterface::MAPPING_LONG_FIELD,
'supplierId' =>
$this->textMapping->
getTextField(),
'billingCountryId' => TypeMappingInterface::MAPPING_LONG_FIELD,
'shippingCountryId' => TypeMappingInterface::MAPPING_LONG_FIELD,
'groupKey' =>
$this->textMapping->
getKeywordField(),
'email' =>
$this->
getTextFieldWithRawData(),