accounting/lib/xero-ruby/api/accounting_api.rb
def create_branding_theme_payment_services_with_http_info(xero_tenant_id, branding_theme_id, payment_service, opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug 'Calling API: AccountingApi.create_branding_theme_payment_services ...'
      end
      # verify the required parameter 'xero_tenant_id' is set
      if @api_client.config.client_side_validation && xero_tenant_id.nil?
        fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling AccountingApi.create_branding_theme_payment_services"
      end
      # verify the required parameter 'branding_theme_id' is set
      if @api_client.config.client_side_validation && branding_theme_id.nil?
        fail ArgumentError, "Missing the required parameter 'branding_theme_id' when calling AccountingApi.create_branding_theme_payment_services"
      end
      # verify the required parameter 'payment_service' is set
      if @api_client.config.client_side_validation && payment_service.nil?
        fail ArgumentError, "Missing the required parameter 'payment_service' when calling AccountingApi.create_branding_theme_payment_services"
      end
      # resource path
      local_var_path = '/BrandingThemes/{BrandingThemeID}/PaymentServices'.sub('{' + 'BrandingThemeID' + '}', CGI.escape(branding_theme_id.to_s))

      # query parameters
      query_params = opts[:query_params] || {}

      # header parameters
      header_params = opts[:header_params] || {}
      # HTTP header 'Accept' (if needed)
      header_params['Accept'] = @api_client.select_header_accept(['application/json'])
      # HTTP header 'Content-Type'
      header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
      header_params[:'Xero-Tenant-Id'] = xero_tenant_id

      # form parameters
      form_params = opts[:form_params] || {}

      # http body (model)
      post_body = opts[:body] || @api_client.object_to_http_body(payment_service) 

      # return_type
      return_type = opts[:return_type] || 'PaymentServices' 

      # auth_names
      auth_names = opts[:auth_names] || ['OAuth2']

      new_options = opts.merge(
        :header_params => header_params,
        :query_params => query_params,
        :form_params => form_params,
        :body => post_body,
        :auth_names => auth_names,
        :return_type => return_type
      )

      data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
      if @api_client.config.debugging
        @api_client.config.logger.debug "API called: AccountingApi#create_branding_theme_payment_services\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
# Allow for the creation of new custom payment service for specified Branding Theme
# @param xero_tenant_id [String] Xero identifier for Tenant
# @param branding_theme_id [String] Unique identifier for a Branding Theme
# @param payment_service [PaymentService] 
# @param [Hash] opts the optional parameters
# @return [Array<(PaymentServices, Integer, Hash)>] PaymentServices data, response status code and response headers
Allow for the creation of new custom payment service for specified Branding Theme
Allow for the creation of new custom payment service for specified Branding Theme
def create_branding_theme_payment_services_with_http_info(xero_tenant_id, branding_theme_id, payment_service, opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug 'Calling API: AccountingApi.create_branding_theme_payment_services ...'
      end
      if @api_client.config.client_side_validation && xero_tenant_id.nil?
        fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling AccountingApi.create_branding_theme_payment_services"
      end
      if @api_client.config.client_side_validation && branding_theme_id.nil?
        fail ArgumentError, "Missing the required parameter 'branding_theme_id' when calling AccountingApi.create_branding_theme_payment_services"
      end
      if @api_client.config.client_side_validation && payment_service.nil?
        fail ArgumentError, "Missing the required parameter 'payment_service' when calling AccountingApi.create_branding_theme_payment_services"
      end
      local_var_path = '/BrandingThemes/{BrandingThemeID}/PaymentServices'.sub('{' + 'BrandingThemeID' + '}', CGI.escape(branding_theme_id.to_s))
      query_params = opts[:query_params] || {}
      header_params = opts[:header_params] || {}
      header_params['Accept'] = @api_client.select_header_accept(['application/json'])
      header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
      header_params[:'Xero-Tenant-Id'] = xero_tenant_id
      form_params = opts[:form_params] || {}
      post_body = opts[:body] || @api_client.object_to_http_body(payment_service) 
      return_type = opts[:return_type] || 'PaymentServices' 
      auth_names = opts[:auth_names] || ['OAuth2']
      new_options = opts.merge(
        :header_params => header_params,
        :query_params => query_params,
        :form_params => form_params,
        :body => post_body,
        :auth_names => auth_names,
        :return_type => return_type
      )
      data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
      if @api_client.config.debugging
        @api_client.config.logger.debug "API called: AccountingApi#create_branding_theme_payment_services\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
def create_branding_theme_payment_services_with_http_info ( xero_tenant_id , branding_theme_id , payment_service , opts = { } ) if @api_client . config . debugging @api_client . config . logger . debug 'Calling API: AccountingApi.create_branding_theme_payment_services ...' end if @api_client . config . client_side_validation && xero_tenant_id . nil? fail ArgumentError , "Missing the required parameter 'xero_tenant_id' when calling AccountingApi.create_branding_theme_payment_services" end if @api_client . config . client_side_validation && branding_theme_id . nil? fail ArgumentError , "Missing the required parameter 'branding_theme_id' when calling AccountingApi.create_branding_theme_payment_services" end if @api_client . config . client_side_validation && payment_service . nil? fail ArgumentError , "Missing the required parameter 'payment_service' when calling AccountingApi.create_branding_theme_payment_services" end local_var_path = '/BrandingThemes/{BrandingThemeID}/PaymentServices' . sub ( '{' + 'BrandingThemeID' + '}' , CGI . escape ( branding_theme_id . to_s ) ) query_params = opts [ :query_params ] || { } header_params = opts [ :header_params ] || { } header_params [ 'Accept' ] = @api_client . select_header_accept ( [ 'application/json' ] ) header_params [ 'Content-Type' ] = @api_client . select_header_content_type ( [ 'application/json' ] ) header_params [ :' Xero-Tenant-Id ' ] = xero_tenant_id form_params = opts [ :form_params ] || { } post_body = opts [ :body ] || @api_client . object_to_http_body ( payment_service ) return_type = opts [ :return_type ] || 'PaymentServices' auth_names = opts [ :auth_names ] || [ 'OAuth2' ] new_options = opts . merge ( :header_params => header_params , :query_params => query_params , :form_params => form_params , :body => post_body , :auth_names => auth_names , :return_type => return_type ) data , status_code , headers = @api_client . call_api ( :POST , local_var_path , new_options ) if @api_client . config . debugging @api_client . config . logger . debug "API called: AccountingApi#create_branding_theme_payment_services\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data , status_code , headers end
Allow for the creation of new custom payment service for specified Branding Theme
Allow for the creation of new custom payment service for specified Branding Theme
# verify the required parameter 'xero_tenant_id' is set # verify the required parameter 'branding_theme_id' is set # verify the required parameter 'payment_service' is set # resource path # query parameters # header parameters # HTTP header 'Accept' (if needed) # HTTP header 'Content-Type' # form parameters # http body (model) # return_type # auth_names
PaymentServices data, response status code and response headers
PaymentServices data response status code and response headers
Array<(PaymentServices, Integer, Hash)>
xero_tenant_id
Xero identifier for Tenant
Xero identifier for Tenant
branding_theme_id
Unique identifier for a Branding Theme
Unique identifier for a Branding Theme
payment_service
opts
None
opts the optional parameters
opts the optional parameters