ultracart_api 3.5.3 → 3.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5b6857c15baad34b698457d6431038f60544cfe4be78fd613e10bf74533d5c38
4
- data.tar.gz: f2958544eaba078ead5d189afa5ea71936764bc3331f33289bb95825abbe67c5
3
+ metadata.gz: aaa7a1b2bde05f09562e671fa2d7e7fec6b786162407c2738d6ee4a1a38b9628
4
+ data.tar.gz: d45b6adeeb52433c9cae1b741dc910acadfada6d41e5a86eb9f6fdc48051f9c4
5
5
  SHA512:
6
- metadata.gz: a5c6a9166172316b29477aad32025142222063b9adf8f3c99fc326b6322b99d4611fe3420fc99bc28dcc9d9f021e9c7ca31fa6a3417a6adc7bdc3e6da7a8ea62
7
- data.tar.gz: 03b9da4648e5ed9de2a9b5e50b1513cc6d6d2500f3295836c24d5de602e9b8d350c189ba274d3689289744640ae372f5eb43ae3dd32ab0a4d1d5ee04c332e7ce
6
+ metadata.gz: 48e75b409260fa0dbfcb56cbb035e21d81e3f29b8cdb1a14ca0a7495696eed453b6034fbdcdd1b63a73e61d183a15dc03c53dd3e0ea17b35d490754f29379434
7
+ data.tar.gz: a0bfbc7b51782e9a8247e9f30e2df7eef930403ba48c536c27618604308e3c8e621464b9799875d63f562600c9db3a57f745bee388145c5515815c63810ed760
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.5.3
10
+ - Package version: 3.6.0
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.5.3.gem
27
+ gem install ./ultracart_api-3.6.0.gem
28
28
  ```
29
- (for development, run `gem install --dev ./ultracart_api-3.5.3.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./ultracart_api-3.6.0.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.5.3'
35
+ gem 'ultracart_api', '~> 3.6.0'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -575,7 +575,7 @@ Class | Method | HTTP request | Description
575
575
  - [UltracartClient::CouponTierPercent](docs/CouponTierPercent.md)
576
576
  - [UltracartClient::CouponTierQuantityAmount](docs/CouponTierQuantityAmount.md)
577
577
  - [UltracartClient::CouponTierQuantityPercent](docs/CouponTierQuantityPercent.md)
578
- - [UltracartClient::CouponTieredAmountOffItem](docs/CouponTieredAmountOffItem.md)
578
+ - [UltracartClient::CouponTieredAmountOffItems](docs/CouponTieredAmountOffItems.md)
579
579
  - [UltracartClient::CouponTieredAmountOffSubtotal](docs/CouponTieredAmountOffSubtotal.md)
580
580
  - [UltracartClient::CouponTieredPercentOffItems](docs/CouponTieredPercentOffItems.md)
581
581
  - [UltracartClient::CouponTieredPercentOffShipping](docs/CouponTieredPercentOffShipping.md)
@@ -1116,6 +1116,7 @@ Not every change is committed to every SDK.
1116
1116
 
1117
1117
  | Version | Date | Comments |
1118
1118
  | --: | :-: | --- |
1119
+ | 3.6.0 | 08/19/2021 | coupon api - changed tieredAmountOffItem to support mulitple items |
1119
1120
  | 3.5.3 | 08/18/2021 | configuration api - added credit card rate to UltraCart Payments object |
1120
1121
  | 3.5.1 | 08/11/2021 | email webhook test method |
1121
1122
  | 3.5.0 | 08/11/2021 | RestOrderChannelPartner.store_completed was incorrectly defaulting to true |
data/docs/Coupon.md CHANGED
@@ -56,7 +56,7 @@ Name | Type | Description | Notes
56
56
  **restrict_by_storefronts** | [**Array<CouponRestriction>**](CouponRestriction.md) | Optional list of storefronts to limit coupon use to only those storefronts. | [optional]
57
57
  **start_dts** | **String** | Date/time when coupon is valid | [optional]
58
58
  **super_coupon** | **BOOLEAN** | If true, this coupon can be used with ANY other coupon regardless of the other coupons configuration | [optional]
