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

Commit

Permalink
Release 1.11.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ingenico ePayments committed Sep 27, 2017
1 parent 6e0334b commit bdda1a8
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 2 deletions.
2 changes: 1 addition & 1 deletion connect-sdk-ruby.gemspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Gem::Specification.new do |spec|
spec.name = 'connect-sdk-ruby'
spec.version = '1.10.0'
spec.version = '1.11.0'
spec.authors = ['Ingenico ePayments']
spec.email = ['github@epay.ingenico.com']
spec.summary = %q{SDK to communicate with the Ingenico ePayments platform using the Ingenico Connect Server API}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#
# This class was auto-generated from the API references found at
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
#
require 'ingenico/connect/sdk/data_object'

module Ingenico::Connect::SDK
module Domain
module Riskassessments

class ContactDetailsRiskAssessment < Ingenico::Connect::SDK::DataObject

# String
attr_accessor :email_address

def to_h
hash = super
add_to_hash(hash, 'emailAddress', @email_address)
hash
end

def from_hash(hash)
super
if hash.has_key?('emailAddress')
@email_address = hash['emailAddress']
end
end
end
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
require 'ingenico/connect/sdk/data_object'
require 'ingenico/connect/sdk/domain/definitions/address'
require 'ingenico/connect/sdk/domain/payment/address_personal'
require 'ingenico/connect/sdk/domain/riskassessments/contact_details_risk_assessment'
require 'ingenico/connect/sdk/domain/riskassessments/personal_information_risk_assessment'

module Ingenico::Connect::SDK
Expand All @@ -16,6 +17,9 @@ class CustomerRiskAssessment < Ingenico::Connect::SDK::DataObject
# {Ingenico::Connect::SDK::Domain::Definitions::Address}
attr_accessor :billing_address

# {Ingenico::Connect::SDK::Domain::Riskassessments::ContactDetailsRiskAssessment}
attr_accessor :contact_details

# String
attr_accessor :locale

Expand All @@ -28,6 +32,7 @@ class CustomerRiskAssessment < Ingenico::Connect::SDK::DataObject
def to_h
hash = super
add_to_hash(hash, 'billingAddress', @billing_address)
add_to_hash(hash, 'contactDetails', @contact_details)
add_to_hash(hash, 'locale', @locale)
add_to_hash(hash, 'personalInformation', @personal_information)
add_to_hash(hash, 'shippingAddress', @shipping_address)
Expand All @@ -42,6 +47,12 @@ def from_hash(hash)
end
@billing_address = Ingenico::Connect::SDK::Domain::Definitions::Address.new_from_hash(hash['billingAddress'])
end
if hash.has_key?('contactDetails')
if !(hash['contactDetails'].is_a? Hash)
raise TypeError, "value '%s' is not a Hash" % [hash['contactDetails']]
end
@contact_details = Ingenico::Connect::SDK::Domain::Riskassessments::ContactDetailsRiskAssessment.new_from_hash(hash['contactDetails'])
end
if hash.has_key?('locale')
@locale = hash['locale']
end
Expand Down
2 changes: 1 addition & 1 deletion lib/ingenico/connect/sdk/meta_data_provider.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module Ingenico::Connect::SDK

# Manages metadata about the server using the SDK
class MetaDataProvider
@@SDK_VERSION = '1.10.0'
@@SDK_VERSION = '1.11.0'
@@SERVER_META_INFO_HEADER = 'X-GCS-ServerMetaInfo'
@@PROHIBITED_HEADERS = [@@SERVER_META_INFO_HEADER, 'X-GCS-Idempotence-Key',
'Date', 'Content-Type', 'Authorization'].sort!.freeze
Expand Down

0 comments on commit bdda1a8

Please sign in to comment.