Sha256: 6a9979fdbbc797af092d95cb17e94c104184835750c4a0ec46e316a5c0e5c87d
Contents?: true
Size: 947 Bytes
Versions: 29
Compression:
Stored size: 947 Bytes
Contents
# frozen_string_literal: true FactoryBot.define do factory :store_credit_event, class: 'Spree::StoreCreditEvent' do store_credit amount { 100.00 } authorization_code { "#{store_credit.id}-SC-20140602164814476128" } action { Spree::StoreCredit::AUTHORIZE_ACTION } factory :store_credit_auth_event, class: 'Spree::StoreCreditEvent' do action { Spree::StoreCredit::AUTHORIZE_ACTION } end factory :store_credit_capture_event do action { Spree::StoreCredit::CAPTURE_ACTION } end factory :store_credit_adjustment_event do action { Spree::StoreCredit::ADJUSTMENT_ACTION } store_credit_reason { create(:store_credit_reason) } end factory :store_credit_invalidate_event do action { Spree::StoreCredit::INVALIDATE_ACTION } store_credit_reason { create(:store_credit_reason) } end end end
Version data entries
29 entries across 29 versions & 1 rubygems