Sha256: e4198aaa5ee7949f8ce005f98ea040330f08be092aca4af643c571ba6460dd5f

Contents?: true

Size: 764 Bytes

Versions: 3

Compression:

Stored size: 764 Bytes

Contents

module Mollie
  module API
    module Object
      class Subscription < Base
        STATUS_ACTIVE    = "active"
        STATUS_PENDING   = "pending"   # Waiting for a valid mandate.
        STATUS_CANCELLED = "cancelled"
        STATUS_SUSPENDED = "suspended" # Active, but mandate became invalid.
        STATUS_COMPLETED = "completed"

        attr_accessor :resource,
                      :id,
                      :customerId,
                      :mode,
                      :createdDatetime,
                      :status,
                      :amount,
                      :times,
                      :interval,
                      :description,
                      :method,
                      :cancelledDatetime
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mollie-api-ruby-1.4.2 lib/Mollie/API/Object/Subscription.rb
mollie-api-ruby-1.4.1 lib/Mollie/API/Object/Subscription.rb
mollie-api-ruby-1.4.0 lib/Mollie/API/Object/Subscription.rb