Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions lib/processout/invoice_device.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -18,6 +19,10 @@ def channel=(val)
@channel = val
end

def threeds_sdk=(val)
@threeds_sdk = val
end

def platform=(val)
@platform = val
end
Expand All @@ -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)
Expand All @@ -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,
Expand All @@ -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
Expand All @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion lib/processout/networking/request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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, "")
Expand Down
2 changes: 1 addition & 1 deletion lib/processout/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module ProcessOut
VERSION = "6.0.0"
VERSION = "6.0.1"
end
2 changes: 2 additions & 0 deletions processout.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down