Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion lib/yookassa/entity/payment_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,12 @@ class Wechat < Base
class Webmoney < Base
attribute :type, Types.Value("webmoney")
end

class SBP < Base
attribute :type, Types.Value("sbp")
attribute? :sbp_operation_id, Types::String
attribute? :payer_bank_details, Types::Hash
end
end

PaymentMethods = PaymentMethod::BankCard |
Expand All @@ -94,6 +100,7 @@ class Webmoney < Base
PaymentMethod::Qiwi |
PaymentMethod::Tinkoff |
PaymentMethod::Wechat |
PaymentMethod::Webmoney
PaymentMethod::Webmoney |
PaymentMethod::SBP
end
end
2 changes: 1 addition & 1 deletion lib/yookassa/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Yookassa
VERSION = "0.2.0"
VERSION = "0.2.1"
end