Sha256: be30220c4b7c2b894e7646d2fcb7bf2e668a38443e79672ff2b15fd0dc815b7a
Contents?: true
Size: 552 Bytes
Versions: 1
Compression:
Stored size: 552 Bytes
Contents
module BoletoSimples class CustomerSubscription < BaseModel def next_charge self.class.request(:_method => :post, :_path => self.class.build_request_path('customer_subscription_subscriptions/:id/next_charge', {self.class.primary_key => id})) do |parsed_data, response| assign_attributes(self.class.parse(parsed_data[:data])) if parsed_data[:data].any? @metadata = parsed_data[:metadata] @response_errors = parsed_data[:errors] @response = response end return @response.success? end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
boletosimples-0.4.0 | lib/boletosimples/resources/customer_subscription.rb |