-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from WeDesignIt/feature/add-economic-operators
Added option to send economic operator
- Loading branch information
Showing
2 changed files
with
93 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
<?php | ||
|
||
namespace WeDesignIt\Dropshiphub\Resources\Supplier; | ||
|
||
use WeDesignIt\Dropshiphub\Resources\Resource; | ||
|
||
class EconomicOperator extends Resource | ||
{ | ||
|
||
public function id(string $id): self | ||
{ | ||
$this->offsetSet('id', $id); | ||
|
||
return $this; | ||
} | ||
|
||
public function name(string $name): self | ||
{ | ||
$this->offsetSet('name', $name); | ||
|
||
return $this; | ||
} | ||
|
||
public function street(string $street): self | ||
{ | ||
$this->offsetSet('street', $street); | ||
|
||
return $this; | ||
} | ||
|
||
public function houseNumber(string $houseNumber): self | ||
{ | ||
$this->offsetSet('house_number', $houseNumber); | ||
|
||
return $this; | ||
} | ||
|
||
public function additionalAddressDetails(string $additionalAddressDetails): self | ||
{ | ||
$this->offsetSet('additional_address_details', $additionalAddressDetails); | ||
|
||
return $this; | ||
} | ||
|
||
public function postalCode(string $postalCode): self | ||
{ | ||
$this->offsetSet('postal_code', $postalCode); | ||
|
||
return $this; | ||
} | ||
|
||
public function city(string $city): self | ||
{ | ||
$this->offsetSet('city', $city); | ||
|
||
return $this; | ||
} | ||
|
||
public function country(string $country): self | ||
{ | ||
$this->offsetSet('country', $country); | ||
|
||
return $this; | ||
} | ||
|
||
public function contactEmail(string $contactEmail): self | ||
{ | ||
$this->offsetSet('contact_email', $contactEmail); | ||
|
||
return $this; | ||
} | ||
|
||
public function contactPhone(string $contactPhone): self | ||
{ | ||
$this->offsetSet('contact_phone', $contactPhone); | ||
|
||
return $this; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters