ultracart_api 4.0.199 → 4.0.200

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7b51ea911782ad66e3b9d4a9fc0d38c278b10e27db20d89a45bb260657bb216a
4
- data.tar.gz: c05574295f8e9f6714ca3ec17d871fbe7a566fb736683c1d0cb270510c94ba5a
3
+ metadata.gz: e7d9d5945f50c36b3ebec036356c903284a199af3c42572c671ee37d7f6d3b40
4
+ data.tar.gz: 965cdb1b7253207045e15fcccf8dd8567b3a61bf982ef2b23a22540643bb64a5
5
5
  SHA512:
6
- metadata.gz: 2dfcda5a1f76e8fe12554771f3e21744085478b222d0b4602f78957ce2f0e44af70acc7ba27c237050ca44ec9795bc3c4805ad470bb23aa9eb68d5353250affe
7
- data.tar.gz: 3eef8147055652bcf8e125ad94be1cdf67c2ebbfc682ef72b5e96d5b3d1912635862c9dddb936df71f0a11e6ea1d9fbf08aa22e385ebf331e4e9f36af3054318
6
+ metadata.gz: 0e495fa5e5a3cb4f862739b49d26e1fee876dc0661e1fb8f7da6fe86afc6f6fd36b45959ec4d48e554aecc3cb3eeddec05835fd5b388aa87fbad1073e4fd9900
7
+ data.tar.gz: 13dcadddc06dbc121c706edf58a6dfecf8583a37216b91416f7d18c1f820558044707fb599621d6130305b272bd4f9d8648033ae71c62fc895176736fdb07c7d
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.199
10
+ - Package version: 4.0.200
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.199.gem
27
+ gem install ./ultracart_api-4.0.200.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./ultracart_api-4.0.199.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./ultracart_api-4.0.200.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.199'
36
+ gem 'ultracart_api', '~> 4.0.200'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -1406,6 +1406,7 @@ Not every change is committed to every SDK.
1406
1406
 
1407
1407
  | Version | Date | Comments |
1408
1408
  | --: | :-: | --- |
1409
+ | 4.0.200 | 02/20/2024 | Add tag support to CouponAmountOffItems, CouponBuyOneGetOneLimit, CouponDiscountItemWithItemPurchase, CouponFreeItemWithItemPurchase, CouponPercentOffItemsWithItemsPurchase |
1409
1410
  | 4.0.199 | 01/16/2024 | order query - support searching by custom fields 8 through 10 |
1410
1411
  | 4.0.198 | 01/12/2024 | workflow task - add properties array |
1411
1412
  | 4.0.197 | 01/10/2024 | workflow tasks - support for searching by tags |
@@ -8,6 +8,10 @@
8
8
  | **conversation_participant_name** | **String** | | [optional] |
9
9
  | **jwt** | **String** | | [optional] |
10
10
  | **merchant_id** | **String** | | [optional] |
11
+ | **pbx_jwt** | **String** | | [optional] |
12
+ | **pbx_voice_identity** | **String** | | [optional] |
13
+ | **pbx_voice_token** | **String** | | [optional] |
14
+ | **pbx_worker_token** | **String** | | [optional] |
11
15
  | **twilio_accounts** | [**Array<ConversationTwilioAccount>**](ConversationTwilioAccount.md) | | [optional] |
12
16
  | **websocket_url** | **String** | | [optional] |
13
17
 
@@ -21,6 +25,10 @@ instance = UltracartClient::ConversationAgentAuth.new(
21
25
  conversation_participant_name: null,
22
26
  jwt: null,
23
27
  merchant_id: null,
28
+ pbx_jwt: null,
29
+ pbx_voice_identity: null,
30
+ pbx_voice_token: null,
31
+ pbx_worker_token: null,
24
32
  twilio_accounts: null,
25
33
  websocket_url: null
26
34
  )
@@ -6,6 +6,7 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **currency_code** | **String** | The ISO-4217 three letter currency code the customer is viewing prices in | [optional] |
8
8
  | **discount_amount** | **Float** | The amount of shipping discount | [optional] |
9
+ | **item_tags** | **Array<String>** | An optional list of item tags which will receive a discount. | [optional] |
9
10
  | **items** | **Array<String>** | A list of items which are eligible for the discount amount. | [optional] |
10
11
  | **limit** | **Integer** | The limit of items which are eligible for the discount amount. | [optional] |
11
12
 
@@ -17,6 +18,7 @@ require 'ultracart_api'
17
18
  instance = UltracartClient::CouponAmountOffItems.new(
18
19
  currency_code: null,
19
20
  discount_amount: null,
21
+ item_tags: null,
20
22
  items: null,
21
23
  limit: null
22
24
  )
