ultracart_api 3.10.223 → 3.10.224

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: 7568456a760f91787d594b2eb381c8b6d64b9a352b76ddaa0b54b27c65902c95
4
- data.tar.gz: 9259fc9e57333a3732ad8845a91205867c243e7b1da1e9e6cb608d98f576a6ff
3
+ metadata.gz: 6f19c70d66bf1a0ff6a15fbcd314b89eb145bf0000f20b013840e3ef96b7b487
4
+ data.tar.gz: 0a04e86770a451568848b9922f052b796ad6ef00fb6d6cab4a815ee595dd8539
5
5
  SHA512:
6
- metadata.gz: b8294de1a8ff28442945ee27db4edf9679fd21d02e54e70bfb45a46c78b8736df57c0f32199793d26cbf05ee1e4b4d5a2edbfa3c887bae3537fd676f98bd11f6
7
- data.tar.gz: 5a37849895c6dc3f56ea4b6b7a38dad38034d4a9e8e2665644e31ced94de8c469b574f6e4e9ce72cc8002e1dc26ff813d237cc049a1a9e9b718f69f5a2726c93
6
+ metadata.gz: 0bce5405dd8f5e1ed6cc336c54eac24786d26990c742688b62752fbf461d22fbff22a0adddb72f9782bcd2a132770f19aed4e2ab8f8f7b6d82dcf48a3a1b9e77
7
+ data.tar.gz: affd32ef2bea6a68fa9fd17dca4f76a67edfaf67a66ec6557c9fb393e1356dad7ca6cd1d5ecd336b62b24070d2c963287fae992b31e822cd144ec2f0cda55058
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.10.223
10
+ - Package version: 3.10.224
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.10.223.gem
27
+ gem install ./ultracart_api-3.10.224.gem
28
28
  ```
29
- (for development, run `gem install --dev ./ultracart_api-3.10.223.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./ultracart_api-3.10.224.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.10.223'
35
+ gem 'ultracart_api', '~> 3.10.224'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -1206,6 +1206,7 @@ Class | Method | HTTP request | Description
1206
1206
  - [UltracartClient::OrderChannelPartner](docs/OrderChannelPartner.md)
1207
1207
  - [UltracartClient::OrderCheckout](docs/OrderCheckout.md)
1208
1208
  - [UltracartClient::OrderCoupon](docs/OrderCoupon.md)
1209
+ - [UltracartClient::OrderCurrentStageHistory](docs/OrderCurrentStageHistory.md)
1209
1210
  - [UltracartClient::OrderDigitalItem](docs/OrderDigitalItem.md)
1210
1211
  - [UltracartClient::OrderDigitalOrder](docs/OrderDigitalOrder.md)
1211
1212
  - [UltracartClient::OrderEdi](docs/OrderEdi.md)
@@ -1515,6 +1516,7 @@ Not every change is committed to every SDK.
1515
1516
 
1516
1517
  | Version | Date | Comments |
1517
1518
  | --: | :-: | --- |
1519
+ | 3.10.224 | 02/06/2025 | added storefront_host_name to channel partner order object |
1518
1520
  | 3.10.223 | 01/09/2025 | fix for broken 4.0.39 due to incorrect query sig on getCustomers |
1519
1521
  | 3.10.222 | 01/09/2025 | added emails parameter to customer queries, refundOrder added to Channel partner |
1520
1522
  | 3.10.221 | 12/13/2024 | added user and group ids to conversation agent auth object |
@@ -90,6 +90,7 @@ Name | Type | Description | Notes
90
90
  **special_instructions** | **String** | Special instructions from the customer regarding shipping | [optional]
91
91
  **store_completed** | **BOOLEAN** | If true the order bypasses shipping and is marked completed | [optional]
92
92
  **store_if_payment_declines** | **BOOLEAN** | If true any failed payments are placed into Accounts Receivable. If false any failed payments result in a rejected order resulting in errors thrown during the insert routine | [optional]
93
+ **storefront_host_name** | **String** | StoreFront host name associated with the order | [optional]
93
94
  **tax_county** | **String** | The optional shipping county used to determine exact taxes | [optional]
94
95
  **tax_exempt** | **BOOLEAN** | If true this order is marked as being tax exempt | [optional]
95
96
  **transaction** | [**ChannelPartnerOrderTransaction**](ChannelPartnerOrderTransaction.md) | | [optional]
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
6
6
  **customer_profile_attachment_oid** | **Integer** | Attachment identifier | [optional]
7
7
  **description** | **String** | Description | [optional]
8
8
  **file_name** | **String** | File name | [optional]
9
- **mime_type** | **String** | Mime typoe | [optional]
9
+ **mime_type** | **String** | Mime type | [optional]
10
10
  **upload_dts** | **String** | Upload date/time | [optional]
11
11
 
12
12
 
data/docs/ItemReview.md CHANGED
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
7
7
  **featured** | **BOOLEAN** | | [optional]
8
8
  **helperful_no_votes** | **Integer** | | [optional]
9
9
  **helpful_yes_votes** | **Integer** | | [optional]
10
+ **merchant_reply** | **String** | Merchant Reply (set to an empty string to remove) | [optional]
10
11
  **order_id** | **String** | | [optional]
11
12
  **overall** | **Float** | | [optional]
12
13
  **rating_name1** | **String** | Rating Name 1 | [optional]
data/docs/Order.md CHANGED
@@ -13,6 +13,7 @@ Name | Type | Description | Notes
13
13
  **creation_dts** | **String** | Date/time that the order was created | [optional]
