Class: KillBillClient::Model::Account
Constant Summary
collapse
- KILLBILL_API_ACCOUNTS_PREFIX =
"#{KILLBILL_API_PREFIX}/accounts"
Constants included
from TagHelper
TagHelper::AUTO_INVOICING_OFF_ID, TagHelper::AUTO_PAY_OFF_ID, TagHelper::MANUAL_PAY_ID, TagHelper::OVERDUE_ENFORCEMENT_OFF_ID, TagHelper::TEST_ID, TagHelper::WRITTEN_OFF_ID
Constants inherited
from Resource
Resource::KILLBILL_API_PAGINATION_PREFIX, Resource::KILLBILL_API_PREFIX
Instance Attribute Summary
Attributes inherited from Resource
#clazz, #etag, #response, #session_id, #uri
Class Method Summary
collapse
-
.find_by_external_key(external_key, with_balance = false, with_balance_and_cba = false, options = {}) ⇒ Object
-
.find_by_id(account_id, with_balance = false, with_balance_and_cba = false, options = {}) ⇒ Object
-
.find_children(account_id, with_balance = false, with_balance_and_cba = false, audit = 'NONE', options = {}) ⇒ Object
-
.find_in_batches(offset = 0, limit = 100, with_balance = false, with_balance_and_cba = false, options = {}) ⇒ Object
-
.find_in_batches_by_search_key(search_key, offset = 0, limit = 100, with_balance = false, with_balance_and_cba = false, options = {}) ⇒ Object
Instance Method Summary
collapse
-
#add_email(email, user = nil, reason = nil, comment = nil, options = {}) ⇒ Object
-
#all_custom_fields(object_type, audit = 'NONE', options = {}) ⇒ Object
-
#all_tags(object_type, included_deleted, audit = 'NONE', options = {}) ⇒ Object
-
#audit(options = {}) ⇒ Object
-
#auto_invoicing_off?(options = {}) ⇒ Boolean
-
#auto_pay_off?(options = {}) ⇒ Boolean
-
#blocking_states(blocking_state_types, blocking_state_svcs, audit = 'NONE', options = {}) ⇒ Object
-
#bundles(options = {}) ⇒ Object
-
#cba_rebalancing(user = nil, reason = nil, comment = nil, options = {}) ⇒ Object
-
#children(with_balance = false, with_balance_and_cba = false, audit = 'NONE', options = {}) ⇒ Object
-
#close(cancel_subscriptions, writeoff_unpaid_invoices, item_adjust_unpaid_invoices, user = nil, reason = nil, comment = nil, options = {}) ⇒ Object
-
#create(user = nil, reason = nil, comment = nil, options = {}) ⇒ Object
-
#email_audit_logs_with_history(account_email_id, options = {}) ⇒ Object
-
#email_notifications(options = {}) ⇒ Object
-
#emails(audit = 'NONE', options = {}) ⇒ Object
-
#invoice_payments(audit = 'NONE', with_plugin_info = false, with_attempts = false, options = {}) ⇒ Object
-
#invoices(with_items = false, options = {}) ⇒ Object
-
#manual_pay?(options = {}) ⇒ Boolean
-
#migration_invoices(with_items = false, options = {}) ⇒ Object
-
#overdue(options = {}) ⇒ Object
-
#overdue_enforcement_off?(options = {}) ⇒ Boolean
-
#payments(options = {}) ⇒ Object
-
#remove_auto_invoicing_off(user = nil, reason = nil, comment = nil, options = {}) ⇒ Object
-
#remove_auto_pay_off(user = nil, reason = nil, comment = nil, options = {}) ⇒ Object
-
#remove_email(email, user = nil, reason = nil, comment = nil, options = {}) ⇒ Object
-
#remove_manual_pay(user = nil, reason = nil, comment = nil, options = {}) ⇒ Object
-
#remove_overdue_enforcement_off(user = nil, reason = nil, comment = nil, options = {}) ⇒ Object
-
#remove_test(user = nil, reason = nil, comment = nil, options = {}) ⇒ Object
-
#remove_written_off(user = nil, reason = nil, comment = nil, options = {}) ⇒ Object
-
#set_auto_invoicing_off(user = nil, reason = nil, comment = nil, options = {}) ⇒ Object
-
#set_auto_pay_off(user = nil, reason = nil, comment = nil, options = {}) ⇒ Object
-
#set_blocking_state(state_name, service, is_block_change, is_block_entitlement, is_block_billing, requested_date = nil, user = nil, reason = nil, comment = nil, options = {}) ⇒ Object
-
#set_manual_pay(user = nil, reason = nil, comment = nil, options = {}) ⇒ Object
-
#set_overdue_enforcement_off(user = nil, reason = nil, comment = nil, options = {}) ⇒ Object
-
#set_test(user = nil, reason = nil, comment = nil, options = {}) ⇒ Object
-
#set_written_off(user = nil, reason = nil, comment = nil, options = {}) ⇒ Object
-
#test?(options = {}) ⇒ Boolean
-
#transfer_child_credit(user = nil, reason = nil, comment = nil, options = {}) ⇒ Object
-
#update(treat_null_as_reset = false, user = nil, reason = nil, comment = nil, options = {}) ⇒ Object
-
#update_email_notifications(user = nil, reason = nil, comment = nil, options = {}) ⇒ Object
-
#written_off?(options = {}) ⇒ Boolean
included
included
Methods included from TagHelper
#add_tag, #add_tag_from_definition_id, #control_tag?, included, #remove_tag, #remove_tag_from_definition_id, #set_tags
Methods inherited from Resource
#==, #_to_hash, attribute, create_alias, delete, extract_session_id, from_json, from_response, get, has_many, has_one, #hash, head, #initialize, instantiate_record_from_json, post, put, #refresh, require_multi_tenant_options!, #to_hash, #to_json
Class Method Details
.find_by_external_key(external_key, with_balance = false, with_balance_and_cba = false, options = {}) ⇒ Object
38
39
40
41
42
43
44
45
46
|
# File 'lib/killbill_client/models/account.rb', line 38
def find_by_external_key(external_key, with_balance = false, with_balance_and_cba = false, options = {})
get "#{KILLBILL_API_ACCOUNTS_PREFIX}",
{
:externalKey => external_key,
:accountWithBalance => with_balance,
:accountWithBalanceAndCBA => with_balance_and_cba
},
options
end
|
.find_by_id(account_id, with_balance = false, with_balance_and_cba = false, options = {}) ⇒ Object
29
30
31
32
33
34
35
36
|
# File 'lib/killbill_client/models/account.rb', line 29
def find_by_id(account_id, with_balance = false, with_balance_and_cba = false, options = {})
get "#{KILLBILL_API_ACCOUNTS_PREFIX}/#{account_id}",
{
:accountWithBalance => with_balance,
:accountWithBalanceAndCBA => with_balance_and_cba
},
options
end
|
.find_children(account_id, with_balance = false, with_balance_and_cba = false, audit = 'NONE', options = {}) ⇒ Object
59
60
61
62
63
64
65
66
67
|
# File 'lib/killbill_client/models/account.rb', line 59
def find_children(account_id, with_balance = false, with_balance_and_cba = false, audit='NONE', options = {})
get "#{KILLBILL_API_ACCOUNTS_PREFIX}/#{account_id}/children",
{
:audit => audit,
:accountWithBalance => with_balance,
:accountWithBalanceAndCBA => with_balance_and_cba
},
options
end
|
.find_in_batches(offset = 0, limit = 100, with_balance = false, with_balance_and_cba = false, options = {}) ⇒ Object
18
19
20
21
22
23
24
25
26
27
|
# File 'lib/killbill_client/models/account.rb', line 18
def find_in_batches(offset = 0, limit = 100, with_balance = false, with_balance_and_cba = false, options = {})
get "#{KILLBILL_API_ACCOUNTS_PREFIX}/#{Resource::KILLBILL_API_PAGINATION_PREFIX}",
{
:offset => offset,
:limit => limit,
:accountWithBalance => with_balance,
:accountWithBalanceAndCBA => with_balance_and_cba
},
options
end
|
.find_in_batches_by_search_key(search_key, offset = 0, limit = 100, with_balance = false, with_balance_and_cba = false, options = {}) ⇒ Object
48
49
50
51
52
53
54
55
56
57
|
# File 'lib/killbill_client/models/account.rb', line 48
def find_in_batches_by_search_key(search_key, offset = 0, limit = 100, with_balance = false, with_balance_and_cba = false, options = {})
get "#{KILLBILL_API_ACCOUNTS_PREFIX}/search/#{search_key}",
{
:offset => offset,
:limit => limit,
:accountWithBalance => with_balance,
:accountWithBalanceAndCBA => with_balance_and_cba
},
options
end
|
Instance Method Details
#add_email(email, user = nil, reason = nil, comment = nil, options = {}) ⇒ Object
247
248
249
250
251
252
253
254
255
256
257
258
259
260
|
# File 'lib/killbill_client/models/account.rb', line 247
def add_email(email, user = nil, reason = nil, = nil, options = {})
self.class.post "#{KILLBILL_API_ACCOUNTS_PREFIX}/#{account_id}/emails",
{
:accountId => account_id,
:email => email
}.to_json,
{},
{
:user => user,
:reason => reason,
:comment => ,
}.merge(options)
end
|
#all_custom_fields(object_type, audit = 'NONE', options = {}) ⇒ Object
319
320
321
322
323
324
325
326
327
|
# File 'lib/killbill_client/models/account.rb', line 319
def all_custom_fields(object_type, audit = 'NONE', options = {})
params = {}
params[:objectType] = object_type if object_type
params[:audit] = audit
self.class.get "#{KILLBILL_API_ACCOUNTS_PREFIX}/#{account_id}/allCustomFields",
params,
options,
CustomField
end
|
307
308
309
310
311
312
313
314
315
316
317
|
# File 'lib/killbill_client/models/account.rb', line 307
def all_tags(object_type, included_deleted, audit = 'NONE', options = {})
params = {}
params[:objectType] = object_type if object_type
params[:includedDeleted] = included_deleted if included_deleted
params[:audit] = audit
self.class.get "#{KILLBILL_API_ACCOUNTS_PREFIX}/#{account_id}/allTags",
params,
options,
Tag
end
|
#audit(options = {}) ⇒ Object
386
387
388
389
390
391
|
# File 'lib/killbill_client/models/account.rb', line 386
def audit(options = {})
self.class.get "#{KILLBILL_API_ACCOUNTS_PREFIX}/#{account_id}/auditLogs",
{},
options,
AuditLog
end
|
#auto_invoicing_off?(options = {}) ⇒ Boolean
187
188
189
|
# File 'lib/killbill_client/models/account.rb', line 187
def auto_invoicing_off?(options = {})
control_tag?(AUTO_INVOICING_OFF_ID, options)
end
|
#auto_pay_off?(options = {}) ⇒ Boolean
175
176
177
|
# File 'lib/killbill_client/models/account.rb', line 175
def auto_pay_off?(options = {})
control_tag?(AUTO_PAY_OFF_ID, options)
end
|
#blocking_states(blocking_state_types, blocking_state_svcs, audit = 'NONE', options = {}) ⇒ Object
329
330
331
332
333
334
335
336
337
338
339
|
# File 'lib/killbill_client/models/account.rb', line 329
def blocking_states(blocking_state_types, blocking_state_svcs, audit = 'NONE', options = {})
params = {}
params[:blockingStateTypes] = blocking_state_types if blocking_state_types
params[:blockingStateSvcs] = blocking_state_svcs if blocking_state_svcs
params[:audit] = audit
self.class.get "#{KILLBILL_API_ACCOUNTS_PREFIX}/#{account_id}/block",
params,
options,
BlockingStateAttributes
end
|
#bundles(options = {}) ⇒ Object
131
132
133
134
135
136
|
# File 'lib/killbill_client/models/account.rb', line 131
def bundles(options = {})
self.class.get "#{KILLBILL_API_ACCOUNTS_PREFIX}/#{account_id}/bundles",
{},
options,
Bundle
end
|
#cba_rebalancing(user = nil, reason = nil, comment = nil, options = {}) ⇒ Object
364
365
366
367
368
369
370
371
372
373
|
# File 'lib/killbill_client/models/account.rb', line 364
def cba_rebalancing(user = nil, reason = nil, = nil, options = {})
self.class.put "#{KILLBILL_API_ACCOUNTS_PREFIX}/#{account_id}/cbaRebalancing",
{},
{},
{
:user => user,
:reason => reason,
:comment => ,
}.merge(options)
end
|
#children(with_balance = false, with_balance_and_cba = false, audit = 'NONE', options = {}) ⇒ Object
171
172
173
|
# File 'lib/killbill_client/models/account.rb', line 171
def children(with_balance = false, with_balance_and_cba = false, audit='NONE', options = {})
Account::find_children(self.account_id, with_balance, with_balance_and_cba, audit, options)
end
|
#close(cancel_subscriptions, writeoff_unpaid_invoices, item_adjust_unpaid_invoices, user = nil, reason = nil, comment = nil, options = {}) ⇒ Object
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
|
# File 'lib/killbill_client/models/account.rb', line 101
def close(cancel_subscriptions, writeoff_unpaid_invoices, item_adjust_unpaid_invoices, user = nil, reason = nil, = nil, options = {})
created_account = self.class.delete "#{KILLBILL_API_ACCOUNTS_PREFIX}/#{account_id}",
{},
{
:cancelAllSubscriptions => cancel_subscriptions,
:writeOffUnpaidInvoices => writeoff_unpaid_invoices,
:itemAdjustUnpaidInvoices => item_adjust_unpaid_invoices
},
{
:user => user,
:reason => reason,
:comment => ,
}.merge(options)
created_account.refresh(options)
end
|
#create(user = nil, reason = nil, comment = nil, options = {}) ⇒ Object
70
71
72
73
74
75
76
77
78
79
80
|
# File 'lib/killbill_client/models/account.rb', line 70
def create(user = nil, reason = nil, = nil, options = {})
created_account = self.class.post KILLBILL_API_ACCOUNTS_PREFIX,
to_json,
{},
{
:user => user,
:reason => reason,
:comment => ,
}.merge(options)
created_account.refresh(options)
end
|
#email_audit_logs_with_history(account_email_id, options = {}) ⇒ Object
282
283
284
285
286
287
|
# File 'lib/killbill_client/models/account.rb', line 282
def email_audit_logs_with_history(account_email_id, options = {})
self.class.get "#{KILLBILL_API_ACCOUNTS_PREFIX}/#{account_id}/emails/#{account_email_id}/auditLogsWithHistory",
{},
options,
AuditLog
end
|
#email_notifications(options = {}) ⇒ Object
#emails(audit = 'NONE', options = {}) ⇒ Object
273
274
275
276
277
278
279
280
|
# File 'lib/killbill_client/models/account.rb', line 273
def emails(audit = 'NONE', options = {})
self.class.get "#{KILLBILL_API_ACCOUNTS_PREFIX}/#{account_id}/emails",
{
:audit => audit
},
options,
AccountEmailAttributes
end
|
#invoice_payments(audit = 'NONE', with_plugin_info = false, with_attempts = false, options = {}) ⇒ Object
375
376
377
378
379
380
381
382
383
384
|
# File 'lib/killbill_client/models/account.rb', line 375
def invoice_payments(audit='NONE', with_plugin_info = false, with_attempts = false, options = {})
self.class.get "#{KILLBILL_API_ACCOUNTS_PREFIX}/#{account_id}/invoicePayments",
{
:audit => audit,
:withPluginInfo => with_plugin_info,
:withAttempts => with_attempts
},
options,
InvoicePayment
end
|
#invoices(with_items = false, options = {}) ⇒ Object
138
139
140
141
142
143
144
145
|
# File 'lib/killbill_client/models/account.rb', line 138
def invoices(with_items=false, options = {})
self.class.get "#{KILLBILL_API_ACCOUNTS_PREFIX}/#{account_id}/invoices",
{
:withItems => with_items
},
options,
Invoice
end
|
#manual_pay?(options = {}) ⇒ Boolean
223
224
225
|
# File 'lib/killbill_client/models/account.rb', line 223
def manual_pay?(options = {})
control_tag?(MANUAL_PAY_ID, options)
end
|
#migration_invoices(with_items = false, options = {}) ⇒ Object
147
148
149
150
151
152
153
154
155
|
# File 'lib/killbill_client/models/account.rb', line 147
def migration_invoices(with_items=false, options = {})
self.class.get "#{KILLBILL_API_ACCOUNTS_PREFIX}/#{account_id}/invoices",
{
:withMigrationInvoices => true,
:withItems => with_items
},
options,
Invoice
end
|
#overdue(options = {}) ⇒ Object
#overdue_enforcement_off?(options = {}) ⇒ Boolean
199
200
201
|
# File 'lib/killbill_client/models/account.rb', line 199
def overdue_enforcement_off?(options = {})
control_tag?(OVERDUE_ENFORCEMENT_OFF_ID, options)
end
|
#payments(options = {}) ⇒ Object
157
158
159
160
161
162
|
# File 'lib/killbill_client/models/account.rb', line 157
def payments(options = {})
self.class.get "#{KILLBILL_API_ACCOUNTS_PREFIX}/#{account_id}/payments",
{},
options,
Payment
end
|
#remove_auto_invoicing_off(user = nil, reason = nil, comment = nil, options = {}) ⇒ Object
195
196
197
|
# File 'lib/killbill_client/models/account.rb', line 195
def remove_auto_invoicing_off(user = nil, reason = nil, = nil, options = {})
remove_tag_from_definition_id(AUTO_INVOICING_OFF_ID, user, reason, , options)
end
|
#remove_auto_pay_off(user = nil, reason = nil, comment = nil, options = {}) ⇒ Object
183
184
185
|
# File 'lib/killbill_client/models/account.rb', line 183
def remove_auto_pay_off(user = nil, reason = nil, = nil, options = {})
remove_tag_from_definition_id(AUTO_PAY_OFF_ID, user, reason, , options)
end
|
#remove_email(email, user = nil, reason = nil, comment = nil, options = {}) ⇒ Object
262
263
264
265
266
267
268
269
270
271
|
# File 'lib/killbill_client/models/account.rb', line 262
def remove_email(email, user = nil, reason = nil, = nil, options = {})
self.class.delete "#{KILLBILL_API_ACCOUNTS_PREFIX}/#{account_id}/emails/#{email}",
{},
{},
{
:user => user,
:reason => reason,
:comment => ,
}.merge(options)
end
|
#remove_manual_pay(user = nil, reason = nil, comment = nil, options = {}) ⇒ Object
231
232
233
|
# File 'lib/killbill_client/models/account.rb', line 231
def remove_manual_pay(user = nil, reason = nil, = nil, options = {})
remove_tag_from_definition_id(MANUAL_PAY_ID, user, reason, , options)
end
|
#remove_overdue_enforcement_off(user = nil, reason = nil, comment = nil, options = {}) ⇒ Object
207
208
209
|
# File 'lib/killbill_client/models/account.rb', line 207
def remove_overdue_enforcement_off(user = nil, reason = nil, = nil, options = {})
remove_tag_from_definition_id(OVERDUE_ENFORCEMENT_OFF_ID, user, reason, , options)
end
|
#remove_test(user = nil, reason = nil, comment = nil, options = {}) ⇒ Object
243
244
245
|
# File 'lib/killbill_client/models/account.rb', line 243
def remove_test(user = nil, reason = nil, = nil, options = {})
remove_tag_from_definition_id(TEST_ID, user, reason, , options)
end
|
#remove_written_off(user = nil, reason = nil, comment = nil, options = {}) ⇒ Object
219
220
221
|
# File 'lib/killbill_client/models/account.rb', line 219
def remove_written_off(user = nil, reason = nil, = nil, options = {})
remove_tag_from_definition_id(WRITTEN_OFF_ID, user, reason, , options)
end
|
#set_auto_invoicing_off(user = nil, reason = nil, comment = nil, options = {}) ⇒ Object
191
192
193
|
# File 'lib/killbill_client/models/account.rb', line 191
def set_auto_invoicing_off(user = nil, reason = nil, = nil, options = {})
add_tag_from_definition_id(AUTO_INVOICING_OFF_ID, user, reason, , options)
end
|
#set_auto_pay_off(user = nil, reason = nil, comment = nil, options = {}) ⇒ Object
179
180
181
|
# File 'lib/killbill_client/models/account.rb', line 179
def set_auto_pay_off(user = nil, reason = nil, = nil, options = {})
add_tag_from_definition_id(AUTO_PAY_OFF_ID, user, reason, , options)
end
|
#set_blocking_state(state_name, service, is_block_change, is_block_entitlement, is_block_billing, requested_date = nil, user = nil, reason = nil, comment = nil, options = {}) ⇒ Object
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
|
# File 'lib/killbill_client/models/account.rb', line 341
def set_blocking_state(state_name, service, is_block_change, is_block_entitlement, is_block_billing, requested_date = nil, user = nil, reason = nil, = nil, options = {})
params = {}
params[:requestedDate] = requested_date if requested_date
body = KillBillClient::Model::BlockingStateAttributes.new
body.state_name = state_name
body.service = service
body.is_block_change = is_block_change
body.is_block_entitlement = is_block_entitlement
body.is_block_billing = is_block_billing
self.class.post "#{KILLBILL_API_ACCOUNTS_PREFIX}/#{account_id}/block",
body.to_json,
params,
{
:user => user,
:reason => reason,
:comment => ,
}.merge(options)
blocking_states(nil, nil, 'NONE', options)
end
|
#set_manual_pay(user = nil, reason = nil, comment = nil, options = {}) ⇒ Object
227
228
229
|
# File 'lib/killbill_client/models/account.rb', line 227
def set_manual_pay(user = nil, reason = nil, = nil, options = {})
add_tag_from_definition_id(MANUAL_PAY_ID, user, reason, , options)
end
|
#set_overdue_enforcement_off(user = nil, reason = nil, comment = nil, options = {}) ⇒ Object
203
204
205
|
# File 'lib/killbill_client/models/account.rb', line 203
def set_overdue_enforcement_off(user = nil, reason = nil, = nil, options = {})
add_tag_from_definition_id(OVERDUE_ENFORCEMENT_OFF_ID, user, reason, , options)
end
|
#set_test(user = nil, reason = nil, comment = nil, options = {}) ⇒ Object
239
240
241
|
# File 'lib/killbill_client/models/account.rb', line 239
def set_test(user = nil, reason = nil, = nil, options = {})
add_tag_from_definition_id(TEST_ID, user, reason, , options)
end
|
#set_written_off(user = nil, reason = nil, comment = nil, options = {}) ⇒ Object
215
216
217
|
# File 'lib/killbill_client/models/account.rb', line 215
def set_written_off(user = nil, reason = nil, = nil, options = {})
add_tag_from_definition_id(WRITTEN_OFF_ID, user, reason, , options)
end
|
#test?(options = {}) ⇒ Boolean
235
236
237
|
# File 'lib/killbill_client/models/account.rb', line 235
def test?(options = {})
control_tag?(TEST_ID, options)
end
|
#transfer_child_credit(user = nil, reason = nil, comment = nil, options = {}) ⇒ Object
119
120
121
122
123
124
125
126
127
128
|
# File 'lib/killbill_client/models/account.rb', line 119
def transfer_child_credit(user = nil, reason = nil, = nil, options = {})
self.class.put "#{KILLBILL_API_ACCOUNTS_PREFIX}/#{account_id}/transferCredit",
{},
{},
{
:user => user,
:reason => reason,
:comment => ,
}.merge(options)
end
|
#update(treat_null_as_reset = false, user = nil, reason = nil, comment = nil, options = {}) ⇒ Object
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
# File 'lib/killbill_client/models/account.rb', line 82
def update(treat_null_as_reset = false, user = nil, reason = nil, = nil, options = {})
params = {}
params[:treatNullAsReset] = treat_null_as_reset
self.class.put "#{KILLBILL_API_ACCOUNTS_PREFIX}/#{account_id}",
to_json,
params,
{
:user => user,
:reason => reason,
:comment => ,
}.merge(options)
self.class.find_by_id(account_id, nil, nil, options)
end
|
#update_email_notifications(user = nil, reason = nil, comment = nil, options = {}) ⇒ Object
296
297
298
299
300
301
302
303
304
305
|
# File 'lib/killbill_client/models/account.rb', line 296
def update_email_notifications(user = nil, reason = nil, = nil, options = {})
self.class.put "#{KILLBILL_API_ACCOUNTS_PREFIX}/#{account_id}/emailNotifications",
to_json,
{},
{
:user => user,
:reason => reason,
:comment => ,
}.merge(options)
end
|
#written_off?(options = {}) ⇒ Boolean
211
212
213
|
# File 'lib/killbill_client/models/account.rb', line 211
def written_off?(options = {})
control_tag?(WRITTEN_OFF_ID, options)
end
|