lib/conekta/customer.rb in conekta-1.1.0 vs lib/conekta/customer.rb in conekta-1.1.1
- old
+ new
@@ -49,26 +49,26 @@
self.subscription.create_attr('customer', customer)
end
end
def create_card(params)
- self.create_member('cards', params)
+ self.create_member_with_relation('cards', params, self)
end
def create_payment_source(params)
- self.create_member('payment_sources', params)
+ self.create_member_with_relation('payment_sources', params, self)
end
def create_subscription(params)
self.create_member('subscription', params)
end
def create_fiscal_entity(params)
- self.create_member('fiscal_entities', params)
+ self.create_member_with_relation('fiscal_entities', params, self)
end
def create_shipping_contact(params)
- self.create_member('shipping_contacts', params)
+ self.create_member_with_relation('shipping_contacts', params, self)
end
def create_submodels_lists(customer, submodels)
submodels.each do |submodel|
self.send(submodel).each do |k, v|