authorizenet 1.8.5.1 → 1.8.5.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1eefa2bcecbea6cc2fac2131d4637943936a3026
4
- data.tar.gz: 97fe56a82cbc2f8310b8c4104cf50fcac7e30f0a
3
+ metadata.gz: 6a1d8606f1e01c9c6da765f948acb7b1a829a90f
4
+ data.tar.gz: ff72a9d84c4e7de47bdcc41d9e7782bdeccb6c3e
5
5
  SHA512:
6
- metadata.gz: f7fac407416a6550b1771287e2ad99fecddc3beb6c3188df17932f5c3db6dbdab377dc1559985262b90eada1d58548f0e90cfaf90d9162d55d5b2438789df5cc
7
- data.tar.gz: 60522bbcfea122b727c20083af5b3b201b3f5b28eeb480b367c2eb68aba17cc7fecd8a8e53ea3101d0f91f8b28d53b3b23d789658b3f716df10dcccfaf095c78
6
+ metadata.gz: 13b807728b1066d41c55ead278e0837f628b783e954f598e3e9c79236a7e6b68cf22705fced2079ef6f0c129d2463aaba1121564a5a6ee8a7741f8e71548122d
7
+ data.tar.gz: 1384f94141e810358e5c2b9d615d0592a1b29130e08d946910c173aad9bf9a17bd7217da21ba1b5db2df1826b795472e06f9d47d4254539caa9bc7f8b6c5a0f1
@@ -74,7 +74,7 @@ module AuthorizeNet::API
74
74
 
75
75
  def send_request(xml)
76
76
  url = URI.parse(@gateway)
77
-
77
+ puts xml
78
78
  httpRequest = Net::HTTP::Post.new(url.path)
79
79
  httpRequest.content_type = 'text/xml'
80
80
  httpRequest.body = xml
@@ -90,6 +90,7 @@ module AuthorizeNet::API
90
90
  end
91
91
 
92
92
  def deserialize(xml,responseClass)
93
+ puts xml
93
94
  responseClass.from_xml(xml)
94
95
  end
95
96
  end
@@ -6,13 +6,11 @@ module AuthorizeNet::API
6
6
  class ArrayOfLong < ::Array
7
7
  end
8
8
 
9
+
9
10
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}ArrayOfNumericString
10
- class ArrayOfNumericString
11
+ class NumericStringsType
11
12
  include ROXML
12
- xml_accessor :numericStrings, :as => [Fixnum]
13
- def initialize(numericStrings = [])
14
- @numericStrings = numericStrings
15
- end
13
+ xml_reader :numericString, :as => []
16
14
  end
17
15
 
18
16
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}ArrayOfString
@@ -874,7 +872,7 @@ end
874
872
  end
875
873
  end
876
874
 
877
- xml_accessor :interval
875
+ xml_accessor :interval, :as => Interval
878
876
  xml_accessor :startDate
879
877
  xml_accessor :totalOccurrences
880
878
  xml_accessor :trialOccurrences
@@ -900,14 +898,14 @@ end
900
898
  class ARBSubscriptionType
901
899
  include ROXML
902
900
  xml_accessor :name
903
- xml_accessor :paymentSchedule
901
+ xml_accessor :paymentSchedule, :as => PaymentScheduleType
904
902
  xml_accessor :amount
905
903
  xml_accessor :trialAmount
906
- xml_accessor :payment
907
- xml_accessor :order
908
- xml_accessor :customer
909
- xml_accessor :billTo
910
- xml_accessor :shipTo
904
+ xml_accessor :payment, :as => PaymentType
905
+ xml_accessor :order, :as => OrderType
906
+ xml_accessor :customer, :as => CustomerType
907
+ xml_accessor :billTo, :as => NameAndAddressType
908
+ xml_accessor :shipTo, :as => NameAndAddressType
911
909
 
912
910
  def initialize(name = nil, paymentSchedule = nil, amount = nil, trialAmount = nil, payment = nil, order = nil, customer = nil, billTo = nil, shipTo = nil)
913
911
  @name = name
@@ -1039,9 +1037,9 @@ end
1039
1037
  class CustomerPaymentProfileType
1040
1038
  include ROXML
1041
1039
  xml_accessor :customerType
1042
- xml_accessor :billTo
1043
- xml_accessor :payment
1044
- xml_accessor :driversLicense
1040
+ xml_accessor :billTo, :as => CustomerAddressType
1041
+ xml_accessor :payment, :as => PaymentType
1042
+ xml_accessor :driversLicense, :as => DriversLicenseType
1045
1043
  xml_accessor :taxId
1046
1044
 
1047
1045
  def initialize(customerType = nil, billTo = nil, payment = nil, driversLicense = nil, taxId = nil)
@@ -1063,9 +1061,9 @@ end
1063
1061
  class CustomerPaymentProfileExType
1064
1062
  include ROXML
1065
1063
  xml_accessor :customerType
1066
- xml_accessor :billTo
1067
- xml_accessor :payment
1068
- xml_accessor :driversLicense
1064
+ xml_accessor :billTo, :as => CustomerAddressType
1065
+ xml_accessor :payment, :as => PaymentType
1066
+ xml_accessor :driversLicense, :as => DriversLicenseType
1069
1067
  xml_accessor :taxId
1070
1068
  xml_accessor :customerPaymentProfileId
1071
1069
 
@@ -1981,7 +1979,7 @@ end
1981
1979
  end
1982
1980
  end
1983
1981
 
1984
- xml_accessor :messages, :as => [Message]
1982
+ xml_accessor :messages, :as => Messages
1985
1983
 
1986
1984
  def initialize(messages = [])
1987
1985
  @messages = messages
@@ -2194,8 +2192,8 @@ end
2194
2192
  include ROXML
2195
2193
  xml_accessor :messages, :as => MessagesType
2196
2194
  xml_accessor :customerProfileId
2197
- xml_accessor :customerPaymentProfileIdList, :as => ArrayOfNumericString
2198
- xml_accessor :customerShippingAddressIdList, :as => ArrayOfNumericString
2195
+ xml_accessor :customerPaymentProfileIdList, :as => NumericStringsType
2196
+ xml_accessor :customerShippingAddressIdList, :as => NumericStringsType
2199
2197
 
2200
2198
  def initialize(messages = nil, customerProfileId = nil, customerPaymentProfileIdList = nil, customerShippingAddressIdList = nil)
2201
2199
  @messages = messages
@@ -2613,9 +2611,9 @@ end
2613
2611
  # subscription - ARBSubscriptionType
2614
2612
  class ARBCreateSubscriptionRequest
2615
2613
  include ROXML
2616
- xml_accessor :merchantAuthentication
2614
+ xml_accessor :merchantAuthentication, :as => MerchantAuthenticationType
2617
2615
  xml_accessor :refId
2618
- xml_accessor :subscription
2616
+ xml_accessor :subscription, :as => ARBSubscriptionType
2619
2617
 
2620
2618
  def initialize(merchantAuthentication = nil, refId = nil, subscription = nil)
2621
2619
  @merchantAuthentication = merchantAuthentication
@@ -2654,7 +2652,7 @@ end
2654
2652
  xml_accessor :merchantAuthentication
2655
2653
  xml_accessor :refId
2656
2654
  xml_accessor :subscriptionId
2657
- xml_accessor :subscription
2655
+ xml_accessor :subscription, :as => ARBSubscriptionType
2658
2656
 
2659
2657
  def initialize(merchantAuthentication = nil, refId = nil, subscriptionId = nil, subscription = nil)
2660
2658
  @merchantAuthentication = merchantAuthentication
@@ -2757,11 +2755,11 @@ end
2757
2755
  # refId - SOAP::SOAPString
2758
2756
  # profile - CustomerProfileType
2759
2757
  # validationMode - ValidationModeEnum
2760
- class CreateCustomerProfileRequest
2758
+ class CreateCustomerProfileRequest
2761
2759
  include ROXML
2762
- xml_accessor :merchantAuthentication
2760
+ xml_accessor :merchantAuthentication, :as => MerchantAuthenticationType
2763
2761
  xml_accessor :refId
2764
- xml_accessor :profile
2762
+ xml_accessor :profile, :as => CustomerProfileType
2765
2763
  xml_accessor :validationMode
2766
2764
 
2767
2765
  def initialize(merchantAuthentication = nil, refId = nil, profile = nil, validationMode = nil)
@@ -2812,7 +2810,7 @@ end
2812
2810
  xml_accessor :merchantAuthentication
2813
2811
  xml_accessor :refId
2814
2812
  xml_accessor :customerProfileId
2815
- xml_accessor :paymentProfile
2813
+ xml_accessor :paymentProfile, :as => CustomerPaymentProfileType
2816
2814
  xml_accessor :validationMode
