desertcart 1.1.0 → 1.1.4

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: f9055c4070ac08ab9cb9acad99acaf9c4df0fbfae57a2ed4aa04fab6f92c8060
4
- data.tar.gz: c315f3d9d41d41e144dd6b544d0976336a028fcb3f4cc37d6b368d414549d937
3
+ metadata.gz: fdec4d6538194acf94bd1b839f851db04be17a680db823994b0f6be25c0880b1
4
+ data.tar.gz: 0d2c6695570e11376c279dc7a97a52e524a4d23591d7a2e8bbe194a5a643c4bc
5
5
  SHA512:
6
- metadata.gz: 7514dafd549ea05bafe81d60dfd0934ddc832aa903e15277180d9eea025bf092011249212039a596fa69a6a73ed827ff2552cfbed339896341f4f61d1030425e
7
- data.tar.gz: 56b190489ea24d756d6a3eb3a41685a3b55c42105307a36b88230d234e748ba7d20f71927f8151ee82820f174ef31d1e4e9b200c3f853c637170334f03246a15
6
+ metadata.gz: 48683f2d0c39d6b7d565de1edb3690d2e95367ae0fe0e06a98b1f4788c00d16fe17011857e9ed6e6594694275c6da52b6c330010524d1a3ab61ce0d099af2b3a
7
+ data.tar.gz: ad26c15fe4bb92efd2b9b3487aa679d4bf812407533d90be5596c889eca91afea12086f2696cb4995e90e2222979422ad2c9eb21e6aec5438fcaa34c1e6eb25a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [1.1.4] - 2021-11-22
4
+
5
+ - Fix: Wrong OrderItemAcceptance attribute type
6
+
7
+ ## [1.1.3] - 2021-11-22
8
+
9
+ - Fix: Add final purchase details to OrderItemAcceptance resource
10
+
11
+ ## [1.1.2] - 2021-11-22
12
+
13
+ - Feature: Add final purchase details to OrderItemAcceptance
14
+
3
15
  ## [1.1.0] - 2021-09-26
4
16
 
5
17
  - Feature: Support Ruby 2.7 and newer
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- desertcart (1.1.0)
4
+ desertcart (1.1.4)
5
5
  ledger_sync (~> 2.2.0)
6
6
 
7
7
  GEM
@@ -20,12 +20,12 @@ GEM
20
20
  concurrent-ruby (1.1.9)
21
21
  diff-lcs (1.4.4)
22
22
  dotenv (2.7.6)
23
- dry-configurable (0.12.1)
23
+ dry-configurable (0.13.0)
24
24
  concurrent-ruby (~> 1.0)
25
- dry-core (~> 0.5, >= 0.5.0)
26
- dry-container (0.8.0)
25
+ dry-core (~> 0.6)
26
+ dry-container (0.9.0)
27
27
  concurrent-ruby (~> 1.0)
28
- dry-configurable (~> 0.1, >= 0.1.3)
28
+ dry-configurable (~> 0.13, >= 0.13.0)
29
29
  dry-core (0.7.1)
30
30
  concurrent-ruby (~> 1.0)
31
31
  dry-equalizer (0.3.0)
@@ -55,7 +55,7 @@ GEM
55
55
  dry-equalizer (~> 0.2)
56
56
  dry-initializer (~> 3.0)
57
57
  dry-schema (~> 1.5, >= 1.5.2)
58
- faraday (1.7.1)
58
+ faraday (1.8.0)
59
59
  faraday-em_http (~> 1.0)
60
60
  faraday-em_synchrony (~> 1.0)
61
61
  faraday-excon (~> 1.1)
@@ -66,8 +66,8 @@ GEM
66
66
  faraday-rack (~> 1.0)
67
67
  multipart-post (>= 1.2, < 3)
68
68
  ruby2_keywords (>= 0.0.4)
69
- faraday-detailed_logger (2.3.0)
70
- faraday (>= 0.8, < 2)
69
+ faraday-detailed_logger (2.4.2)
70
+ faraday (>= 0.16, < 2)
71
71
  faraday-em_http (1.0.0)
72
72
  faraday-em_synchrony (1.0.0)
73
73
  faraday-excon (1.1.0)
@@ -76,15 +76,15 @@ GEM
76
76
  faraday-net_http_persistent (1.2.0)
77
77
  faraday-patron (1.0.0)
78
78
  faraday-rack (1.0.0)
79
- faraday_middleware (1.1.0)
79
+ faraday_middleware (1.2.0)
80
80
  faraday (~> 1.0)
81
81
  fingerprintable (1.2.1)
82
82
  colorize
83
- i18n (1.8.10)
83
+ i18n (1.8.11)
84
84
  concurrent-ruby (~> 1.0)
85
- ledger_sync (2.2.0)
85
+ ipaddr (1.2.3)
86
+ ledger_sync (2.2.3)
86
87
  activemodel
87
- colorize
88
88
  dry-schema (~> 1.5.4)
89
89
  dry-validation (~> 1.5.6)
90
90
  faraday
@@ -95,19 +95,21 @@ GEM
95
95
  openssl (~> 2.2.0)
96
96
  pd_ruby
97
97
  rack (~> 2.2.3)
98
+ rainbow (~> 3.0)
98
99
  resonad
99
100
  simply_serializable (>= 1.5.1)
100
101
  minitest (5.14.4)
101
102
  multipart-post (2.1.1)
102
- nokogiri (1.12.4-x86_64-linux)
103
+ nokogiri (1.12.5-x86_64-linux)
103
104
  racc (~> 1.4)
104
- openssl (2.2.0)
105
+ openssl (2.2.1)
106
+ ipaddr
105
107
  parallel (1.21.0)
106
108
  parser (3.0.2.0)
107
109
  ast (~> 2.4.1)
108
110
  pd_ruby (0.2.3)
109
111
  colorize
110
- racc (1.5.2)
112
+ racc (1.6.0)
111
113
  rack (2.2.3)
112
114
  rainbow (3.0.0)
113
115
  rake (13.0.6)
@@ -145,7 +147,7 @@ GEM
145
147
  tzinfo (2.0.4)
146
148
  concurrent-ruby (~> 1.0)
147
149
  unicode-display_width (2.1.0)
148
- zeitwerk (2.4.2)
150
+ zeitwerk (2.5.1)
149
151
 
150
152
  PLATFORMS
151
153
  x86_64-linux
@@ -15,6 +15,8 @@ module Desertcart
15
15
  attribute :merchant_id
16
16
  attribute :currency_code
17
17
  attribute :price
18
+ attribute :final_purchase_currency_code
19
+ attribute :final_purchase_price
18
20
  attribute :title
19
21
  attribute :state
20
22
  attribute :marketplace_shipping_state
@@ -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)
@@ -16,6 +16,8 @@ module Desertcart
16
16
  optional(:merchant_id).maybe(:string)
17
17
  optional(:currency_code).maybe(:string)
18
18
  optional(:price).maybe(:integer)
19
+ optional(:final_purchase_currency_code).maybe(:string)
20
+ optional(:final_pruchase_price).maybe(:integer)
19
21
  optional(:title).maybe(:string)
20
22
  optional(:state).maybe(:string)
21
23
  optional(:marketplace_shipping_state).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)
@@ -16,6 +16,8 @@ module Desertcart
16
16
  optional(:merchant_id).maybe(:string)
17
17
  optional(:currency_code).maybe(:string)
18
18
  optional(:price).maybe(:integer)
19
+ optional(:final_purchase_currency_code).maybe(:string)
20
+ optional(:final_pruchase_price).maybe(:integer)
19
21
  optional(:title).maybe(:string)
20
22
  optional(:state).maybe(:string)
21
23
  optional(:marketplace_shipping_state).maybe(:string)
@@ -13,6 +13,8 @@ module Desertcart
13
13
  attribute :merchant_id
14
14
  attribute :currency_code
15
15
  attribute :price
16
+ attribute :final_purchase_currency_code
17
+ attribute :final_purchase_price
16
18
  attribute :title
17
19
  attribute :state
18
20
  attribute :marketplace_shipping_state
@@ -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
 
@@ -9,6 +9,8 @@ module Desertcart
9
9
  resource.order_item.ledger_id
10
10
  end
11
11
  attribute :seller_reference_number
12
+ attribute :final_purchase_price
13
+ attribute :final_purchase_currency_code
12
14
  end
13
15
  end
14
16
  end
@@ -13,6 +13,8 @@ module Desertcart
13
13
  attribute :merchant_id, type: LedgerSync::Type::String
14
14
  attribute :currency_code, type: LedgerSync::Type::String
15
15
  attribute :price, type: LedgerSync::Type::Integer
16
+ attribute :final_purchase_currency_code, type: LedgerSync::Type::String
17
+ attribute :final_purchase_price, type: LedgerSync::Type::Integer
16
18
  attribute :title, type: LedgerSync::Type::String
17
19
  attribute :state, type: LedgerSync::Type::String
18
20
  attribute :marketplace_shipping_state, type: LedgerSync::Type::String
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Desertcart
4
- VERSION = '1.1.0'
4
+ VERSION = '1.1.4'
5
5
  end
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.0
4
+ version: 1.1.4
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-09-26 00:00:00.000000000 Z
11
+ date: 2021-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ledger_sync