зеркало из
https://github.com/glebtv/yookassa.git
synced 2026-09-07 19:35:51 +03:00
Partners api and its endpoints (#21)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
2e4efb4143
Коммит
6072b2ae0f
@@ -21,11 +21,17 @@ module Yookassa
|
||||
end
|
||||
|
||||
def client
|
||||
raise ConfigError, "Specify `shop_id` and `api_key` settins in a `.configure` block" if @config.nil?
|
||||
raise ConfigError, "Specify `shop_id` and `api_key` settings in a `.configure` block" if @config.nil?
|
||||
|
||||
@client ||= Client.new(shop_id: @config.shop_id, api_key: @config.api_key)
|
||||
end
|
||||
|
||||
def partner_api
|
||||
@partner_api ||= PartnerAPI.new
|
||||
end
|
||||
|
||||
def_delegators :client, :payments, :refunds, :receipts
|
||||
|
||||
def_delegators :partner_api, :stores, :webhooks
|
||||
end
|
||||
end
|
||||
|
||||
Ссылка в новой задаче
Block a user