1
0
зеркало из https://github.com/glebtv/yookassa.git synced 2026-08-28 15:16:18 +03:00
Files
yookassa/lib/yookassa/entity/cancellation_details.rb
2026-03-06 17:46:32 +03:00

19 строки
697 B
Ruby

# frozen_string_literal: true
require_relative "types"
module Yookassa
module Entity
class CancellationDetails < Dry::Struct
# party [string, required]
# The participant of the payment process that made the decision to cancel the payment.
# Possible values are yoo_money, payment_network, and merchant. More about initiators of payment cancelation
attribute :party, Types::String.enum("yoo_money", "payment_network", "merchant")
# reason [string, required]
# Reason behind the cancelation. Possible values https://yookassa.ru/en/developers/payments/declined-payments#cancellation-details-reason
attribute :reason, Types::String
end
end
end