From 7b1555019c6460a57d3b9e69c7ec521d27153bd1 Mon Sep 17 00:00:00 2001 From: Gabriel Broadwin Nongsiej Date: Wed, 24 Mar 2021 17:08:57 +0530 Subject: [PATCH 01/13] Mandate changes 2021 --- lib/authorize_net/api/schema.rb | 70 +++++++++++++++++++++++++++++---- 1 file changed, 63 insertions(+), 7 deletions(-) diff --git a/lib/authorize_net/api/schema.rb b/lib/authorize_net/api/schema.rb index b219652..44d05c0 100644 --- a/lib/authorize_net/api/schema.rb +++ b/lib/authorize_net/api/schema.rb @@ -57,6 +57,10 @@ class ArrayOfFDSFilter < ::Array # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}ArrayOfPermissionType class ArrayOfPermissionType < ::Array end + + # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}ArrayOfContactDetail + class ArrayOfContactDetail < ::Array + end # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}driversLicenseType # number - SOAP::SOAPString @@ -1201,14 +1205,16 @@ class CustomerPaymentProfileType xml_accessor :driversLicense, as: DriversLicenseType xml_accessor :taxId xml_accessor :defaultPaymentProfile + xml_accessor :subsequentAuthInformation, as: SubsequentAuthInformation - def initialize(customerType = nil, billTo = nil, payment = nil, driversLicense = nil, taxId = nil, defaultPaymentProfile = nil) + def initialize(customerType = nil, billTo = nil, payment = nil, driversLicense = nil, taxId = nil, defaultPaymentProfile = nil, subsequentAuthInformation = nil) @customerType = customerType @billTo = billTo @payment = payment @driversLicense = driversLicense @taxId = taxId @defaultPaymentProfile = defaultPaymentProfile + @subsequentAuthInformation = subsequentAuthInformation end end @@ -1269,8 +1275,10 @@ class CustomerPaymentProfileMaskedType xml_accessor :driversLicense, as: DriversLicenseMaskedType xml_accessor :taxId xml_accessor :subscriptionIds, as: SubscriptionIdList + xml_accessor :originalNetworkTransId + xml_accessor :originalAuthAmount - def initialize(customerType = nil, billTo = nil, customerProfileId = nil, customerPaymentProfileId = nil, payment = nil, driversLicense = nil, taxId = nil, subscriptionIds = nil, defaultPaymentProfile = nil) + def initialize(customerType = nil, billTo = nil, customerProfileId = nil, customerPaymentProfileId = nil, payment = nil, driversLicense = nil, taxId = nil, subscriptionIds = nil, defaultPaymentProfile = nil, originalNetworkTransId = nil, originalAuthAmount = nil) @customerType = customerType @billTo = billTo @customerProfileId = customerProfileId @@ -1280,6 +1288,8 @@ def initialize(customerType = nil, billTo = nil, customerProfileId = nil, custom @taxId = taxId @subscriptionIds = subscriptionIds @defaultPaymentProfile = defaultPaymentProfile + @originalAuthAmount = originalAuthAmount + @originalNetworkTransId = originalNetworkTransId end end @@ -1563,16 +1573,29 @@ def initialize(isFirstRecurringPayment = nil, isFirstSubsequentAuth = nil, isSub end end + + #{AnetApi/xml/v1/schema/AnetApiSchema.xsd}authorizationIndicatorType + # authorizationIndicator - AuthIndicatorEnum + class AuthorizationIndicatorType + include ROXML + xml_accessor :authorizationIndicator, as: AuthIndicatorEnum + + def initialize(authorizationIndicator = nil) + @authorizationIndicator = authorizationIndicator + end + end #{AnetApi/xml/v1/schema/AnetApiSchema.xsd}subsequentAuthInformation # originalNetworkTransId - SOAP::SOAPString + # originalAuthAmount - SOAP::SOAPDecimal # reason - MerchantInitTransReasonEnum class SubsequentAuthInformation include ROXML xml_accessor :originalNetworkTransId + xml_accessor :originalAuthAmount xml_accessor :reason #, as: MerchantInitTransReasonEnum - def initialize(originalNetworkTransId = nil, reason = nil) + def initialize(originalNetworkTransId = nil, originalAuthAmount = nil, reason = nil) @originalNetworkTransId = originalNetworkTransId @reason = reason @@ -1612,8 +1635,9 @@ class ProfileTransOrderType xml_accessor :splitTenderId xml_accessor :processingOptions xml_accessor :subsequentAuthInformation + xml_accessor :authorizationIndicatorType - def initialize(amount = nil, tax = nil, shipping = nil, duty = nil, lineItems = [], customerProfileId = nil, customerPaymentProfileId = nil, customerShippingAddressId = nil, order = nil, taxExempt = nil, recurringBilling = nil, cardCode = nil, splitTenderId = nil, processingOptions = nil, subsequentAuthInformation = nil) + def initialize(amount = nil, tax = nil, shipping = nil, duty = nil, lineItems = [], customerProfileId = nil, customerPaymentProfileId = nil, customerShippingAddressId = nil, order = nil, taxExempt = nil, recurringBilling = nil, cardCode = nil, splitTenderId = nil, processingOptions = nil, subsequentAuthInformation = nil, authorizationIndicatorType = nil) @amount = amount @tax = tax @shipping = shipping @@ -1629,6 +1653,7 @@ def initialize(amount = nil, tax = nil, shipping = nil, duty = nil, lineItems = @splitTenderId = splitTenderId @processingOptions = processingOptions @subsequentAuthInformation = subsequentAuthInformation + @authorizationIndicatorType = authorizationIndicatorType end end @@ -2250,6 +2275,10 @@ def initialize(nationalTaxAmount = nil, localTaxAmount = nil, alternateTaxAmount # profile - CustomerProfileIdType # otherTax - OtherTaxType # shipFrom - NameAndAddressType + # networkTransId - SOAP::SOAPString + # originalNetworkTransId - SOAP::SOAPString + # originalAuthAmount - SOAP::SOAPDecimal + # authorizationIndicator - SOAP::SOAPString class TransactionDetailsType include ROXML # inner class for member: EmvDetails @@ -2320,8 +2349,12 @@ def initialize(tag = nil) xml_accessor :tip, as: ExtendedAmountType xml_accessor :otherTax, as: OtherTaxType xml_accessor :shipFrom, as: NameAndAddressType + xml_accessor :networkTransId + xml_accessor :originalNetworkTransId + xml_accessor :originalAuthAmount + xml_accessor :authorizationIndicator - def initialize(transId = nil, refTransId = nil, splitTenderId = nil, submitTimeUTC = nil, submitTimeLocal = nil, transactionType = nil, transactionStatus = nil, responseCode = nil, responseReasonCode = nil, subscription = nil, responseReasonDescription = nil, authCode = nil, aVSResponse = nil, cardCodeResponse = nil, cAVVResponse = nil, fDSFilterAction = nil, fDSFilters = nil, batch = nil, order = nil, requestedAmount = nil, authAmount = nil, settleAmount = nil, tax = nil, shipping = nil, duty = nil, lineItems = nil, prepaidBalanceRemaining = nil, taxExempt = nil, payment = nil, customer = nil, billTo = nil, shipTo = nil, recurringBilling = nil, customerIP = nil, product = nil, marketType = nil, mobileDeviceId = nil, returnedItems = nil, solution = nil, emvDetails = nil, profile = nil, surcharge = nil, employeeId = nil, tip = nil, otherTax= nil, shipFrom = nil) + def initialize(transId = nil, refTransId = nil, splitTenderId = nil, submitTimeUTC = nil, submitTimeLocal = nil, transactionType = nil, transactionStatus = nil, responseCode = nil, responseReasonCode = nil, subscription = nil, responseReasonDescription = nil, authCode = nil, aVSResponse = nil, cardCodeResponse = nil, cAVVResponse = nil, fDSFilterAction = nil, fDSFilters = nil, batch = nil, order = nil, requestedAmount = nil, authAmount = nil, settleAmount = nil, tax = nil, shipping = nil, duty = nil, lineItems = nil, prepaidBalanceRemaining = nil, taxExempt = nil, payment = nil, customer = nil, billTo = nil, shipTo = nil, recurringBilling = nil, customerIP = nil, product = nil, marketType = nil, mobileDeviceId = nil, returnedItems = nil, solution = nil, emvDetails = nil, profile = nil, surcharge = nil, employeeId = nil, tip = nil, otherTax= nil, shipFrom = nil, networkTransId = nil, originalNetworkTransId = nil, originalAuthAmount = nil, authorizationIndicator = nil) @transId = transId @refTransId = refTransId @splitTenderId = splitTenderId @@ -2368,6 +2401,10 @@ def initialize(transId = nil, refTransId = nil, splitTenderId = nil, submitTimeU @tip = tip @otherTax = otherTax @shipFrom = shipFrom + @networkTransId = networkTransId + @originalNetworkTransId = originalNetworkTransId + @originalAuthAmount = originalAuthAmount + @authorizationIndicator = authorizationIndicator end end @@ -2895,6 +2932,12 @@ class BankAccountTypeEnum < ::String Savings = BankAccountTypeEnum.new("savings") end + # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}authIndicatorEnum + class AuthIndicatorEnum < ::String + Pre = AuthIndicatorEnum.new("pre") + Final = AuthIndicatorEnum.new("final") + end + # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}echeckTypeEnum class EcheckTypeEnum < ::String ARC = EcheckTypeEnum.new("ARC") @@ -3073,6 +3116,8 @@ class SettingNameEnum < ::String TestRequest = SettingNameEnum.new("testRequest") TypeEmailReceipt = SettingNameEnum.new("typeEmailReceipt") HostedProfilePaymentOptions = SettingNameEnum.new("hostedProfilePaymentOptions") + HostedProfileSaveButtonText = SettingNameEnum.new("hostedProfileSaveButtonText") + HostedPaymentVisaCheckoutOptions = SettingNameEnum.new("hostedPaymentVisaCheckoutOptions") end # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}ARBGetSubscriptionListSearchTypeEnum @@ -4613,6 +4658,7 @@ def initialize(customerProfileSummaryType = nil, paymentSimpleType = nil, accoun # subsequentAuthInformation - SubsequentAuthInformation # otherTax - OtherTaxType # shipFrom - NameAndAddressType + # authorizationIndicatorType - AuthorizationIndicatorType class TransactionRequestType include ROXML @@ -4650,8 +4696,9 @@ class TransactionRequestType xml_accessor :subsequentAuthInformation, as: SubsequentAuthInformation xml_accessor :otherTax, as: OtherTaxType xml_accessor :shipFrom, as: NameAndAddressType + xml_accessor :authorizationIndicatorType, as: AuthorizationIndicatorType - def initialize(transactionType = nil, amount = nil, currencyCode = nil, payment = nil, profile = nil, solution = nil, callId = nil, authCode = nil, refTransId = nil, splitTenderId = nil, order = nil, lineItems = nil, tax = nil, duty = nil, shipping = nil, taxExempt = nil, poNumber = nil, customer = nil, billTo = nil, shipTo = nil, customerIP = nil, cardholderAuthentication = nil, retail = nil, transactionSettings = nil, userFields = nil, surcharge = nil, merchantDescriptor = nil, subMerchant = nil, tip = nil, employeeId = nil, processingOptions = nil, subsequentAuthInformation= nil, otherTax = nil, shipFrom = nil) + def initialize(transactionType = nil, amount = nil, currencyCode = nil, payment = nil, profile = nil, solution = nil, callId = nil, authCode = nil, refTransId = nil, splitTenderId = nil, order = nil, lineItems = nil, tax = nil, duty = nil, shipping = nil, taxExempt = nil, poNumber = nil, customer = nil, billTo = nil, shipTo = nil, customerIP = nil, cardholderAuthentication = nil, retail = nil, transactionSettings = nil, userFields = nil, surcharge = nil, merchantDescriptor = nil, subMerchant = nil, tip = nil, employeeId = nil, processingOptions = nil, subsequentAuthInformation= nil, otherTax = nil, shipFrom = nil, authorizationIndicatorType = nil) @transactionType = transactionType @amount = amount @currencyCode = currencyCode @@ -4686,6 +4733,7 @@ def initialize(transactionType = nil, amount = nil, currencyCode = nil, payment @subsequentAuthInformation= subsequentAuthInformation @otherTax = otherTax @shipFrom = shipFrom + @authorizationIndicatorType = authorizationIndicatorType end end @@ -4734,6 +4782,8 @@ def initialize(refId = nil, messages = nil, sessionToken = nil, transactionRespo # customerProfileId - SOAP::SOAPInt # billTo - CustomerAddressType # payment - PaymentMaskedType + # originalNetworkTransId - SOAP::SOAPString + # originalAuthAmount - SOAP::SOAPDecimal class CustomerPaymentProfileListItemType include ROXML xml_accessor :defaultPaymentProfile @@ -4741,13 +4791,18 @@ class CustomerPaymentProfileListItemType xml_accessor :customerProfileId xml_accessor :billTo, as: CustomerAddressType xml_accessor :payment, as: PaymentMaskedType + xml_accessor :originalNetworkTransId + xml_accessor :originalAuthAmount + - def initialize(customerPaymentProfileId = nil, customerProfileId = nil, billTo = nil, payment = nil, defaultPaymentProfile = nil) + def initialize(customerPaymentProfileId = nil, customerProfileId = nil, billTo = nil, payment = nil, defaultPaymentProfile = nil, originalNetworkTransId = nil, originalAuthAmount = nil) @customerPaymentProfileId = customerPaymentProfileId @customerProfileId = customerProfileId @billTo = billTo @payment = payment @defaultPaymentProfile = defaultPaymentProfile + @originalNetworkTransId = originalNetworkTransId + @originalAuthAmount = originalAuthAmount end end @@ -5211,6 +5266,7 @@ class PaymentMethodsTypeEnum < ::String VisaCheckout = PaymentMethodsTypeEnum.new("VisaCheckout") ApplePay = PaymentMethodsTypeEnum.new("ApplePay") AndroidPay = PaymentMethodsTypeEnum.new("AndroidPay") + GooglePay = PaymentMethodsTypeEnum.new("GooglePay") end # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}ArrayOfPaymentMethod From e799702ec3295dfc5acec405ca0cc48498e811e3 Mon Sep 17 00:00:00 2001 From: Gabriel Broadwin Nongsiej Date: Wed, 24 Mar 2021 18:07:47 +0530 Subject: [PATCH 02/13] Fixing issue --- lib/authorize_net/api/schema.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/authorize_net/api/schema.rb b/lib/authorize_net/api/schema.rb index 44d05c0..648be36 100644 --- a/lib/authorize_net/api/schema.rb +++ b/lib/authorize_net/api/schema.rb @@ -1598,7 +1598,7 @@ class SubsequentAuthInformation def initialize(originalNetworkTransId = nil, originalAuthAmount = nil, reason = nil) @originalNetworkTransId = originalNetworkTransId @reason = reason - + @originalAuthAmount = originalAuthAmount end end From 5a3f656287456ff81585257e3cb281823c437c68 Mon Sep 17 00:00:00 2001 From: Gabriel Broadwin Nongsiej Date: Wed, 24 Mar 2021 20:57:30 +0530 Subject: [PATCH 03/13] Update to fix Travis CI --- .travis.yml | 8 +- authorizenet.gemspec | 4 +- lib/authorize_net/api/schema.rb | 133 ++++++++++++++++---------------- 3 files changed, 76 insertions(+), 69 deletions(-) diff --git a/.travis.yml b/.travis.yml index 2e792bf..8a68163 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,9 +4,13 @@ sudo: false rvm: - - 2.2 - - 2.3 + # RETIRING + # - 2.2 + # - 2.3 - 2.4 + - 2.5 + - 2.6 + - 2.7 gemfile: - gemfiles/rails_42.gemfile diff --git a/authorizenet.gemspec b/authorizenet.gemspec index 9aa47dd..93d6261 100644 --- a/authorizenet.gemspec +++ b/authorizenet.gemspec @@ -11,10 +11,10 @@ Gem::Specification.new do |s| s.homepage = "https://github.com/AuthorizeNet/sdk-ruby" s.license = "https://github.com/AuthorizeNet/sdk-ruby/blob/master/LICENSE.txt" - s.required_ruby_version = '>= 2.2.2' + s.required_ruby_version = '>= 2.4.0' s.required_rubygems_version = '>= 1.3.6' - s.add_runtime_dependency 'activesupport', '>= 4.2.6' + s.add_runtime_dependency 'activesupport', '>= 5.2.4.5' s.add_runtime_dependency 'nokogiri', '~> 1.6', '>= 1.6.4' s.add_runtime_dependency 'roxml', '>= 3.3.1' diff --git a/lib/authorize_net/api/schema.rb b/lib/authorize_net/api/schema.rb index 648be36..7f486b6 100644 --- a/lib/authorize_net/api/schema.rb +++ b/lib/authorize_net/api/schema.rb @@ -1191,12 +1191,79 @@ def initialize(customerType = nil, billTo = nil) end end + # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}profileTransAmountType + # amount - SOAP::SOAPDecimal + # tax - ExtendedAmountType + # shipping - ExtendedAmountType + # duty - ExtendedAmountType + # lineItems - LineItemType + class ProfileTransAmountType + include ROXML + xml_accessor :amount + xml_accessor :tax + xml_accessor :shipping + xml_accessor :duty + xml_accessor :lineItems + + def initialize(amount = nil, tax = nil, shipping = nil, duty = nil, lineItems = []) + @amount = amount + @tax = tax + @shipping = shipping + @duty = duty + @lineItems = lineItems + end + end + + # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}merchantInitTransReasonEnum + class MerchantInitTransReasonEnum < ::String + resubmission = MerchantInitTransReasonEnum.new("resubmission") + delayedCharge = MerchantInitTransReasonEnum.new("delayedCharge") + reauthorization = MerchantInitTransReasonEnum.new("reauthorization") + noShow = MerchantInitTransReasonEnum.new("noShow") + end + + # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}extendedAmountType + # amount - SOAP::SOAPDecimal + # name - SOAP::SOAPString + # description - SOAP::SOAPString + class ExtendedAmountType + include ROXML + xml_accessor :amount, as: BigDecimal + xml_accessor :name + xml_accessor :description + + def initialize(amount = nil, name = nil, description = nil) + @amount = amount + @name = name + @description = description + end + end + + #{AnetApi/xml/v1/schema/AnetApiSchema.xsd}subsequentAuthInformation + # originalNetworkTransId - SOAP::SOAPString + # originalAuthAmount - SOAP::SOAPDecimal + # reason - MerchantInitTransReasonEnum + class SubsequentAuthInformation + include ROXML + xml_accessor :originalNetworkTransId + xml_accessor :originalAuthAmount + xml_accessor :reason #, as: MerchantInitTransReasonEnum + + def initialize(originalNetworkTransId = nil, originalAuthAmount = nil, reason = nil) + @originalNetworkTransId = originalNetworkTransId + @reason = reason + @originalAuthAmount = originalAuthAmount + end + end + # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}customerPaymentProfileType # customerType - CustomerTypeEnum # billTo - CustomerAddressType # payment - PaymentType # driversLicense - DriversLicenseType # taxId - SOAP::SOAPString + # defaultPaymentProfile - SOAP::SOAPBoolean + # subsequentAuthInformation - SubsequentAuthInformation class CustomerPaymentProfileType include ROXML xml_accessor :customerType @@ -1407,23 +1474,7 @@ def initialize(merchantCustomerId = nil, description = nil, email = nil, custome @profileType = profileType end end - - # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}extendedAmountType - # amount - SOAP::SOAPDecimal - # name - SOAP::SOAPString - # description - SOAP::SOAPString - class ExtendedAmountType - include ROXML - xml_accessor :amount, as: BigDecimal - xml_accessor :name - xml_accessor :description - - def initialize(amount = nil, name = nil, description = nil) - @amount = amount - @name = name - @description = description - end - end + # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}lineItemType # itemId - SOAP::SOAPString @@ -1522,37 +1573,6 @@ def initialize(lineItems = []) end end - # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}profileTransAmountType - # amount - SOAP::SOAPDecimal - # tax - ExtendedAmountType - # shipping - ExtendedAmountType - # duty - ExtendedAmountType - # lineItems - LineItemType - class ProfileTransAmountType - include ROXML - xml_accessor :amount - xml_accessor :tax - xml_accessor :shipping - xml_accessor :duty - xml_accessor :lineItems - - def initialize(amount = nil, tax = nil, shipping = nil, duty = nil, lineItems = []) - @amount = amount - @tax = tax - @shipping = shipping - @duty = duty - @lineItems = lineItems - end - end - - # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}merchantInitTransReasonEnum - class MerchantInitTransReasonEnum < ::String - resubmission = MerchantInitTransReasonEnum.new("resubmission") - delayedCharge = MerchantInitTransReasonEnum.new("delayedCharge") - reauthorization = MerchantInitTransReasonEnum.new("reauthorization") - noShow = MerchantInitTransReasonEnum.new("noShow") - end - #{AnetApi/xml/v1/schema/AnetApiSchema.xsd}processingOptions # isFirstRecurringPayment - SOAP::SOAPBoolean # isFirstSubsequentAuth - SOAP::SOAPBoolean @@ -1585,23 +1605,6 @@ def initialize(authorizationIndicator = nil) end end - #{AnetApi/xml/v1/schema/AnetApiSchema.xsd}subsequentAuthInformation - # originalNetworkTransId - SOAP::SOAPString - # originalAuthAmount - SOAP::SOAPDecimal - # reason - MerchantInitTransReasonEnum - class SubsequentAuthInformation - include ROXML - xml_accessor :originalNetworkTransId - xml_accessor :originalAuthAmount - xml_accessor :reason #, as: MerchantInitTransReasonEnum - - def initialize(originalNetworkTransId = nil, originalAuthAmount = nil, reason = nil) - @originalNetworkTransId = originalNetworkTransId - @reason = reason - @originalAuthAmount = originalAuthAmount - end - end - # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}profileTransOrderType # amount - SOAP::SOAPDecimal # tax - ExtendedAmountType From 594a9b2408286a987a5923ce73a4ef9524fa2311 Mon Sep 17 00:00:00 2001 From: Gabriel Broadwin Nongsiej Date: Wed, 24 Mar 2021 21:34:09 +0530 Subject: [PATCH 04/13] Updating rake and rspec --- authorizenet.gemspec | 4 ++-- lib/authorize_net/api/schema.rb | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/authorizenet.gemspec b/authorizenet.gemspec index 93d6261..76bb3fd 100644 --- a/authorizenet.gemspec +++ b/authorizenet.gemspec @@ -19,8 +19,8 @@ Gem::Specification.new do |s| s.add_runtime_dependency 'roxml', '>= 3.3.1' s.add_development_dependency('appraisal') - s.add_development_dependency 'rake', '~> 0.8', '>= 0.8.7' - s.add_development_dependency 'rspec', '~> 2.1' + s.add_development_dependency 'rake', '~> 12.3', '>= 12.3.3' + s.add_development_dependency 'rspec', '~> 3.9.0' s.add_development_dependency 'simplecov' s.add_development_dependency 'scrutinizer-ocular' end diff --git a/lib/authorize_net/api/schema.rb b/lib/authorize_net/api/schema.rb index 7f486b6..f771bf4 100644 --- a/lib/authorize_net/api/schema.rb +++ b/lib/authorize_net/api/schema.rb @@ -1593,6 +1593,12 @@ def initialize(isFirstRecurringPayment = nil, isFirstSubsequentAuth = nil, isSub end end + + # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}authIndicatorEnum + class AuthIndicatorEnum < ::String + Pre = AuthIndicatorEnum.new("pre") + Final = AuthIndicatorEnum.new("final") + end #{AnetApi/xml/v1/schema/AnetApiSchema.xsd}authorizationIndicatorType # authorizationIndicator - AuthIndicatorEnum @@ -2935,12 +2941,6 @@ class BankAccountTypeEnum < ::String Savings = BankAccountTypeEnum.new("savings") end - # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}authIndicatorEnum - class AuthIndicatorEnum < ::String - Pre = AuthIndicatorEnum.new("pre") - Final = AuthIndicatorEnum.new("final") - end - # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}echeckTypeEnum class EcheckTypeEnum < ::String ARC = EcheckTypeEnum.new("ARC") From f37253d3599b27ecef24eac29117c670a5eaf03a Mon Sep 17 00:00:00 2001 From: Gabriel Broadwin Nongsiej Date: Wed, 24 Mar 2021 21:49:51 +0530 Subject: [PATCH 05/13] Commenting out enum as type --- lib/authorize_net/api/schema.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/authorize_net/api/schema.rb b/lib/authorize_net/api/schema.rb index f771bf4..85c608a 100644 --- a/lib/authorize_net/api/schema.rb +++ b/lib/authorize_net/api/schema.rb @@ -1604,7 +1604,7 @@ class AuthIndicatorEnum < ::String # authorizationIndicator - AuthIndicatorEnum class AuthorizationIndicatorType include ROXML - xml_accessor :authorizationIndicator, as: AuthIndicatorEnum + xml_accessor :authorizationIndicator #, as: AuthIndicatorEnum def initialize(authorizationIndicator = nil) @authorizationIndicator = authorizationIndicator From 163566520f7eb6ca0dba196053194132a195c71c Mon Sep 17 00:00:00 2001 From: Gabriel Broadwin Nongsiej Date: Thu, 25 Mar 2021 10:52:43 +0530 Subject: [PATCH 06/13] Testing on Ruby v3.0.0 --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 8a68163..394fd74 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,6 +11,7 @@ rvm: - 2.5 - 2.6 - 2.7 + - 3.0 gemfile: - gemfiles/rails_42.gemfile From c0e95ab3cc67a00a884ed70305bed00557d725db Mon Sep 17 00:00:00 2001 From: Gabriel Broadwin Nongsiej Date: Thu, 25 Mar 2021 11:58:16 +0530 Subject: [PATCH 07/13] Fixing rexml dependency for Ruby v3.0.0 --- .travis.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.travis.yml b/.travis.yml index 394fd74..2e9c627 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,9 +22,14 @@ gemfile: matrix: allow_failures: - gemfile: gemfiles/rails_42.gemfile + include: + - rvm: 3.0 + env: REXML_VERSION=3.2.* before_script: - git submodule update --remote --recursive + - echo "$REXML_VERSION" + - if [[ "$REXML_VERSION" != "" ]]; then gem install rexml -v "$REXML_VERSION"; fi script: - bundle exec rake spec:testrunner From 61952bb113c7797066fac6796456b98d848b59af Mon Sep 17 00:00:00 2001 From: Gabriel Broadwin Nongsiej Date: Thu, 25 Mar 2021 13:38:57 +0530 Subject: [PATCH 08/13] Testing Ruby v3.0.0 --- .travis.yml | 28 ++++++++++++++-------------- authorizenet.gemspec | 1 + 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/.travis.yml b/.travis.yml index 2e9c627..4b7bf2c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,33 +3,33 @@ language: ruby sudo: false -rvm: +# rvm: # RETIRING # - 2.2 # - 2.3 - - 2.4 - - 2.5 - - 2.6 - - 2.7 - - 3.0 + # - 2.4 + # - 2.5 + # - 2.6 + # - 2.7 + # - 3.0 gemfile: - - gemfiles/rails_42.gemfile - - gemfiles/rails_50.gemfile - - gemfiles/rails_51.gemfile + # - gemfiles/rails_42.gemfile + # - gemfiles/rails_50.gemfile + # - gemfiles/rails_51.gemfile - gemfiles/rails_52.gemfile matrix: - allow_failures: - - gemfile: gemfiles/rails_42.gemfile + # allow_failures: + # - gemfile: gemfiles/rails_42.gemfile include: - - rvm: 3.0 - env: REXML_VERSION=3.2.* + - rvm: 3.0 + env: REXML_VERSION=3.2.* before_script: - - git submodule update --remote --recursive - echo "$REXML_VERSION" - if [[ "$REXML_VERSION" != "" ]]; then gem install rexml -v "$REXML_VERSION"; fi + - git submodule update --remote --recursive script: - bundle exec rake spec:testrunner diff --git a/authorizenet.gemspec b/authorizenet.gemspec index 76bb3fd..23af6a7 100644 --- a/authorizenet.gemspec +++ b/authorizenet.gemspec @@ -17,6 +17,7 @@ Gem::Specification.new do |s| s.add_runtime_dependency 'activesupport', '>= 5.2.4.5' s.add_runtime_dependency 'nokogiri', '~> 1.6', '>= 1.6.4' s.add_runtime_dependency 'roxml', '>= 3.3.1' + s.add_runtime_dependency 'rexml', '>= 3.2.0' s.add_development_dependency('appraisal') s.add_development_dependency 'rake', '~> 12.3', '>= 12.3.3' From 66aea7840fec3df415b5eb7e0f0402602722242a Mon Sep 17 00:00:00 2001 From: Gabriel Broadwin Nongsiej Date: Thu, 25 Mar 2021 13:43:08 +0530 Subject: [PATCH 09/13] Hardcoded version of rexml in Travis --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 4b7bf2c..a8f5dbb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,7 +24,7 @@ matrix: # - gemfile: gemfiles/rails_42.gemfile include: - rvm: 3.0 - env: REXML_VERSION=3.2.* + env: REXML_VERSION=3.2.0 before_script: - echo "$REXML_VERSION" From 328d587fd7582700f020e3177fb52d328ac15855 Mon Sep 17 00:00:00 2001 From: Gabriel Broadwin Nongsiej Date: Thu, 25 Mar 2021 13:49:07 +0530 Subject: [PATCH 10/13] Testing without Travis variables --- .travis.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index a8f5dbb..108d21a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,7 +11,7 @@ sudo: # - 2.5 # - 2.6 # - 2.7 - # - 3.0 + - 3.0 gemfile: # - gemfiles/rails_42.gemfile @@ -22,13 +22,13 @@ gemfile: matrix: # allow_failures: # - gemfile: gemfiles/rails_42.gemfile - include: - - rvm: 3.0 - env: REXML_VERSION=3.2.0 + # include: + # - rvm: 3.0 + # env: REXML_VERSION=3.2.0 before_script: - - echo "$REXML_VERSION" - - if [[ "$REXML_VERSION" != "" ]]; then gem install rexml -v "$REXML_VERSION"; fi + # - echo "$REXML_VERSION" + # - if [[ "$REXML_VERSION" != "" ]]; then gem install rexml -v "$REXML_VERSION"; fi - git submodule update --remote --recursive script: From ed22f279dfbe07a5d9c9e885cf8154c22871f98b Mon Sep 17 00:00:00 2001 From: Gabriel Broadwin Nongsiej Date: Thu, 25 Mar 2021 13:51:17 +0530 Subject: [PATCH 11/13] Corrected Travis file --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 108d21a..2043911 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,7 +3,7 @@ language: ruby sudo: false -# rvm: +rvm: # RETIRING # - 2.2 # - 2.3 @@ -19,7 +19,7 @@ gemfile: # - gemfiles/rails_51.gemfile - gemfiles/rails_52.gemfile -matrix: +# matrix: # allow_failures: # - gemfile: gemfiles/rails_42.gemfile # include: From be27bc01004924a86360051837474f6750d7eff9 Mon Sep 17 00:00:00 2001 From: Gabriel Broadwin Nongsiej Date: Thu, 25 Mar 2021 13:56:20 +0530 Subject: [PATCH 12/13] Final change to Travis file --- .travis.yml | 29 +++++++++++------------------ 1 file changed, 11 insertions(+), 18 deletions(-) diff --git a/.travis.yml b/.travis.yml index 2043911..5cafe28 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,31 +4,24 @@ sudo: false rvm: - # RETIRING - # - 2.2 - # - 2.3 - # - 2.4 - # - 2.5 - # - 2.6 - # - 2.7 + # RETIRING 2.2 and 2.3 + - 2.4 + - 2.5 + - 2.6 + - 2.7 - 3.0 gemfile: - # - gemfiles/rails_42.gemfile - # - gemfiles/rails_50.gemfile - # - gemfiles/rails_51.gemfile + - gemfiles/rails_42.gemfile + - gemfiles/rails_50.gemfile + - gemfiles/rails_51.gemfile - gemfiles/rails_52.gemfile -# matrix: - # allow_failures: - # - gemfile: gemfiles/rails_42.gemfile - # include: - # - rvm: 3.0 - # env: REXML_VERSION=3.2.0 +matrix: + allow_failures: + - gemfile: gemfiles/rails_42.gemfile before_script: - # - echo "$REXML_VERSION" - # - if [[ "$REXML_VERSION" != "" ]]; then gem install rexml -v "$REXML_VERSION"; fi - git submodule update --remote --recursive script: From bf3a153a30c9a29d318e5e9c6fc81b3de083e0f8 Mon Sep 17 00:00:00 2001 From: Gabriel Broadwin Nongsiej Date: Wed, 31 Mar 2021 20:01:12 +0530 Subject: [PATCH 13/13] Upgrade to new version --- authorizenet.gemspec | 4 ++-- lib/authorize_net/api/constants.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/authorizenet.gemspec b/authorizenet.gemspec index 23af6a7..5dbec85 100644 --- a/authorizenet.gemspec +++ b/authorizenet.gemspec @@ -1,8 +1,8 @@ Gem::Specification.new do |s| s.name = "authorizenet" - s.version = "2.0.0" + s.version = "2.0.1" s.platform = Gem::Platform::RUBY - s.date = "2019-03-05" + s.date = "2021-03-31" s.summary = "Authorize.Net Payments SDK" s.description = "Authorize.Net SDK includes standard payments, recurring billing, and customer profiles" s.authors = ["Authorize.Net"] diff --git a/lib/authorize_net/api/constants.yml b/lib/authorize_net/api/constants.yml index 05dbb08..7e7a6c7 100644 --- a/lib/authorize_net/api/constants.yml +++ b/lib/authorize_net/api/constants.yml @@ -1 +1 @@ -clientId: sdk-ruby-2.0.0 +clientId: sdk-ruby-2.0.1