ultracart_api 3.5.3 → 3.6.4

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: 5b6857c15baad34b698457d6431038f60544cfe4be78fd613e10bf74533d5c38
4
- data.tar.gz: f2958544eaba078ead5d189afa5ea71936764bc3331f33289bb95825abbe67c5
3
+ metadata.gz: 75947a7eeb0b2069a99895e6ad75b336ffdd3b6bdb772529681f9b8d426ac87b
4
+ data.tar.gz: c25acf93d768b26f631907b80d427dcfd08dfd1cf3c4b67e16dc5b40f3e888f0
5
5
  SHA512:
6
- metadata.gz: a5c6a9166172316b29477aad32025142222063b9adf8f3c99fc326b6322b99d4611fe3420fc99bc28dcc9d9f021e9c7ca31fa6a3417a6adc7bdc3e6da7a8ea62
7
- data.tar.gz: 03b9da4648e5ed9de2a9b5e50b1513cc6d6d2500f3295836c24d5de602e9b8d350c189ba274d3689289744640ae372f5eb43ae3dd32ab0a4d1d5ee04c332e7ce
6
+ metadata.gz: eb721e73723780a5d077ba5c927893b91157e80b8a27fdb601b52353f6581b1013da797e9b62917d0a9739bf65daba050bec4fdf87c07418d0f540cc7139233f
7
+ data.tar.gz: 1166427bec5e43271bca12093994d7c333f0934bc98ef22ec917e3c6710f5c386b2e4fcb219b6d2896d4164b7f3e043a293ccf72e0dfcc27573b98adad380a59
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.4
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.4.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.4.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.4'
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)
@@ -874,6 +874,7 @@ Class | Method | HTTP request | Description
874
874
  - [UltracartClient::OrderPaymentCheck](docs/OrderPaymentCheck.md)
875
875
  - [UltracartClient::OrderPaymentCreditCard](docs/OrderPaymentCreditCard.md)
876
876
  - [UltracartClient::OrderPaymentECheck](docs/OrderPaymentECheck.md)
877
+ - [UltracartClient::OrderPaymentInsurance](docs/OrderPaymentInsurance.md)
877
878
  - [UltracartClient::OrderPaymentPurchaseOrder](docs/OrderPaymentPurchaseOrder.md)
878
879
  - [UltracartClient::OrderPaymentTransaction](docs/OrderPaymentTransaction.md)
879
880
  - [UltracartClient::OrderPaymentTransactionDetail](docs/OrderPaymentTransactionDetail.md)
@@ -905,6 +906,7 @@ Class | Method | HTTP request | Description
905
906
  - [UltracartClient::PaymentsConfigurationCreditCard](docs/PaymentsConfigurationCreditCard.md)
906
907
  - [UltracartClient::PaymentsConfigurationCreditCardType](docs/PaymentsConfigurationCreditCardType.md)
907
908
  - [UltracartClient::PaymentsConfigurationEcheck](docs/PaymentsConfigurationEcheck.md)
909
+ - [UltracartClient::PaymentsConfigurationInsurance](docs/PaymentsConfigurationInsurance.md)
908
910
  - [UltracartClient::PaymentsConfigurationLoanHero](docs/PaymentsConfigurationLoanHero.md)
909
911
  - [UltracartClient::PaymentsConfigurationMoneyOrder](docs/PaymentsConfigurationMoneyOrder.md)
910
912
  - [UltracartClient::PaymentsConfigurationPayPal](docs/PaymentsConfigurationPayPal.md)
@@ -1116,6 +1118,9 @@ Not every change is committed to every SDK.
1116
1118
 
1117
1119
  | Version | Date | Comments |
1118
1120
  | --: | :-: | --- |
1121
+ | 3.6.4 | 08/24/2021 | configuration api - new payment method named insurance |
1122
+ | 3.6.1 | 08/23/2021 | configuration api - enum problems, also added order.item.tracking_number to support line item tracking numbers |
1123
+ | 3.6.0 | 08/19/2021 | coupon api - changed tieredAmountOffItem to support mulitple items |
1119
1124
  | 3.5.3 | 08/18/2021 | configuration api - added credit card rate to UltraCart Payments object |
1120
1125
  | 3.5.1 | 08/11/2021 | email webhook test method |
1121
1126
  | 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/docs/OrderItem.md CHANGED
@@ -52,6 +52,7 @@ Name | Type | Description | Notes
52
52
  **taxable_cost** | [**Currency**](Currency.md) | | [optional]
53
53
  **total_cost_with_discount** | [**Currency**](Currency.md) | | [optional]
54
54
  **total_refunded** | [**Currency**](Currency.md) | | [optional]
55
+ **tracking_number** | **String** | Tracking number, if null or missing, use order level tracking number(s). Used if there are multiple shipments for one order | [optional]
55
56
  **transmitted_to_distribution_center_dts** | **String** | Date/time that this item was transmitted to the distribution center | [optional]
56
57
  **unit_cost_with_discount** | [**Currency**](Currency.md) | | [optional]
57
58
  **upsell** | **BOOLEAN** | True if this item was added to the order as part of an upsell | [optional]
data/docs/OrderPayment.md CHANGED
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
7
7
  **credit_card** | [**OrderPaymentCreditCard**](OrderPaymentCreditCard.md) | | [optional]
8
8
  **echeck** | [**OrderPaymentECheck**](OrderPaymentECheck.md) | | [optional]
9
9
  **hold_for_fraud_review** | **BOOLEAN** | True if order has been held for fraud review | [optional]
10
+ **insurance** | [**OrderPaymentInsurance**](OrderPaymentInsurance.md) | | [optional]
10
11
  **payment_dts** | **String** | Date/time that the payment was successfully processed, for new orders, this field is only considered if channel_partner.skip_payment_processing is true | [optional]
11
12
  **payment_method** | **String** | Payment method | [optional]
12
13
  **payment_method_accounting_code** | **String** | Payment method QuickBooks code | [optional]
@@ -0,0 +1,9 @@
1
+ # UltracartClient::OrderPaymentInsurance
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **application_id** | **String** | application id | [optional]
7
+ **claim_id** | **String** | claim id | [optional]
8
+
9
+
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
10
10
  **cod** | [**PaymentsConfigurationCOD**](PaymentsConfigurationCOD.md) | | [optional]
11
11
  **credit_card** | [**PaymentsConfigurationCreditCard**](PaymentsConfigurationCreditCard.md) | | [optional]
12
12
  **echeck** | [**PaymentsConfigurationEcheck**](PaymentsConfigurationEcheck.md) | | [optional]
13
+ **insurance** | [**PaymentsConfigurationInsurance**](PaymentsConfigurationInsurance.md) | | [optional]
13
14
  **loan_hero** | [**PaymentsConfigurationLoanHero**](PaymentsConfigurationLoanHero.md) | | [optional]
14
15
  **money_order** | [**PaymentsConfigurationMoneyOrder**](PaymentsConfigurationMoneyOrder.md) | | [optional]
15
16
  **paypal** | [**PaymentsConfigurationPayPal**](PaymentsConfigurationPayPal.md) | | [optional]
@@ -0,0 +1,9 @@
1
+ # UltracartClient::PaymentsConfigurationInsurance
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **accept_insurance** | **BOOLEAN** | Master flag indicating this merchant accepts insurance | [optional]
7
+ **restrictions** | [**PaymentsConfigurationRestrictions**](PaymentsConfigurationRestrictions.md) | | [optional]
8
+
9
+
@@ -6,18 +6,25 @@ Name | Type | Description | Notes
6
6
  **affiliate_email** | **String** | | [optional]
7
7
  **affiliate_id** | **Integer** | | [optional]
8
8
  **communications_campaign_name** | **String** | | [optional]
9
+ **communications_campaign_name_filter** | **BOOLEAN** | | [optional]
9
10
  **communications_email_subject** | **String** | | [optional]
11
+ **communications_email_subject_filter** | **BOOLEAN** | | [optional]
10
12
  **communications_flow_name** | **String** | | [optional]
13
+ **communications_flow_name_filter** | **BOOLEAN** | | [optional]
11
14
  **email** | [**ScreenRecordingFilterStringSearch**](ScreenRecordingFilterStringSearch.md) | | [optional]
12
15
  **email_domain** | **String** | | [optional]
16
+ **email_domain_filter** | **BOOLEAN** | | [optional]
13
17
  **email_identified** | **BOOLEAN** | | [optional]
14
18
  **end_timestamp** | [**ScreenRecordingFilterRangeDate**](ScreenRecordingFilterRangeDate.md) | | [optional]
15
19
  **esp_customer_uuid** | **String** | | [optional]
16
20
  **favorite** | **BOOLEAN** | | [optional]
17
21
  **geolocation** | [**ScreenRecordingFilterGeoDistance**](ScreenRecordingFilterGeoDistance.md) | | [optional]
18
22
  **geolocation_country** | [**ScreenRecordingFilterStringSearch**](ScreenRecordingFilterStringSearch.md) | | [optional]
23
+ **geolocation_country_filter** | **BOOLEAN** | | [optional]
19
24
  **geolocation_state** | [**ScreenRecordingFilterStringSearch**](ScreenRecordingFilterStringSearch.md) | | [optional]
25
+ **geolocation_state_filter** | **BOOLEAN** | | [optional]
20
26
  **language_iso_code** | [**ScreenRecordingFilterStringSearch**](ScreenRecordingFilterStringSearch.md) | | [optional]
27
+ **language_iso_code_filter** | **BOOLEAN** | | [optional]
21
28
  **last_x_days** | **Integer** | | [optional]
22
29
  **max_filter_values** | **Integer** | | [optional]
23
30
  **order_id** | [**ScreenRecordingFilterStringSearch**](ScreenRecordingFilterStringSearch.md) | | [optional]
@@ -25,22 +32,35 @@ Name | Type | Description | Notes
25
32
  **page_views** | [**Array<ScreenRecordingFilterPageView>**](ScreenRecordingFilterPageView.md) | | [optional]
26
33
  **placed_order** | **BOOLEAN** | | [optional]
27
34
  **preferred_language** | [**ScreenRecordingFilterStringSearch**](ScreenRecordingFilterStringSearch.md) | | [optional]
35
+ **preferred_language_filter** | **BOOLEAN** | | [optional]
28
36
  **referrer_domain** | **String** | | [optional]
37
+ **referrer_domain_filter** | **BOOLEAN** | | [optional]
29
38
  **screen_recording_uuids** | **Array<String>** | | [optional]
30
39
  **screen_sizes** | **Array<String>** | | [optional]
31
40
  **skip_filter_values** | **BOOLEAN** | | [optional]
41
+ **skip_histogram** | **BOOLEAN** | | [optional]
32
42
  **skip_hits** | **BOOLEAN** | | [optional]
33
43
  **start_timestamp** | [**ScreenRecordingFilterRangeDate**](ScreenRecordingFilterRangeDate.md) | | [optional]
34
44
  **tags** | **Array<String>** | | [optional]
35
45
  **time_on_site** | [**ScreenRecordingFilterRangeInteger**](ScreenRecordingFilterRangeInteger.md) | | [optional]
46
+ **time_on_site_max_filter** | **BOOLEAN** | | [optional]
47
+ **time_on_site_min_filter** | **BOOLEAN** | | [optional]
48
+ **url_filter** | **BOOLEAN** | | [optional]
36
49
  **user_agent_device_name** | **String** | | [optional]
50
+ **user_agent_device_name_filter** | **BOOLEAN** | | [optional]
51
+ **user_agent_device_os_name_filter** | **BOOLEAN** | | [optional]
52
+ **user_agent_device_os_version_filter** | **BOOLEAN** | | [optional]
37
53
  **user_agent_name** | **String** | | [optional]
54
+ **user_agent_name_filter** | **BOOLEAN** | | [optional]
38
55
  **user_agent_original** | [**ScreenRecordingFilterStringSearch**](ScreenRecordingFilterStringSearch.md) | | [optional]
56
+ **user_agent_original_filter** | **BOOLEAN** | | [optional]
39
57
  **user_agent_os_name** | **String** | | [optional]
40
58
  **user_agent_os_version** | **String** | | [optional]
41
59
  **user_ip** | [**ScreenRecordingFilterIpSearch**](ScreenRecordingFilterIpSearch.md) | | [optional]
42
60
  **utm_campaign** | **String** | | [optional]
61
+ **utm_campaign_filter** | **BOOLEAN** | | [optional]
43
62
  **utm_source** | **String** | | [optional]
63
+ **utm_source_filter** | **BOOLEAN** | | [optional]
44
64
  **visitor_number** | **Integer** | | [optional]
45
65
  **watched** | **BOOLEAN** | | [optional]
46
66
 
@@ -4,12 +4,21 @@
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **domain** | [**ScreenRecordingFilterStringSearch**](ScreenRecordingFilterStringSearch.md) | | [optional]
7
+ **domain_filter** | **BOOLEAN** | | [optional]
8
+ **event_name_filter** | **BOOLEAN** | | [optional]
9
+ **event_param_name_filter** | **BOOLEAN** | | [optional]
10
+ **event_param_value_filter** | **BOOLEAN** | | [optional]
7
11
  **events** | [**Array<ScreenRecordingFilterPageViewEvent>**](ScreenRecordingFilterPageViewEvent.md) | | [optional]
12
+ **param_name_filter** | **BOOLEAN** | | [optional]
13
+ **param_value_filter** | **BOOLEAN** | | [optional]
8
14
  **params** | [**Array<ScreenRecordingFilterPageViewParam>**](ScreenRecordingFilterPageViewParam.md) | | [optional]
9
15
  **referrer** | [**ScreenRecordingFilterStringSearch**](ScreenRecordingFilterStringSearch.md) | | [optional]
10
16
  **referrer_params** | [**Array<ScreenRecordingFilterPageViewReferrerParam>**](ScreenRecordingFilterPageViewReferrerParam.md) | | [optional]
11
17
  **referrer_raw** | [**ScreenRecordingFilterStringSearch**](ScreenRecordingFilterStringSearch.md) | | [optional]
12
18
  **time_on_page** | [**ScreenRecordingFilterRangeInteger**](ScreenRecordingFilterRangeInteger.md) | | [optional]
19
+ **time_on_page_max_filter** | **BOOLEAN** | | [optional]
20
+ **time_on_page_min_filter** | **BOOLEAN** | | [optional]
13
21
  **url** | [**ScreenRecordingFilterStringSearch**](ScreenRecordingFilterStringSearch.md) | | [optional]
22
+ **url_filter** | **BOOLEAN** | | [optional]
14
23
 
15
24
 
@@ -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
@@ -151,6 +151,9 @@ module UltracartClient
151
151
 
152
152
  attr_accessor :total_refunded
153
153
 
154
+ # Tracking number, if null or missing, use order level tracking number(s). Used if there are multiple shipments for one order
155
+ attr_accessor :tracking_number
156
+
154
157
  # Date/time that this item was transmitted to the distribution center
155
158
  attr_accessor :transmitted_to_distribution_center_dts
156
159
 
@@ -215,6 +218,7 @@ module UltracartClient
215
218
  :'taxable_cost' => :'taxable_cost',
216
219
  :'total_cost_with_discount' => :'total_cost_with_discount',
217
220
  :'total_refunded' => :'total_refunded',
221
+ :'tracking_number' => :'tracking_number',
218
222
  :'transmitted_to_distribution_center_dts' => :'transmitted_to_distribution_center_dts',
219
223
  :'unit_cost_with_discount' => :'unit_cost_with_discount',
220
224
  :'upsell' => :'upsell',
@@ -275,6 +279,7 @@ module UltracartClient
275
279
  :'taxable_cost' => :'Currency',
276
280
  :'total_cost_with_discount' => :'Currency',
277
281
  :'total_refunded' => :'Currency',
282
+ :'tracking_number' => :'String',
278
283
  :'transmitted_to_distribution_center_dts' => :'String',
279
284
  :'unit_cost_with_discount' => :'Currency',
280
285
  :'upsell' => :'BOOLEAN',
@@ -495,6 +500,10 @@ module UltracartClient
495
500
  self.total_refunded = attributes[:'total_refunded']