14
14
  **currency_code** | **String** | Currency code that the customer used if different than the merchant's base currency code | [optional]
15
15
  **current_stage** | **String** | Current stage that the order is in. | [optional]
16
+ **current_stage_histories** | [**Array<OrderCurrentStageHistory>**](OrderCurrentStageHistory.md) | History of the changes to the current_stage field | [optional]
16
17
  **customer_profile** | [**Customer**](Customer.md) | | [optional]
17
18
  **digital_order** | [**OrderDigitalOrder**](OrderDigitalOrder.md) | | [optional]
18
19
  **edi** | [**OrderEdi**](OrderEdi.md) | | [optional]
@@ -0,0 +1,10 @@
1
+ # UltracartClient::OrderCurrentStageHistory
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **after_stage** | **String** | New stage that the order is in. | [optional]
7
+ **before_stage** | **String** | Previous stage that the order was in. | [optional]
8
+ **transition_dts** | **String** | Date/time that the stage transitioned | [optional]
9
+
10
+
data/docs/OrderItem.md CHANGED
@@ -5,6 +5,7 @@ Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **accounting_code** | **String** | QuickBooks code | [optional]
7
7
  **activation_codes** | **Array<String>** | Activation codes assigned to this item | [optional]
8
+ **actual_cogs** | [**Currency**](Currency.md) | | [optional]
8
9
  **arbitrary_unit_cost** | [**Currency**](Currency.md) | | [optional]
9
10
  **auto_order_last_rebill_dts** | **String** | Date/time of the last rebill, used only during order insert to help project future rebills | [optional]
10
11
  **auto_order_schedule** | **String** | Auto order schedule, used only during inserts supplying the recurring schedule | [optional]
data/docs/OrderSummary.md CHANGED
@@ -4,7 +4,11 @@
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **actual_fulfillment** | [**Currency**](Currency.md) | | [optional]
7
+ **actual_other_cost** | [**Currency**](Currency.md) | | [optional]
7
8
  **actual_payment_processing** | [**Currency**](Currency.md) | | [optional]
9
+ **actual_profit** | [**Currency**](Currency.md) | | [optional]
10
+ **actual_profit_analyzed** | **BOOLEAN** | Actual profit has been analyzed | [optional]
11
+ **actual_profit_review** | **BOOLEAN** | Actual profit needs review | [optional]
8
12
  **actual_shipping** | [**Currency**](Currency.md) | | [optional]
9
13
  **arbitrary_shipping_handling_total** | [**Currency**](Currency.md) | | [optional]
10
14
  **health_benefit_card_amount** | [**Currency**](Currency.md) | | [optional]
@@ -275,6 +275,9 @@ module UltracartClient
275
275
  # If true any failed payments are placed into Accounts Receivable. If false any failed payments result in a rejected order resulting in errors thrown during the insert routine
276
276
  attr_accessor :store_if_payment_declines
277
277
 
278
+ # StoreFront host name associated with the order
279
+ attr_accessor :storefront_host_name
280
+
278
281
  # The optional shipping county used to determine exact taxes
279
282
  attr_accessor :tax_county
280
283
 
@@ -398,6 +401,7 @@ module UltracartClient
398
401
  :'special_instructions' => :'special_instructions',
399
402
  :'store_completed' => :'store_completed',
400
403
  :'store_if_payment_declines' => :'store_if_payment_declines',
404
+ :'storefront_host_name' => :'storefront_host_name',
401
405
  :'tax_county' => :'tax_county',
402
406
  :'tax_exempt' => :'tax_exempt',
403
407
  :'transaction' => :'transaction',
@@ -495,6 +499,7 @@ module UltracartClient
495
499
  :'special_instructions' => :'String',
496
500
  :'store_completed' => :'BOOLEAN',
497
501
  :'store_if_payment_declines' => :'BOOLEAN',
502
+ :'storefront_host_name' => :'String',
498
503
  :'tax_county' => :'String',
499
504
  :'tax_exempt' => :'BOOLEAN',
500
505
  :'transaction' => :'ChannelPartnerOrderTransaction',
@@ -864,6 +869,10 @@ module UltracartClient
864
869
  self.store_if_payment_declines = attributes[:'store_if_payment_declines']
865
870
  end
866
871
 
872
+ if attributes.has_key?(:'storefront_host_name')
873
+ self.storefront_host_name = attributes[:'storefront_host_name']
874
+ end
875
+
867
876
  if attributes.has_key?(:'tax_county')
868
877
  self.tax_county = attributes[:'tax_county']
869
878
  end
@@ -1577,6 +1586,7 @@ module UltracartClient
1577
1586
  special_instructions == o.special_instructions &&
1578
1587
  store_completed == o.store_completed &&
1579
1588
  store_if_payment_declines == o.store_if_payment_declines &&
1589
+ storefront_host_name == o.storefront_host_name &&
1580
1590
  tax_county == o.tax_county &&
1581
1591
  tax_exempt == o.tax_exempt &&
1582
1592
  transaction == o.transaction &&
@@ -1592,7 +1602,7 @@ module UltracartClient
1592
1602
  # Calculates hash code according to all attributes.
1593
1603
  # @return [Fixnum] Hash code
1594
1604
  def hash
1595
- [advertising_source, affiliate_id, affiliate_sub_id, arbitrary_shipping_handling_total, arbitrary_tax, arbitrary_tax_rate, arbitrary_taxable_subtotal, associate_with_customer_profile_if_present, auto_approve_purchase_order, billto_address1, billto_address2, billto_city, billto_company, billto_country_code, billto_day_phone, billto_evening_phone, billto_first_name, billto_last_name, billto_postal_code, billto_state_region, billto_title, cc_email, channel_partner_order_id, consider_recurring, coupons, credit_card_authorization_amount, credit_card_authorization_dts, credit_card_authorization_number, credit_card_expiration_month, credit_card_expiration_year, credit_card_type, custom_field1, custom_field2, custom_field3, custom_field4, custom_field5, custom_field6, custom_field7, delivery_date, echeck_bank_aba_code, echeck_bank_account_name, echeck_bank_account_number, echeck_bank_account_type, echeck_bank_name, echeck_bank_owner_type, echeck_customer_tax_id, echeck_drivers_license_dob, echeck_drivers_license_number, echeck_drivers_license_state, email, gift, gift_email, gift_message, hosted_fields_card_token, hosted_fields_cvv_token, insurance_application_id, insurance_claim_id, ip_address, items, least_cost_route, least_cost_route_shipping_methods, mailing_list_opt_in, no_realtime_payment_processing, payment_method, purchase_order_number, rotating_transaction_gateway_code, sales_rep_code, screen_branding_theme_code, ship_on_date, ship_to_residential, shipping_method, shipto_address1, shipto_address2, shipto_city, shipto_company, shipto_country_code, shipto_day_phone, shipto_evening_phone, shipto_first_name, shipto_last_name, shipto_postal_code, shipto_state_region, shipto_title, skip_payment_processing, special_instructions, store_completed, store_if_payment_declines, tax_county, tax_exempt, transaction, treat_warnings_as_errors].hash
1605
+ [advertising_source, affiliate_id, affiliate_sub_id, arbitrary_shipping_handling_total, arbitrary_tax, arbitrary_tax_rate, arbitrary_taxable_subtotal, associate_with_customer_profile_if_present, auto_approve_purchase_order, billto_address1, billto_address2, billto_city, billto_company, billto_country_code, billto_day_phone, billto_evening_phone, billto_first_name, billto_last_name, billto_postal_code, billto_state_region, billto_title, cc_email, channel_partner_order_id, consider_recurring, coupons, credit_card_authorization_amount, credit_card_authorization_dts, credit_card_authorization_number, credit_card_expiration_month, credit_card_expiration_year, credit_card_type, custom_field1, custom_field2, custom_field3, custom_field4, custom_field5, custom_field6, custom_field7, delivery_date, echeck_bank_aba_code, echeck_bank_account_name, echeck_bank_account_number, echeck_bank_account_type, echeck_bank_name, echeck_bank_owner_type, echeck_customer_tax_id, echeck_drivers_license_dob, echeck_drivers_license_number, echeck_drivers_license_state, email, gift, gift_email, gift_message, hosted_fields_card_token, hosted_fields_cvv_token, insurance_application_id, insurance_claim_id, ip_address, items, least_cost_route, least_cost_route_shipping_methods, mailing_list_opt_in, no_realtime_payment_processing, payment_method, purchase_order_number, rotating_transaction_gateway_code, sales_rep_code, screen_branding_theme_code, ship_on_date, ship_to_residential, shipping_method, shipto_address1, shipto_address2, shipto_city, shipto_company, shipto_country_code, shipto_day_phone, shipto_evening_phone, shipto_first_name, shipto_last_name, shipto_postal_code, shipto_state_region, shipto_title, skip_payment_processing, special_instructions, store_completed, store_if_payment_declines, storefront_host_name, tax_county, tax_exempt, transaction, treat_warnings_as_errors].hash
1596
1606
  end
1597
1607
 
1598
1608
  # Builds the object from hash
@@ -23,7 +23,7 @@ module UltracartClient
23
23
  # File name
24
24
  attr_accessor :file_name
25
25
 
26
- # Mime typoe
26
+ # Mime type
27
27
  attr_accessor :mime_type
28
28
 
29
29
  # Upload date/time
@@ -23,6 +23,9 @@ module UltracartClient
23
23
 
24
24
  attr_accessor :helpful_yes_votes
25
25
 
26
+ # Merchant Reply (set to an empty string to remove)
27
+ attr_accessor :merchant_reply
28
+
26
29
  attr_accessor :order_id
27
30
 
28
31
  attr_accessor :overall
@@ -136,6 +139,7 @@ module UltracartClient
136
139
  :'featured' => :'featured',
137
140
  :'helperful_no_votes' => :'helperful_no_votes',
138
141
  :'helpful_yes_votes' => :'helpful_yes_votes',
142
+ :'merchant_reply' => :'merchant_reply',
139
143
  :'order_id' => :'order_id',
140
144
  :'overall' => :'overall',
141
145
  :'rating_name1' => :'rating_name1',
@@ -179,6 +183,7 @@ module UltracartClient
179
183
  :'featured' => :'BOOLEAN',
180
184
  :'helperful_no_votes' => :'Integer',
181
185
  :'helpful_yes_votes' => :'Integer',
186
+ :'merchant_reply' => :'String',
182
187
  :'order_id' => :'String',
183
188
  :'overall' => :'Float',
184
189
  :'rating_name1' => :'String',
@@ -239,6 +244,10 @@ module UltracartClient
239
244
  self.helpful_yes_votes = attributes[:'helpful_yes_votes']
240
245
  end
241
246
 
247
+ if attributes.has_key?(:'merchant_reply')
248
+ self.merchant_reply = attributes[:'merchant_reply']
249
+ end
250
+
242
251
  if attributes.has_key?(:'order_id')
243
252
  self.order_id = attributes[:'order_id']
244
253
  end
@@ -376,6 +385,10 @@ module UltracartClient
376
385
  # @return Array for valid properties with the reasons
377
386
  def list_invalid_properties
378
387
  invalid_properties = Array.new
388
+ if !@merchant_reply.nil? && @merchant_reply.to_s.length > 10000
389
+ invalid_properties.push('invalid value for "merchant_reply", the character length must be smaller than or equal to 10000.')
390
+ end
391
+
379
392
  if !@rating_name1.nil? && @rating_name1.to_s.length > 100
380
393
  invalid_properties.push('invalid value for "rating_name1", the character length must be smaller than or equal to 100.')
381
394
  end
@@ -446,6 +459,7 @@ module UltracartClient
446
459
  # Check to see if the all the properties in the model are valid
447
460
  # @return true if the model is valid
448
461
  def valid?
462
+ return false if !@merchant_reply.nil? && @merchant_reply.to_s.length > 10000
449
463
  return false if !@rating_name1.nil? && @rating_name1.to_s.length > 100
450
464
  return false if !@rating_name10.nil? && @rating_name10.to_s.length > 100
451
465
  return false if !@rating_name2.nil? && @rating_name2.to_s.length > 100
@@ -467,6 +481,16 @@ module UltracartClient
467
481
  true
468
482
  end
469
483
 
484
+ # Custom attribute writer method with validation
485
+ # @param [Object] merchant_reply Value to be assigned
486
+ def merchant_reply=(merchant_reply)
487
+ if !merchant_reply.nil? && merchant_reply.to_s.length > 10000
488
+ fail ArgumentError, 'invalid value for "merchant_reply", the character length must be smaller than or equal to 10000.'
489
+ end
490
+
491
+ @merchant_reply = merchant_reply
492
+ end
493
+
470
494
  # Custom attribute writer method with validation
471
495
  # @param [Object] rating_name1 Value to be assigned
472
496
  def rating_name1=(rating_name1)
@@ -646,6 +670,7 @@ module UltracartClient
646
670
  featured == o.featured &&
647
671
  helperful_no_votes == o.helperful_no_votes &&
648
672
  helpful_yes_votes == o.helpful_yes_votes &&
673
+ merchant_reply == o.merchant_reply &&
649
674
  order_id == o.order_id &&
650
675
  overall == o.overall &&
651
676
  rating_name1 == o.rating_name1 &&
@@ -690,7 +715,7 @@ module UltracartClient
690
715
  # Calculates hash code according to all attributes.
691
716
  # @return [Fixnum] Hash code
692
717
  def hash
693
- [customer_profile_oid, featured, helperful_no_votes, helpful_yes_votes, order_id, overall, rating_name1, rating_name10, rating_name2, rating_name3, rating_name4, rating_name5, rating_name6, rating_name7, rating_name8, rating_name9, rating_score1, rating_score10, rating_score2, rating_score3, rating_score4, rating_score5, rating_score6, rating_score7, rating_score8, rating_score9, recommend_store_to_friend, recommend_to_friend, review, review_oid, reviewed_nickname, reviewer_email, reviewer_location, status, store_feedback, submitted_dts, title].hash
718
+ [customer_profile_oid, featured, helperful_no_votes, helpful_yes_votes, merchant_reply, order_id, overall, rating_name1, rating_name10, rating_name2, rating_name3, rating_name4, rating_name5, rating_name6, rating_name7, rating_name8, rating_name9, rating_score1, rating_score10, rating_score2, rating_score3, rating_score4, rating_score5, rating_score6, rating_score7, rating_score8, rating_score9, recommend_store_to_friend, recommend_to_friend, review, review_oid, reviewed_nickname, reviewer_email, reviewer_location, status, store_feedback, submitted_dts, title].hash
694
719
  end
695
720
 
696
721
  # Builds the object from hash
@@ -39,6 +39,9 @@ module UltracartClient
39
39
  # Current stage that the order is in.
40
40
  attr_accessor :current_stage
41
41
 
42
+ # History of the changes to the current_stage field
43
+ attr_accessor :current_stage_histories
44
+
42
45
  attr_accessor :customer_profile
43
46
 
44
47
  attr_accessor :digital_order
@@ -142,6 +145,7 @@ module UltracartClient
142
145
  :'creation_dts' => :'creation_dts',
143
146
  :'currency_code' => :'currency_code',
144
147
  :'current_stage' => :'current_stage',
148
+ :'current_stage_histories' => :'current_stage_histories',
145
149
  :'customer_profile' => :'customer_profile',
146
150
  :'digital_order' => :'digital_order',
147
151
  :'edi' => :'edi',
@@ -186,6 +190,7 @@ module UltracartClient
186
190
  :'creation_dts' => :'String',
187
191
  :'currency_code' => :'String',
188
192
  :'current_stage' => :'String',
193
+ :'current_stage_histories' => :'Array<OrderCurrentStageHistory>',
189
194
  :'customer_profile' => :'Customer',
190
195
  :'digital_order' => :'OrderDigitalOrder',
191
196
  :'edi' => :'OrderEdi',
@@ -269,6 +274,12 @@ module UltracartClient
269
274
  self.current_stage = attributes[:'current_stage']
270
275
  end
271
276
 
277
+ if attributes.has_key?(:'current_stage_histories')
278
+ if (value = attributes[:'current_stage_histories']).is_a?(Array)
279
+ self.current_stage_histories = value
280
+ end
281
+ end
282
+
272
283
  if attributes.has_key?(:'customer_profile')
273
284
  self.customer_profile = attributes[:'customer_profile']
274
285
  end
@@ -460,6 +471,7 @@ module UltracartClient
460
471
  creation_dts == o.creation_dts &&
461
472
  currency_code == o.currency_code &&
462
473
  current_stage == o.current_stage &&
474
+ current_stage_histories == o.current_stage_histories &&
463
475
  customer_profile == o.customer_profile &&
464
476
  digital_order == o.digital_order &&
465
477
  edi == o.edi &&
@@ -499,7 +511,7 @@ module UltracartClient
499
511
  # Calculates hash code according to all attributes.
500
512
  # @return [Fixnum] Hash code
501
513
  def hash
502
- [affiliates, auto_order, billing, buysafe, channel_partner, checkout, coupons, creation_dts, currency_code, current_stage, customer_profile, digital_order, edi, exchange_rate, fraud_score, gift, gift_certificate, internal, items, language_iso_code, linked_shipment, marketing, merchant_id, order_id, payment, point_of_sale, properties, quote, refund_dts, refund_reason, reject_dts, reject_reason, salesforce, shipping, summary, tags, taxes, utms].hash
514
+ [affiliates, auto_order, billing, buysafe, channel_partner, checkout, coupons, creation_dts, currency_code, current_stage, current_stage_histories, customer_profile, digital_order, edi, exchange_rate, fraud_score, gift, gift_certificate, internal, items, language_iso_code, linked_shipment, marketing, merchant_id, order_id, payment, point_of_sale, properties, quote, refund_dts, refund_reason, reject_dts, reject_reason, salesforce, shipping, summary, tags, taxes, utms].hash
503
515
  end
504
516
 
505
517
  # Builds the object from hash
