Module: Vindi::Rest::PaymentProfile
- Included in:
- Vindi::Rest
- Defined in:
- lib/vindi/rest/payment_profile.rb
Overview
Methods for the Payment profile API
Instance Method Summary collapse
-
#create_payment_profile(options = {}) ⇒ Hash
Create a payment_profile for a merchant vindi.
-
#delete_payment_profile(payment_profile_id, options = {}) ⇒ Object
Delete a payment_profile from merchant vindi.
-
#list_payment_profiles(options = {}) ⇒ Array<Hash>
List payment_profile for the authenticate user.
-
#payment_profile(payment_profile_id, options = {}) ⇒ Hash
Get a single payment_profile from a merchant.
Instance Method Details
#create_payment_profile(options = {}) ⇒ Hash
Create a payment_profile for a merchant vindi
37 38 39 |
# File 'lib/vindi/rest/payment_profile.rb', line 37 def create_payment_profile( = {}) post('payment_profiles', )[:payment_profile] end |
#delete_payment_profile(payment_profile_id, options = {}) ⇒ Object
Delete a payment_profile from merchant vindi
49 50 51 |
# File 'lib/vindi/rest/payment_profile.rb', line 49 def delete_payment_profile(payment_profile_id, = {}) delete("payment_profiles/#{payment_profile_id}", )[:payment_profile] end |
#list_payment_profiles(options = {}) ⇒ Array<Hash>
List payment_profile for the authenticate user
11 12 13 |
# File 'lib/vindi/rest/payment_profile.rb', line 11 def list_payment_profiles( = {}) get('payment_profiles', )[:payment_profiles] end |
#payment_profile(payment_profile_id, options = {}) ⇒ Hash
Get a single payment_profile from a merchant
22 23 24 |
# File 'lib/vindi/rest/payment_profile.rb', line 22 def payment_profile(payment_profile_id, = {}) get("payment_profiles/#{payment_profile_id}", )[:payment_profile] end |