ultracart_api 4.1.96 → 4.1.97
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/README.md +9 -3
- data/docs/FraudApi.md +58 -4
- data/docs/FraudLookupAffiliate.md +20 -0
- data/docs/FraudLookupGateway.md +22 -0
- data/docs/FraudLookupTheme.md +22 -0
- data/docs/FraudLookupValues.md +16 -6
- data/docs/FraudRuleFromOrderRequest.md +30 -0
- data/docs/FraudRuleInsertRequest.md +13 -13
- data/docs/FraudRulePublic.md +25 -25
- data/docs/FraudRuleSearchRequest.md +16 -16
- data/lib/ultracart_api/api/fraud_api.rb +73 -4
- data/lib/ultracart_api/models/fraud_lookup_affiliate.rb +230 -0
- data/lib/ultracart_api/models/fraud_lookup_gateway.rb +240 -0
- data/lib/ultracart_api/models/fraud_lookup_theme.rb +240 -0
- data/lib/ultracart_api/models/fraud_lookup_values.rb +83 -13
- data/lib/ultracart_api/models/fraud_rule_from_order_request.rb +314 -0
- data/lib/ultracart_api/models/fraud_rule_insert_request.rb +25 -8
- data/lib/ultracart_api/models/fraud_rule_public.rb +28 -2
- data/lib/ultracart_api/models/fraud_rule_search_request.rb +16 -0
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +4 -0
- metadata +9 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 713e1c8d45bf621b2beb0af2a5f2cca5ad01b5e795c9ec44ba18144ecbadf65d
|
|
4
|
+
data.tar.gz: 06ab9e7eeeed38e86531b06b460cfe891c323613467aff6a7e79348660a48d44
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b8f837b96fde9815b8104b28b10b2b0e7019f54959fb1e5eb3f3bd0190ee4eab5ce81ef6f58bf7fb124a86bb077403caab63669ba2e07b68b9c626abcd9fe613
|
|
7
|
+
data.tar.gz: 66485a5d84cfb2646bc4ceaee71965a54a2894007fa88b4e8897c83faeb511f0d544341f9f653e771aac2ba838e98bc86407ac7428345b50ec768c3ced7eaa5b
|
data/README.md
CHANGED
|
@@ -7,7 +7,7 @@ Note: Every method has a sample for every language. See https://github.com/Ultr
|
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
8
8
|
|
|
9
9
|
- API version: 2.0.0
|
|
10
|
-
- Package version: 4.1.
|
|
10
|
+
- Package version: 4.1.97
|
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
|
12
12
|
- For more information, please visit [http://www.ultracart.com/api/](http://www.ultracart.com/api/)
|
|
13
13
|
|
|
@@ -16,7 +16,7 @@ This SDK is automatically generated by the [OpenAPI Generator](https://openapi-g
|
|
|
16
16
|
gemfile:
|
|
17
17
|
|
|
18
18
|
```shell
|
|
19
|
-
gem 'ultracart_api', '4.1.
|
|
19
|
+
gem 'ultracart_api', '4.1.97'
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
install:
|
|
@@ -353,8 +353,9 @@ Class | Method | HTTP request | Description
|
|
|
353
353
|
*UltracartClient::DatawarehouseApi* | [**update_custom_report**](docs/DatawarehouseApi.md#update_custom_report) | **PUT** /datawarehouse/custom_reports/{custom_report_oid} | Update a custom report
|
|
354
354
|
*UltracartClient::DatawarehouseApi* | [**update_custom_report_account_config**](docs/DatawarehouseApi.md#update_custom_report_account_config) | **PUT** /datawarehouse/custom_reports/account_config | Update custom report account config
|
|
355
355
|
*UltracartClient::DatawarehouseApi* | [**update_report**](docs/DatawarehouseApi.md#update_report) | **PUT** /datawarehouse/reports/{report_oid} | Update a report
|
|
356
|
-
*UltracartClient::FraudApi* | [**decline_email**](docs/FraudApi.md#decline_email) | **POST** /fraud/decline_email | Decline
|
|
356
|
+
*UltracartClient::FraudApi* | [**decline_email**](docs/FraudApi.md#decline_email) | **POST** /fraud/decline_email | Decline email during checkout fraud review
|
|
357
357
|
*UltracartClient::FraudApi* | [**delete_fraud_rule**](docs/FraudApi.md#delete_fraud_rule) | **DELETE** /fraud/rules/{fraud_rule_oid} | Delete a fraud rule
|
|
358
|
+
*UltracartClient::FraudApi* | [**establish_fraud_rules_from_order**](docs/FraudApi.md#establish_fraud_rules_from_order) | **POST** /fraud/rules/from_order | Establish fraud rules from an order
|
|
358
359
|
*UltracartClient::FraudApi* | [**get_fraud_lookup_values**](docs/FraudApi.md#get_fraud_lookup_values) | **GET** /fraud/lookup_values | Retrieve fraud rule lookup values
|
|
359
360
|
*UltracartClient::FraudApi* | [**insert_fraud_rule**](docs/FraudApi.md#insert_fraud_rule) | **POST** /fraud/rules | Insert a fraud rule
|
|
360
361
|
*UltracartClient::FraudApi* | [**search_fraud_rules**](docs/FraudApi.md#search_fraud_rules) | **POST** /fraud/rules/search | Search fraud rules
|
|
@@ -1279,8 +1280,12 @@ Class | Method | HTTP request | Description
|
|
|
1279
1280
|
- [UltracartClient::FileManagerUploadRequest](docs/FileManagerUploadRequest.md)
|
|
1280
1281
|
- [UltracartClient::FileManagerUploadUrlResponse](docs/FileManagerUploadUrlResponse.md)
|
|
1281
1282
|
- [UltracartClient::FraudDeclineEmailRequest](docs/FraudDeclineEmailRequest.md)
|
|
1283
|
+
- [UltracartClient::FraudLookupAffiliate](docs/FraudLookupAffiliate.md)
|
|
1284
|
+
- [UltracartClient::FraudLookupGateway](docs/FraudLookupGateway.md)
|
|
1285
|
+
- [UltracartClient::FraudLookupTheme](docs/FraudLookupTheme.md)
|
|
1282
1286
|
- [UltracartClient::FraudLookupValues](docs/FraudLookupValues.md)
|
|
1283
1287
|
- [UltracartClient::FraudLookupValuesResponse](docs/FraudLookupValuesResponse.md)
|
|
1288
|
+
- [UltracartClient::FraudRuleFromOrderRequest](docs/FraudRuleFromOrderRequest.md)
|
|
1284
1289
|
- [UltracartClient::FraudRuleInsertRequest](docs/FraudRuleInsertRequest.md)
|
|
1285
1290
|
- [UltracartClient::FraudRuleItemFilter](docs/FraudRuleItemFilter.md)
|
|
1286
1291
|
- [UltracartClient::FraudRulePublic](docs/FraudRulePublic.md)
|
|
@@ -1769,6 +1774,7 @@ Not every change is committed to every SDK.
|
|
|
1769
1774
|
|
|
1770
1775
|
| Version | Date | Comments |
|
|
1771
1776
|
| --: | :-: | --- |
|
|
1777
|
+
| 4.1.97 | 06/03/2026 | fraud api alpha version |
|
|
1772
1778
|
| 4.1.96 | 06/03/2026 | fraud api alpha build |
|
|
1773
1779
|
| 4.1.95 | 06/02/2026 | fraud api alpha version |
|
|
1774
1780
|
| 4.1.94 | 06/02/2026 | fraud api alpha version |
|
data/docs/FraudApi.md
CHANGED
|
@@ -4,8 +4,9 @@ All URIs are relative to *https://secure.ultracart.com/rest/v2*
|
|
|
4
4
|
|
|
5
5
|
| Method | HTTP request | Description |
|
|
6
6
|
| ------ | ------------ | ----------- |
|
|
7
|
-
| [**decline_email**](FraudApi.md#decline_email) | **POST** /fraud/decline_email | Decline
|
|
7
|
+
| [**decline_email**](FraudApi.md#decline_email) | **POST** /fraud/decline_email | Decline email during checkout fraud review |
|
|
8
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 |
|
|
9
10
|
| [**get_fraud_lookup_values**](FraudApi.md#get_fraud_lookup_values) | **GET** /fraud/lookup_values | Retrieve fraud rule lookup values |
|
|
10
11
|
| [**insert_fraud_rule**](FraudApi.md#insert_fraud_rule) | **POST** /fraud/rules | Insert a fraud rule |
|
|
11
12
|
| [**search_fraud_rules**](FraudApi.md#search_fraud_rules) | **POST** /fraud/rules/search | Search fraud rules |
|
|
@@ -15,9 +16,9 @@ All URIs are relative to *https://secure.ultracart.com/rest/v2*
|
|
|
15
16
|
|
|
16
17
|
> decline_email(fraud_decline_emails_request)
|
|
17
18
|
|
|
18
|
-
Decline
|
|
19
|
+
Decline email during checkout fraud review
|
|
19
20
|
|
|
20
|
-
Adds one
|
|
21
|
+
Adds one email address to the fraud decline list for this merchant account.
|
|
21
22
|
|
|
22
23
|
|
|
23
24
|
### Examples
|
|
@@ -34,7 +35,7 @@ This returns an Array which contains the response data (`nil` in this case), sta
|
|
|
34
35
|
|
|
35
36
|
```ruby
|
|
36
37
|
begin
|
|
37
|
-
# Decline
|
|
38
|
+
# Decline email during checkout fraud review
|
|
38
39
|
data, status_code, headers = api_instance.decline_email_with_http_info(fraud_decline_emails_request)
|
|
39
40
|
p status_code # => 2xx
|
|
40
41
|
p headers # => { ... }
|
|
@@ -117,6 +118,59 @@ nil (empty response body)
|
|
|
117
118
|
- **Accept**: application/json
|
|
118
119
|
|
|
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
|
+
|
|
120
174
|
## get_fraud_lookup_values
|
|
121
175
|
|
|
122
176
|
> <FraudLookupValuesResponse> get_fraud_lookup_values
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# UltracartClient::FraudLookupAffiliate
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **affiliate_oid** | **Integer** | Oid of the affiliate. Use this value in affiliate_oid on insert for the 'affiliate matches' rule type. | [optional] |
|
|
8
|
+
| **email** | **String** | Email of the affiliate. May also be supplied as affiliate_email on insert in place of affiliate_oid. | [optional] |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'ultracart_api'
|
|
14
|
+
|
|
15
|
+
instance = UltracartClient::FraudLookupAffiliate.new(
|
|
16
|
+
affiliate_oid: null,
|
|
17
|
+
email: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# UltracartClient::FraudLookupGateway
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **code** | **String** | Code of the rotating transaction gateway. | [optional] |
|
|
8
|
+
| **name** | **String** | Display name of the rotating transaction gateway. | [optional] |
|
|
9
|
+
| **rotating_transaction_gateway_oid** | **Integer** | Oid of the rotating transaction gateway. Use this value in rotating_transaction_gateway_filters on insert. | [optional] |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'ultracart_api'
|
|
15
|
+
|
|
16
|
+
instance = UltracartClient::FraudLookupGateway.new(
|
|
17
|
+
code: null,
|
|
18
|
+
name: null,
|
|
19
|
+
rotating_transaction_gateway_oid: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# UltracartClient::FraudLookupTheme
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **code** | **String** | Code of the screen branding theme. | [optional] |
|
|
8
|
+
| **screen_branding_theme_oid** | **Integer** | Oid of the screen branding theme. Use this value in screen_branding_theme_filters on insert. | [optional] |
|
|
9
|
+
| **storefront_hostname** | **String** | Storefront hostname associated with this theme, when available. | [optional] |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'ultracart_api'
|
|
15
|
+
|
|
16
|
+
instance = UltracartClient::FraudLookupTheme.new(
|
|
17
|
+
code: null,
|
|
18
|
+
screen_branding_theme_oid: null,
|
|
19
|
+
storefront_hostname: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
data/docs/FraudLookupValues.md
CHANGED
|
@@ -4,12 +4,17 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **affiliates** | **
|
|
8
|
-
| **
|
|
9
|
-
| **
|
|
7
|
+
| **affiliates** | [**Array<FraudLookupAffiliate>**](FraudLookupAffiliate.md) | Affiliates with non-empty email, sorted by email. | [optional] |
|
|
8
|
+
| **avs_match_types** | **Array<String>** | Valid values for avs_match_type on the 'address street and zip avs' rule type. | [optional] |
|
|
9
|
+
| **countries** | **Array<String>** | ISO country codes available to this merchant. | [optional] |
|
|
10
|
+
| **failure_actions** | **Array<String>** | Valid values for failure_action on insert and search requests. | [optional] |
|
|
11
|
+
| **ip_range_types** | **Array<String>** | Valid values for ip_range_type on IP-based rules. | [optional] |
|
|
10
12
|
| **linked_accounts** | **Boolean** | True when this merchant has at least one linked merchant account. | [optional] |
|
|
11
|
-
| **
|
|
12
|
-
| **
|
|
13
|
+
| **rotating_transaction_gateways** | [**Array<FraudLookupGateway>**](FraudLookupGateway.md) | Rotating transaction gateways configured for this merchant. Use the oid as a value in rotating_transaction_gateway_filters on insert. | [optional] |
|
|
14
|
+
| **rule_groups** | **Array<String>** | Valid values for rule_group on search requests. | [optional] |
|
|
15
|
+
| **rule_types** | **Array<String>** | Valid values for rule_type on insert and search requests. | [optional] |
|
|
16
|
+
| **screen_branding_themes** | [**Array<FraudLookupTheme>**](FraudLookupTheme.md) | Screen branding themes configured for this merchant. Use the oid as a value in screen_branding_theme_filters on insert. | [optional] |
|
|
17
|
+
| **user_actions** | **Array<String>** | Valid values for user_action on rule types that distinguish between attempted and approved transactions. | [optional] |
|
|
13
18
|
|
|
14
19
|
## Example
|
|
15
20
|
|
|
@@ -18,11 +23,16 @@ require 'ultracart_api'
|
|
|
18
23
|
|
|
19
24
|
instance = UltracartClient::FraudLookupValues.new(
|
|
20
25
|
affiliates: null,
|
|
26
|
+
avs_match_types: null,
|
|
21
27
|
countries: null,
|
|
28
|
+
failure_actions: null,
|
|
22
29
|
ip_range_types: null,
|
|
23
30
|
linked_accounts: null,
|
|
31
|
+
rotating_transaction_gateways: null,
|
|
24
32
|
rule_groups: null,
|
|
25
|
-
rule_types: null
|
|
33
|
+
rule_types: null,
|
|
34
|
+
screen_branding_themes: null,
|
|
35
|
+
user_actions: null
|
|
26
36
|
)
|
|
27
37
|
```
|
|
28
38
|
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# UltracartClient::FraudRuleFromOrderRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **auto_note** | **String** | Note automatically appended to the order's merchant note when these rules fire. | [optional] |
|
|
8
|
+
| **establish_address_filter** | **Boolean** | Establish an 'address street and zip avs' rule from the order's ship-to street and zip. | [optional] |
|
|
9
|
+
| **establish_card_filter** | **Boolean** | Establish a 'credit card matches' rule by duplicating the order's stored card vault token. Skipped if the order has no stored card. | [optional] |
|
|
10
|
+
| **establish_email_filter** | **Boolean** | Establish an 'address email' rule from the order's email address. | [optional] |
|
|
11
|
+
| **establish_ip_filter** | **Boolean** | Establish an 'ip matches' subnet rule from the order's customer IP address (last octet masked to a subnet). | [optional] |
|
|
12
|
+
| **failure_action** | **String** | Action to take when these rules fire. Defaults to 'Flag For Review' when omitted. | [optional] |
|
|
13
|
+
| **order_id** | **String** | The order id to establish the fraud rule(s) from. | [optional] |
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```ruby
|
|
18
|
+
require 'ultracart_api'
|
|
19
|
+
|
|
20
|
+
instance = UltracartClient::FraudRuleFromOrderRequest.new(
|
|
21
|
+
auto_note: null,
|
|
22
|
+
establish_address_filter: null,
|
|
23
|
+
establish_card_filter: null,
|
|
24
|
+
establish_email_filter: null,
|
|
25
|
+
establish_ip_filter: null,
|
|
26
|
+
failure_action: null,
|
|
27
|
+
order_id: null
|
|
28
|
+
)
|
|
29
|
+
```
|
|
30
|
+
|
|
@@ -12,27 +12,27 @@
|
|
|
12
12
|
| **avs_response_codes** | **String** | AVS response codes (street). Used by the 'address street and zip avs' rule type. | [optional] |
|
|
13
13
|
| **count_threshold** | **Integer** | Integer count threshold. Used by *count exceeds*, *change number*, *quantity exceeds*, and *purchased within last hours* rules. | [optional] |
|
|
14
14
|
| **country_code** | **String** | ISO country code. Used by the 'address not in country' rule type. | [optional] |
|
|
15
|
-
| **credit_card_bins** | **
|
|
15
|
+
| **credit_card_bins** | **Array<String>** | Credit card BINs to block (max 20). Used by the 'credit card block bin' rule type. | [optional] |
|
|
16
16
|
| **email** | **String** | Email address. Used by the 'address email' rule type. | [optional] |
|
|
17
17
|
| **failure_action** | **String** | Action to take when this rule fires. | [optional] |
|
|
18
18
|
| **gateway_response_codes** | **String** | Gateway response code key. Used by the 'gateway response' rule type. | [optional] |
|
|
19
19
|
| **gateway_response_value** | **String** | Gateway response code value. Used by the 'gateway response' rule type. | [optional] |
|
|
20
20
|
| **ip_address** | **String** | IP address or subnet (eg '192.168.1.1' or '10.0.0.0/8'). Used by 'exempt ip' and 'ip matches' rules. | [optional] |
|
|
21
21
|
| **ip_range_type** | **String** | Specifies whether an IP rule applies to a single address or a subnet. | [optional] |
|
|
22
|
-
| **item_filters** | **
|
|
22
|
+
| **item_filters** | **Array<String>** | Optional list of merchant item ids restricting this rule to orders containing one or more of these items. | [optional] |
|
|
23
23
|
| **merchant_item_id** | **String** | Merchant item id. Used by the 'item matches' rule type. | [optional] |
|
|
24
|
-
| **modify_custom_field1** | **String** |
|
|
25
|
-
| **modify_custom_field2** | **String** |
|
|
26
|
-
| **modify_custom_field3** | **String** |
|
|
27
|
-
| **modify_custom_field4** | **String** |
|
|
28
|
-
| **modify_custom_field5** | **String** |
|
|
29
|
-
| **modify_custom_field6** | **String** |
|
|
30
|
-
| **modify_custom_field7** | **String** |
|
|
31
|
-
| **modify_skip_affiliate** | **Boolean** |
|
|
32
|
-
| **modify_skip_affiliate_network_pixel** | **Boolean** |
|
|
33
|
-
| **rotating_transaction_gateway_filters** | **
|
|
24
|
+
| **modify_custom_field1** | **String** | When failure_action is 'Process Payment and Modify', set order custom field 1 to this value. | [optional] |
|
|
25
|
+
| **modify_custom_field2** | **String** | When failure_action is 'Process Payment and Modify', set order custom field 2 to this value. | [optional] |
|
|
26
|
+
| **modify_custom_field3** | **String** | When failure_action is 'Process Payment and Modify', set order custom field 3 to this value. | [optional] |
|
|
27
|
+
| **modify_custom_field4** | **String** | When failure_action is 'Process Payment and Modify', set order custom field 4 to this value. | [optional] |
|
|
28
|
+
| **modify_custom_field5** | **String** | When failure_action is 'Process Payment and Modify', set order custom field 5 to this value. | [optional] |
|
|
29
|
+
| **modify_custom_field6** | **String** | When failure_action is 'Process Payment and Modify', set order custom field 6 to this value. | [optional] |
|
|
30
|
+
| **modify_custom_field7** | **String** | When failure_action is 'Process Payment and Modify', set order custom field 7 to this value. | [optional] |
|
|
31
|
+
| **modify_skip_affiliate** | **Boolean** | When failure_action is 'Process Payment and Modify', strip the affiliate from the order. | [optional] |
|
|
32
|
+
| **modify_skip_affiliate_network_pixel** | **Boolean** | When failure_action is 'Process Payment and Modify', skip firing the affiliate network pixel. | [optional] |
|
|
33
|
+
| **rotating_transaction_gateway_filters** | **Array<Integer>** | Optional list of rotating transaction gateway oids restricting this rule to orders processed by one of these gateways. | [optional] |
|
|
34
34
|
| **rule_type** | **String** | Rule type. Also returned by GET /v2/fraud/lookup_values. | [optional] |
|
|
35
|
-
| **screen_branding_theme_filters** | **
|
|
35
|
+
| **screen_branding_theme_filters** | **Array<Integer>** | Optional list of screen branding theme oids restricting this rule to orders associated with one or more storefronts. | [optional] |
|
|
36
36
|
| **user_action** | **String** | Only used by rule types that distinguish between attempted and approved transactions. | [optional] |
|
|
37
37
|
|
|
38
38
|
## Example
|
data/docs/FraudRulePublic.md
CHANGED
|
@@ -4,42 +4,42 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **affiliate_oid** | **Integer** |
|
|
8
|
-
| **amount_threshold** | **Float** |
|
|
9
|
-
| **auto_note** | **String** |
|
|
7
|
+
| **affiliate_oid** | **Integer** | Affiliate oid for the 'affiliate matches' rule type. | [optional] |
|
|
8
|
+
| **amount_threshold** | **Float** | Monetary or score threshold for amount/score/percentage rule types. | [optional] |
|
|
9
|
+
| **auto_note** | **String** | Note automatically appended to the order's merchant note when this rule fires. | [optional] |
|
|
10
10
|
| **avs_match_type** | **String** | | [optional] |
|
|
11
|
-
| **avs_response_codes** | **String** |
|
|
11
|
+
| **avs_response_codes** | **String** | AVS response codes for the 'address street and zip avs' rule type. | [optional] |
|
|
12
12
|
| **card_number** | **String** | Masked credit card number for rules tied to a specific card | [optional] |
|
|
13
|
-
| **count_threshold** | **Integer** |
|
|
14
|
-
| **country_code** | **String** |
|
|
13
|
+
| **count_threshold** | **Integer** | Integer count threshold for count/quantity/hours rule types. | [optional] |
|
|
14
|
+
| **country_code** | **String** | ISO country code for the 'address not in country' rule type. | [optional] |
|
|
15
15
|
| **created_by** | **String** | | [optional] |
|
|
16
16
|
| **created_dts** | **String** | Created date | [optional] |
|
|
17
|
-
| **credit_card_bins** | **
|
|
18
|
-
| **decline_message** | **String** |
|
|
17
|
+
| **credit_card_bins** | **Array<String>** | Credit card BINs blocked by the 'credit card block bin' rule type. | [optional] |
|
|
18
|
+
| **decline_message** | **String** | Message shown in the A/R review screen when this rule fires. | [optional] |
|
|
19
19
|
| **description** | **String** | Human-readable description of the rule | [optional] |
|
|
20
20
|
| **description_html** | **String** | HTML version of the rule description | [optional] |
|
|
21
|
-
| **email** | **String** |
|
|
21
|
+
| **email** | **String** | Email address for the 'address email' rule type. | [optional] |
|
|
22
22
|
| **failure_action** | **String** | Action taken when this rule fires. | [optional] |
|
|
23
23
|
| **fraud_rule_oid** | **Integer** | UltraCart unique identifier for this fraud rule | [optional] |
|
|
24
|
-
| **gateway_response_codes** | **String** |
|
|
25
|
-
| **gateway_response_value** | **String** |
|
|
26
|
-
| **ip_address** | **String** |
|
|
24
|
+
| **gateway_response_codes** | **String** | Gateway response code key for the 'gateway response' rule type. | [optional] |
|
|
25
|
+
| **gateway_response_value** | **String** | Gateway response code value for the 'gateway response' rule type. | [optional] |
|
|
26
|
+
| **ip_address** | **String** | IP address or subnet for 'exempt ip' and 'ip matches' rule types. | [optional] |
|
|
27
27
|
| **ip_range_type** | **String** | | [optional] |
|
|
28
|
-
| **item_filters** | [**Array<FraudRuleItemFilter>**](FraudRuleItemFilter.md) |
|
|
29
|
-
| **merchant_item_id** | **String** |
|
|
30
|
-
| **modify_custom_field1** | **String** |
|
|
31
|
-
| **modify_custom_field2** | **String** |
|
|
32
|
-
| **modify_custom_field3** | **String** |
|
|
33
|
-
| **modify_custom_field4** | **String** |
|
|
34
|
-
| **modify_custom_field5** | **String** |
|
|
35
|
-
| **modify_custom_field6** | **String** |
|
|
36
|
-
| **modify_custom_field7** | **String** |
|
|
37
|
-
| **modify_skip_affiliate** | **Boolean** |
|
|
38
|
-
| **modify_skip_affiliate_network_pixel** | **Boolean** |
|
|
39
|
-
| **rotating_transaction_gateway_filters** | [**Array<FraudRuleRotatingTransactionGatewayFilter>**](FraudRuleRotatingTransactionGatewayFilter.md) |
|
|
28
|
+
| **item_filters** | [**Array<FraudRuleItemFilter>**](FraudRuleItemFilter.md) | Item filters restricting this rule to orders containing one or more of these items. | [optional] |
|
|
29
|
+
| **merchant_item_id** | **String** | Merchant item id for the 'item matches' rule type. | [optional] |
|
|
30
|
+
| **modify_custom_field1** | **String** | Value the rule sets on order custom field 1 (only meaningful for 'Process Payment and Modify'). | [optional] |
|
|
31
|
+
| **modify_custom_field2** | **String** | Value the rule sets on order custom field 2 (only meaningful for 'Process Payment and Modify'). | [optional] |
|
|
32
|
+
| **modify_custom_field3** | **String** | Value the rule sets on order custom field 3 (only meaningful for 'Process Payment and Modify'). | [optional] |
|
|
33
|
+
| **modify_custom_field4** | **String** | Value the rule sets on order custom field 4 (only meaningful for 'Process Payment and Modify'). | [optional] |
|
|
34
|
+
| **modify_custom_field5** | **String** | Value the rule sets on order custom field 5 (only meaningful for 'Process Payment and Modify'). | [optional] |
|
|
35
|
+
| **modify_custom_field6** | **String** | Value the rule sets on order custom field 6 (only meaningful for 'Process Payment and Modify'). | [optional] |
|
|
36
|
+
| **modify_custom_field7** | **String** | Value the rule sets on order custom field 7 (only meaningful for 'Process Payment and Modify'). | [optional] |
|
|
37
|
+
| **modify_skip_affiliate** | **Boolean** | When true, the rule strips the affiliate from the order (only meaningful for 'Process Payment and Modify'). | [optional] |
|
|
38
|
+
| **modify_skip_affiliate_network_pixel** | **Boolean** | When true, the rule suppresses the affiliate network pixel (only meaningful for 'Process Payment and Modify'). | [optional] |
|
|
39
|
+
| **rotating_transaction_gateway_filters** | [**Array<FraudRuleRotatingTransactionGatewayFilter>**](FraudRuleRotatingTransactionGatewayFilter.md) | Gateway filters restricting this rule to orders processed by one of these rotating transaction gateways. | [optional] |
|
|
40
40
|
| **rule_group** | **String** | Group containing this rule type (eg 'creditCardRules'). Deliberately not constrained by allowableValues on the response so SDK consumers do not hard-fail on an unexpected value if a future rule_type slips through the server-side mapping. Search REQUESTS still restrict rule_group to the known set. | [optional] |
|
|
41
41
|
| **rule_type** | **String** | Rule type. | [optional] |
|
|
42
|
-
| **storefront_filters** | [**Array<FraudRuleStorefrontFilter>**](FraudRuleStorefrontFilter.md) |
|
|
42
|
+
| **storefront_filters** | [**Array<FraudRuleStorefrontFilter>**](FraudRuleStorefrontFilter.md) | Storefront filters restricting this rule to orders placed on one of these storefronts. | [optional] |
|
|
43
43
|
| **user_action** | **String** | | [optional] |
|
|
44
44
|
|
|
45
45
|
## Example
|
|
@@ -6,34 +6,34 @@
|
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **affiliate_oid_or_email** | **String** | Affiliate oid (integer) or affiliate email. Email is resolved to oid before searching. | [optional] |
|
|
8
8
|
| **amount_threshold_begin** | **Float** | Lower bound on amount/score/percentage thresholds (rules backed by the same numeric column). | [optional] |
|
|
9
|
-
| **amount_threshold_end** | **Float** |
|
|
9
|
+
| **amount_threshold_end** | **Float** | Upper bound on amount/score/percentage thresholds (rules backed by the same numeric column). | [optional] |
|
|
10
10
|
| **auto_note** | **String** | Wildcard search on the rule's auto_note. Use '*' for wildcards. | [optional] |
|
|
11
11
|
| **count_threshold_begin** | **Integer** | Lower bound on count thresholds (rules backed by the same integer count column). | [optional] |
|
|
12
|
-
| **count_threshold_end** | **Integer** |
|
|
13
|
-
| **created_by** | **String** |
|
|
12
|
+
| **count_threshold_end** | **Integer** | Upper bound on count thresholds (rules backed by the same integer count column). | [optional] |
|
|
13
|
+
| **created_by** | **String** | Filter to rules created by this user login. | [optional] |
|
|
14
14
|
| **created_date_begin** | **String** | Rule creation date begin (MM/dd/yyyy) | [optional] |
|
|
15
15
|
| **created_date_end** | **String** | Rule creation date end (MM/dd/yyyy) | [optional] |
|
|
16
16
|
| **credit_card_partial** | **String** | Partial credit card number for matching 'credit card matches' rules. Use '*' wildcards. | [optional] |
|
|
17
17
|
| **decline_message** | **String** | Wildcard search on the rule's decline_message. Use '*' for wildcards. | [optional] |
|
|
18
18
|
| **failure_action** | **String** | | [optional] |
|
|
19
|
-
| **gateway_code** | **String** |
|
|
20
|
-
| **merchant_item_id** | **String** |
|
|
19
|
+
| **gateway_code** | **String** | Filter to rules with this rotating transaction gateway code in their rotating_transaction_gateway_filters list. | [optional] |
|
|
20
|
+
| **merchant_item_id** | **String** | Filter to rules with this merchant item id in their item_filters list. | [optional] |
|
|
21
21
|
| **modifier_value** | **String** | Wildcard search on the rule's secondary modifier (eg 'address'/'subnet', gateway codes, avs match types). | [optional] |
|
|
22
|
-
| **modify_custom_field1** | **String** |
|
|
23
|
-
| **modify_custom_field2** | **String** |
|
|
24
|
-
| **modify_custom_field3** | **String** |
|
|
25
|
-
| **modify_custom_field4** | **String** |
|
|
26
|
-
| **modify_custom_field5** | **String** |
|
|
27
|
-
| **modify_custom_field6** | **String** |
|
|
28
|
-
| **modify_custom_field7** | **String** |
|
|
29
|
-
| **modify_skip_affiliate** | **Boolean** |
|
|
30
|
-
| **modify_skip_affiliate_network_pixel** | **Boolean** |
|
|
22
|
+
| **modify_custom_field1** | **String** | Wildcard search on rules' modify_custom_field1 value. | [optional] |
|
|
23
|
+
| **modify_custom_field2** | **String** | Wildcard search on rules' modify_custom_field2 value. | [optional] |
|
|
24
|
+
| **modify_custom_field3** | **String** | Wildcard search on rules' modify_custom_field3 value. | [optional] |
|
|
25
|
+
| **modify_custom_field4** | **String** | Wildcard search on rules' modify_custom_field4 value. | [optional] |
|
|
26
|
+
| **modify_custom_field5** | **String** | Wildcard search on rules' modify_custom_field5 value. | [optional] |
|
|
27
|
+
| **modify_custom_field6** | **String** | Wildcard search on rules' modify_custom_field6 value. | [optional] |
|
|
28
|
+
| **modify_custom_field7** | **String** | Wildcard search on rules' modify_custom_field7 value. | [optional] |
|
|
29
|
+
| **modify_skip_affiliate** | **Boolean** | Filter to rules whose modify_skip_affiliate flag matches this value. | [optional] |
|
|
30
|
+
| **modify_skip_affiliate_network_pixel** | **Boolean** | Filter to rules whose modify_skip_affiliate_network_pixel flag matches this value. | [optional] |
|
|
31
31
|
| **rule_group** | **String** | Rule group to filter by. | [optional] |
|
|
32
32
|
| **rule_type** | **String** | Rule type to filter by. | [optional] |
|
|
33
33
|
| **search_linked_accounts** | **Boolean** | Include rules from accounts linked to this merchant. Defaults to false. | [optional] |
|
|
34
|
-
| **storefront_hostname** | **String** |
|
|
34
|
+
| **storefront_hostname** | **String** | Filter to rules with this storefront hostname in their screen_branding_theme_filters list. | [optional] |
|
|
35
35
|
| **text_value** | **String** | Wildcard search on the rule's text parameter (email / ip / bin / country / item id / avs codes - the backend disambiguates by rule_type). | [optional] |
|
|
36
|
-
| **theme_code** | **String** |
|
|
36
|
+
| **theme_code** | **String** | Filter to rules with this screen branding theme code in their screen_branding_theme_filters list. | [optional] |
|
|
37
37
|
| **user_action** | **String** | | [optional] |
|
|
38
38
|
|
|
39
39
|
## Example
|
|
@@ -32,8 +32,8 @@ module UltracartClient
|
|
|
32
32
|
UltracartClient::FraudApi.new(api_client)
|
|
33
33
|
end
|
|
34
34
|
|
|
35
|
-
# Decline
|
|
36
|
-
# Adds one
|
|
35
|
+
# Decline email during checkout fraud review
|
|
36
|
+
# Adds one email address to the fraud decline list for this merchant account.
|
|
37
37
|
# @param fraud_decline_emails_request [FraudDeclineEmailRequest] Fraud decline emails request
|
|
38
38
|
# @param [Hash] opts the optional parameters
|
|
39
39
|
# @return [nil]
|
|
@@ -42,8 +42,8 @@ module UltracartClient
|
|
|
42
42
|
nil
|
|
43
43
|
end
|
|
44
44
|
|
|
45
|
-
# Decline
|
|
46
|
-
# Adds one
|
|
45
|
+
# Decline email during checkout fraud review
|
|
46
|
+
# Adds one email address to the fraud decline list for this merchant account.
|
|
47
47
|
# @param fraud_decline_emails_request [FraudDeclineEmailRequest] Fraud decline emails request
|
|
48
48
|
# @param [Hash] opts the optional parameters
|
|
49
49
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
@@ -165,6 +165,75 @@ module UltracartClient
|
|
|
165
165
|
return data, status_code, headers
|
|
166
166
|
end
|
|
167
167
|
|
|
168
|
+
# Establish fraud rules from an order
|
|
169
|
+
# 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.
|
|
170
|
+
# @param fraud_rule_from_order_request [FraudRuleFromOrderRequest] Fraud rule from order request
|
|
171
|
+
# @param [Hash] opts the optional parameters
|
|
172
|
+
# @return [FraudRulesResponse]
|
|
173
|
+
def establish_fraud_rules_from_order(fraud_rule_from_order_request, opts = {})
|
|
174
|
+
data, _status_code, _headers = establish_fraud_rules_from_order_with_http_info(fraud_rule_from_order_request, opts)
|
|
175
|
+
data
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
# Establish fraud rules from an order
|
|
179
|
+
# 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.
|
|
180
|
+
# @param fraud_rule_from_order_request [FraudRuleFromOrderRequest] Fraud rule from order request
|
|
181
|
+
# @param [Hash] opts the optional parameters
|
|
182
|
+
# @return [Array<(FraudRulesResponse, Integer, Hash)>] FraudRulesResponse data, response status code and response headers
|
|
183
|
+
def establish_fraud_rules_from_order_with_http_info(fraud_rule_from_order_request, opts = {})
|
|
184
|
+
if @api_client.config.debugging
|
|
185
|
+
@api_client.config.logger.debug 'Calling API: FraudApi.establish_fraud_rules_from_order ...'
|
|
186
|
+
end
|
|
187
|
+
# verify the required parameter 'fraud_rule_from_order_request' is set
|
|
188
|
+
if @api_client.config.client_side_validation && fraud_rule_from_order_request.nil?
|
|
189
|
+
fail ArgumentError, "Missing the required parameter 'fraud_rule_from_order_request' when calling FraudApi.establish_fraud_rules_from_order"
|
|
190
|
+
end
|
|
191
|
+
# resource path
|
|
192
|
+
local_var_path = '/fraud/rules/from_order'
|
|
193
|
+
|
|
194
|
+
# query parameters
|
|
195
|
+
query_params = opts[:query_params] || {}
|
|
196
|
+
|
|
197
|
+
# header parameters
|
|
198
|
+
header_params = opts[:header_params] || {}
|
|
199
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
|
200
|
+
# HTTP header 'Accept' (if needed)
|
|
201
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
202
|
+
# HTTP header 'Content-Type'
|
|
203
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
204
|
+
if !content_type.nil?
|
|
205
|
+
header_params['Content-Type'] = content_type
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
# form parameters
|
|
209
|
+
form_params = opts[:form_params] || {}
|
|
210
|
+
|
|
211
|
+
# http body (model)
|
|
212
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(fraud_rule_from_order_request)
|
|
213
|
+
|
|
214
|
+
# return_type
|
|
215
|
+
return_type = opts[:debug_return_type] || 'FraudRulesResponse'
|
|
216
|
+
|
|
217
|
+
# auth_names
|
|
218
|
+
auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
|
219
|
+
|
|
220
|
+
new_options = opts.merge(
|
|
221
|
+
:operation => :"FraudApi.establish_fraud_rules_from_order",
|
|
222
|
+
:header_params => header_params,
|
|
223
|
+
:query_params => query_params,
|
|
224
|
+
:form_params => form_params,
|
|
225
|
+
:body => post_body,
|
|
226
|
+
:auth_names => auth_names,
|
|
227
|
+
:return_type => return_type
|
|
228
|
+
)
|
|
229
|
+
|
|
230
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
231
|
+
if @api_client.config.debugging
|
|
232
|
+
@api_client.config.logger.debug "API called: FraudApi#establish_fraud_rules_from_order\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
233
|
+
end
|
|
234
|
+
return data, status_code, headers
|
|
235
|
+
end
|
|
236
|
+
|
|
168
237
|
# Retrieve fraud rule lookup values
|
|
169
238
|
# 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.
|
|
170
239
|
# @param [Hash] opts the optional parameters
|