@@ -4,6 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
+ | **item_tags** | **Array<String>** | An optional list of item tags which will receive a discount. | [optional] |
7
8
  | **items** | **Array<String>** | An optional list of items of which one must be purchased to receive free quantity of the same item. | [optional] |
8
9
  | **limit** | **Integer** | The limit of free items that may be received when purchasing multiple items | [optional] |
9
10
 
@@ -13,6 +14,7 @@
13
14
  require 'ultracart_api'
14
15
 
15
16
  instance = UltracartClient::CouponBuyOneGetOneLimit.new(
17
+ item_tags: null,
16
18
  items: null,
17
19
  limit: null
18
20
  )
@@ -6,9 +6,11 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **currency_code** | **String** | The ISO-4217 three letter currency code the customer is viewing prices in | [optional] |
8
8
  | **discount_item** | **String** | The item that will be sold at the discount_price when required_purchase_item is purchased. | [optional] |
9
+ | **discount_item_tags** | **Array<String>** | An optional list of item tags which will receive a discount of one of the required purchased items is purchased. | [optional] |
9
10
  | **discount_price** | **Float** | The price (unit cost) of the discounted item | [optional] |
10
11
  | **limit** | **Integer** | The (optional) maximum quantity of discounted items. | [optional] |
11
12
  | **required_purchase_item** | **String** | The item that must be purchased for the discount to be applied to the discount item. | [optional] |
13
+ | **required_purchase_items_tags** | **Array<String>** | An optional list of item tags which are required to be purchased. | [optional] |
12
14
 
13
15
  ## Example
14
16
 
@@ -18,9 +20,11 @@ require 'ultracart_api'
18
20
  instance = UltracartClient::CouponDiscountItemWithItemPurchase.new(
19
21
  currency_code: null,
20
22
  discount_item: null,
23
+ discount_item_tags: null,
21
24
  discount_price: null,
22
25
  limit: null,
23
- required_purchase_item: null
26
+ required_purchase_item: null,
27
+ required_purchase_items_tags: null
24
28
  )
25
29
  ```
26
30
 
@@ -4,10 +4,12 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
+ | **item_tags** | **Array<String>** | An optional list of item tags which will receive a discount of one of the required purchased items is purchased. | [optional] |
7
8
  | **items** | **Array<String>** | A list of free items which will receive a discount if one of the required purchase items is purchased. | [optional] |
8
9
  | **limit** | **Integer** | The (optional) maximum quantity of discounted items. | [optional] |
9
10
  | **match_required_purchase_item_to_free_item** | **Boolean** | If true then the free item is matched 1:1 with the free item in the list. | [optional] |
10
11
  | **required_purchase_items** | **Array<String>** | Required items (at least one from the list) that must be purchased for coupon to be valid | [optional] |
12
+ | **required_purchase_items_tags** | **Array<String>** | An optional list of item tags which are required to be purchased. | [optional] |
11
13
 
12
14
  ## Example
13
15
 
@@ -15,10 +17,12 @@
15
17
  require 'ultracart_api'
16
18
 
17
19
  instance = UltracartClient::CouponFreeItemWithItemPurchase.new(
20
+ item_tags: null,
18
21
  items: null,
19
22
  limit: null,
20
23
  match_required_purchase_item_to_free_item: null,
21
- required_purchase_items: null
24
+ required_purchase_items: null,
25
+ required_purchase_items_tags: null
22
26
  )
23
27
  ```
24
28
 
@@ -5,9 +5,11 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **discount_percent** | **Float** | The percentage of subtotal discount | [optional] |
8
+ | **item_tags** | **Array<String>** | An optional list of item tags which will receive a discount of one of the required purchased items is purchased. | [optional] |
8
9
  | **items** | **Array<String>** | A list of items which will receive a discount if one of the required purchase items is purchased. | [optional] |
9
10
  | **limit** | **Integer** | The (optional) maximum quantity of discounted items. | [optional] |
10
11
  | **required_purchase_items** | **Array<String>** | Required items (at least one from the list) that must be purchased for coupon to be valid | [optional] |
12
+ | **required_purchase_items_tags** | **Array<String>** | An optional list of item tags which are required to be purchased. | [optional] |
11
13
 
12
14
  ## Example
13
15
 
@@ -16,9 +18,11 @@ require 'ultracart_api'
16
18
 
17
19
  instance = UltracartClient::CouponPercentOffItemsWithItemsPurchase.new(
18
20
  discount_percent: null,
21
+ item_tags: null,
19
22
  items: null,
20
23
  limit: null,
21
- required_purchase_items: null
24
+ required_purchase_items: null,
25
+ required_purchase_items_tags: null
22
26
  )
23
27
  ```
24
28
 
data/docs/Twilio.md CHANGED
@@ -5,9 +5,18 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **account_sid** | **String** | | [optional] |
8
+ | **api_key_id** | **String** | | [optional] |
9
+ | **api_key_name** | **String** | | [optional] |
10
+ | **api_key_secret** | **String** | | [optional] |
8
11
  | **auth_token** | **String** | | [optional] |
9
12
  | **esp_twilio_uuid** | **String** | | [optional] |
13
+ | **inbound_twiml_app_sid** | **String** | | [optional] |
14
+ | **outbound_twiml_app_sid** | **String** | | [optional] |
10
15
  | **phone_numbers** | **Array<String>** | | [optional] |
16
+ | **private_key_pem** | **String** | | [optional] |
17
+ | **public_key_pem** | **String** | | [optional] |
18
+ | **public_key_sid** | **String** | | [optional] |
19
+ | **twilio_workspace_sid** | **String** | | [optional] |
11
20
 
12
21
  ## Example
13
22
 
@@ -16,9 +25,18 @@ require 'ultracart_api'
16
25
 
17
26
  instance = UltracartClient::Twilio.new(
18
27
  account_sid: null,
28
+ api_key_id: null,
29
+ api_key_name: null,
30
+ api_key_secret: null,
19
31
  auth_token: null,
20
32
  esp_twilio_uuid: null,
21
- phone_numbers: null
33
+ inbound_twiml_app_sid: null,
34
+ outbound_twiml_app_sid: null,
35
+ phone_numbers: null,
36
+ private_key_pem: null,
37
+ public_key_pem: null,
38
+ public_key_sid: null,
39
+ twilio_workspace_sid: null
22
40
  )
23
41
  ```
24
42
 
@@ -23,6 +23,14 @@ module UltracartClient
23
23
 
24
24
  attr_accessor :merchant_id
25
25
 
26
+ attr_accessor :pbx_jwt
27
+
28
+ attr_accessor :pbx_voice_identity
29
+
30
+ attr_accessor :pbx_voice_token
31
+
32
+ attr_accessor :pbx_worker_token
33
+
26
34
  attr_accessor :twilio_accounts
27
35
 
28
36
  attr_accessor :websocket_url
@@ -34,6 +42,10 @@ module UltracartClient
34
42
  :'conversation_participant_name' => :'conversation_participant_name',
35
43
  :'jwt' => :'jwt',
36
44
  :'merchant_id' => :'merchant_id',
45
+ :'pbx_jwt' => :'pbx_jwt',
46
+ :'pbx_voice_identity' => :'pbx_voice_identity',
47
+ :'pbx_voice_token' => :'pbx_voice_token',
48
+ :'pbx_worker_token' => :'pbx_worker_token',
37
49
  :'twilio_accounts' => :'twilio_accounts',
38
50
  :'websocket_url' => :'websocket_url'
39
51
  }
@@ -51,6 +63,10 @@ module UltracartClient
51
63
  :'conversation_participant_name' => :'String',
52
64
  :'jwt' => :'String',
53
65
  :'merchant_id' => :'String',
66
+ :'pbx_jwt' => :'String',
67
+ :'pbx_voice_identity' => :'String',
68
+ :'pbx_voice_token' => :'String',
69
+ :'pbx_worker_token' => :'String',
54
70
  :'twilio_accounts' => :'Array<ConversationTwilioAccount>',
55
71
  :'websocket_url' => :'String'
56
72
  }
@@ -93,6 +109,22 @@ module UltracartClient
93
109
  self.merchant_id = attributes[:'merchant_id']
94
110
  end
95
111
 
112
+ if attributes.key?(:'pbx_jwt')
113
+ self.pbx_jwt = attributes[:'pbx_jwt']
114
+ end
115
+
116
+ if attributes.key?(:'pbx_voice_identity')
117
+ self.pbx_voice_identity = attributes[:'pbx_voice_identity']
118
+ end
119
+
120
+ if attributes.key?(:'pbx_voice_token')
121
+ self.pbx_voice_token = attributes[:'pbx_voice_token']
122
+ end
123
+
124
+ if attributes.key?(:'pbx_worker_token')
125
+ self.pbx_worker_token = attributes[:'pbx_worker_token']
126
+ end
127
+
96
128
  if attributes.key?(:'twilio_accounts')
97
129
  if (value = attributes[:'twilio_accounts']).is_a?(Array)
98
130
  self.twilio_accounts = value
@@ -126,6 +158,10 @@ module UltracartClient
126
158
  conversation_participant_name == o.conversation_participant_name &&
127
159
  jwt == o.jwt &&
128
160
  merchant_id == o.merchant_id &&
161
+ pbx_jwt == o.pbx_jwt &&
162
+ pbx_voice_identity == o.pbx_voice_identity &&
163
+ pbx_voice_token == o.pbx_voice_token &&
164
+ pbx_worker_token == o.pbx_worker_token &&
129
165
  twilio_accounts == o.twilio_accounts &&
130
166
  websocket_url == o.websocket_url
131
167
  end
@@ -139,7 +175,7 @@ module UltracartClient
139
175
  # Calculates hash code according to all attributes.
140
176
  # @return [Integer] Hash code
141
177
  def hash
142
- [conversation_participant_arn, conversation_participant_name, jwt, merchant_id, twilio_accounts, websocket_url].hash
178
+ [conversation_participant_arn, conversation_participant_name, jwt, merchant_id, pbx_jwt, pbx_voice_identity, pbx_voice_token, pbx_worker_token, twilio_accounts, websocket_url].hash
143
179
  end
144
180
 
145
181
  # Builds the object from hash
@@ -21,6 +21,9 @@ module UltracartClient
21
21
  # The amount of shipping discount
22
22
  attr_accessor :discount_amount
23
23
 
24
+ # An optional list of item tags which will receive a discount.
25
+ attr_accessor :item_tags
26
+
24
27
  # A list of items which are eligible for the discount amount.
25
28
  attr_accessor :items
26
29
 
@@ -32,6 +35,7 @@ module UltracartClient
32
35
  {
33
36
  :'currency_code' => :'currency_code',
34
37
  :'discount_amount' => :'discount_amount',
38
+ :'item_tags' => :'item_tags',
35
39
  :'items' => :'items',
36
40
  :'limit' => :'limit'
37
41
  }
@@ -47,6 +51,7 @@ module UltracartClient
47
51
  {
48
52
  :'currency_code' => :'String',
49
53
  :'discount_amount' => :'Float',
54
+ :'item_tags' => :'Array<String>',
50
55
  :'items' => :'Array<String>',
51
56
  :'limit' => :'Integer'
52
57
  }
@@ -81,6 +86,12 @@ module UltracartClient
81
86
  self.discount_amount = attributes[:'discount_amount']
82
87
  end
83
88
 
89
+ if attributes.key?(:'item_tags')
90
+ if (value = attributes[:'item_tags']).is_a?(Array)
91
+ self.item_tags = value
92
+ end
93
+ end
94
+
84
95
  if attributes.key?(:'items')
85
96
  if (value = attributes[:'items']).is_a?(Array)
86
97
  self.items = value
@@ -127,6 +138,7 @@ module UltracartClient
127
138
  self.class == o.class &&
128
139
  currency_code == o.currency_code &&
129
140
  discount_amount == o.discount_amount &&
141
+ item_tags == o.item_tags &&
130
142
  items == o.items &&
131
143
  limit == o.limit
132
144
  end
@@ -140,7 +152,7 @@ module UltracartClient
140
152
  # Calculates hash code according to all attributes.
141
153
  # @return [Integer] Hash code
142
154
  def hash
143
- [currency_code, discount_amount, items, limit].hash
155
+ [currency_code, discount_amount, item_tags, items, limit].hash
144
156
  end
145
157
 
146
158
  # Builds the object from hash
@@ -15,6 +15,9 @@ require 'time'
15
15
 
16
16
  module UltracartClient
17
17
  class CouponBuyOneGetOneLimit
18
+ # An optional list of item tags which will receive a discount.
19
+ attr_accessor :item_tags
20
+
18
21
  # An optional list of items of which one must be purchased to receive free quantity of the same item.
19
22
  attr_accessor :items
20
23
 
@@ -24,6 +27,7 @@ module UltracartClient
24
27
  # Attribute mapping from ruby-style variable name to JSON key.
25
28
  def self.attribute_map
26
29
  {
30
+ :'item_tags' => :'item_tags',
27
31
  :'items' => :'items',
28
32
  :'limit' => :'limit'
29
33
  }
@@ -37,6 +41,7 @@ module UltracartClient
37
41
  # Attribute type mapping.
38
42
  def self.openapi_types
39
43
  {
44
+ :'item_tags' => :'Array<String>',
40
45
  :'items' => :'Array<String>',
41
46
  :'limit' => :'Integer'
42
47
  }
@@ -63,6 +68,12 @@ module UltracartClient
63
68
  h[k.to_sym] = v
64
69
  }
65
70
 
71
+ if attributes.key?(:'item_tags')
72
+ if (value = attributes[:'item_tags']).is_a?(Array)
73
+ self.item_tags = value
74
+ end
75
+ end
76
+
66
77
  if attributes.key?(:'items')
67
78
  if (value = attributes[:'items']).is_a?(Array)
68
79
  self.items = value
@@ -92,6 +103,7 @@ module UltracartClient
92
103
  def ==(o)
93
104
  return true if self.equal?(o)
94
105
  self.class == o.class &&
106
+ item_tags == o.item_tags &&
95
107
  items == o.items &&
96
108
  limit == o.limit
97
109
  end
@@ -105,7 +117,7 @@ module UltracartClient
105
117
  # Calculates hash code according to all attributes.
106
118
  # @return [Integer] Hash code
107
119
  def hash
108
- [items, limit].hash
120
+ [item_tags, items, limit].hash
109
121
  end
110
122
 
111
123
  # Builds the object from hash
@@ -21,6 +21,9 @@ module UltracartClient
21
21
  # The item that will be sold at the discount_price when required_purchase_item is purchased.
22
22
  attr_accessor :discount_item
23
23
 
24
+ # An optional list of item tags which will receive a discount of one of the required purchased items is purchased.
25
+ attr_accessor :discount_item_tags
26
+
24
27
  # The price (unit cost) of the discounted item
25
28
  attr_accessor :discount_price
26
29
 
@@ -30,14 +33,19 @@ module UltracartClient
30
33
  # The item that must be purchased for the discount to be applied to the discount item.
31
34
  attr_accessor :required_purchase_item
32
35
 
36
+ # An optional list of item tags which are required to be purchased.
37
+ attr_accessor :required_purchase_items_tags
38
+
33
39
  # Attribute mapping from ruby-style variable name to JSON key.
34
40
  def self.attribute_map
35
41
  {
36
42
  :'currency_code' => :'currency_code',
37
43
  :'discount_item' => :'discount_item',
44
+ :'discount_item_tags' => :'discount_item_tags',
38
45
  :'discount_price' => :'discount_price',
39
46
  :'limit' => :'limit',
40
- :'required_purchase_item' => :'required_purchase_item'
47
+ :'required_purchase_item' => :'required_purchase_item',
48
+ :'required_purchase_items_tags' => :'required_purchase_items_tags'
41
49
  }
42
50
  end
43
51
 
@@ -51,9 +59,11 @@ module UltracartClient
51
59
  {
52
60
  :'currency_code' => :'String',
53
61
  :'discount_item' => :'String',
62
+ :'discount_item_tags' => :'Array<String>',
54
63
  :'discount_price' => :'Float',
55
64
  :'limit' => :'Integer',
56
- :'required_purchase_item' => :'String'
65
+ :'required_purchase_item' => :'String',
66
+ :'required_purchase_items_tags' => :'Array<String>'
57
67
  }
58
68
  end
59
69
 
@@ -86,6 +96,12 @@ module UltracartClient
86
96
  self.discount_item = attributes[:'discount_item']
87
97
  end
88
98
 
99
+ if attributes.key?(:'discount_item_tags')
100
+ if (value = attributes[:'discount_item_tags']).is_a?(Array)
101
+ self.discount_item_tags = value
102
+ end
103
+ end
104
+
89
105
  if attributes.key?(:'discount_price')
90
106
  self.discount_price = attributes[:'discount_price']
91
107
  end
@@ -97,6 +113,12 @@ module UltracartClient
97
113
  if attributes.key?(:'required_purchase_item')
98
114
  self.required_purchase_item = attributes[:'required_purchase_item']
99
115
  end
116
+
117
+ if attributes.key?(:'required_purchase_items_tags')
118
+ if (value = attributes[:'required_purchase_items_tags']).is_a?(Array)
119
+ self.required_purchase_items_tags = value
120
+ end
121
+ end
100
122
  end
101
123
 
102
124
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -134,9 +156,11 @@ module UltracartClient
134
156
  self.class == o.class &&
135
157
  currency_code == o.currency_code &&
136
158
  discount_item == o.discount_item &&
159
+ discount_item_tags == o.discount_item_tags &&
137
160
  discount_price == o.discount_price &&
138
161
  limit == o.limit &&
139
- required_purchase_item == o.required_purchase_item
162
+ required_purchase_item == o.required_purchase_item &&
163
+ required_purchase_items_tags == o.required_purchase_items_tags
140
164
  end
141
165
 
142
166
  # @see the `==` method
@@ -148,7 +172,7 @@ module UltracartClient
148
172
  # Calculates hash code according to all attributes.
149
173
  # @return [Integer] Hash code
150
174
  def hash
151
- [currency_code, discount_item, discount_price, limit, required_purchase_item].hash
175
+ [currency_code, discount_item, discount_item_tags, discount_price, limit, required_purchase_item, required_purchase_items_tags].hash
152
176
  end
153
177
 
154
178
  # Builds the object from hash
@@ -15,6 +15,9 @@ require 'time'
15
15
 
16
16
  module UltracartClient
17
17
  class CouponFreeItemWithItemPurchase
18
+ # An optional list of item tags which will receive a discount of one of the required purchased items is purchased.
19
+ attr_accessor :item_tags
20
+
18
21
  # A list of free items which will receive a discount if one of the required purchase items is purchased.
19
22
  attr_accessor :items
20
23
 
@@ -27,13 +30,18 @@ module UltracartClient
27
30
  # Required items (at least one from the list) that must be purchased for coupon to be valid
28
31
  attr_accessor :required_purchase_items
29
32
 
33
+ # An optional list of item tags which are required to be purchased.
34
+ attr_accessor :required_purchase_items_tags
35
+
30
36
  # Attribute mapping from ruby-style variable name to JSON key.
31
37
  def self.attribute_map
32
38
  {
39
+ :'item_tags' => :'item_tags',
33
40
  :'items' => :'items',
34
41
  :'limit' => :'limit',
35
42
  :'match_required_purchase_item_to_free_item' => :'match_required_purchase_item_to_free_item',
36
- :'required_purchase_items' => :'required_purchase_items'
43
+ :'required_purchase_items' => :'required_purchase_items',
44
+ :'required_purchase_items_tags' => :'required_purchase_items_tags'
37
45
  }
38
46
  end
39
47
 
@@ -45,10 +53,12 @@ module UltracartClient
45
53
  # Attribute type mapping.
46
54
  def self.openapi_types
47
55
  {
56
+ :'item_tags' => :'Array<String>',
48
57
  :'items' => :'Array<String>',
49
58
  :'limit' => :'Integer',
50
59
  :'match_required_purchase_item_to_free_item' => :'Boolean',
51
- :'required_purchase_items' => :'Array<String>'
60
+ :'required_purchase_items' => :'Array<String>',
61
+ :'required_purchase_items_tags' => :'Array<String>'
52
62
  }
53
63
  end
54
64
 
@@ -73,6 +83,12 @@ module UltracartClient
73
83
  h[k.to_sym] = v
74
84
  }
75
85
 
86
+ if attributes.key?(:'item_tags')
87
+ if (value = attributes[:'item_tags']).is_a?(Array)
88
+ self.item_tags = value
89
+ end
90
+ end
91
+
76
92
  if attributes.key?(:'items')
77
93
  if (value = attributes[:'items']).is_a?(Array)
78
94
  self.items = value
@@ -92,6 +108,12 @@ module UltracartClient
92
108
  self.required_purchase_items = value
93
109
  end
94
110
  end
111
+
112
+ if attributes.key?(:'required_purchase_items_tags')
113
+ if (value = attributes[:'required_purchase_items_tags']).is_a?(Array)
114
+ self.required_purchase_items_tags = value
115
+ end
116
+ end
95
117
  end
96
118
 
97
119
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -112,10 +134,12 @@ module UltracartClient
112
134
  def ==(o)
113
135
  return true if self.equal?(o)
114
136
  self.class == o.class &&
137
+ item_tags == o.item_tags &&
115
138
  items == o.items &&
116
139
  limit == o.limit &&
117
140
  match_required_purchase_item_to_free_item == o.match_required_purchase_item_to_free_item &&
118
- required_purchase_items == o.required_purchase_items
141
+ required_purchase_items == o.required_purchase_items &&
142
+ required_purchase_items_tags == o.required_purchase_items_tags
119
143
  end
120
144
 
121
145
  # @see the `==` method
@@ -127,7 +151,7 @@ module UltracartClient
127
151
  # Calculates hash code according to all attributes.
128
152
  # @return [Integer] Hash code
129
153
  def hash
130
- [items, limit, match_required_purchase_item_to_free_item, required_purchase_items].hash
154
+ [item_tags, items, limit, match_required_purchase_item_to_free_item, required_purchase_items, required_purchase_items_tags].hash
131
155
  end
132
156
 
133
157
  # Builds the object from hash
@@ -18,6 +18,9 @@ module UltracartClient
18
18
  # The percentage of subtotal discount
19
19
  attr_accessor :discount_percent
20
20
 
21
+ # An optional list of item tags which will receive a discount of one of the required purchased items is purchased.
22
+ attr_accessor :item_tags
23
+
21
24
  # A list of items which will receive a discount if one of the required purchase items is purchased.
22
25
  attr_accessor :items
23
26
 
@@ -27,13 +30,18 @@ module UltracartClient
27
30
  # Required items (at least one from the list) that must be purchased for coupon to be valid
28
31
  attr_accessor :required_purchase_items
29
32
 
33
+ # An optional list of item tags which are required to be purchased.
34
+ attr_accessor :required_purchase_items_tags
35
+
30
36
  # Attribute mapping from ruby-style variable name to JSON key.
31
37
  def self.attribute_map
32
38
  {
33
39
  :'discount_percent' => :'discount_percent',
40
+ :'item_tags' => :'item_tags',
34
41
  :'items' => :'items',
35
42
  :'limit' => :'limit',
36
- :'required_purchase_items' => :'required_purchase_items'
43
+ :'required_purchase_items' => :'required_purchase_items',
44
+ :'required_purchase_items_tags' => :'required_purchase_items_tags'
37
45
  }
