Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Commit

Permalink
Add enabled_network_tokens to gateway update endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
vpuzzella committed Oct 3, 2024
1 parent 108b7b6 commit 1d0332b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions lib/spreedly/environment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ def add_gateway(gateway_type, credentials = {})

def update_gateway(gateway_token, credentials: {}, options: {})
body = update_gateway_body(credentials: credentials, options: options)
puts body
xml_doc = ssl_put(update_gateway_url(gateway_token), body, headers)
Gateway.new(xml_doc)
end
Expand Down Expand Up @@ -262,7 +261,7 @@ def add_gateway_body(gateway_type, credentials)
def update_gateway_body(credentials: {}, options: {})
build_xml_request('gateway') do |doc|
add_to_doc(doc, credentials, *credentials.keys)
add_to_doc(doc, options, :description, :merchant_profile_key, :sub_merchant_key)
add_to_doc(doc, options, :description, :merchant_profile_key, :sub_merchant_key, :enabled_network_tokens)
end
end

Expand Down
2 changes: 1 addition & 1 deletion lib/spreedly/gateway.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module Spreedly

class Gateway < Model

field :gateway_type, :state, :name, :description
field :gateway_type, :state, :name, :description, :enabled_network_tokens
attr_reader :credentials

def initialize(xml_doc)
Expand Down

0 comments on commit 1d0332b

Please sign in to comment.