private function mapCardDetails($cardDetails) { $cards = array(); foreach ($cardDetails as $index => $cardDetail) { $cards[$index] = CardMapper::create()->mapCardFrom(new Card(), $cardDetail); } return $cards; }
public static function delete(DeleteCardRequest $request, Options $options) { $rawResult = parent::httpClient()->delete($options->getBaseUrl() . "/cardstorage/card", parent::getHttpHeaders($request, $options), $request->toJsonString()); return CardMapper::create($rawResult)->jsonDecode()->mapCard(new Card()); }