38
46
  end
39
47
 
@@ -46,9 +54,11 @@ module UltracartClient
46
54
  def self.openapi_types
47
55
  {
48
56
  :'discount_percent' => :'Float',
57
+ :'item_tags' => :'Array<String>',
49
58
  :'items' => :'Array<String>',
50
59
  :'limit' => :'Integer',
51
- :'required_purchase_items' => :'Array<String>'
60
+ :'required_purchase_items' => :'Array<String>',
61
+ :'required_purchase_items_tags' => :'Array<String>'
52
62
  }
53
63
  end
54
64
 
@@ -77,6 +87,12 @@ module UltracartClient
77
87
  self.discount_percent = attributes[:'discount_percent']
78
88
  end
79
89
 
90
+ if attributes.key?(:'item_tags')
91
+ if (value = attributes[:'item_tags']).is_a?(Array)
92
+ self.item_tags = value
93
+ end
94
+ end
95
+
80
96
  if attributes.key?(:'items')
81
97
  if (value = attributes[:'items']).is_a?(Array)
82
98
  self.items = value
@@ -92,6 +108,12 @@ module UltracartClient
92
108
  self.required_purchase_items = value
93
109
  end
94
110
  end
111
+
112
+ if attributes.key?(:'required_purchase_items_tags')
113
+ if (value = attributes[:'required_purchase_items_tags']).is_a?(Array)
114
+ self.required_purchase_items_tags = value
115
+ end
116
+ end
95
117
  end
96
118
 
97
119
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -113,9 +135,11 @@ module UltracartClient
113
135
  return true if self.equal?(o)
114
136
  self.class == o.class &&
115
137
  discount_percent == o.discount_percent &&
138
+ item_tags == o.item_tags &&
116
139
  items == o.items &&
117
140
  limit == o.limit &&
118
- required_purchase_items == o.required_purchase_items
141
+ required_purchase_items == o.required_purchase_items &&
142
+ required_purchase_items_tags == o.required_purchase_items_tags
119
143
  end
120
144
 
121
145
  # @see the `==` method
@@ -127,7 +151,7 @@ module UltracartClient
127
151
  # Calculates hash code according to all attributes.
128
152
  # @return [Integer] Hash code
129
153
  def hash
130
- [discount_percent, items, limit, required_purchase_items].hash
154
+ [discount_percent, item_tags, items, limit, required_purchase_items, required_purchase_items_tags].hash
131
155
  end
132
156
 
133
157
  # Builds the object from hash
@@ -17,19 +17,46 @@ module UltracartClient
17
17
  class Twilio
18
18
  attr_accessor :account_sid
19
19
 
20
+ attr_accessor :api_key_id
21
+
22
+ attr_accessor :api_key_name
23
+
24
+ attr_accessor :api_key_secret
25
+
20
26
  attr_accessor :auth_token
21
27
 
22
28
  attr_accessor :esp_twilio_uuid
23
29
 
30
+ attr_accessor :inbound_twiml_app_sid
31
+
32
+ attr_accessor :outbound_twiml_app_sid
33
+
24
34
  attr_accessor :phone_numbers
25
35
 
36
+ attr_accessor :private_key_pem
37
+
38
+ attr_accessor :public_key_pem
39
+
40
+ attr_accessor :public_key_sid
41
+
42
+ attr_accessor :twilio_workspace_sid
43
+
26
44
  # Attribute mapping from ruby-style variable name to JSON key.
27
45
  def self.attribute_map
28
46
  {
29
47
  :'account_sid' => :'account_sid',
48
+ :'api_key_id' => :'api_key_id',
49
+ :'api_key_name' => :'api_key_name',
50
+ :'api_key_secret' => :'api_key_secret',
30
51
  :'auth_token' => :'auth_token',
31
52
  :'esp_twilio_uuid' => :'esp_twilio_uuid',
32
- :'phone_numbers' => :'phone_numbers'
53
+ :'inbound_twiml_app_sid' => :'inbound_twiml_app_sid',
54
+ :'outbound_twiml_app_sid' => :'outbound_twiml_app_sid',
55
+ :'phone_numbers' => :'phone_numbers',
56
+ :'private_key_pem' => :'private_key_pem',
57
+ :'public_key_pem' => :'public_key_pem',
58
+ :'public_key_sid' => :'public_key_sid',
59
+ :'twilio_workspace_sid' => :'twilio_workspace_sid'
33
60
  }
34
61
  end
35
62
 
@@ -42,9 +69,18 @@ module UltracartClient
42
69
  def self.openapi_types
