123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\Sales\Api\Data;
- /**
- * Order address interface.
- *
- * An order is a document that a web store issues to a customer. Magento generates a sales order that lists the product
- * items, billing and shipping addresses, and shipping and payment methods. A corresponding external document, known as
- * a purchase order, is emailed to the customer.
- * @api
- * @since 100.0.2
- */
- interface OrderAddressInterface extends \Magento\Framework\Api\ExtensibleDataInterface
- {
- /**
- * Entity ID.
- */
- const ENTITY_ID = 'entity_id';
- /**
- * Parent ID.
- */
- const PARENT_ID = 'parent_id';
- /**
- * Customer address ID.
- */
- const CUSTOMER_ADDRESS_ID = 'customer_address_id';
- /**
- * Region ID.
- */
- const REGION_ID = 'region_id';
- /**
- * Region code.
- */
- const KEY_REGION_CODE = 'region_code';
- /**
- * Customer ID.
- */
- const CUSTOMER_ID = 'customer_id';
- /**
- * Fax.
- */
- const FAX = 'fax';
- /**
- * Region.
- */
- const REGION = 'region';
- /**
- * Postal code.
- */
- const POSTCODE = 'postcode';
- /**
- * Last name.
- */
- const LASTNAME = 'lastname';
- /**
- * Street.
- */
- const STREET = 'street';
- /**
- * City.
- */
- const CITY = 'city';
- /**
- * Email address.
- */
- const EMAIL = 'email';
- /**
- * Telephone number.
- */
- const TELEPHONE = 'telephone';
- /**
- * Country ID.
- */
- const COUNTRY_ID = 'country_id';
- /**
- * First name.
- */
- const FIRSTNAME = 'firstname';
- /**
- * Address type.
- */
- const ADDRESS_TYPE = 'address_type';
- /**
- * Prefix.
- */
- const PREFIX = 'prefix';
- /**
- * Middle name.
- */
- const MIDDLENAME = 'middlename';
- /**
- * Suffix.
- */
- const SUFFIX = 'suffix';
- /**
- * Company.
- */
- const COMPANY = 'company';
- /**
- * Value-added tax (VAT) ID.
- */
- const VAT_ID = 'vat_id';
- /**
- * VAT-is-valid flag.
- */
- const VAT_IS_VALID = 'vat_is_valid';
- /**
- * VAT request ID.
- */
- const VAT_REQUEST_ID = 'vat_request_id';
- /**
- * VAT request date.
- */
- const VAT_REQUEST_DATE = 'vat_request_date';
- /**
- * VAT-request-success flag.
- */
- const VAT_REQUEST_SUCCESS = 'vat_request_success';
- /**
- * Gets the address type for the order address.
- *
- * @return string Address type.
- */
- public function getAddressType();
- /**
- * Gets the city for the order address.
- *
- * @return string City.
- */
- public function getCity();
- /**
- * Gets the company for the order address.
- *
- * @return string|null Company.
- */
- public function getCompany();
- /**
- * Gets the country ID for the order address.
- *
- * @return string Country ID.
- */
- public function getCountryId();
- /**
- * Gets the country address ID for the order address.
- *
- * @return int|null Country address ID.
- */
- public function getCustomerAddressId();
- /**
- * Gets the customer ID for the order address.
- *
- * @return int|null Customer ID.
- */
- public function getCustomerId();
- /**
- * Gets the email address for the order address.
- *
- * @return string|null Email address.
- */
- public function getEmail();
- /**
- * Gets the ID for the order address.
- *
- * @return int|null Order address ID.
- */
- public function getEntityId();
- /**
- * Sets the ID for the order address.
- *
- * @param int $entityId
- * @return $this
- */
- public function setEntityId($entityId);
- /**
- * Gets the fax number for the order address.
- *
- * @return string|null Fax number.
- */
- public function getFax();
- /**
- * Gets the first name for the order address.
- *
- * @return string First name.
- */
- public function getFirstname();
- /**
- * Gets the last name for the order address.
- *
- * @return string Last name.
- */
- public function getLastname();
- /**
- * Gets the middle name for the order address.
- *
- * @return string|null Middle name.
- */
- public function getMiddlename();
- /**
- * Gets the parent ID for the order address.
- *
- * @return int|null Parent ID.
- */
- public function getParentId();
- /**
- * Gets the postal code for the order address.
- *
- * @return string Postal code.
- */
- public function getPostcode();
- /**
- * Gets the prefix for the order address.
- *
- * @return string|null Prefix.
- */
- public function getPrefix();
- /**
- * Gets the region for the order address.
- *
- * @return string|null Region.
- */
- public function getRegion();
- /**
- * Gets the region code for the order address
- *
- * @return string|null Region code.
- */
- public function getRegionCode();
- /**
- * Gets the region ID for the order address.
- *
- * @return int|null Region ID.
- */
- public function getRegionId();
- /**
- * Gets the street values, if any, for the order address.
- *
- * @return string[]|null Array of any street values. Otherwise, null.
- */
- public function getStreet();
- /**
- * Gets the suffix for the order address.
- *
- * @return string|null Suffix.
- */
- public function getSuffix();
- /**
- * Gets the telephone number for the order address.
- *
- * @return string Telephone number.
- */
- public function getTelephone();
- /**
- * Gets the VAT ID for the order address.
- *
- * @return string|null VAT ID.
- */
- public function getVatId();
- /**
- * Gets the VAT-is-valid flag value for the order address.
- *
- * @return int|null VAT-is-valid flag value.
- */
- public function getVatIsValid();
- /**
- * Gets the VAT request date for the order address.
- *
- * @return string|null VAT request date.
- */
- public function getVatRequestDate();
- /**
- * Gets the VAT request ID for the order address.
- *
- * @return string|null VAT request ID.
- */
- public function getVatRequestId();
- /**
- * Gets the VAT-request-success flag value for the order address.
- *
- * @return int|null VAT-request-success flag value.
- */
- public function getVatRequestSuccess();
- /**
- * Sets the parent ID for the order address.
- *
- * @param int $id
- * @return $this
- */
- public function setParentId($id);
- /**
- * Sets the country address ID for the order address.
- *
- * @param int $id
- * @return $this
- */
- public function setCustomerAddressId($id);
- /**
- * Sets the region ID for the order address.
- *
- * @param int $id
- * @return $this
- */
- public function setRegionId($id);
- /**
- * Sets the customer ID for the order address.
- *
- * @param int $id
- * @return $this
- */
- public function setCustomerId($id);
- /**
- * Sets the fax number for the order address.
- *
- * @param string $fax
- * @return $this
- */
- public function setFax($fax);
- /**
- * Sets the region for the order address.
- *
- * @param string $region
- * @return $this
- */
- public function setRegion($region);
- /**
- * Sets the postal code for the order address.
- *
- * @param string $postcode
- * @return $this
- */
- public function setPostcode($postcode);
- /**
- * Sets the last name for the order address.
- *
- * @param string $lastname
- * @return $this
- */
- public function setLastname($lastname);
- /**
- * Sets the street values, if any, for the order address.
- *
- * @param string|string[] $street
- * @return $this
- */
- public function setStreet($street);
- /**
- * Sets the city for the order address.
- *
- * @param string $city
- * @return $this
- */
- public function setCity($city);
- /**
- * Sets the email address for the order address.
- *
- * @param string $email
- * @return $this
- */
- public function setEmail($email);
- /**
- * Sets the telephone number for the order address.
- *
- * @param string $telephone
- * @return $this
- */
- public function setTelephone($telephone);
- /**
- * Sets the country ID for the order address.
- *
- * @param string $id
- * @return $this
- */
- public function setCountryId($id);
- /**
- * Sets the first name for the order address.
- *
- * @param string $firstname
- * @return $this
- */
- public function setFirstname($firstname);
- /**
- * Sets the address type for the order address.
- *
- * @param string $addressType
- * @return $this
- */
- public function setAddressType($addressType);
- /**
- * Sets the prefix for the order address.
- *
- * @param string $prefix
- * @return $this
- */
- public function setPrefix($prefix);
- /**
- * Sets the middle name for the order address.
- *
- * @param string $middlename
- * @return $this
- */
- public function setMiddlename($middlename);
- /**
- * Sets the suffix for the order address.
- *
- * @param string $suffix
- * @return $this
- */
- public function setSuffix($suffix);
- /**
- * Sets the company for the order address.
- *
- * @param string $company
- * @return $this
- */
- public function setCompany($company);
- /**
- * Sets the VAT ID for the order address.
- *
- * @param string $id
- * @return $this
- */
- public function setVatId($id);
- /**
- * Sets the VAT-is-valid flag value for the order address.
- *
- * @param int $vatIsValid
- * @return $this
- */
- public function setVatIsValid($vatIsValid);
- /**
- * Sets the VAT request ID for the order address.
- *
- * @param string $id
- * @return $this
- */
- public function setVatRequestId($id);
- /**
- * Set region code
- *
- * @param string $regionCode
- * @return $this
- */
- public function setRegionCode($regionCode);
- /**
- * Sets the VAT request date for the order address.
- *
- * @param string $vatRequestDate
- * @return $this
- */
- public function setVatRequestDate($vatRequestDate);
- /**
- * Sets the VAT-request-success flag value for the order address.
- *
- * @param int $vatRequestSuccess
- * @return $this
- */
- public function setVatRequestSuccess($vatRequestSuccess);
- /**
- * Retrieve existing extension attributes object or create a new one.
- *
- * @return \Magento\Sales\Api\Data\OrderAddressExtensionInterface|null
- */
- public function getExtensionAttributes();
- /**
- * Set an extension attributes object.
- *
- * @param \Magento\Sales\Api\Data\OrderAddressExtensionInterface $extensionAttributes
- * @return $this
- */
- public function setExtensionAttributes(\Magento\Sales\Api\Data\OrderAddressExtensionInterface $extensionAttributes);
- }
|