496
501
  end
497
502
 
503
+ if attributes.has_key?(:'tracking_number')
504
+ self.tracking_number = attributes[:'tracking_number']
505
+ end
506
+
498
507
  if attributes.has_key?(:'transmitted_to_distribution_center_dts')
499
508
  self.transmitted_to_distribution_center_dts = attributes[:'transmitted_to_distribution_center_dts']
500
509
  end
@@ -673,6 +682,7 @@ module UltracartClient
673
682
  taxable_cost == o.taxable_cost &&
674
683
  total_cost_with_discount == o.total_cost_with_discount &&
675
684
  total_refunded == o.total_refunded &&
685
+ tracking_number == o.tracking_number &&
676
686
  transmitted_to_distribution_center_dts == o.transmitted_to_distribution_center_dts &&
677
687
  unit_cost_with_discount == o.unit_cost_with_discount &&
678
688
  upsell == o.upsell &&
@@ -689,7 +699,7 @@ module UltracartClient
689
699
  # Calculates hash code according to all attributes.
690
700
  # @return [Fixnum] Hash code
691
701
  def hash
692
- [accounting_code, activation_codes, arbitrary_unit_cost, auto_order_last_rebill_dts, auto_order_schedule, barcode, channel_partner_item_id, cogs, component_unit_value, cost, country_code_of_origin, customs_description, description, discount, discount_quantity, discount_shipping_weight, distribution_center_code, edi, exclude_coupon, free_shipping, hazmat, height, item_reference_oid, kit, kit_component, length, manufacturer_sku, max_days_time_in_transit, merchant_item_id, mix_and_match_group_name, mix_and_match_group_oid, no_shipping_discount, options, packed_by_user, perishable_class, pricing_tier_name, properties, quantity, quantity_refunded, quickbooks_class, ship_separately, shipped_by_user, shipped_dts, special_product_type, tags, tax_free, taxable_cost, total_cost_with_discount, total_refunded, transmitted_to_distribution_center_dts, unit_cost_with_discount, upsell, weight, width].hash
702
+ [accounting_code, activation_codes, arbitrary_unit_cost, auto_order_last_rebill_dts, auto_order_schedule, barcode, channel_partner_item_id, cogs, component_unit_value, cost, country_code_of_origin, customs_description, description, discount, discount_quantity, discount_shipping_weight, distribution_center_code, edi, exclude_coupon, free_shipping, hazmat, height, item_reference_oid, kit, kit_component, length, manufacturer_sku, max_days_time_in_transit, merchant_item_id, mix_and_match_group_name, mix_and_match_group_oid, no_shipping_discount, options, packed_by_user, perishable_class, pricing_tier_name, properties, quantity, quantity_refunded, quickbooks_class, ship_separately, shipped_by_user, shipped_dts, special_product_type, tags, tax_free, taxable_cost, total_cost_with_discount, total_refunded, tracking_number, transmitted_to_distribution_center_dts, unit_cost_with_discount, upsell, weight, width].hash
693
703
  end
694
704
 
695
705
  # Builds the object from hash
@@ -23,6 +23,8 @@ module UltracartClient
23
23
  # True if order has been held for fraud review
24
24
  attr_accessor :hold_for_fraud_review
25
25
 
26
+ attr_accessor :insurance
27
+
26
28
  # Date/time that the payment was successfully processed, for new orders, this field is only considered if channel_partner.skip_payment_processing is true
27
29
  attr_accessor :payment_dts
28
30
 
@@ -89,6 +91,7 @@ module UltracartClient
89
91
  :'credit_card' => :'credit_card',
90
92
  :'echeck' => :'echeck',
91
93
  :'hold_for_fraud_review' => :'hold_for_fraud_review',
94
+ :'insurance' => :'insurance',
92
95
  :'payment_dts' => :'payment_dts',
93
96
  :'payment_method' => :'payment_method',
94
97
  :'payment_method_accounting_code' => :'payment_method_accounting_code',
@@ -112,6 +115,7 @@ module UltracartClient
112
115
  :'credit_card' => :'OrderPaymentCreditCard',
