pwinty 4.0.0 → 4.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 834f6357c9970480b7572f388a1ff47f27a50449b56b09ec9913fecf527e510c
4
- data.tar.gz: 56552af641deb119beed08897f8f3ca3655554d58cfef1cd838a8f6b250e27c7
3
+ metadata.gz: 065c6fffb3579806e5abc91d3ef3b5458ae01a2900d8c48dee2054864e23dd7a
4
+ data.tar.gz: 4e7e0e147b8029fe4b0898dab5f40aff3e6a7bd5956f666bce2052fa80c4b1ee
5
5
  SHA512:
6
- metadata.gz: 8d24ae448259424a7d1e51c02e508b5ee0f05d2a06bb346390c0cb9fc5a4c2803ff8458a1dc32bf797ac3ba413050b09203dfde80a6dde94c7a995d24bb3eec8
7
- data.tar.gz: 1fb7637795fe4ad025089c77ac62a6fc1596b6c7517227752c3680081fdad75b71678a9ce3c42fc6840852ba857b17498db22dec96b8c6e08a59e8c462cbedb0
6
+ metadata.gz: 74c0cb4eaed1a4fa179dd55e2b0b12d7053a5ea8115abc57f0a3649a2a9a538c97ed7f3a44353e58b9a398ebd115258ad0169203e6ab559fb114e6fc8baca1c0
7
+ data.tar.gz: 4bb6315b4417abde5e10afb577e2c3772cc42664b455c4278624afc749e8953e4add503cc3d388d7dc191784370dfae72b406faa01b46a806e2c6ed81fd94f51
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pwinty (4.0.0)
4
+ pwinty (4.0.1)
5
5
  dry-struct (~> 1.0)
6
6
  dry-struct-setters (~> 0.4)
7
7
  faraday (~> 1.0)
data/README.md CHANGED
@@ -75,20 +75,20 @@ to understand the full list of attributes to send.
75
75
 
76
76
  ``` ruby
77
77
  order = Pwinty::Order.new(
78
- shippingMethod: "Budget",
79
- recipient: {
80
- name: "Tom Harvey",
81
- },
82
- items: [
83
- {
84
- sku: "GLOBAL-PHO-4X6-PRO",
85
- copies: 1,
86
- assets: [
87
- {url: 'https://example.com/image.jpg'}
88
- ],
89
- attributes: {finish: 'lustre'},
90
- }
91
- ]
78
+ shippingMethod: "Budget",
79
+ recipient: {
80
+ name: "Tom Harvey",
81
+ },
82
+ items: [
83
+ {
84
+ sku: "GLOBAL-PHO-4X6-PRO",
85
+ copies: 1,
86
+ assets: [
87
+ {url: 'https://example.com/image.jpg'},
88
+ ],
89
+ attributes: {finish: 'lustre'},
90
+ },
91
+ ]
92
92
  )
93
93
 
94
94
  submitted_order = order.submit
@@ -1,3 +1,3 @@
1
1
  module Pwinty
2
- VERSION = "4.0.0"
2
+ VERSION = "4.0.1"
3
3
  end
data/lib/pwinty.rb CHANGED
@@ -14,7 +14,7 @@ module Pwinty
14
14
  class AuthenticationError < Pwinty::Error; end
15
15
  class InvalidContentTypeHeader < Pwinty::Error; end
16
16
  class MethodNotAllowed < Pwinty::Error; end
17
- class OrderNotFound < Pwinty::Error; end
17
+ class NotFound < Pwinty::Error; end
18
18
  class StateIsInvalid < Pwinty::Error; end
19
19
  class ValidationError < Pwinty::Error; end
20
20
 
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: 4.0.0
4
+ version: 4.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Harvey
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-04-29 00:00:00.000000000 Z
11
+ date: 2022-05-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler