Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@ Veeqo::Company.info(connection: connection)
=> #<Veeqo::Company id=1234>
```

### Nested Attributes

To use nested attibutes you need add root key.

```rb
Veeqo::Customer.create(customer: { email: 'customer@example.com', billing_address_attributes: { first_name: 'Phil', last_name: 'Reynolds' }})
```


## Development

Expand Down
2 changes: 1 addition & 1 deletion lib/veeqo/resources/stock_entry.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

module Veeqo
class StockEntry < Resource
include Veeqo::SubresourceActions.new(uri: 'sellables/%d/warehouses/%d/stock_entry', disable: %i[destroy destroy_all all find create])
include Veeqo::SubresourceActions.new(uri: 'sellables/%d/warehouses/%d/stock_entry', disable: %i[destroy destroy_all all create])
property :allocated_stock_level
property :available_stock_level
property :id
Expand Down
6 changes: 3 additions & 3 deletions veeqo_api_ruby.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'rspec'
spec.add_development_dependency 'rspec-nc'

spec.add_dependency 'faraday', '~> 0.13.1'
spec.add_dependency 'faraday', '~> 1.0.0'
spec.add_dependency 'oj'
spec.add_dependency 'faraday_middleware', '~> 0.10.0'
spec.add_dependency 'faraday_middleware', '~> 1.0.0'
spec.add_dependency 'hashie', '~> 3.4'
spec.add_dependency 'jwt', '~> 1.5.4'
spec.add_dependency 'jwt', '~> 2.2'
end