pwinty 3.0.3 → 3.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c96a8f034fa0a6147ca26c6d795eef40a0d3b6b4821494fbd33127829e1cc268
4
- data.tar.gz: 6596781c7281f3e97ec77d8050ce464fb3eab66792a77e07fbdc4c30dff59f61
3
+ metadata.gz: 260bae82e1caee65209ccc72105cf00385c2afe9bcf0701568cd12011ddee479
4
+ data.tar.gz: 582082f110e4e0ea9641d8f2d9473299dfa11b306c9ada5a251c303ae5240573
5
5
  SHA512:
6
- metadata.gz: 2a3a524ed51db86e71bca62b1675a34317cb6154864dfc0789c742b4007ab95344f27bb80ab8b2e451384cf65d101425232a96549749cf0ae13d5897cde97a77
7
- data.tar.gz: ea1e9e9be17e7ed067b16adb6b9a7efe2c9bfe69f1e1e5c75754b0d4633be4363fd3cb5ec2a4dd4ce48a5d53474fd33946f28dcf1f7ee03284d2eccd97ec32e1
6
+ metadata.gz: edd12bb4626ac12583f0eb8e86a1a0bc5aefdc6f0b9b24106681aa6265a00d5e173c978920496900e743252f8ba81fc6ddaeb6360de6ad032650a533e5ded39a
7
+ data.tar.gz: ee0413598550dc1f44f57123f55d51e8b5bf387d58d94249abc2cf83e189804ea5e98f40c84c81ca0cb3af6fc43872ba43c0db8211d216e58729949a8d665e8f
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pwinty (3.0.3)
4
+ pwinty (3.0.4)
5
5
  dry-struct (~> 1.0)
6
6
  dry-struct-setters (~> 0.2)
7
7
  faraday (~> 0.15)
data/README.md CHANGED
@@ -188,8 +188,7 @@ order.shippingInfo.shipments[0]
188
188
  ``` ruby
189
189
  orders = Pwinty::Order.list
190
190
  ```
191
- **N.B - There appears to be an issue with the pagination of the list results from the API.
192
- So you can only get the latest 100 results at this moment.**
191
+ **N.B - This will get all of your orders - this can take some time. By default, it will request the orders from Pwinty in batches of 50; so 500 orders will take 10 requests to complete.**
193
192
 
194
193
  Will return an array of `Pwinty::Order` objects.
195
194
 
@@ -204,13 +203,20 @@ Will return an integer of the number of orders you have.
204
203
 
205
204
  ## Development
206
205
 
207
- After checking out the repo, run `bundle` to install dependencies. Then, run
208
- `rake` to run the tests. You can also run `bin/console` for an interactive
206
+ After checking out the repo, run `bundle` to install dependencies.
207
+
208
+ Then, run `rake` to run the tests.
209
+
210
+ You can also run `bin/console` for an interactive
209
211
  prompt that will allow you to experiment.
210
212
 
211
- The tests use VCRs to mock the responses from Pwinty's API.
213
+ The tests use VCRs to mock the responses from Pwinty's API. See the
214
+ spec/vcrs directory for some example responses from the Pwinty API
215
+ which are used in the existing tests.
212
216
 
213
217
  To install this gem onto your local machine, run `bundle exec rake install`.
218
+
219
+ #### For project owners only:
214
220
  To release a new version, update the version number in `version.rb`, and then
215
221
  run `bundle exec rake release`, which will create a git tag for the version,
216
222
  push git commits and tags, and push the `.gem` file to
@@ -17,6 +17,7 @@ module Pwinty
17
17
  attribute :stateOrCounty, Types::String.optional
18
18
  attribute :status, Types::String
19
19
  attribute :payment, Types::String
20
+ attribute? :packingSlipUrl, Types::String.optional
20
21
  attribute :paymentUrl, Types::String.optional
21
22
  attribute :price, Types::Integer
22
23
  attribute :shippingInfo, Pwinty::ShippingInfo
@@ -1,3 +1,3 @@
1
1
  module Pwinty
2
- VERSION = "3.0.3"
2
+ VERSION = "3.0.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pwinty
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.3
4
+ version: 3.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Harvey
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-01-24 00:00:00.000000000 Z
11
+ date: 2020-01-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler