ultracart_api 3.6.9 → 3.6.13

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: 87e2713ffc54bf9f912150b91084d19d9554990d9ff978f4099bd1fad991cd93
4
- data.tar.gz: 6a5c36b1ecc16d745dd6e849b93a11807fc5d6c8d75e420d857409e64ceed7d0
3
+ metadata.gz: 7a0befd5ef8e1b079f4e3170d8e5a04c78a1d6758400c291ea188c2eee8e3aba
4
+ data.tar.gz: 3c5851518f88ab11f98c32a868c0a057841b60a99fb5fd041514a5b819c277b9
5
5
  SHA512:
6
- metadata.gz: 5cb4c11b1e5fc9badeca7dd1c41c442bad73ca834961a7c7e0f744e943db4ccf612efbc5c392af8332654ba301b5db54225b6d17b500dd9e3216b5134f273b2e
7
- data.tar.gz: b0b17891498d1ea56ac778880044e45ebd2e3d964c4ca1f9b04229de2f49c4047eb82221fa011eb26c0d56fb893d634c4a6e7fd82ab7dd3ee6cb24a57acab211
6
+ metadata.gz: 0f6e22af4e2e750706a91f4bfe1e287954c5d930faed50f41515576a391ea66e16a4757f34ed03cc3eb13090fe792e10ed848dfb18300197741c33a89060f175
7
+ data.tar.gz: 41897b3f92a87166692f7961fadf9d106ef0fb814ed57ae2d15d13a1a630cce8905c62a2d73f9ad9ba091737c6ee9c96cbbc121109e5b323d0e1b0727f6f69a9
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.6.9
10
+ - Package version: 3.6.13
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.6.9.gem
27
+ gem install ./ultracart_api-3.6.13.gem
28
28
  ```
29
- (for development, run `gem install --dev ./ultracart_api-3.6.9.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./ultracart_api-3.6.13.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.6.9'
35
+ gem 'ultracart_api', '~> 3.6.13'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -145,7 +145,7 @@ Class | Method | HTTP request | Description
145
145
  *UltracartClient::CouponApi* | [**get_coupon**](docs/CouponApi.md#get_coupon) | **GET** /coupon/coupons/{coupon_oid} | Retrieve a coupon
146
146
  *UltracartClient::CouponApi* | [**get_coupon_by_merchant_code**](docs/CouponApi.md#get_coupon_by_merchant_code) | **GET** /coupon/coupons/merchant_code/{merchant_code} | Retrieve a coupon by merchant code
147
147
  *UltracartClient::CouponApi* | [**get_coupons**](docs/CouponApi.md#get_coupons) | **GET** /coupon/coupons | Retrieve coupons
148
- *UltracartClient::CouponApi* | [**get_coupons_by_query**](docs/CouponApi.md#get_coupons_by_query) | **GET** /coupon/coupons/query | Retrieve coupons by query
148
+ *UltracartClient::CouponApi* | [**get_coupons_by_query**](docs/CouponApi.md#get_coupons_by_query) | **POST** /coupon/coupons/query | Retrieve coupons by query
149
149
  *UltracartClient::CouponApi* | [**get_editor_values**](docs/CouponApi.md#get_editor_values) | **GET** /coupon/editor_values | Retrieve values needed for a coupon editor
150
150
  *UltracartClient::CouponApi* | [**insert_coupon**](docs/CouponApi.md#insert_coupon) | **POST** /coupon/coupons | Insert a coupon
151
151
  *UltracartClient::CouponApi* | [**insert_coupons**](docs/CouponApi.md#insert_coupons) | **POST** /coupon/coupons/batch | Insert multiple coupons
@@ -1118,6 +1118,10 @@ Not every change is committed to every SDK.
1118
1118
 
1119
1119
  | Version | Date | Comments |
1120
1120
  | --: | :-: | --- |
1121
+ | 3.6.13 | 09/20/2021 | expose EasyPost tracker id if available on shipment tracking details |
1122
+ | 3.6.12 | 09/20/2021 | fix method for getCouponsByQuery to be POST instead of GET since it uses a JSON body |
1123
+ | 3.6.11 | 09/13/2021 | fix for CouponApi, broke due to inadvertent parameter inclusion |
1124
+ | 3.6.10 | 09/09/2021 | added constants for Google Shopping payment method (still in development) |
1121
1125
  | 3.6.9 | 09/07/2021 | customer profile editor values have new list of state optional countries |
1122
1126
  | 3.6.8 | 08/31/2021 | coupon query field to allow merchant code and description to be searched |
1123
1127
  | 3.6.7 | 08/27/2021 | customer profile affiliate information now contains affiliate first and last name |
data/docs/CouponApi.md CHANGED
@@ -14,7 +14,7 @@ Method | HTTP request | Description
14
14
  [**get_coupon**](CouponApi.md#get_coupon) | **GET** /coupon/coupons/{coupon_oid} | Retrieve a coupon
15
15
  [**get_coupon_by_merchant_code**](CouponApi.md#get_coupon_by_merchant_code) | **GET** /coupon/coupons/merchant_code/{merchant_code} | Retrieve a coupon by merchant code
16
16
  [**get_coupons**](CouponApi.md#get_coupons) | **GET** /coupon/coupons | Retrieve coupons
17
- [**get_coupons_by_query**](CouponApi.md#get_coupons_by_query) | **GET** /coupon/coupons/query | Retrieve coupons by query
17
+ [**get_coupons_by_query**](CouponApi.md#get_coupons_by_query) | **POST** /coupon/coupons/query | Retrieve coupons by query
18
18
  [**get_editor_values**](CouponApi.md#get_editor_values) | **GET** /coupon/editor_values | Retrieve values needed for a coupon editor
19
19
  [**insert_coupon**](CouponApi.md#insert_coupon) | **POST** /coupon/coupons | Insert a coupon
20
20
  [**insert_coupons**](CouponApi.md#insert_coupons) | **POST** /coupon/coupons/batch | Insert multiple coupons
@@ -508,7 +508,6 @@ opts = {
508
508
  expiration_date_end: 'expiration_date_end_example', # String | Expiration date end
509
509
  affiliate_oid: 56, # Integer | Affiliate oid
510
510
  exclude_expired: true, # BOOLEAN | Exclude expired
511
- merchant_code_or_description: 'merchant_code_or_description_example', # String | Merchant code or description
512
511
  _limit: 100, # Integer | The maximum number of records to return on this one API call. (Max 200)
513
512
  _offset: 0, # Integer | Pagination of the record set. Offset is a zero based index.
514
513
  _sort: '_sort_example', # String | The sort order of the coupons. See Sorting documentation for examples of using multiple values and sorting by ascending and descending.
@@ -537,7 +536,6 @@ Name | Type | Description | Notes
537
536
  **expiration_date_end** | **String**| Expiration date end | [optional]
538
537
  **affiliate_oid** | **Integer**| Affiliate oid | [optional]
539
538
  **exclude_expired** | **BOOLEAN**| Exclude expired | [optional]
540
- **merchant_code_or_description** | **String**| Merchant code or description | [optional]
541
539
  **_limit** | **Integer**| The maximum number of records to return on this one API call. (Max 200) | [optional] [default to 100]
542
540
  **_offset** | **Integer**| Pagination of the record set. Offset is a zero based index. | [optional] [default to 0]
543
541
  **_sort** | **String**| The sort order of the coupons. See Sorting documentation for examples of using multiple values and sorting by ascending and descending. | [optional]
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
6
6
  **actual_delivery_date** | **String** | | [optional]
7
7
  **actual_delivery_date_formatted** | **String** | | [optional]
8
8
  **details** | [**Array<OrderTrackingNumberDetail>**](OrderTrackingNumberDetail.md) | | [optional]
9
+ **easypost_tracker_id** | **String** | | [optional]
9
10
  **expected_delivery_date** | **String** | | [optional]
10
11
  **expected_delivery_date_formatted** | **String** | | [optional]
11
12
  **map_url** | **String** | | [optional]
@@ -548,7 +548,6 @@ module UltracartClient
548
548
  # @option opts [String] :expiration_date_end Expiration date end
549
549
  # @option opts [Integer] :affiliate_oid Affiliate oid
550
550
  # @option opts [BOOLEAN] :exclude_expired Exclude expired
551
- # @option opts [String] :merchant_code_or_description Merchant code or description
552
551
  # @option opts [Integer] :_limit The maximum number of records to return on this one API call. (Max 200) (default to 100)
553
552
  # @option opts [Integer] :_offset Pagination of the record set. Offset is a zero based index. (default to 0)
554
553
  # @option opts [String] :_sort The sort order of the coupons. See Sorting documentation for examples of using multiple values and sorting by ascending and descending.
@@ -571,7 +570,6 @@ module UltracartClient
571
570
  # @option opts [String] :expiration_date_end Expiration date end
572
571
  # @option opts [Integer] :affiliate_oid Affiliate oid
573
572
  # @option opts [BOOLEAN] :exclude_expired Exclude expired
574
- # @option opts [String] :merchant_code_or_description Merchant code or description
575
573
  # @option opts [Integer] :_limit The maximum number of records to return on this one API call. (Max 200)
576
574
  # @option opts [Integer] :_offset Pagination of the record set. Offset is a zero based index.
577
575
  # @option opts [String] :_sort The sort order of the coupons. See Sorting documentation for examples of using multiple values and sorting by ascending and descending.
@@ -595,7 +593,6 @@ module UltracartClient
595
593
  query_params[:'expiration_date_end'] = opts[:'expiration_date_end'] if !opts[:'expiration_date_end'].nil?
596
594
  query_params[:'affiliate_oid'] = opts[:'affiliate_oid'] if !opts[:'affiliate_oid'].nil?
597
595
  query_params[:'exclude_expired'] = opts[:'exclude_expired'] if !opts[:'exclude_expired'].nil?
598
- query_params[:'merchant_code_or_description'] = opts[:'merchant_code_or_description'] if !opts[:'merchant_code_or_description'].nil?
599
596
  query_params[:'_limit'] = opts[:'_limit'] if !opts[:'_limit'].nil?
600
597
  query_params[:'_offset'] = opts[:'_offset'] if !opts[:'_offset'].nil?
601
598
  query_params[:'_sort'] = opts[:'_sort'] if !opts[:'_sort'].nil?
@@ -682,7 +679,7 @@ module UltracartClient
682
679
  # http body (model)
683
680
  post_body = @api_client.object_to_http_body(coupon_query)
684
681
  auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
685
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
682
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
686
683
  :header_params => header_params,
687
684
  :query_params => query_params,
688
685
  :form_params => form_params,
@@ -225,7 +225,7 @@ module UltracartClient
225
225
  # Check to see if the all the properties in the model are valid
226
226
  # @return true if the model is valid
227
227
  def valid?
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'])
228
+ payment_method_validator = EnumAttributeValidator.new('String', ['Affirm', 'Amazon', 'Amazon SC', 'Cash', 'Check', 'COD', 'Credit Card', 'eBay', 'eCheck', 'Google Shopping', 'Insurance', 'LoanHero', 'Money Order', 'PayPal', 'Purchase Order', 'Quote Request', 'Unknown', 'Wire Transfer', 'Walmart'])
229
229
  return false unless payment_method_validator.valid?(@payment_method)
230
230
  payment_status_validator = EnumAttributeValidator.new('String', ['Unprocessed', 'Authorized', 'Capture Failed', 'Processed', 'Declined', 'Voided', 'Refunded', 'Skipped'])
231
231
  return false unless payment_status_validator.valid?(@payment_status)
@@ -235,7 +235,7 @@ module UltracartClient
235
235
  # Custom attribute writer method checking allowed values (enum).
236
236
  # @param [Object] payment_method Object to be assigned
237
237
  def payment_method=(payment_method)
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'])
238
+ validator = EnumAttributeValidator.new('String', ['Affirm', 'Amazon', 'Amazon SC', 'Cash', 'Check', 'COD', 'Credit Card', 'eBay', 'eCheck', 'Google Shopping', 'Insurance', 'LoanHero', 'Money Order', 'PayPal', 'Purchase Order', 'Quote Request', 'Unknown', 'Wire Transfer', 'Walmart'])
239
239
  unless validator.valid?(payment_method)
240
240
  fail ArgumentError, 'invalid value for "payment_method", must be one of #{validator.allowable_values}.'
241
241
  end
@@ -475,7 +475,7 @@ module UltracartClient
475
475
  return false if !@email.nil? && @email.to_s.length > 100
476
476
  return false if !@first_name.nil? && @first_name.to_s.length > 30
477
477
  return false if !@last_name.nil? && @last_name.to_s.length > 30
478
- payment_method_validator = EnumAttributeValidator.new('String', ['Affirm', 'Amazon', 'Amazon SC', 'Cash', 'Check', 'COD', 'Credit Card', 'eCheck', 'LoanHero', 'Money Order', 'PayPal', 'Purchase Order', 'Quote Request', 'Unknown', 'Wire Transfer'])
478
+ payment_method_validator = EnumAttributeValidator.new('String', ['Affirm', 'Amazon', 'Amazon SC', 'Cash', 'Check', 'COD', 'Credit Card', 'eCheck', 'Google Shopping', 'LoanHero', 'Money Order', 'PayPal', 'Purchase Order', 'Quote Request', 'Unknown', 'Wire Transfer'])
479
479
  return false unless payment_method_validator.valid?(@payment_method)
480
480
  return false if !@phone.nil? && @phone.to_s.length > 25
481
481
  return false if !@postal_code.nil? && @postal_code.to_s.length > 20
@@ -568,7 +568,7 @@ module UltracartClient
568
568
  # Custom attribute writer method checking allowed values (enum).
569
569
  # @param [Object] payment_method Object to be assigned
570
570
  def payment_method=(payment_method)
571
- validator = EnumAttributeValidator.new('String', ['Affirm', 'Amazon', 'Amazon SC', 'Cash', 'Check', 'COD', 'Credit Card', 'eCheck', 'LoanHero', 'Money Order', 'PayPal', 'Purchase Order', 'Quote Request', 'Unknown', 'Wire Transfer'])
571
+ validator = EnumAttributeValidator.new('String', ['Affirm', 'Amazon', 'Amazon SC', 'Cash', 'Check', 'COD', 'Credit Card', 'eCheck', 'Google Shopping', 'LoanHero', 'Money Order', 'PayPal', 'Purchase Order', 'Quote Request', 'Unknown', 'Wire Transfer'])
572
572
  unless validator.valid?(payment_method)
573
573
  fail ArgumentError, 'invalid value for "payment_method", must be one of #{validator.allowable_values}.'
574
574
  end
@@ -20,6 +20,8 @@ module UltracartClient
20
20
 
21
21
  attr_accessor :details
22
22
 
23
+ attr_accessor :easypost_tracker_id
24
+
23
25
  attr_accessor :expected_delivery_date
24
26
 
25
27
  attr_accessor :expected_delivery_date_formatted
@@ -54,6 +56,7 @@ module UltracartClient
54
56
  :'actual_delivery_date' => :'actual_delivery_date',
55
57
  :'actual_delivery_date_formatted' => :'actual_delivery_date_formatted',
56
58
  :'details' => :'details',
59
+ :'easypost_tracker_id' => :'easypost_tracker_id',
57
60
  :'expected_delivery_date' => :'expected_delivery_date',
58
61
  :'expected_delivery_date_formatted' => :'expected_delivery_date_formatted',
59
62
  :'map_url' => :'map_url',
@@ -77,6 +80,7 @@ module UltracartClient
77
80
  :'actual_delivery_date' => :'String',
78
81
  :'actual_delivery_date_formatted' => :'String',
79
82
  :'details' => :'Array<OrderTrackingNumberDetail>',
83
+ :'easypost_tracker_id' => :'String',
80
84
  :'expected_delivery_date' => :'String',
81
85
  :'expected_delivery_date_formatted' => :'String',
82
86
  :'map_url' => :'String',
@@ -116,6 +120,10 @@ module UltracartClient
116
120
  end
117
121
  end
118
122
 
123
+ if attributes.has_key?(:'easypost_tracker_id')
124
+ self.easypost_tracker_id = attributes[:'easypost_tracker_id']
125
+ end
126
+
119
127
  if attributes.has_key?(:'expected_delivery_date')
120
128
  self.expected_delivery_date = attributes[:'expected_delivery_date']
121
129
  end
@@ -194,6 +202,7 @@ module UltracartClient
194
202
  actual_delivery_date == o.actual_delivery_date &&
195
203
  actual_delivery_date_formatted == o.actual_delivery_date_formatted &&
196
204
  details == o.details &&
205
+ easypost_tracker_id == o.easypost_tracker_id &&
197
206
  expected_delivery_date == o.expected_delivery_date &&
198
207
  expected_delivery_date_formatted == o.expected_delivery_date_formatted &&
199
208
  map_url == o.map_url &&
@@ -219,7 +228,7 @@ module UltracartClient
219
228
  # Calculates hash code according to all attributes.
220
229
  # @return [Fixnum] Hash code
221
230
  def hash
222
- [actual_delivery_date, actual_delivery_date_formatted, details, expected_delivery_date, expected_delivery_date_formatted, map_url, order_placed_date, order_placed_date_formatted, payment_processed_date, payment_processed_date_formatted, shipped_date, shipped_date_formatted, shipping_method, status, status_description, tracking_number, tracking_url].hash
231
+ [actual_delivery_date, actual_delivery_date_formatted, details, easypost_tracker_id, expected_delivery_date, expected_delivery_date_formatted, map_url, order_placed_date, order_placed_date_formatted, payment_processed_date, payment_processed_date_formatted, shipped_date, shipped_date_formatted, shipping_method, status, status_description, tracking_number, tracking_url].hash
223
232
  end
224
233
 
225
234
  # 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.6.9'
14
+ VERSION = '3.6.13'
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.6.9
4
+ version: 3.6.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - UltraCart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-07 00:00:00.000000000 Z
11
+ date: 2021-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus