ultracart_api 4.1.94 → 4.1.96

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: 9039a89e9e1a86f496622fbc690d91a7d3060521915b1d7b4b4546bff0640942
4
- data.tar.gz: 17951d2b1878d2f6da99b50c1c0f7dc4d3c89e45935a88acd1db278e76afbf33
3
+ metadata.gz: 50eea23bef9f9f23d5b91c373e5803ac371c99850e7e7f83d48cfd7c6e050d63
4
+ data.tar.gz: dd2430fbdeab17b5943efc2bfe6d1ba169a70658400a039ea263ba934197ef22
5
5
  SHA512:
6
- metadata.gz: 29d0fe1c6e9c5d9a00b005814b3a2fd2dc4b577cdb6c0507b6ca395b5fe22c2d1655322970dee4d795a25d75c68b5e2eeec7c8bbe628600f6502290eea7690e6
7
- data.tar.gz: 7109641620abb4d0a0d9ecc7a19d558129b9a9da675795f14eec3d2d43aa06a220f53698252e8363e17125d490de3c0299fe2b7f58f051456b1ee8f3b473ee7f
6
+ metadata.gz: 8f09615e424ca49497814e9d58eee3648e95c609fe61657572272805f9d657db4383019790f7fc562031099111c0c8549b583be115a56ba58dcb2b88652b983d
7
+ data.tar.gz: 995b0794acf0d36b77a618b399dbc216fef8286e56c1ed7a3ef432ef05c8ac49268922565020af645023d3b35b5548872767694475b032bd2035bad457b6c57b
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.94
10
+ - Package version: 4.1.96
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.94'
19
+ gem 'ultracart_api', '4.1.96'
20
20
  ```
21
21
 
22
22
  install:
@@ -1769,6 +1769,8 @@ Not every change is committed to every SDK.
1769
1769
 
1770
1770
  | Version | Date | Comments |
1771
1771
  | --: | :-: | --- |
1772
+ | 4.1.96 | 06/03/2026 | fraud api alpha build |
1773
+ | 4.1.95 | 06/02/2026 | fraud api alpha version |
1772
1774
  | 4.1.94 | 06/02/2026 | fraud api alpha version |
1773
1775
  | 4.1.93 | 06/02/2026 | fraud api alpha version for testing |
1774
1776
  | 4.1.92 | 05/26/2026 | AutoOrderApi.getAutoOrderCancelReasons |
@@ -37,7 +37,7 @@
37
37
  | **modify_skip_affiliate** | **Boolean** | | [optional] |
38
38
  | **modify_skip_affiliate_network_pixel** | **Boolean** | | [optional] |
39
39
  | **rotating_transaction_gateway_filters** | [**Array<FraudRuleRotatingTransactionGatewayFilter>**](FraudRuleRotatingTransactionGatewayFilter.md) | | [optional] |
40
- | **rule_group** | **String** | Group containing this rule type (eg 'creditCardRules') | [optional] |
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
42
  | **storefront_filters** | [**Array<FraudRuleStorefrontFilter>**](FraudRuleStorefrontFilter.md) | | [optional] |
43
43
  | **user_action** | **String** | | [optional] |
data/docs/OauthApi.md CHANGED
@@ -126,7 +126,7 @@ end
126
126
 
127
127
  ## oauth_device_authorize
128
128
 
129
- > oauth_device_authorize(client_id, scope)
129
+ > <OauthDeviceAuthorizationResponse> oauth_device_authorize(client_id, scope)
130
130
 
131
131
  Initiate a device authorization flow.
132
132
 
@@ -141,9 +141,9 @@ Initiates the device authorization flow by returning a device code and user code
141
141
 
142
142
  #### Using the oauth_device_authorize_with_http_info variant
143
143
 
144
- This returns an Array which contains the response data (`nil` in this case), status code and headers.
144
+ This returns an Array which contains the response data, status code and headers.
145
145
 
146
- > <Array(nil, Integer, Hash)> oauth_device_authorize_with_http_info(client_id, scope)
146
+ > <Array(<OauthDeviceAuthorizationResponse>, Integer, Hash)> oauth_device_authorize_with_http_info(client_id, scope)
147
147
 
148
148
  ```ruby
149
149
  begin
@@ -151,7 +151,7 @@ begin
151
151
  data, status_code, headers = api_instance.oauth_device_authorize_with_http_info(client_id, scope)
152
152
  p status_code # => 2xx
153
153
  p headers # => { ... }
154
- p data # => nil
154
+ p data # => <OauthDeviceAuthorizationResponse>
155
155
  rescue UltracartClient::ApiError => e
156
156
  puts "Error when calling OauthApi->oauth_device_authorize_with_http_info: #{e}"
157
157
  end
@@ -166,7 +166,7 @@ end
166
166
 
167
167
  ### Return type
168
168
 
169
- nil (empty response body)
169
+ [**OauthDeviceAuthorizationResponse**](OauthDeviceAuthorizationResponse.md)
170
170
 
171
171
  ### Authorization
172
172
 
@@ -126,10 +126,10 @@ module UltracartClient
126
126
  # @param client_id [String] The OAuth application client_id.
127
127
  # @param scope [String] The application-level scope (e.g., crm, ultraship).
128
128
  # @param [Hash] opts the optional parameters
129
- # @return [nil]
129
+ # @return [OauthDeviceAuthorizationResponse]
130
130
  def oauth_device_authorize(client_id, scope, opts = {})
131
- oauth_device_authorize_with_http_info(client_id, scope, opts)
132
- nil
131
+ data, _status_code, _headers = oauth_device_authorize_with_http_info(client_id, scope, opts)
132
+ data
133
133
  end
134
134
 
135
135
  # Initiate a device authorization flow.
@@ -137,7 +137,7 @@ module UltracartClient
137
137
  # @param client_id [String] The OAuth application client_id.
138
138
  # @param scope [String] The application-level scope (e.g., crm, ultraship).
139
139
  # @param [Hash] opts the optional parameters
140
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
140
+ # @return [Array<(OauthDeviceAuthorizationResponse, Integer, Hash)>] OauthDeviceAuthorizationResponse data, response status code and response headers
141
141
  def oauth_device_authorize_with_http_info(client_id, scope, opts = {})
142
142
  if @api_client.config.debugging
143
143
  @api_client.config.logger.debug 'Calling API: OauthApi.oauth_device_authorize ...'
@@ -176,7 +176,7 @@ module UltracartClient
176
176
  post_body = opts[:debug_body]
177
177
 
178
178
  # return_type
179
- return_type = opts[:debug_return_type]
179
+ return_type = opts[:debug_return_type] || 'OauthDeviceAuthorizationResponse'
180
180
 
181
181
  # auth_names
182
182
  auth_names = opts[:debug_auth_names] || ['ultraCartBrowserApiKey', 'ultraCartOauth', 'ultraCartSimpleApiKey']
@@ -88,7 +88,7 @@ module UltracartClient
88
88
 
89
89
  attr_accessor :rotating_transaction_gateway_filters
90
90
 
91
- # Group containing this rule type (eg 'creditCardRules')
91
+ # 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.
92
92
  attr_accessor :rule_group
93
93
 
94
94
  # Rule type.
@@ -403,8 +403,6 @@ module UltracartClient
403
403
  return false unless failure_action_validator.valid?(@failure_action)
404
404
  ip_range_type_validator = EnumAttributeValidator.new('String', ["address", "subnet"])
405
405
  return false unless ip_range_type_validator.valid?(@ip_range_type)
406
- rule_group_validator = EnumAttributeValidator.new('String', ["exemptRules", "creditCardRules", "ipRules", "addressRules", "affiliateRules", "itemRules", "orderRules", "browserRules"])
407
- return false unless rule_group_validator.valid?(@rule_group)
408
406
  rule_type_validator = EnumAttributeValidator.new('String', ["exempt apo fpo", "exempt ip", "exempt logged in customer with pricing tier", "credit card single transaction exceeds", "credit card daily transaction amount exceeds", "credit card daily transaction count exceeds", "credit card weekly transaction amount exceeds", "credit card weekly transaction count exceeds", "credit card change number", "credit card block bin", "credit card block prepaid", "amazon special instructions", "paypal special instructions", "reward coupon email mismatch", "gateway response", "ip daily transaction amount exceeds", "ip daily transaction count exceeds", "ip weekly transaction amount exceeds", "ip weekly transaction count exceeds", "ip matches", "ip country mismatch", "address fraud score exceeds", "address fraud score exceeds exempt apo fpo", "address street and zip avs", "address billing doesnt match shipping", "billing country doesnt match shipping", "address international", "address match except zip", "address email", "address not in country", "wholesale customer not logged in", "affiliate matches", "affiliate daily count exceeds", "affiliate weekly count exceeds", "affiliate daily decline percentage exceeds", "affiliate weekly decline percentage exceeds", "affiliate daily with same ip", "affiliate weekly with same ip", "item matches", "item quantity exceeds", "order previous return", "order purchased within last hours", "order used coupon meant for sharing", "browser os linux"])
409
407
  return false unless rule_type_validator.valid?(@rule_type)
410
408
  user_action_validator = EnumAttributeValidator.new('String', ["Attempted", "Approved"])
@@ -442,16 +440,6 @@ module UltracartClient
442
440
  @ip_range_type = ip_range_type
443
441
  end
444
442
 
445
- # Custom attribute writer method checking allowed values (enum).
446
- # @param [Object] rule_group Object to be assigned
447
- def rule_group=(rule_group)
448
- validator = EnumAttributeValidator.new('String', ["exemptRules", "creditCardRules", "ipRules", "addressRules", "affiliateRules", "itemRules", "orderRules", "browserRules"])
449
- unless validator.valid?(rule_group)
450
- fail ArgumentError, "invalid value for \"rule_group\", must be one of #{validator.allowable_values}."
451
- end
452
- @rule_group = rule_group
453
- end
454
-
455
443
  # Custom attribute writer method checking allowed values (enum).
456
444
  # @param [Object] rule_type Object to be assigned
457
445
  def rule_type=(rule_type)
@@ -11,5 +11,5 @@ OpenAPI Generator version: 6.0.1-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module UltracartClient
14
- VERSION = '4.1.94'
14
+ VERSION = '4.1.96'
15
15
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ultracart_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.94
4
+ version: 4.1.96
5
5
  platform: ruby
6
6
  authors:
7
7
  - UltraCart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-06-02 00:00:00.000000000 Z
11
+ date: 2026-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus