authorizenet 1.8.5.2 → 1.8.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6a1d8606f1e01c9c6da765f948acb7b1a829a90f
4
- data.tar.gz: ff72a9d84c4e7de47bdcc41d9e7782bdeccb6c3e
3
+ metadata.gz: c700bf6eb2f17ae8ba817883560232edf34754da
4
+ data.tar.gz: cf512faeafec4caf9a853a53263eb7c0f922f177
5
5
  SHA512:
6
- metadata.gz: 13b807728b1066d41c55ead278e0837f628b783e954f598e3e9c79236a7e6b68cf22705fced2079ef6f0c129d2463aaba1121564a5a6ee8a7741f8e71548122d
7
- data.tar.gz: 1384f94141e810358e5c2b9d615d0592a1b29130e08d946910c173aad9bf9a17bd7217da21ba1b5db2df1826b795472e06f9d47d4254539caa9bc7f8b6c5a0f1
6
+ metadata.gz: 0d0152c2b0ccf6475cb94c10875893d73c587af286b12ce0689d29bb42f98dc349e46b93a9b5729db08b95c8f012e3a2e4374a67b775814b6e616f4b3a98b9d1
7
+ data.tar.gz: bb8909a6776fd773f8928779ba7b405a28a86a8f029162cca1217ee4d91343add70dda8a5fa134b901081d58720de1782feae99fcfec228aad60378b92e3c255
@@ -34,6 +34,8 @@ module AuthorizeNet::API
34
34
  API_GET_TRANSACTION_DETAILS = "getTransactionDetailsRequest"
35
35
  API_GET_UNSETTLED_TRANSACTION_LIST = "getUnsettledTransactionListRequest"
36
36
  API_GET_BATCH_STATISTICS = "getBatchStatisticsRequest"
37
+
38
+ API_GET_HOSTED_PROFILE_PAGE = "getHostedProfilePageRequest"
37
39
 
38
40
 
39
41
  API_DECRYPT_PAYMENT_DATA = "decryptPaymentDataRequest"
@@ -74,7 +76,7 @@ module AuthorizeNet::API
74
76
 
75
77
  def send_request(xml)
76
78
  url = URI.parse(@gateway)
77
- puts xml
79
+
78
80
  httpRequest = Net::HTTP::Post.new(url.path)
79
81
  httpRequest.content_type = 'text/xml'
80
82
  httpRequest.body = xml
@@ -90,7 +92,6 @@ module AuthorizeNet::API
90
92
  end
91
93
 
92
94
  def deserialize(xml,responseClass)
93
- puts xml
94
95
  responseClass.from_xml(xml)
95
96
  end
96
97
  end
@@ -1817,37 +1817,6 @@ end
1817
1817
  end
1818
1818
  end
1819
1819
 
1820
- # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}batchDetailsType
1821
- # batchId - (any)
1822
- # settlementTimeUTC - SOAP::SOAPDateTime
1823
- # settlementTimeLocal - SOAP::SOAPDateTime
1824
- # settlementState - SOAP::SOAPString
1825
- # paymentMethod - SOAP::SOAPString
1826
- # marketType - SOAP::SOAPString
1827
- # product - SOAP::SOAPString
1828
- # statistics - ArrayOfBatchStatisticType
1829
- class BatchDetailsType
1830
- include ROXML
1831
- xml_accessor :batchId
1832
- xml_accessor :settlementTimeUTC
1833
- xml_accessor :settlementTimeLocal
1834
- xml_accessor :settlementState
1835
- xml_accessor :paymentMethod
1836
- xml_accessor :marketType
1837
- xml_accessor :product
1838
- xml_accessor :statistics
1839
-
1840
- def initialize(batchId = nil, settlementTimeUTC = nil, settlementTimeLocal = nil, settlementState = nil, paymentMethod = nil, marketType = nil, product = nil, statistics = nil)
1841
- @batchId = batchId
1842
- @settlementTimeUTC = settlementTimeUTC
1843
- @settlementTimeLocal = settlementTimeLocal
1844
- @settlementState = settlementState
1845
- @paymentMethod = paymentMethod
1846
- @marketType = marketType
1847
- @product = product
1848
- @statistics = statistics
1849
- end
1850
- end
1851
1820
 