@@ -0,0 +1,251 @@
1
+ =begin
2
+ #UltraCart Rest API V2
3
+
4
+ #UltraCart REST API Version 2
5
+
6
+ OpenAPI spec version: 2.0.0
7
+ Contact: support@ultracart.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.15-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module UltracartClient
16
+ class OrderCurrentStageHistory
17
+ # New stage that the order is in.
18
+ attr_accessor :after_stage
19
+
20
+ # Previous stage that the order was in.
21
+ attr_accessor :before_stage
22
+
23
+ # Date/time that the stage transitioned
24
+ attr_accessor :transition_dts
25
+
26
+ class EnumAttributeValidator
27
+ attr_reader :datatype
28
+ attr_reader :allowable_values
29
+
30
+ def initialize(datatype, allowable_values)
31
+ @allowable_values = allowable_values.map do |value|
32
+ case datatype.to_s
33
+ when /Integer/i
34
+ value.to_i
35
+ when /Float/i
36
+ value.to_f
37
+ else
38
+ value
39
+ end
40
+ end
41
+ end
42
+
43
+ def valid?(value)
44
+ !value || allowable_values.include?(value)
45
+ end
46
+ end
47
+
48
+ # Attribute mapping from ruby-style variable name to JSON key.
49
+ def self.attribute_map
50
+ {
51
+ :'after_stage' => :'after_stage',
52
+ :'before_stage' => :'before_stage',
53
+ :'transition_dts' => :'transition_dts'
54
+ }
55
+ end
56
+
57
+ # Attribute type mapping.
58
+ def self.swagger_types
59
+ {
60
+ :'after_stage' => :'String',
61
+ :'before_stage' => :'String',
62
+ :'transition_dts' => :'String'
63
+ }
64
+ end
65
+
66
+ # Initializes the object
67
+ # @param [Hash] attributes Model attributes in the form of hash
68
+ def initialize(attributes = {})
69
+ return unless attributes.is_a?(Hash)
70
+
71
+ # convert string to symbol for hash key
72
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
73
+
74
+ if attributes.has_key?(:'after_stage')
75
+ self.after_stage = attributes[:'after_stage']
76
+ end
77
+
78
+ if attributes.has_key?(:'before_stage')
79
+ self.before_stage = attributes[:'before_stage']
80
+ end
81
+
82
+ if attributes.has_key?(:'transition_dts')
83
+ self.transition_dts = attributes[:'transition_dts']
84
+ end
85
+ end
86
+
87
+ # Show invalid properties with the reasons. Usually used together with valid?
88
+ # @return Array for valid properties with the reasons
89
+ def list_invalid_properties
90
+ invalid_properties = Array.new
91
+ invalid_properties
92
+ end
93
+
94
+ # Check to see if the all the properties in the model are valid
95
+ # @return true if the model is valid
96
+ def valid?
97
+ after_stage_validator = EnumAttributeValidator.new('String', ['Accounts Receivable', 'Pending Clearance', 'Fraud Review', 'Rejected', 'Shipping Department', 'Completed Order', 'Quote Request', 'Quote Sent', 'Least Cost Routing', 'Unknown', 'Pre-ordered', 'Advanced Order Routing', 'Hold'])
98
+ return false unless after_stage_validator.valid?(@after_stage)
99
+ before_stage_validator = EnumAttributeValidator.new('String', ['Accounts Receivable', 'Pending Clearance', 'Fraud Review', 'Rejected', 'Shipping Department', 'Completed Order', 'Quote Request', 'Quote Sent', 'Least Cost Routing', 'Unknown', 'Pre-ordered', 'Advanced Order Routing', 'Hold'])
100
+ return false unless before_stage_validator.valid?(@before_stage)
101
+ true
102
+ end
103
+
104
+ # Custom attribute writer method checking allowed values (enum).
105
+ # @param [Object] after_stage Object to be assigned
106
+ def after_stage=(after_stage)
107
+ validator = EnumAttributeValidator.new('String', ['Accounts Receivable', 'Pending Clearance', 'Fraud Review', 'Rejected', 'Shipping Department', 'Completed Order', 'Quote Request', 'Quote Sent', 'Least Cost Routing', 'Unknown', 'Pre-ordered', 'Advanced Order Routing', 'Hold'])
108
+ unless validator.valid?(after_stage)
109
+ fail ArgumentError, 'invalid value for "after_stage", must be one of #{validator.allowable_values}.'
110
+ end
111
+ @after_stage = after_stage
112
+ end
113
+
114
+ # Custom attribute writer method checking allowed values (enum).
115
+ # @param [Object] before_stage Object to be assigned
116
+ def before_stage=(before_stage)
117
+ validator = EnumAttributeValidator.new('String', ['Accounts Receivable', 'Pending Clearance', 'Fraud Review', 'Rejected', 'Shipping Department', 'Completed Order', 'Quote Request', 'Quote Sent', 'Least Cost Routing', 'Unknown', 'Pre-ordered', 'Advanced Order Routing', 'Hold'])
118
+ unless validator.valid?(before_stage)
119
+ fail ArgumentError, 'invalid value for "before_stage", must be one of #{validator.allowable_values}.'
120
+ end
121
+ @before_stage = before_stage
122
+ end
123
+
124
+ # Checks equality by comparing each attribute.
125
+ # @param [Object] Object to be compared
126
+ def ==(o)
127
+ return true if self.equal?(o)
128
+ self.class == o.class &&
129
+ after_stage == o.after_stage &&
130
+ before_stage == o.before_stage &&
131
+ transition_dts == o.transition_dts
132
+ end
133
+
134
+ # @see the `==` method
135
+ # @param [Object] Object to be compared
136
+ def eql?(o)
137
+ self == o
138
+ end
139
+
140
+ # Calculates hash code according to all attributes.
141
+ # @return [Fixnum] Hash code
142
+ def hash
143
+ [after_stage, before_stage, transition_dts].hash
144
+ end
145
+
146
+ # Builds the object from hash
147
+ # @param [Hash] attributes Model attributes in the form of hash
148
+ # @return [Object] Returns the model itself
149
+ def build_from_hash(attributes)
150
+ return nil unless attributes.is_a?(Hash)
151
+ self.class.swagger_types.each_pair do |key, type|
152
+ if type =~ /\AArray<(.*)>/i
153
+ # check to ensure the input is an array given that the attribute
154
+ # is documented as an array but the input is not
155
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
156
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
157
+ end
158
+ elsif !attributes[self.class.attribute_map[key]].nil?
159
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
160
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
161
+ end
162
+
163
+ self
164
+ end
165
+
166
+ # Deserializes the data based on type
167
+ # @param string type Data type
168
+ # @param string value Value to be deserialized
169
+ # @return [Object] Deserialized data
170
+ def _deserialize(type, value)
171
+ case type.to_sym
172
+ when :DateTime
173
+ DateTime.parse(value)
174
+ when :Date
175
+ Date.parse(value)
176
+ when :String
177
+ value.to_s
178
+ when :Integer
179
+ value.to_i
180
+ when :Float
181
+ value.to_f
182
+ when :BOOLEAN
183
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
184
+ true
185
+ else
186
+ false
187
+ end
188
+ when :Object
189
+ # generic object (usually a Hash), return directly
190
+ value
191
+ when /\AArray<(?<inner_type>.+)>\z/
192
+ inner_type = Regexp.last_match[:inner_type]
193
+ value.map { |v| _deserialize(inner_type, v) }
194
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
195
+ k_type = Regexp.last_match[:k_type]
196
+ v_type = Regexp.last_match[:v_type]
197
+ {}.tap do |hash|
198
+ value.each do |k, v|
199
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
200
+ end
201
+ end
202
+ else # model
203
+ temp_model = UltracartClient.const_get(type).new
204
+ temp_model.build_from_hash(value)
205
+ end
206
+ end
207
+
208
+ # Returns the string representation of the object
209
+ # @return [String] String presentation of the object
210
+ def to_s
211
+ to_hash.to_s
212
+ end
213
+
214
+ # to_body is an alias to to_hash (backward compatibility)
215
+ # @return [Hash] Returns the object in the form of hash
216
+ def to_body
217
+ to_hash
218
+ end
219
+
220
+ # Returns the object in the form of hash
221
+ # @return [Hash] Returns the object in the form of hash
222
+ def to_hash
223
+ hash = {}
224
+ self.class.attribute_map.each_pair do |attr, param|
225
+ value = self.send(attr)
226
+ next if value.nil?
227
+ hash[param] = _to_hash(value)
228
+ end
229
+ hash
230
+ end
231
+
232
+ # Outputs non-array value in the form of hash
233
+ # For object, use to_hash. Otherwise, just return the value
234
+ # @param [Object] value Any valid value
235
+ # @return [Hash] Returns the value in the form of hash
236
+ def _to_hash(value)
237
+ if value.is_a?(Array)
238
+ value.compact.map { |v| _to_hash(v) }
239
+ elsif value.is_a?(Hash)
240
+ {}.tap do |hash|
241
+ value.each { |k, v| hash[k] = _to_hash(v) }
242
+ end
243
+ elsif value.respond_to? :to_hash
244
+ value.to_hash
245
+ else
246
+ value
247
+ end
248
+ end
249
+
250
+ end
251
+ end
@@ -20,6 +20,8 @@ module UltracartClient
20
20
  # Activation codes assigned to this item
