Sha256: f995bbc211c2fdd619683c3e927cc3b5412d1a0b165147fbc4646c82be37b121

Contents?: true

Size: 848 Bytes

Versions: 7

Compression:

Stored size: 848 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::StoreCreditReason.find_or_create_by!(name: 'Credit Given In Error')

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
solidus_core-2.8.6 db/default/spree/store_credit.rb
solidus_core-2.8.5 db/default/spree/store_credit.rb
solidus_core-2.8.4 db/default/spree/store_credit.rb
solidus_core-2.8.3 db/default/spree/store_credit.rb
solidus_core-2.8.2 db/default/spree/store_credit.rb
solidus_core-2.8.1 db/default/spree/store_credit.rb
solidus_core-2.8.0 db/default/spree/store_credit.rb