Module: RockRMS::Client::Registration
- Included in:
- RockRMS::Client
- Defined in:
- lib/rock_rms/resources/registration.rb
Constant Summary collapse
- PATH =
'Registrations'.freeze
Instance Method Summary collapse
- #delete_registration(id) ⇒ Object
- #find_registration(id) ⇒ Object
- #list_registrations(options = {}) ⇒ Object
- #update_registration(id, scheduled_transaction_id: nil) ⇒ Object
Instance Method Details
#delete_registration(id) ⇒ Object
22 23 24 |
# File 'lib/rock_rms/resources/registration.rb', line 22 def delete_registration(id) delete(registration_path(id)) end |
#find_registration(id) ⇒ Object
11 12 13 14 |
# File 'lib/rock_rms/resources/registration.rb', line 11 def find_registration(id) res = get(registration_path(id)) Response::Registration.format(res) end |
#list_registrations(options = {}) ⇒ Object
6 7 8 9 |
# File 'lib/rock_rms/resources/registration.rb', line 6 def list_registrations( = {}) res = get(registration_path, ) Response::Registration.format(res) end |
#update_registration(id, scheduled_transaction_id: nil) ⇒ Object
16 17 18 19 20 |
# File 'lib/rock_rms/resources/registration.rb', line 16 def update_registration(id, scheduled_transaction_id: nil) = {} ['PaymentPlanFinancialScheduledTransactionId'] = scheduled_transaction_id if scheduled_transaction_id patch(registration_path(id), ) end |