Sha256: 2df7bdcc3c961d2c78d56ede313108aa58a1223f18b6980fb10f71d0fbf57a73
Contents?: true
Size: 563 Bytes
Versions: 6
Compression:
Stored size: 563 Bytes
Contents
module Spree class Konbini < Spree::Base STORES = %i(lawson family-mart sunkus circle-k ministop daily-yamazaki seven-eleven) belongs_to :payment_method belongs_to :user, class_name: Spree.user_class, foreign_key: 'user_id' has_many :payments, as: :source validates :convenience, presence: true def actions %w{} end def instructions_partial_path "spree/orders/konbini" end def imported false end def two_codes? %w[lawson family-mart ministop].include?(convenience) end end end
Version data entries
6 entries across 6 versions & 1 rubygems