class MockChargebee::RequestHandlers::Customers
Private Instance Methods
get()
click to toggle source
# File lib/mock_chargebee/request_handlers/customers.rb, line 13 def get customer = Models::Customer.find(id) { customer: customer } end
post()
click to toggle source
# File lib/mock_chargebee/request_handlers/customers.rb, line 8 def post customer = Models::Customer.create(params) { customer: customer } end
post_delete()
click to toggle source
# File lib/mock_chargebee/request_handlers/customers.rb, line 18 def post_delete customer = Models::Customer.delete(id) { customer: customer } end
post_subscriptions()
click to toggle source
# File lib/mock_chargebee/request_handlers/customers.rb, line 24 def post_subscriptions customer = Models::Customer.find(id) subscription = Models::Subscription.create_for_customer(customer, params) { subscription: subscription, customer: customer } end
post_update_billing_info()
click to toggle source
# File lib/mock_chargebee/request_handlers/customers.rb, line 31 def post_update_billing_info customer = Models::Customer.update(id, params) { customer: customer } end