Class: Yoomoney::Models::RefundCreateParams::Deal

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/yoomoney/models/refund_create_params.rb

Defined Under Namespace

Classes: RefundSettlement

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(amount:, payment_id:, idempotence_key:, deal: nil, description: nil, metadata: nil, receipt: nil, refund_method_data: nil, sources: nil, request_options: {}) ⇒ Object

Some parameter documentations has been truncated, see Yoomoney::Models::RefundCreateParams for more details.

Parameters:



90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
# File 'lib/yoomoney/models/refund_create_params.rb', line 90

class Deal < Yoomoney::Internal::Type::BaseModel
  # @!attribute refund_settlements
  #   Данные о распределении денег.
  #
  #   @return [Array<Yoomoney::Models::RefundCreateParams::Deal::RefundSettlement>]
  required :refund_settlements,
           -> { Yoomoney::Internal::Type::ArrayOf[Yoomoney::RefundCreateParams::Deal::RefundSettlement] }

  # @!method initialize(refund_settlements:)
  #   Данные о сделке.
  #
  #   @param refund_settlements [Array<Yoomoney::Models::RefundCreateParams::Deal::RefundSettlement>] Данные о распределении денег.

  class RefundSettlement < Yoomoney::Internal::Type::BaseModel
    # @!attribute amount
    #
    #   @return [Yoomoney::Models::MonetaryAmount]
    required :amount, -> { Yoomoney::MonetaryAmount }

    # @!attribute type
    #
    #   @return [Symbol, Yoomoney::Models::SettlementItemType]
    required :type, enum: -> { Yoomoney::SettlementItemType }

    # @!method initialize(amount:, type:)
    #   @param amount [Yoomoney::Models::MonetaryAmount]
    #   @param type [Symbol, Yoomoney::Models::SettlementItemType]
  end
end

Instance Attribute Details

#refund_settlementsArray<Yoomoney::Models::RefundCreateParams::Deal::RefundSettlement>

Данные о распределении денег.



95
96
# File 'lib/yoomoney/models/refund_create_params.rb', line 95

required :refund_settlements,
-> { Yoomoney::Internal::Type::ArrayOf[Yoomoney::RefundCreateParams::Deal::RefundSettlement] }