Sha256: 56738e920cce5ae64e4b50dbb744e846529c19de0e7144509b8817269201691b

Contents?: true

Size: 854 Bytes

Versions: 27

Compression:

Stored size: 854 Bytes

Contents

# frozen_string_literal: true

Spree::StoreCreditCategory.find_or_create_by!(name: I18n.t('spree.store_credit_category.default'))

Spree::PaymentMethod.create_with(
  name: "Store Credit",
  description: "Store credit",
  active: true,
  available_to_admin: false,
  available_to_users: false
).find_or_create_by!(
  type: "Spree::PaymentMethod::StoreCredit"
)

Spree::StoreCreditType.create_with(priority: 1).find_or_create_by!(name: Spree::StoreCreditType::EXPIRING)
Spree::StoreCreditType.create_with(priority: 2).find_or_create_by!(name: Spree::StoreCreditType::NON_EXPIRING)

Spree::ReimbursementType.create_with(name: "Store Credit").find_or_create_by!(type: 'Spree::ReimbursementType::StoreCredit')

Spree::StoreCreditCategory.find_or_create_by!(name: 'Gift Card')

Spree::StoreCreditUpdateReason.find_or_create_by!(name: 'Credit Given In Error')

Version data entries

27 entries across 27 versions & 2 rubygems

Version Path
solidus_core-2.6.6 db/default/spree/store_credit.rb
solidus_core-2.7.4 db/default/spree/store_credit.rb
solidus_core-2.7.3 db/default/spree/store_credit.rb
solidus_core-2.6.5 db/default/spree/store_credit.rb
solidus_core-2.7.2 db/default/spree/store_credit.rb
solidus_core-2.6.4 db/default/spree/store_credit.rb
solidus_core-2.6.3 db/default/spree/store_credit.rb
solidus_core-2.7.1 db/default/spree/store_credit.rb
solidus_core-2.6.2 db/default/spree/store_credit.rb
solidus_core_devise_token_auth-2.8.0.alpha.14 db/default/spree/store_credit.rb
solidus_core_devise_token_auth-2.8.0.alpha.13 db/default/spree/store_credit.rb
solidus_core_devise_token_auth-2.8.0.alpha.12 db/default/spree/store_credit.rb
solidus_core_devise_token_auth-2.8.0.alpha.11 db/default/spree/store_credit.rb
solidus_core_devise_token_auth-2.8.0.alpha.10 db/default/spree/store_credit.rb
solidus_core_devise_token_auth-2.8.0.alpha.9 db/default/spree/store_credit.rb
solidus_core_devise_token_auth-2.8.0.alpha.8 db/default/spree/store_credit.rb
solidus_core_devise_token_auth-2.8.0.alpha.7 db/default/spree/store_credit.rb
solidus_core_devise_token_auth-2.8.0.alpha.6 db/default/spree/store_credit.rb
solidus_core_devise_token_auth-2.8.0.alpha.5 db/default/spree/store_credit.rb
solidus_core_devise_token_auth-2.8.0.alpha.4 db/default/spree/store_credit.rb