Class: Externals::Omise::Source

Inherits:
ApplicationRecord show all
Defined in:
app/models/externals/omise/source.rb

Overview

Schema Information

Table name: externals_omise_sources

id                  :integer          not null, primary key
content             :text(16777215)
qr_code             :string(191)
source_type         :string(191)
created_at          :datetime         not null
updated_at          :datetime         not null
gb_primepay_card_id :bigint
omise_source_id     :string(191)

Indexes

index_externals_omise_sources_on_gb_primepay_card_id  (gb_primepay_card_id)

Foreign Keys

fk_rails_...  (gb_primepay_card_id => externals_gb_primepay_cards.id)

Constant Summary collapse

GB_PRIMEPAY_SOURCE_ID =

we use this constant to create fake ID for omise_source_id column if the payment gateway is gb primepay on Omise, it has uniq ID for each Source record, see www.omise.co/sources-api

'gb_primepay'.freeze
OMISE_SOURCE_ID =

we use this constant for omise_source_id column if the payment gateway is wechat pay

'omise'.freeze
SHOPEE_PAY_SOURCE_ID =

we use this constant to create fake ID for omise_source_id column if the payment gateway is shopee pay on Omise, it has uniq ID for each Source record, see www.omise.co/sources-api

'shopee_pay'.freeze
VENDOR_SOURCE_ID =

we use this constant to create fake ID for omise_source_id column if the payment comes from vendor

'vendor'.freeze
CC_SOURCE_TYPE =

if the charge is a CC transaction, then use this constant

'cc'.freeze
TRUE_WALLET_SOURCE_TYPE =

if the charge is a True Wallet transaction, then use this constant

'true_wallet'.freeze
SHOPEE_PAY_SOURCE_TYPE =

if the charge is a True Wallet transaction, then use this constant

'shopee_pay'.freeze
PROMPT_PAY_SOURCE_TYPE =

if the charge is a True Wallet transaction, then use this constant

'promptpay'.freeze
PAYNOW_SOURCE_TYPE =

if the charge is a Paynow transaction, then use this constant, for opn omise only

'paynow'.freeze
ALIPAYPLUS_SOURCE_TYPE =

if the charge is a Alipay Plus transaction, then use this constant

'alipayplus_mpm'.freeze
WECHAT_PAY_SOURCE_TYPE =

if the charge is a WeChat Pay transaction, then use this constant

'wechat_pay'.freeze
OMISE_WECHAT_PAY_SOURCE_TYPE =

if the charge is a WeChat Pay transaction, then use this constant

'wechat_pay_mpm'.freeze
VENDOR_PAYMENT_SOURCE_TYPE =

if the charge is a Vendor Payment transaction, then use this constant

'vendor_payment'.freeze

Method Summary

Methods inherited from ApplicationRecord

sync_carrierwave_url