Inheritance: extends IyzipayResourceMapper
 private function mapCardDetails($cardDetails)
 {
     $cards = array();
     foreach ($cardDetails as $index => $cardDetail) {
         $cards[$index] = CardMapper::create()->mapCardFrom(new Card(), $cardDetail);
     }
     return $cards;
 }
Exemple #2
0
 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());
 }