Class: Amocrm::Models::TaskCreateParams::Body

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

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(text:, complete_till: nil, created_by: nil, entity_id: nil, entity_type: nil, request_id: nil, responsible_user_id: nil, task_type_id: nil, updated_by: nil) ⇒ Object

Parameters:

  • text (String)
  • complete_till (Integer) (defaults to: nil)
  • created_by (Integer) (defaults to: nil)
  • entity_id (Integer) (defaults to: nil)
  • entity_type (String) (defaults to: nil)
  • request_id (String) (defaults to: nil)

    Client-side request id

  • responsible_user_id (Integer) (defaults to: nil)
  • task_type_id (Integer) (defaults to: nil)
  • updated_by (Integer) (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
# File 'lib/amocrm/models/task_create_params.rb', line 19

class Body < Amocrm::Internal::Type::BaseModel
  # @!attribute text
  #
  #   @return [String]
  required :text, String

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

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

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

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

  # @!attribute request_id
  #   Client-side request id
  #
  #   @return [String, nil]
  optional :request_id, String

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

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

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

  # @!method initialize(text:, complete_till: nil, created_by: nil, entity_id: nil, entity_type: nil, request_id: nil, responsible_user_id: nil, task_type_id: nil, updated_by: nil)
  #   @param text [String]
  #
  #   @param complete_till [Integer]
  #
  #   @param created_by [Integer]
  #
  #   @param entity_id [Integer]
  #
  #   @param entity_type [String]
  #
  #   @param request_id [String] Client-side request id
  #
  #   @param responsible_user_id [Integer]
  #
  #   @param task_type_id [Integer]
  #
  #   @param updated_by [Integer]
end

Instance Attribute Details

#complete_tillInteger?

Returns:

  • (Integer, nil)


28
# File 'lib/amocrm/models/task_create_params.rb', line 28

optional :complete_till, Integer

#created_byInteger?

Returns:

  • (Integer, nil)


33
# File 'lib/amocrm/models/task_create_params.rb', line 33

optional :created_by, Integer

#entity_idInteger?

Returns:

  • (Integer, nil)


38
# File 'lib/amocrm/models/task_create_params.rb', line 38

optional :entity_id, Integer

#entity_typeString?

Returns:

  • (String, nil)


43
# File 'lib/amocrm/models/task_create_params.rb', line 43

optional :entity_type, String

#request_idString?

Client-side request id

Returns:

  • (String, nil)


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

optional :request_id, String

#responsible_user_idInteger?

Returns:

  • (Integer, nil)


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

optional :responsible_user_id, Integer

#task_type_idInteger?

Returns:

  • (Integer, nil)


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

optional :task_type_id, Integer

#textString

Returns:

  • (String)


23
# File 'lib/amocrm/models/task_create_params.rb', line 23

required :text, String

#updated_byInteger?

Returns:

  • (Integer, nil)


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

optional :updated_by, Integer