Class: Adyen::SplitConfigurationMerchantLevelApi
- Defined in:
- lib/adyen/services/management/split_configuration_merchant_level_api.rb
Overview
NOTE: This class is auto generated by OpenAPI Generator Ref: openapi-generator.tech
Do not edit the class manually.
Instance Attribute Summary collapse
-
#service ⇒ Object
Returns the value of attribute service.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#create_rule(request, merchant_id, split_configuration_id, headers: {}) ⇒ Object
Create a rule.
-
#create_split_configuration(request, merchant_id, headers: {}) ⇒ Object
Create a split configuration.
-
#delete_split_configuration(merchant_id, split_configuration_id, headers: {}) ⇒ Object
Delete a split configuration.
-
#delete_split_configuration_rule(merchant_id, split_configuration_id, rule_id, headers: {}) ⇒ Object
Delete a split configuration rule.
-
#get_split_configuration(merchant_id, split_configuration_id, headers: {}) ⇒ Object
Get a split configuration.
-
#initialize(client, version = DEFAULT_VERSION) ⇒ SplitConfigurationMerchantLevelApi
constructor
A new instance of SplitConfigurationMerchantLevelApi.
-
#list_split_configurations(merchant_id, headers: {}) ⇒ Object
Get a list of split configurations.
-
#update_split_conditions(request, merchant_id, split_configuration_id, rule_id, headers: {}) ⇒ Object
Update split conditions.
-
#update_split_configuration_description(request, merchant_id, split_configuration_id, headers: {}) ⇒ Object
Update split configuration description.
-
#update_split_logic(request, merchant_id, split_configuration_id, rule_id, split_logic_id, headers: {}) ⇒ Object
Update the split logic.
Methods inherited from Service
action_for_method_name, #create_query_string
Constructor Details
#initialize(client, version = DEFAULT_VERSION) ⇒ SplitConfigurationMerchantLevelApi
Returns a new instance of SplitConfigurationMerchantLevelApi.
11 12 13 |
# File 'lib/adyen/services/management/split_configuration_merchant_level_api.rb', line 11 def initialize(client, version = DEFAULT_VERSION) super(client, version, 'Management') end |
Instance Attribute Details
#service ⇒ Object
Returns the value of attribute service.
9 10 11 |
# File 'lib/adyen/services/management/split_configuration_merchant_level_api.rb', line 9 def service @service end |
#version ⇒ Object
Returns the value of attribute version.
9 10 11 |
# File 'lib/adyen/services/management/split_configuration_merchant_level_api.rb', line 9 def version @version end |
Instance Method Details
#create_rule(request, merchant_id, split_configuration_id, headers: {}) ⇒ Object
Create a rule
16 17 18 19 20 21 22 23 |
# File 'lib/adyen/services/management/split_configuration_merchant_level_api.rb', line 16 def create_rule(request, merchant_id, split_configuration_id, headers: {}) endpoint = '/merchants/{merchantId}/splitConfigurations/{splitConfigurationId}'.gsub(/{.+?}/, '%s') endpoint = endpoint.gsub(%r{^/}, '') endpoint = format(endpoint, merchant_id, split_configuration_id) action = { method: 'post', url: endpoint } @client.call_adyen_api(@service, action, request, headers, @version) end |
#create_split_configuration(request, merchant_id, headers: {}) ⇒ Object
Create a split configuration
26 27 28 29 30 31 32 33 |
# File 'lib/adyen/services/management/split_configuration_merchant_level_api.rb', line 26 def create_split_configuration(request, merchant_id, headers: {}) endpoint = '/merchants/{merchantId}/splitConfigurations'.gsub(/{.+?}/, '%s') endpoint = endpoint.gsub(%r{^/}, '') endpoint = format(endpoint, merchant_id) action = { method: 'post', url: endpoint } @client.call_adyen_api(@service, action, request, headers, @version) end |
#delete_split_configuration(merchant_id, split_configuration_id, headers: {}) ⇒ Object
Delete a split configuration
36 37 38 39 40 41 42 43 |
# File 'lib/adyen/services/management/split_configuration_merchant_level_api.rb', line 36 def delete_split_configuration(merchant_id, split_configuration_id, headers: {}) endpoint = '/merchants/{merchantId}/splitConfigurations/{splitConfigurationId}'.gsub(/{.+?}/, '%s') endpoint = endpoint.gsub(%r{^/}, '') endpoint = format(endpoint, merchant_id, split_configuration_id) action = { method: 'delete', url: endpoint } @client.call_adyen_api(@service, action, {}, headers, @version) end |
#delete_split_configuration_rule(merchant_id, split_configuration_id, rule_id, headers: {}) ⇒ Object
Delete a split configuration rule
46 47 48 49 50 51 52 53 |
# File 'lib/adyen/services/management/split_configuration_merchant_level_api.rb', line 46 def delete_split_configuration_rule(merchant_id, split_configuration_id, rule_id, headers: {}) endpoint = '/merchants/{merchantId}/splitConfigurations/{splitConfigurationId}/rules/{ruleId}'.gsub(/{.+?}/, '%s') endpoint = endpoint.gsub(%r{^/}, '') endpoint = format(endpoint, merchant_id, split_configuration_id, rule_id) action = { method: 'delete', url: endpoint } @client.call_adyen_api(@service, action, {}, headers, @version) end |
#get_split_configuration(merchant_id, split_configuration_id, headers: {}) ⇒ Object
Get a split configuration
56 57 58 59 60 61 62 63 |
# File 'lib/adyen/services/management/split_configuration_merchant_level_api.rb', line 56 def get_split_configuration(merchant_id, split_configuration_id, headers: {}) endpoint = '/merchants/{merchantId}/splitConfigurations/{splitConfigurationId}'.gsub(/{.+?}/, '%s') endpoint = endpoint.gsub(%r{^/}, '') endpoint = format(endpoint, merchant_id, split_configuration_id) action = { method: 'get', url: endpoint } @client.call_adyen_api(@service, action, {}, headers, @version) end |
#list_split_configurations(merchant_id, headers: {}) ⇒ Object
Get a list of split configurations
66 67 68 69 70 71 72 73 |
# File 'lib/adyen/services/management/split_configuration_merchant_level_api.rb', line 66 def list_split_configurations(merchant_id, headers: {}) endpoint = '/merchants/{merchantId}/splitConfigurations'.gsub(/{.+?}/, '%s') endpoint = endpoint.gsub(%r{^/}, '') endpoint = format(endpoint, merchant_id) action = { method: 'get', url: endpoint } @client.call_adyen_api(@service, action, {}, headers, @version) end |
#update_split_conditions(request, merchant_id, split_configuration_id, rule_id, headers: {}) ⇒ Object
Update split conditions
76 77 78 79 80 81 82 83 |
# File 'lib/adyen/services/management/split_configuration_merchant_level_api.rb', line 76 def update_split_conditions(request, merchant_id, split_configuration_id, rule_id, headers: {}) endpoint = '/merchants/{merchantId}/splitConfigurations/{splitConfigurationId}/rules/{ruleId}'.gsub(/{.+?}/, '%s') endpoint = endpoint.gsub(%r{^/}, '') endpoint = format(endpoint, merchant_id, split_configuration_id, rule_id) action = { method: 'patch', url: endpoint } @client.call_adyen_api(@service, action, request, headers, @version) end |
#update_split_configuration_description(request, merchant_id, split_configuration_id, headers: {}) ⇒ Object
Update split configuration description
86 87 88 89 90 91 92 93 |
# File 'lib/adyen/services/management/split_configuration_merchant_level_api.rb', line 86 def update_split_configuration_description(request, merchant_id, split_configuration_id, headers: {}) endpoint = '/merchants/{merchantId}/splitConfigurations/{splitConfigurationId}'.gsub(/{.+?}/, '%s') endpoint = endpoint.gsub(%r{^/}, '') endpoint = format(endpoint, merchant_id, split_configuration_id) action = { method: 'patch', url: endpoint } @client.call_adyen_api(@service, action, request, headers, @version) end |
#update_split_logic(request, merchant_id, split_configuration_id, rule_id, split_logic_id, headers: {}) ⇒ Object
Update the split logic
96 97 98 99 100 101 102 103 |
# File 'lib/adyen/services/management/split_configuration_merchant_level_api.rb', line 96 def update_split_logic(request, merchant_id, split_configuration_id, rule_id, split_logic_id, headers: {}) endpoint = '/merchants/{merchantId}/splitConfigurations/{splitConfigurationId}/rules/{ruleId}/splitLogic/{splitLogicId}'.gsub(/{.+?}/, '%s') endpoint = endpoint.gsub(%r{^/}, '') endpoint = format(endpoint, merchant_id, split_configuration_id, rule_id, split_logic_id) action = { method: 'patch', url: endpoint } @client.call_adyen_api(@service, action, request, headers, @version) end |