ultracart_api 3.10.228 → 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 +8 -5
- data/docs/AutoOrderApi.md +58 -0
- data/docs/ItemApi.md +46 -46
- 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/api/item_api.rb +49 -49
- 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.
|
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.
|
27
|
+
gem install ./ultracart_api-3.11.1.gem
|
28
28
|
```
|
29
|
-
(for development, run `gem install --dev ./ultracart_api-3.
|
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.
|
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
|
@@ -297,6 +298,7 @@ Class | Method | HTTP request | Description
|
|
297
298
|
*UltracartClient::ItemApi* | [**get_digital_item**](docs/ItemApi.md#get_digital_item) | **GET** /item/digital_library/{digital_item_oid} | Retrieve a digital item from the digital library, which are digital files that may be attached to normal items
|
298
299
|
*UltracartClient::ItemApi* | [**get_digital_items**](docs/ItemApi.md#get_digital_items) | **GET** /item/digital_library | Retrieve digital items from the digital library which are digital files that may be attached to normal items
|
299
300
|
*UltracartClient::ItemApi* | [**get_digital_items_by_external_id**](docs/ItemApi.md#get_digital_items_by_external_id) | **GET** /item/digital_library/by_external/{external_id} | Retrieves digital items from the digital library (which are digital files that may be attached to normal items) that having a matching external id
|
301
|
+
*UltracartClient::ItemApi* | [**get_inventory_snapshot**](docs/ItemApi.md#get_inventory_snapshot) | **GET** /item/items/inventory_snapshot | Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
300
302
|
*UltracartClient::ItemApi* | [**get_item**](docs/ItemApi.md#get_item) | **GET** /item/items/{merchant_item_oid} | Retrieve an item
|
301
303
|
*UltracartClient::ItemApi* | [**get_item_by_merchant_item_id**](docs/ItemApi.md#get_item_by_merchant_item_id) | **GET** /item/items/merchant_item_id/{merchant_item_id} | Retrieve an item by item id
|
302
304
|
*UltracartClient::ItemApi* | [**get_items**](docs/ItemApi.md#get_items) | **GET** /item/items | Retrieve items
|
@@ -308,7 +310,6 @@ Class | Method | HTTP request | Description
|
|
308
310
|
*UltracartClient::ItemApi* | [**insert_item**](docs/ItemApi.md#insert_item) | **POST** /item/items | Create an item
|
309
311
|
*UltracartClient::ItemApi* | [**insert_review**](docs/ItemApi.md#insert_review) | **POST** /item/items/{merchant_item_oid}/reviews | Insert a review
|
310
312
|
*UltracartClient::ItemApi* | [**insert_update_item_content_attribute**](docs/ItemApi.md#insert_update_item_content_attribute) | **POST** /item/items/{merchant_item_oid}/content/attributes | Upsert an item content attribute
|
311
|
-
*UltracartClient::ItemApi* | [**rest_item_inventory_snapshot_response**](docs/ItemApi.md#rest_item_inventory_snapshot_response) | **GET** /item/items/inventory_snapshot | Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
312
313
|
*UltracartClient::ItemApi* | [**update_digital_item**](docs/ItemApi.md#update_digital_item) | **PUT** /item/digital_library/{digital_item_oid} | Updates a file within the digital library
|
313
314
|
*UltracartClient::ItemApi* | [**update_item**](docs/ItemApi.md#update_item) | **PUT** /item/items/{merchant_item_oid} | Update an item
|
314
315
|
*UltracartClient::ItemApi* | [**update_items**](docs/ItemApi.md#update_items) | **PUT** /item/items/batch | Update multiple items
|
@@ -1517,6 +1518,8 @@ 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 |
|
1522
|
+
| 3.11.0 | 02/21/2025 | ItemApi.getInventorySnapshot had bad nickname causing bad sdk method name |
|
1520
1523
|
| 3.10.228 | 02/20/2025 | automation fix |
|
1521
1524
|
| 3.10.227 | 02/20/2025 | no change, revving sdk to troubleshoot java deployment automation |
|
1522
1525
|
| 3.10.226 | 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
|
|
data/docs/ItemApi.md
CHANGED
@@ -10,6 +10,7 @@ Method | HTTP request | Description
|
|
10
10
|
[**get_digital_item**](ItemApi.md#get_digital_item) | **GET** /item/digital_library/{digital_item_oid} | Retrieve a digital item from the digital library, which are digital files that may be attached to normal items
|
11
11
|
[**get_digital_items**](ItemApi.md#get_digital_items) | **GET** /item/digital_library | Retrieve digital items from the digital library which are digital files that may be attached to normal items
|
12
12
|
[**get_digital_items_by_external_id**](ItemApi.md#get_digital_items_by_external_id) | **GET** /item/digital_library/by_external/{external_id} | Retrieves digital items from the digital library (which are digital files that may be attached to normal items) that having a matching external id
|
13
|
+
[**get_inventory_snapshot**](ItemApi.md#get_inventory_snapshot) | **GET** /item/items/inventory_snapshot | Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
13
14
|
[**get_item**](ItemApi.md#get_item) | **GET** /item/items/{merchant_item_oid} | Retrieve an item
|
14
15
|
[**get_item_by_merchant_item_id**](ItemApi.md#get_item_by_merchant_item_id) | **GET** /item/items/merchant_item_id/{merchant_item_id} | Retrieve an item by item id
|
15
16
|
[**get_items**](ItemApi.md#get_items) | **GET** /item/items | Retrieve items
|
@@ -21,7 +22,6 @@ Method | HTTP request | Description
|
|
21
22
|
[**insert_item**](ItemApi.md#insert_item) | **POST** /item/items | Create an item
|
22
23
|
[**insert_review**](ItemApi.md#insert_review) | **POST** /item/items/{merchant_item_oid}/reviews | Insert a review
|
23
24
|
[**insert_update_item_content_attribute**](ItemApi.md#insert_update_item_content_attribute) | **POST** /item/items/{merchant_item_oid}/content/attributes | Upsert an item content attribute
|
24
|
-
[**rest_item_inventory_snapshot_response**](ItemApi.md#rest_item_inventory_snapshot_response) | **GET** /item/items/inventory_snapshot | Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
25
25
|
[**update_digital_item**](ItemApi.md#update_digital_item) | **PUT** /item/digital_library/{digital_item_oid} | Updates a file within the digital library
|
26
26
|
[**update_item**](ItemApi.md#update_item) | **PUT** /item/items/{merchant_item_oid} | Update an item
|
27
27
|
[**update_items**](ItemApi.md#update_items) | **PUT** /item/items/batch | Update multiple items
|
@@ -340,6 +340,51 @@ Name | Type | Description | Notes
|
|
340
340
|
|
341
341
|
|
342
342
|
|
343
|
+
# **get_inventory_snapshot**
|
344
|
+
> ItemInventorySnapshotResponse get_inventory_snapshot
|
345
|
+
|
346
|
+
Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
347
|
+
|
348
|
+
Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
349
|
+
|
350
|
+
### Example
|
351
|
+
```ruby
|
352
|
+
# load the gem
|
353
|
+
require 'ultracart_api'
|
354
|
+
|
355
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
356
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
357
|
+
api_instance = UltracartClient::ItemApi.new_using_api_key(simple_key, false, false)
|
358
|
+
|
359
|
+
|
360
|
+
|
361
|
+
begin
|
362
|
+
#Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
363
|
+
result = api_instance.get_inventory_snapshot
|
364
|
+
p result
|
365
|
+
rescue UltracartClient::ApiError => e
|
366
|
+
puts "Exception when calling ItemApi->get_inventory_snapshot: #{e}"
|
367
|
+
end
|
368
|
+
```
|
369
|
+
|
370
|
+
### Parameters
|
371
|
+
This endpoint does not need any parameter.
|
372
|
+
|
373
|
+
### Return type
|
374
|
+
|
375
|
+
[**ItemInventorySnapshotResponse**](ItemInventorySnapshotResponse.md)
|
376
|
+
|
377
|
+
### Authorization
|
378
|
+
|
379
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
380
|
+
|
381
|
+
### HTTP request headers
|
382
|
+
|
383
|
+
- **Content-Type**: application/json
|
384
|
+
- **Accept**: application/json
|
385
|
+
|
386
|
+
|
387
|
+
|
343
388
|
# **get_item**
|
344
389
|
> ItemResponse get_item(merchant_item_oid, opts)
|
345
390
|
|
@@ -943,51 +988,6 @@ nil (empty response body)
|
|
943
988
|
|
944
989
|
|
945
990
|
|
946
|
-
# **rest_item_inventory_snapshot_response**
|
947
|
-
> ItemInventorySnapshotResponse rest_item_inventory_snapshot_response
|
948
|
-
|
949
|
-
Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
950
|
-
|
951
|
-
Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
952
|
-
|
953
|
-
### Example
|
954
|
-
```ruby
|
955
|
-
# load the gem
|
956
|
-
require 'ultracart_api'
|
957
|
-
|
958
|
-
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
959
|
-
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
960
|
-
api_instance = UltracartClient::ItemApi.new_using_api_key(simple_key, false, false)
|
961
|
-
|
962
|
-
|
963
|
-
|
964
|
-
begin
|
965
|
-
#Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
966
|
-
result = api_instance.rest_item_inventory_snapshot_response
|
967
|
-
p result
|
968
|
-
rescue UltracartClient::ApiError => e
|
969
|
-
puts "Exception when calling ItemApi->rest_item_inventory_snapshot_response: #{e}"
|
970
|
-
end
|
971
|
-
```
|
972
|
-
|
973
|
-
### Parameters
|
974
|
-
This endpoint does not need any parameter.
|
975
|
-
|
976
|
-
### Return type
|
977
|
-
|
978
|
-
[**ItemInventorySnapshotResponse**](ItemInventorySnapshotResponse.md)
|
979
|
-
|
980
|
-
### Authorization
|
981
|
-
|
982
|
-
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
983
|
-
|
984
|
-
### HTTP request headers
|
985
|
-
|
986
|
-
- **Content-Type**: application/json
|
987
|
-
- **Accept**: application/json
|
988
|
-
|
989
|
-
|
990
|
-
|
991
991
|
# **update_digital_item**
|
992
992
|
> ItemDigitalItemResponse update_digital_item(digital_item_oid, digital_item)
|
993
993
|
|
@@ -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
|
@@ -377,6 +377,55 @@ module UltracartClient
|
|
377
377
|
end
|
378
378
|
return data, status_code, headers
|
379
379
|
end
|
380
|
+
# Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
381
|
+
# Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
382
|
+
# @param [Hash] opts the optional parameters
|
383
|
+
# @return [ItemInventorySnapshotResponse]
|
384
|
+
def get_inventory_snapshot(opts = {})
|
385
|
+
data, _status_code, _headers = get_inventory_snapshot_with_http_info(opts)
|
386
|
+
data
|
387
|
+
end
|
388
|
+
|
389
|
+
# Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
390
|
+
# Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
391
|
+
# @param [Hash] opts the optional parameters
|
392
|
+
# @return [Array<(ItemInventorySnapshotResponse, Fixnum, Hash)>] ItemInventorySnapshotResponse data, response status code and response headers
|
393
|
+
def get_inventory_snapshot_with_http_info(opts = {})
|
394
|
+
if @api_client.config.debugging
|
395
|
+
@api_client.config.logger.debug 'Calling API: ItemApi.get_inventory_snapshot ...'
|
396
|
+
end
|
397
|
+
# resource path
|
398
|
+
local_var_path = '/item/items/inventory_snapshot'
|
399
|
+
|
400
|
+
# query parameters
|
401
|
+
query_params = {}
|
402
|
+
|
403
|
+
# header parameters
|
404
|
+
header_params = {}
|
405
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
406
|
+
# HTTP header 'Accept' (if needed)
|
407
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
408
|
+
# HTTP header 'Content-Type'
|
409
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
410
|
+
|
411
|
+
# form parameters
|
412
|
+
form_params = {}
|
413
|
+
|
414
|
+
# http body (model)
|
415
|
+
post_body = nil
|
416
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
417
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
418
|
+
:header_params => header_params,
|
419
|
+
:query_params => query_params,
|
420
|
+
:form_params => form_params,
|
421
|
+
:body => post_body,
|
422
|
+
:auth_names => auth_names,
|
423
|
+
:return_type => 'ItemInventorySnapshotResponse')
|
424
|
+
if @api_client.config.debugging
|
425
|
+
@api_client.config.logger.debug "API called: ItemApi#get_inventory_snapshot\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
426
|
+
end
|
427
|
+
return data, status_code, headers
|
428
|
+
end
|
380
429
|
# Retrieve an item
|
381
430
|
# Retrieves a single item using the specified item oid.
|
382
431
|
# @param merchant_item_oid The item oid to retrieve.
|
@@ -1044,55 +1093,6 @@ module UltracartClient
|
|
1044
1093
|
end
|
1045
1094
|
return data, status_code, headers
|
1046
1095
|
end
|
1047
|
-
# Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
1048
|
-
# Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
1049
|
-
# @param [Hash] opts the optional parameters
|
1050
|
-
# @return [ItemInventorySnapshotResponse]
|
1051
|
-
def rest_item_inventory_snapshot_response(opts = {})
|
1052
|
-
data, _status_code, _headers = rest_item_inventory_snapshot_response_with_http_info(opts)
|
1053
|
-
data
|
1054
|
-
end
|
1055
|
-
|
1056
|
-
# Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
1057
|
-
# Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
1058
|
-
# @param [Hash] opts the optional parameters
|
1059
|
-
# @return [Array<(ItemInventorySnapshotResponse, Fixnum, Hash)>] ItemInventorySnapshotResponse data, response status code and response headers
|
1060
|
-
def rest_item_inventory_snapshot_response_with_http_info(opts = {})
|
1061
|
-
if @api_client.config.debugging
|
1062
|
-
@api_client.config.logger.debug 'Calling API: ItemApi.rest_item_inventory_snapshot_response ...'
|
1063
|
-
end
|
1064
|
-
# resource path
|
1065
|
-
local_var_path = '/item/items/inventory_snapshot'
|
1066
|
-
|
1067
|
-
# query parameters
|
1068
|
-
query_params = {}
|
1069
|
-
|
1070
|
-
# header parameters
|
1071
|
-
header_params = {}
|
1072
|
-
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
1073
|
-
# HTTP header 'Accept' (if needed)
|
1074
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1075
|
-
# HTTP header 'Content-Type'
|
1076
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1077
|
-
|
1078
|
-
# form parameters
|
1079
|
-
form_params = {}
|
1080
|
-
|
1081
|
-
# http body (model)
|
1082
|
-
post_body = nil
|
1083
|
-
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
1084
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1085
|
-
:header_params => header_params,
|
1086
|
-
:query_params => query_params,
|
1087
|
-
:form_params => form_params,
|
1088
|
-
:body => post_body,
|
1089
|
-
:auth_names => auth_names,
|
1090
|
-
:return_type => 'ItemInventorySnapshotResponse')
|
1091
|
-
if @api_client.config.debugging
|
1092
|
-
@api_client.config.logger.debug "API called: ItemApi#rest_item_inventory_snapshot_response\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1093
|
-
end
|
1094
|
-
return data, status_code, headers
|
1095
|
-
end
|
1096
1096
|
# Updates a file within the digital library
|
1097
1097
|
# Updates a file within the digital library. This does not update an item, but updates a digital file available and selectable as part (or all) of an item.
|
1098
1098
|
# @param digital_item_oid The digital item oid 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.
|
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
|