2817
2815
 
2818
2816
  def initialize(merchantAuthentication = nil, refId = nil, customerProfileId = nil, paymentProfile = nil, validationMode = nil)
@@ -2857,7 +2855,7 @@ end
2857
2855
  xml_accessor :merchantAuthentication
2858
2856
  xml_accessor :refId
2859
2857
  xml_accessor :customerProfileId
2860
- xml_accessor :address
2858
+ xml_accessor :address, :as => CustomerAddressType
2861
2859
 
2862
2860
  def initialize(merchantAuthentication = nil, refId = nil, customerProfileId = nil, address = nil)
2863
2861
  @merchantAuthentication = merchantAuthentication
@@ -2931,7 +2929,7 @@ end
2931
2929
  xml_accessor :refId
2932
2930
  xml_accessor :messages, :as => MessagesType
2933
2931
  xml_accessor :sessionToken
2934
- xml_accessor :profile
2932
+ xml_accessor :profile, :as => CustomerProfileMaskedType
2935
2933
 
2936
2934
  def initialize(refId = nil, messages = nil, sessionToken = nil, profile = nil)
2937
2935
  @refId = refId
@@ -3029,7 +3027,7 @@ end
3029
3027
  include ROXML
3030
3028
  xml_accessor :merchantAuthentication
3031
3029
  xml_accessor :refId
3032
- xml_accessor :profile
3030
+ xml_accessor :profile, :as => CustomerProfileExType
3033
3031
 
3034
3032
  def initialize(merchantAuthentication = nil, refId = nil, profile = nil)
3035
3033
  @merchantAuthentication = merchantAuthentication
@@ -3066,7 +3064,7 @@ end
3066
3064
  xml_accessor :merchantAuthentication
3067
3065
  xml_accessor :refId
3068
3066
  xml_accessor :customerProfileId
3069
- xml_accessor :paymentProfile
3067
+ xml_accessor :paymentProfile, :as => CustomerPaymentProfileExType
3070
3068
  xml_accessor :validationMode
3071
3069
 
3072
3070
  def initialize(merchantAuthentication = nil, refId = nil, customerProfileId = nil, paymentProfile = nil, validationMode = nil)
@@ -3108,7 +3106,7 @@ end
3108
3106
  xml_accessor :merchantAuthentication
3109
3107
  xml_accessor :refId
3110
3108
  xml_accessor :customerProfileId
3111
- xml_accessor :address
3109
+ xml_accessor :address, :as => CustomerAddressExType
3112
3110
 
3113
3111
  def initialize(merchantAuthentication = nil, refId = nil, customerProfileId = nil, address = nil)
3114
3112
  @merchantAuthentication = merchantAuthentication
@@ -3359,7 +3357,7 @@ end
3359
3357
  xml_accessor :refId
3360
3358
  xml_accessor :messages, :as => MessagesType
3361
3359
  xml_accessor :sessionToken
3362
- xml_accessor :ids
3360
+ xml_accessor :ids, :as => NumericStringsType
3363
3361
 
3364
3362
  def initialize(refId = nil, messages = nil, sessionToken = nil, ids = nil)
3365
3363
  @refId = refId
@@ -3792,8 +3790,8 @@ end
3792
3790
  xml_accessor :merchantAuthentication
3793
3791
  xml_accessor :refId
3794
3792
  xml_accessor :searchType
3795
- xml_accessor :sorting
3796
- xml_accessor :paging
3793
+ xml_accessor :sorting, :as => ARBGetSubscriptionListSorting
3794
+ xml_accessor :paging, :as => Paging
3797
3795
 
3798
3796
  def initialize(merchantAuthentication = nil, refId = nil, searchType = nil, sorting = nil, paging = nil)
3799
3797
  @merchantAuthentication = merchantAuthentication
@@ -63,6 +63,14 @@ module AuthorizeNet::API
63
63
  make_request(request,GetCustomerProfileResponse,Type::API_GET_CUSTOMER_PROFILE)
64
64
  end
65
65
 
66
+
67
+ # This request enables you to retrieve all customer profile ids
68
+ #
69
+ # See spec/api_spec.rb for usage examples
70
+ def get_customer_profile_ids(request)
71
+ make_request(request,GetCustomerProfileIdsResponse,Type::API_GET_CUSTOMER_PROFILE_IDS)
72
+ end
73
+
66
74
  # This request enables you to update a customer profile
67
75
  #
