src/Client.php
/**
     * Creates a new customers
     *
     * @param Model\Customer $customer The customer
     * @param Model\CustomerAddress $address The customers address
     * @return Response\GetCustomerResponse The created customer
     *
     * @throws QuotaExceededException If the maximum number of calls per second exceeded
     * @throws Exception If the response cannot be parsed
     */
Creates a new customers
@param Model\Customer $customer The customer
@param Model\CustomerAddress $address The customers address
@return Response\GetCustomerResponse The created customer

@throws QuotaExceededException If the maximum number of calls per second exceeded
@throws Exception If the response cannot be parsed
Creates a new customers @param Model \ Customer $customer The customer @param Model \ CustomerAddress $address The customers address @return Response \ GetCustomerResponse The created customer @throws QuotaExceededException If the maximum number of calls per second exceeded @throws Exception If the response cannot be parsed
public function createCustomer(Model\Customer $customer, Model\CustomerAddress $address)
    {
        $customerModel = json_decode($this->jom->serialize($customer), true);
        $customerModel['Address'] = json_decode($this->jom->serialize($address), true);
        return $this->requestPOST(
            'customers',
            json_encode($customerModel),
            Response\GetCustomerResponse::class
        );
    }
public function createCustomer ( Model \ Customer $ customer , Model \ CustomerAddress $ address ) { $ customerModel = json_decode ( $ this -> jom -> serialize ( $ customer ) , true ) ; $ customerModel [ 'Address' ] = json_decode ( $ this -> jom -> serialize ( $ address ) , true ) ; return $ this -> requestPOST ( 'customers' , json_encode ( $ customerModel ) , Response \ GetCustomerResponse :: class ) ; }
Creates a new customers
 @param Model\Customer $customer The customer
 @param Model\CustomerAddress $address The customers address
 @return Response\GetCustomerResponse The created customer
Creates a new customers @param Model \ Customer $customer The customer @param Model \ CustomerAddress $address The customers address @return Response \ GetCustomerResponse The created customer