Module: RockRMS::Client::SavedPaymentMethod
- Included in:
- RockRMS::Client
- Defined in:
- lib/rock_rms/resources/saved_payment_method.rb
Instance Method Summary collapse
- #create_saved_payment_method(gateway_id:, payment_detail_id:, person_alias_id:, name:, reference_number:) ⇒ Object
- #delete_saved_payment_method(id) ⇒ Object
- #list_saved_payment_methods(options = {}) ⇒ Object
Instance Method Details
#create_saved_payment_method(gateway_id:, payment_detail_id:, person_alias_id:, name:, reference_number:) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/rock_rms/resources/saved_payment_method.rb', line 9 def create_saved_payment_method( gateway_id:, payment_detail_id:, person_alias_id:, name:, reference_number: ) = { 'FinancialGatewayId' => gateway_id, 'FinancialPaymentDetailId' => payment_detail_id, 'Name' => name, 'PersonAliasId' => person_alias_id, 'ReferenceNumber' => reference_number } post(saved_payment_method_path, ) end |
#delete_saved_payment_method(id) ⇒ Object
27 28 29 |
# File 'lib/rock_rms/resources/saved_payment_method.rb', line 27 def delete_saved_payment_method(id) delete(saved_payment_method_path(id)) end |
#list_saved_payment_methods(options = {}) ⇒ Object
4 5 6 7 |
# File 'lib/rock_rms/resources/saved_payment_method.rb', line 4 def list_saved_payment_methods( = {}) res = get(saved_payment_method_path, ) Response::SavedPaymentMethod.format(res) end |