diff --git a/lib/yookassa/entity/payment_methods.rb b/lib/yookassa/entity/payment_methods.rb index 4ee1c08..14502b0 100644 --- a/lib/yookassa/entity/payment_methods.rb +++ b/lib/yookassa/entity/payment_methods.rb @@ -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 | @@ -94,6 +100,7 @@ class Webmoney < Base PaymentMethod::Qiwi | PaymentMethod::Tinkoff | PaymentMethod::Wechat | - PaymentMethod::Webmoney + PaymentMethod::Webmoney | + PaymentMethod::SBP end end diff --git a/lib/yookassa/version.rb b/lib/yookassa/version.rb index 08c1f0e..6c599b4 100644 --- a/lib/yookassa/version.rb +++ b/lib/yookassa/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Yookassa - VERSION = "0.2.0" + VERSION = "0.2.1" end