1
0
зеркало из https://github.com/glebtv/yookassa.git synced 2026-09-07 19:35:51 +03:00

Partners api and its endpoints (#21)

Этот коммит содержится в:
Ivan Shamatov
2021-11-13 21:53:31 +03:00
коммит произвёл GitHub
родитель 2e4efb4143
Коммит 6072b2ae0f
7 изменённых файлов: 169 добавлений и 1 удалений

Просмотреть файл

@@ -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