public function fromJson($json)
 {
     if (!empty($json)) {
         parent::fromJson($json);
         $this->PaymentId = $this->jget($json, 'PaymentId');
         $this->PaymentRequestId = $this->jget($json, 'PaymentRequestId');
         $this->Status = $this->jget($json, 'Status');
         $this->PaymentType = $this->jget($json, 'PaymentType');
         $this->FundingSource = $this->jget($json, 'FundingSource');
         $this->GuestCheckout = $this->jget($json, 'GuestCheckout');
         $this->CreatedAt = $this->jget($json, 'CreatedAt');
         $this->ValidUntil = $this->jget($json, 'ValidUntil');
         $this->CompletedAt = $this->jget($json, 'CompletedAt');
         $this->ReservedUntil = $this->jget($json, 'ReservedUntil');
         $this->Total = $this->jget($json, 'Total');
         $this->AllowedFundingSources = $this->jget($json, 'AllowedFundingSources');
         $this->RecurrenceResult = $this->jget($json, 'RecurrenceResult');
         $this->Transactions = array();
         if (!empty($json['Transactions'])) {
             foreach ($json['Transactions'] as $key => $value) {
                 $tr = new TransactionDetailModel();
                 $tr->fromJson($value);
                 array_push($this->Transactions, $tr);
             }
         }
     }
 }
 public function fromJson($json)
 {
     if (!empty($json)) {
         parent::fromJson($json);
         $this->PaymentId = jget($json, 'PaymentId');
         $this->RefundedTransactions = array();
         if (!empty($json['RefundedTransactions'])) {
             foreach ($json['RefundedTransactions'] as $key => $value) {
                 $tr = new TransactionDetailModel();
                 $tr->fromJson($value);
                 array_push($this->RefundedTransactions, $tr);
             }
         }
     }
 }