Class: MfCloud::Invoice::Api::BillingStatusPayment
- Inherits:
-
Base
- Object
- Base
- MfCloud::Invoice::Api::BillingStatusPayment
show all
- Defined in:
- lib/mf_cloud/invoice/api/billing_status_payment.rb
Constant Summary
collapse
- BASE_NAME =
'billing_status'
- DEFAULT_VALUE =
'0'
- NOT_TRANSFERRED_VALUE =
'1'
- TRANSFERRED_VALUE =
'2'
Instance Method Summary
collapse
Methods inherited from Base
#all, allowed_methods, collection_class, collection_name, #create, #delete, #get, #initialize, model_class, model_name
Instance Method Details
#default!(billing_id) ⇒ Object
12
13
14
|
# File 'lib/mf_cloud/invoice/api/billing_status_payment.rb', line 12
def default!(billing_id)
update(billing_id, { payment: DEFAULT_VALUE })
end
|
#not_transferred!(billing_id) ⇒ Object
16
17
18
|
# File 'lib/mf_cloud/invoice/api/billing_status_payment.rb', line 16
def not_transferred!(billing_id)
update(billing_id, { payment: NOT_TRANSFERRED_VALUE })
end
|
#transferred!(billing_id) ⇒ Object
20
21
22
|
# File 'lib/mf_cloud/invoice/api/billing_status_payment.rb', line 20
def transferred!(billing_id)
update(billing_id, { payment: TRANSFERRED_VALUE })
end
|