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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 50eea23bef9f9f23d5b91c373e5803ac371c99850e7e7f83d48cfd7c6e050d63
4
- data.tar.gz: dd2430fbdeab17b5943efc2bfe6d1ba169a70658400a039ea263ba934197ef22
3
+ metadata.gz: 713e1c8d45bf621b2beb0af2a5f2cca5ad01b5e795c9ec44ba18144ecbadf65d
4
+ data.tar.gz: 06ab9e7eeeed38e86531b06b460cfe891c323613467aff6a7e79348660a48d44
5
5
  SHA512:
6
- metadata.gz: 8f09615e424ca49497814e9d58eee3648e95c609fe61657572272805f9d657db4383019790f7fc562031099111c0c8549b583be115a56ba58dcb2b88652b983d
7
- data.tar.gz: 995b0794acf0d36b77a618b399dbc216fef8286e56c1ed7a3ef432ef05c8ac49268922565020af645023d3b35b5548872767694475b032bd2035bad457b6c57b
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.96
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.96'
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 emails during checkout fraud review
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 emails during checkout fraud review |
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 emails during checkout fraud review
19
+ Decline email during checkout fraud review
19
20
 
20
- Adds one or more email addresses to the fraud decline list for this merchant account.
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 emails during checkout fraud review
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 &#39;affiliate matches&#39; 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
+
@@ -4,12 +4,17 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **affiliates** | **Object** | Affiliates with non-empty email, sorted by email. | [optional] |
8
- | **countries** | **Object** | ISO country codes available to this merchant. | [optional] |
9
- | **ip_range_types** | **Object** | Valid values for ip_range_type on IP-based rules. | [optional] |
7
+ | **affiliates** | [**Array&lt;FraudLookupAffiliate&gt;**](FraudLookupAffiliate.md) | Affiliates with non-empty email, sorted by email. | [optional] |
8
+ | **avs_match_types** | **Array&lt;String&gt;** | Valid values for avs_match_type on the &#39;address street and zip avs&#39; rule type. | [optional] |
9
+ | **countries** | **Array&lt;String&gt;** | ISO country codes available to this merchant. | [optional] |
10
+ | **failure_actions** | **Array&lt;String&gt;** | Valid values for failure_action on insert and search requests. | [optional] |
11
+ | **ip_range_types** | **Array&lt;String&gt;** | 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
- | **rule_groups** | **Object** | Valid values for rule_group on search requests. | [optional] |
12
- | **rule_types** | **Object** | Valid values for rule_type on insert and search requests. | [optional] |
13
+ | **rotating_transaction_gateways** | [**Array&lt;FraudLookupGateway&gt;**](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&lt;String&gt;** | Valid values for rule_group on search requests. | [optional] |
15
+ | **rule_types** | **Array&lt;String&gt;** | Valid values for rule_type on insert and search requests. | [optional] |
16
+ | **screen_branding_themes** | [**Array&lt;FraudLookupTheme&gt;**](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&lt;String&gt;** | 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&#39;s merchant note when these rules fire. | [optional] |
8
+ | **establish_address_filter** | **Boolean** | Establish an &#39;address street and zip avs&#39; rule from the order&#39;s ship-to street and zip. | [optional] |
9
+ | **establish_card_filter** | **Boolean** | Establish a &#39;credit card matches&#39; rule by duplicating the order&#39;s stored card vault token. Skipped if the order has no stored card. | [optional] |
10
+ | **establish_email_filter** | **Boolean** | Establish an &#39;address email&#39; rule from the order&#39;s email address. | [optional] |
11
+ | **establish_ip_filter** | **Boolean** | Establish an &#39;ip matches&#39; subnet rule from the order&#39;s customer IP address (last octet masked to a subnet). | [optional] |
12
+ | **failure_action** | **String** | Action to take when these rules fire. Defaults to &#39;Flag For Review&#39; 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 &#39;address street and zip avs&#39; 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 &#39;address not in country&#39; rule type. | [optional] |
15
- | **credit_card_bins** | **Object** | Credit card BINs to block (max 20). Used by the &#39;credit card block bin&#39; rule type. | [optional] |
15
+ | **credit_card_bins** | **Array&lt;String&gt;** | Credit card BINs to block (max 20). Used by the &#39;credit card block bin&#39; rule type. | [optional] |
16
16
  | **email** | **String** | Email address. Used by the &#39;address email&#39; 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 &#39;gateway response&#39; rule type. | [optional] |
19
19
  | **gateway_response_value** | **String** | Gateway response code value. Used by the &#39;gateway response&#39; rule type. | [optional] |
20
20
  | **ip_address** | **String** | IP address or subnet (eg &#39;192.168.1.1&#39; or &#39;10.0.0.0/8&#39;). Used by &#39;exempt ip&#39; and &#39;ip matches&#39; 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** | **Object** | Optional list of merchant item ids restricting this rule to orders containing one or more of these items. | [optional] |
22
+ | **item_filters** | **Array&lt;String&gt;** | 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 &#39;item matches&#39; rule type. | [optional] |
24
- | **modify_custom_field1** | **String** | | [optional] |
25
- | **modify_custom_field2** | **String** | | [optional] |
26
- | **modify_custom_field3** | **String** | | [optional] |
27
- | **modify_custom_field4** | **String** | | [optional] |
28
- | **modify_custom_field5** | **String** | | [optional] |
29
- | **modify_custom_field6** | **String** | | [optional] |
30
- | **modify_custom_field7** | **String** | | [optional] |
31
- | **modify_skip_affiliate** | **Boolean** | | [optional] |
32
- | **modify_skip_affiliate_network_pixel** | **Boolean** | | [optional] |
33
- | **rotating_transaction_gateway_filters** | **Object** | Optional list of rotating transaction gateway oids restricting this rule to orders processed by one of these gateways. | [optional] |
24
+ | **modify_custom_field1** | **String** | When failure_action is &#39;Process Payment and Modify&#39;, set order custom field 1 to this value. | [optional] |
25
+ | **modify_custom_field2** | **String** | When failure_action is &#39;Process Payment and Modify&#39;, set order custom field 2 to this value. | [optional] |
26
+ | **modify_custom_field3** | **String** | When failure_action is &#39;Process Payment and Modify&#39;, set order custom field 3 to this value. | [optional] |
27
+ | **modify_custom_field4** | **String** | When failure_action is &#39;Process Payment and Modify&#39;, set order custom field 4 to this value. | [optional] |
28
+ | **modify_custom_field5** | **String** | When failure_action is &#39;Process Payment and Modify&#39;, set order custom field 5 to this value. | [optional] |
29
+ | **modify_custom_field6** | **String** | When failure_action is &#39;Process Payment and Modify&#39;, set order custom field 6 to this value. | [optional] |
30
+ | **modify_custom_field7** | **String** | When failure_action is &#39;Process Payment and Modify&#39;, set order custom field 7 to this value. | [optional] |
31
+ | **modify_skip_affiliate** | **Boolean** | When failure_action is &#39;Process Payment and Modify&#39;, strip the affiliate from the order. | [optional] |
32
+ | **modify_skip_affiliate_network_pixel** | **Boolean** | When failure_action is &#39;Process Payment and Modify&#39;, skip firing the affiliate network pixel. | [optional] |
33
+ | **rotating_transaction_gateway_filters** | **Array&lt;Integer&gt;** | 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** | **Object** | Optional list of screen branding theme oids restricting this rule to orders associated with one or more storefronts. | [optional] |
35
+ | **screen_branding_theme_filters** | **Array&lt;Integer&gt;** | 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
@@ -4,42 +4,42 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **affiliate_oid** | **Integer** | | [optional] |
8
- | **amount_threshold** | **Float** | | [optional] |
9
- | **auto_note** | **String** | | [optional] |
7
+ | **affiliate_oid** | **Integer** | Affiliate oid for the &#39;affiliate matches&#39; 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&#39;s merchant note when this rule fires. | [optional] |
10
10
  | **avs_match_type** | **String** | | [optional] |
11
- | **avs_response_codes** | **String** | | [optional] |
11
+ | **avs_response_codes** | **String** | AVS response codes for the &#39;address street and zip avs&#39; rule type. | [optional] |
12
12
  | **card_number** | **String** | Masked credit card number for rules tied to a specific card | [optional] |
13
- | **count_threshold** | **Integer** | | [optional] |
14
- | **country_code** | **String** | | [optional] |
13
+ | **count_threshold** | **Integer** | Integer count threshold for count/quantity/hours rule types. | [optional] |
14
+ | **country_code** | **String** | ISO country code for the &#39;address not in country&#39; rule type. | [optional] |
15
15
  | **created_by** | **String** | | [optional] |
16
16
  | **created_dts** | **String** | Created date | [optional] |
17
- | **credit_card_bins** | **Object** | Credit card BINs blocked by the &#39;credit card block bin&#39; rule type. | [optional] |
18
- | **decline_message** | **String** | | [optional] |
17
+ | **credit_card_bins** | **Array&lt;String&gt;** | Credit card BINs blocked by the &#39;credit card block bin&#39; 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** | | [optional] |
21
+ | **email** | **String** | Email address for the &#39;address email&#39; 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** | | [optional] |
25
- | **gateway_response_value** | **String** | | [optional] |
26
- | **ip_address** | **String** | | [optional] |
24
+ | **gateway_response_codes** | **String** | Gateway response code key for the &#39;gateway response&#39; rule type. | [optional] |
25
+ | **gateway_response_value** | **String** | Gateway response code value for the &#39;gateway response&#39; rule type. | [optional] |
26
+ | **ip_address** | **String** | IP address or subnet for &#39;exempt ip&#39; and &#39;ip matches&#39; rule types. | [optional] |
27
27
  | **ip_range_type** | **String** | | [optional] |
28
- | **item_filters** | [**Array&lt;FraudRuleItemFilter&gt;**](FraudRuleItemFilter.md) | | [optional] |
29
- | **merchant_item_id** | **String** | | [optional] |
30
- | **modify_custom_field1** | **String** | | [optional] |
31
- | **modify_custom_field2** | **String** | | [optional] |
32
- | **modify_custom_field3** | **String** | | [optional] |
33
- | **modify_custom_field4** | **String** | | [optional] |
34
- | **modify_custom_field5** | **String** | | [optional] |
35
- | **modify_custom_field6** | **String** | | [optional] |
36
- | **modify_custom_field7** | **String** | | [optional] |
37
- | **modify_skip_affiliate** | **Boolean** | | [optional] |
38
- | **modify_skip_affiliate_network_pixel** | **Boolean** | | [optional] |
39
- | **rotating_transaction_gateway_filters** | [**Array&lt;FraudRuleRotatingTransactionGatewayFilter&gt;**](FraudRuleRotatingTransactionGatewayFilter.md) | | [optional] |
28
+ | **item_filters** | [**Array&lt;FraudRuleItemFilter&gt;**](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 &#39;item matches&#39; rule type. | [optional] |
30
+ | **modify_custom_field1** | **String** | Value the rule sets on order custom field 1 (only meaningful for &#39;Process Payment and Modify&#39;). | [optional] |
31
+ | **modify_custom_field2** | **String** | Value the rule sets on order custom field 2 (only meaningful for &#39;Process Payment and Modify&#39;). | [optional] |
32
+ | **modify_custom_field3** | **String** | Value the rule sets on order custom field 3 (only meaningful for &#39;Process Payment and Modify&#39;). | [optional] |
33
+ | **modify_custom_field4** | **String** | Value the rule sets on order custom field 4 (only meaningful for &#39;Process Payment and Modify&#39;). | [optional] |
34
+ | **modify_custom_field5** | **String** | Value the rule sets on order custom field 5 (only meaningful for &#39;Process Payment and Modify&#39;). | [optional] |
35
+ | **modify_custom_field6** | **String** | Value the rule sets on order custom field 6 (only meaningful for &#39;Process Payment and Modify&#39;). | [optional] |
36
+ | **modify_custom_field7** | **String** | Value the rule sets on order custom field 7 (only meaningful for &#39;Process Payment and Modify&#39;). | [optional] |
37
+ | **modify_skip_affiliate** | **Boolean** | When true, the rule strips the affiliate from the order (only meaningful for &#39;Process Payment and Modify&#39;). | [optional] |
38
+ | **modify_skip_affiliate_network_pixel** | **Boolean** | When true, the rule suppresses the affiliate network pixel (only meaningful for &#39;Process Payment and Modify&#39;). | [optional] |
39
+ | **rotating_transaction_gateway_filters** | [**Array&lt;FraudRuleRotatingTransactionGatewayFilter&gt;**](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 &#39;creditCardRules&#39;). 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&lt;FraudRuleStorefrontFilter&gt;**](FraudRuleStorefrontFilter.md) | | [optional] |
42
+ | **storefront_filters** | [**Array&lt;FraudRuleStorefrontFilter&gt;**](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** | | [optional] |
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&#39;s auto_note. Use &#39;*&#39; 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** | | [optional] |
13
- | **created_by** | **String** | | [optional] |
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 &#39;credit card matches&#39; rules. Use &#39;*&#39; wildcards. | [optional] |
17
17
  | **decline_message** | **String** | Wildcard search on the rule&#39;s decline_message. Use &#39;*&#39; for wildcards. | [optional] |
18
18
  | **failure_action** | **String** | | [optional] |
19
- | **gateway_code** | **String** | | [optional] |
20
- | **merchant_item_id** | **String** | | [optional] |
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&#39;s secondary modifier (eg &#39;address&#39;/&#39;subnet&#39;, gateway codes, avs match types). | [optional] |
22
- | **modify_custom_field1** | **String** | | [optional] |
23
- | **modify_custom_field2** | **String** | | [optional] |
24
- | **modify_custom_field3** | **String** | | [optional] |
25
- | **modify_custom_field4** | **String** | | [optional] |
26
- | **modify_custom_field5** | **String** | | [optional] |
27
- | **modify_custom_field6** | **String** | | [optional] |
28
- | **modify_custom_field7** | **String** | | [optional] |
29
- | **modify_skip_affiliate** | **Boolean** | | [optional] |
30
- | **modify_skip_affiliate_network_pixel** | **Boolean** | | [optional] |
22
+ | **modify_custom_field1** | **String** | Wildcard search on rules&#39; modify_custom_field1 value. | [optional] |
23
+ | **modify_custom_field2** | **String** | Wildcard search on rules&#39; modify_custom_field2 value. | [optional] |
24
+ | **modify_custom_field3** | **String** | Wildcard search on rules&#39; modify_custom_field3 value. | [optional] |
25
+ | **modify_custom_field4** | **String** | Wildcard search on rules&#39; modify_custom_field4 value. | [optional] |
26
+ | **modify_custom_field5** | **String** | Wildcard search on rules&#39; modify_custom_field5 value. | [optional] |
27
+ | **modify_custom_field6** | **String** | Wildcard search on rules&#39; modify_custom_field6 value. | [optional] |
28
+ | **modify_custom_field7** | **String** | Wildcard search on rules&#39; 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** | | [optional] |
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&#39;s text parameter (email / ip / bin / country / item id / avs codes - the backend disambiguates by rule_type). | [optional] |
36
- | **theme_code** | **String** | | [optional] |
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 emails during checkout fraud review
36
- # Adds one or more email addresses to the fraud decline list for this merchant account.
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 emails during checkout fraud review
46
- # Adds one or more email addresses to the fraud decline list for this merchant account.
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 &#39;establish fraud filter&#39; 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&#39;s /24 subnet (last octet masked). The credit card filter duplicates the order&#39;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