|
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
| __construct ($name=null, array $data=[], $dataName='') | |
| createSampleCustomer (array $additional=[]) | |
| updateSampleCustomer ($customerId, array $additional=[]) | |
| createSampleCustomerDataObject (array $additional=[]) | |
Public Member Functions inherited from WebapiAbstract | |
| addModelToDelete ($model, $secure=false) | |
| processRestExceptionResult (\Exception $e) | |
Data Fields | |
| const | RESOURCE_PATH = '/V1/customers' |
| const | SERVICE_NAME = 'customerAccountManagementV1' |
| const | CUSTOMER_REPOSITORY_SERVICE_NAME = "customerCustomerRepositoryV1" |
| const | SERVICE_VERSION = 'V1' |
| const | CONFIRMATION = 'a4fg7h893e39d' |
| const | CREATED_AT = '2013-11-05' |
| const | CREATED_IN = 'default' |
| const | STORE_NAME = 'Store Name' |
| const | DOB = '1970-01-01' |
| const | GENDER = 'Male' |
| const | GROUP_ID = 1 |
| const | MIDDLENAME = 'A' |
| const | PREFIX = 'Mr.' |
| const | STORE_ID = 1 |
| const | SUFFIX = 'Esq.' |
| const | TAXVAT = '12' |
| const | WEBSITE_ID = 1 |
| const | FIRSTNAME = 'Jane' |
| const | LASTNAME = 'Doe' |
| const | PASSWORD = 'test@123' |
| const | ADDRESS_CITY1 = 'CityM' |
| const | ADDRESS_CITY2 = 'CityX' |
| const | ADDRESS_REGION_CODE1 = 'AL' |
| const | ADDRESS_REGION_CODE2 = 'AL' |
Data Fields inherited from WebapiAbstract | |
| const | AUTO_TEAR_DOWN_DISABLED = 0 |
| const | AUTO_TEAR_DOWN_AFTER_METHOD = 1 |
| const | AUTO_TEAR_DOWN_AFTER_CLASS = 2 |
| const | ADAPTER_SOAP = 'soap' |
| const | ADAPTER_REST = 'rest' |
Additional Inherited Members | |
Static Public Member Functions inherited from WebapiAbstract | |
| static | setUpBeforeClass () |
| static | tearDownAfterClass () |
| static | setFixture ($key, $fixture, $tearDown=self::AUTO_TEAR_DOWN_AFTER_METHOD) |
| static | getFixture ($key) |
| static | callModelDelete ($model, $secure=false) |
| static | deleteFixture ($key, $secure=false) |
Protected Member Functions inherited from WebapiAbstract | |
| tearDown () | |
| _webApiCall ( $serviceInfo, $arguments=[], $webApiAdapterCode=null, $storeCode=null, $integration=null) | |
| _markTestAsSoapOnly ($message=null) | |
| _markTestAsRestOnly ($message=null) | |
| _getWebApiAdapter ($webApiAdapterCode) | |
| _assertMessagesEqual ($expectedMessages, $receivedMessages) | |
| _cleanAppConfigCache () | |
| _restoreAppConfig () | |
| checkSoapFault ( $soapFault, $expectedMessage, $expectedFaultCode, $expectedErrorParams=[], $expectedWrappedErrors=[], $traceString=null) | |
| _checkFaultParams ($expectedErrorParams, $errorDetails) | |
| _checkWrappedErrors ($expectedWrappedErrors, $errorDetails) | |
Static Protected Member Functions inherited from WebapiAbstract | |
| static | _setFixtureNamespace () |
| static | _unsetFixtureNamespace () |
| static | _getFixtureNamespace () |
| static | _deleteFixtures ($fixtures) |
Protected Attributes inherited from WebapiAbstract | |
| $_appCache | |
| $_modelsToDelete = [] | |
| $_origConfigValues = [] | |
| $_webApiAdapters | |
| $_webApiAdaptersMap | |
Static Protected Attributes inherited from WebapiAbstract | |
| static | $_fixturesNamespace |
| static | $_fixtures = [] |
| static | $_methodLevelFixtures = [] |
| static | $_classLevelFixtures = [] |
Definition at line 14 of file Customer.php.
| __construct | ( | $name = null, |
|
| array | $data = [], |
||
$dataName = '' |
|||
| ) |
Definition at line 63 of file Customer.php.
| createSampleCustomer | ( | array | $additional = [] | ) |
| array | $additional |
Definition at line 88 of file Customer.php.
| createSampleCustomerDataObject | ( | array | $additional = [] | ) |
Create customer using setters.
| array | $additional |
Definition at line 180 of file Customer.php.
| updateSampleCustomer | ( | $customerId, | |
| array | $additional = [] |
||
| ) |
Update Existing customer
| array | $additional | |
| int | $customerId |
Definition at line 118 of file Customer.php.
| const ADDRESS_CITY1 = 'CityM' |
Definition at line 40 of file Customer.php.
| const ADDRESS_CITY2 = 'CityX' |
Definition at line 41 of file Customer.php.
| const ADDRESS_REGION_CODE1 = 'AL' |
Definition at line 42 of file Customer.php.
| const ADDRESS_REGION_CODE2 = 'AL' |
Definition at line 43 of file Customer.php.
| const CONFIRMATION = 'a4fg7h893e39d' |
Definition at line 21 of file Customer.php.
| const CREATED_AT = '2013-11-05' |
Definition at line 22 of file Customer.php.
| const CREATED_IN = 'default' |
Definition at line 23 of file Customer.php.
| const CUSTOMER_REPOSITORY_SERVICE_NAME = "customerCustomerRepositoryV1" |
Definition at line 18 of file Customer.php.
| const DOB = '1970-01-01' |
Definition at line 25 of file Customer.php.
| const FIRSTNAME = 'Jane' |
Sample values for testing
Definition at line 36 of file Customer.php.
| const GENDER = 'Male' |
Definition at line 26 of file Customer.php.
| const GROUP_ID = 1 |
Definition at line 27 of file Customer.php.
| const LASTNAME = 'Doe' |
Definition at line 37 of file Customer.php.
| const MIDDLENAME = 'A' |
Definition at line 28 of file Customer.php.
| const PASSWORD = 'test@123' |
Definition at line 38 of file Customer.php.
| const PREFIX = 'Mr.' |
Definition at line 29 of file Customer.php.
| const RESOURCE_PATH = '/V1/customers' |
Definition at line 16 of file Customer.php.
| const SERVICE_NAME = 'customerAccountManagementV1' |
Definition at line 17 of file Customer.php.
| const SERVICE_VERSION = 'V1' |
Definition at line 19 of file Customer.php.
| const STORE_ID = 1 |
Definition at line 30 of file Customer.php.
| const STORE_NAME = 'Store Name' |
Definition at line 24 of file Customer.php.
| const SUFFIX = 'Esq.' |
Definition at line 31 of file Customer.php.
| const TAXVAT = '12' |
Definition at line 32 of file Customer.php.
| const WEBSITE_ID = 1 |
Definition at line 33 of file Customer.php.