Sha256: 523a8afa2d4c0cba5d153c01a8252f5a84efb05eca238727b49175499cf33bcd

Contents?: true

Size: 1.35 KB

Versions: 2

Compression:

Stored size: 1.35 KB

Contents

# Xpanse2go

A Ruby wrapper for the 2GO Courier API written by xpanse (David Marquez).

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'xpanse_2go'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install xpanse_2go

## Xpanse2go::Order

    $ pickup_address = Xpanse2go::Address.new(...)
    $ delivery_address = Xpanse2go::Address.new(...)
    $ package = Xpanse2go::Package.new(...)
    $ order = Xpanse2go::Order.new(pickup_address, delivery_address, package,
                                   reference_number, awb, cod_amt, instruction)

## Xpanse2go::Address

    $ address = Xpanse2go::Address.new(customer_name, line1, barangay, city,
                                       country, zip_code, mobile_number, email_address)

## Xpanse2go::Package

    $ item = Xpanse2go::PackageItem(...)
    $ package = Xpanse2go::Package.new
    $ package.add_item(item)

## Xpanse2go::PackageItem

    $ item = Xpanse2go::PackageItem.new(quantity, package_code, weight, length,
                                        width, height, declared_value, description)

## TODO

[x] Xpanse2go::Package
[x] Xpanse2go::PackageItem
[x] Add Typhoeus sample
[] Add Typhoeus and connect to the Sandbox
[x] xport.it
    [x] Receive webhook updates
[x] Create xport.it microservice
    [x] Generating AWB indexes
    [x] Fetching an available AWB

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
xpanse_2go-0.1.3 README.md
xpanse_2go-0.1.2 README.md