solidus_me 2.2.0 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/solidus_me/shipping_estimator.rb +2 -1
- data/lib/solidus_me/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 218050180c9a5f7fae3eddc4c5abebe30e461e3b3cbee550ba8f7c027e6ddfdb
|
4
|
+
data.tar.gz: a0ba7812be1237002a42eb5d34cf3f54bc02d393d30737d31e69d15d625e49cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df0787404684271e42545f346349b9ed2ed3d0660c881700b9c2ea91791f1a7c220969b77bf5f24f6c2949f5d0933be97feb6087bf24cedc0d8b99bbfd96e700
|
7
|
+
data.tar.gz: 63c0b143c51e8f97faf8c6c41b28699a6da38ecfb1e3692f6ece06c33d1aa588988274804f0639356e9c352a09d071fc1e82c353a1b8ad253c2f57a8768d9f7f
|
@@ -2,7 +2,7 @@ module SolidusMe
|
|
2
2
|
class ShippingEstimator
|
3
3
|
def shipping_rates(package, _frontend_only = true)
|
4
4
|
@me_account = Account.first
|
5
|
-
return [] if @me_account.blank?
|
5
|
+
return [build_shipping_rate(default_rate, package)] if @me_account.blank?
|
6
6
|
|
7
7
|
@me_account.check_token
|
8
8
|
@me_client = MeApi::Client.new(@me_account.access_token)
|
@@ -60,6 +60,7 @@ module SolidusMe
|
|
60
60
|
end
|
61
61
|
|
62
62
|
Spree::ShippingRate.new(
|
63
|
+
shipment: package.shipment,
|
63
64
|
shipping_method: shipping_method,
|
64
65
|
cost: melhor_envio_rate.price,
|
65
66
|
min_delivery_time: melhor_envio_rate.delivery_range["min"],
|
data/lib/solidus_me/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solidus_me
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hamilton Tumenas Borges
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-06-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: solidus_core
|
@@ -157,7 +157,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
157
157
|
- !ruby/object:Gem::Version
|
158
158
|
version: '0'
|
159
159
|
requirements: []
|
160
|
-
rubygems_version: 3.5.
|
160
|
+
rubygems_version: 3.5.10
|
161
161
|
signing_key:
|
162
162
|
specification_version: 4
|
163
163
|
summary: Gem para integração com a API do Melhor Envio
|