1852
1821
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}batchStatisticType
1853
1822
  # accountType - SOAP::SOAPString
@@ -1920,6 +1889,40 @@ end
1920
1889
  end
1921
1890
  end
1922
1891
 
1892
+
1893
+ # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}batchDetailsType
1894
+ # batchId - (any)
1895
+ # settlementTimeUTC - SOAP::SOAPDateTime
1896
+ # settlementTimeLocal - SOAP::SOAPDateTime
1897
+ # settlementState - SOAP::SOAPString
1898
+ # paymentMethod - SOAP::SOAPString
1899
+ # marketType - SOAP::SOAPString
1900
+ # product - SOAP::SOAPString
1901
+ # statistics - ArrayOfBatchStatisticType
1902
+ class BatchDetailsType
1903
+ include ROXML
1904
+ xml_accessor :batchId
1905
+ xml_accessor :settlementTimeUTC
1906
+ xml_accessor :settlementTimeLocal
1907
+ xml_accessor :settlementState
1908
+ xml_accessor :paymentMethod
1909
+ xml_accessor :marketType
1910
+ xml_accessor :product
1911
+ xml_accessor :statistics, :as => [BatchStatisticType]
1912
+
1913
+ def initialize(batchId = nil, settlementTimeUTC = nil, settlementTimeLocal = nil, settlementState = nil, paymentMethod = nil, marketType = nil, product = nil, statistics = nil)
1914
+ @batchId = batchId
1915
+ @settlementTimeUTC = settlementTimeUTC
1916
+ @settlementTimeLocal = settlementTimeLocal
1917
+ @settlementState = settlementState
1918
+ @paymentMethod = paymentMethod
1919
+ @marketType = marketType
1920
+ @product = product
1921
+ @statistics = statistics
1922
+ end
1923
+ end
1924
+
1925
+
1923
1926
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}transactionResponse
1924
1927
  # responseCode - SOAP::SOAPString
1925
1928
  # rawResponseCode - SOAP::SOAPString
@@ -1979,7 +1982,7 @@ end
1979
1982
  end
1980
1983
  end
1981
1984
 
1982
- xml_accessor :messages, :as => Messages
1985
+ xml_accessor :messages, :as => [Messages::Message]
1983
1986
 
1984
1987
  def initialize(messages = [])
1985
1988
  @messages = messages
@@ -3470,7 +3473,7 @@ end
3470
3473
  xml_accessor :refId
3471
3474
  xml_accessor :messages, :as => MessagesType
3472
3475
  xml_accessor :sessionToken
3473
- xml_accessor :batch
3476
+ xml_accessor :batch, :as=> BatchDetailsType
3474
3477
 
3475
3478
  def initialize(refId = nil, messages = nil, sessionToken = nil, batch = nil)
3476
3479
  @refId = refId
@@ -3570,7 +3573,7 @@ end
3570
3573
  xml_accessor :merchantAuthentication
3571
3574
  xml_accessor :refId
3572
3575
  xml_accessor :customerProfileId
3573
- xml_accessor :hostedProfileSettings
3576
+ xml_accessor :hostedProfileSettings, :as => Settings
3574
3577
 
3575
3578
  def initialize(merchantAuthentication = nil, refId = nil, customerProfileId = nil, hostedProfileSettings = nil)
3576
3579
  @merchantAuthentication = merchantAuthentication
@@ -172,6 +172,20 @@ module AuthorizeNet::API
172
172
  def authenticate_test_request(request)
173
173
  make_request(request,AuthenticateTestResponse,Type::API_AUTHENTICATE_TEST_REQUEST)
174
174
  end
175
-
175
+
176
+ # This request enables you to get batch statistics details
177
+ #
178
+ # See spec/api_spec.rb for usage examples
179
+ def get_batch_statistics(request)
180
+ make_request(request,GetBatchStatisticsResponse,Type::API_GET_BATCH_STATISTICS)
181
+ end
182
+
183
+ # This request enables confirm authentication values
184
+ #
185
+ # See spec/api_spec.rb for usage examples
186
+ def get_hosted_profile_page(request)
187
+ make_request(request,GetHostedProfilePageResponse,Type::API_GET_HOSTED_PROFILE_PAGE)
188
+ end
189
+
176
190
  end
177
191
  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.2
4
+ version: 1.8.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Authorize.Net