Module: MundipaggInterface::Subscriptions::Subscription
- Included in:
- Api
- Defined in:
- lib/mundipagg_interface/subscriptions/subscription.rb
Instance Method Summary collapse
- #cancel_subscription(subscription_id) ⇒ Object
- #change_payment_card(subscription_id, body) ⇒ Object
- #create_subscription(body) ⇒ Object
Instance Method Details
#cancel_subscription(subscription_id) ⇒ Object
13 14 15 |
# File 'lib/mundipagg_interface/subscriptions/subscription.rb', line 13 def cancel_subscription(subscription_id) delete_request("/subscriptions/#{subscription_id}") end |
#change_payment_card(subscription_id, body) ⇒ Object
9 10 11 |
# File 'lib/mundipagg_interface/subscriptions/subscription.rb', line 9 def change_payment_card(subscription_id, body) patch_request("/subscriptions/#{subscription_id}/card", body) end |
#create_subscription(body) ⇒ Object
5 6 7 |
# File 'lib/mundipagg_interface/subscriptions/subscription.rb', line 5 def create_subscription(body) post_request("/subscriptions", body) end |