1 | <?php |
||
14 | class InvoiceDefaults implements CreatableFromArray |
||
15 | { |
||
16 | /** |
||
17 | * @var string |
||
18 | */ |
||
19 | private $defaultMessage; |
||
20 | |||
21 | /** |
||
22 | * @var int |
||
23 | */ |
||
24 | private $defaultInterestRate; |
||
25 | |||
26 | /** |
||
27 | * @var int |
||
28 | */ |
||
29 | private $defaultReminderFee; |
||
30 | |||
31 | /** |
||
32 | * @var int |
||
33 | */ |
||
34 | private $defaultInvoiceFee; |
||
35 | |||
36 | /** |
||
37 | * @var AutomaticReminder |
||
38 | */ |
||
39 | private $automaticReminders; |
||
40 | |||
41 | /** |
||
42 | * @var AutomaticWriteOff |
||
43 | */ |
||
44 | private $automaticWriteoff; |
||
45 | |||
46 | /** |
||
47 | * @var ReminderCollection |
||
48 | */ |
||
49 | private $reminderCollection; |
||
50 | |||
51 | /** |
||
52 | * @return string |
||
53 | */ |
||
54 | public function getDefaultMessage() |
||
58 | |||
59 | /** |
||
60 | * @param string $defaultMessage |
||
61 | * |
||
62 | * @return InvoiceDefaults |
||
63 | */ |
||
64 | public function withDefaultMessage(string $defaultMessage) |
||
71 | |||
72 | /** |
||
73 | * @return int |
||
74 | */ |
||
75 | public function getDefaultInterestRate() |
||
79 | |||
80 | /** |
||
81 | * @param int $defaultInterestRate |
||
82 | * |
||
83 | * @return InvoiceDefaults |
||
84 | */ |
||
85 | public function withDefaultInterestRate(int $defaultInterestRate) |
||
92 | |||
93 | /** |
||
94 | * @return int |
||
95 | */ |
||
96 | public function getDefaultReminderFee() |
||
100 | |||
101 | /** |
||
102 | * @param int $defaultReminderFee |
||
103 | * |
||
104 | * @return InvoiceDefaults |
||
105 | */ |
||
106 | public function withDefaultReminderFee(int $defaultReminderFee) |
||
113 | |||
114 | /** |
||
115 | * @return int |
||
116 | */ |
||
117 | public function getDefaultInvoiceFee() |
||
121 | |||
122 | /** |
||
123 | * @param int $defaultInvoiceFee |
||
124 | * |
||
125 | * @return InvoiceDefaults |
||
126 | */ |
||
127 | public function withDefaultInvoiceFee(int $defaultInvoiceFee) |
||
134 | |||
135 | /** |
||
136 | * @return AutomaticReminder |
||
137 | */ |
||
138 | public function getAutomaticReminders() |
||
142 | |||
143 | /** |
||
144 | * @param AutomaticReminder $automaticReminders |
||
145 | * |
||
146 | * @return InvoiceDefaults |
||
147 | */ |
||
148 | public function withAutomaticReminders(AutomaticReminder $automaticReminders) |
||
155 | |||
156 | /** |
||
157 | * @return AutomaticWriteOff |
||
158 | */ |
||
159 | public function getAutomaticReminderWriteOff() |
||
163 | |||
164 | /** |
||
165 | * @param AutomaticWriteOff $automaticWriteoff |
||
166 | * |
||
167 | * @return InvoiceDefaults |
||
168 | */ |
||
169 | public function withAutomaticWriteoff(AutomaticWriteOff $automaticWriteoff) |
||
176 | |||
177 | /** |
||
178 | * @return ReminderCollection |
||
179 | */ |
||
180 | public function getAutomaticReminderCollection() |
||
184 | |||
185 | /** |
||
186 | * @param ReminderCollection $automaticCollection |
||
187 | * |
||
188 | * @return InvoiceDefaults |
||
189 | */ |
||
190 | public function withAutomaticCollection(ReminderCollection $automaticCollection) |
||
197 | |||
198 | /** |
||
199 | * Create an API response object from the HTTP response from the API server. |
||
200 | * |
||
201 | * @param array $data |
||
202 | * |
||
203 | * @return self |
||
204 | */ |
||
205 | 2 | public static function createFromArray(array $data) |
|
218 | |||
219 | 1 | public function toArray() |
|
246 | } |
||
247 |