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