Skip to content
Merged
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
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,5 @@ build-iPhoneSimulator/
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
.rvmrc

deploy.sh
deploy.sh
publish.sh
11 changes: 11 additions & 0 deletions lib/processout/invoice_risk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class InvoiceRisk

attr_reader :score
attr_reader :is_legit
attr_reader :skip_gateway_rules


def score=(val)
Expand All @@ -20,6 +21,10 @@ def is_legit=(val)
@is_legit = val
end

def skip_gateway_rules=(val)
@skip_gateway_rules = val
end


# Initializes the InvoiceRisk object
# Params:
Expand All @@ -30,6 +35,7 @@ def initialize(client, data = {})

self.score = data.fetch(:score, nil)
self.is_legit = data.fetch(:is_legit, nil)
self.skip_gateway_rules = data.fetch(:skip_gateway_rules, nil)

end

Expand All @@ -43,6 +49,7 @@ def to_json(options)
{
"score": self.score,
"is_legit": self.is_legit,
"skip_gateway_rules": self.skip_gateway_rules,
}.to_json
end

Expand All @@ -59,6 +66,9 @@ def fill_with_data(data)
if data.include? "is_legit"
self.is_legit = data["is_legit"]
end
if data.include? "skip_gateway_rules"
self.skip_gateway_rules = data["skip_gateway_rules"]
end

self
end
Expand All @@ -72,6 +82,7 @@ def prefill(data)
end
self.score = data.fetch(:score, self.score)
self.is_legit = data.fetch(:is_legit, self.is_legit)
self.skip_gateway_rules = data.fetch(:skip_gateway_rules, self.skip_gateway_rules)

self
end
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/2.26.0"
req["User-Agent"] = "ProcessOut Ruby-Bindings/2.27.0"

unless options.nil?
req["Idempotency-Key"] = options.fetch(:idempotency_key, "")
Expand Down
11 changes: 11 additions & 0 deletions lib/processout/transaction.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ class Transaction
attr_reader :initial_scheme_transaction_id
attr_reader :scheme_id
attr_reader :payment_type
attr_reader :eci
attr_reader :native_apm
attr_reader :external_details

Expand Down Expand Up @@ -457,6 +458,10 @@ def payment_type=(val)
@payment_type = val
end

def eci=(val)
@eci = val
end

def native_apm=(val)
if val.nil?
@native_apm = val
Expand Down Expand Up @@ -547,6 +552,7 @@ def initialize(client, data = {})
self.initial_scheme_transaction_id = data.fetch(:initial_scheme_transaction_id, nil)
self.scheme_id = data.fetch(:scheme_id, nil)
self.payment_type = data.fetch(:payment_type, nil)
self.eci = data.fetch(:eci, nil)
self.native_apm = data.fetch(:native_apm, nil)
self.external_details = data.fetch(:external_details, nil)

Expand Down Expand Up @@ -621,6 +627,7 @@ def to_json(options)
"initial_scheme_transaction_id": self.initial_scheme_transaction_id,
"scheme_id": self.scheme_id,
"payment_type": self.payment_type,
"eci": self.eci,
"native_apm": self.native_apm,
"external_details": self.external_details,
}.to_json
Expand Down Expand Up @@ -816,6 +823,9 @@ def fill_with_data(data)
if data.include? "payment_type"
self.payment_type = data["payment_type"]
end
if data.include? "eci"
self.eci = data["eci"]
end
if data.include? "native_apm"
self.native_apm = data["native_apm"]
end
Expand Down Expand Up @@ -894,6 +904,7 @@ def prefill(data)
self.initial_scheme_transaction_id = data.fetch(:initial_scheme_transaction_id, self.initial_scheme_transaction_id)
self.scheme_id = data.fetch(:scheme_id, self.scheme_id)
self.payment_type = data.fetch(:payment_type, self.payment_type)
self.eci = data.fetch(:eci, self.eci)
self.native_apm = data.fetch(:native_apm, self.native_apm)
self.external_details = data.fetch(:external_details, self.external_details)

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 = "2.26.0"
VERSION = "2.27.0"
end