Sha256: 6aa4f01984c05faa8a7f12c24319493c30afddfe55e0aa04ddea1a6759353d54

Contents?: true

Size: 357 Bytes

Versions: 25

Compression:

Stored size: 357 Bytes

Contents

module Billimatic
  module Entities
    class Subscription < Contract
      attribute :payment_information, PaymentInformation

      def checkout_url
        # TODO should this come from the JSON from Billimatic?
        fake_http = nil
        Billimatic::Resources::Subscription.new(fake_http).checkout_url(token: self.token)
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
billimatic-client-1.0.1 lib/billimatic/entities/subscription.rb
billimatic-client-1.0.0 lib/billimatic/entities/subscription.rb
billimatic-client-0.22.1 lib/billimatic/entities/subscription.rb
billimatic-client-0.22.0 lib/billimatic/entities/subscription.rb
billimatic-client-0.21.0 lib/billimatic/entities/subscription.rb
billimatic-client-0.20.0 lib/billimatic/entities/subscription.rb
billimatic-client-0.19.1 lib/billimatic/entities/subscription.rb
billimatic-client-0.19.0 lib/billimatic/entities/subscription.rb
billimatic-client-0.18.1 lib/billimatic/entities/subscription.rb
billimatic-client-0.18.0 lib/billimatic/entities/subscription.rb
billimatic-client-0.17.0 lib/billimatic/entities/subscription.rb
billimatic-client-0.16.0 lib/billimatic/entities/subscription.rb
billimatic-client-0.15.0 lib/billimatic/entities/subscription.rb
billimatic-client-0.14.1 lib/billimatic/entities/subscription.rb
billimatic-client-0.14.0 lib/billimatic/entities/subscription.rb
billimatic-client-0.13.0 lib/billimatic/entities/subscription.rb
billimatic-client-0.12.0 lib/billimatic/entities/subscription.rb
billimatic-client-0.11.3 lib/billimatic/entities/subscription.rb
billimatic-client-0.11.2 lib/billimatic/entities/subscription.rb
billimatic-client-0.11.1 lib/billimatic/entities/subscription.rb