flowcommerce_spree 0.0.16 → 0.0.17

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: 5c9cb2032b50a1392231cb88c7ef6549e623ac604bcdcfecc8d8224e9f8558c4
4
- data.tar.gz: 1564b9412b0be89b38ff6a7feb86397311ebe400614618c13c495c58c90059f4
3
+ metadata.gz: 10b41982519fa82948ce03663d36ee56bb19a9efe227a8c723dea3e20614c730
4
+ data.tar.gz: a9a4ad3ea162660a65208dfd1b86dbc89ab7d9084b7a641a198be685453e7390
5
5
  SHA512:
6
- metadata.gz: 88f39ac40b274fbcbf29de37a461b14b7aca12d0496d20c89ba27eeee63d3013c776631737cc1f5b154ffe2f67c812aed6aac850d49584853b4063ef81c85acb
7
- data.tar.gz: f085428b7616287640093de5cb1635dd6a7e8d63b77b64991f88062fa8c2ef271dc0763a7bc21b5331b2348a822485f496716b4ce7f5db7e6147584f56c2735c
6
+ metadata.gz: b480ab7c7664a2d5526bfa9250b0a5a7dd296d1ce24d3fe602ca3cd6ddce2f4a987077310843c2d181a7f8fab1cc84134f7259f0b547d2f5e6d12d855c1de342
7
+ data.tar.gz: 01ba4ac9afd4e712436112ea49d538068b4d6192ea64f319580a6ee9340d77048a406f500b073118362c29f4c331ed23cb2a10954ad0399dc66da982bd940e9d
@@ -6,6 +6,7 @@ module Spree
6
6
  class FlowIo < ShippingCalculator
7
7
  preference :lower_boundary, :decimal, default: 100
8
8
  preference :charge_default, :decimal, default: 15
9
+ preference :sample_product_cost, :decimal, default: 9
9
10
 
10
11
  def self.description
11
12
  'FlowIO Calculator'
@@ -26,6 +27,10 @@ module Spree
26
27
  preferred_lower_boundary
27
28
  end
28
29
 
30
+ def default_sample_charge
31
+ preferred_sample_product_cost
32
+ end
33
+
29
34
  private
30
35
 
31
36
  def flow_order(package)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FlowcommerceSpree
4
- VERSION = '0.0.16'
4
+ VERSION = '0.0.17'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flowcommerce_spree
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.16
4
+ version: 0.0.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aurel Branzeanu
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-09-22 00:00:00.000000000 Z
12
+ date: 2021-09-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: active_model_serializers
@@ -285,7 +285,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
285
285
  - !ruby/object:Gem::Version
286
286
  version: '0'
287
287
  requirements: []
288
- rubygems_version: 3.0.3
288
+ rubygems_version: 3.0.8
289
289
  signing_key:
290
290
  specification_version: 4
291
291
  summary: Integration of Spree with Flow API