wine_shipping 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +7 -0
- data/README.md +128 -0
- data/Rakefile +8 -0
- data/docs/Authentication.md +10 -0
- data/docs/BillingContactInfo.md +18 -0
- data/docs/DeliveryContactInfo.md +17 -0
- data/docs/Inventory.md +20 -0
- data/docs/InventoryApi.md +102 -0
- data/docs/InventoryMovementApi.md +100 -0
- data/docs/InventoryStatusRequest.md +13 -0
- data/docs/InventoryStatusResult.md +12 -0
- data/docs/ItemInfo.md +10 -0
- data/docs/OrderOnHold.md +19 -0
- data/docs/OrderOnHoldItem.md +11 -0
- data/docs/PackageItem.md +10 -0
- data/docs/PurchaseOrderDetails.md +10 -0
- data/docs/PurchaseOrderInfo.md +24 -0
- data/docs/PurchaseOrderItemInfo.md +10 -0
- data/docs/RecipientContactInfo.md +18 -0
- data/docs/RequestorInfo.md +11 -0
- data/docs/ReturnResult.md +12 -0
- data/docs/ReturnSalesOrderHeader.md +31 -0
- data/docs/ReturnSalesOrderLine.md +13 -0
- data/docs/ReturnsRequest.md +16 -0
- data/docs/SKUApi.md +54 -0
- data/docs/SKUDetails.md +10 -0
- data/docs/SKUInfo.md +20 -0
- data/docs/SalesOrderApi.md +240 -0
- data/docs/SalesOrderCancelRequest.md +9 -0
- data/docs/SalesOrderDetails.md +14 -0
- data/docs/SalesOrderInfo.md +20 -0
- data/docs/ShipmentInfo.md +13 -0
- data/docs/TrackingApi.md +55 -0
- data/docs/TrackingRequest.md +9 -0
- data/docs/TrackingResult.md +28 -0
- data/docs/TransferOrderDetails.md +10 -0
- data/docs/TransferOrderInfo.md +17 -0
- data/docs/TransferOrderItemInfo.md +10 -0
- data/docs/WarehouseInventoryStatus.md +19 -0
- data/git_push.sh +55 -0
- data/lib/.DS_Store +0 -0
- data/lib/wine_shipping.rb +75 -0
- data/lib/wine_shipping/api/inventory_api.rb +127 -0
- data/lib/wine_shipping/api/inventory_movement_api.rb +125 -0
- data/lib/wine_shipping/api/sales_order_api.rb +280 -0
- data/lib/wine_shipping/api/sku_api.rb +74 -0
- data/lib/wine_shipping/api/tracking_api.rb +75 -0
- data/lib/wine_shipping/api_client.rb +388 -0
- data/lib/wine_shipping/api_error.rb +38 -0
- data/lib/wine_shipping/configuration.rb +202 -0
- data/lib/wine_shipping/models/authentication.rb +201 -0
- data/lib/wine_shipping/models/billing_contact_info.rb +273 -0
- data/lib/wine_shipping/models/delivery_contact_info.rb +298 -0
- data/lib/wine_shipping/models/inventory.rb +291 -0
- data/lib/wine_shipping/models/inventory_status_request.rb +230 -0
- data/lib/wine_shipping/models/inventory_status_result.rb +221 -0
- data/lib/wine_shipping/models/item_info.rb +201 -0
- data/lib/wine_shipping/models/order_on_hold.rb +284 -0
- data/lib/wine_shipping/models/order_on_hold_item.rb +210 -0
- data/lib/wine_shipping/models/package_item.rb +201 -0
- data/lib/wine_shipping/models/purchase_order_details.rb +203 -0
- data/lib/wine_shipping/models/purchase_order_info.rb +361 -0
- data/lib/wine_shipping/models/purchase_order_item_info.rb +201 -0
- data/lib/wine_shipping/models/recipient_contact_info.rb +273 -0
- data/lib/wine_shipping/models/requestor_info.rb +210 -0
- data/lib/wine_shipping/models/return_result.rb +221 -0
- data/lib/wine_shipping/models/return_sales_order_header.rb +392 -0
- data/lib/wine_shipping/models/return_sales_order_line.rb +228 -0
- data/lib/wine_shipping/models/returns_request.rb +257 -0
- data/lib/wine_shipping/models/sales_order_cancel_request.rb +192 -0
- data/lib/wine_shipping/models/sales_order_details.rb +239 -0
- data/lib/wine_shipping/models/sales_order_info.rb +325 -0
- data/lib/wine_shipping/models/shipment_info.rb +274 -0
- data/lib/wine_shipping/models/sku_details.rb +201 -0
- data/lib/wine_shipping/models/sku_info.rb +325 -0
- data/lib/wine_shipping/models/tracking_request.rb +192 -0
- data/lib/wine_shipping/models/tracking_result.rb +365 -0
- data/lib/wine_shipping/models/transfer_order_details.rb +203 -0
- data/lib/wine_shipping/models/transfer_order_info.rb +264 -0
- data/lib/wine_shipping/models/transfer_order_item_info.rb +201 -0
- data/lib/wine_shipping/models/warehouse_inventory_status.rb +282 -0
- data/lib/wine_shipping/version.rb +15 -0
- data/spec/api/inventory_api_spec.rb +57 -0
- data/spec/api/inventory_movement_api_spec.rb +57 -0
- data/spec/api/sales_order_api_spec.rb +90 -0
- data/spec/api/sku_api_spec.rb +46 -0
- data/spec/api/tracking_api_spec.rb +46 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/authentication_spec.rb +53 -0
- data/spec/models/billing_contact_info_spec.rb +101 -0
- data/spec/models/delivery_contact_info_spec.rb +99 -0
- data/spec/models/inventory_spec.rb +113 -0
- data/spec/models/inventory_status_request_spec.rb +71 -0
- data/spec/models/inventory_status_result_spec.rb +65 -0
- data/spec/models/item_info_spec.rb +53 -0
- data/spec/models/order_on_hold_item_spec.rb +59 -0
- data/spec/models/order_on_hold_spec.rb +107 -0
- data/spec/models/package_item_spec.rb +53 -0
- data/spec/models/purchase_order_details_spec.rb +53 -0
- data/spec/models/purchase_order_info_spec.rb +141 -0
- data/spec/models/purchase_order_item_info_spec.rb +53 -0
- data/spec/models/recipient_contact_info_spec.rb +101 -0
- data/spec/models/requestor_info_spec.rb +59 -0
- data/spec/models/return_result_spec.rb +65 -0
- data/spec/models/return_sales_order_header_spec.rb +179 -0
- data/spec/models/return_sales_order_line_spec.rb +71 -0
- data/spec/models/returns_request_spec.rb +89 -0
- data/spec/models/sales_order_cancel_request_spec.rb +47 -0
- data/spec/models/sales_order_details_spec.rb +77 -0
- data/spec/models/sales_order_info_spec.rb +117 -0
- data/spec/models/shipment_info_spec.rb +79 -0
- data/spec/models/sku_details_spec.rb +53 -0
- data/spec/models/sku_info_spec.rb +117 -0
- data/spec/models/tracking_request_spec.rb +47 -0
- data/spec/models/tracking_result_spec.rb +161 -0
- data/spec/models/transfer_order_details_spec.rb +53 -0
- data/spec/models/transfer_order_info_spec.rb +95 -0
- data/spec/models/transfer_order_item_info_spec.rb +53 -0
- data/spec/models/warehouse_inventory_status_spec.rb +107 -0
- data/spec/spec_helper.rb +111 -0
- data/wine_shipping.gemspec +45 -0
- metadata +390 -0
@@ -0,0 +1,9 @@
|
|
1
|
+
# WineShipping::SalesOrderCancelRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**authentication** | [**Authentication**](Authentication.md) | | [optional]
|
7
|
+
**order_number** | **String** | | [optional]
|
8
|
+
|
9
|
+
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# WineShipping::SalesOrderDetails
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**authentication** | [**Authentication**](Authentication.md) | | [optional]
|
7
|
+
**order_info** | [**SalesOrderInfo**](SalesOrderInfo.md) | | [optional]
|
8
|
+
**billing_contact_info** | [**BillingContactInfo**](BillingContactInfo.md) | | [optional]
|
9
|
+
**delivery_contact_info** | [**DeliveryContactInfo**](DeliveryContactInfo.md) | | [optional]
|
10
|
+
**recipient_contact_info** | [**RecipientContactInfo**](RecipientContactInfo.md) | | [optional]
|
11
|
+
**shipment_info** | [**ShipmentInfo**](ShipmentInfo.md) | | [optional]
|
12
|
+
**items_info** | [**Array<ItemInfo>**](ItemInfo.md) | | [optional]
|
13
|
+
|
14
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# WineShipping::SalesOrderInfo
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**transmission_id** | **String** | | [optional]
|
7
|
+
**batch_id** | **String** | | [optional]
|
8
|
+
**batch_description** | **String** | | [optional]
|
9
|
+
**order_no** | **String** | | [optional]
|
10
|
+
**po_no** | **String** | | [optional]
|
11
|
+
**shipment_key** | **String** | | [optional]
|
12
|
+
**order_type** | **String** | | [optional]
|
13
|
+
**order_source** | **String** | | [optional]
|
14
|
+
**order_date** | **DateTime** | | [optional]
|
15
|
+
**gift_card** | **Integer** | | [optional]
|
16
|
+
**gift_card_message** | **String** | | [optional]
|
17
|
+
**tags** | **String** | | [optional]
|
18
|
+
**special_instructions** | **String** | | [optional]
|
19
|
+
|
20
|
+
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# WineShipping::ShipmentInfo
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**shipping_carrier** | **String** | | [optional]
|
7
|
+
**shipping_carrier_service** | **String** | | [optional]
|
8
|
+
**requested_shipment_date** | **DateTime** | | [optional]
|
9
|
+
**insurance** | **Integer** | | [optional]
|
10
|
+
**ice_pack** | **Integer** | | [optional]
|
11
|
+
**wineshipping_warehouse_location** | **String** | | [optional]
|
12
|
+
|
13
|
+
|
data/docs/TrackingApi.md
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
# WineShipping::TrackingApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://wsservices-test.azurewebsites.net*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**get_details**](TrackingApi.md#get_details) | **POST** /api/Tracking/GetDetails |
|
8
|
+
|
9
|
+
|
10
|
+
# **get_details**
|
11
|
+
> Array<TrackingResult> get_details(track_order)
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
This operation provides sales order and associated package tracking information and their status if available. This operation accepts a customer number and order number to locate the order information within the Wineshipping system. The result will include individual packages, associated tracking numbers, carrier status, and the shipping address information.
|
16
|
+
|
17
|
+
### Example
|
18
|
+
```ruby
|
19
|
+
# load the gem
|
20
|
+
require 'wine_shipping'
|
21
|
+
|
22
|
+
api_instance = WineShipping::TrackingApi.new
|
23
|
+
|
24
|
+
track_order = WineShipping::TrackingRequest.new # TrackingRequest |
|
25
|
+
|
26
|
+
|
27
|
+
begin
|
28
|
+
result = api_instance.get_details(track_order)
|
29
|
+
p result
|
30
|
+
rescue WineShipping::ApiError => e
|
31
|
+
puts "Exception when calling TrackingApi->get_details: #{e}"
|
32
|
+
end
|
33
|
+
```
|
34
|
+
|
35
|
+
### Parameters
|
36
|
+
|
37
|
+
Name | Type | Description | Notes
|
38
|
+
------------- | ------------- | ------------- | -------------
|
39
|
+
**track_order** | [**TrackingRequest**](TrackingRequest.md)| |
|
40
|
+
|
41
|
+
### Return type
|
42
|
+
|
43
|
+
[**Array<TrackingResult>**](TrackingResult.md)
|
44
|
+
|
45
|
+
### Authorization
|
46
|
+
|
47
|
+
No authorization required
|
48
|
+
|
49
|
+
### HTTP request headers
|
50
|
+
|
51
|
+
- **Content-Type**: application/json
|
52
|
+
- **Accept**: application/json
|
53
|
+
|
54
|
+
|
55
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# WineShipping::TrackingRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**authentication_details** | [**Authentication**](Authentication.md) | | [optional]
|
7
|
+
**order_no** | **String** | | [optional]
|
8
|
+
|
9
|
+
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# WineShipping::TrackingResult
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**order_number** | **String** | | [optional]
|
7
|
+
**carrier** | **String** | | [optional]
|
8
|
+
**service** | **String** | | [optional]
|
9
|
+
**tracking_no** | **String** | | [optional]
|
10
|
+
**ship_date** | **String** | | [optional]
|
11
|
+
**status** | **String** | | [optional]
|
12
|
+
**type** | **String** | | [optional]
|
13
|
+
**site** | **String** | | [optional]
|
14
|
+
**warehouse** | **String** | | [optional]
|
15
|
+
**ice_pack** | **String** | | [optional]
|
16
|
+
**carrier_status** | **String** | | [optional]
|
17
|
+
**carrier_status_message** | **String** | | [optional]
|
18
|
+
**estimated_delivery_date** | **String** | | [optional]
|
19
|
+
**ship_to_name** | **String** | | [optional]
|
20
|
+
**ship_to_contact** | **String** | | [optional]
|
21
|
+
**ship_to_address** | **String** | | [optional]
|
22
|
+
**ship_to_address2** | **String** | | [optional]
|
23
|
+
**ship_to_city** | **String** | | [optional]
|
24
|
+
**ship_to_state** | **String** | | [optional]
|
25
|
+
**ship_to_zip_code** | **String** | | [optional]
|
26
|
+
**package_items** | [**Array<PackageItem>**](PackageItem.md) | | [optional]
|
27
|
+
|
28
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# WineShipping::TransferOrderDetails
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**authentication** | [**Authentication**](Authentication.md) | | [optional]
|
7
|
+
**order_info** | [**TransferOrderInfo**](TransferOrderInfo.md) | | [optional]
|
8
|
+
**items_info** | [**Array<TransferOrderItemInfo>**](TransferOrderItemInfo.md) | | [optional]
|
9
|
+
|
10
|
+
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# WineShipping::TransferOrderInfo
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**customer_reference_no** | **String** | | [optional]
|
7
|
+
**transfer_from** | **String** | | [optional]
|
8
|
+
**transfer_to** | **String** | | [optional]
|
9
|
+
**requested_date** | **DateTime** | | [optional]
|
10
|
+
**inventory_status_code** | **String** | | [optional]
|
11
|
+
**special_instruction** | **String** | | [optional]
|
12
|
+
**first_name** | **String** | | [optional]
|
13
|
+
**last_name** | **String** | | [optional]
|
14
|
+
**email_address** | **String** | | [optional]
|
15
|
+
**phone_number** | **String** | | [optional]
|
16
|
+
|
17
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# WineShipping::TransferOrderItemInfo
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**item_no** | **String** | | [optional]
|
7
|
+
**item_description** | **String** | | [optional]
|
8
|
+
**item_quantity** | **Integer** | | [optional]
|
9
|
+
|
10
|
+
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# WineShipping::WarehouseInventoryStatus
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**customer_no** | **String** | | [optional]
|
7
|
+
**customer_name** | **String** | | [optional]
|
8
|
+
**item_no** | **String** | | [optional]
|
9
|
+
**item_description** | **String** | | [optional]
|
10
|
+
**item_unit** | **String** | | [optional]
|
11
|
+
**inventory_warehouse** | **String** | | [optional]
|
12
|
+
**inventory_status** | **String** | | [optional]
|
13
|
+
**on_hand_quantity** | **Integer** | | [optional]
|
14
|
+
**reserved_quantity** | **Integer** | | [optional]
|
15
|
+
**available_quantity** | **Integer** | | [optional]
|
16
|
+
**back_order_quantity** | **Integer** | | [optional]
|
17
|
+
**open_po_quantity** | **Integer** | | [optional]
|
18
|
+
|
19
|
+
|
data/git_push.sh
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
#
|
3
|
+
# Generated by: https://github.com/swagger-api/swagger-codegen.git
|
4
|
+
#
|
5
|
+
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
6
|
+
#
|
7
|
+
# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update"
|
8
|
+
|
9
|
+
git_user_id=$1
|
10
|
+
git_repo_id=$2
|
11
|
+
release_note=$3
|
12
|
+
|
13
|
+
if [ "$git_user_id" = "" ]; then
|
14
|
+
git_user_id=""
|
15
|
+
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
16
|
+
fi
|
17
|
+
|
18
|
+
if [ "$git_repo_id" = "" ]; then
|
19
|
+
git_repo_id=""
|
20
|
+
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
21
|
+
fi
|
22
|
+
|
23
|
+
if [ "$release_note" = "" ]; then
|
24
|
+
release_note=""
|
25
|
+
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
26
|
+
fi
|
27
|
+
|
28
|
+
# Initialize the local directory as a Git repository
|
29
|
+
git init
|
30
|
+
|
31
|
+
# Adds the files in the local repository and stages them for commit.
|
32
|
+
git add .
|
33
|
+
|
34
|
+
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
35
|
+
git commit -m "$release_note"
|
36
|
+
|
37
|
+
# Sets the new remote
|
38
|
+
git_remote=`git remote`
|
39
|
+
if [ "$git_remote" = "" ]; then # git remote not defined
|
40
|
+
|
41
|
+
if [ "$GIT_TOKEN" = "" ]; then
|
42
|
+
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
43
|
+
git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
|
44
|
+
else
|
45
|
+
git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
|
46
|
+
fi
|
47
|
+
|
48
|
+
fi
|
49
|
+
|
50
|
+
git pull origin master
|
51
|
+
|
52
|
+
# Pushes (Forces) the changes in the local repository up to the remote repository
|
53
|
+
echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
|
54
|
+
git push origin master 2>&1 | grep -v 'To https'
|
55
|
+
|
data/lib/.DS_Store
ADDED
Binary file
|
@@ -0,0 +1,75 @@
|
|
1
|
+
=begin
|
2
|
+
#API from Wineshipping
|
3
|
+
|
4
|
+
#Wineshipping API is a programmatically consumable service or an Application Programming Interface (API) platform designed to enable Wineshipping LLC's client applications to natively transmit and manage their order, view inventory, track shipments etc.<br /><br />In order to access API operations request a UserKey and Password from Wineshipping. For any questions please contact Wineshipping Helpdesk at <a href='mailto:IT-Help@wineshipping.com?Subject=API from Wineshipping'>IT-Help@wineshipping.com</a>.
|
5
|
+
|
6
|
+
OpenAPI spec version: V3
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.7
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
# Common files
|
14
|
+
require 'wine_shipping/api_client'
|
15
|
+
require 'wine_shipping/api_error'
|
16
|
+
require 'wine_shipping/version'
|
17
|
+
require 'wine_shipping/configuration'
|
18
|
+
|
19
|
+
# Models
|
20
|
+
require 'wine_shipping/models/authentication'
|
21
|
+
require 'wine_shipping/models/billing_contact_info'
|
22
|
+
require 'wine_shipping/models/delivery_contact_info'
|
23
|
+
require 'wine_shipping/models/inventory'
|
24
|
+
require 'wine_shipping/models/inventory_status_request'
|
25
|
+
require 'wine_shipping/models/inventory_status_result'
|
26
|
+
require 'wine_shipping/models/item_info'
|
27
|
+
require 'wine_shipping/models/order_on_hold'
|
28
|
+
require 'wine_shipping/models/order_on_hold_item'
|
29
|
+
require 'wine_shipping/models/package_item'
|
30
|
+
require 'wine_shipping/models/purchase_order_details'
|
31
|
+
require 'wine_shipping/models/purchase_order_info'
|
32
|
+
require 'wine_shipping/models/purchase_order_item_info'
|
33
|
+
require 'wine_shipping/models/recipient_contact_info'
|
34
|
+
require 'wine_shipping/models/requestor_info'
|
35
|
+
require 'wine_shipping/models/return_result'
|
36
|
+
require 'wine_shipping/models/return_sales_order_header'
|
37
|
+
require 'wine_shipping/models/return_sales_order_line'
|
38
|
+
require 'wine_shipping/models/returns_request'
|
39
|
+
require 'wine_shipping/models/sku_details'
|
40
|
+
require 'wine_shipping/models/sku_info'
|
41
|
+
require 'wine_shipping/models/sales_order_cancel_request'
|
42
|
+
require 'wine_shipping/models/sales_order_details'
|
43
|
+
require 'wine_shipping/models/sales_order_info'
|
44
|
+
require 'wine_shipping/models/shipment_info'
|
45
|
+
require 'wine_shipping/models/tracking_request'
|
46
|
+
require 'wine_shipping/models/tracking_result'
|
47
|
+
require 'wine_shipping/models/transfer_order_details'
|
48
|
+
require 'wine_shipping/models/transfer_order_info'
|
49
|
+
require 'wine_shipping/models/transfer_order_item_info'
|
50
|
+
require 'wine_shipping/models/warehouse_inventory_status'
|
51
|
+
|
52
|
+
# APIs
|
53
|
+
require 'wine_shipping/api/inventory_api'
|
54
|
+
require 'wine_shipping/api/inventory_movement_api'
|
55
|
+
require 'wine_shipping/api/sku_api'
|
56
|
+
require 'wine_shipping/api/sales_order_api'
|
57
|
+
require 'wine_shipping/api/tracking_api'
|
58
|
+
|
59
|
+
module WineShipping
|
60
|
+
class << self
|
61
|
+
# Customize default settings for the SDK using block.
|
62
|
+
# WineShipping.configure do |config|
|
63
|
+
# config.username = "xxx"
|
64
|
+
# config.password = "xxx"
|
65
|
+
# end
|
66
|
+
# If no block given, return the default Configuration object.
|
67
|
+
def configure
|
68
|
+
if block_given?
|
69
|
+
yield(Configuration.default)
|
70
|
+
else
|
71
|
+
Configuration.default
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
@@ -0,0 +1,127 @@
|
|
1
|
+
=begin
|
2
|
+
#API from Wineshipping
|
3
|
+
|
4
|
+
#Wineshipping API is a programmatically consumable service or an Application Programming Interface (API) platform designed to enable Wineshipping LLC's client applications to natively transmit and manage their order, view inventory, track shipments etc.<br /><br />In order to access API operations request a UserKey and Password from Wineshipping. For any questions please contact Wineshipping Helpdesk at <a href='mailto:IT-Help@wineshipping.com?Subject=API from Wineshipping'>IT-Help@wineshipping.com</a>.
|
5
|
+
|
6
|
+
OpenAPI spec version: V3
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.7
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'uri'
|
14
|
+
|
15
|
+
module WineShipping
|
16
|
+
class InventoryApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# This operation provides inventory information with warehouse, status, quantity on hand, quantity reserved on orders, quantity on backorder, quantity available, and quantity on an inbound PO. This operation accepts a customer number to summarize inventory information within the Wineshipping system. This is a Legacy operation for backward compatibility. For new integration the recomended operation is GetInventoryStatus.
|
23
|
+
# @param authentication_details
|
24
|
+
# @param [Hash] opts the optional parameters
|
25
|
+
# @return [Array<Inventory>]
|
26
|
+
def get_inventory_details(authentication_details, opts = {})
|
27
|
+
data, _status_code, _headers = get_inventory_details_with_http_info(authentication_details, opts)
|
28
|
+
data
|
29
|
+
end
|
30
|
+
|
31
|
+
# This operation provides inventory information with warehouse, status, quantity on hand, quantity reserved on orders, quantity on backorder, quantity available, and quantity on an inbound PO. This operation accepts a customer number to summarize inventory information within the Wineshipping system. This is a Legacy operation for backward compatibility. For new integration the recomended operation is GetInventoryStatus.
|
32
|
+
# @param authentication_details
|
33
|
+
# @param [Hash] opts the optional parameters
|
34
|
+
# @return [Array<(Array<Inventory>, Fixnum, Hash)>] Array<Inventory> data, response status code and response headers
|
35
|
+
def get_inventory_details_with_http_info(authentication_details, opts = {})
|
36
|
+
if @api_client.config.debugging
|
37
|
+
@api_client.config.logger.debug 'Calling API: InventoryApi.get_inventory_details ...'
|
38
|
+
end
|
39
|
+
# verify the required parameter 'authentication_details' is set
|
40
|
+
if @api_client.config.client_side_validation && authentication_details.nil?
|
41
|
+
fail ArgumentError, "Missing the required parameter 'authentication_details' when calling InventoryApi.get_inventory_details"
|
42
|
+
end
|
43
|
+
# resource path
|
44
|
+
local_var_path = '/api/Inventory/GetDetails'
|
45
|
+
|
46
|
+
# query parameters
|
47
|
+
query_params = {}
|
48
|
+
|
49
|
+
# header parameters
|
50
|
+
header_params = {}
|
51
|
+
# HTTP header 'Accept' (if needed)
|
52
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
53
|
+
# HTTP header 'Content-Type'
|
54
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
55
|
+
|
56
|
+
# form parameters
|
57
|
+
form_params = {}
|
58
|
+
|
59
|
+
# http body (model)
|
60
|
+
post_body = @api_client.object_to_http_body(authentication_details)
|
61
|
+
auth_names = []
|
62
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
63
|
+
:header_params => header_params,
|
64
|
+
:query_params => query_params,
|
65
|
+
:form_params => form_params,
|
66
|
+
:body => post_body,
|
67
|
+
:auth_names => auth_names,
|
68
|
+
:return_type => 'Array<Inventory>')
|
69
|
+
if @api_client.config.debugging
|
70
|
+
@api_client.config.logger.debug "API called: InventoryApi#get_inventory_details\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
71
|
+
end
|
72
|
+
return data, status_code, headers
|
73
|
+
end
|
74
|
+
# This operation provides inventory information with warehouse, status, quantity on hand, quantity reserved on orders, quantity on backorder, quantity available, and quantity on an inbound PO. This operation optionally accepts a warehouse code to return related inventory records for a specific Wineshipping warehouse, if omitted the operation will return inventory records for all warehouses. The operation also accepts an array of items to query inventory records, if omitted returns inventory records for all items in the warehouse specified.
|
75
|
+
# @param invent_status_request
|
76
|
+
# @param [Hash] opts the optional parameters
|
77
|
+
# @return [InventoryStatusResult]
|
78
|
+
def get_inventory_status(invent_status_request, opts = {})
|
79
|
+
data, _status_code, _headers = get_inventory_status_with_http_info(invent_status_request, opts)
|
80
|
+
data
|
81
|
+
end
|
82
|
+
|
83
|
+
# This operation provides inventory information with warehouse, status, quantity on hand, quantity reserved on orders, quantity on backorder, quantity available, and quantity on an inbound PO. This operation optionally accepts a warehouse code to return related inventory records for a specific Wineshipping warehouse, if omitted the operation will return inventory records for all warehouses. The operation also accepts an array of items to query inventory records, if omitted returns inventory records for all items in the warehouse specified.
|
84
|
+
# @param invent_status_request
|
85
|
+
# @param [Hash] opts the optional parameters
|
86
|
+
# @return [Array<(InventoryStatusResult, Fixnum, Hash)>] InventoryStatusResult data, response status code and response headers
|
87
|
+
def get_inventory_status_with_http_info(invent_status_request, opts = {})
|
88
|
+
if @api_client.config.debugging
|
89
|
+
@api_client.config.logger.debug 'Calling API: InventoryApi.get_inventory_status ...'
|
90
|
+
end
|
91
|
+
# verify the required parameter 'invent_status_request' is set
|
92
|
+
if @api_client.config.client_side_validation && invent_status_request.nil?
|
93
|
+
fail ArgumentError, "Missing the required parameter 'invent_status_request' when calling InventoryApi.get_inventory_status"
|
94
|
+
end
|
95
|
+
# resource path
|
96
|
+
local_var_path = '/api/Inventory/GetStatus'
|
97
|
+
|
98
|
+
# query parameters
|
99
|
+
query_params = {}
|
100
|
+
|
101
|
+
# header parameters
|
102
|
+
header_params = {}
|
103
|
+
# HTTP header 'Accept' (if needed)
|
104
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
105
|
+
# HTTP header 'Content-Type'
|
106
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
107
|
+
|
108
|
+
# form parameters
|
109
|
+
form_params = {}
|
110
|
+
|
111
|
+
# http body (model)
|
112
|
+
post_body = @api_client.object_to_http_body(invent_status_request)
|
113
|
+
auth_names = []
|
114
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
115
|
+
:header_params => header_params,
|
116
|
+
:query_params => query_params,
|
117
|
+
:form_params => form_params,
|
118
|
+
:body => post_body,
|
119
|
+
:auth_names => auth_names,
|
120
|
+
:return_type => 'InventoryStatusResult')
|
121
|
+
if @api_client.config.debugging
|
122
|
+
@api_client.config.logger.debug "API called: InventoryApi#get_inventory_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
123
|
+
end
|
124
|
+
return data, status_code, headers
|
125
|
+
end
|
126
|
+
end
|
127
|
+
end
|