ultracart_api 4.1.91 → 4.1.94

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.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +26 -2
  3. data/docs/AutoOrderApi.md +52 -0
  4. data/docs/AutoOrderCancelReason.md +22 -0
  5. data/docs/AutoOrderCancelReasonsResponse.md +26 -0
  6. data/docs/FraudApi.md +278 -0
  7. data/docs/FraudDeclineEmailRequest.md +18 -0
  8. data/docs/FraudLookupValues.md +28 -0
  9. data/docs/FraudLookupValuesResponse.md +26 -0
  10. data/docs/FraudRuleInsertRequest.md +76 -0
  11. data/docs/FraudRuleItemFilter.md +20 -0
  12. data/docs/FraudRulePublic.md +90 -0
  13. data/docs/FraudRuleResponse.md +26 -0
  14. data/docs/FraudRuleRotatingTransactionGatewayFilter.md +20 -0
  15. data/docs/FraudRuleSearchRequest.md +78 -0
  16. data/docs/FraudRuleStorefrontFilter.md +20 -0
  17. data/docs/FraudRulesResponse.md +26 -0
  18. data/docs/ItemVariantItem.md +2 -0
  19. data/lib/ultracart_api/api/auto_order_api.rb +58 -0
  20. data/lib/ultracart_api/api/fraud_api.rb +373 -0
  21. data/lib/ultracart_api/models/auto_order_cancel_reason.rb +240 -0
  22. data/lib/ultracart_api/models/auto_order_cancel_reasons_response.rb +259 -0
  23. data/lib/ultracart_api/models/fraud_decline_email_request.rb +220 -0
  24. data/lib/ultracart_api/models/fraud_lookup_values.rb +270 -0
  25. data/lib/ultracart_api/models/fraud_lookup_values_response.rb +256 -0
  26. data/lib/ultracart_api/models/fraud_rule_insert_request.rb +583 -0
  27. data/lib/ultracart_api/models/fraud_rule_item_filter.rb +245 -0
  28. data/lib/ultracart_api/models/fraud_rule_public.rb +652 -0
  29. data/lib/ultracart_api/models/fraud_rule_response.rb +256 -0
  30. data/lib/ultracart_api/models/fraud_rule_rotating_transaction_gateway_filter.rb +230 -0
  31. data/lib/ultracart_api/models/fraud_rule_search_request.rb +572 -0
  32. data/lib/ultracart_api/models/fraud_rule_storefront_filter.rb +245 -0
  33. data/lib/ultracart_api/models/fraud_rules_response.rb +259 -0
  34. data/lib/ultracart_api/models/item_variant_item.rb +11 -1
  35. data/lib/ultracart_api/version.rb +1 -1
  36. data/lib/ultracart_api.rb +14 -0
  37. metadata +30 -2
