Skip to content

magma-labs/ruby-dhl_fulfillment

Repository files navigation

ruby-dhl_fulfillment

A gem to access the DHL Fulfillment API.

Current working endpoints

  • CreateSalesOrder
  • SalesOrderStatus
  • SalesOrderAcknowledgment
  • ShipmentDetails

Usage

Configure the gem with your DHL credentials.

DHL::Fulfillment.configure do |config|
  config.urls = :sandbox # or :production for the real thing.
  config.client_id = ENV['DHL_CLIENT_ID']
  config.client_secret = ENV['DHL_CLIENT_SECRET']
  config.account_number = ENV['DHL_ACCOUNT_NUMBER']
end

Then, start calling DHL::Fulfillment methods.

token = DHL::Fulfillment.access_token
DHL::Fulfillment.create_sales_order(properties_hash, token)
DHL::Fulfillment.sales_order_acknowledgement(options)

Contributing

Contributions are welcome! Set up the repo using the following commands:

git clone [email protected]:/magma-labs/ruby-dhl_fulfillment # or use https if you prefer
cd ruby-dhl_fulfillment
bundle install
rake test # You should see all linters and specs pass.

Before committing, please run rake test to make sure all linters and specs pass.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages