patch_ruby 1.11.1 → 1.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/Gemfile.lock +1 -1
- data/lib/patch_ruby/api_client.rb +1 -1
- data/lib/patch_ruby/models/create_bitcoin_estimate_request.rb +1 -1
- data/lib/patch_ruby/models/order.rb +11 -1
- data/lib/patch_ruby/version.rb +1 -1
- data/spec/integration/orders_spec.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c4c6622c9c97768d2c233d87f9ce0dbfab9fc74f7e4f0ac580754cacf9d892c8
|
4
|
+
data.tar.gz: eb8743d767c0bc0116ea6a36a4b6e1a160d986ddde64942d4c4e056c47987ed4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fbde5884a5facbdc44de9b3bbb44ed3f001bdb4ee094ff173603bc784a269b31ccc57be17756239b8cb51f5912954d0ab7ada18ca5eae80e965c224b17f112fc
|
7
|
+
data.tar.gz: 435315b6ba7b76b5ffe84a4a5924c52ceafdaa6efe7fc4fb4bbe19fd722d06c73b810c7f577787ed15d7e91635df34aa792d63dcd03c373254a306f22a6b43f8
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7
7
|
|
8
|
+
## [1.12.0] - 2021-09-08
|
9
|
+
|
10
|
+
### Added
|
11
|
+
|
12
|
+
- Adds a `created_at` attribute in all order responses
|
13
|
+
|
8
14
|
## [1.11.1] - 2021-09-07
|
9
15
|
|
10
16
|
### Changed
|
data/Gemfile.lock
CHANGED
@@ -31,7 +31,7 @@ module Patch
|
|
31
31
|
# @option config [Configuration] Configuration for initializing the object, default to Configuration.default
|
32
32
|
def initialize(config = Configuration.default)
|
33
33
|
@config = config
|
34
|
-
@user_agent = "patch-ruby/1.
|
34
|
+
@user_agent = "patch-ruby/1.12.0"
|
35
35
|
@default_headers = {
|
36
36
|
'Content-Type' => 'application/json',
|
37
37
|
'User-Agent' => @user_agent
|
@@ -18,6 +18,9 @@ module Patch
|
|
18
18
|
# A unique uid for the record. UIDs will be prepended by ord_prod or ord_test depending on the mode it was created in.
|
19
19
|
attr_accessor :id
|
20
20
|
|
21
|
+
# The timestamp at which the order was created
|
22
|
+
attr_accessor :created_at
|
23
|
+
|
21
24
|
# The amount of carbon offsets in grams purchased through this order.
|
22
25
|
attr_accessor :mass_g
|
23
26
|
|
@@ -71,6 +74,7 @@ module Patch
|
|
71
74
|
def self.attribute_map
|
72
75
|
{
|
73
76
|
:'id' => :'id',
|
77
|
+
:'created_at' => :'created_at',
|
74
78
|
:'mass_g' => :'mass_g',
|
75
79
|
:'production' => :'production',
|
76
80
|
:'state' => :'state',
|
@@ -92,6 +96,7 @@ module Patch
|
|
92
96
|
def self.openapi_types
|
93
97
|
{
|
94
98
|
:'id' => :'String',
|
99
|
+
:'created_at' => :'Time',
|
95
100
|
:'mass_g' => :'Integer',
|
96
101
|
:'production' => :'Boolean',
|
97
102
|
:'state' => :'String',
|
@@ -143,6 +148,10 @@ module Patch
|
|
143
148
|
self.id = attributes[:'id']
|
144
149
|
end
|
145
150
|
|
151
|
+
if attributes.key?(:'created_at')
|
152
|
+
self.created_at = attributes[:'created_at']
|
153
|
+
end
|
154
|
+
|
146
155
|
if attributes.key?(:'mass_g')
|
147
156
|
self.mass_g = attributes[:'mass_g']
|
148
157
|
end
|
@@ -288,6 +297,7 @@ module Patch
|
|
288
297
|
return true if self.equal?(o)
|
289
298
|
self.class == o.class &&
|
290
299
|
id == o.id &&
|
300
|
+
created_at == o.created_at &&
|
291
301
|
mass_g == o.mass_g &&
|
292
302
|
production == o.production &&
|
293
303
|
state == o.state &&
|
@@ -308,7 +318,7 @@ module Patch
|
|
308
318
|
# Calculates hash code according to all attributes.
|
309
319
|
# @return [Integer] Hash code
|
310
320
|
def hash
|
311
|
-
[id, mass_g, production, state, allocation_state, price_cents_usd, patch_fee_cents_usd, allocations, registry_url, metadata].hash
|
321
|
+
[id, created_at, mass_g, production, state, allocation_state, price_cents_usd, patch_fee_cents_usd, allocations, registry_url, metadata].hash
|
312
322
|
end
|
313
323
|
|
314
324
|
# Builds the object from hash
|
data/lib/patch_ruby/version.rb
CHANGED
@@ -37,6 +37,7 @@ RSpec.describe 'Orders Integration' do
|
|
37
37
|
order = create_order_response.data
|
38
38
|
expect(create_order_response.success).to eq true
|
39
39
|
expect(order.id).not_to be_nil
|
40
|
+
expect(order.created_at).to be_a_kind_of(Time)
|
40
41
|
expect(order.mass_g).to eq(order_mass_g)
|
41
42
|
expect(order.price_cents_usd).to be_between(expected_price - 2, expected_price + 2)
|
42
43
|
expect(order.patch_fee_cents_usd).to be_kind_of(Integer)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: patch_ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Patch Technology
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-09-
|
11
|
+
date: 2021-09-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|