Class: Amocrm::Models::TaskUpdateParams::Body

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/amocrm/models/task_update_params.rb

Defined Under Namespace

Classes: Result

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(id:, complete_till: nil, entity_id: nil, entity_type: nil, is_completed: nil, responsible_user_id: nil, result: nil, task_type_id: nil, text: nil) ⇒ Object

Parameters:

  • id (Integer)

    Task id

  • complete_till (Integer) (defaults to: nil)
  • entity_id (Integer) (defaults to: nil)
  • entity_type (String) (defaults to: nil)
  • is_completed (Boolean) (defaults to: nil)
  • responsible_user_id (Integer) (defaults to: nil)
  • result (Amocrm::Models::TaskUpdateParams::Body::Result) (defaults to: nil)
  • task_type_id (Integer) (defaults to: nil)
  • text (String) (defaults to: nil)


19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# File 'lib/amocrm/models/task_update_params.rb', line 19

class Body < Amocrm::Internal::Type::BaseModel
  # @!attribute id
  #   Task id
  #
  #   @return [Integer]
  required :id, Integer

  # @!attribute complete_till
  #
  #   @return [Integer, nil]
  optional :complete_till, Integer

  # @!attribute entity_id
  #
  #   @return [Integer, nil]
  optional :entity_id, Integer

  # @!attribute entity_type
  #
  #   @return [String, nil]
  optional :entity_type, String

  # @!attribute is_completed
  #
  #   @return [Boolean, nil]
  optional :is_completed, Amocrm::Internal::Type::Boolean

  # @!attribute responsible_user_id
  #
  #   @return [Integer, nil]
  optional :responsible_user_id, Integer

  # @!attribute result
  #
  #   @return [Amocrm::Models::TaskUpdateParams::Body::Result, nil]
  optional :result, -> { Amocrm::TaskUpdateParams::Body::Result }

  # @!attribute task_type_id
  #
  #   @return [Integer, nil]
  optional :task_type_id, Integer

  # @!attribute text
  #
  #   @return [String, nil]
  optional :text, String

  # @!method initialize(id:, complete_till: nil, entity_id: nil, entity_type: nil, is_completed: nil, responsible_user_id: nil, result: nil, task_type_id: nil, text: nil)
  #   @param id [Integer] Task id
  #
  #   @param complete_till [Integer]
  #
  #   @param entity_id [Integer]
  #
  #   @param entity_type [String]
  #
  #   @param is_completed [Boolean]
  #
  #   @param responsible_user_id [Integer]
  #
  #   @param result [Amocrm::Models::TaskUpdateParams::Body::Result]
  #
  #   @param task_type_id [Integer]
  #
  #   @param text [String]

  # @see Amocrm::Models::TaskUpdateParams::Body#result
  class Result < Amocrm::Internal::Type::BaseModel
    # @!attribute text
    #
    #   @return [String, nil]
    optional :text, String

    # @!method initialize(text: nil)
    #   @param text [String]
  end
end

Instance Attribute Details

#complete_tillInteger?

Returns:

  • (Integer, nil)


29
# File 'lib/amocrm/models/task_update_params.rb', line 29

optional :complete_till, Integer

#entity_idInteger?

Returns:

  • (Integer, nil)


34
# File 'lib/amocrm/models/task_update_params.rb', line 34

optional :entity_id, Integer

#entity_typeString?

Returns:

  • (String, nil)


39
# File 'lib/amocrm/models/task_update_params.rb', line 39

optional :entity_type, String

#idInteger

Task id

Returns:

  • (Integer)


24
# File 'lib/amocrm/models/task_update_params.rb', line 24

required :id, Integer

#is_completedBoolean?

Returns:

  • (Boolean, nil)


44
# File 'lib/amocrm/models/task_update_params.rb', line 44

optional :is_completed, Amocrm::Internal::Type::Boolean

#responsible_user_idInteger?

Returns:

  • (Integer, nil)


49
# File 'lib/amocrm/models/task_update_params.rb', line 49

optional :responsible_user_id, Integer

#resultAmocrm::Models::TaskUpdateParams::Body::Result?



54
# File 'lib/amocrm/models/task_update_params.rb', line 54

optional :result, -> { Amocrm::TaskUpdateParams::Body::Result }

#task_type_idInteger?

Returns:

  • (Integer, nil)


59
# File 'lib/amocrm/models/task_update_params.rb', line 59

optional :task_type_id, Integer

#textString?

Returns:

  • (String, nil)


64
# File 'lib/amocrm/models/task_update_params.rb', line 64

optional :text, String