68
76
  # See spec/api_spec.rb for usage examples
@@ -123,14 +131,14 @@ module AuthorizeNet::API
123
131
  #
124
132
  # See spec/api_spec.rb for usage examples
125
133
  def update_customer_shipping_profile(request)
126
- make_request(request,UpdateCustomerShippingAddressResponse,Type::API_UPDATE_CUSTOMER_SHIPPING_PPROFILE)
134
+ make_request(request,UpdateCustomerShippingAddressResponse,Type::API_UPDATE_CUSTOMER_SHIPPING_PROFILE)
127
135
  end
128
136
 
129
137
  # This request enables you to delete a customer shipping profile
130
138
  #
131
139
  # See spec/api_spec.rb for usage examples
132
140
  def delete_customer_shipping_profile(request)
133
- make_request(request,DeleteCustomerShippingAddressResponse,Type::API_DELETE_CUSTOMER_SHIPPING_PPROFILE)
141
+ make_request(request,DeleteCustomerShippingAddressResponse,Type::API_DELETE_CUSTOMER_SHIPPING_PROFILE)
134
142
  end
135
143
 
136
144
 
@@ -391,7 +391,7 @@ module AuthorizeNet::CIM
391
391
  # +options+:: An optional hash of options.
392
392
  #
393
393
  # Options:
394
- # +address_id+:: Takes either a String containing the ID of the an Address, or an Address object with the ID populated. Used as the shipping address for the payment transaction. Defaults to nil.
394
+ # +address_id+:: Takes either a String containing the ID of an Address, or an Address object with the ID populated. Used as the shipping address for the payment transaction. Defaults to nil.
395
395
  # +split_tender_id+:: A split tender transaction ID as a string. If the transaction is to be part of a split tender batch, this must be included. Defaults to nil.
396
396
  # +aim_options+:: A hash of AIM options to be included with the payment transaction. Since the payment transactions in CIM are just encapsulated AIM transactions, any field used by AIM can be set here. Defaults to nil.
397
397
  # +custom_fields+:: A hash of custom fields to pass along with the payment transaction. These fields will be stored with the AIM transaction generated by the CIM transaction. Defaults to nil.
@@ -430,7 +430,7 @@ module AuthorizeNet::CIM
430
430
  # +options+:: An optional hash of options.
431
431
  #
432
432
  # Options:
433
- # +address_id+:: Takes either a String containing the ID of the an Address, or an Address object with the ID populated. Used as the shipping address for the payment transaction. Defaults to nil.
433
+ # +address_id+:: Takes either a String containing the ID of an Address, or an Address object with the ID populated. Used as the shipping address for the payment transaction. Defaults to nil.
434
434
  # +split_tender_id+:: A split tender transaction ID as a string. If the transaction is to be part of a split tender batch, this must be included. Defaults to nil.
435
435
  # +aim_options+:: A hash of AIM options to be included with the payment transaction. Since the payment transactions in CIM are just encapsulated AIM transactions, any field used by AIM can be set here. Defaults to nil.
436
436
  # +custom_fields+:: A hash of custom fields to pass along with the payment transaction. These fields will be stored with the AIM transaction generated by the CIM transaction. Defaults to nil.
@@ -456,7 +456,7 @@ module AuthorizeNet::CIM
456
456
  # +options+:: An optional hash of options.
457
457
  #
458
458
  # Options:
459
- # +address_id+:: Takes either a String containing the ID of the an Address, or an Address object with the ID populated. Used as the shipping address for the payment transaction. Defaults to nil.
459
+ # +address_id+:: Takes either a String containing the ID of an Address, or an Address object with the ID populated. Used as the shipping address for the payment transaction. Defaults to nil.
460
460
  # +split_tender_id+:: A split tender transaction ID as a string. If the transaction is to be part of a split tender batch, this must be included. Defaults to nil.
461
461
  # +aim_options+:: A hash of AIM options to be included with the payment transaction. Since the payment transactions in CIM are just encapsulated AIM transactions, any field used by AIM can be set here. Defaults to nil.
462
462
  # +custom_fields+:: A hash of custom fields to pass along with the payment transaction. These fields will be stored with the AIM transaction generated by the CIM transaction. Defaults to nil.
@@ -724,4 +724,4 @@ module AuthorizeNet::CIM
724
724
  end
725
725
 
726
726
  end
727
- end
727
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: authorizenet
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.5.1
4
+ version: 1.8.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Authorize.Net