Sha256: 13e50163e9bfbd4fc43f38f6d381deab3bfe112e31f77068437ff74a0f78c13a

Contents?: true

Size: 1.52 KB

Versions: 43

Compression:

Stored size: 1.52 KB

Contents

# frozen_string_literal: true

module Files
  class AccountLineItem
    attr_reader :options, :attributes

    def initialize(attributes = {}, options = {})
      @attributes = attributes || {}
      @options = options || {}
    end

    # int64 - Line item Id
    def id
      @attributes[:id]
    end

    # double - Line item amount
    def amount
      @attributes[:amount]
    end

    # double - Line item balance
    def balance
      @attributes[:balance]
    end

    # date-time - Line item created at
    def created_at
      @attributes[:created_at]
    end

    # string - Line item currency
    def currency
      @attributes[:currency]
    end

    # string - Line item download uri
    def download_uri
      @attributes[:download_uri]
    end

    # array - Associated invoice line items
    def invoice_line_items
      @attributes[:invoice_line_items]
    end

    # string - Line item payment method
    def method
      @attributes[:method]
    end

    # array - Associated payment line items
    def payment_line_items
      @attributes[:payment_line_items]
    end

    # date-time - Date/time payment was reversed if applicable
    def payment_reversed_at
      @attributes[:payment_reversed_at]
    end

    # string - Type of payment if applicable
    def payment_type
      @attributes[:payment_type]
    end

    # string - Site name this line item is for
    def site_name
      @attributes[:site_name]
    end

    # string - Type of line item, either payment or invoice
    def type
      @attributes[:type]
    end
  end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
files.com-1.1.66 lib/files.com/models/account_line_item.rb
files.com-1.1.65 lib/files.com/models/account_line_item.rb
files.com-1.1.64 lib/files.com/models/account_line_item.rb
files.com-1.1.63 lib/files.com/models/account_line_item.rb
files.com-1.1.62 lib/files.com/models/account_line_item.rb
files.com-1.1.61 lib/files.com/models/account_line_item.rb
files.com-1.1.60 lib/files.com/models/account_line_item.rb
files.com-1.1.59 lib/files.com/models/account_line_item.rb
files.com-1.1.58 lib/files.com/models/account_line_item.rb
files.com-1.1.57 lib/files.com/models/account_line_item.rb
files.com-1.1.56 lib/files.com/models/account_line_item.rb
files.com-1.1.55 lib/files.com/models/account_line_item.rb
files.com-1.1.54 lib/files.com/models/account_line_item.rb
files.com-1.1.53 lib/files.com/models/account_line_item.rb
files.com-1.1.52 lib/files.com/models/account_line_item.rb
files.com-1.1.51 lib/files.com/models/account_line_item.rb
files.com-1.1.50 lib/files.com/models/account_line_item.rb
files.com-1.1.49 lib/files.com/models/account_line_item.rb
files.com-1.1.48 lib/files.com/models/account_line_item.rb
files.com-1.1.47 lib/files.com/models/account_line_item.rb