Skip to content

Commit f74a137

Browse files
committed
Added method to call change_plan_simulation
1 parent e9fa362 commit f74a137

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/iugu/subscription.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ def change_plan(plan_identifier, options = {})
5050
false
5151
end
5252

53+
def change_plan_simulation(plan_identifier)
54+
Iugu::Factory.create_from_response(self.class.object_type, APIRequest.request("GET", "#{self.class.url(self.id)}/change_plan_simulation/#{plan_identifier}"))
55+
end
56+
5357
def customer
5458
return false unless @attributes['customer_id']
5559
Customer.fetch @attributes['customer_id']

0 commit comments

Comments
 (0)