
Security News
Rspack Introduces Rslint, a TypeScript-First Linter Written in Go
Rspack launches Rslint, a fast TypeScript-first linter built on typescript-go, joining in on the trend of toolchains creating their own linters.
This is a Ruby wrapper for ShipStation's OData API.
SS
is default namespace.delete_object
)client.orders.where("CreateDate ge datetime'2014-06-17'")
You can write a filter string, read more here, here, and hereRename the gem to shipstation-rb.
gem 'shipstation-rb', '~> 0.0.4'
gem 'awesome_print', :require => 'ap'
The ShipStation API uses basic HTTP authentication. Inside config/initializers, create a new configuration file and use the following template to pass in your ShipStation credentials:
ShipStation.username = ENV['SHIPSTATION_USERNAME']
ShipStation.password = ENV['SHIPSTATION_PASSWORD']
ShipStation.api_host = ENV['SHIPSTATION_API_HOST']
OR
require "shipstation"
client = ShipStation::Client.new(APICONFIG[:ship_station_api], APICONFIG[:ship_station_account], APICONFIG[:ship_station_password])
ShipStation.api_host = "https://data.shipstation.com/1.3"
ShipStation.password = "shipstation_password"
ShipStation.password = "shipstation_password"
client = ShipStation::Client.new
client = ShipStation::Client.new("https://data.shipstation.com/1.3", "username", "password")
order = client.order.find(12345)
orders = client.order.all
open_texas_orders = client.order.where("active" => "true", "ship_state" => "TX")
all_warehouses = client.warehouse.all
customer_12345 = client.customer.find(12345)
texas_fedex_shipments = client.shipment.where("shipping_service_id" => 0001, "state" => "TX")
etc.
client = ShipStation::Client.new
order = client.order.find(12345)
order.order_id ## 12345
order.ship_city ## Boise
order.order_total ## $343.32
client = ShipStation::Client.new
client.order.create(OrderNumber: "T0001", OrderStatusID: 2)
client = ShipStation::Client.new
client.order.Update(1234, OrderNumber: "T0002", OrderStatusID: 2)
client = ShipStation::Client.new
client.orders.delete(1234) #=> order.active = false
client = ShipStation::Client.new
client.orders.destory(1234) # svc.delete_object(klass)
client = ShipStation::Client.new
client.stores.all
client = ShipStation::Client.new
client.stores.first
client = ShipStation::Client.new
client.stores.last
This gem has been tested on Ruby 1.9.3 on version 1.1 of ShipStation's API.(by author) This gem has been tested on Ruby ruby-2.0.0-p247 on version 1.2 and 1.3 of ShipStation's API.(By Rique Li)
I am Rique Li, I fork this from shipstation-ruby and make some changes, when all test done, I will make a PR.
If You like this gem, write me. ^_^
FAQs
Unknown package
We found that shipstation-rb demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Rspack launches Rslint, a fast TypeScript-first linter built on typescript-go, joining in on the trend of toolchains creating their own linters.
Security News
Hacker Demonstrates How Easy It Is To Steal Data From Popular Password Managers
Security News
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.