ultracart_api 3.11.0 → 3.11.1
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 +4 -4
- data/README.md +6 -4
- data/docs/AutoOrderApi.md +58 -0
- data/docs/ItemPaymentProcessing.md +1 -1
- data/docs/OrderCoupon.md +1 -1
- data/lib/ultracart_api/api/auto_order_api.rb +64 -0
- data/lib/ultracart_api/models/item_payment_processing.rb +1 -1
- data/lib/ultracart_api/models/order_coupon.rb +1 -1
- data/lib/ultracart_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6eb1535a5e4a8d709dc007ba57528b34b824f8ab216d9c171d435b5790836875
|
4
|
+
data.tar.gz: 002aeeac84dd38eb86da4659738bf65f4401e87222e00b952d2bf706539d6561
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af78048def2687fc029163c66ce0773fae4c651ec7edd6a99d11c5782ca39c97f9f3cb0b8eb03c4ce32fd47dba74386de6da623548d63bce1ed4b4b5150de213
|
7
|
+
data.tar.gz: 1a11ed6580108f534d80599eec73be14b31da9b79b912523ec1a6e35fd1945e0744622d6b66a82debbd3fea6378d1ba620d08140928e12531c8e6c0b98549d69
|
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.11.
|
10
|
+
- Package version: 3.11.1
|
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.11.
|
27
|
+
gem install ./ultracart_api-3.11.1.gem
|
28
28
|
```
|
29
|
-
(for development, run `gem install --dev ./ultracart_api-3.11.
|
29
|
+
(for development, run `gem install --dev ./ultracart_api-3.11.1.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.
|
35
|
+
gem 'ultracart_api', '~> 3.11.1'
|
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,7 @@ Not every change is committed to every SDK.
|
|
1517
1518
|
|
1518
1519
|
| Version | Date | Comments |
|
1519
1520
|
| --: | :-: | --- |
|
1521
|
+
| 3.11.1 | 02/28/2025 | auto order pause method |
|
1520
1522
|
| 3.11.0 | 02/21/2025 | ItemApi.getInventorySnapshot had bad nickname causing bad sdk method name |
|
1521
1523
|
| 3.10.228 | 02/20/2025 | automation fix |
|
1522
1524
|
| 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
|
|
@@ -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
|
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
|
@@ -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
|
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.
|
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.
|
4
|
+
version: 3.11.1
|
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-
|
11
|
+
date: 2025-02-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|