@@ -0,0 +1,90 @@
1
+ # UltracartClient::FraudRulePublic
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **affiliate_oid** | **Integer** | | [optional] |
8
+ | **amount_threshold** | **Float** | | [optional] |
9
+ | **auto_note** | **String** | | [optional] |
10
+ | **avs_match_type** | **String** | | [optional] |
11
+ | **avs_response_codes** | **String** | | [optional] |
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] |
15
+ | **created_by** | **String** | | [optional] |
16
+ | **created_dts** | **String** | Created date | [optional] |
17
+ | **credit_card_bins** | **Object** | Credit card BINs blocked by the 'credit card block bin' rule type. | [optional] |
18
+ | **decline_message** | **String** | | [optional] |
19
+ | **description** | **String** | Human-readable description of the rule | [optional] |
20
+ | **description_html** | **String** | HTML version of the rule description | [optional] |
21
+ | **email** | **String** | | [optional] |
22
+ | **failure_action** | **String** | Action taken when this rule fires. | [optional] |
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] |
27
+ | **ip_range_type** | **String** | | [optional] |
28
+ | **item_filters** | [**Array<FraudRuleItemFilter>**](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<FraudRuleRotatingTransactionGatewayFilter>**](FraudRuleRotatingTransactionGatewayFilter.md) | | [optional] |
40
+ | **rule_group** | **String** | Group containing this rule type (eg 'creditCardRules') | [optional] |
41
+ | **rule_type** | **String** | Rule type. | [optional] |
42
+ | **storefront_filters** | [**Array<FraudRuleStorefrontFilter>**](FraudRuleStorefrontFilter.md) | | [optional] |
43
+ | **user_action** | **String** | | [optional] |
44
+
45
+ ## Example
46
+
47
+ ```ruby
48
+ require 'ultracart_api'
49
+
50
+ instance = UltracartClient::FraudRulePublic.new(
51
+ affiliate_oid: null,
52
+ amount_threshold: null,
53
+ auto_note: null,
54
+ avs_match_type: null,
55
+ avs_response_codes: null,
56
+ card_number: null,
57
+ count_threshold: null,
58
+ country_code: null,
59
+ created_by: null,
60
+ created_dts: null,
61
+ credit_card_bins: null,
62
+ decline_message: null,
63
+ description: null,
64
+ description_html: null,
65
+ email: null,
66
+ failure_action: null,
67
+ fraud_rule_oid: null,
68
+ gateway_response_codes: null,
69
+ gateway_response_value: null,
70
+ ip_address: null,
71
+ ip_range_type: null,
72
+ item_filters: null,
73
+ merchant_item_id: null,
74
+ modify_custom_field1: null,
75
+ modify_custom_field2: null,
76
+ modify_custom_field3: null,
77
+ modify_custom_field4: null,
78
+ modify_custom_field5: null,
79
+ modify_custom_field6: null,
80
+ modify_custom_field7: null,
81
+ modify_skip_affiliate: null,
82
+ modify_skip_affiliate_network_pixel: null,
83
+ rotating_transaction_gateway_filters: null,
84
+ rule_group: null,
85
+ rule_type: null,
86
+ storefront_filters: null,
87
+ user_action: null
88
+ )
89
+ ```
90
+
@@ -0,0 +1,26 @@
1
+ # UltracartClient::FraudRuleResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **error** | [**Error**](Error.md) | | [optional] |
8
+ | **fraud_rule** | [**FraudRulePublic**](FraudRulePublic.md) | | [optional] |
9
+ | **metadata** | [**ResponseMetadata**](ResponseMetadata.md) | | [optional] |
10
+ | **success** | **Boolean** | Indicates if API call was successful | [optional] |
11
+ | **warning** | [**Warning**](Warning.md) | | [optional] |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'ultracart_api'
17
+
18
+ instance = UltracartClient::FraudRuleResponse.new(
19
+ error: null,
20
+ fraud_rule: null,
21
+ metadata: null,
22
+ success: null,
23
+ warning: null
24
+ )
25
+ ```
26
+
@@ -0,0 +1,20 @@
1
+ # UltracartClient::FraudRuleRotatingTransactionGatewayFilter
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **code** | **String** | The short code identifier of this rotating transaction gateway used to filter this fraud rule | [optional] |
8
+ | **rotating_transaction_gateway_oid** | **Integer** | Unique object identifier of a rotating transaction gateway filtering this fraud rule to only orders processed by this gateway | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'ultracart_api'
14
+
15
+ instance = UltracartClient::FraudRuleRotatingTransactionGatewayFilter.new(
16
+ code: null,
17
+ rotating_transaction_gateway_oid: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,78 @@
1
+ # UltracartClient::FraudRuleSearchRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **affiliate_oid_or_email** | **String** | Affiliate oid (integer) or affiliate email. Email is resolved to oid before searching. | [optional] |
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] |
10
+ | **auto_note** | **String** | Wildcard search on the rule's auto_note. Use '*' for wildcards. | [optional] |
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] |
14
+ | **created_date_begin** | **String** | Rule creation date begin (MM/dd/yyyy) | [optional] |
15
+ | **created_date_end** | **String** | Rule creation date end (MM/dd/yyyy) | [optional] |
16
+ | **credit_card_partial** | **String** | Partial credit card number for matching 'credit card matches' rules. Use '*' wildcards. | [optional] |
17
+ | **decline_message** | **String** | Wildcard search on the rule's decline_message. Use '*' for wildcards. | [optional] |
18
+ | **failure_action** | **String** | | [optional] |
19
+ | **gateway_code** | **String** | | [optional] |
20
+ | **merchant_item_id** | **String** | | [optional] |
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** | | [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] |
31
+ | **rule_group** | **String** | Rule group to filter by. | [optional] |
32
+ | **rule_type** | **String** | Rule type to filter by. | [optional] |
33
+ | **search_linked_accounts** | **Boolean** | Include rules from accounts linked to this merchant. Defaults to false. | [optional] |
34
+ | **storefront_hostname** | **String** | | [optional] |
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** | | [optional] |
37
+ | **user_action** | **String** | | [optional] |
38
+
39
+ ## Example
40
+
41
+ ```ruby
42
+ require 'ultracart_api'
43
+
44
+ instance = UltracartClient::FraudRuleSearchRequest.new(
45
+ affiliate_oid_or_email: null,
46
+ amount_threshold_begin: null,
47
+ amount_threshold_end: null,
48
+ auto_note: null,
49
+ count_threshold_begin: null,
50
+ count_threshold_end: null,
51
+ created_by: null,
52
+ created_date_begin: null,
53
+ created_date_end: null,
54
+ credit_card_partial: null,
55
+ decline_message: null,
56
+ failure_action: null,
57
+ gateway_code: null,
58
+ merchant_item_id: null,
59
+ modifier_value: null,
60
+ modify_custom_field1: null,
61
+ modify_custom_field2: null,
62
+ modify_custom_field3: null,
63
+ modify_custom_field4: null,
64
+ modify_custom_field5: null,
65
+ modify_custom_field6: null,
66
+ modify_custom_field7: null,
67
+ modify_skip_affiliate: null,
68
+ modify_skip_affiliate_network_pixel: null,
69
+ rule_group: null,
70
+ rule_type: null,
71
+ search_linked_accounts: null,
72
+ storefront_hostname: null,
73
+ text_value: null,
74
+ theme_code: null,
75
+ user_action: null
76
+ )
77
+ ```
78
+
@@ -0,0 +1,20 @@
1
+ # UltracartClient::FraudRuleStorefrontFilter
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **screen_branding_theme_code** | **String** | Screen branding theme code associated with this storefront (legacy checkouts) | [optional] |
8
+ | **storefront_host_name** | **String** | StoreFront Host Name | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'ultracart_api'
14
+
15
+ instance = UltracartClient::FraudRuleStorefrontFilter.new(
16
+ screen_branding_theme_code: null,
17
+ storefront_host_name: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,26 @@
1
+ # UltracartClient::FraudRulesResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **error** | [**Error**](Error.md) | | [optional] |
8
+ | **fraud_rules** | [**Array<FraudRulePublic>**](FraudRulePublic.md) | fraud_rules | [optional] |
9
+ | **metadata** | [**ResponseMetadata**](ResponseMetadata.md) | | [optional] |
10
+ | **success** | **Boolean** | Indicates if API call was successful | [optional] |
11
+ | **warning** | [**Warning**](Warning.md) | | [optional] |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'ultracart_api'
17
+
18
+ instance = UltracartClient::FraudRulesResponse.new(
19
+ error: null,
20
+ fraud_rules: null,
21
+ metadata: null,
22
+ success: null,
23
+ warning: null
24
+ )
25
+ ```
26
+
@@ -6,6 +6,7 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **description** | **String** | Description | [optional] |
8
8
  | **merchant_item_multimedia_oid** | **Integer** | Multimedia object identifier | [optional] |
