mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Various code cleanup.
This commit is contained in:
@@ -92,6 +92,9 @@ class MonetaryAccountBank extends BunqObject
|
||||
$this->monetaryAccountProfile = new MonetaryAccountProfile($data['monetary_account_profile']);
|
||||
$this->setting = new MonetaryAccountSetting($data['setting']);
|
||||
$this->overdraftLimit = new Amount($data['overdraft_limit']);
|
||||
$this->avatar = new Avatar($data['avatar']);
|
||||
$this->reason = $data['reason'];
|
||||
$this->reasonDescription = $data['reason_description'];
|
||||
|
||||
// create aliases:
|
||||
foreach ($data['alias'] as $alias) {
|
||||
@@ -102,10 +105,6 @@ class MonetaryAccountBank extends BunqObject
|
||||
$this->notificationFilters[] = new NotificationFilter($filter);
|
||||
}
|
||||
|
||||
// TODO avatar
|
||||
// TODO reason
|
||||
// TODO reason description
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -178,6 +177,9 @@ class MonetaryAccountBank extends BunqObject
|
||||
'monetary_account_profile' => $this->monetaryAccountProfile->toArray(),
|
||||
'setting' => $this->setting->toArray(),
|
||||
'overdraft_limit' => $this->overdraftLimit->toArray(),
|
||||
'avatar' => $this->avatar->toArray(),
|
||||
'reason' => $this->reason,
|
||||
'reason_description' => $this->reasonDescription,
|
||||
'alias' => [],
|
||||
'notification_filters' => [],
|
||||
];
|
||||
@@ -192,10 +194,6 @@ class MonetaryAccountBank extends BunqObject
|
||||
$data['notification_filters'][] = $filter->toArray();
|
||||
}
|
||||
|
||||
// TODO avatar
|
||||
// TODO reason
|
||||
// TODO reason description
|
||||
|
||||
return $data;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -162,6 +162,19 @@ class UserCompany extends BunqObject
|
||||
'name' => $this->name,
|
||||
];
|
||||
|
||||
// TODO alias
|
||||
// TODO avatar
|
||||
// TODO daily_limit_without_confirmation_login
|
||||
// TODO notification_filters
|
||||
// TODO address_main
|
||||
// TODO address_postal
|
||||
// TODO director_alias
|
||||
// TODO ubo
|
||||
// TODO customer
|
||||
// TODO customer_limit
|
||||
// TODO billing_contract
|
||||
// TODO pack_membership
|
||||
|
||||
return $data;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -46,6 +46,7 @@ class ListPaymentRequest extends BunqRequest
|
||||
|
||||
/**
|
||||
* TODO support pagination.
|
||||
* TODO impose limits on import.
|
||||
*
|
||||
* @throws \FireflyIII\Exceptions\FireflyException
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user