spree_stripe_subscriptions 0.0.2 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f79c6ac45672093c0d5e05829a45d29aee68f0d3ce738cfd15b0a61b7aaaac8f
4
- data.tar.gz: 9c9d0c093cfe191b6fb935a8da17cd4ab62e54e622f9b912fd6b644da89324c7
3
+ metadata.gz: 9993c64782cf530fa6c6188abe90a01237b30bceaf0966263869e5763066cf3d
4
+ data.tar.gz: 5ea78d7490da356490610d931046581ca43ac70891a0bbbd2fc3e5ba277b8600
5
5
  SHA512:
6
- metadata.gz: e23cef4662313aa0a8ed116c7aa2669707dbbb0041b527d8650697951f90a868177c9afc9874190f88057623882256ae4f16081bbaa788f5cc493e4561d2587a
7
- data.tar.gz: a629bea13f0f29b026db94c9abcc1142ca951d0e3c4a06a09096c0b9d1fe0b9cf78728dab2b0dbb5f598b056e974e772bc7604462fe464e699865693766e0b99
6
+ metadata.gz: 84626b69ea36f39ba111fa3c03ae4a88fa3c5061fc2cc027bb9507d81546184b45560491d1a10cfddd71021713ba30dce78516c95bc5547bc8dbd514d2e26035
7
+ data.tar.gz: 70aacf21c781cb71ecc138be06754d29dcfc8b957b439a6732efafb9af3046a97b2c8c8bc9cd3764fc9e7c76e905a91bad4d7608b504f2b744cd85f0df023766
@@ -20,6 +20,7 @@ module Spree
20
20
  'quantity': 1
21
21
  }
22
22
  ],
23
+ allow_promotion_codes: @configuration.allow_promotion_codes,
23
24
  automatic_tax: { enabled: @configuration.automatic_tax },
24
25
  tax_id_collection: { enabled: @configuration.tax_id_collection },
25
26
  billing_address_collection: @configuration.billing_address_collection,
@@ -19,6 +19,13 @@
19
19
  <%= f.select :billing_address_collection, Spree::StripeConfiguration::ADDRESS_COLLECTION_OPTIONS.collect { |k, v| [v, k] }, {}, { class: 'select2' } %>
20
20
  <% end %>
21
21
 
22
+ <%= f.field_container :allow_promotion_codes, class: ['checkbox'] do %>
23
+ <%= f.label :allow_promotion_codes do %>
24
+ <%= f.check_box :allow_promotion_codes %>
25
+ <%= I18n.t('spree_stripe_subscriptions.models.stripe_configuration.allow_promotion_codes') %>
26
+ <% end %>
27
+ <% end %>
28
+
22
29
  <%= f.field_container :automatic_tax, class: ['checkbox'] do %>
23
30
  <%= f.label :automatic_tax do %>
24
31
  <%= f.check_box :automatic_tax %>
@@ -35,6 +35,7 @@ en:
35
35
  active: Active
36
36
  deleted_at: Deleted At
37
37
  billing_address_collection: Billing Address Collection
38
+ allow_promotion_codes: Allow Promotion Codes
38
39
  automatic_tax: Automatic Tax
39
40
  tax_id_collection: Tax ID Collection
40
41
  stripe_customers:
@@ -0,0 +1,5 @@
1
+ class AddPromotionFieldToConfigurations < ActiveRecord::Migration[5.2]
2
+ def change
3
+ add_column :spree_stripe_configurations, :allow_promotion_codes, :boolean, default: false
4
+ end
5
+ end
@@ -1,5 +1,5 @@
1
1
  module SpreeStripeSubscriptions
2
- VERSION = '0.0.2'.freeze
2
+ VERSION = '0.0.4'.freeze
3
3
 
4
4
  module_function
5
5
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_stripe_subscriptions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Satyakam Pandya
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-22 00:00:00.000000000 Z
11
+ date: 2023-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: spree
@@ -174,6 +174,7 @@ files:
174
174
  - db/migrate/20221209094013_add_stripe_invoices.rb
175
175
  - db/migrate/20221209131817_add_user_to_invoice.rb
176
176
  - db/migrate/20221221080141_add_extra_plan_fields.rb
177
+ - db/migrate/20230711073051_add_promotion_field_to_configurations.rb
177
178
  - lib/generators/spree_stripe_subscriptions/install/install_generator.rb
178
179
  - lib/spree_stripe_subscriptions.rb
179
180
  - lib/spree_stripe_subscriptions/engine.rb