113
116
  :'echeck' => :'OrderPaymentECheck',
114
117
  :'hold_for_fraud_review' => :'BOOLEAN',
118
+ :'insurance' => :'OrderPaymentInsurance',
115
119
  :'payment_dts' => :'String',
116
120
  :'payment_method' => :'String',
117
121
  :'payment_method_accounting_code' => :'String',
@@ -152,6 +156,10 @@ module UltracartClient
152
156
  self.hold_for_fraud_review = attributes[:'hold_for_fraud_review']
153
157
  end
154
158
 
159
+ if attributes.has_key?(:'insurance')
160
+ self.insurance = attributes[:'insurance']
161
+ end
162
+
155
163
  if attributes.has_key?(:'payment_dts')
156
164
  self.payment_dts = attributes[:'payment_dts']
157
165
  end
@@ -217,7 +225,7 @@ module UltracartClient
217
225
  # Check to see if the all the properties in the model are valid
218
226
  # @return true if the model is valid
219
227
  def valid?
220
- payment_method_validator = EnumAttributeValidator.new('String', ['Affirm', 'Amazon', 'Amazon SC', 'Cash', 'Check', 'COD', 'Credit Card', 'eBay', 'eCheck', 'LoanHero', 'Money Order', 'PayPal', 'Purchase Order', 'Quote Request', 'Unknown', 'Wire Transfer', 'Walmart'])
228
+ payment_method_validator = EnumAttributeValidator.new('String', ['Affirm', 'Amazon', 'Amazon SC', 'Cash', 'Check', 'COD', 'Credit Card', 'eBay', 'eCheck', 'Insurance', 'LoanHero', 'Money Order', 'PayPal', 'Purchase Order', 'Quote Request', 'Unknown', 'Wire Transfer', 'Walmart'])
221
229
  return false unless payment_method_validator.valid?(@payment_method)
222
230
  payment_status_validator = EnumAttributeValidator.new('String', ['Unprocessed', 'Authorized', 'Capture Failed', 'Processed', 'Declined', 'Voided', 'Refunded', 'Skipped'])
223
231
  return false unless payment_status_validator.valid?(@payment_status)
@@ -227,7 +235,7 @@ module UltracartClient
227
235
  # Custom attribute writer method checking allowed values (enum).
228
236
  # @param [Object] payment_method Object to be assigned
229
237
  def payment_method=(payment_method)
230
- validator = EnumAttributeValidator.new('String', ['Affirm', 'Amazon', 'Amazon SC', 'Cash', 'Check', 'COD', 'Credit Card', 'eBay', 'eCheck', 'LoanHero', 'Money Order', 'PayPal', 'Purchase Order', 'Quote Request', 'Unknown', 'Wire Transfer', 'Walmart'])
238
+ validator = EnumAttributeValidator.new('String', ['Affirm', 'Amazon', 'Amazon SC', 'Cash', 'Check', 'COD', 'Credit Card', 'eBay', 'eCheck', 'Insurance', 'LoanHero', 'Money Order', 'PayPal', 'Purchase Order', 'Quote Request', 'Unknown', 'Wire Transfer', 'Walmart'])
231
239
  unless validator.valid?(payment_method)
232
240
  fail ArgumentError, 'invalid value for "payment_method", must be one of #{validator.allowable_values}.'
233
241
  end
@@ -253,6 +261,7 @@ module UltracartClient
253
261
  credit_card == o.credit_card &&
254
262
  echeck == o.echeck &&
255
263
  hold_for_fraud_review == o.hold_for_fraud_review &&
264
+ insurance == o.insurance &&
256
265
  payment_dts == o.payment_dts &&
257
266
  payment_method == o.payment_method &&
258
267
  payment_method_accounting_code == o.payment_method_accounting_code &&
@@ -277,7 +286,7 @@ module UltracartClient
277
286
  # Calculates hash code according to all attributes.
278
287
  # @return [Fixnum] Hash code
279
288
  def hash
280
- [check, credit_card, echeck, hold_for_fraud_review, 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
289
+ [check, credit_card, echeck, 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
281
290
  end
282
291
 
283
292
  # Builds the object from hash