Class PropertyCreate
Create a new property account under a vendor account.
This API requires special vendor permissions.
- MyAllocator\phpsdk\src\MaBaseClass
-
MyAllocator\phpsdk\src\Api\MaApi
-
MyAllocator\phpsdk\src\Api\PropertyCreate
Methods summary
Methods inherited from MyAllocator\phpsdk\src\Api\MaApi
__construct(),
callApi(),
callApiWithParams(),
getAuth(),
getLastApiResponse(),
isEnabled(),
setAuth(),
setParams()
Methods inherited from MyAllocator\phpsdk\src\MaBaseClass
debug(),
debug_echo(),
debug_print_r(),
debug_var_dump(),
getConfig(),
setConfig()
Magic methods summary
Properties summary
protected
string
|
$id
The api to call. |
#
'PropertyCreate'
|
protected
array
|
$keys
Array of required and optional authentication and argument keys (string) for API method. |
#
array(
'auth' => array(
'req' => array(
'Auth/VendorId',
'Auth/VendorPassword',
'UserCredentials' => array(
'Auth/UserId',
'Auth/UserPassword'
),
'UserToken' => array(
'Auth/UserToken'
)
),
'opt' => array()
),
'args' => array(
'req' => array(
'PropertyName',
'ExpiryDate',
'Currency', // 3-letter ISO 4217 currency code
'Country' // 2-letter ISO 3166-1 alpha-2 country code
),
'opt' => array(
'Breakfast'
)
)
)
|