private function Mollie_API_Resource_Base::rest_create in Commerce Mollie 7
Parameters
$rest_resource:
$body:
Return value
object
1 call to Mollie_API_Resource_Base::rest_create()
- Mollie_API_Resource_Base::create in Mollie/
API/ Resource/ Base.php - Create a resource with the remote API.
File
- Mollie/
API/ Resource/ Base.php, line 72
Class
- Mollie_API_Resource_Base
- Copyright (c) 2013, Mollie B.V. All rights reserved.
Code
private function rest_create($rest_resource, $body) {
$result = $this
->performApiCall(self::REST_CREATE, $rest_resource, $body);
return $this
->copy($result, $this
->getResourceObject($rest_resource));
}