59
- **tiered_amount_off_item** | [**CouponTieredAmountOffItem**](CouponTieredAmountOffItem.md) | | [optional]
59
+ **tiered_amount_off_items** | [**CouponTieredAmountOffItems**](CouponTieredAmountOffItems.md) | | [optional]
60
60
  **tiered_amount_off_subtotal** | [**CouponTieredAmountOffSubtotal**](CouponTieredAmountOffSubtotal.md) | | [optional]
61
61
  **tiered_percent_off_items** | [**CouponTieredPercentOffItems**](CouponTieredPercentOffItems.md) | | [optional]
62
62
  **tiered_percent_off_shipping** | [**CouponTieredPercentOffShipping**](CouponTieredPercentOffShipping.md) | | [optional]
@@ -1,9 +1,9 @@
1
- # UltracartClient::CouponTieredAmountOffItem
1
+ # UltracartClient::CouponTieredAmountOffItems
2
2
 
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
- **item** | **String** | The item being discounted by this coupon. | [optional]
6
+ **items** | **Array<String>** | The items being discounted by this coupon. | [optional]
7
7
  **limit** | **Float** | The maximum number of discounted items. | [optional]
8
8
  **tiers** | [**Array<CouponTierQuantityAmount>**](CouponTierQuantityAmount.md) | A list of discount tiers. | [optional]
9
9
 
data/lib/ultracart_api.rb CHANGED
@@ -172,7 +172,7 @@ require 'ultracart_api/models/coupon_tier_item_discount'
172
172
  require 'ultracart_api/models/coupon_tier_percent'
173
173
  require 'ultracart_api/models/coupon_tier_quantity_amount'
174
174
  require 'ultracart_api/models/coupon_tier_quantity_percent'
175
- require 'ultracart_api/models/coupon_tiered_amount_off_item'
175
+ require 'ultracart_api/models/coupon_tiered_amount_off_items'
176
176
  require 'ultracart_api/models/coupon_tiered_amount_off_subtotal'
177
177
  require 'ultracart_api/models/coupon_tiered_percent_off_items'
178
178
  require 'ultracart_api/models/coupon_tiered_percent_off_shipping'
@@ -137,7 +137,7 @@ module UltracartClient
137
137
  # If true, this coupon can be used with ANY other coupon regardless of the other coupons configuration
138
138
  attr_accessor :super_coupon
139
139
 
140
- attr_accessor :tiered_amount_off_item
140
+ attr_accessor :tiered_amount_off_items
141
141
 
142
142
  attr_accessor :tiered_amount_off_subtotal
143
143
 
@@ -206,7 +206,7 @@ module UltracartClient
206
206
  :'restrict_by_storefronts' => :'restrict_by_storefronts',
207
207
  :'start_dts' => :'start_dts',
208
208
  :'super_coupon' => :'super_coupon',
209
- :'tiered_amount_off_item' => :'tiered_amount_off_item',
209
+ :'tiered_amount_off_items' => :'tiered_amount_off_items',
210
210
  :'tiered_amount_off_subtotal' => :'tiered_amount_off_subtotal',
211
211
  :'tiered_percent_off_items' => :'tiered_percent_off_items',
212
212
  :'tiered_percent_off_shipping' => :'tiered_percent_off_shipping',
@@ -271,7 +271,7 @@ module UltracartClient
271
271
  :'restrict_by_storefronts' => :'Array<CouponRestriction>',
272
272
  :'start_dts' => :'String',
273
273
  :'super_coupon' => :'BOOLEAN',
274
- :'tiered_amount_off_item' => :'CouponTieredAmountOffItem',
274
+ :'tiered_amount_off_items' => :'CouponTieredAmountOffItems',
275
275
  :'tiered_amount_off_subtotal' => :'CouponTieredAmountOffSubtotal',
276
276
  :'tiered_percent_off_items' => :'CouponTieredPercentOffItems',
277
277
  :'tiered_percent_off_shipping' => :'CouponTieredPercentOffShipping',
@@ -506,8 +506,8 @@ module UltracartClient
506
506
  self.super_coupon = attributes[:'super_coupon']
507
507
  end
508
508
 
509
- if attributes.has_key?(:'tiered_amount_off_item')
510
- self.tiered_amount_off_item = attributes[:'tiered_amount_off_item']
509
+ if attributes.has_key?(:'tiered_amount_off_items')
510
+ self.tiered_amount_off_items = attributes[:'tiered_amount_off_items']
511
511
  end
512
512
 
513
513
  if attributes.has_key?(:'tiered_amount_off_subtotal')
@@ -692,7 +692,7 @@ module UltracartClient
692
692
  restrict_by_storefronts == o.restrict_by_storefronts &&
693
693
  start_dts == o.start_dts &&
694
694
  super_coupon == o.super_coupon &&
695
- tiered_amount_off_item == o.tiered_amount_off_item &&
695
+ tiered_amount_off_items == o.tiered_amount_off_items &&
696
696
  tiered_amount_off_subtotal == o.tiered_amount_off_subtotal &&
697
697
  tiered_percent_off_items == o.tiered_percent_off_items &&
698
698
  tiered_percent_off_shipping == o.tiered_percent_off_shipping &&
@@ -709,7 +709,7 @@ module UltracartClient
709
709
  # Calculates hash code according to all attributes.
710
710
  # @return [Fixnum] Hash code
711
711
  def hash
712
- [affiliate_oid, allow_multiple_one_time_codes, amount_off_items, amount_off_shipping, amount_off_shipping_with_items_purchase, amount_off_subtotal, amount_off_subtotal_and_free_shipping, amount_off_subtotal_and_shipping, amount_off_subtotal_with_block_purchase, amount_off_subtotal_with_items_purchase, amount_off_subtotal_with_purchase, automatically_apply_coupon_codes, buy_one_get_one, calculated_description, can_be_used_with_other_coupons, coupon_oid, coupon_type, description, discount_item_with_item_purchase, discount_items, expiration_dts, free_item_and_shipping_with_subtotal, free_item_with_item_purchase, free_item_with_subtotal, free_items_with_item_purchase, free_items_with_mixmatch_purchase, free_shipping, free_shipping_specific_items, free_shipping_with_items_purchase, free_shipping_with_subtotal, hide_from_customer, merchant_code, merchant_notes, multiple_amounts_off_items, no_discount, percent_off_item_with_items_quantity_purchase, percent_off_items, percent_off_items_and_free_shipping, percent_off_items_with_items_purchase, percent_off_msrp_items, percent_off_retail_price_items, percent_off_shipping, percent_off_subtotal, percent_off_subtotal_and_free_shipping, percent_off_subtotal_limit, percent_off_subtotal_with_items_purchase, percent_off_subtotal_with_subtotal, quickbooks_code, restrict_by_postal_codes, restrict_by_screen_branding_theme_codes, restrict_by_storefronts, start_dts, super_coupon, tiered_amount_off_item, tiered_amount_off_subtotal, tiered_percent_off_items, tiered_percent_off_shipping, tiered_percent_off_subtotal, usable_by].hash
712
+ [affiliate_oid, allow_multiple_one_time_codes, amount_off_items, amount_off_shipping, amount_off_shipping_with_items_purchase, amount_off_subtotal, amount_off_subtotal_and_free_shipping, amount_off_subtotal_and_shipping, amount_off_subtotal_with_block_purchase, amount_off_subtotal_with_items_purchase, amount_off_subtotal_with_purchase, automatically_apply_coupon_codes, buy_one_get_one, calculated_description, can_be_used_with_other_coupons, coupon_oid, coupon_type, description, discount_item_with_item_purchase, discount_items, expiration_dts, free_item_and_shipping_with_subtotal, free_item_with_item_purchase, free_item_with_subtotal, free_items_with_item_purchase, free_items_with_mixmatch_purchase, free_shipping, free_shipping_specific_items, free_shipping_with_items_purchase, free_shipping_with_subtotal, hide_from_customer, merchant_code, merchant_notes, multiple_amounts_off_items, no_discount, percent_off_item_with_items_quantity_purchase, percent_off_items, percent_off_items_and_free_shipping, percent_off_items_with_items_purchase, percent_off_msrp_items, percent_off_retail_price_items, percent_off_shipping, percent_off_subtotal, percent_off_subtotal_and_free_shipping, percent_off_subtotal_limit, percent_off_subtotal_with_items_purchase, percent_off_subtotal_with_subtotal, quickbooks_code, restrict_by_postal_codes, restrict_by_screen_branding_theme_codes, restrict_by_storefronts, start_dts, super_coupon, tiered_amount_off_items, tiered_amount_off_subtotal, tiered_percent_off_items, tiered_percent_off_shipping, tiered_percent_off_subtotal, usable_by].hash
713
713
  end
714
714
 
715
715
  # Builds the object from hash
@@ -13,9 +13,9 @@ Swagger Codegen version: 2.4.15-SNAPSHOT
13
13
  require 'date'
14
14
 
15
15
  module UltracartClient
16
- class CouponTieredAmountOffItem
17
- # The item being discounted by this coupon.
18
- attr_accessor :item
16
+ class CouponTieredAmountOffItems
17
+ # The items being discounted by this coupon.
18
+ attr_accessor :items
19
19
 
20
20
  # The maximum number of discounted items.
21
21
  attr_accessor :limit
@@ -26,7 +26,7 @@ module UltracartClient
26
26
  # Attribute mapping from ruby-style variable name to JSON key.
27
27
  def self.attribute_map
28
28
  {
29
- :'item' => :'item',
29
+ :'items' => :'items',
30
30
  :'limit' => :'limit',
31
31
  :'tiers' => :'tiers'
32
32
  }
@@ -35,7 +35,7 @@ module UltracartClient
35
35
  # Attribute type mapping.
36
36
  def self.swagger_types
37
37
  {
38
- :'item' => :'String',
38
+ :'items' => :'Array<String>',
39
39
  :'limit' => :'Float',
40
40
  :'tiers' => :'Array<CouponTierQuantityAmount>'
41
41
  }
@@ -49,8 +49,10 @@ module UltracartClient
49
49
  # convert string to symbol for hash key
50
50
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
51
51
 
52
- if attributes.has_key?(:'item')
53
- self.item = attributes[:'item']
52
+ if attributes.has_key?(:'items')
53
+ if (value = attributes[:'items']).is_a?(Array)
54
+ self.items = value
55
+ end
54
56
  end
55
57
 
56
58
  if attributes.has_key?(:'limit')
@@ -82,7 +84,7 @@ module UltracartClient
82
84
  def ==(o)
83
85
  return true if self.equal?(o)
84
86
  self.class == o.class &&
85
- item == o.item &&
87
+ items == o.items &&
86
88
  limit == o.limit &&
87
89
  tiers == o.tiers
88
90
  end
@@ -96,7 +98,7 @@ module UltracartClient
96
98
  # Calculates hash code according to all attributes.
97
99
  # @return [Fixnum] Hash code
98
100
  def hash
99
- [item, limit, tiers].hash
101
+ [items, limit, tiers].hash
100
102
  end
101
103
 
102
104
  # Builds the object from hash
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.4.15-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module UltracartClient
14
- VERSION = '3.5.3'
14
+ VERSION = '3.6.0'
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: 3.5.3
4
+ version: 3.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - UltraCart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-18 00:00:00.000000000 Z
11
+ date: 2021-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -362,7 +362,7 @@ files:
362
362
  - docs/CouponTierPercent.md
363
363
  - docs/CouponTierQuantityAmount.md
364
364
  - docs/CouponTierQuantityPercent.md
365
- - docs/CouponTieredAmountOffItem.md
365
+ - docs/CouponTieredAmountOffItems.md
366
366
  - docs/CouponTieredAmountOffSubtotal.md
367
367
  - docs/CouponTieredPercentOffItems.md
368
368
  - docs/CouponTieredPercentOffShipping.md
@@ -1027,7 +1027,7 @@ files:
1027
1027
  - lib/ultracart_api/models/coupon_tier_percent.rb
1028
1028
  - lib/ultracart_api/models/coupon_tier_quantity_amount.rb
1029
1029
  - lib/ultracart_api/models/coupon_tier_quantity_percent.rb
1030
- - lib/ultracart_api/models/coupon_tiered_amount_off_item.rb
1030
+ - lib/ultracart_api/models/coupon_tiered_amount_off_items.rb
1031
1031
  - lib/ultracart_api/models/coupon_tiered_amount_off_subtotal.rb
1032
1032
  - lib/ultracart_api/models/coupon_tiered_percent_off_items.rb
1033
1033
  - lib/ultracart_api/models/coupon_tiered_percent_off_shipping.rb