Class: GoCardlessPro::Services::LogosService
- Inherits:
-
BaseService
- Object
- BaseService
- GoCardlessPro::Services::LogosService
- Defined in:
- lib/gocardless_pro/services/logos_service.rb
Overview
Service for making requests to the Logo endpoints
Instance Method Summary collapse
-
#create_for_creditor(options = {}) ⇒ Object
Creates a new logo associated with a creditor.
Methods inherited from BaseService
#initialize, #make_request, #sub_url
Constructor Details
This class inherits a constructor from GoCardlessPro::Services::BaseService
Instance Method Details
#create_for_creditor(options = {}) ⇒ Object
Creates a new logo associated with a creditor. If a creditor already has a logo, this will update the existing logo linked to the creditor. Example URL: /branding/logos
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/gocardless_pro/services/logos_service.rb', line 17 def create_for_creditor( = {}) path = '/branding/logos' params = .delete(:params) || {} [:params] = {} [:params][envelope_key] = params [:retry_failures] = true response = make_request(:post, path, ) return if response.body.nil? Resources::Logo.new(unenvelope_body(response.body), response) end |