authorizenet 1.9.6 → 1.9.7
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 +5 -5
- data/lib/app/helpers/authorize_net_helper.rb +23 -23
- data/lib/authorize_net.rb +107 -107
- data/lib/authorize_net/addresses/address.rb +25 -25
- data/lib/authorize_net/addresses/shipping_address.rb +22 -22
- data/lib/authorize_net/aim/response.rb +120 -120
- data/lib/authorize_net/aim/transaction.rb +171 -171
- data/lib/authorize_net/api/LogHelper.rb +97 -0
- data/lib/authorize_net/api/SensitiveDataFilter.rb +92 -0
- data/lib/authorize_net/api/api_transaction.rb +129 -119
- data/lib/authorize_net/api/constants.yml +1 -1
- data/lib/authorize_net/api/schema.rb +5421 -5165
- data/lib/authorize_net/api/transaction.rb +265 -261
- data/lib/authorize_net/arb/fields.rb +24 -24
- data/lib/authorize_net/arb/paging.rb +29 -29
- data/lib/authorize_net/arb/response.rb +26 -26
- data/lib/authorize_net/arb/sorting.rb +39 -39
- data/lib/authorize_net/arb/subscription.rb +68 -68
- data/lib/authorize_net/arb/subscription_detail.rb +10 -10
- data/lib/authorize_net/arb/subscription_list_response.rb +36 -36
- data/lib/authorize_net/arb/transaction.rb +171 -171
- data/lib/authorize_net/authorize_net.rb +154 -154
- data/lib/authorize_net/cim/customer_profile.rb +15 -15
- data/lib/authorize_net/cim/payment_profile.rb +35 -35
- data/lib/authorize_net/cim/response.rb +111 -111
- data/lib/authorize_net/cim/transaction.rb +721 -721
- data/lib/authorize_net/customer.rb +24 -24
- data/lib/authorize_net/email_receipt.rb +20 -20
- data/lib/authorize_net/fields.rb +760 -760
- data/lib/authorize_net/key_value_response.rb +109 -109
- data/lib/authorize_net/key_value_transaction.rb +281 -281
- data/lib/authorize_net/line_item.rb +21 -21
- data/lib/authorize_net/order.rb +38 -38
- data/lib/authorize_net/payment_methods/credit_card.rb +61 -61
- data/lib/authorize_net/payment_methods/echeck.rb +70 -70
- data/lib/authorize_net/reporting/batch.rb +16 -16
- data/lib/authorize_net/reporting/batch_statistics.rb +15 -15
- data/lib/authorize_net/reporting/fds_filter.rb +8 -8
- data/lib/authorize_net/reporting/response.rb +157 -157
- data/lib/authorize_net/reporting/returned_item.rb +45 -45
- data/lib/authorize_net/reporting/transaction.rb +131 -131
- data/lib/authorize_net/reporting/transaction_details.rb +22 -22
- data/lib/authorize_net/response.rb +25 -25
- data/lib/authorize_net/sim/hosted_payment_form.rb +34 -34
- data/lib/authorize_net/sim/hosted_receipt_page.rb +32 -32
- data/lib/authorize_net/sim/response.rb +133 -133
- data/lib/authorize_net/sim/transaction.rb +128 -128
- data/lib/authorize_net/transaction.rb +66 -66
- data/lib/authorize_net/xml_response.rb +154 -154
- data/lib/authorize_net/xml_transaction.rb +279 -279
- data/lib/authorizenet.rb +4 -4
- data/lib/generators/authorize_net/direct_post/direct_post_generator.rb +52 -52
- data/lib/generators/authorize_net/direct_post/templates/README-AuthorizeNet +48 -48
- data/lib/generators/authorize_net/direct_post/templates/config.yml.erb +8 -8
- data/lib/generators/authorize_net/direct_post/templates/config.yml.rails3.erb +8 -8
- data/lib/generators/authorize_net/direct_post/templates/controller.rb.erb +30 -30
- data/lib/generators/authorize_net/direct_post/templates/initializer.rb +4 -4
- data/lib/generators/authorize_net/direct_post/templates/layout.erb +17 -17
- data/lib/generators/authorize_net/direct_post/templates/payment.erb +9 -9
- data/lib/generators/authorize_net/direct_post/templates/payment.rails3.erb +9 -9
- data/lib/generators/authorize_net/sim/sim_generator.rb +46 -46
- data/lib/generators/authorize_net/sim/templates/README-AuthorizeNet +51 -51
- data/lib/generators/authorize_net/sim/templates/config.yml.erb +8 -8
- data/lib/generators/authorize_net/sim/templates/config.yml.rails3.erb +8 -8
- data/lib/generators/authorize_net/sim/templates/controller.rb.erb +20 -20
- data/lib/generators/authorize_net/sim/templates/initializer.rb +4 -4
- data/lib/generators/authorize_net/sim/templates/layout.erb +17 -17
- data/lib/generators/authorize_net/sim/templates/payment.erb +5 -5
- data/lib/generators/authorize_net/sim/templates/payment.rails3.erb +5 -5
- data/lib/generators/generator_extensions.rb +73 -73
- metadata +5 -3
@@ -1,261 +1,265 @@
|
|
1
|
-
module AuthorizeNet::API
|
2
|
-
class Transaction < ApiTransaction
|
3
|
-
attr_accessor :access_token
|
4
|
-
attr_accessor :options_OAuth
|
5
|
-
|
6
|
-
def initialize(api_login_id = nil, api_transaction_key = nil, options = {})
|
7
|
-
super
|
8
|
-
end
|
9
|
-
|
10
|
-
# This request enables you to create a transaction, and optional
|
11
|
-
# customer profile.
|
12
|
-
# NOTE: Network tokenized transactions (e.g. Apple Pay), or PayPal should
|
13
|
-
# not be used to create payment profiles.
|
14
|
-
#
|
15
|
-
# See spec/api_spec.rb for usage examples
|
16
|
-
def create_transaction(request)
|
17
|
-
make_request(request, CreateTransactionResponse, Type::API_CREATE_TRANSACTION)
|
18
|
-
end
|
19
|
-
|
20
|
-
# This request enables you to create a recurring billing subscription.
|
21
|
-
#
|
22
|
-
# See spec/api_spec.rb for usage examples
|
23
|
-
def create_subscription(request)
|
24
|
-
make_request(request, ARBCreateSubscriptionResponse, Type::API_CREATE_SUBSCRIPTION)
|
25
|
-
end
|
26
|
-
|
27
|
-
# This request enables you to update a recurring billing subscription.
|
28
|
-
#
|
29
|
-
# See spec/api_spec.rb for usage examples
|
30
|
-
def update_subscription(request)
|
31
|
-
make_request(request, ARBUpdateSubscriptionResponse, Type::API_UPDATE_SUBSCRIPTION)
|
32
|
-
end
|
33
|
-
|
34
|
-
# This request enables you to cancel a recurring billing subscription.
|
35
|
-
#
|
36
|
-
# See spec/api_spec.rb for usage examples
|
37
|
-
def cancel_subscription(request)
|
38
|
-
make_request(request, ARBCancelSubscriptionResponse, Type::API_CANCEL_SUBSCRIPTION)
|
39
|
-
end
|
40
|
-
|
41
|
-
# This request enables you to get a recurring billing subscription status.
|
42
|
-
#
|
43
|
-
# See spec/api_spec.rb for usage examples
|
44
|
-
def get_subscription_status(request)
|
45
|
-
make_request(request, ARBGetSubscriptionStatusResponse, Type::API_GET_SUBSCRIPTION_STATUS)
|
46
|
-
end
|
47
|
-
|
48
|
-
# This request enables you to get a list of all recurring billing
|
49
|
-
# subscriptions.
|
50
|
-
#
|
51
|
-
# See spec/api_spec.rb for usage examples
|
52
|
-
def get_subscription_list(request)
|
53
|
-
make_request(request, ARBGetSubscriptionListResponse, Type::API_GET_SUBSCRIPTION_LIST)
|
54
|
-
end
|
55
|
-
|
56
|
-
# This request enables you to create a customer profile.
|
57
|
-
#
|
58
|
-
# See spec/api_spec.rb for usage examples
|
59
|
-
def create_customer_profile(request)
|
60
|
-
make_request(request, CreateCustomerProfileResponse, Type::API_CREATE_CUSTOMER_PROFILE)
|
61
|
-
end
|
62
|
-
|
63
|
-
# This request enables you to retrieve a customer profile.
|
64
|
-
#
|
65
|
-
# See spec/api_spec.rb for usage examples
|
66
|
-
def get_customer_profile(request)
|
67
|
-
make_request(request, GetCustomerProfileResponse, Type::API_GET_CUSTOMER_PROFILE)
|
68
|
-
end
|
69
|
-
|
70
|
-
# This request enables you to retrieve all customer profile IDs.
|
71
|
-
#
|
72
|
-
# See spec/api_spec.rb for usage examples
|
73
|
-
def get_customer_profile_ids(request)
|
74
|
-
make_request(request, GetCustomerProfileIdsResponse, Type::API_GET_CUSTOMER_PROFILE_IDS)
|
75
|
-
end
|
76
|
-
|
77
|
-
# This request enables you to update a customer profile.
|
78
|
-
#
|
79
|
-
# See spec/api_spec.rb for usage examples
|
80
|
-
def update_customer_profile(request)
|
81
|
-
make_request(request, UpdateCustomerProfileResponse, Type::API_UPDATE_CUSTOMER_PROFILE)
|
82
|
-
end
|
83
|
-
|
84
|
-
# This request enables you to delete a customer profile.
|
85
|
-
#
|
86
|
-
# See spec/api_spec.rb for usage examples
|
87
|
-
def delete_customer_profile(request)
|
88
|
-
make_request(request, DeleteCustomerProfileResponse, Type::API_DELETE_CUSTOMER_PROFILE)
|
89
|
-
end
|
90
|
-
|
91
|
-
# This request enables you to create a customer payment profile.
|
92
|
-
#
|
93
|
-
# See spec/api_spec.rb for usage examples
|
94
|
-
def create_customer_payment_profile(request)
|
95
|
-
make_request(request, CreateCustomerPaymentProfileResponse, Type::API_CREATE_CUSTOMER_PAYMENT_PROFILE)
|
96
|
-
end
|
97
|
-
|
98
|
-
# This request enables you to retrieve a customer payment profile.
|
99
|
-
#
|
100
|
-
# See spec/api_spec.rb for usage examples
|
101
|
-
def get_customer_payment_profile(request)
|
102
|
-
make_request(request, GetCustomerPaymentProfileResponse, Type::API_GET_CUSTOMER_PAYMENT_PROFILE)
|
103
|
-
end
|
104
|
-
|
105
|
-
# This request enables you to update a customer payment profile.
|
106
|
-
#
|
107
|
-
# See spec/api_spec.rb for usage examples
|
108
|
-
def update_customer_payment_profile(request)
|
109
|
-
make_request(request, UpdateCustomerPaymentProfileResponse, Type::API_UPDATE_CUSTOMER_PAYMENT_PROFILE)
|
110
|
-
end
|
111
|
-
|
112
|
-
# This request enables you to delete a customer payment profile.
|
113
|
-
#
|
114
|
-
# See spec/api_spec.rb for usage examples
|
115
|
-
def delete_customer_payment_profile(request)
|
116
|
-
make_request(request, DeleteCustomerPaymentProfileResponse, Type::API_DELETE_CUSTOMER_PAYMENT_PROFILE)
|
117
|
-
end
|
118
|
-
|
119
|
-
# This request enables you to create a customer shipping profile.
|
120
|
-
#
|
121
|
-
# See spec/api_spec.rb for usage examples
|
122
|
-
def create_customer_shipping_profile(request)
|
123
|
-
make_request(request, CreateCustomerShippingAddressResponse, Type::API_CREATE_CUSTOMER_SHIPPING_PROFILE)
|
124
|
-
end
|
125
|
-
|
126
|
-
# This request enables you to retrieve a customer shipping profile.
|
127
|
-
#
|
128
|
-
# See spec/api_spec.rb for usage examples
|
129
|
-
def get_customer_shipping_profile(request)
|
130
|
-
make_request(request, GetCustomerShippingAddressResponse, Type::API_GET_CUSTOMER_SHIPPING_PROFILE)
|
131
|
-
end
|
132
|
-
|
133
|
-
# This request enables you to update a customer shipping profile.
|
134
|
-
#
|
135
|
-
# See spec/api_spec.rb for usage examples
|
136
|
-
def update_customer_shipping_profile(request)
|
137
|
-
make_request(request, UpdateCustomerShippingAddressResponse, Type::API_UPDATE_CUSTOMER_SHIPPING_PROFILE)
|
138
|
-
end
|
139
|
-
|
140
|
-
# This request enables you to delete a customer shipping profile.
|
141
|
-
#
|
142
|
-
# See spec/api_spec.rb for usage examples
|
143
|
-
def delete_customer_shipping_profile(request)
|
144
|
-
make_request(request, DeleteCustomerShippingAddressResponse, Type::API_DELETE_CUSTOMER_SHIPPING_PROFILE)
|
145
|
-
end
|
146
|
-
|
147
|
-
# This request enables you to create a customer profile, payment
|
148
|
-
# profile, and shipping profile from an existing successful transaction.
|
149
|
-
# NOTE: Network tokenized transactions (e.g. Apple Pay), or PayPal
|
150
|
-
# should not be used to create payment profiles.
|
151
|
-
#
|
152
|
-
# See spec/api_spec.rb for usage examples
|
153
|
-
def create_customer_profile_from_transaction(request)
|
154
|
-
make_request(request, CreateProfileResponse, Type::API_CREATE_CUSTOMER_PROFILE_FROM_TRANSACTION)
|
155
|
-
end
|
156
|
-
|
157
|
-
# This request enables you to decrypt a payment data blob.
|
158
|
-
#
|
159
|
-
# See spec/api_spec.rb for usage examples
|
160
|
-
def decrypt_payment_data(request)
|
161
|
-
make_request(request, DecryptPaymentDataResponse, Type::API_DECRYPT_PAYMENT_DATA)
|
162
|
-
end
|
163
|
-
|
164
|
-
# This request enables confirm authentication values.
|
165
|
-
#
|
166
|
-
# See spec/api_spec.rb for usage examples
|
167
|
-
def authenticate_test_request(request)
|
168
|
-
make_request(request, AuthenticateTestResponse, Type::API_AUTHENTICATE_TEST_REQUEST)
|
169
|
-
end
|
170
|
-
|
171
|
-
# This request enables you to get batch statistics details.
|
172
|
-
#
|
173
|
-
# See spec/api_spec.rb for usage examples
|
174
|
-
def get_batch_statistics(request)
|
175
|
-
make_request(request, GetBatchStatisticsResponse, Type::API_GET_BATCH_STATISTICS)
|
176
|
-
end
|
177
|
-
|
178
|
-
# This request enables you to get batch transaction details.
|
179
|
-
#
|
180
|
-
# See spec/api_spec.rb for usage examples
|
181
|
-
def get_transaction_details(request)
|
182
|
-
make_request(request, GetTransactionDetailsResponse, Type::API_GET_TRANSACTION_DETAILS)
|
183
|
-
end
|
184
|
-
|
185
|
-
# This request enables you to get batch settled transaction details.
|
186
|
-
#
|
187
|
-
# See spec/api_spec.rb for usage examples
|
188
|
-
def get_settled_batch_list(request)
|
189
|
-
make_request(request, GetSettledBatchListResponse, Type::API_GET_SETTLED_BATCH_LIST)
|
190
|
-
end
|
191
|
-
|
192
|
-
# This request enables you to get batch unsettled transaction details.
|
193
|
-
#
|
194
|
-
# See spec/api_spec.rb for usage examples
|
195
|
-
def get_unsettled_transaction_list(request)
|
196
|
-
make_request(request, GetUnsettledTransactionListResponse, Type::API_GET_UNSETTLED_TRANSACTION_LIST)
|
197
|
-
end
|
198
|
-
|
199
|
-
# This request enables confirm authentication values.
|
200
|
-
#
|
201
|
-
# See spec/api_spec.rb for usage examples
|
202
|
-
def get_hosted_profile_page(request)
|
203
|
-
make_request(request, GetHostedProfilePageResponse, Type::API_GET_HOSTED_PROFILE_PAGE)
|
204
|
-
end
|
205
|
-
|
206
|
-
# This request enables you to update split tender group.
|
207
|
-
#
|
208
|
-
# See spec/api_spec.rb for usage examples
|
209
|
-
def update_split_tender_group(request)
|
210
|
-
make_request(request, UpdateSplitTenderGroupResponse, Type::API_UPDATE_SPLIT_TENDER_GROUP)
|
211
|
-
end
|
212
|
-
|
213
|
-
# This request enables you to get customer payment profile list.
|
214
|
-
#
|
215
|
-
# See spec/api_spec.rb for usage examples
|
216
|
-
def get_customer_payment_profile_list(request)
|
217
|
-
make_request(request, GetCustomerPaymentProfileListResponse, Type::API_GET_CUSTOMER_PAYMENT_PROFILE_LIST)
|
218
|
-
end
|
219
|
-
|
220
|
-
# This request enables you to get ARB Subscription.
|
221
|
-
#
|
222
|
-
# See spec/api_spec.rb for usage examples
|
223
|
-
def arb_get_subscription_request(request)
|
224
|
-
make_request(request, ARBGetSubscriptionResponse, Type::API_ARB_GET_SUBSCRIPTION_REQUEST)
|
225
|
-
end
|
226
|
-
|
227
|
-
# This request enables you to get transaction list.
|
228
|
-
#
|
229
|
-
# See spec/api_spec.rb for usage examples
|
230
|
-
def get_transaction_list(request)
|
231
|
-
make_request(request, GetTransactionListResponse, Type::API_GET_TRANSACTION_LIST)
|
232
|
-
end
|
233
|
-
|
234
|
-
# This request enables you to validate customer payment profile.
|
235
|
-
#
|
236
|
-
# See spec/api_spec.rb for usage examples
|
237
|
-
def validate_customer_payment_profile(request)
|
238
|
-
make_request(request, ValidateCustomerPaymentProfileResponse, Type::API_VALIDATE_CUSTOMER_PAYMENT_PROFILE)
|
239
|
-
end
|
240
|
-
|
241
|
-
def get_merchant_details(request)
|
242
|
-
make_request(request, GetMerchantDetailsResponse, Type::API_GET_MERCHANT_DETAILS)
|
243
|
-
end
|
244
|
-
|
245
|
-
def get_hosted_payment_page(request)
|
246
|
-
make_request(request, GetHostedPaymentPageResponse, Type::API_GET_HOSTED_PAYMENT_PAGE)
|
247
|
-
end
|
248
|
-
|
249
|
-
def update_held_transaction(request)
|
250
|
-
make_request(request, UpdateHeldTransactionResponse, Type::API_UDPATE_HELD_TRANSACTION)
|
251
|
-
end
|
252
|
-
|
253
|
-
def get_transaction_list_for_customer(request)
|
254
|
-
make_request(request, GetTransactionListResponse, Type::API_GET_TRANSACTION_LIST_FOR_CUSTOMER)
|
255
|
-
end
|
256
|
-
|
257
|
-
def update_merchant_details(request)
|
258
|
-
make_request(request, UpdateMerchantDetailsResponse, Type::API_UPDATE_MERCHANT_DETAILS)
|
259
|
-
end
|
260
|
-
|
261
|
-
|
1
|
+
module AuthorizeNet::API
|
2
|
+
class Transaction < ApiTransaction
|
3
|
+
attr_accessor :access_token
|
4
|
+
attr_accessor :options_OAuth
|
5
|
+
|
6
|
+
def initialize(api_login_id = nil, api_transaction_key = nil, options = {})
|
7
|
+
super
|
8
|
+
end
|
9
|
+
|
10
|
+
# This request enables you to create a transaction, and optional
|
11
|
+
# customer profile.
|
12
|
+
# NOTE: Network tokenized transactions (e.g. Apple Pay), or PayPal should
|
13
|
+
# not be used to create payment profiles.
|
14
|
+
#
|
15
|
+
# See spec/api_spec.rb for usage examples
|
16
|
+
def create_transaction(request)
|
17
|
+
make_request(request, CreateTransactionResponse, Type::API_CREATE_TRANSACTION)
|
18
|
+
end
|
19
|
+
|
20
|
+
# This request enables you to create a recurring billing subscription.
|
21
|
+
#
|
22
|
+
# See spec/api_spec.rb for usage examples
|
23
|
+
def create_subscription(request)
|
24
|
+
make_request(request, ARBCreateSubscriptionResponse, Type::API_CREATE_SUBSCRIPTION)
|
25
|
+
end
|
26
|
+
|
27
|
+
# This request enables you to update a recurring billing subscription.
|
28
|
+
#
|
29
|
+
# See spec/api_spec.rb for usage examples
|
30
|
+
def update_subscription(request)
|
31
|
+
make_request(request, ARBUpdateSubscriptionResponse, Type::API_UPDATE_SUBSCRIPTION)
|
32
|
+
end
|
33
|
+
|
34
|
+
# This request enables you to cancel a recurring billing subscription.
|
35
|
+
#
|
36
|
+
# See spec/api_spec.rb for usage examples
|
37
|
+
def cancel_subscription(request)
|
38
|
+
make_request(request, ARBCancelSubscriptionResponse, Type::API_CANCEL_SUBSCRIPTION)
|
39
|
+
end
|
40
|
+
|
41
|
+
# This request enables you to get a recurring billing subscription status.
|
42
|
+
#
|
43
|
+
# See spec/api_spec.rb for usage examples
|
44
|
+
def get_subscription_status(request)
|
45
|
+
make_request(request, ARBGetSubscriptionStatusResponse, Type::API_GET_SUBSCRIPTION_STATUS)
|
46
|
+
end
|
47
|
+
|
48
|
+
# This request enables you to get a list of all recurring billing
|
49
|
+
# subscriptions.
|
50
|
+
#
|
51
|
+
# See spec/api_spec.rb for usage examples
|
52
|
+
def get_subscription_list(request)
|
53
|
+
make_request(request, ARBGetSubscriptionListResponse, Type::API_GET_SUBSCRIPTION_LIST)
|
54
|
+
end
|
55
|
+
|
56
|
+
# This request enables you to create a customer profile.
|
57
|
+
#
|
58
|
+
# See spec/api_spec.rb for usage examples
|
59
|
+
def create_customer_profile(request)
|
60
|
+
make_request(request, CreateCustomerProfileResponse, Type::API_CREATE_CUSTOMER_PROFILE)
|
61
|
+
end
|
62
|
+
|
63
|
+
# This request enables you to retrieve a customer profile.
|
64
|
+
#
|
65
|
+
# See spec/api_spec.rb for usage examples
|
66
|
+
def get_customer_profile(request)
|
67
|
+
make_request(request, GetCustomerProfileResponse, Type::API_GET_CUSTOMER_PROFILE)
|
68
|
+
end
|
69
|
+
|
70
|
+
# This request enables you to retrieve all customer profile IDs.
|
71
|
+
#
|
72
|
+
# See spec/api_spec.rb for usage examples
|
73
|
+
def get_customer_profile_ids(request)
|
74
|
+
make_request(request, GetCustomerProfileIdsResponse, Type::API_GET_CUSTOMER_PROFILE_IDS)
|
75
|
+
end
|
76
|
+
|
77
|
+
# This request enables you to update a customer profile.
|
78
|
+
#
|
79
|
+
# See spec/api_spec.rb for usage examples
|
80
|
+
def update_customer_profile(request)
|
81
|
+
make_request(request, UpdateCustomerProfileResponse, Type::API_UPDATE_CUSTOMER_PROFILE)
|
82
|
+
end
|
83
|
+
|
84
|
+
# This request enables you to delete a customer profile.
|
85
|
+
#
|
86
|
+
# See spec/api_spec.rb for usage examples
|
87
|
+
def delete_customer_profile(request)
|
88
|
+
make_request(request, DeleteCustomerProfileResponse, Type::API_DELETE_CUSTOMER_PROFILE)
|
89
|
+
end
|
90
|
+
|
91
|
+
# This request enables you to create a customer payment profile.
|
92
|
+
#
|
93
|
+
# See spec/api_spec.rb for usage examples
|
94
|
+
def create_customer_payment_profile(request)
|
95
|
+
make_request(request, CreateCustomerPaymentProfileResponse, Type::API_CREATE_CUSTOMER_PAYMENT_PROFILE)
|
96
|
+
end
|
97
|
+
|
98
|
+
# This request enables you to retrieve a customer payment profile.
|
99
|
+
#
|
100
|
+
# See spec/api_spec.rb for usage examples
|
101
|
+
def get_customer_payment_profile(request)
|
102
|
+
make_request(request, GetCustomerPaymentProfileResponse, Type::API_GET_CUSTOMER_PAYMENT_PROFILE)
|
103
|
+
end
|
104
|
+
|
105
|
+
# This request enables you to update a customer payment profile.
|
106
|
+
#
|
107
|
+
# See spec/api_spec.rb for usage examples
|
108
|
+
def update_customer_payment_profile(request)
|
109
|
+
make_request(request, UpdateCustomerPaymentProfileResponse, Type::API_UPDATE_CUSTOMER_PAYMENT_PROFILE)
|
110
|
+
end
|
111
|
+
|
112
|
+
# This request enables you to delete a customer payment profile.
|
113
|
+
#
|
114
|
+
# See spec/api_spec.rb for usage examples
|
115
|
+
def delete_customer_payment_profile(request)
|
116
|
+
make_request(request, DeleteCustomerPaymentProfileResponse, Type::API_DELETE_CUSTOMER_PAYMENT_PROFILE)
|
117
|
+
end
|
118
|
+
|
119
|
+
# This request enables you to create a customer shipping profile.
|
120
|
+
#
|
121
|
+
# See spec/api_spec.rb for usage examples
|
122
|
+
def create_customer_shipping_profile(request)
|
123
|
+
make_request(request, CreateCustomerShippingAddressResponse, Type::API_CREATE_CUSTOMER_SHIPPING_PROFILE)
|
124
|
+
end
|
125
|
+
|
126
|
+
# This request enables you to retrieve a customer shipping profile.
|
127
|
+
#
|
128
|
+
# See spec/api_spec.rb for usage examples
|
129
|
+
def get_customer_shipping_profile(request)
|
130
|
+
make_request(request, GetCustomerShippingAddressResponse, Type::API_GET_CUSTOMER_SHIPPING_PROFILE)
|
131
|
+
end
|
132
|
+
|
133
|
+
# This request enables you to update a customer shipping profile.
|
134
|
+
#
|
135
|
+
# See spec/api_spec.rb for usage examples
|
136
|
+
def update_customer_shipping_profile(request)
|
137
|
+
make_request(request, UpdateCustomerShippingAddressResponse, Type::API_UPDATE_CUSTOMER_SHIPPING_PROFILE)
|
138
|
+
end
|
139
|
+
|
140
|
+
# This request enables you to delete a customer shipping profile.
|
141
|
+
#
|
142
|
+
# See spec/api_spec.rb for usage examples
|
143
|
+
def delete_customer_shipping_profile(request)
|
144
|
+
make_request(request, DeleteCustomerShippingAddressResponse, Type::API_DELETE_CUSTOMER_SHIPPING_PROFILE)
|
145
|
+
end
|
146
|
+
|
147
|
+
# This request enables you to create a customer profile, payment
|
148
|
+
# profile, and shipping profile from an existing successful transaction.
|
149
|
+
# NOTE: Network tokenized transactions (e.g. Apple Pay), or PayPal
|
150
|
+
# should not be used to create payment profiles.
|
151
|
+
#
|
152
|
+
# See spec/api_spec.rb for usage examples
|
153
|
+
def create_customer_profile_from_transaction(request)
|
154
|
+
make_request(request, CreateProfileResponse, Type::API_CREATE_CUSTOMER_PROFILE_FROM_TRANSACTION)
|
155
|
+
end
|
156
|
+
|
157
|
+
# This request enables you to decrypt a payment data blob.
|
158
|
+
#
|
159
|
+
# See spec/api_spec.rb for usage examples
|
160
|
+
def decrypt_payment_data(request)
|
161
|
+
make_request(request, DecryptPaymentDataResponse, Type::API_DECRYPT_PAYMENT_DATA)
|
162
|
+
end
|
163
|
+
|
164
|
+
# This request enables confirm authentication values.
|
165
|
+
#
|
166
|
+
# See spec/api_spec.rb for usage examples
|
167
|
+
def authenticate_test_request(request)
|
168
|
+
make_request(request, AuthenticateTestResponse, Type::API_AUTHENTICATE_TEST_REQUEST)
|
169
|
+
end
|
170
|
+
|
171
|
+
# This request enables you to get batch statistics details.
|
172
|
+
#
|
173
|
+
# See spec/api_spec.rb for usage examples
|
174
|
+
def get_batch_statistics(request)
|
175
|
+
make_request(request, GetBatchStatisticsResponse, Type::API_GET_BATCH_STATISTICS)
|
176
|
+
end
|
177
|
+
|
178
|
+
# This request enables you to get batch transaction details.
|
179
|
+
#
|
180
|
+
# See spec/api_spec.rb for usage examples
|
181
|
+
def get_transaction_details(request)
|
182
|
+
make_request(request, GetTransactionDetailsResponse, Type::API_GET_TRANSACTION_DETAILS)
|
183
|
+
end
|
184
|
+
|
185
|
+
# This request enables you to get batch settled transaction details.
|
186
|
+
#
|
187
|
+
# See spec/api_spec.rb for usage examples
|
188
|
+
def get_settled_batch_list(request)
|
189
|
+
make_request(request, GetSettledBatchListResponse, Type::API_GET_SETTLED_BATCH_LIST)
|
190
|
+
end
|
191
|
+
|
192
|
+
# This request enables you to get batch unsettled transaction details.
|
193
|
+
#
|
194
|
+
# See spec/api_spec.rb for usage examples
|
195
|
+
def get_unsettled_transaction_list(request)
|
196
|
+
make_request(request, GetUnsettledTransactionListResponse, Type::API_GET_UNSETTLED_TRANSACTION_LIST)
|
197
|
+
end
|
198
|
+
|
199
|
+
# This request enables confirm authentication values.
|
200
|
+
#
|
201
|
+
# See spec/api_spec.rb for usage examples
|
202
|
+
def get_hosted_profile_page(request)
|
203
|
+
make_request(request, GetHostedProfilePageResponse, Type::API_GET_HOSTED_PROFILE_PAGE)
|
204
|
+
end
|
205
|
+
|
206
|
+
# This request enables you to update split tender group.
|
207
|
+
#
|
208
|
+
# See spec/api_spec.rb for usage examples
|
209
|
+
def update_split_tender_group(request)
|
210
|
+
make_request(request, UpdateSplitTenderGroupResponse, Type::API_UPDATE_SPLIT_TENDER_GROUP)
|
211
|
+
end
|
212
|
+
|
213
|
+
# This request enables you to get customer payment profile list.
|
214
|
+
#
|
215
|
+
# See spec/api_spec.rb for usage examples
|
216
|
+
def get_customer_payment_profile_list(request)
|
217
|
+
make_request(request, GetCustomerPaymentProfileListResponse, Type::API_GET_CUSTOMER_PAYMENT_PROFILE_LIST)
|
218
|
+
end
|
219
|
+
|
220
|
+
# This request enables you to get ARB Subscription.
|
221
|
+
#
|
222
|
+
# See spec/api_spec.rb for usage examples
|
223
|
+
def arb_get_subscription_request(request)
|
224
|
+
make_request(request, ARBGetSubscriptionResponse, Type::API_ARB_GET_SUBSCRIPTION_REQUEST)
|
225
|
+
end
|
226
|
+
|
227
|
+
# This request enables you to get transaction list.
|
228
|
+
#
|
229
|
+
# See spec/api_spec.rb for usage examples
|
230
|
+
def get_transaction_list(request)
|
231
|
+
make_request(request, GetTransactionListResponse, Type::API_GET_TRANSACTION_LIST)
|
232
|
+
end
|
233
|
+
|
234
|
+
# This request enables you to validate customer payment profile.
|
235
|
+
#
|
236
|
+
# See spec/api_spec.rb for usage examples
|
237
|
+
def validate_customer_payment_profile(request)
|
238
|
+
make_request(request, ValidateCustomerPaymentProfileResponse, Type::API_VALIDATE_CUSTOMER_PAYMENT_PROFILE)
|
239
|
+
end
|
240
|
+
|
241
|
+
def get_merchant_details(request)
|
242
|
+
make_request(request, GetMerchantDetailsResponse, Type::API_GET_MERCHANT_DETAILS)
|
243
|
+
end
|
244
|
+
|
245
|
+
def get_hosted_payment_page(request)
|
246
|
+
make_request(request, GetHostedPaymentPageResponse, Type::API_GET_HOSTED_PAYMENT_PAGE)
|
247
|
+
end
|
248
|
+
|
249
|
+
def update_held_transaction(request)
|
250
|
+
make_request(request, UpdateHeldTransactionResponse, Type::API_UDPATE_HELD_TRANSACTION)
|
251
|
+
end
|
252
|
+
|
253
|
+
def get_transaction_list_for_customer(request)
|
254
|
+
make_request(request, GetTransactionListResponse, Type::API_GET_TRANSACTION_LIST_FOR_CUSTOMER)
|
255
|
+
end
|
256
|
+
|
257
|
+
def update_merchant_details(request)
|
258
|
+
make_request(request, UpdateMerchantDetailsResponse, Type::API_UPDATE_MERCHANT_DETAILS)
|
259
|
+
end
|
260
|
+
|
261
|
+
def get_customer_payment_profile_nonce(request)
|
262
|
+
make_request(request, GetCustomerPaymentProfileNonceResponse, Type::API_GET_CUSTOMER_PAYMENT_PROFILE_NONCE)
|
263
|
+
end
|
264
|
+
end
|
265
|
+
end
|