21
21
  attr_accessor :activation_codes
22
22
 
23
+ attr_accessor :actual_cogs
24
+
23
25
  attr_accessor :arbitrary_unit_cost
24
26
 
25
27
  # Date/time of the last rebill, used only during order insert to help project future rebills
@@ -223,6 +225,7 @@ module UltracartClient
223
225
  {
224
226
  :'accounting_code' => :'accounting_code',
225
227
  :'activation_codes' => :'activation_codes',
228
+ :'actual_cogs' => :'actual_cogs',
226
229
  :'arbitrary_unit_cost' => :'arbitrary_unit_cost',
227
230
  :'auto_order_last_rebill_dts' => :'auto_order_last_rebill_dts',
228
231
  :'auto_order_schedule' => :'auto_order_schedule',
@@ -294,6 +297,7 @@ module UltracartClient
294
297
  {
295
298
  :'accounting_code' => :'String',
296
299
  :'activation_codes' => :'Array<String>',
300
+ :'actual_cogs' => :'Currency',
297
301
  :'arbitrary_unit_cost' => :'Currency',
298
302
  :'auto_order_last_rebill_dts' => :'String',
299
303
  :'auto_order_schedule' => :'String',
@@ -378,6 +382,10 @@ module UltracartClient
378
382
  end
379
383
  end
380
384
 
385
+ if attributes.has_key?(:'actual_cogs')
386
+ self.actual_cogs = attributes[:'actual_cogs']
387
+ end
388
+
381
389
  if attributes.has_key?(:'arbitrary_unit_cost')
382
390
  self.arbitrary_unit_cost = attributes[:'arbitrary_unit_cost']
383
391
  end
@@ -834,6 +842,7 @@ module UltracartClient
834
842
  self.class == o.class &&
835
843
  accounting_code == o.accounting_code &&
836
844
  activation_codes == o.activation_codes &&
845
+ actual_cogs == o.actual_cogs &&
837
846
  arbitrary_unit_cost == o.arbitrary_unit_cost &&
838
847
  auto_order_last_rebill_dts == o.auto_order_last_rebill_dts &&
839
848
  auto_order_schedule == o.auto_order_schedule &&
@@ -908,7 +917,7 @@ module UltracartClient
908
917
  # Calculates hash code according to all attributes.
909
918
  # @return [Fixnum] Hash code
910
919
  def hash
911
- [accounting_code, activation_codes, arbitrary_unit_cost, auto_order_last_rebill_dts, auto_order_schedule, barcode, barcode_gtin12, barcode_gtin14, barcode_upc11, barcode_upc12, 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_index, 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, parent_item_index, parent_merchant_item_id, perishable_class, pricing_tier_name, properties, quantity, quantity_refunded, quickbooks_class, refund_reason, return_reason, ship_separately, shipped_by_user, shipped_dts, shipping_status, special_product_type, tags, tax_free, tax_product_type, taxable_cost, total_cost_with_discount, total_refunded, transmitted_to_distribution_center_dts, unit_cost_with_discount, upsell, weight, width].hash
920
+ [accounting_code, activation_codes, actual_cogs, arbitrary_unit_cost, auto_order_last_rebill_dts, auto_order_schedule, barcode, barcode_gtin12, barcode_gtin14, barcode_upc11, barcode_upc12, 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_index, 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, parent_item_index, parent_merchant_item_id, perishable_class, pricing_tier_name, properties, quantity, quantity_refunded, quickbooks_class, refund_reason, return_reason, ship_separately, shipped_by_user, shipped_dts, shipping_status, special_product_type, tags, tax_free, tax_product_type, taxable_cost, total_cost_with_discount, total_refunded, transmitted_to_distribution_center_dts, unit_cost_with_discount, upsell, weight, width].hash
912
921
  end
913
922
 
914
923
  # Builds the object from hash
@@ -16,8 +16,18 @@ module UltracartClient
16
16
  class OrderSummary
17
17
  attr_accessor :actual_fulfillment
18
18
 
19
+ attr_accessor :actual_other_cost
20
+
19
21
  attr_accessor :actual_payment_processing
20
22
 
23
+ attr_accessor :actual_profit
24
+
25
+ # Actual profit has been analyzed
26
+ attr_accessor :actual_profit_analyzed
27
+
28
+ # Actual profit needs review
29
+ attr_accessor :actual_profit_review
30
+
21
31
  attr_accessor :actual_shipping
22
32
 
23
33
  attr_accessor :arbitrary_shipping_handling_total
@@ -62,7 +72,11 @@ module UltracartClient
62
72
  def self.attribute_map
63
73
  {
64
74
  :'actual_fulfillment' => :'actual_fulfillment',
75
+ :'actual_other_cost' => :'actual_other_cost',
65
76
  :'actual_payment_processing' => :'actual_payment_processing',
77
+ :'actual_profit' => :'actual_profit',
78
+ :'actual_profit_analyzed' => :'actual_profit_analyzed',
79
+ :'actual_profit_review' => :'actual_profit_review',
66
80
  :'actual_shipping' => :'actual_shipping',
67
81
  :'arbitrary_shipping_handling_total' => :'arbitrary_shipping_handling_total',
68
82
  :'health_benefit_card_amount' => :'health_benefit_card_amount',
@@ -90,7 +104,11 @@ module UltracartClient
90
104
  def self.swagger_types
91
105
  {
92
106
  :'actual_fulfillment' => :'Currency',
107
+ :'actual_other_cost' => :'Currency',
93
108
  :'actual_payment_processing' => :'Currency',
109
+ :'actual_profit' => :'Currency',
110
+ :'actual_profit_analyzed' => :'BOOLEAN',
111
+ :'actual_profit_review' => :'BOOLEAN',
94
112
  :'actual_shipping' => :'Currency',
95
113
  :'arbitrary_shipping_handling_total' => :'Currency',
96
114
  :'health_benefit_card_amount' => :'Currency',
@@ -126,10 +144,26 @@ module UltracartClient
126
144
  self.actual_fulfillment = attributes[:'actual_fulfillment']
127
145
  end
128
146
 
147
+ if attributes.has_key?(:'actual_other_cost')
148
+ self.actual_other_cost = attributes[:'actual_other_cost']
149
+ end
150
+
129
151
  if attributes.has_key?(:'actual_payment_processing')
130
152
  self.actual_payment_processing = attributes[:'actual_payment_processing']
131
153
  end
132
154
 
155
+ if attributes.has_key?(:'actual_profit')
156
+ self.actual_profit = attributes[:'actual_profit']
157
+ end
158
+
159
+ if attributes.has_key?(:'actual_profit_analyzed')
160
+ self.actual_profit_analyzed = attributes[:'actual_profit_analyzed']
161
+ end
162
+
163
+ if attributes.has_key?(:'actual_profit_review')
164
+ self.actual_profit_review = attributes[:'actual_profit_review']
165
+ end
166
+
133
167
  if attributes.has_key?(:'actual_shipping')
134
168
  self.actual_shipping = attributes[:'actual_shipping']
135
169
  end
@@ -230,7 +264,11 @@ module UltracartClient
230
264
  return true if self.equal?(o)
231
265
  self.class == o.class &&
232
266
  actual_fulfillment == o.actual_fulfillment &&
267
+ actual_other_cost == o.actual_other_cost &&
233
268
  actual_payment_processing == o.actual_payment_processing &&
269
+ actual_profit == o.actual_profit &&
270
+ actual_profit_analyzed == o.actual_profit_analyzed &&
271
+ actual_profit_review == o.actual_profit_review &&
234
272
  actual_shipping == o.actual_shipping &&
235
273
  arbitrary_shipping_handling_total == o.arbitrary_shipping_handling_total &&
236
274
  health_benefit_card_amount == o.health_benefit_card_amount &&
@@ -262,7 +300,7 @@ module UltracartClient
262
300
  # Calculates hash code according to all attributes.
263
301
  # @return [Fixnum] Hash code
264
302
  def hash
265
- [actual_fulfillment, actual_payment_processing, actual_shipping, arbitrary_shipping_handling_total, health_benefit_card_amount, health_benefit_card_refunded, internal_gift_certificate_amount, internal_gift_certificate_refunded, other_refunded, shipping_handling_refunded, shipping_handling_total, shipping_handling_total_discount, subtotal, subtotal_discount, subtotal_discount_refunded, subtotal_refunded, tax, tax_refunded, taxable_subtotal, taxable_subtotal_discount, total, total_refunded].hash
303
+ [actual_fulfillment, actual_other_cost, actual_payment_processing, actual_profit, actual_profit_analyzed, actual_profit_review, actual_shipping, arbitrary_shipping_handling_total, health_benefit_card_amount, health_benefit_card_refunded, internal_gift_certificate_amount, internal_gift_certificate_refunded, other_refunded, shipping_handling_refunded, shipping_handling_total, shipping_handling_total_discount, subtotal, subtotal_discount, subtotal_discount_refunded, subtotal_refunded, tax, tax_refunded, taxable_subtotal, taxable_subtotal_discount, total, total_refunded].hash
266
304
  end
267
305
 
268
306
  # 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.10.223'
14
+ VERSION = '3.10.224'
15
15
  end
data/lib/ultracart_api.rb CHANGED
@@ -635,6 +635,7 @@ require 'ultracart_api/models/order_by_token_query'
635
635
  require 'ultracart_api/models/order_channel_partner'
636
636
  require 'ultracart_api/models/order_checkout'
637
637
  require 'ultracart_api/models/order_coupon'
638
+ require 'ultracart_api/models/order_current_stage_history'
638
639
  require 'ultracart_api/models/order_digital_item'
639
640
  require 'ultracart_api/models/order_digital_order'
640
641
  require 'ultracart_api/models/order_edi'
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.10.223
4
+ version: 3.10.224
5
5
  platform: ruby
6
6
  authors:
7
7
  - UltraCart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-01-09 00:00:00.000000000 Z
11
+ date: 2025-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -854,6 +854,7 @@ files:
854
854
  - docs/OrderChannelPartner.md
855
855
  - docs/OrderCheckout.md
856
856
  - docs/OrderCoupon.md
857
+ - docs/OrderCurrentStageHistory.md
857
858
  - docs/OrderDigitalItem.md
858
859
  - docs/OrderDigitalOrder.md
859
860
  - docs/OrderEdi.md
@@ -1741,6 +1742,7 @@ files:
1741
1742
  - lib/ultracart_api/models/order_channel_partner.rb
1742
1743
  - lib/ultracart_api/models/order_checkout.rb
1743
1744
  - lib/ultracart_api/models/order_coupon.rb
1745
+ - lib/ultracart_api/models/order_current_stage_history.rb
1744
1746
  - lib/ultracart_api/models/order_digital_item.rb
1745
1747
  - lib/ultracart_api/models/order_digital_order.rb
1746
1748
  - lib/ultracart_api/models/order_edi.rb