9
+ | **quantity** | **Integer** | Quantity of the variant item added to the cart when this combination is selected. Defaults to 1. | [optional] |
9
10
  | **variant_default_multimedia** | [**ItemContentMultimedia**](ItemContentMultimedia.md) | | [optional] |
10
11
  | **variant_merchant_item_id** | **String** | Variant item id | [optional] |
11
12
  | **variant_merchant_item_oid** | **Integer** | Variant item object identifier | [optional] |
@@ -21,6 +22,7 @@ require 'ultracart_api'
21
22
  instance = UltracartClient::ItemVariantItem.new(
22
23
  description: null,
23
24
  merchant_item_multimedia_oid: null,
25
+ quantity: null,
24
26
  variant_default_multimedia: null,
25
27
  variant_merchant_item_id: null,
26
28
  variant_merchant_item_oid: null,
@@ -458,6 +458,64 @@ module UltracartClient
458
458
  return data, status_code, headers
459
459
  end
460
460
 
461
+ # Retrieve auto order cancel reasons.
462
+ # Retrieves auto order cancel reasons.
463
+ # @param [Hash] opts the optional parameters
464
+ # @return [AutoOrderCancelReasonsResponse]
465
+ def get_auto_order_cancel_reasons(opts = {})
466
+ data, _status_code, _headers = get_auto_order_cancel_reasons_with_http_info(opts)
467
+ data
468
+ end
469
+
470
+ # Retrieve auto order cancel reasons.
471
+ # Retrieves auto order cancel reasons.
472
+ # @param [Hash] opts the optional parameters
473
+ # @return [Array<(AutoOrderCancelReasonsResponse, Integer, Hash)>] AutoOrderCancelReasonsResponse data, response status code and response headers
474
+ def get_auto_order_cancel_reasons_with_http_info(opts = {})
475
+ if @api_client.config.debugging
476
+ @api_client.config.logger.debug 'Calling API: AutoOrderApi.get_auto_order_cancel_reasons ...'
477
+ end
478
+ # resource path
479
+ local_var_path = '/auto_order/auto_orders/cancel_reasons'
480
+
481
+ # query parameters
482
+ query_params = opts[:query_params] || {}
483
+
484
+ # header parameters
485
+ header_params = opts[:header_params] || {}
486
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
487
+ # HTTP header 'Accept' (if needed)
488
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
489
+
490
+ # form parameters
491
+ form_params = opts[:form_params] || {}
492
+
493
+ # http body (model)
494
+ post_body = opts[:debug_body]
495
+
496
+ # return_type
497
+ return_type = opts[:debug_return_type] || 'AutoOrderCancelReasonsResponse'
498
+
499
+ # auth_names
500
+ auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
501
+
502
+ new_options = opts.merge(
503
+ :operation => :"AutoOrderApi.get_auto_order_cancel_reasons",
504
+ :header_params => header_params,
505
+ :query_params => query_params,
506
+ :form_params => form_params,
507
+ :body => post_body,
508
+ :auth_names => auth_names,
509
+ :return_type => return_type
510
+ )
511
+
512
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
513
+ if @api_client.config.debugging
514
+ @api_client.config.logger.debug "API called: AutoOrderApi#get_auto_order_cancel_reasons\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
515
+ end
516
+ return data, status_code, headers
517
+ end
518
+
461
519
  # Retrieve email delivery information for this auto order.
462
520
  # Retrieves email delivery records associated with the specified auto order.
463
521
  # @param auto_order_oid [Integer] The auto order oid to retrieve email delivery information for.