public function fromJson($json)
 {
     if (!empty($json)) {
         parent::fromJson($json);
         $this->PaymentId = jget($json, 'PaymentId');
         $this->PaymentRequestId = jget($json, 'PaymentRequestId');
         $this->Status = jget($json, 'Status');
         $this->PaymentType = jget($json, 'PaymentType');
         $this->FundingSource = jget($json, 'FundingSource');
         $this->GuestCheckout = jget($json, 'GuestCheckout');
         $this->CreatedAt = jget($json, 'CreatedAt');
         $this->ValidUntil = jget($json, 'ValidUntil');
         $this->CompletedAt = jget($json, 'CompletedAt');
         $this->ReservedUntil = jget($json, 'ReservedUntil');
         $this->Total = jget($json, 'Total');
         $this->AllowedFundingSources = jget($json, 'AllowedFundingSources');
         $this->RecurrenceResult = 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);
             }
         }
     }
 }