wine_shipping

WineShipping - the Ruby gem for the API from Wineshipping

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.

In order to access API operations request a UserKey and Password from Wineshipping. For any questions please contact Wineshipping Helpdesk at [email protected].

This SDK is automatically generated by the Swagger Codegen project:

  • API version: V3
  • Package version: 1.0.0
  • Build package: io.swagger.codegen.languages.RubyClientCodegen

Installation

Build a gem

To build the Ruby code into a gem:

gem build wine_shipping.gemspec

Then either install the gem locally:

gem install ./wine_shipping-1.0.0.gem

(for development, run gem install --dev ./wine_shipping-1.0.0.gem to install the development dependencies)

or publish the gem to a gem hosting service, e.g. RubyGems.

Finally add this to the Gemfile:

gem 'wine_shipping', '~> 1.0.0'

Install from Git

If the Ruby gem is hosted at a git repository: https://github.com/YOUR_GIT_USERNAME/YOUR_GIT_REPO, then add the following in the Gemfile:

gem 'wine_shipping', :git => 'https://github.com/YOUR_GIT_USERNAME/YOUR_GIT_REPO.git'

Include the Ruby code directly

Include the Ruby code directly using -I as follows:

ruby -Ilib script.rb

Getting Started

Please follow the installation procedure and then run the following code:

# Load the gem
require 'wine_shipping'

api_instance = WineShipping::InventoryApi.new

authentication_details = WineShipping::Authentication.new # Authentication | 


begin
  result = api_instance.get_inventory_details(authentication_details)
  p result
rescue WineShipping::ApiError => e
  puts "Exception when calling InventoryApi->get_inventory_details: #{e}"
end

Documentation for API Endpoints

All URIs are relative to https://wsservices-test.azurewebsites.net

Class Method HTTP request Description
WineShipping::InventoryApi get_inventory_details POST /api/Inventory/GetDetails
WineShipping::InventoryApi get_inventory_status POST /api/Inventory/GetStatus
WineShipping::InventoryMovementApi create_purchase_order POST /api/InventoryMovement/CreatePurchaseOrder
WineShipping::InventoryMovementApi create_transfer_order POST /api/InventoryMovement/CreateTransferOrder
WineShipping::SKUApi create_sku POST /api/SKU/CreateSKU
WineShipping::SalesOrderApi cancel_sales_order POST /api/SalesOrder/CancelSalesOrder
WineShipping::SalesOrderApi create_sales_order POST /api/SalesOrder/CreateSalesOrder
WineShipping::SalesOrderApi get_orders_on_hold POST /api/SalesOrder/GetOrdersOnHold
WineShipping::SalesOrderApi get_returns POST /api/SalesOrder/GetReturns
WineShipping::SalesOrderApi replace_sales_order POST /api/SalesOrder/ReplaceSalesOrder
WineShipping::TrackingApi get_details POST /api/Tracking/GetDetails

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization.