ultracart_api 4.1.162 → 4.1.164
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/LICENSE +201 -201
- data/README.md +603 -601
- data/docs/AffiliateApi.md +455 -455
- data/docs/AutoOrderApi.md +1694 -1694
- data/docs/BulkApi.md +335 -335
- data/docs/ChannelPartnerApi.md +1678 -1678
- data/docs/CheckoutApi.md +1622 -1622
- data/docs/ConversationApi.md +7867 -7867
- data/docs/ConversationEmbedApi.md +226 -226
- data/docs/CouponApi.md +1522 -1522
- data/docs/CustomerApi.md +2849 -2849
- data/docs/DatawarehouseApi.md +1637 -1637
- data/docs/FraudApi.md +332 -332
- data/docs/FulfillmentApi.md +567 -567
- data/docs/GiftCertificateApi.md +617 -617
- data/docs/IntegrationLogApi.md +290 -290
- data/docs/ItemApi.md +2502 -2502
- data/docs/OauthApi.md +311 -311
- data/docs/OrderApi.md +3396 -3396
- data/docs/SfvbApi.md +3883 -3883
- data/docs/SsoApi.md +223 -223
- data/docs/StorefrontApi.md +10035 -10035
- data/docs/TaxApi.md +1699 -1699
- data/docs/UserApi.md +606 -606
- data/docs/WebhookApi.md +840 -840
- data/docs/WorkflowApi.md +666 -666
- data/lib/ultracart_api/version.rb +1 -1
- metadata +3 -3
data/docs/FraudApi.md
CHANGED
|
@@ -1,332 +1,332 @@
|
|
|
1
|
-
# UltracartClient::FraudApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *https://secure.ultracart.com/rest/v2*
|
|
4
|
-
|
|
5
|
-
| Method | HTTP request | Description |
|
|
6
|
-
| ------ | ------------ | ----------- |
|
|
7
|
-
| [**decline_email**](FraudApi.md#decline_email) | **POST** /fraud/decline_email | Decline email during checkout fraud review |
|
|
8
|
-
| [**delete_fraud_rule**](FraudApi.md#delete_fraud_rule) | **DELETE** /fraud/rules/{fraud_rule_oid} | Delete a fraud rule |
|
|
9
|
-
| [**establish_fraud_rules_from_order**](FraudApi.md#establish_fraud_rules_from_order) | **POST** /fraud/rules/from_order | Establish fraud rules from an order |
|
|
10
|
-
| [**get_fraud_lookup_values**](FraudApi.md#get_fraud_lookup_values) | **GET** /fraud/lookup_values | Retrieve fraud rule lookup values |
|
|
11
|
-
| [**insert_fraud_rule**](FraudApi.md#insert_fraud_rule) | **POST** /fraud/rules | Insert a fraud rule |
|
|
12
|
-
| [**search_fraud_rules**](FraudApi.md#search_fraud_rules) | **POST** /fraud/rules/search | Search fraud rules |
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
## decline_email
|
|
16
|
-
|
|
17
|
-
> decline_email(fraud_decline_emails_request)
|
|
18
|
-
|
|
19
|
-
Decline email during checkout fraud review
|
|
20
|
-
|
|
21
|
-
Adds one email address to the fraud decline list for this merchant account.
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
### Examples
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
(No example for this operation).
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
#### Using the decline_email_with_http_info variant
|
|
31
|
-
|
|
32
|
-
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
33
|
-
|
|
34
|
-
> <Array(nil, Integer, Hash)> decline_email_with_http_info(fraud_decline_emails_request)
|
|
35
|
-
|
|
36
|
-
```ruby
|
|
37
|
-
begin
|
|
38
|
-
# Decline email during checkout fraud review
|
|
39
|
-
data, status_code, headers = api_instance.decline_email_with_http_info(fraud_decline_emails_request)
|
|
40
|
-
p status_code # => 2xx
|
|
41
|
-
p headers # => { ... }
|
|
42
|
-
p data # => nil
|
|
43
|
-
rescue UltracartClient::ApiError => e
|
|
44
|
-
puts "Error when calling FraudApi->decline_email_with_http_info: #{e}"
|
|
45
|
-
end
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
### Parameters
|
|
49
|
-
|
|
50
|
-
| Name | Type | Description | Notes |
|
|
51
|
-
| ---- | ---- | ----------- | ----- |
|
|
52
|
-
| **fraud_decline_emails_request** | [**FraudDeclineEmailRequest**](FraudDeclineEmailRequest.md) | Fraud decline emails request | |
|
|
53
|
-
|
|
54
|
-
### Return type
|
|
55
|
-
|
|
56
|
-
nil (empty response body)
|
|
57
|
-
|
|
58
|
-
### Authorization
|
|
59
|
-
|
|
60
|
-
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
61
|
-
|
|
62
|
-
### HTTP request headers
|
|
63
|
-
|
|
64
|
-
- **Content-Type**: application/json
|
|
65
|
-
- **Accept**: application/json
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
## delete_fraud_rule
|
|
69
|
-
|
|
70
|
-
> delete_fraud_rule(fraud_rule_oid)
|
|
71
|
-
|
|
72
|
-
Delete a fraud rule
|
|
73
|
-
|
|
74
|
-
Deletes a fraud rule for this merchant account.
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
### Examples
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
(No example for this operation).
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
#### Using the delete_fraud_rule_with_http_info variant
|
|
84
|
-
|
|
85
|
-
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
86
|
-
|
|
87
|
-
> <Array(nil, Integer, Hash)> delete_fraud_rule_with_http_info(fraud_rule_oid)
|
|
88
|
-
|
|
89
|
-
```ruby
|
|
90
|
-
begin
|
|
91
|
-
# Delete a fraud rule
|
|
92
|
-
data, status_code, headers = api_instance.delete_fraud_rule_with_http_info(fraud_rule_oid)
|
|
93
|
-
p status_code # => 2xx
|
|
94
|
-
p headers # => { ... }
|
|
95
|
-
p data # => nil
|
|
96
|
-
rescue UltracartClient::ApiError => e
|
|
97
|
-
puts "Error when calling FraudApi->delete_fraud_rule_with_http_info: #{e}"
|
|
98
|
-
end
|
|
99
|
-
```
|
|
100
|
-
|
|
101
|
-
### Parameters
|
|
102
|
-
|
|
103
|
-
| Name | Type | Description | Notes |
|
|
104
|
-
| ---- | ---- | ----------- | ----- |
|
|
105
|
-
| **fraud_rule_oid** | **Integer** | | |
|
|
106
|
-
|
|
107
|
-
### Return type
|
|
108
|
-
|
|
109
|
-
nil (empty response body)
|
|
110
|
-
|
|
111
|
-
### Authorization
|
|
112
|
-
|
|
113
|
-
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
114
|
-
|
|
115
|
-
### HTTP request headers
|
|
116
|
-
|
|
117
|
-
- **Content-Type**: Not defined
|
|
118
|
-
- **Accept**: application/json
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
## establish_fraud_rules_from_order
|
|
122
|
-
|
|
123
|
-
> <FraudRulesResponse> establish_fraud_rules_from_order(fraud_rule_from_order_request)
|
|
124
|
-
|
|
125
|
-
Establish fraud rules from an order
|
|
126
|
-
|
|
127
|
-
Creates one or more fraud rules for this merchant account derived from an existing order, mirroring the 'establish fraud filter' action in the order processing screen. Select which filters to establish; all values are taken from the order. The IP rule is created against the order's /24 subnet (last octet masked). The credit card filter duplicates the order's stored card vault token, so no card number is sent through the API. Filters whose order data is missing (no stored card, no email, no usable IP, or no numeric street) are skipped and reported in the warning slot rather than failing the request.
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
### Examples
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
(No example for this operation).
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
#### Using the establish_fraud_rules_from_order_with_http_info variant
|
|
137
|
-
|
|
138
|
-
This returns an Array which contains the response data, status code and headers.
|
|
139
|
-
|
|
140
|
-
> <Array(<FraudRulesResponse>, Integer, Hash)> establish_fraud_rules_from_order_with_http_info(fraud_rule_from_order_request)
|
|
141
|
-
|
|
142
|
-
```ruby
|
|
143
|
-
begin
|
|
144
|
-
# Establish fraud rules from an order
|
|
145
|
-
data, status_code, headers = api_instance.establish_fraud_rules_from_order_with_http_info(fraud_rule_from_order_request)
|
|
146
|
-
p status_code # => 2xx
|
|
147
|
-
p headers # => { ... }
|
|
148
|
-
p data # => <FraudRulesResponse>
|
|
149
|
-
rescue UltracartClient::ApiError => e
|
|
150
|
-
puts "Error when calling FraudApi->establish_fraud_rules_from_order_with_http_info: #{e}"
|
|
151
|
-
end
|
|
152
|
-
```
|
|
153
|
-
|
|
154
|
-
### Parameters
|
|
155
|
-
|
|
156
|
-
| Name | Type | Description | Notes |
|
|
157
|
-
| ---- | ---- | ----------- | ----- |
|
|
158
|
-
| **fraud_rule_from_order_request** | [**FraudRuleFromOrderRequest**](FraudRuleFromOrderRequest.md) | Fraud rule from order request | |
|
|
159
|
-
|
|
160
|
-
### Return type
|
|
161
|
-
|
|
162
|
-
[**FraudRulesResponse**](FraudRulesResponse.md)
|
|
163
|
-
|
|
164
|
-
### Authorization
|
|
165
|
-
|
|
166
|
-
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
167
|
-
|
|
168
|
-
### HTTP request headers
|
|
169
|
-
|
|
170
|
-
- **Content-Type**: application/json
|
|
171
|
-
- **Accept**: application/json
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
## get_fraud_lookup_values
|
|
175
|
-
|
|
176
|
-
> <FraudLookupValuesResponse> get_fraud_lookup_values
|
|
177
|
-
|
|
178
|
-
Retrieve fraud rule lookup values
|
|
179
|
-
|
|
180
|
-
Returns the dropdown values required to build valid fraud rule insert and search requests. Includes rule types, failure actions, user actions, IP range types, AVS match types, the merchant's rotating transaction gateways, screen branding themes, countries, and affiliates.
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
### Examples
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
(No example for this operation).
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
#### Using the get_fraud_lookup_values_with_http_info variant
|
|
190
|
-
|
|
191
|
-
This returns an Array which contains the response data, status code and headers.
|
|
192
|
-
|
|
193
|
-
> <Array(<FraudLookupValuesResponse>, Integer, Hash)> get_fraud_lookup_values_with_http_info
|
|
194
|
-
|
|
195
|
-
```ruby
|
|
196
|
-
begin
|
|
197
|
-
# Retrieve fraud rule lookup values
|
|
198
|
-
data, status_code, headers = api_instance.get_fraud_lookup_values_with_http_info
|
|
199
|
-
p status_code # => 2xx
|
|
200
|
-
p headers # => { ... }
|
|
201
|
-
p data # => <FraudLookupValuesResponse>
|
|
202
|
-
rescue UltracartClient::ApiError => e
|
|
203
|
-
puts "Error when calling FraudApi->get_fraud_lookup_values_with_http_info: #{e}"
|
|
204
|
-
end
|
|
205
|
-
```
|
|
206
|
-
|
|
207
|
-
### Parameters
|
|
208
|
-
|
|
209
|
-
This endpoint does not need any parameter.
|
|
210
|
-
|
|
211
|
-
### Return type
|
|
212
|
-
|
|
213
|
-
[**FraudLookupValuesResponse**](FraudLookupValuesResponse.md)
|
|
214
|
-
|
|
215
|
-
### Authorization
|
|
216
|
-
|
|
217
|
-
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
218
|
-
|
|
219
|
-
### HTTP request headers
|
|
220
|
-
|
|
221
|
-
- **Content-Type**: Not defined
|
|
222
|
-
- **Accept**: application/json
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
## insert_fraud_rule
|
|
226
|
-
|
|
227
|
-
> <FraudRuleResponse> insert_fraud_rule(fraud_rule_insert_request)
|
|
228
|
-
|
|
229
|
-
Insert a fraud rule
|
|
230
|
-
|
|
231
|
-
Creates a fraud rule for this merchant account. Field names in the request body are semantic (eg amount_threshold, email, ip_address). Call GET /v2/fraud/lookup_values for the list of valid rule_type, failure_action, and related dropdown values. The 'credit card matches' rule type is not supported via REST.
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
### Examples
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
(No example for this operation).
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
#### Using the insert_fraud_rule_with_http_info variant
|
|
241
|
-
|
|
242
|
-
This returns an Array which contains the response data, status code and headers.
|
|
243
|
-
|
|
244
|
-
> <Array(<FraudRuleResponse>, Integer, Hash)> insert_fraud_rule_with_http_info(fraud_rule_insert_request)
|
|
245
|
-
|
|
246
|
-
```ruby
|
|
247
|
-
begin
|
|
248
|
-
# Insert a fraud rule
|
|
249
|
-
data, status_code, headers = api_instance.insert_fraud_rule_with_http_info(fraud_rule_insert_request)
|
|
250
|
-
p status_code # => 2xx
|
|
251
|
-
p headers # => { ... }
|
|
252
|
-
p data # => <FraudRuleResponse>
|
|
253
|
-
rescue UltracartClient::ApiError => e
|
|
254
|
-
puts "Error when calling FraudApi->insert_fraud_rule_with_http_info: #{e}"
|
|
255
|
-
end
|
|
256
|
-
```
|
|
257
|
-
|
|
258
|
-
### Parameters
|
|
259
|
-
|
|
260
|
-
| Name | Type | Description | Notes |
|
|
261
|
-
| ---- | ---- | ----------- | ----- |
|
|
262
|
-
| **fraud_rule_insert_request** | [**FraudRuleInsertRequest**](FraudRuleInsertRequest.md) | Fraud rule insert request | |
|
|
263
|
-
|
|
264
|
-
### Return type
|
|
265
|
-
|
|
266
|
-
[**FraudRuleResponse**](FraudRuleResponse.md)
|
|
267
|
-
|
|
268
|
-
### Authorization
|
|
269
|
-
|
|
270
|
-
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
271
|
-
|
|
272
|
-
### HTTP request headers
|
|
273
|
-
|
|
274
|
-
- **Content-Type**: application/json
|
|
275
|
-
- **Accept**: application/json
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
## search_fraud_rules
|
|
279
|
-
|
|
280
|
-
> <FraudRulesResponse> search_fraud_rules(fraud_rule_search_request, opts)
|
|
281
|
-
|
|
282
|
-
Search fraud rules
|
|
283
|
-
|
|
284
|
-
Searches fraud rules for this merchant account using semantic filter fields. Pagination and sort are passed as query parameters (_limit, _offset, _sort). You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination. Results are capped at 10,000 records by ElasticSearch and the warning slot indicates when that cap was hit. Use more selective filters in that case.
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
### Examples
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
(No example for this operation).
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
#### Using the search_fraud_rules_with_http_info variant
|
|
294
|
-
|
|
295
|
-
This returns an Array which contains the response data, status code and headers.
|
|
296
|
-
|
|
297
|
-
> <Array(<FraudRulesResponse>, Integer, Hash)> search_fraud_rules_with_http_info(fraud_rule_search_request, opts)
|
|
298
|
-
|
|
299
|
-
```ruby
|
|
300
|
-
begin
|
|
301
|
-
# Search fraud rules
|
|
302
|
-
data, status_code, headers = api_instance.search_fraud_rules_with_http_info(fraud_rule_search_request, opts)
|
|
303
|
-
p status_code # => 2xx
|
|
304
|
-
p headers # => { ... }
|
|
305
|
-
p data # => <FraudRulesResponse>
|
|
306
|
-
rescue UltracartClient::ApiError => e
|
|
307
|
-
puts "Error when calling FraudApi->search_fraud_rules_with_http_info: #{e}"
|
|
308
|
-
end
|
|
309
|
-
```
|
|
310
|
-
|
|
311
|
-
### Parameters
|
|
312
|
-
|
|
313
|
-
| Name | Type | Description | Notes |
|
|
314
|
-
| ---- | ---- | ----------- | ----- |
|
|
315
|
-
| **fraud_rule_search_request** | [**FraudRuleSearchRequest**](FraudRuleSearchRequest.md) | Fraud rule search request | |
|
|
316
|
-
| **_limit** | **Integer** | The maximum number of records to return on this one API call. (Maximum 200) | [optional][default to 100] |
|
|
317
|
-
| **_offset** | **Integer** | Pagination of the record set. Offset is a zero based index. | [optional][default to 0] |
|
|
318
|
-
| **_sort** | **String** | The sort order of the fraud rules. See Sorting documentation for examples of using multiple values and sorting by ascending and descending. | [optional] |
|
|
319
|
-
|
|
320
|
-
### Return type
|
|
321
|
-
|
|
322
|
-
[**FraudRulesResponse**](FraudRulesResponse.md)
|
|
323
|
-
|
|
324
|
-
### Authorization
|
|
325
|
-
|
|
326
|
-
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
327
|
-
|
|
328
|
-
### HTTP request headers
|
|
329
|
-
|
|
330
|
-
- **Content-Type**: application/json
|
|
331
|
-
- **Accept**: application/json
|
|
332
|
-
|
|
1
|
+
# UltracartClient::FraudApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://secure.ultracart.com/rest/v2*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**decline_email**](FraudApi.md#decline_email) | **POST** /fraud/decline_email | Decline email during checkout fraud review |
|
|
8
|
+
| [**delete_fraud_rule**](FraudApi.md#delete_fraud_rule) | **DELETE** /fraud/rules/{fraud_rule_oid} | Delete a fraud rule |
|
|
9
|
+
| [**establish_fraud_rules_from_order**](FraudApi.md#establish_fraud_rules_from_order) | **POST** /fraud/rules/from_order | Establish fraud rules from an order |
|
|
10
|
+
| [**get_fraud_lookup_values**](FraudApi.md#get_fraud_lookup_values) | **GET** /fraud/lookup_values | Retrieve fraud rule lookup values |
|
|
11
|
+
| [**insert_fraud_rule**](FraudApi.md#insert_fraud_rule) | **POST** /fraud/rules | Insert a fraud rule |
|
|
12
|
+
| [**search_fraud_rules**](FraudApi.md#search_fraud_rules) | **POST** /fraud/rules/search | Search fraud rules |
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## decline_email
|
|
16
|
+
|
|
17
|
+
> decline_email(fraud_decline_emails_request)
|
|
18
|
+
|
|
19
|
+
Decline email during checkout fraud review
|
|
20
|
+
|
|
21
|
+
Adds one email address to the fraud decline list for this merchant account.
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Examples
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
(No example for this operation).
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
#### Using the decline_email_with_http_info variant
|
|
31
|
+
|
|
32
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
33
|
+
|
|
34
|
+
> <Array(nil, Integer, Hash)> decline_email_with_http_info(fraud_decline_emails_request)
|
|
35
|
+
|
|
36
|
+
```ruby
|
|
37
|
+
begin
|
|
38
|
+
# Decline email during checkout fraud review
|
|
39
|
+
data, status_code, headers = api_instance.decline_email_with_http_info(fraud_decline_emails_request)
|
|
40
|
+
p status_code # => 2xx
|
|
41
|
+
p headers # => { ... }
|
|
42
|
+
p data # => nil
|
|
43
|
+
rescue UltracartClient::ApiError => e
|
|
44
|
+
puts "Error when calling FraudApi->decline_email_with_http_info: #{e}"
|
|
45
|
+
end
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### Parameters
|
|
49
|
+
|
|
50
|
+
| Name | Type | Description | Notes |
|
|
51
|
+
| ---- | ---- | ----------- | ----- |
|
|
52
|
+
| **fraud_decline_emails_request** | [**FraudDeclineEmailRequest**](FraudDeclineEmailRequest.md) | Fraud decline emails request | |
|
|
53
|
+
|
|
54
|
+
### Return type
|
|
55
|
+
|
|
56
|
+
nil (empty response body)
|
|
57
|
+
|
|
58
|
+
### Authorization
|
|
59
|
+
|
|
60
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
61
|
+
|
|
62
|
+
### HTTP request headers
|
|
63
|
+
|
|
64
|
+
- **Content-Type**: application/json
|
|
65
|
+
- **Accept**: application/json
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
## delete_fraud_rule
|
|
69
|
+
|
|
70
|
+
> delete_fraud_rule(fraud_rule_oid)
|
|
71
|
+
|
|
72
|
+
Delete a fraud rule
|
|
73
|
+
|
|
74
|
+
Deletes a fraud rule for this merchant account.
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
### Examples
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
(No example for this operation).
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
#### Using the delete_fraud_rule_with_http_info variant
|
|
84
|
+
|
|
85
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
86
|
+
|
|
87
|
+
> <Array(nil, Integer, Hash)> delete_fraud_rule_with_http_info(fraud_rule_oid)
|
|
88
|
+
|
|
89
|
+
```ruby
|
|
90
|
+
begin
|
|
91
|
+
# Delete a fraud rule
|
|
92
|
+
data, status_code, headers = api_instance.delete_fraud_rule_with_http_info(fraud_rule_oid)
|
|
93
|
+
p status_code # => 2xx
|
|
94
|
+
p headers # => { ... }
|
|
95
|
+
p data # => nil
|
|
96
|
+
rescue UltracartClient::ApiError => e
|
|
97
|
+
puts "Error when calling FraudApi->delete_fraud_rule_with_http_info: #{e}"
|
|
98
|
+
end
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
### Parameters
|
|
102
|
+
|
|
103
|
+
| Name | Type | Description | Notes |
|
|
104
|
+
| ---- | ---- | ----------- | ----- |
|
|
105
|
+
| **fraud_rule_oid** | **Integer** | | |
|
|
106
|
+
|
|
107
|
+
### Return type
|
|
108
|
+
|
|
109
|
+
nil (empty response body)
|
|
110
|
+
|
|
111
|
+
### Authorization
|
|
112
|
+
|
|
113
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
114
|
+
|
|
115
|
+
### HTTP request headers
|
|
116
|
+
|
|
117
|
+
- **Content-Type**: Not defined
|
|
118
|
+
- **Accept**: application/json
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
## establish_fraud_rules_from_order
|
|
122
|
+
|
|
123
|
+
> <FraudRulesResponse> establish_fraud_rules_from_order(fraud_rule_from_order_request)
|
|
124
|
+
|
|
125
|
+
Establish fraud rules from an order
|
|
126
|
+
|
|
127
|
+
Creates one or more fraud rules for this merchant account derived from an existing order, mirroring the 'establish fraud filter' action in the order processing screen. Select which filters to establish; all values are taken from the order. The IP rule is created against the order's /24 subnet (last octet masked). The credit card filter duplicates the order's stored card vault token, so no card number is sent through the API. Filters whose order data is missing (no stored card, no email, no usable IP, or no numeric street) are skipped and reported in the warning slot rather than failing the request.
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
### Examples
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
(No example for this operation).
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
#### Using the establish_fraud_rules_from_order_with_http_info variant
|
|
137
|
+
|
|
138
|
+
This returns an Array which contains the response data, status code and headers.
|
|
139
|
+
|
|
140
|
+
> <Array(<FraudRulesResponse>, Integer, Hash)> establish_fraud_rules_from_order_with_http_info(fraud_rule_from_order_request)
|
|
141
|
+
|
|
142
|
+
```ruby
|
|
143
|
+
begin
|
|
144
|
+
# Establish fraud rules from an order
|
|
145
|
+
data, status_code, headers = api_instance.establish_fraud_rules_from_order_with_http_info(fraud_rule_from_order_request)
|
|
146
|
+
p status_code # => 2xx
|
|
147
|
+
p headers # => { ... }
|
|
148
|
+
p data # => <FraudRulesResponse>
|
|
149
|
+
rescue UltracartClient::ApiError => e
|
|
150
|
+
puts "Error when calling FraudApi->establish_fraud_rules_from_order_with_http_info: #{e}"
|
|
151
|
+
end
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
### Parameters
|
|
155
|
+
|
|
156
|
+
| Name | Type | Description | Notes |
|
|
157
|
+
| ---- | ---- | ----------- | ----- |
|
|
158
|
+
| **fraud_rule_from_order_request** | [**FraudRuleFromOrderRequest**](FraudRuleFromOrderRequest.md) | Fraud rule from order request | |
|
|
159
|
+
|
|
160
|
+
### Return type
|
|
161
|
+
|
|
162
|
+
[**FraudRulesResponse**](FraudRulesResponse.md)
|
|
163
|
+
|
|
164
|
+
### Authorization
|
|
165
|
+
|
|
166
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
167
|
+
|
|
168
|
+
### HTTP request headers
|
|
169
|
+
|
|
170
|
+
- **Content-Type**: application/json
|
|
171
|
+
- **Accept**: application/json
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
## get_fraud_lookup_values
|
|
175
|
+
|
|
176
|
+
> <FraudLookupValuesResponse> get_fraud_lookup_values
|
|
177
|
+
|
|
178
|
+
Retrieve fraud rule lookup values
|
|
179
|
+
|
|
180
|
+
Returns the dropdown values required to build valid fraud rule insert and search requests. Includes rule types, failure actions, user actions, IP range types, AVS match types, the merchant's rotating transaction gateways, screen branding themes, countries, and affiliates.
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
### Examples
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
(No example for this operation).
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
#### Using the get_fraud_lookup_values_with_http_info variant
|
|
190
|
+
|
|
191
|
+
This returns an Array which contains the response data, status code and headers.
|
|
192
|
+
|
|
193
|
+
> <Array(<FraudLookupValuesResponse>, Integer, Hash)> get_fraud_lookup_values_with_http_info
|
|
194
|
+
|
|
195
|
+
```ruby
|
|
196
|
+
begin
|
|
197
|
+
# Retrieve fraud rule lookup values
|
|
198
|
+
data, status_code, headers = api_instance.get_fraud_lookup_values_with_http_info
|
|
199
|
+
p status_code # => 2xx
|
|
200
|
+
p headers # => { ... }
|
|
201
|
+
p data # => <FraudLookupValuesResponse>
|
|
202
|
+
rescue UltracartClient::ApiError => e
|
|
203
|
+
puts "Error when calling FraudApi->get_fraud_lookup_values_with_http_info: #{e}"
|
|
204
|
+
end
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
### Parameters
|
|
208
|
+
|
|
209
|
+
This endpoint does not need any parameter.
|
|
210
|
+
|
|
211
|
+
### Return type
|
|
212
|
+
|
|
213
|
+
[**FraudLookupValuesResponse**](FraudLookupValuesResponse.md)
|
|
214
|
+
|
|
215
|
+
### Authorization
|
|
216
|
+
|
|
217
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
218
|
+
|
|
219
|
+
### HTTP request headers
|
|
220
|
+
|
|
221
|
+
- **Content-Type**: Not defined
|
|
222
|
+
- **Accept**: application/json
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
## insert_fraud_rule
|
|
226
|
+
|
|
227
|
+
> <FraudRuleResponse> insert_fraud_rule(fraud_rule_insert_request)
|
|
228
|
+
|
|
229
|
+
Insert a fraud rule
|
|
230
|
+
|
|
231
|
+
Creates a fraud rule for this merchant account. Field names in the request body are semantic (eg amount_threshold, email, ip_address). Call GET /v2/fraud/lookup_values for the list of valid rule_type, failure_action, and related dropdown values. The 'credit card matches' rule type is not supported via REST.
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
### Examples
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
(No example for this operation).
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
#### Using the insert_fraud_rule_with_http_info variant
|
|
241
|
+
|
|
242
|
+
This returns an Array which contains the response data, status code and headers.
|
|
243
|
+
|
|
244
|
+
> <Array(<FraudRuleResponse>, Integer, Hash)> insert_fraud_rule_with_http_info(fraud_rule_insert_request)
|
|
245
|
+
|
|
246
|
+
```ruby
|
|
247
|
+
begin
|
|
248
|
+
# Insert a fraud rule
|
|
249
|
+
data, status_code, headers = api_instance.insert_fraud_rule_with_http_info(fraud_rule_insert_request)
|
|
250
|
+
p status_code # => 2xx
|
|
251
|
+
p headers # => { ... }
|
|
252
|
+
p data # => <FraudRuleResponse>
|
|
253
|
+
rescue UltracartClient::ApiError => e
|
|
254
|
+
puts "Error when calling FraudApi->insert_fraud_rule_with_http_info: #{e}"
|
|
255
|
+
end
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
### Parameters
|
|
259
|
+
|
|
260
|
+
| Name | Type | Description | Notes |
|
|
261
|
+
| ---- | ---- | ----------- | ----- |
|
|
262
|
+
| **fraud_rule_insert_request** | [**FraudRuleInsertRequest**](FraudRuleInsertRequest.md) | Fraud rule insert request | |
|
|
263
|
+
|
|
264
|
+
### Return type
|
|
265
|
+
|
|
266
|
+
[**FraudRuleResponse**](FraudRuleResponse.md)
|
|
267
|
+
|
|
268
|
+
### Authorization
|
|
269
|
+
|
|
270
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
271
|
+
|
|
272
|
+
### HTTP request headers
|
|
273
|
+
|
|
274
|
+
- **Content-Type**: application/json
|
|
275
|
+
- **Accept**: application/json
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
## search_fraud_rules
|
|
279
|
+
|
|
280
|
+
> <FraudRulesResponse> search_fraud_rules(fraud_rule_search_request, opts)
|
|
281
|
+
|
|
282
|
+
Search fraud rules
|
|
283
|
+
|
|
284
|
+
Searches fraud rules for this merchant account using semantic filter fields. Pagination and sort are passed as query parameters (_limit, _offset, _sort). You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination. Results are capped at 10,000 records by ElasticSearch and the warning slot indicates when that cap was hit. Use more selective filters in that case.
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
### Examples
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
(No example for this operation).
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
#### Using the search_fraud_rules_with_http_info variant
|
|
294
|
+
|
|
295
|
+
This returns an Array which contains the response data, status code and headers.
|
|
296
|
+
|
|
297
|
+
> <Array(<FraudRulesResponse>, Integer, Hash)> search_fraud_rules_with_http_info(fraud_rule_search_request, opts)
|
|
298
|
+
|
|
299
|
+
```ruby
|
|
300
|
+
begin
|
|
301
|
+
# Search fraud rules
|
|
302
|
+
data, status_code, headers = api_instance.search_fraud_rules_with_http_info(fraud_rule_search_request, opts)
|
|
303
|
+
p status_code # => 2xx
|
|
304
|
+
p headers # => { ... }
|
|
305
|
+
p data # => <FraudRulesResponse>
|
|
306
|
+
rescue UltracartClient::ApiError => e
|
|
307
|
+
puts "Error when calling FraudApi->search_fraud_rules_with_http_info: #{e}"
|
|
308
|
+
end
|
|
309
|
+
```
|
|
310
|
+
|
|
311
|
+
### Parameters
|
|
312
|
+
|
|
313
|
+
| Name | Type | Description | Notes |
|
|
314
|
+
| ---- | ---- | ----------- | ----- |
|
|
315
|
+
| **fraud_rule_search_request** | [**FraudRuleSearchRequest**](FraudRuleSearchRequest.md) | Fraud rule search request | |
|
|
316
|
+
| **_limit** | **Integer** | The maximum number of records to return on this one API call. (Maximum 200) | [optional][default to 100] |
|
|
317
|
+
| **_offset** | **Integer** | Pagination of the record set. Offset is a zero based index. | [optional][default to 0] |
|
|
318
|
+
| **_sort** | **String** | The sort order of the fraud rules. See Sorting documentation for examples of using multiple values and sorting by ascending and descending. | [optional] |
|
|
319
|
+
|
|
320
|
+
### Return type
|
|
321
|
+
|
|
322
|
+
[**FraudRulesResponse**](FraudRulesResponse.md)
|
|
323
|
+
|
|
324
|
+
### Authorization
|
|
325
|
+
|
|
326
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
327
|
+
|
|
328
|
+
### HTTP request headers
|
|
329
|
+
|
|
330
|
+
- **Content-Type**: application/json
|
|
331
|
+
- **Accept**: application/json
|
|
332
|
+
|