ultracart_api 3.1.41 → 3.1.42
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 +5 -4
- data/docs/CouponTierAmount.md +1 -0
- data/docs/CouponTierPercent.md +1 -0
- data/docs/CouponTierQuantityAmount.md +1 -0
- data/docs/CouponTierQuantityPercent.md +1 -0
- data/docs/CouponTieredPercentOffShipping.md +1 -0
- data/docs/WebhookLog.md +1 -0
- data/lib/ultracart_api/models/coupon_tier_amount.rb +26 -1
- data/lib/ultracart_api/models/coupon_tier_percent.rb +26 -1
- data/lib/ultracart_api/models/coupon_tier_quantity_amount.rb +29 -4
- data/lib/ultracart_api/models/coupon_tier_quantity_percent.rb +29 -4
- data/lib/ultracart_api/models/coupon_tiered_percent_off_shipping.rb +26 -1
- data/lib/ultracart_api/models/webhook_log.rb +11 -1
- data/lib/ultracart_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 25381645bc503673706150a6ad3f5e2aebfad380d39266f51582ee78bcd46659
|
4
|
+
data.tar.gz: 93a03208efd7a6a27617f91de4ff8765271f593c161a8deda70e687b9ba15433
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a6e5d0fcaf87a9e7d79429f8cc0792dca98907b43481f1a853b3b28299fac3165d4f437638115629c63aca90e75e6bb3de203175117332a761adf91a0675814
|
7
|
+
data.tar.gz: 1644403544aadbc2ee6dee29e067db14b22b72ed73d339d3a767a2cf132e45a7cb0ec58c965b52b50676693b8f2bc22f5b01a42a415e43374525d92c8c061c1d
|
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.1.
|
10
|
+
- Package version: 3.1.42
|
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.1.
|
27
|
+
gem install ./ultracart_api-3.1.42.gem
|
28
28
|
```
|
29
|
-
(for development, run `gem install --dev ./ultracart_api-3.1.
|
29
|
+
(for development, run `gem install --dev ./ultracart_api-3.1.42.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.1.
|
35
|
+
gem 'ultracart_api', '~> 3.1.42'
|
36
36
|
|
37
37
|
### Install from Git
|
38
38
|
|
@@ -1019,6 +1019,7 @@ Not every change is committed to every SDK.
|
|
1019
1019
|
|
1020
1020
|
| Version | Date | Comments |
|
1021
1021
|
| --: | :-: | --- |
|
1022
|
+
| 3.1.42 | 01/01/2021 | added quickbooks accounting codes at the tiered level for tiered coupons |
|
1022
1023
|
| 3.1.41 | 05/21/2021 | screen recording heatmap methods |
|
1023
1024
|
| 3.1.40 | 05/20/2021 | Order.summary.actual_payment_processing field added |
|
1024
1025
|
| 3.1.39 | 05/19/2021 | full deployment to ensure all language SDKs are up to date |
|
data/docs/CouponTierAmount.md
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
6
|
**discount_amount** | **Float** | The amount of subtotal discount | [optional]
|
7
|
+
**quickbooks_code** | **String** | Quickbooks accounting code. | [optional]
|
7
8
|
**subtotal_amount** | **Float** | The amount of subtotal required to receive the discount amount | [optional]
|
8
9
|
|
9
10
|
|
data/docs/CouponTierPercent.md
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
6
|
**discount_percent** | **Float** | The percent of subtotal discount | [optional]
|
7
|
+
**quickbooks_code** | **String** | Quickbooks accounting code. | [optional]
|
7
8
|
**subtotal_amount** | **Float** | The amount of subtotal required to receive the discount percent | [optional]
|
8
9
|
|
9
10
|
|
@@ -5,5 +5,6 @@ Name | Type | Description | Notes
|
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
6
|
**discount_amount** | **Float** | The amount of discount per item. | [optional]
|
7
7
|
**item_quantity** | **Integer** | The quantity of item purchased (in units) | [optional]
|
8
|
+
**quickbooks_code** | **String** | Quickbooks accounting code. | [optional]
|
8
9
|
|
9
10
|
|
@@ -5,5 +5,6 @@ Name | Type | Description | Notes
|
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
6
|
**discount_percent** | **Float** | The percent of discount per item. | [optional]
|
7
7
|
**item_quantity** | **Integer** | The quantity of item purchased (in units) | [optional]
|
8
|
+
**quickbooks_code** | **String** | Quickbooks accounting code. | [optional]
|
8
9
|
|
9
10
|
|
@@ -3,6 +3,7 @@
|
|
3
3
|
## Properties
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
|
+
**quickbooks_code** | **String** | Quickbooks accounting code. | [optional]
|
6
7
|
**shipping_methods** | **Array<String>** | One or more shipping methods that may receive this discount | [optional]
|
7
8
|
**tiers** | [**Array<CouponTierPercent>**](CouponTierPercent.md) | A list of discount tiers. | [optional]
|
8
9
|
|
data/docs/WebhookLog.md
CHANGED
@@ -5,6 +5,7 @@ Name | Type | Description | Notes
|
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
6
|
**delivery_dts** | **String** | Date/time of delivery | [optional]
|
7
7
|
**duration** | **Integer** | Number of milliseconds to process the notification | [optional]
|
8
|
+
**queue_delay** | **Integer** | Number of milliseconds of delay caused by queuing | [optional]
|
8
9
|
**request** | **String** | Request payload (first 100,000 characters) | [optional]
|
9
10
|
**request_headers** | [**Array<HTTPHeader>**](HTTPHeader.md) | Request headers sent to the server | [optional]
|
10
11
|
**request_id** | **String** | Request id is a unique string that you can look up in the logs | [optional]
|
@@ -17,6 +17,9 @@ module UltracartClient
|
|
17
17
|
# The amount of subtotal discount
|
18
18
|
attr_accessor :discount_amount
|
19
19
|
|
20
|
+
# Quickbooks accounting code.
|
21
|
+
attr_accessor :quickbooks_code
|
22
|
+
|
20
23
|
# The amount of subtotal required to receive the discount amount
|
21
24
|
attr_accessor :subtotal_amount
|
22
25
|
|
@@ -24,6 +27,7 @@ module UltracartClient
|
|
24
27
|
def self.attribute_map
|
25
28
|
{
|
26
29
|
:'discount_amount' => :'discount_amount',
|
30
|
+
:'quickbooks_code' => :'quickbooks_code',
|
27
31
|
:'subtotal_amount' => :'subtotal_amount'
|
28
32
|
}
|
29
33
|
end
|
@@ -32,6 +36,7 @@ module UltracartClient
|
|
32
36
|
def self.swagger_types
|
33
37
|
{
|
34
38
|
:'discount_amount' => :'Float',
|
39
|
+
:'quickbooks_code' => :'String',
|
35
40
|
:'subtotal_amount' => :'Float'
|
36
41
|
}
|
37
42
|
end
|
@@ -48,6 +53,10 @@ module UltracartClient
|
|
48
53
|
self.discount_amount = attributes[:'discount_amount']
|
49
54
|
end
|
50
55
|
|
56
|
+
if attributes.has_key?(:'quickbooks_code')
|
57
|
+
self.quickbooks_code = attributes[:'quickbooks_code']
|
58
|
+
end
|
59
|
+
|
51
60
|
if attributes.has_key?(:'subtotal_amount')
|
52
61
|
self.subtotal_amount = attributes[:'subtotal_amount']
|
53
62
|
end
|
@@ -57,21 +66,37 @@ module UltracartClient
|
|
57
66
|
# @return Array for valid properties with the reasons
|
58
67
|
def list_invalid_properties
|
59
68
|
invalid_properties = Array.new
|
69
|
+
if !@quickbooks_code.nil? && @quickbooks_code.to_s.length > 20
|
70
|
+
invalid_properties.push('invalid value for "quickbooks_code", the character length must be smaller than or equal to 20.')
|
71
|
+
end
|
72
|
+
|
60
73
|
invalid_properties
|
61
74
|
end
|
62
75
|
|
63
76
|
# Check to see if the all the properties in the model are valid
|
64
77
|
# @return true if the model is valid
|
65
78
|
def valid?
|
79
|
+
return false if !@quickbooks_code.nil? && @quickbooks_code.to_s.length > 20
|
66
80
|
true
|
67
81
|
end
|
68
82
|
|
83
|
+
# Custom attribute writer method with validation
|
84
|
+
# @param [Object] quickbooks_code Value to be assigned
|
85
|
+
def quickbooks_code=(quickbooks_code)
|
86
|
+
if !quickbooks_code.nil? && quickbooks_code.to_s.length > 20
|
87
|
+
fail ArgumentError, 'invalid value for "quickbooks_code", the character length must be smaller than or equal to 20.'
|
88
|
+
end
|
89
|
+
|
90
|
+
@quickbooks_code = quickbooks_code
|
91
|
+
end
|
92
|
+
|
69
93
|
# Checks equality by comparing each attribute.
|
70
94
|
# @param [Object] Object to be compared
|
71
95
|
def ==(o)
|
72
96
|
return true if self.equal?(o)
|
73
97
|
self.class == o.class &&
|
74
98
|
discount_amount == o.discount_amount &&
|
99
|
+
quickbooks_code == o.quickbooks_code &&
|
75
100
|
subtotal_amount == o.subtotal_amount
|
76
101
|
end
|
77
102
|
|
@@ -84,7 +109,7 @@ module UltracartClient
|
|
84
109
|
# Calculates hash code according to all attributes.
|
85
110
|
# @return [Fixnum] Hash code
|
86
111
|
def hash
|
87
|
-
[discount_amount, subtotal_amount].hash
|
112
|
+
[discount_amount, quickbooks_code, subtotal_amount].hash
|
88
113
|
end
|
89
114
|
|
90
115
|
# Builds the object from hash
|
@@ -17,6 +17,9 @@ module UltracartClient
|
|
17
17
|
# The percent of subtotal discount
|
18
18
|
attr_accessor :discount_percent
|
19
19
|
|
20
|
+
# Quickbooks accounting code.
|
21
|
+
attr_accessor :quickbooks_code
|
22
|
+
|
20
23
|
# The amount of subtotal required to receive the discount percent
|
21
24
|
attr_accessor :subtotal_amount
|
22
25
|
|
@@ -24,6 +27,7 @@ module UltracartClient
|
|
24
27
|
def self.attribute_map
|
25
28
|
{
|
26
29
|
:'discount_percent' => :'discount_percent',
|
30
|
+
:'quickbooks_code' => :'quickbooks_code',
|
27
31
|
:'subtotal_amount' => :'subtotal_amount'
|
28
32
|
}
|
29
33
|
end
|
@@ -32,6 +36,7 @@ module UltracartClient
|
|
32
36
|
def self.swagger_types
|
33
37
|
{
|
34
38
|
:'discount_percent' => :'Float',
|
39
|
+
:'quickbooks_code' => :'String',
|
35
40
|
:'subtotal_amount' => :'Float'
|
36
41
|
}
|
37
42
|
end
|
@@ -48,6 +53,10 @@ module UltracartClient
|
|
48
53
|
self.discount_percent = attributes[:'discount_percent']
|
49
54
|
end
|
50
55
|
|
56
|
+
if attributes.has_key?(:'quickbooks_code')
|
57
|
+
self.quickbooks_code = attributes[:'quickbooks_code']
|
58
|
+
end
|
59
|
+
|
51
60
|
if attributes.has_key?(:'subtotal_amount')
|
52
61
|
self.subtotal_amount = attributes[:'subtotal_amount']
|
53
62
|
end
|
@@ -57,21 +66,37 @@ module UltracartClient
|
|
57
66
|
# @return Array for valid properties with the reasons
|
58
67
|
def list_invalid_properties
|
59
68
|
invalid_properties = Array.new
|
69
|
+
if !@quickbooks_code.nil? && @quickbooks_code.to_s.length > 20
|
70
|
+
invalid_properties.push('invalid value for "quickbooks_code", the character length must be smaller than or equal to 20.')
|
71
|
+
end
|
72
|
+
|
60
73
|
invalid_properties
|
61
74
|
end
|
62
75
|
|
63
76
|
# Check to see if the all the properties in the model are valid
|
64
77
|
# @return true if the model is valid
|
65
78
|
def valid?
|
79
|
+
return false if !@quickbooks_code.nil? && @quickbooks_code.to_s.length > 20
|
66
80
|
true
|
67
81
|
end
|
68
82
|
|
83
|
+
# Custom attribute writer method with validation
|
84
|
+
# @param [Object] quickbooks_code Value to be assigned
|
85
|
+
def quickbooks_code=(quickbooks_code)
|
86
|
+
if !quickbooks_code.nil? && quickbooks_code.to_s.length > 20
|
87
|
+
fail ArgumentError, 'invalid value for "quickbooks_code", the character length must be smaller than or equal to 20.'
|
88
|
+
end
|
89
|
+
|
90
|
+
@quickbooks_code = quickbooks_code
|
91
|
+
end
|
92
|
+
|
69
93
|
# Checks equality by comparing each attribute.
|
70
94
|
# @param [Object] Object to be compared
|
71
95
|
def ==(o)
|
72
96
|
return true if self.equal?(o)
|
73
97
|
self.class == o.class &&
|
74
98
|
discount_percent == o.discount_percent &&
|
99
|
+
quickbooks_code == o.quickbooks_code &&
|
75
100
|
subtotal_amount == o.subtotal_amount
|
76
101
|
end
|
77
102
|
|
@@ -84,7 +109,7 @@ module UltracartClient
|
|
84
109
|
# Calculates hash code according to all attributes.
|
85
110
|
# @return [Fixnum] Hash code
|
86
111
|
def hash
|
87
|
-
[discount_percent, subtotal_amount].hash
|
112
|
+
[discount_percent, quickbooks_code, subtotal_amount].hash
|
88
113
|
end
|
89
114
|
|
90
115
|
# Builds the object from hash
|
@@ -20,11 +20,15 @@ module UltracartClient
|
|
20
20
|
# The quantity of item purchased (in units)
|
21
21
|
attr_accessor :item_quantity
|
22
22
|
|
23
|
+
# Quickbooks accounting code.
|
24
|
+
attr_accessor :quickbooks_code
|
25
|
+
|
23
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
24
27
|
def self.attribute_map
|
25
28
|
{
|
26
29
|
:'discount_amount' => :'discount_amount',
|
27
|
-
:'item_quantity' => :'item_quantity'
|
30
|
+
:'item_quantity' => :'item_quantity',
|
31
|
+
:'quickbooks_code' => :'quickbooks_code'
|
28
32
|
}
|
29
33
|
end
|
30
34
|
|
@@ -32,7 +36,8 @@ module UltracartClient
|
|
32
36
|
def self.swagger_types
|
33
37
|
{
|
34
38
|
:'discount_amount' => :'Float',
|
35
|
-
:'item_quantity' => :'Integer'
|
39
|
+
:'item_quantity' => :'Integer',
|
40
|
+
:'quickbooks_code' => :'String'
|
36
41
|
}
|
37
42
|
end
|
38
43
|
|
@@ -51,28 +56,48 @@ module UltracartClient
|
|
51
56
|
if attributes.has_key?(:'item_quantity')
|
52
57
|
self.item_quantity = attributes[:'item_quantity']
|
53
58
|
end
|
59
|
+
|
60
|
+
if attributes.has_key?(:'quickbooks_code')
|
61
|
+
self.quickbooks_code = attributes[:'quickbooks_code']
|
62
|
+
end
|
54
63
|
end
|
55
64
|
|
56
65
|
# Show invalid properties with the reasons. Usually used together with valid?
|
57
66
|
# @return Array for valid properties with the reasons
|
58
67
|
def list_invalid_properties
|
59
68
|
invalid_properties = Array.new
|
69
|
+
if !@quickbooks_code.nil? && @quickbooks_code.to_s.length > 20
|
70
|
+
invalid_properties.push('invalid value for "quickbooks_code", the character length must be smaller than or equal to 20.')
|
71
|
+
end
|
72
|
+
|
60
73
|
invalid_properties
|
61
74
|
end
|
62
75
|
|
63
76
|
# Check to see if the all the properties in the model are valid
|
64
77
|
# @return true if the model is valid
|
65
78
|
def valid?
|
79
|
+
return false if !@quickbooks_code.nil? && @quickbooks_code.to_s.length > 20
|
66
80
|
true
|
67
81
|
end
|
68
82
|
|
83
|
+
# Custom attribute writer method with validation
|
84
|
+
# @param [Object] quickbooks_code Value to be assigned
|
85
|
+
def quickbooks_code=(quickbooks_code)
|
86
|
+
if !quickbooks_code.nil? && quickbooks_code.to_s.length > 20
|
87
|
+
fail ArgumentError, 'invalid value for "quickbooks_code", the character length must be smaller than or equal to 20.'
|
88
|
+
end
|
89
|
+
|
90
|
+
@quickbooks_code = quickbooks_code
|
91
|
+
end
|
92
|
+
|
69
93
|
# Checks equality by comparing each attribute.
|
70
94
|
# @param [Object] Object to be compared
|
71
95
|
def ==(o)
|
72
96
|
return true if self.equal?(o)
|
73
97
|
self.class == o.class &&
|
74
98
|
discount_amount == o.discount_amount &&
|
75
|
-
item_quantity == o.item_quantity
|
99
|
+
item_quantity == o.item_quantity &&
|
100
|
+
quickbooks_code == o.quickbooks_code
|
76
101
|
end
|
77
102
|
|
78
103
|
# @see the `==` method
|
@@ -84,7 +109,7 @@ module UltracartClient
|
|
84
109
|
# Calculates hash code according to all attributes.
|
85
110
|
# @return [Fixnum] Hash code
|
86
111
|
def hash
|
87
|
-
[discount_amount, item_quantity].hash
|
112
|
+
[discount_amount, item_quantity, quickbooks_code].hash
|
88
113
|
end
|
89
114
|
|
90
115
|
# Builds the object from hash
|
@@ -20,11 +20,15 @@ module UltracartClient
|
|
20
20
|
# The quantity of item purchased (in units)
|
21
21
|
attr_accessor :item_quantity
|
22
22
|
|
23
|
+
# Quickbooks accounting code.
|
24
|
+
attr_accessor :quickbooks_code
|
25
|
+
|
23
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
24
27
|
def self.attribute_map
|
25
28
|
{
|
26
29
|
:'discount_percent' => :'discount_percent',
|
27
|
-
:'item_quantity' => :'item_quantity'
|
30
|
+
:'item_quantity' => :'item_quantity',
|
31
|
+
:'quickbooks_code' => :'quickbooks_code'
|
28
32
|
}
|
29
33
|
end
|
30
34
|
|
@@ -32,7 +36,8 @@ module UltracartClient
|
|
32
36
|
def self.swagger_types
|
33
37
|
{
|
34
38
|
:'discount_percent' => :'Float',
|
35
|
-
:'item_quantity' => :'Integer'
|
39
|
+
:'item_quantity' => :'Integer',
|
40
|
+
:'quickbooks_code' => :'String'
|
36
41
|
}
|
37
42
|
end
|
38
43
|
|
@@ -51,28 +56,48 @@ module UltracartClient
|
|
51
56
|
if attributes.has_key?(:'item_quantity')
|
52
57
|
self.item_quantity = attributes[:'item_quantity']
|
53
58
|
end
|
59
|
+
|
60
|
+
if attributes.has_key?(:'quickbooks_code')
|
61
|
+
self.quickbooks_code = attributes[:'quickbooks_code']
|
62
|
+
end
|
54
63
|
end
|
55
64
|
|
56
65
|
# Show invalid properties with the reasons. Usually used together with valid?
|
57
66
|
# @return Array for valid properties with the reasons
|
58
67
|
def list_invalid_properties
|
59
68
|
invalid_properties = Array.new
|
69
|
+
if !@quickbooks_code.nil? && @quickbooks_code.to_s.length > 20
|
70
|
+
invalid_properties.push('invalid value for "quickbooks_code", the character length must be smaller than or equal to 20.')
|
71
|
+
end
|
72
|
+
|
60
73
|
invalid_properties
|
61
74
|
end
|
62
75
|
|
63
76
|
# Check to see if the all the properties in the model are valid
|
64
77
|
# @return true if the model is valid
|
65
78
|
def valid?
|
79
|
+
return false if !@quickbooks_code.nil? && @quickbooks_code.to_s.length > 20
|
66
80
|
true
|
67
81
|
end
|
68
82
|
|
83
|
+
# Custom attribute writer method with validation
|
84
|
+
# @param [Object] quickbooks_code Value to be assigned
|
85
|
+
def quickbooks_code=(quickbooks_code)
|
86
|
+
if !quickbooks_code.nil? && quickbooks_code.to_s.length > 20
|
87
|
+
fail ArgumentError, 'invalid value for "quickbooks_code", the character length must be smaller than or equal to 20.'
|
88
|
+
end
|
89
|
+
|
90
|
+
@quickbooks_code = quickbooks_code
|
91
|
+
end
|
92
|
+
|
69
93
|
# Checks equality by comparing each attribute.
|
70
94
|
# @param [Object] Object to be compared
|
71
95
|
def ==(o)
|
72
96
|
return true if self.equal?(o)
|
73
97
|
self.class == o.class &&
|
74
98
|
discount_percent == o.discount_percent &&
|
75
|
-
item_quantity == o.item_quantity
|
99
|
+
item_quantity == o.item_quantity &&
|
100
|
+
quickbooks_code == o.quickbooks_code
|
76
101
|
end
|
77
102
|
|
78
103
|
# @see the `==` method
|
@@ -84,7 +109,7 @@ module UltracartClient
|
|
84
109
|
# Calculates hash code according to all attributes.
|
85
110
|
# @return [Fixnum] Hash code
|
86
111
|
def hash
|
87
|
-
[discount_percent, item_quantity].hash
|
112
|
+
[discount_percent, item_quantity, quickbooks_code].hash
|
88
113
|
end
|
89
114
|
|
90
115
|
# Builds the object from hash
|
@@ -14,6 +14,9 @@ require 'date'
|
|
14
14
|
|
15
15
|
module UltracartClient
|
16
16
|
class CouponTieredPercentOffShipping
|
17
|
+
# Quickbooks accounting code.
|
18
|
+
attr_accessor :quickbooks_code
|
19
|
+
|
17
20
|
# One or more shipping methods that may receive this discount
|
18
21
|
attr_accessor :shipping_methods
|
19
22
|
|
@@ -23,6 +26,7 @@ module UltracartClient
|
|
23
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
24
27
|
def self.attribute_map
|
25
28
|
{
|
29
|
+
:'quickbooks_code' => :'quickbooks_code',
|
26
30
|
:'shipping_methods' => :'shipping_methods',
|
27
31
|
:'tiers' => :'tiers'
|
28
32
|
}
|
@@ -31,6 +35,7 @@ module UltracartClient
|
|
31
35
|
# Attribute type mapping.
|
32
36
|
def self.swagger_types
|
33
37
|
{
|
38
|
+
:'quickbooks_code' => :'String',
|
34
39
|
:'shipping_methods' => :'Array<String>',
|
35
40
|
:'tiers' => :'Array<CouponTierPercent>'
|
36
41
|
}
|
@@ -44,6 +49,10 @@ module UltracartClient
|
|
44
49
|
# convert string to symbol for hash key
|
45
50
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
46
51
|
|
52
|
+
if attributes.has_key?(:'quickbooks_code')
|
53
|
+
self.quickbooks_code = attributes[:'quickbooks_code']
|
54
|
+
end
|
55
|
+
|
47
56
|
if attributes.has_key?(:'shipping_methods')
|
48
57
|
if (value = attributes[:'shipping_methods']).is_a?(Array)
|
49
58
|
self.shipping_methods = value
|
@@ -61,20 +70,36 @@ module UltracartClient
|
|
61
70
|
# @return Array for valid properties with the reasons
|
62
71
|
def list_invalid_properties
|
63
72
|
invalid_properties = Array.new
|
73
|
+
if !@quickbooks_code.nil? && @quickbooks_code.to_s.length > 20
|
74
|
+
invalid_properties.push('invalid value for "quickbooks_code", the character length must be smaller than or equal to 20.')
|
75
|
+
end
|
76
|
+
|
64
77
|
invalid_properties
|
65
78
|
end
|
66
79
|
|
67
80
|
# Check to see if the all the properties in the model are valid
|
68
81
|
# @return true if the model is valid
|
69
82
|
def valid?
|
83
|
+
return false if !@quickbooks_code.nil? && @quickbooks_code.to_s.length > 20
|
70
84
|
true
|
71
85
|
end
|
72
86
|
|
87
|
+
# Custom attribute writer method with validation
|
88
|
+
# @param [Object] quickbooks_code Value to be assigned
|
89
|
+
def quickbooks_code=(quickbooks_code)
|
90
|
+
if !quickbooks_code.nil? && quickbooks_code.to_s.length > 20
|
91
|
+
fail ArgumentError, 'invalid value for "quickbooks_code", the character length must be smaller than or equal to 20.'
|
92
|
+
end
|
93
|
+
|
94
|
+
@quickbooks_code = quickbooks_code
|
95
|
+
end
|
96
|
+
|
73
97
|
# Checks equality by comparing each attribute.
|
74
98
|
# @param [Object] Object to be compared
|
75
99
|
def ==(o)
|
76
100
|
return true if self.equal?(o)
|
77
101
|
self.class == o.class &&
|
102
|
+
quickbooks_code == o.quickbooks_code &&
|
78
103
|
shipping_methods == o.shipping_methods &&
|
79
104
|
tiers == o.tiers
|
80
105
|
end
|
@@ -88,7 +113,7 @@ module UltracartClient
|
|
88
113
|
# Calculates hash code according to all attributes.
|
89
114
|
# @return [Fixnum] Hash code
|
90
115
|
def hash
|
91
|
-
[shipping_methods, tiers].hash
|
116
|
+
[quickbooks_code, shipping_methods, tiers].hash
|
92
117
|
end
|
93
118
|
|
94
119
|
# Builds the object from hash
|
@@ -20,6 +20,9 @@ module UltracartClient
|
|
20
20
|
# Number of milliseconds to process the notification
|
21
21
|
attr_accessor :duration
|
22
22
|
|
23
|
+
# Number of milliseconds of delay caused by queuing
|
24
|
+
attr_accessor :queue_delay
|
25
|
+
|
23
26
|
# Request payload (first 100,000 characters)
|
24
27
|
attr_accessor :request
|
25
28
|
|
@@ -49,6 +52,7 @@ module UltracartClient
|
|
49
52
|
{
|
50
53
|
:'delivery_dts' => :'delivery_dts',
|
51
54
|
:'duration' => :'duration',
|
55
|
+
:'queue_delay' => :'queue_delay',
|
52
56
|
:'request' => :'request',
|
53
57
|
:'request_headers' => :'request_headers',
|
54
58
|
:'request_id' => :'request_id',
|
@@ -65,6 +69,7 @@ module UltracartClient
|
|
65
69
|
{
|
66
70
|
:'delivery_dts' => :'String',
|
67
71
|
:'duration' => :'Integer',
|
72
|
+
:'queue_delay' => :'Integer',
|
68
73
|
:'request' => :'String',
|
69
74
|
:'request_headers' => :'Array<HTTPHeader>',
|
70
75
|
:'request_id' => :'String',
|
@@ -92,6 +97,10 @@ module UltracartClient
|
|
92
97
|
self.duration = attributes[:'duration']
|
93
98
|
end
|
94
99
|
|
100
|
+
if attributes.has_key?(:'queue_delay')
|
101
|
+
self.queue_delay = attributes[:'queue_delay']
|
102
|
+
end
|
103
|
+
|
95
104
|
if attributes.has_key?(:'request')
|
96
105
|
self.request = attributes[:'request']
|
97
106
|
end
|
@@ -149,6 +158,7 @@ module UltracartClient
|
|
149
158
|
self.class == o.class &&
|
150
159
|
delivery_dts == o.delivery_dts &&
|
151
160
|
duration == o.duration &&
|
161
|
+
queue_delay == o.queue_delay &&
|
152
162
|
request == o.request &&
|
153
163
|
request_headers == o.request_headers &&
|
154
164
|
request_id == o.request_id &&
|
@@ -168,7 +178,7 @@ module UltracartClient
|
|
168
178
|
# Calculates hash code according to all attributes.
|
169
179
|
# @return [Fixnum] Hash code
|
170
180
|
def hash
|
171
|
-
[delivery_dts, duration, request, request_headers, request_id, response, response_headers, status_code, success, uri].hash
|
181
|
+
[delivery_dts, duration, queue_delay, request, request_headers, request_id, response, response_headers, status_code, success, uri].hash
|
172
182
|
end
|
173
183
|
|
174
184
|
# Builds the object from hash
|
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: 3.1.
|
4
|
+
version: 3.1.42
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- UltraCart
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-06-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|