Module: Amocrm::Models::CustomerBonusPointChangeParams::Body

Extended by:
Internal::Type::Union
Defined in:
lib/amocrm/models/customer_bonus_point_change_params.rb,
sig/amocrm/models/customer_bonus_point_change_params.rbs

Defined Under Namespace

Classes: CustomerBonusPointsEarn, CustomerBonusPointsRedeem

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::Union

==, ===, coerce, derefed_variants, dump, hash, inspect, to_sorbet_type, variants

Methods included from Internal::Util::SorbetRuntimeSupport

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

Methods included from Internal::Type::Converter

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

Class Method Details

.variants ⇒ Array(Amocrm::Models::CustomerBonusPointChangeParams::Body::CustomerBonusPointsEarn, Amocrm::Models::CustomerBonusPointChangeParams::Body::CustomerBonusPointsRedeem)



# File 'lib/amocrm/models/customer_bonus_point_change_params.rb', line 52

Instance Method Details

#initialize(earn:) ⇒ Object

Parameters:

  • earn (Integer)


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

module Body
  extend Amocrm::Internal::Type::Union

  variant -> { Amocrm::CustomerBonusPointChangeParams::Body::CustomerBonusPointsEarn }

  variant -> { Amocrm::CustomerBonusPointChangeParams::Body::CustomerBonusPointsRedeem }

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

    # @!method initialize(earn:)
    #   @param earn [Integer]
  end

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

    # @!method initialize(redeem:)
    #   @param redeem [Integer]
  end

  # @!method self.variants
  #   @return [Array(Amocrm::Models::CustomerBonusPointChangeParams::Body::CustomerBonusPointsEarn, Amocrm::Models::CustomerBonusPointChangeParams::Body::CustomerBonusPointsRedeem)]
end

#self?.variants ⇒ ::Array[Amocrm::Models::CustomerBonusPointChangeParams::body]

Returns:

  • (::Array[Amocrm::Models::CustomerBonusPointChangeParams::body])


57
# File 'sig/amocrm/models/customer_bonus_point_change_params.rbs', line 57

def self?.variants: -> ::Array[Amocrm::Models::CustomerBonusPointChangeParams::body]