ultracart_api 3.11.0 → 3.11.2

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: 725ed0b206f1917d80a865a5dc8dc8e6e790a95c5828bdf455db4bdc01404b6f
4
- data.tar.gz: 0ef425c465404557555727415f0996daf3dc534662b08b92ae46b9631bb5aa5c
3
+ metadata.gz: 4884646c4fa4b3b9ef78cc7f97ab91406fd6732589bd80a18884003f00bd1a71
4
+ data.tar.gz: d8f88a7ef7a109d24331e955191ad2671fff66fa4326286f414631086cadba12
5
5
  SHA512:
6
- metadata.gz: 6c17bbe56bc91e12b742a6a17de7688e40d9e9d5ab7463c0a70de7eed4280a3c7389127f0b3de3e4bbac19dd466b79114d5f29537f64209673cae7eb87a56378
7
- data.tar.gz: 80188f20da8972a8da1c8e2876b4ba1f936687fac228c69615cd303a66daf82e97a99da792732a1a419ec2dc08065083f2d77ba5646c0a68ac7cb0d8070abcbf
6
+ metadata.gz: b769e88deecca6c9c294de8e8162053f25485a33dd16c891b828f7922960cca86c1710744b752aab1d6d779912b5fdfc0e2ed5db2fcc84eb6c8d170b3fead923
7
+ data.tar.gz: a19b58e70f2943a8bc41271a570174f32578bff64bbbb93609ffc32b84a2910843de55e03959e95b0326d9b65465df3a9d69f558a0d6ace289e150f4d8df8f11
data/README.md CHANGED
@@ -7,9 +7,9 @@ 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.11.0
10
+ - Package version: 3.11.2
11
11
  - Build package: io.swagger.codegen.languages.RubyClientCodegen
12
- For more information, please visit [http://www.ultracart.com](http://www.ultracart.com)
12
+ For more information, please visit [http://www.ultracart.com/api/](http://www.ultracart.com/api/)
13
13
 
14
14
  ## Installation
15
15
 
@@ -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.11.0.gem
27
+ gem install ./ultracart_api-3.11.2.gem
28
28
  ```
29
- (for development, run `gem install --dev ./ultracart_api-3.11.0.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./ultracart_api-3.11.2.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.11.0'
35
+ gem 'ultracart_api', '~> 3.11.2'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -96,6 +96,7 @@ Class | Method | HTTP request | Description
96
96
  *UltracartClient::AutoOrderApi* | [**get_auto_orders**](docs/AutoOrderApi.md#get_auto_orders) | **GET** /auto_order/auto_orders | Retrieve auto orders
97
97
  *UltracartClient::AutoOrderApi* | [**get_auto_orders_batch**](docs/AutoOrderApi.md#get_auto_orders_batch) | **POST** /auto_order/auto_orders/batch | Retrieve auto order batch
98
98
  *UltracartClient::AutoOrderApi* | [**get_auto_orders_by_query**](docs/AutoOrderApi.md#get_auto_orders_by_query) | **POST** /auto_order/auto_orders/query | Retrieve auto orders by query
99
+ *UltracartClient::AutoOrderApi* | [**pause_auto_order**](docs/AutoOrderApi.md#pause_auto_order) | **PUT** /auto_order/auto_orders/{auto_order_oid}/pause | Pause auto order
99
100
  *UltracartClient::AutoOrderApi* | [**update_auto_order**](docs/AutoOrderApi.md#update_auto_order) | **PUT** /auto_order/auto_orders/{auto_order_oid} | Update an auto order
100
101
  *UltracartClient::AutoOrderApi* | [**update_auto_orders_batch**](docs/AutoOrderApi.md#update_auto_orders_batch) | **PUT** /auto_order/auto_orders/batch | Update multiple auto orders
101
102
  *UltracartClient::ChannelPartnerApi* | [**cancel_order_by_channel_partner_order_id**](docs/ChannelPartnerApi.md#cancel_order_by_channel_partner_order_id) | **DELETE** /channel_partner/cancel/by_channel_partner_order_id/{order_id} | Cancel channel partner order by channel partner order id
@@ -1517,6 +1518,8 @@ Not every change is committed to every SDK.
1517
1518
 
1518
1519
  | Version | Date | Comments |
1519
1520
  | --: | :-: | --- |
1521
+ | 3.11.2 | 03/05/2025 | added ChannelPartnerOrder.use_prior_payment_information_from_order_id |
1522
+ | 3.11.1 | 02/28/2025 | auto order pause method |
1520
1523
  | 3.11.0 | 02/21/2025 | ItemApi.getInventorySnapshot had bad nickname causing bad sdk method name |
1521
1524
  | 3.10.228 | 02/20/2025 | automation fix |
1522
1525
  | 3.10.227 | 02/20/2025 | no change, revving sdk to troubleshoot java deployment automation |
data/docs/AutoOrderApi.md CHANGED
@@ -12,6 +12,7 @@ Method | HTTP request | Description
12
12
  [**get_auto_orders**](AutoOrderApi.md#get_auto_orders) | **GET** /auto_order/auto_orders | Retrieve auto orders
13
13
  [**get_auto_orders_batch**](AutoOrderApi.md#get_auto_orders_batch) | **POST** /auto_order/auto_orders/batch | Retrieve auto order batch
14
14
  [**get_auto_orders_by_query**](AutoOrderApi.md#get_auto_orders_by_query) | **POST** /auto_order/auto_orders/query | Retrieve auto orders by query
15
+ [**pause_auto_order**](AutoOrderApi.md#pause_auto_order) | **PUT** /auto_order/auto_orders/{auto_order_oid}/pause | Pause auto order
15
16
  [**update_auto_order**](AutoOrderApi.md#update_auto_order) | **PUT** /auto_order/auto_orders/{auto_order_oid} | Update an auto order
16
17
  [**update_auto_orders_batch**](AutoOrderApi.md#update_auto_orders_batch) | **PUT** /auto_order/auto_orders/batch | Update multiple auto orders
17
18
 
@@ -498,6 +499,63 @@ Name | Type | Description | Notes
498
499
 
499
500
 
500
501
 
502
+ # **pause_auto_order**
503
+ > AutoOrderResponse pause_auto_order(auto_order, auto_order_oid, opts)
504
+
505
+ Pause auto order
506
+
507
+ Completely pause an auto order
508
+
509
+ ### Example
510
+ ```ruby
511
+ # load the gem
512
+ require 'ultracart_api'
513
+
514
+ # Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
515
+ simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
516
+ api_instance = UltracartClient::AutoOrderApi.new_using_api_key(simple_key, false, false)
517
+
518
+
519
+ auto_order = UltracartClient::AutoOrder.new # AutoOrder | Auto orders to pause
520
+
521
+ auto_order_oid = 56 # Integer | The auto order oid to pause.
522
+
523
+ opts = {
524
+ _expand: '_expand_example' # String | The object expansion to perform on the result. See documentation for examples
525
+ }
526
+
527
+ begin
528
+ #Pause auto order
529
+ result = api_instance.pause_auto_order(auto_order, auto_order_oid, opts)
530
+ p result
531
+ rescue UltracartClient::ApiError => e
532
+ puts "Exception when calling AutoOrderApi->pause_auto_order: #{e}"
533
+ end
534
+ ```
535
+
536
+ ### Parameters
537
+
538
+ Name | Type | Description | Notes
539
+ ------------- | ------------- | ------------- | -------------
540
+ **auto_order** | [**AutoOrder**](AutoOrder.md)| Auto orders to pause |
541
+ **auto_order_oid** | **Integer**| The auto order oid to pause. |
542
+ **_expand** | **String**| The object expansion to perform on the result. See documentation for examples | [optional]
543
+
544
+ ### Return type
545
+
546
+ [**AutoOrderResponse**](AutoOrderResponse.md)
547
+
548
+ ### Authorization
549
+
550
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
551
+
552
+ ### HTTP request headers
553
+
554
+ - **Content-Type**: application/json; charset=UTF-8
555
+ - **Accept**: application/json
556
+
557
+
558
+
501
559
  # **update_auto_order**
502
560
  > AutoOrderResponse update_auto_order(auto_order, auto_order_oid, opts)
503
561
 
@@ -95,5 +95,6 @@ Name | Type | Description | Notes
95
95
  **tax_exempt** | **BOOLEAN** | If true this order is marked as being tax exempt | [optional]
96
96
  **transaction** | [**ChannelPartnerOrderTransaction**](ChannelPartnerOrderTransaction.md) | | [optional]
97
97
  **treat_warnings_as_errors** | **BOOLEAN** | If true all warnings are considered errors, this is true by default | [optional]
98
+ **use_prior_payment_information_from_order_id** | **String** | An Order Id from a prior purchase of this customer which is used to retrieve vaulted payment information in order to pay for this current order. | [optional]
98
99
 
99
100
 
@@ -4,7 +4,7 @@
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **block_prepaid** | **BOOLEAN** | True if prepaid cards should be blocked from buying this item | [optional]
7
- **block_refunds** | **BOOLEAN** | True if this item should block any refund attempts | [optional]
7
+ **block_refunds** | **BOOLEAN** | True if this item should block any refund attempts, set to false otherwise, null value will not update the field | [optional]
8
8
  **credit_card_transaction_type** | **String** | Credit card transaction type | [optional]
9
9
  **no_realtime_charge** | **BOOLEAN** | True if no real-time charge should be performed on this item. | [optional]
10
10
  **payment_method_validity** | **Array<String>** | Payment method validity | [optional]
data/docs/OrderCoupon.md CHANGED
@@ -7,6 +7,6 @@ Name | Type | Description | Notes
7
7
  **automatically_applied** | **BOOLEAN** | Whether or not the coupon was automatically applied to the order | [optional]
8
8
  **base_coupon_code** | **String** | Coupon code configured by the merchant. Will differ if the customer used a one time coupon code generated off this base coupon | [optional]
9
9
  **coupon_code** | **String** | Coupon code entered by the customer | [optional]
10
- **hdie_from_customer** | **BOOLEAN** | True if this coupon is hidde from the customer | [optional]
10
+ **hdie_from_customer** | **BOOLEAN** | True if this coupon is hide from the customer | [optional]
11
11
 
12
12
 
@@ -571,6 +571,70 @@ module UltracartClient
571
571
  end
572
572
  return data, status_code, headers
573
573
  end
574
+ # Pause auto order
575
+ # Completely pause an auto order
576
+ # @param auto_order Auto orders to pause
577
+ # @param auto_order_oid The auto order oid to pause.
578
+ # @param [Hash] opts the optional parameters
579
+ # @option opts [String] :_expand The object expansion to perform on the result. See documentation for examples
580
+ # @return [AutoOrderResponse]
581
+ def pause_auto_order(auto_order, auto_order_oid, opts = {})
582
+ data, _status_code, _headers = pause_auto_order_with_http_info(auto_order, auto_order_oid, opts)
583
+ data
584
+ end
585
+
586
+ # Pause auto order
587
+ # Completely pause an auto order
588
+ # @param auto_order Auto orders to pause
589
+ # @param auto_order_oid The auto order oid to pause.
590
+ # @param [Hash] opts the optional parameters
591
+ # @option opts [String] :_expand The object expansion to perform on the result. See documentation for examples
592
+ # @return [Array<(AutoOrderResponse, Fixnum, Hash)>] AutoOrderResponse data, response status code and response headers
593
+ def pause_auto_order_with_http_info(auto_order, auto_order_oid, opts = {})
594
+ if @api_client.config.debugging
595
+ @api_client.config.logger.debug 'Calling API: AutoOrderApi.pause_auto_order ...'
596
+ end
597
+ # verify the required parameter 'auto_order' is set
598
+ if @api_client.config.client_side_validation && auto_order.nil?
599
+ fail ArgumentError, "Missing the required parameter 'auto_order' when calling AutoOrderApi.pause_auto_order"
600
+ end
601
+ # verify the required parameter 'auto_order_oid' is set
602
+ if @api_client.config.client_side_validation && auto_order_oid.nil?
603
+ fail ArgumentError, "Missing the required parameter 'auto_order_oid' when calling AutoOrderApi.pause_auto_order"
604
+ end
605
+ # resource path
606
+ local_var_path = '/auto_order/auto_orders/{auto_order_oid}/pause'.sub('{' + 'auto_order_oid' + '}', auto_order_oid.to_s)
607
+
608
+ # query parameters
609
+ query_params = {}
610
+ query_params[:'_expand'] = opts[:'_expand'] if !opts[:'_expand'].nil?
611
+
612
+ # header parameters
613
+ header_params = {}
614
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
615
+ # HTTP header 'Accept' (if needed)
616
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
617
+ # HTTP header 'Content-Type'
618
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=UTF-8'])
619
+
620
+ # form parameters
621
+ form_params = {}
622
+
623
+ # http body (model)
624
+ post_body = @api_client.object_to_http_body(auto_order)
625
+ auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
626
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
627
+ :header_params => header_params,
628
+ :query_params => query_params,
629
+ :form_params => form_params,
630
+ :body => post_body,
631
+ :auth_names => auth_names,
632
+ :return_type => 'AutoOrderResponse')
633
+ if @api_client.config.debugging
634
+ @api_client.config.logger.debug "API called: AutoOrderApi#pause_auto_order\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
635
+ end
636
+ return data, status_code, headers
637
+ end
574
638
  # Update an auto order
575
639
  # Update an auto order on the UltraCart account.
576
640
  # @param auto_order Auto order to update
@@ -289,6 +289,9 @@ module UltracartClient
289
289
  # If true all warnings are considered errors, this is true by default
290
290
  attr_accessor :treat_warnings_as_errors
291
291
 
292
+ # An Order Id from a prior purchase of this customer which is used to retrieve vaulted payment information in order to pay for this current order.
293
+ attr_accessor :use_prior_payment_information_from_order_id
294
+
292
295
  class EnumAttributeValidator
293
296
  attr_reader :datatype
294
297
  attr_reader :allowable_values
@@ -405,7 +408,8 @@ module UltracartClient
405
408
  :'tax_county' => :'tax_county',
406
409
  :'tax_exempt' => :'tax_exempt',
407
410
  :'transaction' => :'transaction',
408
- :'treat_warnings_as_errors' => :'treat_warnings_as_errors'
411
+ :'treat_warnings_as_errors' => :'treat_warnings_as_errors',
412
+ :'use_prior_payment_information_from_order_id' => :'use_prior_payment_information_from_order_id'
409
413
  }
410
414
  end
411
415
 
@@ -503,7 +507,8 @@ module UltracartClient
503
507
  :'tax_county' => :'String',
504
508
  :'tax_exempt' => :'BOOLEAN',
505
509
  :'transaction' => :'ChannelPartnerOrderTransaction',
506
- :'treat_warnings_as_errors' => :'BOOLEAN'
510
+ :'treat_warnings_as_errors' => :'BOOLEAN',
511
+ :'use_prior_payment_information_from_order_id' => :'String'
507
512
  }
508
513
  end
509
514
 
@@ -888,6 +893,10 @@ module UltracartClient
888
893
  if attributes.has_key?(:'treat_warnings_as_errors')
889
894
  self.treat_warnings_as_errors = attributes[:'treat_warnings_as_errors']
890
895
  end
896
+
897
+ if attributes.has_key?(:'use_prior_payment_information_from_order_id')
898
+ self.use_prior_payment_information_from_order_id = attributes[:'use_prior_payment_information_from_order_id']
899
+ end
891
900
  end
892
901
 
893
902
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -1590,7 +1599,8 @@ module UltracartClient
1590
1599
  tax_county == o.tax_county &&
1591
1600
  tax_exempt == o.tax_exempt &&
1592
1601
  transaction == o.transaction &&
1593
- treat_warnings_as_errors == o.treat_warnings_as_errors
1602
+ treat_warnings_as_errors == o.treat_warnings_as_errors &&
1603
+ use_prior_payment_information_from_order_id == o.use_prior_payment_information_from_order_id
1594
1604
  end
1595
1605
 
1596
1606
  # @see the `==` method
@@ -1602,7 +1612,7 @@ module UltracartClient
1602
1612
  # Calculates hash code according to all attributes.
1603
1613
  # @return [Fixnum] Hash code
1604
1614
  def 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
1615
+ [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, use_prior_payment_information_from_order_id].hash
1606
1616
  end
1607
1617
 
1608
1618
  # Builds the object from hash
@@ -17,7 +17,7 @@ module UltracartClient
17
17
  # True if prepaid cards should be blocked from buying this item
18
18
  attr_accessor :block_prepaid
19
19
 
20
- # True if this item should block any refund attempts
20
+ # True if this item should block any refund attempts, set to false otherwise, null value will not update the field
21
21
  attr_accessor :block_refunds
22
22
 
23
23
  # Credit card transaction type
@@ -26,7 +26,7 @@ module UltracartClient
26
26
  # Coupon code entered by the customer
27
27
  attr_accessor :coupon_code
28
28
 
29
- # True if this coupon is hidde from the customer
29
+ # True if this coupon is hide from the customer
30
30
  attr_accessor :hdie_from_customer
31
31
 
32
32
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.4.15-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module UltracartClient
14
- VERSION = '3.11.0'
14
+ VERSION = '3.11.2'
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.11.0
4
+ version: 3.11.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - UltraCart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-02-21 00:00:00.000000000 Z
11
+ date: 2025-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus