Class: Conexa::ReceivingMethod

Inherits:
Model show all
Defined in:
lib/conexa/resources/receiving_method.rb

Overview

ReceivingMethod resource (Meio de Recebimento)

Examples:

Find a receiving method

method = Conexa::ReceivingMethod.find(11)
method.name  # => "Cartão de Crédito"

List receiving methods

methods = Conexa::ReceivingMethod.all(limit: 50)

Constant Summary

Constants inherited from ConexaObject

ConexaObject::RESOURCES

Instance Attribute Summary collapse

Attributes inherited from ConexaObject

#attributes

Class Method Summary collapse

Methods inherited from Model

all, #class_name, class_name, #create, create, #destroy, destroy, extract_page_size_or_params, #fetch, find_by, find_by_id, #id, #primary_key, primary_key_attribute, #primary_key_name, #save, #set_primary_key, underscored_class_name

Methods included from Deprecatable

#deprecate

Methods inherited from ConexaObject

#==, #[]=, convert, #empty?, #initialize, #respond_to_missing?, #to_hash, #unsaved_attributes

Constructor Details

This class inherits a constructor from Conexa::ConexaObject

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Conexa::ConexaObject

Instance Attribute Details

#account_idInteger? (readonly)

Returns Associated account ID.

Returns:

  • (Integer, nil)

    Associated account ID



42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/conexa/resources/receiving_method.rb', line 42

class ReceivingMethod < Model
  primary_key_attribute :receiving_method_id

  class << self
    def url(*params)
      ["/receivingMethods", *params].join '/'
    end

    def show_url(*params)
      ["/receivingMethod", *params].join '/'
    end
  end
end

#bill_category_idInteger? (readonly)

Returns Bill category ID.

Returns:

  • (Integer, nil)

    Bill category ID



42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/conexa/resources/receiving_method.rb', line 42

class ReceivingMethod < Model
  primary_key_attribute :receiving_method_id

  class << self
    def url(*params)
      ["/receivingMethods", *params].join '/'
    end

    def show_url(*params)
      ["/receivingMethod", *params].join '/'
    end
  end
end

#bill_subcategory_idInteger? (readonly)

Returns Bill subcategory ID.

Returns:

  • (Integer, nil)

    Bill subcategory ID



42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/conexa/resources/receiving_method.rb', line 42

class ReceivingMethod < Model
  primary_key_attribute :receiving_method_id

  class << self
    def url(*params)
      ["/receivingMethods", *params].join '/'
    end

    def show_url(*params)
      ["/receivingMethod", *params].join '/'
    end
  end
end

#cost_center_idInteger? (readonly)

Returns Cost center ID.

Returns:

  • (Integer, nil)

    Cost center ID



42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/conexa/resources/receiving_method.rb', line 42

class ReceivingMethod < Model
  primary_key_attribute :receiving_method_id

  class << self
    def url(*params)
      ["/receivingMethods", *params].join '/'
    end

    def show_url(*params)
      ["/receivingMethod", *params].join '/'
    end
  end
end

#credit_daysInteger (readonly)

Returns Days until credit.

Returns:

  • (Integer)

    Days until credit



42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/conexa/resources/receiving_method.rb', line 42

class ReceivingMethod < Model
  primary_key_attribute :receiving_method_id

  class << self
    def url(*params)
      ["/receivingMethods", *params].join '/'
    end

    def show_url(*params)
      ["/receivingMethod", *params].join '/'
    end
  end
end

#is_activeBoolean (readonly)

Returns Whether the receiving method is active.

Returns:

  • (Boolean)

    Whether the receiving method is active



42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/conexa/resources/receiving_method.rb', line 42

class ReceivingMethod < Model
  primary_key_attribute :receiving_method_id

  class << self
    def url(*params)
      ["/receivingMethods", *params].join '/'
    end

    def show_url(*params)
      ["/receivingMethod", *params].join '/'
    end
  end
end

#is_installment_feeBoolean (readonly)

Returns Whether fee is per installment.

Returns:

  • (Boolean)

    Whether fee is per installment



42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/conexa/resources/receiving_method.rb', line 42

class ReceivingMethod < Model
  primary_key_attribute :receiving_method_id

  class << self
    def url(*params)
      ["/receivingMethods", *params].join '/'
    end

    def show_url(*params)
      ["/receivingMethod", *params].join '/'
    end
  end
end

#max_installmentsInteger (readonly)

Returns Maximum number of installments.

Returns:

  • (Integer)

    Maximum number of installments



42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/conexa/resources/receiving_method.rb', line 42

class ReceivingMethod < Model
  primary_key_attribute :receiving_method_id

  class << self
    def url(*params)
      ["/receivingMethods", *params].join '/'
    end

    def show_url(*params)
      ["/receivingMethod", *params].join '/'
    end
  end
end

#nameString (readonly)

Returns Name.

Returns:

  • (String)

    Name



42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/conexa/resources/receiving_method.rb', line 42

class ReceivingMethod < Model
  primary_key_attribute :receiving_method_id

  class << self
    def url(*params)
      ["/receivingMethods", *params].join '/'
    end

    def show_url(*params)
      ["/receivingMethod", *params].join '/'
    end
  end
end

#payment_method_idInteger? (readonly)

Returns Payment method ID.

Returns:

  • (Integer, nil)

    Payment method ID



42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/conexa/resources/receiving_method.rb', line 42

class ReceivingMethod < Model
  primary_key_attribute :receiving_method_id

  class << self
    def url(*params)
      ["/receivingMethods", *params].join '/'
    end

    def show_url(*params)
      ["/receivingMethod", *params].join '/'
    end
  end
end

#receiving_method_idInteger (readonly)

Returns Receiving method ID (also accessible as #id).

Returns:

  • (Integer)

    Receiving method ID (also accessible as #id)



42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/conexa/resources/receiving_method.rb', line 42

class ReceivingMethod < Model
  primary_key_attribute :receiving_method_id

  class << self
    def url(*params)
      ["/receivingMethods", *params].join '/'
    end

    def show_url(*params)
      ["/receivingMethod", *params].join '/'
    end
  end
end

#supplier_idInteger? (readonly)

Returns Supplier ID.

Returns:

  • (Integer, nil)

    Supplier ID



42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/conexa/resources/receiving_method.rb', line 42

class ReceivingMethod < Model
  primary_key_attribute :receiving_method_id

  class << self
    def url(*params)
      ["/receivingMethods", *params].join '/'
    end

    def show_url(*params)
      ["/receivingMethod", *params].join '/'
    end
  end
end

#transaction_feeFloat (readonly)

Returns Fee per transaction.

Returns:

  • (Float)

    Fee per transaction



42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/conexa/resources/receiving_method.rb', line 42

class ReceivingMethod < Model
  primary_key_attribute :receiving_method_id

  class << self
    def url(*params)
      ["/receivingMethods", *params].join '/'
    end

    def show_url(*params)
      ["/receivingMethod", *params].join '/'
    end
  end
end

#transaction_rateFloat (readonly)

Returns Rate percentage per transaction.

Returns:

  • (Float)

    Rate percentage per transaction



42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/conexa/resources/receiving_method.rb', line 42

class ReceivingMethod < Model
  primary_key_attribute :receiving_method_id

  class << self
    def url(*params)
      ["/receivingMethods", *params].join '/'
    end

    def show_url(*params)
      ["/receivingMethod", *params].join '/'
    end
  end
end

Class Method Details

.show_url(*params) ⇒ Object



50
51
52
# File 'lib/conexa/resources/receiving_method.rb', line 50

def show_url(*params)
  ["/receivingMethod", *params].join '/'
end

.url(*params) ⇒ Object



46
47
48
# File 'lib/conexa/resources/receiving_method.rb', line 46

def url(*params)
  ["/receivingMethods", *params].join '/'
end