43
70
  {
44
71
  :'account_sid' => :'String',
72
+ :'api_key_id' => :'String',
73
+ :'api_key_name' => :'String',
74
+ :'api_key_secret' => :'String',
45
75
  :'auth_token' => :'String',
46
76
  :'esp_twilio_uuid' => :'String',
47
- :'phone_numbers' => :'Array<String>'
77
+ :'inbound_twiml_app_sid' => :'String',
78
+ :'outbound_twiml_app_sid' => :'String',
79
+ :'phone_numbers' => :'Array<String>',
80
+ :'private_key_pem' => :'String',
81
+ :'public_key_pem' => :'String',
82
+ :'public_key_sid' => :'String',
83
+ :'twilio_workspace_sid' => :'String'
48
84
  }
49
85
  end
50
86
 
@@ -73,6 +109,18 @@ module UltracartClient
73
109
  self.account_sid = attributes[:'account_sid']
74
110
  end
75
111
 
112
+ if attributes.key?(:'api_key_id')
113
+ self.api_key_id = attributes[:'api_key_id']
114
+ end
115
+
116
+ if attributes.key?(:'api_key_name')
117
+ self.api_key_name = attributes[:'api_key_name']
118
+ end
119
+
120
+ if attributes.key?(:'api_key_secret')
121
+ self.api_key_secret = attributes[:'api_key_secret']
122
+ end
123
+
76
124
  if attributes.key?(:'auth_token')
77
125
  self.auth_token = attributes[:'auth_token']
78
126
  end
@@ -81,11 +129,35 @@ module UltracartClient
81
129
  self.esp_twilio_uuid = attributes[:'esp_twilio_uuid']
82
130
  end
83
131
 
132
+ if attributes.key?(:'inbound_twiml_app_sid')
133
+ self.inbound_twiml_app_sid = attributes[:'inbound_twiml_app_sid']
134
+ end
135
+
136
+ if attributes.key?(:'outbound_twiml_app_sid')
137
+ self.outbound_twiml_app_sid = attributes[:'outbound_twiml_app_sid']
138
+ end
139
+
84
140
  if attributes.key?(:'phone_numbers')
85
141
  if (value = attributes[:'phone_numbers']).is_a?(Array)
86
142
  self.phone_numbers = value
87
143
  end
88
144
  end
145
+
146
+ if attributes.key?(:'private_key_pem')
147
+ self.private_key_pem = attributes[:'private_key_pem']
148
+ end
149
+
150
+ if attributes.key?(:'public_key_pem')
151
+ self.public_key_pem = attributes[:'public_key_pem']
152
+ end
153
+
154
+ if attributes.key?(:'public_key_sid')
155
+ self.public_key_sid = attributes[:'public_key_sid']
156
+ end
157
+
158
+ if attributes.key?(:'twilio_workspace_sid')
159
+ self.twilio_workspace_sid = attributes[:'twilio_workspace_sid']
160
+ end
89
161
  end
90
162
 
91
163
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -107,9 +179,18 @@ module UltracartClient
107
179
  return true if self.equal?(o)
108
180
  self.class == o.class &&
109
181
  account_sid == o.account_sid &&
182
+ api_key_id == o.api_key_id &&
183
+ api_key_name == o.api_key_name &&
184
+ api_key_secret == o.api_key_secret &&
110
185
  auth_token == o.auth_token &&
111
186
  esp_twilio_uuid == o.esp_twilio_uuid &&
112
- phone_numbers == o.phone_numbers
187
+ inbound_twiml_app_sid == o.inbound_twiml_app_sid &&
188
+ outbound_twiml_app_sid == o.outbound_twiml_app_sid &&
189
+ phone_numbers == o.phone_numbers &&
190
+ private_key_pem == o.private_key_pem &&
191
+ public_key_pem == o.public_key_pem &&
192
+ public_key_sid == o.public_key_sid &&
193
+ twilio_workspace_sid == o.twilio_workspace_sid
113
194
  end
114
195
 
115
196
  # @see the `==` method
@@ -121,7 +202,7 @@ module UltracartClient
121
202
  # Calculates hash code according to all attributes.
122
203
  # @return [Integer] Hash code
123
204
  def hash
124
- [account_sid, auth_token, esp_twilio_uuid, phone_numbers].hash
205
+ [account_sid, api_key_id, api_key_name, api_key_secret, auth_token, esp_twilio_uuid, inbound_twiml_app_sid, outbound_twiml_app_sid, phone_numbers, private_key_pem, public_key_pem, public_key_sid, twilio_workspace_sid].hash
125
206
  end
126
207
 
127
208
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 6.0.1-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module UltracartClient
14
- VERSION = '4.0.199'
14
+ VERSION = '4.0.200'
15
15
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ultracart_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.199
4
+ version: 4.0.200
5
5
  platform: ruby
6
6
  authors:
7
7
  - UltraCart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-16 00:00:00.000000000 Z
11
+ date: 2024-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus