Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logistica inversa + servicio bigger #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
212 changes: 212 additions & 0 deletions app/code/DrubuNet/Andreani/Api/Data/RLAddressInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,212 @@
<?php
/**
* @author Drubu Team
* @copyright Copyright (c) 2021 Drubu
* @package DrubuNet_Andreani
*/
namespace DrubuNet\Andreani\Api\Data;

use Magento\Framework\DataObject;

interface RLAddressInterface
{
const ID = 'id';
const ADDRESS_TYPE = 'address_type';
const CUSTOMER_FIRSTNAME = 'customer_firstname';
const CUSTOMER_LASTNAME = 'customer_lastname';
const CUSTOMER_VAT_ID = 'customer_vat_id';
const CUSTOMER_TELEPHONE = 'customer_telephone';
const ADDRESS_STREET = 'street';
const ADDRESS_NUMBER = 'number';
const ADDRESS_FLOOR = 'floor';
const ADDRESS_APARTMENT = 'apartment';
const ADDRESS_OBSERVATIONS = 'observations';
const ADDRESS_POSTCODE = 'postcode';
const ADDRESS_CITY = 'city';
const ADDRESS_REGION = 'region';
const ADDRESS_COUNTRY = 'country';
const ADDRESS_BETWEEN_STREETS = 'between_streets';
const CREATED_AT = 'created_at';


public function getId();

/**
* @return string
*/
public function getAddressType();

/**
* @return string
*/
public function getCustomerFirstname();

/**
* @return string
*/
public function getCustomerLastname();

/**
* @return string
*/
public function getCustomerVatId();

/**
* @return string
*/
public function getCustomerTelephone();

/**
* @return string
*/
public function getStreet();

/**
* @return string
*/
public function getNumber();

/**
* @return string
*/
public function getFloor();

/**
* @return string
*/
public function getApartment();

/**
* @return string
*/
public function getObservations();

/**
* @return string
*/
public function getPostcode();

/**
* @return string
*/
public function getCity();

/**
* @return string
*/
public function getRegion();

/**
* @return string
*/
public function getCountry();

/**
* @return string
*/
public function getBetweenStreets();

/**
* @return string
*/
public function getCreatedAt();

public function setId($id);

/**
* @param $addressType
* @return RLAddressInterface
*/
public function setAddressType($addressType);

/**
* @param $customerFirstname
* @return RLAddressInterface
*/
public function setCustomerFirstname($customerFirstname);

/**
* @param $customerLastname
* @return RLAddressInterface
*/
public function setCustomerLastname($customerLastname);

/**
* @param $customerVatId
* @return RLAddressInterface
*/
public function setCustomerVatId($customerVatId);

/**
* @param $customerTelephone
* @return RLAddressInterface
*/
public function setCustomerTelephone($customerTelephone);

/**
* @param $street
* @return RLAddressInterface
*/
public function setStreet($street);

/**
* @param $number
* @return RLAddressInterface
*/
public function setNumber($number);

/**
* @param $floor
* @return RLAddressInterface
*/
public function setFloor($floor);

/**
* @param $apartment
* @return RLAddressInterface
*/
public function setApartment($apartment);

/**
* @param $observations
* @return RLAddressInterface
*/
public function setObservations($observations);

/**
* @param $postcode
* @return RLAddressInterface
*/
public function setPostcode($postcode);

/**
* @param $city
* @return RLAddressInterface
*/
public function setCity($city);

/**
* @param $region
* @return RLAddressInterface
*/
public function setRegion($region);

/**
* @param $country
* @return RLAddressInterface
*/
public function setCountry($country);

/**
* @param $betweenStreets
* @return RLAddressInterface
*/
public function setBetweenStreets($betweenStreets);

/**
* @param $createdAt
* @return RLAddressInterface
*/
public function setCreatedAt($createdAt): RLAddressInterface;

}
77 changes: 77 additions & 0 deletions app/code/DrubuNet/Andreani/Api/Data/RLItemInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
<?php
/**
* @author Drubu Team
* @copyright Copyright (c) 2021 Drubu
* @package DrubuNet_Andreani
*/
namespace DrubuNet\Andreani\Api\Data;

interface RLItemInterface
{
const ID = 'id';
const PARENT_ID = 'parent_id';
const SKU = 'sku';
const NAME = 'name';
const QTY = 'qty';
const CREATED_AT = 'created_at';


public function getId();

public function setId($id);

/**
* @return int
*/
public function getParentId(): int;

/**
* @param int $orderId
* @return RLItemInterface
*/
public function setParentId(int $orderId): RLItemInterface;

/**
* @return string
*/
public function getSku(): string;

/**
* @param string $sku
* @return RLItemInterface
*/
public function setSku(string $sku): RLItemInterface;

/**
* @return string
*/
public function getName(): string;

/**
* @param string $name
* @return RLItemInterface
*/
public function setName(string $name): RLItemInterface;

/**
* @return int
*/
public function getQty(): int;

/**
* @param int $qty
* @return RLItemInterface
*/
public function setQty(int $qty): RLItemInterface;

/**
* @return string
*/
public function getCreatedAt();

/**
* @param $createdAt
* @return RLItemInterface
*/
public function setCreatedAt($createdAt): RLItemInterface;
}
Loading