ultracart_api 4.0.241 → 4.0.242

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: 7bd728cffe0756062860c32b59d2c27fc8bc8e0e168ad83c352af07503299a57
4
- data.tar.gz: e2f1a97b285f756bbc878a77038b6fe495d177316974dad8d68897bc5432f27d
3
+ metadata.gz: 5937da8b7043237dc6f7c5913a0864b1c41fb627d189c44b70037a049843d2db
4
+ data.tar.gz: f71efd1442fa48f5f7eec5cfd8093ea5d41e071f9befc4e7a950bdedec91237a
5
5
  SHA512:
6
- metadata.gz: 6c71747f764534df88e9537a6e2fbb841d335991978355fa699d74a6cadc4ffbce0d860257b604a9c57eeb10931a9c06c209f2d7e6d5fbf9439c1faf8c23bf37
7
- data.tar.gz: 425748a8c96690e4d14b11243daf704348a54260efbafe8ada682d01cc28a7c23b2727ccfd0a047405db1f9b6ca1c13988b62499109a01fb891026cfea1f29b3
6
+ metadata.gz: e9c8249d4eb031486f3514c79d6db699e6ba2bad37445e55c9d80413c2d958d65394e712e15f98a2e81c2efd3626a50c2e4d303fe712db2695f523f9f92f7748
7
+ data.tar.gz: dbbb92986bfdb55ce98e9894ab67df2c16ca5877200aba6f849e762de2f7e5731e4f484112a09f92b003481713bea9201d46cd2d696635f5b52edbd242960d2b
data/README.md CHANGED
@@ -7,7 +7,7 @@ UltraCart REST API Version 2
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.0.241
10
+ - Package version: 4.0.242
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
  For more information, please visit [http://www.ultracart.com](http://www.ultracart.com)
13
13
 
@@ -24,16 +24,16 @@ gem build ultracart_api.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./ultracart_api-4.0.241.gem
27
+ gem install ./ultracart_api-4.0.242.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./ultracart_api-4.0.241.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./ultracart_api-4.0.242.gem` to install the development dependencies)
31
31
 
32
32
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
33
33
 
34
34
  Finally add this to the Gemfile:
35
35
 
36
- gem 'ultracart_api', '~> 4.0.241'
36
+ gem 'ultracart_api', '~> 4.0.242'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -1426,9 +1426,9 @@ Class | Method | HTTP request | Description
1426
1426
  - [UltracartClient::WebhookLogResponse](docs/WebhookLogResponse.md)
1427
1427
  - [UltracartClient::WebhookLogSummariesResponse](docs/WebhookLogSummariesResponse.md)
1428
1428
  - [UltracartClient::WebhookLogSummary](docs/WebhookLogSummary.md)
1429
+ - [UltracartClient::WebhookReflow](docs/WebhookReflow.md)
1430
+ - [UltracartClient::WebhookReflowResponse](docs/WebhookReflowResponse.md)
1429
1431
  - [UltracartClient::WebhookResponse](docs/WebhookResponse.md)
1430
- - [UltracartClient::WebhookSampleRequest](docs/WebhookSampleRequest.md)
1431
- - [UltracartClient::WebhookSampleRequestResponse](docs/WebhookSampleRequestResponse.md)
1432
1432
  - [UltracartClient::WebhooksResponse](docs/WebhooksResponse.md)
1433
1433
  - [UltracartClient::Weight](docs/Weight.md)
1434
1434
  - [UltracartClient::WorkflowAgentAuth](docs/WorkflowAgentAuth.md)
@@ -1524,6 +1524,7 @@ Not every change is committed to every SDK.
1524
1524
 
1525
1525
  | Version | Date | Comments |
1526
1526
  | --: | :-: | --- |
1527
+ | 4.0.242 | 02/18/2025 | small bug fixes for incorrect return types on several methods |
1527
1528
  | 4.0.241 | 02/06/2025 | added storefront_host_name to channel partner order object |
1528
1529
  | 4.0.240 | 01/09/2025 | fix for broken 4.0.39 due to incorrect query sig on getCustomers |
1529
1530
  | 4.0.239 | 01/09/2025 | added emails parameter to customer queries, refundOrder added to Channel partner |
@@ -86,7 +86,7 @@ nil (empty response body)
86
86
 
87
87
  ## generate_packing_slip
88
88
 
89
- > <OrdersResponse> generate_packing_slip(distribution_center_code, order_id)
89
+ > <OrderPackingSlipResponse> generate_packing_slip(distribution_center_code, order_id)
90
90
 
91
91
  Generate a packing slip for this order for the given distribution center.
92
92
 
@@ -122,7 +122,7 @@ end
122
122
 
123
123
  This returns an Array which contains the response data, status code and headers.
124
124
 
125
- > <Array(<OrdersResponse>, Integer, Hash)> generate_packing_slip_with_http_info(distribution_center_code, order_id)
125
+ > <Array(<OrderPackingSlipResponse>, Integer, Hash)> generate_packing_slip_with_http_info(distribution_center_code, order_id)
126
126
 
127
127
  ```ruby
128
128
  begin
@@ -130,7 +130,7 @@ begin
130
130
  data, status_code, headers = api_instance.generate_packing_slip_with_http_info(distribution_center_code, order_id)
131
131
  p status_code # => 2xx
132
132
  p headers # => { ... }
133
- p data # => <OrdersResponse>
133
+ p data # => <OrderPackingSlipResponse>
134
134
  rescue UltracartClient::ApiError => e
135
135
  puts "Error when calling FulfillmentApi->generate_packing_slip_with_http_info: #{e}"
136
136
  end
@@ -145,7 +145,7 @@ end
145
145
 
146
146
  ### Return type
147
147
 
148
- [**OrdersResponse**](OrdersResponse.md)
148
+ [**OrderPackingSlipResponse**](OrderPackingSlipResponse.md)
149
149
 
150
150
  ### Authorization
151
151
 
@@ -163,7 +163,7 @@ end
163
163
 
164
164
  Retrieve orders queued up for this distribution center.
165
165
 
166
- Retrieves up to 100 orders that are queued up in this distribution center. You must acknowledge them before additional new orders will be returned. There is NO record chunking. You'll get the same 100 records again and again until you acknowledge orders. The orders that are returned contain only items for this distribution center and are by default completely expanded with billing, buysafe, channel_partner, checkout, coupons, customer_profile, edi, gift, gift_certificate, internal, items, payment, shipping, summary, taxes.
166
+ Retrieves up to 100 orders that are queued up in this distribution center. You must acknowledge them before additional new orders will be returned. There is NO record chunking. You'll get the same 100 records again and again until you acknowledge orders. The orders that are returned contain only items for this distribution center and are by default completely expanded with billing, channel_partner, checkout, coupons, customer_profile, edi, gift, gift_certificate, internal, items, payment, shipping, summary, taxes.
167
167
 
168
168
  ### Examples
169
169
 
@@ -5,6 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **block_prepaid** | **Boolean** | True if prepaid cards should be blocked from buying this item | [optional] |
8
+ | **block_refunds** | **Boolean** | True if this item should block any refund attempts | [optional] |
8
9
  | **credit_card_transaction_type** | **String** | Credit card transaction type | [optional] |
9
10
  | **no_realtime_charge** | **Boolean** | True if no real-time charge should be performed on this item. | [optional] |
10
11
  | **payment_method_validity** | **Array&lt;String&gt;** | Payment method validity | [optional] |
@@ -17,6 +18,7 @@ require 'ultracart_api'
17
18
 
18
19
  instance = UltracartClient::ItemPaymentProcessing.new(
19
20
  block_prepaid: null,
21
+ block_refunds: null,
20
22
  credit_card_transaction_type: null,
21
23
  no_realtime_charge: null,
22
24
  payment_method_validity: null,
data/docs/OauthApi.md CHANGED
@@ -34,7 +34,7 @@ client_id = 'client_id_example' # String | The OAuth application client_id.
34
34
  grant_type = 'grant_type_example' # String | Type of grant
35
35
  opts = {
36
36
  code: 'code_example', # String | Authorization code received back from the browser redirect
37
- redirect_uri: 'redirect_uri_example', # String | The URI that you redirect the browser to to start the authorization process
37
+ redirect_uri: 'redirect_uri_example', # String | The URI that you redirect the browser to start the authorization process
38
38
  refresh_token: 'refresh_token_example' # String | The refresh token received during the original grant_type=authorization_code that can be used to return a new access token
39
39
  }
40
40
 
@@ -72,7 +72,7 @@ end
72
72
  | **client_id** | **String** | The OAuth application client_id. | |
73
73
  | **grant_type** | **String** | Type of grant | |
74
74
  | **code** | **String** | Authorization code received back from the browser redirect | [optional] |
75
- | **redirect_uri** | **String** | The URI that you redirect the browser to to start the authorization process | [optional] |
75
+ | **redirect_uri** | **String** | The URI that you redirect the browser to start the authorization process | [optional] |
76
76
  | **refresh_token** | **String** | The refresh token received during the original grant_type&#x3D;authorization_code that can be used to return a new access token | [optional] |
77
77
 
78
78
  ### Return type
data/docs/WebhookApi.md CHANGED
@@ -463,7 +463,7 @@ end
463
463
 
464
464
  ## resend_event
465
465
 
466
- > <WebhookSampleRequestResponse> resend_event(webhook_oid, event_name)
466
+ > <WebhookReflowResponse> resend_event(webhook_oid, event_name)
467
467
 
468
468
  Resend events to the webhook endpoint.
469
469
 
@@ -499,7 +499,7 @@ end
499
499
 
500
500
  This returns an Array which contains the response data, status code and headers.
501
501
 
502
- > <Array(<WebhookSampleRequestResponse>, Integer, Hash)> resend_event_with_http_info(webhook_oid, event_name)
502
+ > <Array(<WebhookReflowResponse>, Integer, Hash)> resend_event_with_http_info(webhook_oid, event_name)
503
503
 
504
504
  ```ruby
505
505
  begin
@@ -507,7 +507,7 @@ begin
507
507
  data, status_code, headers = api_instance.resend_event_with_http_info(webhook_oid, event_name)
508
508
  p status_code # => 2xx
509
509
  p headers # => { ... }
510
- p data # => <WebhookSampleRequestResponse>
510
+ p data # => <WebhookReflowResponse>
511
511
  rescue UltracartClient::ApiError => e
512
512
  puts "Error when calling WebhookApi->resend_event_with_http_info: #{e}"
513
513
  end
@@ -522,7 +522,7 @@ end
522
522
 
523
523
  ### Return type
524
524
 
525
- [**WebhookSampleRequestResponse**](WebhookSampleRequestResponse.md)
525
+ [**WebhookReflowResponse**](WebhookReflowResponse.md)
526
526
 
527
527
  ### Authorization
528
528
 
@@ -0,0 +1,20 @@
1
+ # UltracartClient::WebhookReflow
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **event_name** | **String** | | [optional] |
8
+ | **queued** | **Boolean** | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'ultracart_api'
14
+
15
+ instance = UltracartClient::WebhookReflow.new(
16
+ event_name: null,
17
+ queued: null
18
+ )
19
+ ```
20
+
@@ -1,4 +1,4 @@
1
- # UltracartClient::WebhookSampleRequestResponse
1
+ # UltracartClient::WebhookReflowResponse
2
2
 
3
3
  ## Properties
4
4
 
@@ -6,21 +6,21 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **error** | [**Error**](Error.md) | | [optional] |
8
8
  | **metadata** | [**ResponseMetadata**](ResponseMetadata.md) | | [optional] |
9
+ | **reflow** | [**WebhookReflow**](WebhookReflow.md) | | [optional] |
9
10
  | **success** | **Boolean** | Indicates if API call was successful | [optional] |
10
11
  | **warning** | [**Warning**](Warning.md) | | [optional] |
11
- | **webhook_sample_request** | [**WebhookSampleRequest**](WebhookSampleRequest.md) | | [optional] |
12
12
 
13
13
  ## Example
14
14
 
15
15
  ```ruby
16
16
  require 'ultracart_api'
17
17
 
18
- instance = UltracartClient::WebhookSampleRequestResponse.new(
18
+ instance = UltracartClient::WebhookReflowResponse.new(
19
19
  error: null,
20
20
  metadata: null,
21
+ reflow: null,
21
22
  success: null,
22
- warning: null,
23
- webhook_sample_request: null
23
+ warning: null
24
24
  )
25
25
  ```
26
26
 
@@ -112,7 +112,7 @@ module UltracartClient
112
112
  # @param distribution_center_code [String] Distribution center code
113
113
  # @param order_id [String] Order ID
114
114
  # @param [Hash] opts the optional parameters
115
- # @return [OrdersResponse]
115
+ # @return [OrderPackingSlipResponse]
116
116
  def generate_packing_slip(distribution_center_code, order_id, opts = {})
117
117
  data, _status_code, _headers = generate_packing_slip_with_http_info(distribution_center_code, order_id, opts)
118
118
  data
@@ -123,7 +123,7 @@ module UltracartClient
123
123
  # @param distribution_center_code [String] Distribution center code
124
124
  # @param order_id [String] Order ID
125
125
  # @param [Hash] opts the optional parameters
126
- # @return [Array<(OrdersResponse, Integer, Hash)>] OrdersResponse data, response status code and response headers
126
+ # @return [Array<(OrderPackingSlipResponse, Integer, Hash)>] OrderPackingSlipResponse data, response status code and response headers
127
127
  def generate_packing_slip_with_http_info(distribution_center_code, order_id, opts = {})
128
128
  if @api_client.config.debugging
129
129
  @api_client.config.logger.debug 'Calling API: FulfillmentApi.generate_packing_slip ...'
@@ -155,7 +155,7 @@ module UltracartClient
155
155
  post_body = opts[:debug_body]
156
156
 
157
157
  # return_type
158
- return_type = opts[:debug_return_type] || 'OrdersResponse'
158
+ return_type = opts[:debug_return_type] || 'OrderPackingSlipResponse'
159
159
 
160
160
  # auth_names
161
161
  auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
@@ -178,7 +178,7 @@ module UltracartClient
178
178
  end
179
179
 
180
180
  # Retrieve orders queued up for this distribution center.
181
- # Retrieves up to 100 orders that are queued up in this distribution center. You must acknowledge them before additional new orders will be returned. There is NO record chunking. You'll get the same 100 records again and again until you acknowledge orders. The orders that are returned contain only items for this distribution center and are by default completely expanded with billing, buysafe, channel_partner, checkout, coupons, customer_profile, edi, gift, gift_certificate, internal, items, payment, shipping, summary, taxes.
181
+ # Retrieves up to 100 orders that are queued up in this distribution center. You must acknowledge them before additional new orders will be returned. There is NO record chunking. You'll get the same 100 records again and again until you acknowledge orders. The orders that are returned contain only items for this distribution center and are by default completely expanded with billing, channel_partner, checkout, coupons, customer_profile, edi, gift, gift_certificate, internal, items, payment, shipping, summary, taxes.
182
182
  # @param distribution_center_code [String] Distribution center code
183
183
  # @param [Hash] opts the optional parameters
184
184
  # @return [OrdersResponse]
@@ -188,7 +188,7 @@ module UltracartClient
188
188
  end
189
189
 
190
190
  # Retrieve orders queued up for this distribution center.
191
- # Retrieves up to 100 orders that are queued up in this distribution center. You must acknowledge them before additional new orders will be returned. There is NO record chunking. You&#39;ll get the same 100 records again and again until you acknowledge orders. The orders that are returned contain only items for this distribution center and are by default completely expanded with billing, buysafe, channel_partner, checkout, coupons, customer_profile, edi, gift, gift_certificate, internal, items, payment, shipping, summary, taxes.
191
+ # Retrieves up to 100 orders that are queued up in this distribution center. You must acknowledge them before additional new orders will be returned. There is NO record chunking. You&#39;ll get the same 100 records again and again until you acknowledge orders. The orders that are returned contain only items for this distribution center and are by default completely expanded with billing, channel_partner, checkout, coupons, customer_profile, edi, gift, gift_certificate, internal, items, payment, shipping, summary, taxes.
192
192
  # @param distribution_center_code [String] Distribution center code
193
193
  # @param [Hash] opts the optional parameters
194
194
  # @return [Array<(OrdersResponse, Integer, Hash)>] OrdersResponse data, response status code and response headers
@@ -38,7 +38,7 @@ module UltracartClient
38
38
  # @param grant_type [String] Type of grant
39
39
  # @param [Hash] opts the optional parameters
40
40
  # @option opts [String] :code Authorization code received back from the browser redirect
41
- # @option opts [String] :redirect_uri The URI that you redirect the browser to to start the authorization process
41
+ # @option opts [String] :redirect_uri The URI that you redirect the browser to start the authorization process
42
42
  # @option opts [String] :refresh_token The refresh token received during the original grant_type&#x3D;authorization_code that can be used to return a new access token
43
43
  # @return [OauthTokenResponse]
44
44
  def oauth_access_token(client_id, grant_type, opts = {})
@@ -52,7 +52,7 @@ module UltracartClient
52
52
  # @param grant_type [String] Type of grant
53
53
  # @param [Hash] opts the optional parameters
54
54
  # @option opts [String] :code Authorization code received back from the browser redirect
55
- # @option opts [String] :redirect_uri The URI that you redirect the browser to to start the authorization process
55
+ # @option opts [String] :redirect_uri The URI that you redirect the browser to start the authorization process
56
56
  # @option opts [String] :refresh_token The refresh token received during the original grant_type&#x3D;authorization_code that can be used to return a new access token
57
57
  # @return [Array<(OauthTokenResponse, Integer, Hash)>] OauthTokenResponse data, response status code and response headers
58
58
  def oauth_access_token_with_http_info(client_id, grant_type, opts = {})
@@ -455,7 +455,7 @@ module UltracartClient
455
455
  # @param webhook_oid [Integer] The webhook oid that is receiving the reflowed events.
456
456
  # @param event_name [String] The event to reflow.
457
457
  # @param [Hash] opts the optional parameters
458
- # @return [WebhookSampleRequestResponse]
458
+ # @return [WebhookReflowResponse]
459
459
  def resend_event(webhook_oid, event_name, opts = {})
460
460
  data, _status_code, _headers = resend_event_with_http_info(webhook_oid, event_name, opts)
461
461
  data
@@ -466,7 +466,7 @@ module UltracartClient
466
466
  # @param webhook_oid [Integer] The webhook oid that is receiving the reflowed events.
467
467
  # @param event_name [String] The event to reflow.
468
468
  # @param [Hash] opts the optional parameters
469
- # @return [Array<(WebhookSampleRequestResponse, Integer, Hash)>] WebhookSampleRequestResponse data, response status code and response headers
469
+ # @return [Array<(WebhookReflowResponse, Integer, Hash)>] WebhookReflowResponse data, response status code and response headers
470
470
  def resend_event_with_http_info(webhook_oid, event_name, opts = {})
471
471
  if @api_client.config.debugging
472
472
  @api_client.config.logger.debug 'Calling API: WebhookApi.resend_event ...'
@@ -498,7 +498,7 @@ module UltracartClient
498
498
  post_body = opts[:debug_body]
499
499
 
500
500
  # return_type
501
- return_type = opts[:debug_return_type] || 'WebhookSampleRequestResponse'
501
+ return_type = opts[:debug_return_type] || 'WebhookReflowResponse'
502
502
 
503
503
  # auth_names
504
504
  auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
@@ -18,6 +18,9 @@ module UltracartClient
18
18
  # True if prepaid cards should be blocked from buying this item
19
19
  attr_accessor :block_prepaid
20
20
 
21
+ # True if this item should block any refund attempts
22
+ attr_accessor :block_refunds
23
+
21
24
  # Credit card transaction type
22
25
  attr_accessor :credit_card_transaction_type
23
26
 
@@ -34,6 +37,7 @@ module UltracartClient
34
37
  def self.attribute_map
35
38
  {
36
39
  :'block_prepaid' => :'block_prepaid',
40
+ :'block_refunds' => :'block_refunds',
37
41
  :'credit_card_transaction_type' => :'credit_card_transaction_type',
38
42
  :'no_realtime_charge' => :'no_realtime_charge',
39
43
  :'payment_method_validity' => :'payment_method_validity',
@@ -50,6 +54,7 @@ module UltracartClient
50
54
  def self.openapi_types
51
55
  {
52
56
  :'block_prepaid' => :'Boolean',
57
+ :'block_refunds' => :'Boolean',
53
58
  :'credit_card_transaction_type' => :'String',
54
59
  :'no_realtime_charge' => :'Boolean',
55
60
  :'payment_method_validity' => :'Array<String>',
@@ -82,6 +87,10 @@ module UltracartClient
82
87
  self.block_prepaid = attributes[:'block_prepaid']
83
88
  end
84
89
 
90
+ if attributes.key?(:'block_refunds')
91
+ self.block_refunds = attributes[:'block_refunds']
92
+ end
93
+
85
94
  if attributes.key?(:'credit_card_transaction_type')
86
95
  self.credit_card_transaction_type = attributes[:'credit_card_transaction_type']
87
96
  end
@@ -122,6 +131,7 @@ module UltracartClient
122
131
  return true if self.equal?(o)
123
132
  self.class == o.class &&
124
133
  block_prepaid == o.block_prepaid &&
134
+ block_refunds == o.block_refunds &&
125
135
  credit_card_transaction_type == o.credit_card_transaction_type &&
126
136
  no_realtime_charge == o.no_realtime_charge &&
127
137
  payment_method_validity == o.payment_method_validity &&
@@ -137,7 +147,7 @@ module UltracartClient
137
147
  # Calculates hash code according to all attributes.
138
148
  # @return [Integer] Hash code
139
149
  def hash
140
- [block_prepaid, credit_card_transaction_type, no_realtime_charge, payment_method_validity, rotating_transaction_gateway_codes].hash
150
+ [block_prepaid, block_refunds, credit_card_transaction_type, no_realtime_charge, payment_method_validity, rotating_transaction_gateway_codes].hash
141
151
  end
142
152
 
143
153
  # Builds the object from hash
@@ -14,26 +14,16 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module UltracartClient
17
- class WebhookSampleRequest
18
- # Request
19
- attr_accessor :request
17
+ class WebhookReflow
18
+ attr_accessor :event_name
20
19
 
21
- # Request headers
22
- attr_accessor :request_headers
23
-
24
- # Request id
25
- attr_accessor :request_id
26
-
27
- # URI to send request to
28
- attr_accessor :uri
20
+ attr_accessor :queued
29
21
 
30
22
  # Attribute mapping from ruby-style variable name to JSON key.
31
23
  def self.attribute_map
32
24
  {
33
- :'request' => :'request',
34
- :'request_headers' => :'request_headers',
35
- :'request_id' => :'request_id',
36
- :'uri' => :'uri'
25
+ :'event_name' => :'event_name',
26
+ :'queued' => :'queued'
37
27
  }
38
28
  end
39
29
 
@@ -45,10 +35,8 @@ module UltracartClient
45
35
  # Attribute type mapping.
46
36
  def self.openapi_types
47
37
  {
48
- :'request' => :'String',
49
- :'request_headers' => :'Array<HTTPHeader>',
50
- :'request_id' => :'String',
51
- :'uri' => :'String'
38
+ :'event_name' => :'String',
39
+ :'queued' => :'Boolean'
52
40
  }
53
41
  end
54
42
 
@@ -62,33 +50,23 @@ module UltracartClient
62
50
  # @param [Hash] attributes Model attributes in the form of hash
63
51
  def initialize(attributes = {})
64
52
  if (!attributes.is_a?(Hash))
65
- fail ArgumentError, "The input argument (attributes) must be a hash in `UltracartClient::WebhookSampleRequest` initialize method"
53
+ fail ArgumentError, "The input argument (attributes) must be a hash in `UltracartClient::WebhookReflow` initialize method"
66
54
  end
67
55
 
68
56
  # check to see if the attribute exists and convert string to symbol for hash key
69
57
  attributes = attributes.each_with_object({}) { |(k, v), h|
70
58
  if (!self.class.attribute_map.key?(k.to_sym))
71
- fail ArgumentError, "`#{k}` is not a valid attribute in `UltracartClient::WebhookSampleRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
59
+ fail ArgumentError, "`#{k}` is not a valid attribute in `UltracartClient::WebhookReflow`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
72
60
  end
73
61
  h[k.to_sym] = v
74
62
  }
75
63
 
76
- if attributes.key?(:'request')
77
- self.request = attributes[:'request']
78
- end
79
-
80
- if attributes.key?(:'request_headers')
81
- if (value = attributes[:'request_headers']).is_a?(Array)
82
- self.request_headers = value
83
- end
84
- end
85
-
86
- if attributes.key?(:'request_id')
87
- self.request_id = attributes[:'request_id']
64
+ if attributes.key?(:'event_name')
65
+ self.event_name = attributes[:'event_name']
88
66
  end
89
67
 
90
- if attributes.key?(:'uri')
91
- self.uri = attributes[:'uri']
68
+ if attributes.key?(:'queued')
69
+ self.queued = attributes[:'queued']
92
70
  end
93
71
  end
94
72
 
@@ -110,10 +88,8 @@ module UltracartClient
110
88
  def ==(o)
111
89
  return true if self.equal?(o)
112
90
  self.class == o.class &&
113
- request == o.request &&
114
- request_headers == o.request_headers &&
115
- request_id == o.request_id &&
116
- uri == o.uri
91
+ event_name == o.event_name &&
92
+ queued == o.queued
117
93
  end
118
94
 
119
95
  # @see the `==` method
@@ -125,7 +101,7 @@ module UltracartClient
125
101
  # Calculates hash code according to all attributes.
126
102
  # @return [Integer] Hash code
127
103
  def hash
128
- [request, request_headers, request_id, uri].hash
104
+ [event_name, queued].hash
129
105
  end
130
106
 
131
107
  # Builds the object from hash
@@ -14,26 +14,26 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module UltracartClient
17
- class WebhookSampleRequestResponse
17
+ class WebhookReflowResponse
18
18
  attr_accessor :error
19
19
 
20
20
  attr_accessor :metadata
21
21
 
22
+ attr_accessor :reflow
23
+
22
24
  # Indicates if API call was successful
23
25
  attr_accessor :success
24
26
 
25
27
  attr_accessor :warning
26
28
 
27
- attr_accessor :webhook_sample_request
28
-
29
29
  # Attribute mapping from ruby-style variable name to JSON key.
30
30
  def self.attribute_map
31
31
  {
32
32
  :'error' => :'error',
33
33
  :'metadata' => :'metadata',
34
+ :'reflow' => :'reflow',
34
35
  :'success' => :'success',
35
- :'warning' => :'warning',
36
- :'webhook_sample_request' => :'webhook_sample_request'
36
+ :'warning' => :'warning'
37
37
  }
38
38
  end
39
39
 
@@ -47,9 +47,9 @@ module UltracartClient
47
47
  {
48
48
  :'error' => :'Error',
49
49
  :'metadata' => :'ResponseMetadata',
50
+ :'reflow' => :'WebhookReflow',
50
51
  :'success' => :'Boolean',
51
- :'warning' => :'Warning',
52
- :'webhook_sample_request' => :'WebhookSampleRequest'
52
+ :'warning' => :'Warning'
53
53
  }
54
54
  end
55
55
 
@@ -63,13 +63,13 @@ module UltracartClient
63
63
  # @param [Hash] attributes Model attributes in the form of hash
64
64
  def initialize(attributes = {})
65
65
  if (!attributes.is_a?(Hash))
66
- fail ArgumentError, "The input argument (attributes) must be a hash in `UltracartClient::WebhookSampleRequestResponse` initialize method"
66
+ fail ArgumentError, "The input argument (attributes) must be a hash in `UltracartClient::WebhookReflowResponse` initialize method"
67
67
  end
68
68
 
69
69
  # check to see if the attribute exists and convert string to symbol for hash key
70
70
  attributes = attributes.each_with_object({}) { |(k, v), h|
71
71
  if (!self.class.attribute_map.key?(k.to_sym))
72
- fail ArgumentError, "`#{k}` is not a valid attribute in `UltracartClient::WebhookSampleRequestResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
72
+ fail ArgumentError, "`#{k}` is not a valid attribute in `UltracartClient::WebhookReflowResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
73
73
  end
74
74
  h[k.to_sym] = v
75
75
  }
@@ -82,6 +82,10 @@ module UltracartClient
82
82
  self.metadata = attributes[:'metadata']
83
83
  end
84
84
 
85
+ if attributes.key?(:'reflow')
86
+ self.reflow = attributes[:'reflow']
87
+ end
88
+
85
89
  if attributes.key?(:'success')
86
90
  self.success = attributes[:'success']
87
91
  end
@@ -89,10 +93,6 @@ module UltracartClient
89
93
  if attributes.key?(:'warning')
90
94
  self.warning = attributes[:'warning']
91
95
  end
92
-
93
- if attributes.key?(:'webhook_sample_request')
94
- self.webhook_sample_request = attributes[:'webhook_sample_request']
95
- end
96
96
  end
97
97
 
98
98
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -115,9 +115,9 @@ module UltracartClient
115
115
  self.class == o.class &&
116
116
  error == o.error &&
117
117
  metadata == o.metadata &&
118
+ reflow == o.reflow &&
118
119
  success == o.success &&
119
- warning == o.warning &&
120
- webhook_sample_request == o.webhook_sample_request
120
+ warning == o.warning
121
121
  end
122
122
 
123
123
  # @see the `==` method
@@ -129,7 +129,7 @@ module UltracartClient
129
129
  # Calculates hash code according to all attributes.
130
130
  # @return [Integer] Hash code
131
131
  def hash
132
- [error, metadata, success, warning, webhook_sample_request].hash
132
+ [error, metadata, reflow, success, warning].hash
133
133
  end
134
134
 
135
135
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 6.0.1-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module UltracartClient
14
- VERSION = '4.0.241'
14
+ VERSION = '4.0.242'
15
15
  end
data/lib/ultracart_api.rb CHANGED
@@ -849,9 +849,9 @@ require 'ultracart_api/models/webhook_log'
849
849
  require 'ultracart_api/models/webhook_log_response'
850
850
  require 'ultracart_api/models/webhook_log_summaries_response'
851
851
  require 'ultracart_api/models/webhook_log_summary'
852
+ require 'ultracart_api/models/webhook_reflow'
853
+ require 'ultracart_api/models/webhook_reflow_response'
852
854
  require 'ultracart_api/models/webhook_response'
853
- require 'ultracart_api/models/webhook_sample_request'
854
- require 'ultracart_api/models/webhook_sample_request_response'
855
855
  require 'ultracart_api/models/webhooks_response'
856
856
  require 'ultracart_api/models/weight'
857
857
  require 'ultracart_api/models/workflow_agent_auth'
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.0.241
4
+ version: 4.0.242
5
5
  platform: ruby
6
6
  authors:
7
7
  - UltraCart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-02-06 00:00:00.000000000 Z
11
+ date: 2025-02-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -913,9 +913,9 @@ files:
913
913
  - docs/WebhookLogResponse.md
914
914
  - docs/WebhookLogSummariesResponse.md
915
915
  - docs/WebhookLogSummary.md
916
+ - docs/WebhookReflow.md
917
+ - docs/WebhookReflowResponse.md
916
918
  - docs/WebhookResponse.md
917
- - docs/WebhookSampleRequest.md
918
- - docs/WebhookSampleRequestResponse.md
919
919
  - docs/WebhooksResponse.md
920
920
  - docs/Weight.md
921
921
  - docs/WorkflowAgentAuth.md
@@ -1795,9 +1795,9 @@ files:
1795
1795
  - lib/ultracart_api/models/webhook_log_response.rb
1796
1796
  - lib/ultracart_api/models/webhook_log_summaries_response.rb
1797
1797
  - lib/ultracart_api/models/webhook_log_summary.rb
1798
+ - lib/ultracart_api/models/webhook_reflow.rb
1799
+ - lib/ultracart_api/models/webhook_reflow_response.rb
1798
1800
  - lib/ultracart_api/models/webhook_response.rb
1799
- - lib/ultracart_api/models/webhook_sample_request.rb
1800
- - lib/ultracart_api/models/webhook_sample_request_response.rb
1801
1801
  - lib/ultracart_api/models/webhooks_response.rb
1802
1802
  - lib/ultracart_api/models/weight.rb
1803
1803
  - lib/ultracart_api/models/workflow_agent_auth.rb
@@ -1,24 +0,0 @@
1
- # UltracartClient::WebhookSampleRequest
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **request** | **String** | Request | [optional] |
8
- | **request_headers** | [**Array&lt;HTTPHeader&gt;**](HTTPHeader.md) | Request headers | [optional] |
9
- | **request_id** | **String** | Request id | [optional] |
10
- | **uri** | **String** | URI to send request to | [optional] |
11
-
12
- ## Example
13
-
14
- ```ruby
15
- require 'ultracart_api'
16
-
17
- instance = UltracartClient::WebhookSampleRequest.new(
18
- request: null,
19
- request_headers: null,
20
- request_id: null,
21
- uri: null
22
- )
23
- ```
24
-