diff --git a/lib/processout/invoice_device.rb b/lib/processout/invoice_device.rb index 65a07ef..14a253f 100755 --- a/lib/processout/invoice_device.rb +++ b/lib/processout/invoice_device.rb @@ -9,6 +9,7 @@ module ProcessOut class InvoiceDevice attr_reader :channel + attr_reader :threeds_sdk attr_reader :platform attr_reader :ip_address attr_reader :id @@ -18,6 +19,10 @@ def channel=(val) @channel = val end + def threeds_sdk=(val) + @threeds_sdk = val + end + def platform=(val) @platform = val end @@ -39,6 +44,7 @@ def initialize(client, data = {}) @client = client self.channel = data.fetch(:channel, nil) + self.threeds_sdk = data.fetch(:threeds_sdk, nil) self.platform = data.fetch(:platform, nil) self.ip_address = data.fetch(:ip_address, nil) self.id = data.fetch(:id, nil) @@ -54,6 +60,7 @@ def new(data = {}) def to_json(options) { "channel": self.channel, + "threeds_sdk": self.threeds_sdk, "platform": self.platform, "ip_address": self.ip_address, "id": self.id, @@ -70,6 +77,9 @@ def fill_with_data(data) if data.include? "channel" self.channel = data["channel"] end + if data.include? "threeds_sdk" + self.threeds_sdk = data["threeds_sdk"] + end if data.include? "platform" self.platform = data["platform"] end @@ -91,6 +101,7 @@ def prefill(data) return self end self.channel = data.fetch(:channel, self.channel) + self.threeds_sdk = data.fetch(:threeds_sdk, self.threeds_sdk) self.platform = data.fetch(:platform, self.platform) self.ip_address = data.fetch(:ip_address, self.ip_address) self.id = data.fetch(:id, self.id) diff --git a/lib/processout/networking/request.rb b/lib/processout/networking/request.rb index c89d715..918d83c 100644 --- a/lib/processout/networking/request.rb +++ b/lib/processout/networking/request.rb @@ -13,7 +13,7 @@ def apply_headers(req, options) req.basic_auth @client.project_id, @client.project_secret req.content_type = "application/json" req["API-Version"] = "1.4.0.0" - req["User-Agent"] = "ProcessOut Ruby-Bindings/6.0.0" + req["User-Agent"] = "ProcessOut Ruby-Bindings/6.0.1" unless options.nil? req["Idempotency-Key"] = options.fetch(:idempotency_key, "") diff --git a/lib/processout/version.rb b/lib/processout/version.rb index 67dce35..278caa4 100644 --- a/lib/processout/version.rb +++ b/lib/processout/version.rb @@ -1,3 +1,3 @@ module ProcessOut - VERSION = "6.0.0" + VERSION = "6.0.1" end diff --git a/processout.gemspec b/processout.gemspec index 0f6be93..fa444c1 100644 --- a/processout.gemspec +++ b/processout.gemspec @@ -13,6 +13,8 @@ Gem::Specification.new do |spec| spec.homepage = "https://docs.processout.com" spec.license = "MIT" + spec.metadata["rubygems_mfa_required"] = "true" + spec.files = `git ls-files -z`.split("\x0").reject do |f| f.match(%r{^(test|spec|features)/}) end