public function testGetData()
 {
     $data = $this->request->getData();
     $card = $this->getValidCard();
     $this->assertEquals('28775801', $data->customerProfileId);
     $this->assertEquals($card['number'], $data->paymentProfile->payment->creditCard->cardNumber);
     $this->assertEquals('testMode', $data->validationMode);
 }
 /**
  * Make a request to add a payment profile to the current customer profile
  *
  * @param $parameters
  *
  * @return CIMCreatePaymentProfileResponse
  */
 public function makeCreatePaymentProfileRequest($parameters)
 {
     $obj = new CIMCreatePaymentProfileRequest($this->httpClient, $this->httpRequest);
     $obj->initialize($parameters);
     return $obj->send();
 }