lib/moip-assinaturas/client.rb in moip-assinaturas-0.0.3 vs lib/moip-assinaturas/client.rb in moip-assinaturas-0.1.0

- old
+ new

@@ -43,9 +43,13 @@ def details_customer(code) peform_action!(:get, "/customers/#{code}", { headers: { 'Content-Type' => 'application/json' } }) end + def update_credit_card(customer_code, credit_card) + peform_action!(:put, "/customers/#{customer_code}/billing_infos", { body: credit_card.to_json, headers: { 'Content-Type' => 'application/json' } }) + end + def create_subscription(subscription, new_customer) peform_action!(:post, "/subscriptions?new_customer=#{new_customer}", { body: subscription.to_json, headers: { 'Content-Type' => 'application/json' } }) end def list_subscriptions \ No newline at end of file