-
Notifications
You must be signed in to change notification settings - Fork 8
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 #2 from kg-bot/customer_addresses
Customer addresses
- Loading branch information
Showing
5 changed files
with
124 additions
and
61 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
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,21 @@ | ||
<?php | ||
|
||
namespace KgBot\Magento\Builders; | ||
|
||
|
||
use KgBot\Magento\Exceptions\MagentoMethodNotImplementedException; | ||
use KgBot\Magento\Models\CustomerAddress; | ||
|
||
class CustomerAddressBuilder extends Builder | ||
{ | ||
protected $entity = 'customers/addresses'; | ||
protected $model = CustomerAddress::class; | ||
|
||
public function get( $filters = [] ) { | ||
throw new MagentoMethodNotImplementedException( 'This method is not available on this resource' ); | ||
} | ||
|
||
public function create( $data ) { | ||
throw new MagentoMethodNotImplementedException( 'This method is not available on this resource' ); | ||
} | ||
} |
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
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
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,18 @@ | ||
<?php | ||
/** | ||
* Created by PhpStorm. | ||
* User: nts | ||
* Date: 19.4.18. | ||
* Time: 01.30 | ||
*/ | ||
|
||
namespace KgBot\Magento\Models; | ||
|
||
|
||
use KgBot\Magento\Utils\Model; | ||
|
||
class CustomerAddress extends Model | ||
{ | ||
protected $entity = 'customers/addresses'; | ||
protected $primaryKey = 'id'; | ||
} |