Sha256: 438e2147a4b635ab2c1ad57826eacdfd4e6255a02ebfb04edc79248317e6eafc

Contents?: true

Size: 1.64 KB

Versions: 37

Compression:

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

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

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

    # PaymentLineItem - 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

37 entries across 37 versions & 1 rubygems

Version Path
files.com-1.0.263 lib/files.com/models/account_line_item.rb
files.com-1.0.262 lib/files.com/models/account_line_item.rb
files.com-1.0.261 lib/files.com/models/account_line_item.rb
files.com-1.0.260 lib/files.com/models/account_line_item.rb
files.com-1.0.259 lib/files.com/models/account_line_item.rb
files.com-1.0.258 lib/files.com/models/account_line_item.rb
files.com-1.0.257 lib/files.com/models/account_line_item.rb
files.com-1.0.256 lib/files.com/models/account_line_item.rb
files.com-1.0.255 lib/files.com/models/account_line_item.rb
files.com-1.0.254 lib/files.com/models/account_line_item.rb
files.com-1.0.253 lib/files.com/models/account_line_item.rb
files.com-1.0.252 lib/files.com/models/account_line_item.rb
files.com-1.0.251 lib/files.com/models/account_line_item.rb
files.com-1.0.250 lib/files.com/models/account_line_item.rb
files.com-1.0.249 lib/files.com/models/account_line_item.rb
files.com-1.0.248 lib/files.com/models/account_line_item.rb
files.com-1.0.247 lib/files.com/models/account_line_item.rb