Sha256: 180f4836e04322624cdb17fa8b4a3def60f12494d48135bcb4c3a39590c2d240

Contents?: true

Size: 1.6 KB

Versions: 88

Compression:

Stored size: 1.6 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

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

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

    # 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

    # date-time - Line item updated at
    def updated_at
      @attributes[:updated_at]
    end
  end
end

Version data entries

88 entries across 88 versions & 1 rubygems

Version Path
files.com-1.0.246 lib/files.com/models/account_line_item.rb
files.com-1.0.245 lib/files.com/models/account_line_item.rb
files.com-1.0.244 lib/files.com/models/account_line_item.rb
files.com-1.0.243 lib/files.com/models/account_line_item.rb
files.com-1.0.242 lib/files.com/models/account_line_item.rb
files.com-1.0.241 lib/files.com/models/account_line_item.rb
files.com-1.0.240 lib/files.com/models/account_line_item.rb
files.com-1.0.239 lib/files.com/models/account_line_item.rb
files.com-1.0.238 lib/files.com/models/account_line_item.rb
files.com-1.0.237 lib/files.com/models/account_line_item.rb
files.com-1.0.236 lib/files.com/models/account_line_item.rb
files.com-1.0.235 lib/files.com/models/account_line_item.rb
files.com-1.0.234 lib/files.com/models/account_line_item.rb
files.com-1.0.233 lib/files.com/models/account_line_item.rb
files.com-1.0.232 lib/files.com/models/account_line_item.rb
files.com-1.0.231 lib/files.com/models/account_line_item.rb
files.com-1.0.230 lib/files.com/models/account_line_item.rb
files.com-1.0.229 lib/files.com/models/account_line_item.rb
files.com-1.0.228 lib/files.com/models/account_line_item.rb
files.com-1.0.227 lib/files.com/models/account_line_item.rb