Class: Amocrm::Models::CustomerTransactionCreateParams::Body

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/amocrm/models/customer_transaction_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(price:, comment: nil, created_at: nil, created_by: nil, request_id: nil) ⇒ Object

Parameters:

  • price (Integer)
  • comment (String) (defaults to: nil)
  • created_at (Integer) (defaults to: nil)
  • created_by (Integer) (defaults to: nil)
  • request_id (String) (defaults to: nil)


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

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

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

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

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

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

  # @!method initialize(price:, comment: nil, created_at: nil, created_by: nil, request_id: nil)
  #   @param price [Integer]
  #   @param comment [String]
  #   @param created_at [Integer]
  #   @param created_by [Integer]
  #   @param request_id [String]
end

Instance Attribute Details

#commentString?

Returns:

  • (String, nil)


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

optional :comment, String

#created_atInteger?

Returns:

  • (Integer, nil)


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

optional :created_at, Integer

#created_byInteger?

Returns:

  • (Integer, nil)


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

optional :created_by, Integer

#priceInteger

Returns:

  • (Integer)


35
# File 'lib/amocrm/models/customer_transaction_create_params.rb', line 35

required :price, Integer

#request_idString?

Returns:

  • (String, nil)


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

optional :request_id, String