Class: Amocrm::Models::PipelineStatusUpdateParams::Body

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

Defined Under Namespace

Classes: Description

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(pipeline_id:, body:, request_options: {}) ⇒ Object

Parameters:



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
# File 'lib/amocrm/models/pipeline_status_update_params.rb', line 25

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

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

  # @!attribute descriptions
  #
  #   @return [Array<Amocrm::Models::PipelineStatusUpdateParams::Body::Description>, nil]
  optional :descriptions,
           -> { Amocrm::Internal::Type::ArrayOf[Amocrm::PipelineStatusUpdateParams::Body::Description] }

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

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

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

  # @!method initialize(id:, color: nil, descriptions: nil, name: nil, request_id: nil, sort: nil)
  #   @param id [Integer]
  #   @param color [String]
  #   @param descriptions [Array<Amocrm::Models::PipelineStatusUpdateParams::Body::Description>]
  #   @param name [String]
  #   @param request_id [String]
  #   @param sort [Integer]

  class Description < Amocrm::Internal::Type::BaseModel
    # @!attribute id
    #
    #   @return [Integer, nil]
    optional :id, Integer

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

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

    # @!method initialize(id: nil, description: nil, level: nil)
    #   @param id [Integer]
    #   @param description [String]
    #   @param level [String]
  end
end

Instance Attribute Details

#colorString?

Returns:

  • (String, nil)


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

optional :color, String

#descriptionsArray<Amocrm::Models::PipelineStatusUpdateParams::Body::Description>?



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

optional :descriptions,
-> { Amocrm::Internal::Type::ArrayOf[Amocrm::PipelineStatusUpdateParams::Body::Description] }

#idInteger

Returns:

  • (Integer)


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

required :id, Integer

#nameString?

Returns:

  • (String, nil)


45
# File 'lib/amocrm/models/pipeline_status_update_params.rb', line 45

optional :name, String

#request_idString?

Returns:

  • (String, nil)


50
# File 'lib/amocrm/models/pipeline_status_update_params.rb', line 50

optional :request_id, String

#sortInteger?

Returns:

  • (Integer, nil)


55
# File 'lib/amocrm/models/pipeline_status_update_params.rb', line 55

optional :sort, Integer