authorizenet 1.8.5.4 → 1.8.6
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 +4 -4
- data/lib/authorize_net/aim/transaction.rb +9 -3
- data/lib/authorize_net/api/api_transaction.rb +6 -1
- data/lib/authorize_net/api/schema.rb +229 -8
- data/lib/authorize_net/api/transaction.rb +21 -1
- data/lib/authorize_net/arb/transaction.rb +2 -2
- data/lib/authorize_net/cim/transaction.rb +2 -2
- data/lib/authorize_net/fields.rb +2 -1
- data/lib/authorize_net/line_item.rb +1 -1
- data/lib/authorize_net/order.rb +1 -1
- data/lib/authorize_net/reporting/transaction.rb +2 -2
- data/lib/authorize_net/xml_transaction.rb +7 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 107a30c42f434f3fc015c7a94d63256fa18da174
|
4
|
+
data.tar.gz: 37a62772474c2a7ac2e2e1f4ae0c75a71bef48d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81d4f684c59d7071ffca0ebbe62c2f5a87c05c9524a78d396c32e6f031230f12cae10865f01c2cc1b3081eb513321ecd73149c79f4511db8cf15551b3e50e7aa
|
7
|
+
data.tar.gz: b4a84fe47b5a4f2f6dddaefc73b412e833ced807df8307a75ac0a49d93c09e6e04e9c7ef607f0232c85ead52d25a775abaf026a7ef5f80e48f395230007d6642
|
@@ -12,7 +12,7 @@ module AuthorizeNet::AIM
|
|
12
12
|
:allow_split => false,
|
13
13
|
:delimiter => ',',
|
14
14
|
:encapsulation_character => nil,
|
15
|
-
:verify_ssl =>
|
15
|
+
:verify_ssl => true,
|
16
16
|
:device_type => DeviceType::UNKNOWN,
|
17
17
|
:market_type => MarketType::RETAIL
|
18
18
|
}
|
@@ -38,7 +38,7 @@ module AuthorizeNet::AIM
|
|
38
38
|
# +allow_split+:: A boolean indicating if split transactions should be allowed (defaults to false).
|
39
39
|
# +delimiter+:: A single character (as a string) that will be used to delimit the response from the gateway. Defaults to ','.
|
40
40
|
# +encapsulation_character+:: A single character (as a string) that will be used to encapsulate each field in the response from the gateway. Defaults to nil.
|
41
|
-
# +verify_ssl+:: A boolean indicating if the SSL certificate of the +gateway+ should be verified. Defaults to
|
41
|
+
# +verify_ssl+:: A boolean indicating if the SSL certificate of the +gateway+ should be verified. Defaults to true.
|
42
42
|
# +device_type+:: A constant from DeviceType indicating the type of POS device used in a card present transaction. Defaults to DeviceType::UNKNOWN.
|
43
43
|
# +market_type+:: A constant from MarketType indicating your industry. Used for card present transactions. Defaults to MarketType::RETAIL.
|
44
44
|
#
|
@@ -71,6 +71,7 @@ module AuthorizeNet::AIM
|
|
71
71
|
@verify_ssl = options[:verify_ssl]
|
72
72
|
@market_type = options[:market_type]
|
73
73
|
@device_type = options[:device_type]
|
74
|
+
@solution_id = options[:solution_id]
|
74
75
|
end
|
75
76
|
|
76
77
|
# Checks if the transaction has been configured for test mode or not. Return TRUE if the
|
@@ -127,6 +128,10 @@ module AuthorizeNet::AIM
|
|
127
128
|
def cp_version
|
128
129
|
@cp_version
|
129
130
|
end
|
131
|
+
|
132
|
+
def solution_id
|
133
|
+
@solution_id
|
134
|
+
end
|
130
135
|
|
131
136
|
#:enddoc:
|
132
137
|
protected
|
@@ -147,6 +152,7 @@ module AuthorizeNet::AIM
|
|
147
152
|
fields[:test_request] = boolean_to_value(@test_mode)
|
148
153
|
fields[:allow_partial_auth] = 'TRUE' if @allow_split_transaction
|
149
154
|
fields[:encap_char] = @encapsulation_character unless @encapsulation_character.nil?
|
155
|
+
fields[:solution_id] = @solution_id unless @solution_id.nil?
|
150
156
|
fields.each do |k, v|
|
151
157
|
if @@boolean_fields.include?(k)
|
152
158
|
fields[k] = boolean_to_value(v)
|
@@ -181,4 +187,4 @@ module AuthorizeNet::AIM
|
|
181
187
|
|
182
188
|
end
|
183
189
|
|
184
|
-
end
|
190
|
+
end
|
@@ -3,6 +3,7 @@ module AuthorizeNet::API
|
|
3
3
|
|
4
4
|
module Type
|
5
5
|
API_CREATE_TRANSACTION = "createTransactionRequest"
|
6
|
+
API_UPDATE_SPLIT_TENDER_GROUP = "updateSplitTenderGroupRequest"
|
6
7
|
|
7
8
|
API_CREATE_SUBSCRIPTION = "ARBCreateSubscriptionRequest"
|
8
9
|
API_UPDATE_SUBSCRIPTION = "ARBUpdateSubscriptionRequest"
|
@@ -35,11 +36,15 @@ module AuthorizeNet::API
|
|
35
36
|
API_GET_UNSETTLED_TRANSACTION_LIST = "getUnsettledTransactionListRequest"
|
36
37
|
API_GET_BATCH_STATISTICS = "getBatchStatisticsRequest"
|
37
38
|
|
38
|
-
|
39
|
+
API_GET_HOSTED_PROFILE_PAGE = "getHostedProfilePageRequest"
|
39
40
|
|
40
41
|
|
41
42
|
API_DECRYPT_PAYMENT_DATA = "decryptPaymentDataRequest"
|
42
43
|
API_AUTHENTICATE_TEST_REQUEST = "authenticateTestRequest"
|
44
|
+
|
45
|
+
API_GET_CUSTOMER_PAYMENT_PROFILE_LIST = "getCustomerPaymentProfileListRequest"
|
46
|
+
|
47
|
+
API_ARB_GET_SUBSCRIPTION_REQUEST = "ARBGetSubscriptionRequest"
|
43
48
|
end
|
44
49
|
|
45
50
|
def initialize(api_login_id, api_transaction_key, options = {})
|
@@ -11,6 +11,9 @@ module AuthorizeNet::API
|
|
11
11
|
class NumericStringsType
|
12
12
|
include ROXML
|
13
13
|
xml_reader :numericString, :as => []
|
14
|
+
def initialize(numericString = [])
|
15
|
+
@numericString = numericString
|
16
|
+
end
|
14
17
|
end
|
15
18
|
|
16
19
|
# {AnetApi/xml/v1/schema/AnetApiSchema.xsd}ArrayOfString
|
@@ -613,8 +616,8 @@ end
|
|
613
616
|
# tokenInformation - TokenMaskedType
|
614
617
|
class PaymentMaskedType
|
615
618
|
include ROXML
|
616
|
-
xml_accessor :creditCard
|
617
|
-
xml_accessor :bankAccount
|
619
|
+
xml_accessor :creditCard, :as => CreditCardMaskedType
|
620
|
+
xml_accessor :bankAccount, :as => BankAccountMaskedType
|
618
621
|
xml_accessor :tokenInformation
|
619
622
|
|
620
623
|
def initialize(creditCard = nil, bankAccount = nil, tokenInformation = nil)
|
@@ -1080,6 +1083,7 @@ end
|
|
1080
1083
|
# {AnetApi/xml/v1/schema/AnetApiSchema.xsd}customerPaymentProfileMaskedType
|
1081
1084
|
# customerType - CustomerTypeEnum
|
1082
1085
|
# billTo - CustomerAddressType
|
1086
|
+
# customerProfileId - (any)
|
1083
1087
|
# customerPaymentProfileId - (any)
|
1084
1088
|
# payment - PaymentMaskedType
|
1085
1089
|
# driversLicense - DriversLicenseMaskedType
|
@@ -1087,15 +1091,17 @@ end
|
|
1087
1091
|
class CustomerPaymentProfileMaskedType
|
1088
1092
|
include ROXML
|
1089
1093
|
xml_accessor :customerType
|
1090
|
-
xml_accessor :billTo
|
1094
|
+
xml_accessor :billTo, :as => CustomerAddressType
|
1095
|
+
xml_accessor :customerProfileId
|
1091
1096
|
xml_accessor :customerPaymentProfileId
|
1092
1097
|
xml_accessor :payment
|
1093
1098
|
xml_accessor :driversLicense
|
1094
1099
|
xml_accessor :taxId
|
1095
1100
|
|
1096
|
-
def initialize(customerType = nil, billTo = nil, customerPaymentProfileId = nil, payment = nil, driversLicense = nil, taxId = nil)
|
1101
|
+
def initialize(customerType = nil, billTo = nil, customerProfileId = nil, customerPaymentProfileId = nil, payment = nil, driversLicense = nil, taxId = nil)
|
1097
1102
|
@customerType = customerType
|
1098
1103
|
@billTo = billTo
|
1104
|
+
@customerProfileId = customerProfileId
|
1099
1105
|
@customerPaymentProfileId = customerPaymentProfileId
|
1100
1106
|
@payment = payment
|
1101
1107
|
@driversLicense = driversLicense
|
@@ -2254,6 +2260,9 @@ end
|
|
2254
2260
|
# invoice - SOAP::SOAPString
|
2255
2261
|
# amount - SOAP::SOAPDecimal
|
2256
2262
|
# currencyCode - SOAP::SOAPString
|
2263
|
+
# customerProfileId - SOAP::SOAPInt
|
2264
|
+
# customerPaymentProfileId - SOAP::SOAPInt
|
2265
|
+
# totalOccurrences - SOAP::SOAPInt
|
2257
2266
|
class SubscriptionDetail
|
2258
2267
|
include ROXML
|
2259
2268
|
xml_accessor :id
|
@@ -2269,8 +2278,11 @@ end
|
|
2269
2278
|
xml_accessor :invoice
|
2270
2279
|
xml_accessor :amount
|
2271
2280
|
xml_accessor :currencyCode
|
2281
|
+
xml_accessor :customerProfileId
|
2282
|
+
xml_accessor :customerPaymentProfileId
|
2283
|
+
xml_accessor :customerShippingProfileId
|
2272
2284
|
|
2273
|
-
def initialize(id = nil, name = nil, status = nil, createTimeStampUTC = nil, firstName = nil, lastName = nil, totalOccurrences = nil, pastOccurrences = nil, paymentMethod = nil, accountNumber = nil, invoice = nil, amount = nil, currencyCode = nil)
|
2285
|
+
def initialize(id = nil, name = nil, status = nil, createTimeStampUTC = nil, firstName = nil, lastName = nil, totalOccurrences = nil, pastOccurrences = nil, paymentMethod = nil, accountNumber = nil, invoice = nil, amount = nil, currencyCode = nil, customerProfileId = nil, customerPaymentProfileId = nil, customerShippingProfileId = nil)
|
2274
2286
|
@id = id
|
2275
2287
|
@name = name
|
2276
2288
|
@status = status
|
@@ -2284,6 +2296,9 @@ end
|
|
2284
2296
|
@invoice = invoice
|
2285
2297
|
@amount = amount
|
2286
2298
|
@currencyCode = currencyCode
|
2299
|
+
@customerProfileId = customerProfileId
|
2300
|
+
@customerPaymentProfileId = customerPaymentProfileId
|
2301
|
+
@customerShippingProfileId = customerShippingProfileId
|
2287
2302
|
end
|
2288
2303
|
end
|
2289
2304
|
|
@@ -2829,6 +2844,7 @@ end
|
|
2829
2844
|
# refId - SOAP::SOAPString
|
2830
2845
|
# messages - MessagesType
|
2831
2846
|
# sessionToken - SOAP::SOAPString
|
2847
|
+
# customerProfileId - (any)
|
2832
2848
|
# customerPaymentProfileId - (any)
|
2833
2849
|
# validationDirectResponse - SOAP::SOAPString
|
2834
2850
|
class CreateCustomerPaymentProfileResponse
|
@@ -2836,13 +2852,15 @@ end
|
|
2836
2852
|
xml_accessor :refId
|
2837
2853
|
xml_accessor :messages, :as => MessagesType
|
2838
2854
|
xml_accessor :sessionToken
|
2855
|
+
xml_accessor :customerProfileId
|
2839
2856
|
xml_accessor :customerPaymentProfileId
|
2840
2857
|
xml_accessor :validationDirectResponse
|
2841
2858
|
|
2842
|
-
def initialize(refId = nil, messages = nil, sessionToken = nil, customerPaymentProfileId = nil, validationDirectResponse = nil)
|
2859
|
+
def initialize(refId = nil, messages = nil, sessionToken = nil, customerProfileId = nil, customerPaymentProfileId = nil, validationDirectResponse = nil)
|
2843
2860
|
@refId = refId
|
2844
2861
|
@messages = messages
|
2845
2862
|
@sessionToken = sessionToken
|
2863
|
+
@customerProfileId = customerProfileId
|
2846
2864
|
@customerPaymentProfileId = customerPaymentProfileId
|
2847
2865
|
@validationDirectResponse = validationDirectResponse
|
2848
2866
|
end
|
@@ -2872,18 +2890,21 @@ end
|
|
2872
2890
|
# refId - SOAP::SOAPString
|
2873
2891
|
# messages - MessagesType
|
2874
2892
|
# sessionToken - SOAP::SOAPString
|
2893
|
+
# customerProfileId - (any)
|
2875
2894
|
# customerAddressId - (any)
|
2876
2895
|
class CreateCustomerShippingAddressResponse
|
2877
2896
|
include ROXML
|
2878
2897
|
xml_accessor :refId
|
2879
2898
|
xml_accessor :messages, :as => MessagesType
|
2880
2899
|
xml_accessor :sessionToken
|
2900
|
+
xml_accessor :customerProfileId
|
2881
2901
|
xml_accessor :customerAddressId
|
2882
2902
|
|
2883
|
-
def initialize(refId = nil, messages = nil, sessionToken = nil, customerAddressId = nil)
|
2903
|
+
def initialize(refId = nil, messages = nil, sessionToken = nil, customerProfileId = nil, customerAddressId = nil)
|
2884
2904
|
@refId = refId
|
2885
2905
|
@messages = messages
|
2886
2906
|
@sessionToken = sessionToken
|
2907
|
+
@customerProfileId = customerProfileId
|
2887
2908
|
@customerAddressId = customerAddressId
|
2888
2909
|
end
|
2889
2910
|
end
|
@@ -2947,18 +2968,21 @@ end
|
|
2947
2968
|
# refId - SOAP::SOAPString
|
2948
2969
|
# customerProfileId - (any)
|
2949
2970
|
# customerPaymentProfileId - (any)
|
2971
|
+
# unmaskExpirationDate - SOAP::SOAPBoolean
|
2950
2972
|
class GetCustomerPaymentProfileRequest
|
2951
2973
|
include ROXML
|
2952
2974
|
xml_accessor :merchantAuthentication
|
2953
2975
|
xml_accessor :refId
|
2954
2976
|
xml_accessor :customerProfileId
|
2955
2977
|
xml_accessor :customerPaymentProfileId
|
2978
|
+
xml_accessor :unmaskExpirationDate
|
2956
2979
|
|
2957
|
-
def initialize(merchantAuthentication = nil, refId = nil, customerProfileId = nil, customerPaymentProfileId = nil)
|
2980
|
+
def initialize(merchantAuthentication = nil, refId = nil, customerProfileId = nil, customerPaymentProfileId = nil, unmaskExpirationDate = nil)
|
2958
2981
|
@merchantAuthentication = merchantAuthentication
|
2959
2982
|
@refId = refId
|
2960
2983
|
@customerProfileId = customerProfileId
|
2961
2984
|
@customerPaymentProfileId = customerPaymentProfileId
|
2985
|
+
@unmaskExpirationDate = unmaskExpirationDate
|
2962
2986
|
end
|
2963
2987
|
end
|
2964
2988
|
|
@@ -4037,4 +4061,201 @@ end
|
|
4037
4061
|
@profileResponse = profileResponse
|
4038
4062
|
end
|
4039
4063
|
end
|
4064
|
+
|
4065
|
+
# {AnetApi/xml/v1/schema/AnetApiSchema.xsd}customerPaymentProfileListItemType
|
4066
|
+
# customerPaymentProfileId - SOAP::SOAPInt
|
4067
|
+
# customerProfileId - SOAP::SOAPInt
|
4068
|
+
# billTo - CustomerAddressType
|
4069
|
+
# payment - PaymentMaskedType
|
4070
|
+
class CustomerPaymentProfileListItemType
|
4071
|
+
include ROXML
|
4072
|
+
xml_accessor :customerPaymentProfileId
|
4073
|
+
xml_accessor :customerProfileId
|
4074
|
+
xml_accessor :billTo, :as => CustomerAddressType
|
4075
|
+
xml_accessor :payment, :as => PaymentMaskedType
|
4076
|
+
|
4077
|
+
def initialize(customerPaymentProfileId = nil, customerProfileId = nil, billTo = nil, payment = nil)
|
4078
|
+
@customerPaymentProfileId = customerPaymentProfileId
|
4079
|
+
@customerProfileId = customerProfileId
|
4080
|
+
@billTo = billTo
|
4081
|
+
@payment = payment
|
4082
|
+
end
|
4083
|
+
end
|
4084
|
+
|
4085
|
+
# {AnetApi/xml/v1/schema/AnetApiSchema.xsd}ArrayOfCustomerPaymentProfileListItemType
|
4086
|
+
class ArrayOfCustomerPaymentProfileListItemType < ::Array
|
4087
|
+
include ROXML
|
4088
|
+
xml_accessor :paymentProfile, :as => [CustomerPaymentProfileListItemType]
|
4089
|
+
|
4090
|
+
def initialize(paymentProfile = [])
|
4091
|
+
@paymentProfile = paymentProfile
|
4092
|
+
end
|
4093
|
+
end
|
4094
|
+
|
4095
|
+
# {AnetApi/xml/v1/schema/AnetApiSchema.xsd}CustomerPaymentProfileOrderFieldEnum
|
4096
|
+
class CustomerPaymentProfileOrderFieldEnum < ::String
|
4097
|
+
Id = CustomerPaymentProfileOrderFieldEnum.new("id")
|
4098
|
+
end
|
4099
|
+
|
4100
|
+
# {AnetApi/xml/v1/schema/AnetApiSchema.xsd}CustomerPaymentProfileSearchTypeEnum
|
4101
|
+
class CustomerPaymentProfileSearchTypeEnum < ::String
|
4102
|
+
CardsExpiringInMonth = CustomerPaymentProfileSearchTypeEnum.new("cardsExpiringInMonth")
|
4103
|
+
end
|
4104
|
+
|
4105
|
+
# {AnetApi/xml/v1/schema/AnetApiSchema.xsd}CustomerPaymentProfileSorting
|
4106
|
+
# orderBy - CustomerPaymentProfileOrderFieldEnum
|
4107
|
+
# orderDescending - SOAP::SOAPBoolean
|
4108
|
+
class CustomerPaymentProfileSorting
|
4109
|
+
include ROXML
|
4110
|
+
xml_accessor :orderBy
|
4111
|
+
xml_accessor :orderDescending
|
4112
|
+
|
4113
|
+
def initialize(orderBy = nil, orderDescending = nil)
|
4114
|
+
@orderBy = orderBy
|
4115
|
+
@orderDescending = orderDescending
|
4116
|
+
end
|
4117
|
+
end
|
4118
|
+
|
4119
|
+
# {AnetApi/xml/v1/schema/AnetApiSchema.xsd}getCustomerPaymentProfileListRequest
|
4120
|
+
# merchantAuthentication - MerchantAuthenticationType
|
4121
|
+
# refId - SOAP::SOAPString
|
4122
|
+
# searchType - CustomerPaymentProfileSearchTypeEnum
|
4123
|
+
# month - SOAP::SOAPString
|
4124
|
+
# sorting - CustomerPaymentProfileSorting
|
4125
|
+
# paging - Paging
|
4126
|
+
class GetCustomerPaymentProfileListRequest
|
4127
|
+
include ROXML
|
4128
|
+
xml_accessor :merchantAuthentication
|
4129
|
+
xml_accessor :refId
|
4130
|
+
xml_accessor :searchType
|
4131
|
+
xml_accessor :month
|
4132
|
+
xml_accessor :sorting, :as => CustomerPaymentProfileSorting
|
4133
|
+
xml_accessor :paging, :as => Paging
|
4134
|
+
|
4135
|
+
def initialize(merchantAuthentication = nil, refId = nil, searchType = nil, month = nil, sorting = nil, paging = nil)
|
4136
|
+
@merchantAuthentication = merchantAuthentication
|
4137
|
+
@refId = refId
|
4138
|
+
@searchType = searchType
|
4139
|
+
@month = month
|
4140
|
+
@sorting = sorting
|
4141
|
+
@paging = paging
|
4142
|
+
end
|
4143
|
+
end
|
4144
|
+
|
4145
|
+
# {AnetApi/xml/v1/schema/AnetApiSchema.xsd}getCustomerPaymentProfileListResponse
|
4146
|
+
# refId - SOAP::SOAPString
|
4147
|
+
# messages - MessagesType
|
4148
|
+
# sessionToken - SOAP::SOAPString
|
4149
|
+
# totalNumInResultSet - SOAP::SOAPInt
|
4150
|
+
# paymentProfiles - ArrayOfCustomerPaymentProfileListItemType
|
4151
|
+
|
4152
|
+
class GetCustomerPaymentProfileListResponse
|
4153
|
+
include ROXML
|
4154
|
+
xml_accessor :refId
|
4155
|
+
xml_accessor :messages, :as => MessagesType
|
4156
|
+
xml_accessor :sessionToken
|
4157
|
+
xml_accessor :totalNumInResultSet
|
4158
|
+
xml_accessor :paymentProfiles, :as => ArrayOfCustomerPaymentProfileListItemType
|
4159
|
+
|
4160
|
+
def initialize(refId = nil, messages = nil, sessionToken = nil, totalNumInResultSet = nil, paymentProfiles = [])
|
4161
|
+
@refId = refId
|
4162
|
+
@messages = messages
|
4163
|
+
@sessionToken = sessionToken
|
4164
|
+
@totalNumInResultSet = totalNumInResultSet
|
4165
|
+
@paymentProfiles = paymentProfiles
|
4166
|
+
end
|
4167
|
+
end
|
4168
|
+
|
4169
|
+
# {AnetApi/xml/v1/schema/AnetApiSchema.xsd}subscriptionCustomerProfileType
|
4170
|
+
# merchantCustomerId - SOAP::SOAPString
|
4171
|
+
# description - SOAP::SOAPString
|
4172
|
+
# email - SOAP::SOAPString
|
4173
|
+
# customerProfileId - (any)
|
4174
|
+
# paymentProfile - CustomerPaymentProfileMaskedType
|
4175
|
+
# shippingProfile - CustomerAddressExType
|
4176
|
+
class SubscriptionCustomerProfileType
|
4177
|
+
include ROXML
|
4178
|
+
xml_accessor :merchantCustomerId
|
4179
|
+
xml_accessor :description
|
4180
|
+
xml_accessor :email
|
4181
|
+
xml_accessor :customerProfileId
|
4182
|
+
xml_accessor :paymentProfile, :as => CustomerPaymentProfileMaskedType
|
4183
|
+
xml_accessor :shippingProfile, :as => CustomerAddressExType
|
4184
|
+
|
4185
|
+
def initialize(merchantCustomerId = nil, description = nil, email = nil, customerProfileId = nil, paymentProfile = nil, shippingProfile = nil)
|
4186
|
+
@merchantCustomerId = merchantCustomerId
|
4187
|
+
@description = description
|
4188
|
+
@email = email
|
4189
|
+
@customerProfileId = customerProfileId
|
4190
|
+
@paymentProfile = paymentProfile
|
4191
|
+
@shippingProfile = shippingProfile
|
4192
|
+
end
|
4193
|
+
end
|
4194
|
+
|
4195
|
+
# {AnetApi/xml/v1/schema/AnetApiSchema.xsd}ARBSubscriptionMaskedType
|
4196
|
+
# name - SOAP::SOAPString
|
4197
|
+
# paymentSchedule - PaymentScheduleType
|
4198
|
+
# amount - SOAP::SOAPDecimal
|
4199
|
+
# trialAmount - SOAP::SOAPDecimal
|
4200
|
+
# status - ARBSubscriptionStatusEnum
|
4201
|
+
# profile - SubscriptionCustomerProfileType
|
4202
|
+
# order - OrderType
|
4203
|
+
class ARBSubscriptionMaskedType
|
4204
|
+
include ROXML
|
4205
|
+
xml_accessor :name
|
4206
|
+
xml_accessor :paymentSchedule, :as => PaymentScheduleType
|
4207
|
+
xml_accessor :amount, :as => BigDecimal
|
4208
|
+
xml_accessor :trialAmount, :as => BigDecimal
|
4209
|
+
xml_accessor :status
|
4210
|
+
xml_accessor :profile, :as => SubscriptionCustomerProfileType
|
4211
|
+
xml_accessor :order, :as => OrderType
|
4212
|
+
|
4213
|
+
def initialize(name = nil, paymentSchedule = nil, amount = nil, trialAmount = nil, status = nil, profile = nil, order = nil)
|
4214
|
+
@name = name
|
4215
|
+
@paymentSchedule = paymentSchedule
|
4216
|
+
@amount = amount
|
4217
|
+
@trialAmount = trialAmount
|
4218
|
+
@status = status
|
4219
|
+
@profile = profile
|
4220
|
+
@order = order
|
4221
|
+
end
|
4222
|
+
end
|
4223
|
+
|
4224
|
+
# {AnetApi/xml/v1/schema/AnetApiSchema.xsd}ARBGetSubscriptionRequest
|
4225
|
+
# merchantAuthentication - MerchantAuthenticationType
|
4226
|
+
# refId - SOAP::SOAPString
|
4227
|
+
# subscriptionId - (any)
|
4228
|
+
class ARBGetSubscriptionRequest
|
4229
|
+
include ROXML
|
4230
|
+
xml_accessor :merchantAuthentication, :as => MerchantAuthenticationType
|
4231
|
+
xml_accessor :refId
|
4232
|
+
xml_accessor :subscriptionId
|
4233
|
+
|
4234
|
+
def initialize(merchantAuthentication = nil, refId = nil, subscriptionId = nil)
|
4235
|
+
@merchantAuthentication = merchantAuthentication
|
4236
|
+
@refId = refId
|
4237
|
+
@subscriptionId = subscriptionId
|
4238
|
+
end
|
4239
|
+
end
|
4240
|
+
|
4241
|
+
# {AnetApi/xml/v1/schema/AnetApiSchema.xsd}ARBGetSubscriptionResponse
|
4242
|
+
# refId - SOAP::SOAPString
|
4243
|
+
# messages - MessagesType
|
4244
|
+
# sessionToken - SOAP::SOAPString
|
4245
|
+
# subscription - ARBSubscriptionMaskedType
|
4246
|
+
class ARBGetSubscriptionResponse
|
4247
|
+
include ROXML
|
4248
|
+
xml_accessor :refId
|
4249
|
+
xml_accessor :messages, :as => MessagesType
|
4250
|
+
xml_accessor :sessionToken
|
4251
|
+
xml_accessor :subscription, :as => ARBSubscriptionMaskedType
|
4252
|
+
|
4253
|
+
def initialize(refId = nil, messages = nil, sessionToken = nil, subscription = nil)
|
4254
|
+
@refId = refId
|
4255
|
+
@messages = messages
|
4256
|
+
@sessionToken = sessionToken
|
4257
|
+
@subscription = subscription
|
4258
|
+
end
|
4259
|
+
end
|
4260
|
+
|
4040
4261
|
end
|
@@ -186,6 +186,26 @@ module AuthorizeNet::API
|
|
186
186
|
def get_hosted_profile_page(request)
|
187
187
|
make_request(request,GetHostedProfilePageResponse,Type::API_GET_HOSTED_PROFILE_PAGE)
|
188
188
|
end
|
189
|
-
|
189
|
+
|
190
|
+
# This request enables you to update split tender group
|
191
|
+
#
|
192
|
+
# See spec/api_spec.rb for usage examples
|
193
|
+
def update_split_tender_group(request)
|
194
|
+
make_request(request,UpdateSplitTenderGroupResponse,Type::API_UPDATE_SPLIT_TENDER_GROUP)
|
195
|
+
end
|
196
|
+
|
197
|
+
# This request enables you to get customer payment profile list
|
198
|
+
#
|
199
|
+
# See spec/api_spec.rb for usage examples
|
200
|
+
def get_customer_payment_profile_list(request)
|
201
|
+
make_request(request,GetCustomerPaymentProfileListResponse,Type::API_GET_CUSTOMER_PAYMENT_PROFILE_LIST)
|
202
|
+
end
|
203
|
+
|
204
|
+
# This request enables you to get ARB Subscription
|
205
|
+
#
|
206
|
+
# See spec/api_spec.rb for usage examples
|
207
|
+
def arb_get_subscription_request(request)
|
208
|
+
make_request(request,ARBGetSubscriptionResponse,Type::API_ARB_GET_SUBSCRIPTION_REQUEST)
|
209
|
+
end
|
190
210
|
end
|
191
211
|
end
|
@@ -8,7 +8,7 @@ module AuthorizeNet::ARB
|
|
8
8
|
# The default options for the constructor.
|
9
9
|
@@option_defaults = {
|
10
10
|
:gateway => :production,
|
11
|
-
:verify_ssl =>
|
11
|
+
:verify_ssl => true,
|
12
12
|
:reference_id => nil
|
13
13
|
}
|
14
14
|
|
@@ -34,7 +34,7 @@ module AuthorizeNet::ARB
|
|
34
34
|
#
|
35
35
|
# Options
|
36
36
|
# +gateway+:: The gateway to submit the transaction to. Can be a URL string, an AuthorizeNet::ARB::Transaction::Gateway constant, or one of the convenience symbols :sandbox, :test, :production, or :live (:test is an alias for :sandbox, and :live is an alias for :production).
|
37
|
-
# +verify_ssl+:: A boolean indicating if the SSL certificate of the +gateway+ should be verified. Defaults to
|
37
|
+
# +verify_ssl+:: A boolean indicating if the SSL certificate of the +gateway+ should be verified. Defaults to true.
|
38
38
|
# +reference_id+:: A string that can be used to identify a particular transaction with its response. Will be echo'd in the response, only if it was provided in the transaction. Defaults to nil.
|
39
39
|
#
|
40
40
|
def initialize(api_login_id, api_transaction_key, options = {})
|
@@ -11,7 +11,7 @@ module AuthorizeNet::CIM
|
|
11
11
|
# The default options for the constructor.
|
12
12
|
@@option_defaults = {
|
13
13
|
:gateway => :production,
|
14
|
-
:verify_ssl =>
|
14
|
+
:verify_ssl => true,
|
15
15
|
:reference_id => nil
|
16
16
|
}
|
17
17
|
|
@@ -25,7 +25,7 @@ module AuthorizeNet::CIM
|
|
25
25
|
#
|
26
26
|
# Options
|
27
27
|
# +gateway+:: The gateway to submit the transaction to. Can be a URL string, an AuthorizeNet::CIM::Transaction::Gateway constant, or one of the convenience symbols :sandbox, :test, :production, or :live (:test is an alias for :sandbox, and :live is an alias for :production).
|
28
|
-
# +verify_ssl+:: A boolean indicating if the SSL certificate of the +gateway+ should be verified. Defaults to
|
28
|
+
# +verify_ssl+:: A boolean indicating if the SSL certificate of the +gateway+ should be verified. Defaults to true.
|
29
29
|
# +reference_id+:: A string that can be used to identify a particular transaction with its response. Will be echo'd in the response, only if it was provided in the transaction. Defaults to nil.
|
30
30
|
#
|
31
31
|
def initialize(api_login_id, api_transaction_key, options = {})
|
data/lib/authorize_net/fields.rb
CHANGED
@@ -49,6 +49,7 @@ module AuthorizeNet
|
|
49
49
|
:md5_hash,
|
50
50
|
:card_code_response,
|
51
51
|
:cardholder_authentication_verification_response,
|
52
|
+
:solution_id,
|
52
53
|
nil,
|
53
54
|
nil,
|
54
55
|
nil,
|
@@ -567,7 +568,7 @@ module AuthorizeNet
|
|
567
568
|
{:firstName => :first_name},
|
568
569
|
{:lastName => :last_name},
|
569
570
|
{:company => :company},
|
570
|
-
{:address => :
|
571
|
+
{:address => :street_address},
|
571
572
|
{:city => :city},
|
572
573
|
{:state => :state},
|
573
574
|
{:zip => :zip},
|
@@ -13,7 +13,7 @@ module AuthorizeNet
|
|
13
13
|
:line_item_name => @name,
|
14
14
|
:line_item_description => @description,
|
15
15
|
:line_item_quantity => @quantity,
|
16
|
-
:
|
16
|
+
:line_item_unit_price => @price,
|
17
17
|
:line_item_taxable => @taxable
|
18
18
|
}
|
19
19
|
hash.delete_if {|k, v| v.nil?}
|
data/lib/authorize_net/order.rb
CHANGED
@@ -11,7 +11,7 @@ module AuthorizeNet
|
|
11
11
|
if id.kind_of?(AuthorizeNet::LineItem)
|
12
12
|
line_item = id
|
13
13
|
else
|
14
|
-
line_item = AuthorizeNet::LineItem.new({:
|
14
|
+
line_item = AuthorizeNet::LineItem.new({:id => id, :name => name, :description => description, :quantity => quantity, :price => price, :taxable => taxable})
|
15
15
|
end
|
16
16
|
@line_items = @line_items.to_a << line_item
|
17
17
|
end
|
@@ -21,7 +21,7 @@ module AuthorizeNet::Reporting
|
|
21
21
|
#
|
22
22
|
# Options
|
23
23
|
# +gateway+:: The gateway to submit the transaction to. Can be a URL string, an AuthorizeNet::Reporting::Transaction::Gateway constant, or one of the convenience symbols :sandbox, :test, :production, or :live (:test is an alias for :sandbox, and :live is an alias for :production).
|
24
|
-
# +verify_ssl+:: A boolean indicating if the SSL certificate of the +gateway+ should be verified. Defaults to
|
24
|
+
# +verify_ssl+:: A boolean indicating if the SSL certificate of the +gateway+ should be verified. Defaults to true.
|
25
25
|
# +reference_id+:: A string that can be used to identify a particular transaction with its response. Will be echo'd in the response, only if it was provided in the transaction. Defaults to nil.
|
26
26
|
#
|
27
27
|
def initialize(api_login_id, api_transaction_key, options = {})
|
@@ -130,4 +130,4 @@ module AuthorizeNet::Reporting
|
|
130
130
|
end
|
131
131
|
end
|
132
132
|
|
133
|
-
end
|
133
|
+
end
|
@@ -60,7 +60,7 @@ module AuthorizeNet
|
|
60
60
|
# The default options for the constructor.
|
61
61
|
@@option_defaults = {
|
62
62
|
:gateway => :production,
|
63
|
-
:verify_ssl =>
|
63
|
+
:verify_ssl => true,
|
64
64
|
:reference_id => nil
|
65
65
|
}
|
66
66
|
|
@@ -76,13 +76,14 @@ module AuthorizeNet
|
|
76
76
|
options = @@option_defaults.merge(options)
|
77
77
|
@verify_ssl = options[:verify_ssl]
|
78
78
|
@reference_id = options[:reference_id]
|
79
|
-
case options[:gateway]
|
80
|
-
when
|
81
|
-
|
82
|
-
when
|
83
|
-
|
79
|
+
@gateway = case options[:gateway].to_s
|
80
|
+
when 'sandbox', 'test'
|
81
|
+
Gateway::TEST
|
82
|
+
when 'production', 'live'
|
83
|
+
Gateway::LIVE
|
84
84
|
else
|
85
85
|
@gateway = options[:gateway]
|
86
|
+
options[:gateway]
|
86
87
|
end
|
87
88
|
end
|
88
89
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: authorizenet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Authorize.Net
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-11-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|