From f96491e21415efdcb168ff0479ce800c5973162f Mon Sep 17 00:00:00 2001 From: Ivan Garanin Date: Wed, 4 Jun 2025 00:28:09 +0300 Subject: [PATCH 1/2] Fixed issue with SBP payments response --- lib/yookassa/entity/payment_methods.rb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 From 1d722d0dfe300e0423a57dd4dab809dd9e93821f Mon Sep 17 00:00:00 2001 From: Ivan Garanin Date: Fri, 6 Jun 2025 20:13:35 +0300 Subject: [PATCH 2/2] Changed version --- lib/yookassa/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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