ultracart_api 4.0.241 → 4.0.245
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 +11 -6
- data/docs/FulfillmentApi.md +5 -5
- data/docs/ItemPaymentProcessing.md +2 -0
- data/docs/OauthApi.md +2 -2
- data/docs/OrderPayment.md +2 -0
- data/docs/OrderPaymentPayPal.md +20 -0
- data/docs/WebhookApi.md +4 -4
- data/docs/WebhookReflow.md +20 -0
- data/docs/{WebhookSampleRequestResponse.md → WebhookReflowResponse.md} +5 -5
- 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/item_payment_processing.rb +11 -1
- data/lib/ultracart_api/models/order_payment.rb +10 -1
- data/lib/ultracart_api/models/{webhook_sample_request.rb → order_payment_pay_pal.rb} +18 -40
- data/lib/ultracart_api/models/webhook_reflow.rb +228 -0
- data/lib/ultracart_api/models/{webhook_sample_request_response.rb → webhook_reflow_response.rb} +16 -16
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +3 -2
- metadata +8 -6
- data/docs/WebhookSampleRequest.md +0 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5fc458d910bbb9eac7c8b2988187aca4dfe9ba66d1c69bf329a25d807779549e
|
4
|
+
data.tar.gz: 2d7fcbc7acf33aa496232219183033be746e0f59a958e443062cdefc752d9c87
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 306cbaf33017585854f3a1808c10cb0512f818a00a24c46514c1d9003b18638247b36f5dcdf201632ce377fcce9d2f712be60bca43a83ce658d2e29e32fc8b0e
|
7
|
+
data.tar.gz: 07d2a4ec531d4527985f1126f63891a3d3fdb9f854cccde44570c5265b6844f335dd8bc5f1f7d95a9f6c3f65c365df1c3829b4b5dc81ca3bc540ea81e657ea43
|
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.
|
10
|
+
- Package version: 4.0.245
|
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.
|
27
|
+
gem install ./ultracart_api-4.0.245.gem
|
28
28
|
```
|
29
29
|
|
30
|
-
(for development, run `gem install --dev ./ultracart_api-4.0.
|
30
|
+
(for development, run `gem install --dev ./ultracart_api-4.0.245.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.
|
36
|
+
gem 'ultracart_api', '~> 4.0.245'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
@@ -1243,6 +1243,7 @@ Class | Method | HTTP request | Description
|
|
1243
1243
|
- [UltracartClient::OrderPaymentECheck](docs/OrderPaymentECheck.md)
|
1244
1244
|
- [UltracartClient::OrderPaymentHealthBenefitCard](docs/OrderPaymentHealthBenefitCard.md)
|
1245
1245
|
- [UltracartClient::OrderPaymentInsurance](docs/OrderPaymentInsurance.md)
|
1246
|
+
- [UltracartClient::OrderPaymentPayPal](docs/OrderPaymentPayPal.md)
|
1246
1247
|
- [UltracartClient::OrderPaymentPurchaseOrder](docs/OrderPaymentPurchaseOrder.md)
|
1247
1248
|
- [UltracartClient::OrderPaymentTransaction](docs/OrderPaymentTransaction.md)
|
1248
1249
|
- [UltracartClient::OrderPaymentTransactionDetail](docs/OrderPaymentTransactionDetail.md)
|
@@ -1426,9 +1427,9 @@ Class | Method | HTTP request | Description
|
|
1426
1427
|
- [UltracartClient::WebhookLogResponse](docs/WebhookLogResponse.md)
|
1427
1428
|
- [UltracartClient::WebhookLogSummariesResponse](docs/WebhookLogSummariesResponse.md)
|
1428
1429
|
- [UltracartClient::WebhookLogSummary](docs/WebhookLogSummary.md)
|
1430
|
+
- [UltracartClient::WebhookReflow](docs/WebhookReflow.md)
|
1431
|
+
- [UltracartClient::WebhookReflowResponse](docs/WebhookReflowResponse.md)
|
1429
1432
|
- [UltracartClient::WebhookResponse](docs/WebhookResponse.md)
|
1430
|
-
- [UltracartClient::WebhookSampleRequest](docs/WebhookSampleRequest.md)
|
1431
|
-
- [UltracartClient::WebhookSampleRequestResponse](docs/WebhookSampleRequestResponse.md)
|
1432
1433
|
- [UltracartClient::WebhooksResponse](docs/WebhooksResponse.md)
|
1433
1434
|
- [UltracartClient::Weight](docs/Weight.md)
|
1434
1435
|
- [UltracartClient::WorkflowAgentAuth](docs/WorkflowAgentAuth.md)
|
@@ -1524,6 +1525,10 @@ Not every change is committed to every SDK.
|
|
1524
1525
|
|
1525
1526
|
| Version | Date | Comments |
|
1526
1527
|
| --: | :-: | --- |
|
1528
|
+
| 4.0.245 | 02/20/2025 | automation fix |
|
1529
|
+
| 4.0.244 | 02/20/2025 | no change, revving sdk to troubleshoot java deployment automation |
|
1530
|
+
| 4.0.243 | 02/20/2025 | no change, revving sdk to troubleshoot java deployment automation |
|
1531
|
+
| 4.0.242 | 02/18/2025 | small bug fixes for incorrect return types on several methods |
|
1527
1532
|
| 4.0.241 | 02/06/2025 | added storefront_host_name to channel partner order object |
|
1528
1533
|
| 4.0.240 | 01/09/2025 | fix for broken 4.0.39 due to incorrect query sig on getCustomers |
|
1529
1534
|
| 4.0.239 | 01/09/2025 | added emails parameter to customer queries, refundOrder added to Channel partner |
|
data/docs/FulfillmentApi.md
CHANGED
@@ -86,7 +86,7 @@ nil (empty response body)
|
|
86
86
|
|
87
87
|
## generate_packing_slip
|
88
88
|
|
89
|
-
> <
|
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(<
|
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 # => <
|
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
|
-
[**
|
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,
|
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<String>** | 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
|
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
|
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=authorization_code that can be used to return a new access token | [optional] |
|
77
77
|
|
78
78
|
### Return type
|
data/docs/OrderPayment.md
CHANGED
@@ -15,6 +15,7 @@
|
|
15
15
|
| **payment_method_accounting_code** | **String** | Payment method QuickBooks code | [optional] |
|
16
16
|
| **payment_method_deposit_to_account** | **String** | Payment method QuickBooks deposit account | [optional] |
|
17
17
|
| **payment_status** | **String** | Payment status | [optional] |
|
18
|
+
| **paypal** | [**OrderPaymentPayPal**](OrderPaymentPayPal.md) | | [optional] |
|
18
19
|
| **purchase_order** | [**OrderPaymentPurchaseOrder**](OrderPaymentPurchaseOrder.md) | | [optional] |
|
19
20
|
| **rotating_transaction_gateway_code** | **String** | Rotating transaction gateway code used to process this order | [optional] |
|
20
21
|
| **surcharge** | [**Currency**](Currency.md) | | [optional] |
|
@@ -41,6 +42,7 @@ instance = UltracartClient::OrderPayment.new(
|
|
41
42
|
payment_method_accounting_code: null,
|
42
43
|
payment_method_deposit_to_account: null,
|
43
44
|
payment_status: null,
|
45
|
+
paypal: null,
|
44
46
|
purchase_order: null,
|
45
47
|
rotating_transaction_gateway_code: null,
|
46
48
|
surcharge: null,
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# UltracartClient::OrderPaymentPayPal
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **customer_id** | **String** | PayPal Customer ID | [optional] |
|
8
|
+
| **vault_id** | **String** | PayPal Vault ID | [optional] |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'ultracart_api'
|
14
|
+
|
15
|
+
instance = UltracartClient::OrderPaymentPayPal.new(
|
16
|
+
customer_id: null,
|
17
|
+
vault_id: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
data/docs/WebhookApi.md
CHANGED
@@ -463,7 +463,7 @@ end
|
|
463
463
|
|
464
464
|
## resend_event
|
465
465
|
|
466
|
-
> <
|
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(<
|
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 # => <
|
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
|
-
[**
|
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::
|
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::
|
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 [
|
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<(
|
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] || '
|
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,
|
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'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,
|
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'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
|
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 [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
|
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, 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 [
|
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<(
|
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] || '
|
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
|
@@ -43,6 +43,8 @@ module UltracartClient
|
|
43
43
|
# Payment status
|
44
44
|
attr_accessor :payment_status
|
45
45
|
|
46
|
+
attr_accessor :paypal
|
47
|
+
|
46
48
|
attr_accessor :purchase_order
|
47
49
|
|
48
50
|
# Rotating transaction gateway code used to process this order
|
@@ -101,6 +103,7 @@ module UltracartClient
|
|
101
103
|
:'payment_method_accounting_code' => :'payment_method_accounting_code',
|
102
104
|
:'payment_method_deposit_to_account' => :'payment_method_deposit_to_account',
|
103
105
|
:'payment_status' => :'payment_status',
|
106
|
+
:'paypal' => :'paypal',
|
104
107
|
:'purchase_order' => :'purchase_order',
|
105
108
|
:'rotating_transaction_gateway_code' => :'rotating_transaction_gateway_code',
|
106
109
|
:'surcharge' => :'surcharge',
|
@@ -131,6 +134,7 @@ module UltracartClient
|
|
131
134
|
:'payment_method_accounting_code' => :'String',
|
132
135
|
:'payment_method_deposit_to_account' => :'String',
|
133
136
|
:'payment_status' => :'String',
|
137
|
+
:'paypal' => :'OrderPaymentPayPal',
|
134
138
|
:'purchase_order' => :'OrderPaymentPurchaseOrder',
|
135
139
|
:'rotating_transaction_gateway_code' => :'String',
|
136
140
|
:'surcharge' => :'Currency',
|
@@ -207,6 +211,10 @@ module UltracartClient
|
|
207
211
|
self.payment_status = attributes[:'payment_status']
|
208
212
|
end
|
209
213
|
|
214
|
+
if attributes.key?(:'paypal')
|
215
|
+
self.paypal = attributes[:'paypal']
|
216
|
+
end
|
217
|
+
|
210
218
|
if attributes.key?(:'purchase_order')
|
211
219
|
self.purchase_order = attributes[:'purchase_order']
|
212
220
|
end
|
@@ -295,6 +303,7 @@ module UltracartClient
|
|
295
303
|
payment_method_accounting_code == o.payment_method_accounting_code &&
|
296
304
|
payment_method_deposit_to_account == o.payment_method_deposit_to_account &&
|
297
305
|
payment_status == o.payment_status &&
|
306
|
+
paypal == o.paypal &&
|
298
307
|
purchase_order == o.purchase_order &&
|
299
308
|
rotating_transaction_gateway_code == o.rotating_transaction_gateway_code &&
|
300
309
|
surcharge == o.surcharge &&
|
@@ -314,7 +323,7 @@ module UltracartClient
|
|
314
323
|
# Calculates hash code according to all attributes.
|
315
324
|
# @return [Integer] Hash code
|
316
325
|
def hash
|
317
|
-
[check, credit_card, echeck, health_benefit_card, hold_for_fraud_review, insurance, payment_dts, payment_method, payment_method_accounting_code, payment_method_deposit_to_account, payment_status, purchase_order, rotating_transaction_gateway_code, surcharge, surcharge_accounting_code, surcharge_transaction_fee, surcharge_transaction_percentage, test_order, transactions].hash
|
326
|
+
[check, credit_card, echeck, health_benefit_card, hold_for_fraud_review, insurance, payment_dts, payment_method, payment_method_accounting_code, payment_method_deposit_to_account, payment_status, paypal, purchase_order, rotating_transaction_gateway_code, surcharge, surcharge_accounting_code, surcharge_transaction_fee, surcharge_transaction_percentage, test_order, transactions].hash
|
318
327
|
end
|
319
328
|
|
320
329
|
# Builds the object from hash
|
@@ -14,26 +14,18 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module UltracartClient
|
17
|
-
class
|
18
|
-
#
|
19
|
-
attr_accessor :
|
17
|
+
class OrderPaymentPayPal
|
18
|
+
# PayPal Customer ID
|
19
|
+
attr_accessor :customer_id
|
20
20
|
|
21
|
-
#
|
22
|
-
attr_accessor :
|
23
|
-
|
24
|
-
# Request id
|
25
|
-
attr_accessor :request_id
|
26
|
-
|
27
|
-
# URI to send request to
|
28
|
-
attr_accessor :uri
|
21
|
+
# PayPal Vault ID
|
22
|
+
attr_accessor :vault_id
|
29
23
|
|
30
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
31
25
|
def self.attribute_map
|
32
26
|
{
|
33
|
-
:'
|
34
|
-
:'
|
35
|
-
:'request_id' => :'request_id',
|
36
|
-
:'uri' => :'uri'
|
27
|
+
:'customer_id' => :'customer_id',
|
28
|
+
:'vault_id' => :'vault_id'
|
37
29
|
}
|
38
30
|
end
|
39
31
|
|
@@ -45,10 +37,8 @@ module UltracartClient
|
|
45
37
|
# Attribute type mapping.
|
46
38
|
def self.openapi_types
|
47
39
|
{
|
48
|
-
:'
|
49
|
-
:'
|
50
|
-
:'request_id' => :'String',
|
51
|
-
:'uri' => :'String'
|
40
|
+
:'customer_id' => :'String',
|
41
|
+
:'vault_id' => :'String'
|
52
42
|
}
|
53
43
|
end
|
54
44
|
|
@@ -62,33 +52,23 @@ module UltracartClient
|
|
62
52
|
# @param [Hash] attributes Model attributes in the form of hash
|
63
53
|
def initialize(attributes = {})
|
64
54
|
if (!attributes.is_a?(Hash))
|
65
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `UltracartClient::
|
55
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `UltracartClient::OrderPaymentPayPal` initialize method"
|
66
56
|
end
|
67
57
|
|
68
58
|
# check to see if the attribute exists and convert string to symbol for hash key
|
69
59
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
70
60
|
if (!self.class.attribute_map.key?(k.to_sym))
|
71
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `UltracartClient::
|
61
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `UltracartClient::OrderPaymentPayPal`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
72
62
|
end
|
73
63
|
h[k.to_sym] = v
|
74
64
|
}
|
75
65
|
|
76
|
-
if attributes.key?(:'
|
77
|
-
self.
|
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']
|
66
|
+
if attributes.key?(:'customer_id')
|
67
|
+
self.customer_id = attributes[:'customer_id']
|
88
68
|
end
|
89
69
|
|
90
|
-
if attributes.key?(:'
|
91
|
-
self.
|
70
|
+
if attributes.key?(:'vault_id')
|
71
|
+
self.vault_id = attributes[:'vault_id']
|
92
72
|
end
|
93
73
|
end
|
94
74
|
|
@@ -110,10 +90,8 @@ module UltracartClient
|
|
110
90
|
def ==(o)
|
111
91
|
return true if self.equal?(o)
|
112
92
|
self.class == o.class &&
|
113
|
-
|
114
|
-
|
115
|
-
request_id == o.request_id &&
|
116
|
-
uri == o.uri
|
93
|
+
customer_id == o.customer_id &&
|
94
|
+
vault_id == o.vault_id
|
117
95
|
end
|
118
96
|
|
119
97
|
# @see the `==` method
|
@@ -125,7 +103,7 @@ module UltracartClient
|
|
125
103
|
# Calculates hash code according to all attributes.
|
126
104
|
# @return [Integer] Hash code
|
127
105
|
def hash
|
128
|
-
[
|
106
|
+
[customer_id, vault_id].hash
|
129
107
|
end
|
130
108
|
|
131
109
|
# Builds the object from hash
|
@@ -0,0 +1,228 @@
|
|
1
|
+
=begin
|
2
|
+
#UltraCart Rest API V2
|
3
|
+
|
4
|
+
#UltraCart REST API Version 2
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 2.0.0
|
7
|
+
Contact: support@ultracart.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 6.0.1-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module UltracartClient
|
17
|
+
class WebhookReflow
|
18
|
+
attr_accessor :event_name
|
19
|
+
|
20
|
+
attr_accessor :queued
|
21
|
+
|
22
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
23
|
+
def self.attribute_map
|
24
|
+
{
|
25
|
+
:'event_name' => :'event_name',
|
26
|
+
:'queued' => :'queued'
|
27
|
+
}
|
28
|
+
end
|
29
|
+
|
30
|
+
# Returns all the JSON keys this model knows about
|
31
|
+
def self.acceptable_attributes
|
32
|
+
attribute_map.values
|
33
|
+
end
|
34
|
+
|
35
|
+
# Attribute type mapping.
|
36
|
+
def self.openapi_types
|
37
|
+
{
|
38
|
+
:'event_name' => :'String',
|
39
|
+
:'queued' => :'Boolean'
|
40
|
+
}
|
41
|
+
end
|
42
|
+
|
43
|
+
# List of attributes with nullable: true
|
44
|
+
def self.openapi_nullable
|
45
|
+
Set.new([
|
46
|
+
])
|
47
|
+
end
|
48
|
+
|
49
|
+
# Initializes the object
|
50
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
51
|
+
def initialize(attributes = {})
|
52
|
+
if (!attributes.is_a?(Hash))
|
53
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `UltracartClient::WebhookReflow` initialize method"
|
54
|
+
end
|
55
|
+
|
56
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
57
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
58
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
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
|
60
|
+
end
|
61
|
+
h[k.to_sym] = v
|
62
|
+
}
|
63
|
+
|
64
|
+
if attributes.key?(:'event_name')
|
65
|
+
self.event_name = attributes[:'event_name']
|
66
|
+
end
|
67
|
+
|
68
|
+
if attributes.key?(:'queued')
|
69
|
+
self.queued = attributes[:'queued']
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
74
|
+
# @return Array for valid properties with the reasons
|
75
|
+
def list_invalid_properties
|
76
|
+
invalid_properties = Array.new
|
77
|
+
invalid_properties
|
78
|
+
end
|
79
|
+
|
80
|
+
# Check to see if the all the properties in the model are valid
|
81
|
+
# @return true if the model is valid
|
82
|
+
def valid?
|
83
|
+
true
|
84
|
+
end
|
85
|
+
|
86
|
+
# Checks equality by comparing each attribute.
|
87
|
+
# @param [Object] Object to be compared
|
88
|
+
def ==(o)
|
89
|
+
return true if self.equal?(o)
|
90
|
+
self.class == o.class &&
|
91
|
+
event_name == o.event_name &&
|
92
|
+
queued == o.queued
|
93
|
+
end
|
94
|
+
|
95
|
+
# @see the `==` method
|
96
|
+
# @param [Object] Object to be compared
|
97
|
+
def eql?(o)
|
98
|
+
self == o
|
99
|
+
end
|
100
|
+
|
101
|
+
# Calculates hash code according to all attributes.
|
102
|
+
# @return [Integer] Hash code
|
103
|
+
def hash
|
104
|
+
[event_name, queued].hash
|
105
|
+
end
|
106
|
+
|
107
|
+
# Builds the object from hash
|
108
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
109
|
+
# @return [Object] Returns the model itself
|
110
|
+
def self.build_from_hash(attributes)
|
111
|
+
new.build_from_hash(attributes)
|
112
|
+
end
|
113
|
+
|
114
|
+
# Builds the object from hash
|
115
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
116
|
+
# @return [Object] Returns the model itself
|
117
|
+
def build_from_hash(attributes)
|
118
|
+
return nil unless attributes.is_a?(Hash)
|
119
|
+
attributes = attributes.transform_keys(&:to_sym)
|
120
|
+
self.class.openapi_types.each_pair do |key, type|
|
121
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
122
|
+
self.send("#{key}=", nil)
|
123
|
+
elsif type =~ /\AArray<(.*)>/i
|
124
|
+
# check to ensure the input is an array given that the attribute
|
125
|
+
# is documented as an array but the input is not
|
126
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
127
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
128
|
+
end
|
129
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
130
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
131
|
+
end
|
132
|
+
end
|
133
|
+
|
134
|
+
self
|
135
|
+
end
|
136
|
+
|
137
|
+
# Deserializes the data based on type
|
138
|
+
# @param string type Data type
|
139
|
+
# @param string value Value to be deserialized
|
140
|
+
# @return [Object] Deserialized data
|
141
|
+
def _deserialize(type, value)
|
142
|
+
case type.to_sym
|
143
|
+
when :Time
|
144
|
+
Time.parse(value)
|
145
|
+
when :Date
|
146
|
+
Date.parse(value)
|
147
|
+
when :String
|
148
|
+
value.to_s
|
149
|
+
when :Integer
|
150
|
+
value.to_i
|
151
|
+
when :Float
|
152
|
+
value.to_f
|
153
|
+
when :Boolean
|
154
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
155
|
+
true
|
156
|
+
else
|
157
|
+
false
|
158
|
+
end
|
159
|
+
when :Object
|
160
|
+
# generic object (usually a Hash), return directly
|
161
|
+
value
|
162
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
163
|
+
inner_type = Regexp.last_match[:inner_type]
|
164
|
+
value.map { |v| _deserialize(inner_type, v) }
|
165
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
166
|
+
k_type = Regexp.last_match[:k_type]
|
167
|
+
v_type = Regexp.last_match[:v_type]
|
168
|
+
{}.tap do |hash|
|
169
|
+
value.each do |k, v|
|
170
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
171
|
+
end
|
172
|
+
end
|
173
|
+
else # model
|
174
|
+
# models (e.g. Pet) or oneOf
|
175
|
+
klass = UltracartClient.const_get(type)
|
176
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
177
|
+
end
|
178
|
+
end
|
179
|
+
|
180
|
+
# Returns the string representation of the object
|
181
|
+
# @return [String] String presentation of the object
|
182
|
+
def to_s
|
183
|
+
to_hash.to_s
|
184
|
+
end
|
185
|
+
|
186
|
+
# to_body is an alias to to_hash (backward compatibility)
|
187
|
+
# @return [Hash] Returns the object in the form of hash
|
188
|
+
def to_body
|
189
|
+
to_hash
|
190
|
+
end
|
191
|
+
|
192
|
+
# Returns the object in the form of hash
|
193
|
+
# @return [Hash] Returns the object in the form of hash
|
194
|
+
def to_hash
|
195
|
+
hash = {}
|
196
|
+
self.class.attribute_map.each_pair do |attr, param|
|
197
|
+
value = self.send(attr)
|
198
|
+
if value.nil?
|
199
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
200
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
201
|
+
end
|
202
|
+
|
203
|
+
hash[param] = _to_hash(value)
|
204
|
+
end
|
205
|
+
hash
|
206
|
+
end
|
207
|
+
|
208
|
+
# Outputs non-array value in the form of hash
|
209
|
+
# For object, use to_hash. Otherwise, just return the value
|
210
|
+
# @param [Object] value Any valid value
|
211
|
+
# @return [Hash] Returns the value in the form of hash
|
212
|
+
def _to_hash(value)
|
213
|
+
if value.is_a?(Array)
|
214
|
+
value.compact.map { |v| _to_hash(v) }
|
215
|
+
elsif value.is_a?(Hash)
|
216
|
+
{}.tap do |hash|
|
217
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
218
|
+
end
|
219
|
+
elsif value.respond_to? :to_hash
|
220
|
+
value.to_hash
|
221
|
+
else
|
222
|
+
value
|
223
|
+
end
|
224
|
+
end
|
225
|
+
|
226
|
+
end
|
227
|
+
|
228
|
+
end
|
data/lib/ultracart_api/models/{webhook_sample_request_response.rb → webhook_reflow_response.rb}
RENAMED
@@ -14,26 +14,26 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module UltracartClient
|
17
|
-
class
|
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::
|
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::
|
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
|
132
|
+
[error, metadata, reflow, success, warning].hash
|
133
133
|
end
|
134
134
|
|
135
135
|
# Builds the object from hash
|
data/lib/ultracart_api.rb
CHANGED
@@ -666,6 +666,7 @@ require 'ultracart_api/models/order_payment_credit_card_dual_vaulted_property'
|
|
666
666
|
require 'ultracart_api/models/order_payment_e_check'
|
667
667
|
require 'ultracart_api/models/order_payment_health_benefit_card'
|
668
668
|
require 'ultracart_api/models/order_payment_insurance'
|
669
|
+
require 'ultracart_api/models/order_payment_pay_pal'
|
669
670
|
require 'ultracart_api/models/order_payment_purchase_order'
|
670
671
|
require 'ultracart_api/models/order_payment_transaction'
|
671
672
|
require 'ultracart_api/models/order_payment_transaction_detail'
|
@@ -849,9 +850,9 @@ require 'ultracart_api/models/webhook_log'
|
|
849
850
|
require 'ultracart_api/models/webhook_log_response'
|
850
851
|
require 'ultracart_api/models/webhook_log_summaries_response'
|
851
852
|
require 'ultracart_api/models/webhook_log_summary'
|
853
|
+
require 'ultracart_api/models/webhook_reflow'
|
854
|
+
require 'ultracart_api/models/webhook_reflow_response'
|
852
855
|
require 'ultracart_api/models/webhook_response'
|
853
|
-
require 'ultracart_api/models/webhook_sample_request'
|
854
|
-
require 'ultracart_api/models/webhook_sample_request_response'
|
855
856
|
require 'ultracart_api/models/webhooks_response'
|
856
857
|
require 'ultracart_api/models/weight'
|
857
858
|
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.
|
4
|
+
version: 4.0.245
|
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-
|
11
|
+
date: 2025-02-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -725,6 +725,7 @@ files:
|
|
725
725
|
- docs/OrderPaymentECheck.md
|
726
726
|
- docs/OrderPaymentHealthBenefitCard.md
|
727
727
|
- docs/OrderPaymentInsurance.md
|
728
|
+
- docs/OrderPaymentPayPal.md
|
728
729
|
- docs/OrderPaymentPurchaseOrder.md
|
729
730
|
- docs/OrderPaymentTransaction.md
|
730
731
|
- docs/OrderPaymentTransactionDetail.md
|
@@ -913,9 +914,9 @@ files:
|
|
913
914
|
- docs/WebhookLogResponse.md
|
914
915
|
- docs/WebhookLogSummariesResponse.md
|
915
916
|
- docs/WebhookLogSummary.md
|
917
|
+
- docs/WebhookReflow.md
|
918
|
+
- docs/WebhookReflowResponse.md
|
916
919
|
- docs/WebhookResponse.md
|
917
|
-
- docs/WebhookSampleRequest.md
|
918
|
-
- docs/WebhookSampleRequestResponse.md
|
919
920
|
- docs/WebhooksResponse.md
|
920
921
|
- docs/Weight.md
|
921
922
|
- docs/WorkflowAgentAuth.md
|
@@ -1612,6 +1613,7 @@ files:
|
|
1612
1613
|
- lib/ultracart_api/models/order_payment_e_check.rb
|
1613
1614
|
- lib/ultracart_api/models/order_payment_health_benefit_card.rb
|
1614
1615
|
- lib/ultracart_api/models/order_payment_insurance.rb
|
1616
|
+
- lib/ultracart_api/models/order_payment_pay_pal.rb
|
1615
1617
|
- lib/ultracart_api/models/order_payment_purchase_order.rb
|
1616
1618
|
- lib/ultracart_api/models/order_payment_transaction.rb
|
1617
1619
|
- lib/ultracart_api/models/order_payment_transaction_detail.rb
|
@@ -1795,9 +1797,9 @@ files:
|
|
1795
1797
|
- lib/ultracart_api/models/webhook_log_response.rb
|
1796
1798
|
- lib/ultracart_api/models/webhook_log_summaries_response.rb
|
1797
1799
|
- lib/ultracart_api/models/webhook_log_summary.rb
|
1800
|
+
- lib/ultracart_api/models/webhook_reflow.rb
|
1801
|
+
- lib/ultracart_api/models/webhook_reflow_response.rb
|
1798
1802
|
- 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
1803
|
- lib/ultracart_api/models/webhooks_response.rb
|
1802
1804
|
- lib/ultracart_api/models/weight.rb
|
1803
1805
|
- 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<HTTPHeader>**](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
|
-
|