ultracart_api 3.10.223 → 3.10.225
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +9 -6
- data/docs/ChannelPartnerOrder.md +1 -0
- data/docs/CustomerAttachment.md +1 -1
- data/docs/FulfillmentApi.md +3 -3
- data/docs/ItemPaymentProcessing.md +1 -0
- data/docs/ItemReview.md +1 -0
- data/docs/OauthApi.md +2 -2
- data/docs/Order.md +1 -0
- data/docs/OrderCurrentStageHistory.md +10 -0
- data/docs/OrderItem.md +1 -0
- data/docs/OrderSummary.md +4 -0
- data/docs/WebhookApi.md +2 -2
- data/docs/WebhookReflow.md +9 -0
- data/docs/{WebhookSampleRequestResponse.md → WebhookReflowResponse.md} +2 -2
- data/lib/ultracart_api/api/fulfillment_api.rb +5 -5
- data/lib/ultracart_api/api/oauth_api.rb +2 -2
- data/lib/ultracart_api/api/webhook_api.rb +3 -3
- data/lib/ultracart_api/models/channel_partner_order.rb +11 -1
- data/lib/ultracart_api/models/customer_attachment.rb +1 -1
- data/lib/ultracart_api/models/item_payment_processing.rb +11 -1
- data/lib/ultracart_api/models/item_review.rb +26 -1
- data/lib/ultracart_api/models/order.rb +13 -1
- data/lib/ultracart_api/models/order_current_stage_history.rb +251 -0
- data/lib/ultracart_api/models/order_item.rb +10 -1
- data/lib/ultracart_api/models/order_summary.rb +39 -1
- data/lib/ultracart_api/models/{webhook_sample_request.rb → webhook_reflow.rb} +14 -38
- data/lib/ultracart_api/models/{webhook_sample_request_response.rb → webhook_reflow_response.rb} +14 -14
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +3 -2
- metadata +8 -6
- data/docs/WebhookSampleRequest.md +0 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4bb966b86d46878c1462183bde9968d5203b230a599d3f3e891d861a2adcfa22
|
4
|
+
data.tar.gz: 54bb8441772708dd2ed51a71e0409868459c360cce184633500a920b4bc3b794
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 625a8b9ae4dd61218a4c35945c47af2d2f0abf518205db080e4e562e25caf409c3b5c4f6772a09efd04a10e9014e3e620e3dedec0b6a2e91c5f78b7088b21b8e
|
7
|
+
data.tar.gz: 1e4d7b54c69b01cb1ebbe58e44d69a685057a38601a0e7f507f8031bae7a258edf87ed1cb3a1905e467eb6238e4f2cccff9161862add335de5883b28f3359e91
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ UltraCart REST API Version 2
|
|
7
7
|
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
8
8
|
|
9
9
|
- API version: 2.0.0
|
10
|
-
- Package version: 3.10.
|
10
|
+
- Package version: 3.10.225
|
11
11
|
- Build package: io.swagger.codegen.languages.RubyClientCodegen
|
12
12
|
For more information, please visit [http://www.ultracart.com](http://www.ultracart.com)
|
13
13
|
|
@@ -24,15 +24,15 @@ gem build ultracart_api.gemspec
|
|
24
24
|
Then either install the gem locally:
|
25
25
|
|
26
26
|
```shell
|
27
|
-
gem install ./ultracart_api-3.10.
|
27
|
+
gem install ./ultracart_api-3.10.225.gem
|
28
28
|
```
|
29
|
-
(for development, run `gem install --dev ./ultracart_api-3.10.
|
29
|
+
(for development, run `gem install --dev ./ultracart_api-3.10.225.gem` to install the development dependencies)
|
30
30
|
|
31
31
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
32
32
|
|
33
33
|
Finally add this to the Gemfile:
|
34
34
|
|
35
|
-
gem 'ultracart_api', '~> 3.10.
|
35
|
+
gem 'ultracart_api', '~> 3.10.225'
|
36
36
|
|
37
37
|
### Install from Git
|
38
38
|
|
@@ -1206,6 +1206,7 @@ Class | Method | HTTP request | Description
|
|
1206
1206
|
- [UltracartClient::OrderChannelPartner](docs/OrderChannelPartner.md)
|
1207
1207
|
- [UltracartClient::OrderCheckout](docs/OrderCheckout.md)
|
1208
1208
|
- [UltracartClient::OrderCoupon](docs/OrderCoupon.md)
|
1209
|
+
- [UltracartClient::OrderCurrentStageHistory](docs/OrderCurrentStageHistory.md)
|
1209
1210
|
- [UltracartClient::OrderDigitalItem](docs/OrderDigitalItem.md)
|
1210
1211
|
- [UltracartClient::OrderDigitalOrder](docs/OrderDigitalOrder.md)
|
1211
1212
|
- [UltracartClient::OrderEdi](docs/OrderEdi.md)
|
@@ -1420,9 +1421,9 @@ Class | Method | HTTP request | Description
|
|
1420
1421
|
- [UltracartClient::WebhookLogResponse](docs/WebhookLogResponse.md)
|
1421
1422
|
- [UltracartClient::WebhookLogSummariesResponse](docs/WebhookLogSummariesResponse.md)
|
1422
1423
|
- [UltracartClient::WebhookLogSummary](docs/WebhookLogSummary.md)
|
1424
|
+
- [UltracartClient::WebhookReflow](docs/WebhookReflow.md)
|
1425
|
+
- [UltracartClient::WebhookReflowResponse](docs/WebhookReflowResponse.md)
|
1423
1426
|
- [UltracartClient::WebhookResponse](docs/WebhookResponse.md)
|
1424
|
-
- [UltracartClient::WebhookSampleRequest](docs/WebhookSampleRequest.md)
|
1425
|
-
- [UltracartClient::WebhookSampleRequestResponse](docs/WebhookSampleRequestResponse.md)
|
1426
1427
|
- [UltracartClient::WebhooksResponse](docs/WebhooksResponse.md)
|
1427
1428
|
- [UltracartClient::Weight](docs/Weight.md)
|
1428
1429
|
- [UltracartClient::WorkflowAgentAuth](docs/WorkflowAgentAuth.md)
|
@@ -1515,6 +1516,8 @@ Not every change is committed to every SDK.
|
|
1515
1516
|
|
1516
1517
|
| Version | Date | Comments |
|
1517
1518
|
| --: | :-: | --- |
|
1519
|
+
| 3.10.225 | 02/18/2025 | small bug fixes for incorrect return types on several methods |
|
1520
|
+
| 3.10.224 | 02/06/2025 | added storefront_host_name to channel partner order object |
|
1518
1521
|
| 3.10.223 | 01/09/2025 | fix for broken 4.0.39 due to incorrect query sig on getCustomers |
|
1519
1522
|
| 3.10.222 | 01/09/2025 | added emails parameter to customer queries, refundOrder added to Channel partner |
|
1520
1523
|
| 3.10.221 | 12/13/2024 | added user and group ids to conversation agent auth object |
|
data/docs/ChannelPartnerOrder.md
CHANGED
@@ -90,6 +90,7 @@ Name | Type | Description | Notes
|
|
90
90
|
**special_instructions** | **String** | Special instructions from the customer regarding shipping | [optional]
|
91
91
|
**store_completed** | **BOOLEAN** | If true the order bypasses shipping and is marked completed | [optional]
|
92
92
|
**store_if_payment_declines** | **BOOLEAN** | If true any failed payments are placed into Accounts Receivable. If false any failed payments result in a rejected order resulting in errors thrown during the insert routine | [optional]
|
93
|
+
**storefront_host_name** | **String** | StoreFront host name associated with the order | [optional]
|
93
94
|
**tax_county** | **String** | The optional shipping county used to determine exact taxes | [optional]
|
94
95
|
**tax_exempt** | **BOOLEAN** | If true this order is marked as being tax exempt | [optional]
|
95
96
|
**transaction** | [**ChannelPartnerOrderTransaction**](ChannelPartnerOrderTransaction.md) | | [optional]
|
data/docs/CustomerAttachment.md
CHANGED
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
|
|
6
6
|
**customer_profile_attachment_oid** | **Integer** | Attachment identifier | [optional]
|
7
7
|
**description** | **String** | Description | [optional]
|
8
8
|
**file_name** | **String** | File name | [optional]
|
9
|
-
**mime_type** | **String** | Mime
|
9
|
+
**mime_type** | **String** | Mime type | [optional]
|
10
10
|
**upload_dts** | **String** | Upload date/time | [optional]
|
11
11
|
|
12
12
|
|
data/docs/FulfillmentApi.md
CHANGED
@@ -65,7 +65,7 @@ nil (empty response body)
|
|
65
65
|
|
66
66
|
|
67
67
|
# **generate_packing_slip**
|
68
|
-
>
|
68
|
+
> OrderPackingSlipResponse generate_packing_slip(distribution_center_code, order_id)
|
69
69
|
|
70
70
|
Generate a packing slip for this order for the given distribution center.
|
71
71
|
|
@@ -104,7 +104,7 @@ Name | Type | Description | Notes
|
|
104
104
|
|
105
105
|
### Return type
|
106
106
|
|
107
|
-
[**
|
107
|
+
[**OrderPackingSlipResponse**](OrderPackingSlipResponse.md)
|
108
108
|
|
109
109
|
### Authorization
|
110
110
|
|
@@ -122,7 +122,7 @@ Name | Type | Description | Notes
|
|
122
122
|
|
123
123
|
Retrieve orders queued up for this distribution center.
|
124
124
|
|
125
|
-
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,
|
125
|
+
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.
|
126
126
|
|
127
127
|
### Example
|
128
128
|
```ruby
|
@@ -4,6 +4,7 @@
|
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
6
|
**block_prepaid** | **BOOLEAN** | True if prepaid cards should be blocked from buying this item | [optional]
|
7
|
+
**block_refunds** | **BOOLEAN** | True if this item should block any refund attempts | [optional]
|
7
8
|
**credit_card_transaction_type** | **String** | Credit card transaction type | [optional]
|
8
9
|
**no_realtime_charge** | **BOOLEAN** | True if no real-time charge should be performed on this item. | [optional]
|
9
10
|
**payment_method_validity** | **Array<String>** | Payment method validity | [optional]
|
data/docs/ItemReview.md
CHANGED
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
|
|
7
7
|
**featured** | **BOOLEAN** | | [optional]
|
8
8
|
**helperful_no_votes** | **Integer** | | [optional]
|
9
9
|
**helpful_yes_votes** | **Integer** | | [optional]
|
10
|
+
**merchant_reply** | **String** | Merchant Reply (set to an empty string to remove) | [optional]
|
10
11
|
**order_id** | **String** | | [optional]
|
11
12
|
**overall** | **Float** | | [optional]
|
12
13
|
**rating_name1** | **String** | Rating Name 1 | [optional]
|
data/docs/OauthApi.md
CHANGED
@@ -31,7 +31,7 @@ grant_type = 'grant_type_example' # String | Type of grant
|
|
31
31
|
|
32
32
|
opts = {
|
33
33
|
code: 'code_example', # String | Authorization code received back from the browser redirect
|
34
|
-
redirect_uri: 'redirect_uri_example', # String | The URI that you redirect the browser to
|
34
|
+
redirect_uri: 'redirect_uri_example', # String | The URI that you redirect the browser to start the authorization process
|
35
35
|
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
|
36
36
|
}
|
37
37
|
|
@@ -51,7 +51,7 @@ Name | Type | Description | Notes
|
|
51
51
|
**client_id** | **String**| The OAuth application client_id. |
|
52
52
|
**grant_type** | **String**| Type of grant |
|
53
53
|
**code** | **String**| Authorization code received back from the browser redirect | [optional]
|
54
|
-
**redirect_uri** | **String**| The URI that you redirect the browser to
|
54
|
+
**redirect_uri** | **String**| The URI that you redirect the browser to start the authorization process | [optional]
|
55
55
|
**refresh_token** | **String**| The refresh token received during the original grant_type=authorization_code that can be used to return a new access token | [optional]
|
56
56
|
|
57
57
|
### Return type
|
data/docs/Order.md
CHANGED
@@ -13,6 +13,7 @@ Name | Type | Description | Notes
|
|
13
13
|
**creation_dts** | **String** | Date/time that the order was created | [optional]
|
14
14
|
**currency_code** | **String** | Currency code that the customer used if different than the merchant's base currency code | [optional]
|
15
15
|
**current_stage** | **String** | Current stage that the order is in. | [optional]
|
16
|
+
**current_stage_histories** | [**Array<OrderCurrentStageHistory>**](OrderCurrentStageHistory.md) | History of the changes to the current_stage field | [optional]
|
16
17
|
**customer_profile** | [**Customer**](Customer.md) | | [optional]
|
17
18
|
**digital_order** | [**OrderDigitalOrder**](OrderDigitalOrder.md) | | [optional]
|
18
19
|
**edi** | [**OrderEdi**](OrderEdi.md) | | [optional]
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# UltracartClient::OrderCurrentStageHistory
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**after_stage** | **String** | New stage that the order is in. | [optional]
|
7
|
+
**before_stage** | **String** | Previous stage that the order was in. | [optional]
|
8
|
+
**transition_dts** | **String** | Date/time that the stage transitioned | [optional]
|
9
|
+
|
10
|
+
|
data/docs/OrderItem.md
CHANGED
@@ -5,6 +5,7 @@ Name | Type | Description | Notes
|
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
6
|
**accounting_code** | **String** | QuickBooks code | [optional]
|
7
7
|
**activation_codes** | **Array<String>** | Activation codes assigned to this item | [optional]
|
8
|
+
**actual_cogs** | [**Currency**](Currency.md) | | [optional]
|
8
9
|
**arbitrary_unit_cost** | [**Currency**](Currency.md) | | [optional]
|
9
10
|
**auto_order_last_rebill_dts** | **String** | Date/time of the last rebill, used only during order insert to help project future rebills | [optional]
|
10
11
|
**auto_order_schedule** | **String** | Auto order schedule, used only during inserts supplying the recurring schedule | [optional]
|
data/docs/OrderSummary.md
CHANGED
@@ -4,7 +4,11 @@
|
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
6
|
**actual_fulfillment** | [**Currency**](Currency.md) | | [optional]
|
7
|
+
**actual_other_cost** | [**Currency**](Currency.md) | | [optional]
|
7
8
|
**actual_payment_processing** | [**Currency**](Currency.md) | | [optional]
|
9
|
+
**actual_profit** | [**Currency**](Currency.md) | | [optional]
|
10
|
+
**actual_profit_analyzed** | **BOOLEAN** | Actual profit has been analyzed | [optional]
|
11
|
+
**actual_profit_review** | **BOOLEAN** | Actual profit needs review | [optional]
|
8
12
|
**actual_shipping** | [**Currency**](Currency.md) | | [optional]
|
9
13
|
**arbitrary_shipping_handling_total** | [**Currency**](Currency.md) | | [optional]
|
10
14
|
**health_benefit_card_amount** | [**Currency**](Currency.md) | | [optional]
|
data/docs/WebhookApi.md
CHANGED
@@ -336,7 +336,7 @@ Name | Type | Description | Notes
|
|
336
336
|
|
337
337
|
|
338
338
|
# **resend_event**
|
339
|
-
>
|
339
|
+
> WebhookReflowResponse resend_event(webhook_oid, event_name)
|
340
340
|
|
341
341
|
Resend events to the webhook endpoint.
|
342
342
|
|
@@ -375,7 +375,7 @@ Name | Type | Description | Notes
|
|
375
375
|
|
376
376
|
### Return type
|
377
377
|
|
378
|
-
[**
|
378
|
+
[**WebhookReflowResponse**](WebhookReflowResponse.md)
|
379
379
|
|
380
380
|
### Authorization
|
381
381
|
|
@@ -1,12 +1,12 @@
|
|
1
|
-
# UltracartClient::
|
1
|
+
# UltracartClient::WebhookReflowResponse
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
6
|
**error** | [**Error**](Error.md) | | [optional]
|
7
7
|
**metadata** | [**ResponseMetadata**](ResponseMetadata.md) | | [optional]
|
8
|
+
**reflow** | [**WebhookReflow**](WebhookReflow.md) | | [optional]
|
8
9
|
**success** | **BOOLEAN** | Indicates if API call was successful | [optional]
|
9
10
|
**warning** | [**Warning**](Warning.md) | | [optional]
|
10
|
-
**webhook_sample_request** | [**WebhookSampleRequest**](WebhookSampleRequest.md) | | [optional]
|
11
11
|
|
12
12
|
|
@@ -97,7 +97,7 @@ module UltracartClient
|
|
97
97
|
# @param distribution_center_code Distribution center code
|
98
98
|
# @param order_id Order ID
|
99
99
|
# @param [Hash] opts the optional parameters
|
100
|
-
# @return [
|
100
|
+
# @return [OrderPackingSlipResponse]
|
101
101
|
def generate_packing_slip(distribution_center_code, order_id, opts = {})
|
102
102
|
data, _status_code, _headers = generate_packing_slip_with_http_info(distribution_center_code, order_id, opts)
|
103
103
|
data
|
@@ -108,7 +108,7 @@ module UltracartClient
|
|
108
108
|
# @param distribution_center_code Distribution center code
|
109
109
|
# @param order_id Order ID
|
110
110
|
# @param [Hash] opts the optional parameters
|
111
|
-
# @return [Array<(
|
111
|
+
# @return [Array<(OrderPackingSlipResponse, Fixnum, Hash)>] OrderPackingSlipResponse data, response status code and response headers
|
112
112
|
def generate_packing_slip_with_http_info(distribution_center_code, order_id, opts = {})
|
113
113
|
if @api_client.config.debugging
|
114
114
|
@api_client.config.logger.debug 'Calling API: FulfillmentApi.generate_packing_slip ...'
|
@@ -147,14 +147,14 @@ module UltracartClient
|
|
147
147
|
:form_params => form_params,
|
148
148
|
:body => post_body,
|
149
149
|
:auth_names => auth_names,
|
150
|
-
:return_type => '
|
150
|
+
:return_type => 'OrderPackingSlipResponse')
|
151
151
|
if @api_client.config.debugging
|
152
152
|
@api_client.config.logger.debug "API called: FulfillmentApi#generate_packing_slip\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
153
153
|
end
|
154
154
|
return data, status_code, headers
|
155
155
|
end
|
156
156
|
# Retrieve orders queued up for this distribution center.
|
157
|
-
# 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,
|
157
|
+
# 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.
|
158
158
|
# @param distribution_center_code Distribution center code
|
159
159
|
# @param [Hash] opts the optional parameters
|
160
160
|
# @return [OrdersResponse]
|
@@ -164,7 +164,7 @@ module UltracartClient
|
|
164
164
|
end
|
165
165
|
|
166
166
|
# Retrieve orders queued up for this distribution center.
|
167
|
-
# 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,
|
167
|
+
# 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.
|
168
168
|
# @param distribution_center_code Distribution center code
|
169
169
|
# @param [Hash] opts the optional parameters
|
170
170
|
# @return [Array<(OrdersResponse, Fixnum, Hash)>] OrdersResponse data, response status code and response headers
|
@@ -38,7 +38,7 @@ module UltracartClient
|
|
38
38
|
# @param grant_type 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
|
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=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 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
|
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=authorization_code that can be used to return a new access token
|
57
57
|
# @return [Array<(OauthTokenResponse, Fixnum, Hash)>] OauthTokenResponse data, response status code and response headers
|
58
58
|
def oauth_access_token_with_http_info(client_id, grant_type, opts = {})
|
@@ -390,7 +390,7 @@ module UltracartClient
|
|
390
390
|
# @param webhook_oid The webhook oid that is receiving the reflowed events.
|
391
391
|
# @param event_name The event to reflow.
|
392
392
|
# @param [Hash] opts the optional parameters
|
393
|
-
# @return [
|
393
|
+
# @return [WebhookReflowResponse]
|
394
394
|
def resend_event(webhook_oid, event_name, opts = {})
|
395
395
|
data, _status_code, _headers = resend_event_with_http_info(webhook_oid, event_name, opts)
|
396
396
|
data
|
@@ -401,7 +401,7 @@ module UltracartClient
|
|
401
401
|
# @param webhook_oid The webhook oid that is receiving the reflowed events.
|
402
402
|
# @param event_name The event to reflow.
|
403
403
|
# @param [Hash] opts the optional parameters
|
404
|
-
# @return [Array<(
|
404
|
+
# @return [Array<(WebhookReflowResponse, Fixnum, Hash)>] WebhookReflowResponse data, response status code and response headers
|
405
405
|
def resend_event_with_http_info(webhook_oid, event_name, opts = {})
|
406
406
|
if @api_client.config.debugging
|
407
407
|
@api_client.config.logger.debug 'Calling API: WebhookApi.resend_event ...'
|
@@ -440,7 +440,7 @@ module UltracartClient
|
|
440
440
|
:form_params => form_params,
|
441
441
|
:body => post_body,
|
442
442
|
:auth_names => auth_names,
|
443
|
-
:return_type => '
|
443
|
+
:return_type => 'WebhookReflowResponse')
|
444
444
|
if @api_client.config.debugging
|
445
445
|
@api_client.config.logger.debug "API called: WebhookApi#resend_event\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
446
446
|
end
|
@@ -275,6 +275,9 @@ module UltracartClient
|
|
275
275
|
# If true any failed payments are placed into Accounts Receivable. If false any failed payments result in a rejected order resulting in errors thrown during the insert routine
|
276
276
|
attr_accessor :store_if_payment_declines
|
277
277
|
|
278
|
+
# StoreFront host name associated with the order
|
279
|
+
attr_accessor :storefront_host_name
|
280
|
+
|
278
281
|
# The optional shipping county used to determine exact taxes
|
279
282
|
attr_accessor :tax_county
|
280
283
|
|
@@ -398,6 +401,7 @@ module UltracartClient
|
|
398
401
|
:'special_instructions' => :'special_instructions',
|
399
402
|
:'store_completed' => :'store_completed',
|
400
403
|
:'store_if_payment_declines' => :'store_if_payment_declines',
|
404
|
+
:'storefront_host_name' => :'storefront_host_name',
|
401
405
|
:'tax_county' => :'tax_county',
|
402
406
|
:'tax_exempt' => :'tax_exempt',
|
403
407
|
:'transaction' => :'transaction',
|
@@ -495,6 +499,7 @@ module UltracartClient
|
|
495
499
|
:'special_instructions' => :'String',
|
496
500
|
:'store_completed' => :'BOOLEAN',
|
497
501
|
:'store_if_payment_declines' => :'BOOLEAN',
|
502
|
+
:'storefront_host_name' => :'String',
|
498
503
|
:'tax_county' => :'String',
|
499
504
|
:'tax_exempt' => :'BOOLEAN',
|
500
505
|
:'transaction' => :'ChannelPartnerOrderTransaction',
|
@@ -864,6 +869,10 @@ module UltracartClient
|
|
864
869
|
self.store_if_payment_declines = attributes[:'store_if_payment_declines']
|
865
870
|
end
|
866
871
|
|
872
|
+
if attributes.has_key?(:'storefront_host_name')
|
873
|
+
self.storefront_host_name = attributes[:'storefront_host_name']
|
874
|
+
end
|
875
|
+
|
867
876
|
if attributes.has_key?(:'tax_county')
|
868
877
|
self.tax_county = attributes[:'tax_county']
|
869
878
|
end
|
@@ -1577,6 +1586,7 @@ module UltracartClient
|
|
1577
1586
|
special_instructions == o.special_instructions &&
|
1578
1587
|
store_completed == o.store_completed &&
|
1579
1588
|
store_if_payment_declines == o.store_if_payment_declines &&
|
1589
|
+
storefront_host_name == o.storefront_host_name &&
|
1580
1590
|
tax_county == o.tax_county &&
|
1581
1591
|
tax_exempt == o.tax_exempt &&
|
1582
1592
|
transaction == o.transaction &&
|
@@ -1592,7 +1602,7 @@ module UltracartClient
|
|
1592
1602
|
# Calculates hash code according to all attributes.
|
1593
1603
|
# @return [Fixnum] Hash code
|
1594
1604
|
def hash
|
1595
|
-
[advertising_source, affiliate_id, affiliate_sub_id, arbitrary_shipping_handling_total, arbitrary_tax, arbitrary_tax_rate, arbitrary_taxable_subtotal, associate_with_customer_profile_if_present, auto_approve_purchase_order, billto_address1, billto_address2, billto_city, billto_company, billto_country_code, billto_day_phone, billto_evening_phone, billto_first_name, billto_last_name, billto_postal_code, billto_state_region, billto_title, cc_email, channel_partner_order_id, consider_recurring, coupons, credit_card_authorization_amount, credit_card_authorization_dts, credit_card_authorization_number, credit_card_expiration_month, credit_card_expiration_year, credit_card_type, custom_field1, custom_field2, custom_field3, custom_field4, custom_field5, custom_field6, custom_field7, delivery_date, echeck_bank_aba_code, echeck_bank_account_name, echeck_bank_account_number, echeck_bank_account_type, echeck_bank_name, echeck_bank_owner_type, echeck_customer_tax_id, echeck_drivers_license_dob, echeck_drivers_license_number, echeck_drivers_license_state, email, gift, gift_email, gift_message, hosted_fields_card_token, hosted_fields_cvv_token, insurance_application_id, insurance_claim_id, ip_address, items, least_cost_route, least_cost_route_shipping_methods, mailing_list_opt_in, no_realtime_payment_processing, payment_method, purchase_order_number, rotating_transaction_gateway_code, sales_rep_code, screen_branding_theme_code, ship_on_date, ship_to_residential, shipping_method, shipto_address1, shipto_address2, shipto_city, shipto_company, shipto_country_code, shipto_day_phone, shipto_evening_phone, shipto_first_name, shipto_last_name, shipto_postal_code, shipto_state_region, shipto_title, skip_payment_processing, special_instructions, store_completed, store_if_payment_declines, tax_county, tax_exempt, transaction, treat_warnings_as_errors].hash
|
1605
|
+
[advertising_source, affiliate_id, affiliate_sub_id, arbitrary_shipping_handling_total, arbitrary_tax, arbitrary_tax_rate, arbitrary_taxable_subtotal, associate_with_customer_profile_if_present, auto_approve_purchase_order, billto_address1, billto_address2, billto_city, billto_company, billto_country_code, billto_day_phone, billto_evening_phone, billto_first_name, billto_last_name, billto_postal_code, billto_state_region, billto_title, cc_email, channel_partner_order_id, consider_recurring, coupons, credit_card_authorization_amount, credit_card_authorization_dts, credit_card_authorization_number, credit_card_expiration_month, credit_card_expiration_year, credit_card_type, custom_field1, custom_field2, custom_field3, custom_field4, custom_field5, custom_field6, custom_field7, delivery_date, echeck_bank_aba_code, echeck_bank_account_name, echeck_bank_account_number, echeck_bank_account_type, echeck_bank_name, echeck_bank_owner_type, echeck_customer_tax_id, echeck_drivers_license_dob, echeck_drivers_license_number, echeck_drivers_license_state, email, gift, gift_email, gift_message, hosted_fields_card_token, hosted_fields_cvv_token, insurance_application_id, insurance_claim_id, ip_address, items, least_cost_route, least_cost_route_shipping_methods, mailing_list_opt_in, no_realtime_payment_processing, payment_method, purchase_order_number, rotating_transaction_gateway_code, sales_rep_code, screen_branding_theme_code, ship_on_date, ship_to_residential, shipping_method, shipto_address1, shipto_address2, shipto_city, shipto_company, shipto_country_code, shipto_day_phone, shipto_evening_phone, shipto_first_name, shipto_last_name, shipto_postal_code, shipto_state_region, shipto_title, skip_payment_processing, special_instructions, store_completed, store_if_payment_declines, storefront_host_name, tax_county, tax_exempt, transaction, treat_warnings_as_errors].hash
|
1596
1606
|
end
|
1597
1607
|
|
1598
1608
|
# Builds the object from hash
|
@@ -17,6 +17,9 @@ module UltracartClient
|
|
17
17
|
# True if prepaid cards should be blocked from buying this item
|
18
18
|
attr_accessor :block_prepaid
|
19
19
|
|
20
|
+
# True if this item should block any refund attempts
|
21
|
+
attr_accessor :block_refunds
|
22
|
+
|
20
23
|
# Credit card transaction type
|
21
24
|
attr_accessor :credit_card_transaction_type
|
22
25
|
|
@@ -33,6 +36,7 @@ module UltracartClient
|
|
33
36
|
def self.attribute_map
|
34
37
|
{
|
35
38
|
:'block_prepaid' => :'block_prepaid',
|
39
|
+
:'block_refunds' => :'block_refunds',
|
36
40
|
:'credit_card_transaction_type' => :'credit_card_transaction_type',
|
37
41
|
:'no_realtime_charge' => :'no_realtime_charge',
|
38
42
|
:'payment_method_validity' => :'payment_method_validity',
|
@@ -44,6 +48,7 @@ module UltracartClient
|
|
44
48
|
def self.swagger_types
|
45
49
|
{
|
46
50
|
:'block_prepaid' => :'BOOLEAN',
|
51
|
+
:'block_refunds' => :'BOOLEAN',
|
47
52
|
:'credit_card_transaction_type' => :'String',
|
48
53
|
:'no_realtime_charge' => :'BOOLEAN',
|
49
54
|
:'payment_method_validity' => :'Array<String>',
|
@@ -63,6 +68,10 @@ module UltracartClient
|
|
63
68
|
self.block_prepaid = attributes[:'block_prepaid']
|
64
69
|
end
|
65
70
|
|
71
|
+
if attributes.has_key?(:'block_refunds')
|
72
|
+
self.block_refunds = attributes[:'block_refunds']
|
73
|
+
end
|
74
|
+
|
66
75
|
if attributes.has_key?(:'credit_card_transaction_type')
|
67
76
|
self.credit_card_transaction_type = attributes[:'credit_card_transaction_type']
|
68
77
|
end
|
@@ -103,6 +112,7 @@ module UltracartClient
|
|
103
112
|
return true if self.equal?(o)
|
104
113
|
self.class == o.class &&
|
105
114
|
block_prepaid == o.block_prepaid &&
|
115
|
+
block_refunds == o.block_refunds &&
|
106
116
|
credit_card_transaction_type == o.credit_card_transaction_type &&
|
107
117
|
no_realtime_charge == o.no_realtime_charge &&
|
108
118
|
payment_method_validity == o.payment_method_validity &&
|
@@ -118,7 +128,7 @@ module UltracartClient
|
|
118
128
|
# Calculates hash code according to all attributes.
|
119
129
|
# @return [Fixnum] Hash code
|
120
130
|
def hash
|
121
|
-
[block_prepaid, credit_card_transaction_type, no_realtime_charge, payment_method_validity, rotating_transaction_gateway_codes].hash
|
131
|
+
[block_prepaid, block_refunds, credit_card_transaction_type, no_realtime_charge, payment_method_validity, rotating_transaction_gateway_codes].hash
|
122
132
|
end
|
123
133
|
|
124
134
|
# Builds the object from hash
|
@@ -23,6 +23,9 @@ module UltracartClient
|
|
23
23
|
|
24
24
|
attr_accessor :helpful_yes_votes
|
25
25
|
|
26
|
+
# Merchant Reply (set to an empty string to remove)
|
27
|
+
attr_accessor :merchant_reply
|
28
|
+
|
26
29
|
attr_accessor :order_id
|
27
30
|
|
28
31
|
attr_accessor :overall
|
@@ -136,6 +139,7 @@ module UltracartClient
|
|
136
139
|
:'featured' => :'featured',
|
137
140
|
:'helperful_no_votes' => :'helperful_no_votes',
|
138
141
|
:'helpful_yes_votes' => :'helpful_yes_votes',
|
142
|
+
:'merchant_reply' => :'merchant_reply',
|
139
143
|
:'order_id' => :'order_id',
|
140
144
|
:'overall' => :'overall',
|
141
145
|
:'rating_name1' => :'rating_name1',
|
@@ -179,6 +183,7 @@ module UltracartClient
|
|
179
183
|
:'featured' => :'BOOLEAN',
|
180
184
|
:'helperful_no_votes' => :'Integer',
|
181
185
|
:'helpful_yes_votes' => :'Integer',
|
186
|
+
:'merchant_reply' => :'String',
|
182
187
|
:'order_id' => :'String',
|
183
188
|
:'overall' => :'Float',
|
184
189
|
:'rating_name1' => :'String',
|
@@ -239,6 +244,10 @@ module UltracartClient
|
|
239
244
|
self.helpful_yes_votes = attributes[:'helpful_yes_votes']
|
240
245
|
end
|
241
246
|
|
247
|
+
if attributes.has_key?(:'merchant_reply')
|
248
|
+
self.merchant_reply = attributes[:'merchant_reply']
|
249
|
+
end
|
250
|
+
|
242
251
|
if attributes.has_key?(:'order_id')
|
243
252
|
self.order_id = attributes[:'order_id']
|
244
253
|
end
|
@@ -376,6 +385,10 @@ module UltracartClient
|
|
376
385
|
# @return Array for valid properties with the reasons
|
377
386
|
def list_invalid_properties
|
378
387
|
invalid_properties = Array.new
|
388
|
+
if !@merchant_reply.nil? && @merchant_reply.to_s.length > 10000
|
389
|
+
invalid_properties.push('invalid value for "merchant_reply", the character length must be smaller than or equal to 10000.')
|
390
|
+
end
|
391
|
+
|
379
392
|
if !@rating_name1.nil? && @rating_name1.to_s.length > 100
|
380
393
|
invalid_properties.push('invalid value for "rating_name1", the character length must be smaller than or equal to 100.')
|
381
394
|
end
|
@@ -446,6 +459,7 @@ module UltracartClient
|
|
446
459
|
# Check to see if the all the properties in the model are valid
|
447
460
|
# @return true if the model is valid
|
448
461
|
def valid?
|
462
|
+
return false if !@merchant_reply.nil? && @merchant_reply.to_s.length > 10000
|
449
463
|
return false if !@rating_name1.nil? && @rating_name1.to_s.length > 100
|
450
464
|
return false if !@rating_name10.nil? && @rating_name10.to_s.length > 100
|
451
465
|
return false if !@rating_name2.nil? && @rating_name2.to_s.length > 100
|
@@ -467,6 +481,16 @@ module UltracartClient
|
|
467
481
|
true
|
468
482
|
end
|
469
483
|
|
484
|
+
# Custom attribute writer method with validation
|
485
|
+
# @param [Object] merchant_reply Value to be assigned
|
486
|
+
def merchant_reply=(merchant_reply)
|
487
|
+
if !merchant_reply.nil? && merchant_reply.to_s.length > 10000
|
488
|
+
fail ArgumentError, 'invalid value for "merchant_reply", the character length must be smaller than or equal to 10000.'
|
489
|
+
end
|
490
|
+
|
491
|
+
@merchant_reply = merchant_reply
|
492
|
+
end
|
493
|
+
|
470
494
|
# Custom attribute writer method with validation
|
471
495
|
# @param [Object] rating_name1 Value to be assigned
|
472
496
|
def rating_name1=(rating_name1)
|
@@ -646,6 +670,7 @@ module UltracartClient
|
|
646
670
|
featured == o.featured &&
|
647
671
|
helperful_no_votes == o.helperful_no_votes &&
|
648
672
|
helpful_yes_votes == o.helpful_yes_votes &&
|
673
|
+
merchant_reply == o.merchant_reply &&
|
649
674
|
order_id == o.order_id &&
|
650
675
|
overall == o.overall &&
|
651
676
|
rating_name1 == o.rating_name1 &&
|
@@ -690,7 +715,7 @@ module UltracartClient
|
|
690
715
|
# Calculates hash code according to all attributes.
|
691
716
|
# @return [Fixnum] Hash code
|
692
717
|
def hash
|
693
|
-
[customer_profile_oid, featured, helperful_no_votes, helpful_yes_votes, order_id, overall, rating_name1, rating_name10, rating_name2, rating_name3, rating_name4, rating_name5, rating_name6, rating_name7, rating_name8, rating_name9, rating_score1, rating_score10, rating_score2, rating_score3, rating_score4, rating_score5, rating_score6, rating_score7, rating_score8, rating_score9, recommend_store_to_friend, recommend_to_friend, review, review_oid, reviewed_nickname, reviewer_email, reviewer_location, status, store_feedback, submitted_dts, title].hash
|
718
|
+
[customer_profile_oid, featured, helperful_no_votes, helpful_yes_votes, merchant_reply, order_id, overall, rating_name1, rating_name10, rating_name2, rating_name3, rating_name4, rating_name5, rating_name6, rating_name7, rating_name8, rating_name9, rating_score1, rating_score10, rating_score2, rating_score3, rating_score4, rating_score5, rating_score6, rating_score7, rating_score8, rating_score9, recommend_store_to_friend, recommend_to_friend, review, review_oid, reviewed_nickname, reviewer_email, reviewer_location, status, store_feedback, submitted_dts, title].hash
|
694
719
|
end
|
695
720
|
|
696
721
|
# Builds the object from hash
|
@@ -39,6 +39,9 @@ module UltracartClient
|
|
39
39
|
# Current stage that the order is in.
|
40
40
|
attr_accessor :current_stage
|
41
41
|
|
42
|
+
# History of the changes to the current_stage field
|
43
|
+
attr_accessor :current_stage_histories
|
44
|
+
|
42
45
|
attr_accessor :customer_profile
|
43
46
|
|
44
47
|
attr_accessor :digital_order
|
@@ -142,6 +145,7 @@ module UltracartClient
|
|
142
145
|
:'creation_dts' => :'creation_dts',
|
143
146
|
:'currency_code' => :'currency_code',
|
144
147
|
:'current_stage' => :'current_stage',
|
148
|
+
:'current_stage_histories' => :'current_stage_histories',
|
145
149
|
:'customer_profile' => :'customer_profile',
|
146
150
|
:'digital_order' => :'digital_order',
|
147
151
|
:'edi' => :'edi',
|
@@ -186,6 +190,7 @@ module UltracartClient
|
|
186
190
|
:'creation_dts' => :'String',
|
187
191
|
:'currency_code' => :'String',
|
188
192
|
:'current_stage' => :'String',
|
193
|
+
:'current_stage_histories' => :'Array<OrderCurrentStageHistory>',
|
189
194
|
:'customer_profile' => :'Customer',
|
190
195
|
:'digital_order' => :'OrderDigitalOrder',
|
191
196
|
:'edi' => :'OrderEdi',
|
@@ -269,6 +274,12 @@ module UltracartClient
|
|
269
274
|
self.current_stage = attributes[:'current_stage']
|
270
275
|
end
|
271
276
|
|
277
|
+
if attributes.has_key?(:'current_stage_histories')
|
278
|
+
if (value = attributes[:'current_stage_histories']).is_a?(Array)
|
279
|
+
self.current_stage_histories = value
|
280
|
+
end
|
281
|
+
end
|
282
|
+
|
272
283
|
if attributes.has_key?(:'customer_profile')
|
273
284
|
self.customer_profile = attributes[:'customer_profile']
|
274
285
|
end
|
@@ -460,6 +471,7 @@ module UltracartClient
|
|
460
471
|
creation_dts == o.creation_dts &&
|
461
472
|
currency_code == o.currency_code &&
|
462
473
|
current_stage == o.current_stage &&
|
474
|
+
current_stage_histories == o.current_stage_histories &&
|
463
475
|
customer_profile == o.customer_profile &&
|
464
476
|
digital_order == o.digital_order &&
|
465
477
|
edi == o.edi &&
|
@@ -499,7 +511,7 @@ module UltracartClient
|
|
499
511
|
# Calculates hash code according to all attributes.
|
500
512
|
# @return [Fixnum] Hash code
|
501
513
|
def hash
|
502
|
-
[affiliates, auto_order, billing, buysafe, channel_partner, checkout, coupons, creation_dts, currency_code, current_stage, customer_profile, digital_order, edi, exchange_rate, fraud_score, gift, gift_certificate, internal, items, language_iso_code, linked_shipment, marketing, merchant_id, order_id, payment, point_of_sale, properties, quote, refund_dts, refund_reason, reject_dts, reject_reason, salesforce, shipping, summary, tags, taxes, utms].hash
|
514
|
+
[affiliates, auto_order, billing, buysafe, channel_partner, checkout, coupons, creation_dts, currency_code, current_stage, current_stage_histories, customer_profile, digital_order, edi, exchange_rate, fraud_score, gift, gift_certificate, internal, items, language_iso_code, linked_shipment, marketing, merchant_id, order_id, payment, point_of_sale, properties, quote, refund_dts, refund_reason, reject_dts, reject_reason, salesforce, shipping, summary, tags, taxes, utms].hash
|
503
515
|
end
|
504
516
|
|
505
517
|
# Builds the object from hash
|