Skip to content

Commit b08fc85

Browse files
committed
Fixnum class is deprecated as of Ruby 2.4
1 parent 3585a70 commit b08fc85

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

lib/authorize_net/api/schema.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2532,7 +2532,7 @@ def initialize(merchantCustomerId = nil, email = nil, customerProfileId = nil, d
25322532
# cardCode - (any)
25332533
class PaymentProfile
25342534
include ROXML
2535-
xml_accessor :paymentProfileId, :as => Fixnum
2535+
xml_accessor :paymentProfileId, :as => Integer
25362536
xml_accessor :cardCode
25372537

25382538
def initialize(paymentProfileId = nil, cardCode = nil)
@@ -2549,9 +2549,9 @@ def initialize(paymentProfileId = nil, cardCode = nil)
25492549
class CustomerProfilePaymentType
25502550
include ROXML
25512551
xml_accessor :createProfile
2552-
xml_accessor :customerProfileId, :as => Fixnum
2552+
xml_accessor :customerProfileId, :as => Integer
25532553
xml_accessor :paymentProfile, :as => PaymentProfile
2554-
xml_accessor :shippingProfileId, :as => Fixnum
2554+
xml_accessor :shippingProfileId, :as => Integer
25552555

25562556
def initialize(createProfile = nil, customerProfileId = nil, paymentProfile = nil, shippingProfileId = nil)
25572557
@createProfile = createProfile

lib/authorize_net/sim/transaction.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ class Transaction < AuthorizeNet::KeyValueTransaction
3333
# +options+:: A hash of options. See below for values.
3434
#
3535
# Options
36-
# +sequence+:: The sequence number of the transaction as a string or Fixnum. This is usually something like an invoice number. If none is provided, the SDK generates one at random.
37-
# +timestamp+:: The time the transaction was initiated as a string or Fixnum. This needs to be within 15 minutes of when the gateway receives the transaction. If no value is provided, the SDK defaults it to Time.now().
36+
# +sequence+:: The sequence number of the transaction as a string or Integer. This is usually something like an invoice number. If none is provided, the SDK generates one at random.
37+
# +timestamp+:: The time the transaction was initiated as a string or Integer. This needs to be within 15 minutes of when the gateway receives the transaction. If no value is provided, the SDK defaults it to Time.now().
3838
# +test+:: A boolean indicating if the transaction should be run in test mode or not (defaults to false).
3939
# +hosted_payment_form+:: A boolean indicating if the transaction should use a hosted payment form (defaults to false).
4040
# +relay_response+:: A boolean indicating if the transaction should use the relay response feature to return a receipt to the customer (defaults to true). Direct Post Method requires using a relay response.
@@ -135,4 +135,4 @@ def run
135135

136136
end
137137

138-
end
138+
end

0 commit comments

Comments
 (0)