desertcart 1.1.1 → 1.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/Gemfile.lock +22 -27
- data/desertcart.gemspec +1 -1
- data/lib/desertcart/marketplace/order_item/operations/find.rb +1 -1
- data/lib/desertcart/marketplace/order_item/operations/update.rb +1 -1
- data/lib/desertcart/marketplace/order_item_acceptance/operations/create.rb +2 -0
- data/lib/desertcart/marketplace/order_item_acceptance/serializer.rb +2 -0
- data/lib/desertcart/resources/marketplace/order_item_acceptance.rb +2 -0
- data/lib/desertcart/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a637e22006f9d352ebc0923d6f2f65c7969fc06ffa0c5377dc042305e0161dc3
|
4
|
+
data.tar.gz: dbae41374368e20b87076d7f31311934eb34c5b4bc6cc382428d60e30dd704ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16eed42bd6ee7add8cf93cd53f4eed49c3063fdadafd3bbf98520541cd9a3cf6a85cf5195cdb5431adb0fdc9b10d6c3d642c1c7ccbe290bbed0e2514250b8a46
|
7
|
+
data.tar.gz: f8a5b2280fbcb3ebad9df05b7fd469f73268ed0ad13dcbd318c596e93369a74592205f61ea6dfb154061442426bf60d63eec1400b0c2d9662ebe1bb96aef92c1
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
## [Unreleased]
|
2
2
|
|
3
|
+
## [1.1.5] - 2021-12-16
|
4
|
+
|
5
|
+
- Chore: Update LedgerSync to 2.3.1
|
6
|
+
|
7
|
+
## [1.1.4] - 2021-11-22
|
8
|
+
|
9
|
+
- Fix: Wrong OrderItemAcceptance attribute type
|
10
|
+
|
11
|
+
## [1.1.3] - 2021-11-22
|
12
|
+
|
13
|
+
- Fix: Add final purchase details to OrderItemAcceptance resource
|
14
|
+
|
15
|
+
## [1.1.2] - 2021-11-22
|
16
|
+
|
17
|
+
- Feature: Add final purchase details to OrderItemAcceptance
|
18
|
+
|
3
19
|
## [1.1.0] - 2021-09-26
|
4
20
|
|
5
21
|
- Feature: Support Ruby 2.7 and newer
|
data/Gemfile.lock
CHANGED
@@ -1,20 +1,19 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
desertcart (1.1.
|
5
|
-
ledger_sync (~> 2.
|
4
|
+
desertcart (1.1.5)
|
5
|
+
ledger_sync (~> 2.3.1)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
activemodel (
|
11
|
-
activesupport (=
|
12
|
-
activesupport (
|
10
|
+
activemodel (7.0.0)
|
11
|
+
activesupport (= 7.0.0)
|
12
|
+
activesupport (7.0.0)
|
13
13
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
14
14
|
i18n (>= 1.6, < 2)
|
15
15
|
minitest (>= 5.1)
|
16
16
|
tzinfo (~> 2.0)
|
17
|
-
zeitwerk (~> 2.3)
|
18
17
|
ast (2.4.2)
|
19
18
|
colorize (0.8.1)
|
20
19
|
concurrent-ruby (1.1.9)
|
@@ -28,33 +27,30 @@ GEM
|
|
28
27
|
dry-configurable (~> 0.13, >= 0.13.0)
|
29
28
|
dry-core (0.7.1)
|
30
29
|
concurrent-ruby (~> 1.0)
|
31
|
-
dry-equalizer (0.3.0)
|
32
30
|
dry-inflector (0.2.1)
|
33
31
|
dry-initializer (3.0.4)
|
34
32
|
dry-logic (1.2.0)
|
35
33
|
concurrent-ruby (~> 1.0)
|
36
34
|
dry-core (~> 0.5, >= 0.5)
|
37
|
-
dry-schema (1.
|
35
|
+
dry-schema (1.8.0)
|
38
36
|
concurrent-ruby (~> 1.0)
|
39
|
-
dry-configurable (~> 0.
|
40
|
-
dry-core (~> 0.
|
41
|
-
dry-equalizer (~> 0.2)
|
37
|
+
dry-configurable (~> 0.13, >= 0.13.0)
|
38
|
+
dry-core (~> 0.5, >= 0.5)
|
42
39
|
dry-initializer (~> 3.0)
|
43
40
|
dry-logic (~> 1.0)
|
44
|
-
dry-types (~> 1.
|
41
|
+
dry-types (~> 1.5)
|
45
42
|
dry-types (1.5.1)
|
46
43
|
concurrent-ruby (~> 1.0)
|
47
44
|
dry-container (~> 0.3)
|
48
45
|
dry-core (~> 0.5, >= 0.5)
|
49
46
|
dry-inflector (~> 0.1, >= 0.1.2)
|
50
47
|
dry-logic (~> 1.0, >= 1.0.2)
|
51
|
-
dry-validation (1.
|
48
|
+
dry-validation (1.7.0)
|
52
49
|
concurrent-ruby (~> 1.0)
|
53
50
|
dry-container (~> 0.7, >= 0.7.1)
|
54
|
-
dry-core (~> 0.
|
55
|
-
dry-equalizer (~> 0.2)
|
51
|
+
dry-core (~> 0.5, >= 0.5)
|
56
52
|
dry-initializer (~> 3.0)
|
57
|
-
dry-schema (~> 1.
|
53
|
+
dry-schema (~> 1.8, >= 1.8.0)
|
58
54
|
faraday (1.8.0)
|
59
55
|
faraday-em_http (~> 1.0)
|
60
56
|
faraday-em_synchrony (~> 1.0)
|
@@ -66,8 +62,8 @@ GEM
|
|
66
62
|
faraday-rack (~> 1.0)
|
67
63
|
multipart-post (>= 1.2, < 3)
|
68
64
|
ruby2_keywords (>= 0.0.4)
|
69
|
-
faraday-detailed_logger (2.
|
70
|
-
faraday (>= 0.
|
65
|
+
faraday-detailed_logger (2.4.2)
|
66
|
+
faraday (>= 0.16, < 2)
|
71
67
|
faraday-em_http (1.0.0)
|
72
68
|
faraday-em_synchrony (1.0.0)
|
73
69
|
faraday-excon (1.1.0)
|
@@ -80,14 +76,13 @@ GEM
|
|
80
76
|
faraday (~> 1.0)
|
81
77
|
fingerprintable (1.2.1)
|
82
78
|
colorize
|
83
|
-
i18n (1.8.
|
79
|
+
i18n (1.8.11)
|
84
80
|
concurrent-ruby (~> 1.0)
|
85
|
-
ipaddr (1.2.
|
86
|
-
ledger_sync (2.
|
81
|
+
ipaddr (1.2.3)
|
82
|
+
ledger_sync (2.3.1)
|
87
83
|
activemodel
|
88
|
-
|
89
|
-
dry-
|
90
|
-
dry-validation (~> 1.5.6)
|
84
|
+
dry-schema
|
85
|
+
dry-validation
|
91
86
|
faraday
|
92
87
|
faraday-detailed_logger
|
93
88
|
faraday_middleware
|
@@ -96,9 +91,10 @@ GEM
|
|
96
91
|
openssl (~> 2.2.0)
|
97
92
|
pd_ruby
|
98
93
|
rack (~> 2.2.3)
|
94
|
+
rainbow (~> 3.0)
|
99
95
|
resonad
|
100
96
|
simply_serializable (>= 1.5.1)
|
101
|
-
minitest (5.
|
97
|
+
minitest (5.15.0)
|
102
98
|
multipart-post (2.1.1)
|
103
99
|
nokogiri (1.12.5-x86_64-linux)
|
104
100
|
racc (~> 1.4)
|
@@ -109,7 +105,7 @@ GEM
|
|
109
105
|
ast (~> 2.4.1)
|
110
106
|
pd_ruby (0.2.3)
|
111
107
|
colorize
|
112
|
-
racc (1.
|
108
|
+
racc (1.6.0)
|
113
109
|
rack (2.2.3)
|
114
110
|
rainbow (3.0.0)
|
115
111
|
rake (13.0.6)
|
@@ -147,7 +143,6 @@ GEM
|
|
147
143
|
tzinfo (2.0.4)
|
148
144
|
concurrent-ruby (~> 1.0)
|
149
145
|
unicode-display_width (2.1.0)
|
150
|
-
zeitwerk (2.4.2)
|
151
146
|
|
152
147
|
PLATFORMS
|
153
148
|
x86_64-linux
|
data/desertcart.gemspec
CHANGED
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
|
|
29
29
|
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
30
30
|
spec.require_paths = ['lib']
|
31
31
|
|
32
|
-
spec.add_dependency 'ledger_sync', '~> 2.
|
32
|
+
spec.add_dependency 'ledger_sync', '~> 2.3.1'
|
33
33
|
spec.add_development_dependency 'dotenv'
|
34
34
|
spec.add_development_dependency 'rubocop'
|
35
35
|
end
|
@@ -6,7 +6,7 @@ module Desertcart
|
|
6
6
|
module Operations
|
7
7
|
class Find < Desertcart::Operation::Find
|
8
8
|
class Contract < LedgerSync::Ledgers::Contract
|
9
|
-
params do
|
9
|
+
params do # rubocop:disable Metrics/BlockLength
|
10
10
|
required(:ledger_id).filled(:string)
|
11
11
|
optional(:name).maybe(:string)
|
12
12
|
optional(:store_uid).maybe(:string)
|
@@ -6,7 +6,7 @@ module Desertcart
|
|
6
6
|
module Operations
|
7
7
|
class Update < Desertcart::Operation::Update
|
8
8
|
class Contract < LedgerSync::Ledgers::Contract
|
9
|
-
params do
|
9
|
+
params do # rubocop:disable Metrics/BlockLength
|
10
10
|
required(:ledger_id).filled(:string)
|
11
11
|
optional(:name).maybe(:string)
|
12
12
|
optional(:store_uid).maybe(:string)
|
@@ -11,6 +11,8 @@ module Desertcart
|
|
11
11
|
params do
|
12
12
|
required(:order_item).maybe(:hash, Types::Reference)
|
13
13
|
optional(:seller_reference_number).maybe(:string)
|
14
|
+
optional(:final_purchase_price).maybe(:integer)
|
15
|
+
optional(:final_purchase_currency_code).maybe(:string)
|
14
16
|
end
|
15
17
|
end
|
16
18
|
|
@@ -7,6 +7,8 @@ module Desertcart
|
|
7
7
|
class OrderItemAcceptance < Desertcart::Resource
|
8
8
|
references_one :order_item, to: Desertcart::Marketplace::OrderItem
|
9
9
|
attribute :seller_reference_number, type: LedgerSync::Type::String
|
10
|
+
attribute :final_purchase_price, type: LedgerSync::Type::Integer
|
11
|
+
attribute :final_purchase_currency_code, type: LedgerSync::Type::String
|
10
12
|
end
|
11
13
|
end
|
12
14
|
end
|
data/lib/desertcart/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: desertcart
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jozef Vaclavik
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-12-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ledger_sync
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 2.
|
19
|
+
version: 2.3.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 2.
|
26
|
+
version: 2.3.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: dotenv
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|