From 4374edca37c002c5e161aa2b2ec2c6d6c9e8bf47 Mon Sep 17 00:00:00 2001 From: Sunny Raj Rathod Date: Tue, 23 Aug 2016 13:33:08 +0530 Subject: [PATCH 1/4] Updating authorizenet.gemspec merging changes in https://github.com/AuthorizeNet/sdk-ruby/pull/92. --- authorizenet.gemspec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/authorizenet.gemspec b/authorizenet.gemspec index 685fc43..0051c22 100644 --- a/authorizenet.gemspec +++ b/authorizenet.gemspec @@ -14,7 +14,11 @@ Gem::Specification.new do |s| s.required_ruby_version = '>= 2.1.0' s.required_rubygems_version = '>= 1.3.6' - s.add_runtime_dependency 'activesupport', '= 4.2.6' + if RUBY_VERSION < '2.2' + s.add_runtime_dependency 'activesupport', '= 4.2.6' + else + s.add_runtime_dependency 'activesupport', '>= 4.2.6' + end s.add_runtime_dependency 'nokogiri', '~> 1.6', '>= 1.6.4' s.add_runtime_dependency "roxml", "= 3.3.1" From 7d5b516410a6e8769e681570194a8e73e0e5a38c Mon Sep 17 00:00:00 2001 From: srathod Date: Thu, 20 Oct 2016 10:33:55 +0530 Subject: [PATCH 2/4] Merging pull request #94. paymentProfiles and shipToList in CustomerProfileType were not having correct type in schema. Similar issue with customerPaymentProfileIdList and customerShippingAddressIdList in CreateCustomerProfileResponse. --- lib/authorize_net/api/schema.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/authorize_net/api/schema.rb b/lib/authorize_net/api/schema.rb index 4311d27..7d62209 100644 --- a/lib/authorize_net/api/schema.rb +++ b/lib/authorize_net/api/schema.rb @@ -1183,8 +1183,8 @@ class CustomerProfileType xml_accessor :merchantCustomerId xml_accessor :description xml_accessor :email - xml_accessor :paymentProfiles - xml_accessor :shipToList + xml_accessor :paymentProfiles, :from => 'paymentProfiles', :as => [CustomerPaymentProfileType] + xml_accessor :shipToList, :from => 'shipToList', :as => [CustomerAddressType] def initialize(merchantCustomerId = nil, description = nil, email = nil, paymentProfiles = [], shipToList = []) @merchantCustomerId = merchantCustomerId @@ -2961,8 +2961,8 @@ class CreateCustomerProfileResponse xml_accessor :messages, :as => MessagesType xml_accessor :sessionToken xml_accessor :customerProfileId - xml_accessor :customerPaymentProfileIdList - xml_accessor :customerShippingAddressIdList + xml_accessor :customerPaymentProfileIdList, :as => NumericStringsType + xml_accessor :customerShippingAddressIdList, :as => NumericStringsType xml_accessor :validationDirectResponseList def initialize(refId = nil, messages = nil, sessionToken = nil, customerProfileId = nil, customerPaymentProfileIdList = nil, customerShippingAddressIdList = nil, validationDirectResponseList = nil) From c137d1fb98d2e2825e72695db2243d6a2637ea20 Mon Sep 17 00:00:00 2001 From: Sunny Raj Rathod Date: Thu, 20 Oct 2016 11:16:55 +0530 Subject: [PATCH 3/4] Update authorizenet.gemspec --- authorizenet.gemspec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/authorizenet.gemspec b/authorizenet.gemspec index 0051c22..bf2f8ed 100644 --- a/authorizenet.gemspec +++ b/authorizenet.gemspec @@ -1,8 +1,8 @@ Gem::Specification.new do |s| s.name = "authorizenet" - s.version = "1.9.0.1" + s.version = "1.9.0.2" s.platform = Gem::Platform::RUBY - s.date = "2016-08-12" + s.date = "2016-10-20" s.summary = "Authorize.Net Payments SDK" s.description = "Authorize.Net SDK includes standard payments, recurring billing, and customer profiles" s.authors = ["Authorize.Net"] From ed299944fda5c056c3d19445be9544af02cbc230 Mon Sep 17 00:00:00 2001 From: Sunny Raj Rathod Date: Thu, 20 Oct 2016 11:17:17 +0530 Subject: [PATCH 4/4] Update constants.yml --- lib/authorize_net/api/constants.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/authorize_net/api/constants.yml b/lib/authorize_net/api/constants.yml index 597d993..ec3ddcb 100644 --- a/lib/authorize_net/api/constants.yml +++ b/lib/authorize_net/api/constants.yml @@ -1 +1 @@ -clientId: sdk-ruby-1.9.0.1 +clientId: sdk-ruby-1.9.0.2