Sha256: 8c17dfc1e526d64d72b25d79e1460ad58700ac80aaf73bfbd16bb5d17c8fcfb8

Contents?: true

Size: 1.28 KB

Versions: 6

Compression:

Stored size: 1.28 KB

Contents

### Zinc API
Full documentation is available [here](https://docs.zincapi.com/).

### Installation
```ruby
gem 'zinc-api'
```

### Usage
```ruby
Zinc::Order.create(
  retailer: 'amazon',
  retailer_credentials: Zinc::RetailerCredentials.new(
    'email' => 'foo@bar.com',
    'password' => 'jabberwocky'
  ),
  products: [Zinc::Product.new('product_id' => 'B06XGHJ5H3', 'quantity' => 1)],
  payment_method: Zinc::PaymentMethod.new(
    'name_on_card' => 'Foo Bar',
    'number' => '4242424242424242',
    'security_code' => '123',
    'expiration_month' => 1,
    'expiration_year' => 2020
  ),
  billing_address: Zinc::Address.new(
    'first_name' => 'Jane',
    'last_name' => 'Doe',
    'address_line1' => '185 Berry St',
    'address_line2' => 'Suite 2400 ',
    'zip_code' => '94107',
    'city' => 'San Francisco',
    'state' => 'CA',
    'country' => 'US',
    'phone_number' => '1231231234'
  ),
  shipping_address: Zinc::Address.new(
    'first_name' => 'Jane',
    'last_name' => 'Doe',
    'address_line1' => '185 Berry St',
    'address_line2' => 'Suite 2400 ',
    'zip_code' => '94107',
    'city' => 'San Francisco',
    'state' => 'CA',
    'country' => 'US',
    'phone_number' => '1231231234'
  ),
  shipping: Zinc::Shipping.new('order_by' => 'price', 'max_days' => 5, 'max_price' => 1000)
)
```

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
zinc-api-0.0.6 README.md
zinc-api-0.0.5 README.md
zinc-api-0.0.4 README.md
zinc-api-0.0.3 README.md
zinc-api-0.0.2 README.md
zinc-api-0.0.1 README.md