rails_trade 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +20 -165
- data/README.md +8 -1
- data/app/apis/trade/apple_pay_api.rb +33 -0
- data/app/controllers/trade/admin/advances_controller.rb +58 -0
- data/app/controllers/trade/admin/base_controller.rb +3 -4
- data/app/controllers/trade/admin/card_advances_controller.rb +60 -0
- data/app/controllers/trade/admin/card_logs_controller.rb +44 -0
- data/app/controllers/trade/admin/card_payments_controller.rb +60 -0
- data/app/controllers/trade/admin/card_prepayments_controller.rb +58 -0
- data/app/controllers/trade/admin/card_promotes_controller.rb +63 -0
- data/app/controllers/trade/admin/card_templates_controller.rb +69 -0
- data/app/controllers/trade/admin/cards_controller.rb +66 -0
- data/app/controllers/trade/admin/carts_controller.rb +74 -0
- data/app/controllers/trade/admin/cash_givens_controller.rb +55 -0
- data/app/controllers/trade/admin/cash_logs_controller.rb +45 -0
- data/app/controllers/trade/admin/cashes_controller.rb +41 -0
- data/app/controllers/trade/admin/order_payments_controller.rb +42 -40
- data/app/controllers/trade/admin/orders_controller.rb +73 -83
- data/app/controllers/trade/admin/payment_methods_controller.rb +71 -84
- data/app/controllers/trade/admin/payment_orders_controller.rb +45 -42
- data/app/controllers/trade/admin/payment_references_controller.rb +45 -39
- data/app/controllers/trade/admin/payment_strategies_controller.rb +43 -40
- data/app/controllers/trade/admin/payments_controller.rb +68 -74
- data/app/controllers/trade/admin/payouts_controller.rb +67 -0
- data/app/controllers/trade/admin/promote_carts_controller.rb +54 -0
- data/app/controllers/trade/admin/promote_charges_controller.rb +55 -53
- data/app/controllers/trade/admin/promote_goods_controller.rb +51 -46
- data/app/controllers/trade/admin/promotes_controller.rb +3 -67
- data/app/controllers/trade/admin/refunds_controller.rb +51 -40
- data/app/controllers/trade/admin/trade_items_controller.rb +103 -98
- data/app/controllers/trade/admin/trade_promotes_controller.rb +36 -54
- data/app/controllers/trade/admin/users_controller.rb +30 -0
- data/app/controllers/trade/advances_controller.rb +50 -0
- data/app/controllers/trade/base_controller.rb +4 -0
- data/app/controllers/trade/card_templates_controller.rb +61 -0
- data/app/controllers/trade/controller/application.rb +35 -0
- data/app/controllers/trade/controller/promote.rb +68 -0
- data/app/controllers/trade/my/advances_controller.rb +66 -0
- data/app/controllers/trade/my/base_controller.rb +3 -3
- data/app/controllers/trade/my/card_logs_controller.rb +15 -0
- data/app/controllers/trade/my/cards_controller.rb +78 -0
- data/app/controllers/trade/my/carts_controller.rb +50 -29
- data/app/controllers/trade/my/cash_logs_controller.rb +10 -0
- data/app/controllers/trade/my/orders_controller.rb +145 -81
- data/app/controllers/trade/my/payment_methods_controller.rb +40 -57
- data/app/controllers/trade/my/payments_controller.rb +56 -0
- data/app/controllers/trade/my/payouts_controller.rb +33 -0
- data/app/controllers/trade/my/trade_items_controller.rb +54 -44
- data/app/controllers/trade/panel/base_controller.rb +4 -0
- data/app/controllers/trade/panel/exchange_rates_controller.rb +53 -0
- data/app/controllers/trade/payments_controller.rb +53 -51
- data/app/models/payment/trade/alipay_payment.rb +5 -0
- data/app/models/payment/trade/apple_payment.rb +5 -0
- data/app/models/payment/trade/bank_payment.rb +5 -0
- data/app/models/payment/trade/card_payment.rb +5 -0
- data/app/models/payment/trade/hand_payment.rb +5 -0
- data/app/models/payment/trade/paypal_payment.rb +5 -0
- data/app/models/payment/trade/stripe_payment.rb +5 -0
- data/app/models/payment/trade/wxpay_payment.rb +5 -0
- data/app/models/payment_method/trade/alipay_method.rb +4 -0
- data/app/models/payment_method/trade/bank_method.rb +4 -0
- data/app/models/payment_method/trade/stripe_method.rb +5 -0
- data/app/models/payout/trade/wxpay_payout.rb +5 -0
- data/app/models/promote_charge/trade/discount_promote_charge.rb +5 -0
- data/app/models/promote_charge/trade/final_promote_charge.rb +5 -0
- data/app/models/promote_charge/trade/minus_promote_charge.rb +5 -0
- data/app/models/promote_charge/trade/plus_promote_charge.rb +5 -0
- data/app/models/refund/trade/alipay_refund.rb +5 -0
- data/app/models/refund/trade/bank_refund.rb +5 -0
- data/app/models/refund/trade/card_refund.rb +5 -0
- data/app/models/refund/trade/hand_refund.rb +5 -0
- data/app/models/refund/trade/paypal_refund.rb +5 -0
- data/app/models/refund/trade/stripe_refund.rb +5 -0
- data/app/models/refund/trade/wxpay_refund.rb +5 -0
- data/app/models/trade/advance.rb +6 -0
- data/app/models/trade/application_record.rb +5 -0
- data/app/models/trade/card.rb +6 -0
- data/app/models/trade/card_advance.rb +5 -0
- data/app/models/trade/card_log.rb +5 -0
- data/app/models/trade/card_prepayment.rb +5 -0
- data/app/models/trade/card_promote.rb +5 -0
- data/app/models/trade/card_template.rb +5 -0
- data/app/models/trade/cart.rb +7 -0
- data/app/models/trade/cash.rb +6 -0
- data/app/models/trade/cash_given.rb +5 -0
- data/app/models/trade/cash_log.rb +5 -0
- data/app/models/trade/exchange_rate.rb +5 -0
- data/app/models/trade/ext/payable.rb +50 -0
- data/app/models/trade/ext/user.rb +38 -0
- data/app/models/trade/model/advance.rb +43 -0
- data/app/models/trade/model/agency.rb +10 -0
- data/app/models/trade/model/amount.rb +41 -0
- data/app/models/trade/model/card.rb +64 -0
- data/app/models/trade/model/card_advance.rb +52 -0
- data/app/models/trade/model/card_log.rb +17 -0
- data/app/models/trade/model/card_prepayment.rb +31 -0
- data/app/models/trade/model/card_promote.rb +14 -0
- data/app/models/trade/model/card_template.rb +31 -0
- data/app/models/trade/model/cart.rb +60 -0
- data/app/models/trade/model/cash.rb +32 -0
- data/app/models/trade/model/cash_given.rb +40 -0
- data/app/models/trade/model/cash_log.rb +26 -0
- data/app/models/trade/model/compute.rb +33 -0
- data/app/models/trade/model/exchange_rate.rb +44 -0
- data/app/models/trade/model/good.rb +66 -0
- data/app/models/trade/model/member.rb +25 -0
- data/app/models/trade/model/order.rb +127 -0
- data/app/models/trade/model/payment/alipay_payment.rb +17 -0
- data/app/models/trade/model/payment/apple_payment.rb +9 -0
- data/app/models/trade/model/payment/bank_payment.rb +19 -0
- data/app/models/trade/model/payment/card_payment.rb +72 -0
- data/app/models/trade/model/payment/hand_payment.rb +10 -0
- data/app/models/trade/model/payment/paypal_payment.rb +10 -0
- data/app/models/trade/model/payment/stripe_payment.rb +11 -0
- data/app/models/trade/model/payment/wxpay_payment.rb +15 -0
- data/app/models/trade/model/payment.rb +131 -0
- data/app/models/trade/model/payment_method/stripe_method.rb +59 -0
- data/app/models/trade/model/payment_method.rb +67 -0
- data/app/models/trade/model/payment_order.rb +108 -0
- data/app/models/trade/model/payment_reference.rb +21 -0
- data/app/models/trade/model/payment_strategy.rb +22 -0
- data/app/models/trade/model/payout/wxpay_payout.rb +31 -0
- data/app/models/trade/model/payout.rb +71 -0
- data/app/models/trade/model/plan_attender.rb +33 -0
- data/app/models/trade/model/profile.rb +10 -0
- data/app/models/trade/model/promote.rb +59 -0
- data/app/models/trade/model/promote_cart.rb +30 -0
- data/app/models/trade/model/promote_charge/discount_promote_charge.rb +19 -0
- data/app/models/trade/model/promote_charge/final_promote_charge.rb +11 -0
- data/app/models/trade/model/promote_charge/minus_promote_charge.rb +20 -0
- data/app/models/trade/model/promote_charge/plus_promote_charge.rb +9 -0
- data/app/models/trade/model/promote_charge.rb +86 -0
- data/app/models/trade/model/promote_extra.rb +16 -0
- data/app/models/trade/model/promote_good.rb +28 -0
- data/app/models/trade/model/refund/alipay_refund.rb +29 -0
- data/app/models/trade/model/refund/bank_refund.rb +4 -0
- data/app/models/trade/model/refund/card_refund.rb +45 -0
- data/app/models/trade/model/refund/hand_refund.rb +9 -0
- data/app/models/trade/model/refund/paypal_refund.rb +27 -0
- data/app/models/trade/model/refund/stripe_refund.rb +20 -0
- data/app/models/trade/model/refund/wxpay_refund.rb +74 -0
- data/app/models/trade/model/refund.rb +70 -0
- data/app/models/trade/model/sell.rb +24 -0
- data/app/models/trade/model/trade_item.rb +214 -0
- data/app/models/trade/model/trade_promote.rb +69 -0
- data/app/models/trade/order.rb +8 -0
- data/app/models/trade/ordering/payment.rb +112 -0
- data/app/models/trade/ordering/refund.rb +36 -0
- data/app/models/trade/payment.rb +6 -0
- data/app/models/trade/payment_method.rb +5 -0
- data/app/models/trade/payment_order.rb +5 -0
- data/app/models/trade/payment_reference.rb +5 -0
- data/app/models/trade/payment_strategy.rb +5 -0
- data/app/models/trade/payment_type/alipay.rb +35 -0
- data/app/models/trade/payment_type/apple_pay.rb +20 -0
- data/app/models/trade/payment_type/paypal.rb +84 -0
- data/app/models/trade/payment_type/stripe.rb +57 -0
- data/app/models/trade/payment_type/svf_card.rb +24 -0
- data/app/models/trade/payment_type/wxpay.rb +104 -0
- data/app/models/trade/payout.rb +5 -0
- data/app/models/trade/promote.rb +6 -0
- data/app/models/trade/promote_cart.rb +5 -0
- data/app/models/trade/promote_charge.rb +5 -0
- data/app/models/trade/promote_extra.rb +5 -0
- data/app/models/trade/promote_good.rb +5 -0
- data/app/models/trade/refund.rb +5 -0
- data/app/models/trade/trade_item.rb +5 -0
- data/app/models/trade/trade_promote.rb +5 -0
- data/app/models/trade.rb +11 -0
- data/app/views/admin/_trade_nav.html.erb +35 -0
- data/app/views/my/_trade_nav.html.erb +4 -9
- data/app/views/panel/_trade_nav.html.erb +10 -0
- data/app/views/trade/admin/advances/_breadcrumb.html.erb +7 -0
- data/app/views/trade/admin/advances/_edit_form.html.erb +4 -0
- data/app/views/trade/admin/advances/_form.html.erb +4 -0
- data/app/views/trade/admin/advances/_index_tbody.html.erb +3 -0
- data/app/views/trade/admin/advances/_index_thead.html.erb +4 -0
- data/app/views/trade/admin/advances/_new_form.html.erb +4 -0
- data/app/views/trade/admin/advances/index.html.erb +5 -0
- data/app/views/trade/admin/advances/show.html.erb +30 -0
- data/app/views/trade/admin/base/_nav.html.erb +4 -0
- data/app/views/trade/admin/card_advances/_breadcrumb.html.erb +7 -0
- data/app/views/trade/admin/card_advances/_edit_form.html.erb +4 -0
- data/app/views/trade/admin/card_advances/_form.html.erb +3 -0
- data/app/views/trade/admin/card_advances/_index_tbody.html.erb +5 -0
- data/app/views/trade/admin/card_advances/_index_thead.html.erb +6 -0
- data/app/views/trade/admin/card_advances/_new_form.html.erb +4 -0
- data/app/views/trade/admin/card_advances/_show_table.html.erb +20 -0
- data/app/views/trade/admin/card_advances/index.html.erb +5 -0
- data/app/views/trade/admin/card_logs/_breadcrumb.html.erb +7 -0
- data/app/views/trade/admin/card_logs/_card_log.json.jbuilder +11 -0
- data/app/views/trade/admin/card_logs/_edit_form.html.erb +4 -0
- data/app/views/trade/admin/card_logs/_filter_form.html.erb +8 -0
- data/app/views/trade/admin/card_logs/_form.html.erb +3 -0
- data/app/views/trade/admin/card_logs/_index_tbody.html.erb +8 -0
- data/app/views/trade/admin/card_logs/_index_thead.html.erb +9 -0
- data/app/views/trade/admin/card_logs/_index_tr.html.erb +10 -0
- data/app/views/trade/admin/card_logs/_new_form.html.erb +4 -0
- data/app/views/trade/admin/card_logs/_show.json.jbuilder +1 -0
- data/app/views/trade/admin/card_logs/_show_table.html.erb +24 -0
- data/app/views/trade/admin/card_logs/index.html.erb +5 -0
- data/app/views/trade/admin/card_logs/index.json.jbuilder +1 -0
- data/app/views/trade/admin/card_payments/_breadcrumb.html.erb +7 -0
- data/app/views/trade/admin/{orders/_search_form.html.erb → card_payments/_button.html.erb} +0 -0
- data/app/views/trade/admin/card_payments/_edit_form.html.erb +4 -0
- data/app/views/trade/admin/card_payments/_filter_form.html.erb +9 -0
- data/app/views/trade/admin/card_payments/_form.html.erb +2 -0
- data/app/views/trade/admin/card_payments/_index_tbody.html.erb +3 -0
- data/app/views/trade/admin/card_payments/_index_thead.html.erb +4 -0
- data/app/views/trade/admin/card_payments/_new_form.html.erb +4 -0
- data/app/views/trade/admin/card_payments/_show_table.html.erb +12 -0
- data/app/views/trade/admin/card_payments/index.html.erb +5 -0
- data/app/views/trade/admin/card_prepayments/_breadcrumb.html.erb +6 -0
- data/app/views/trade/admin/card_prepayments/_edit_form.html.erb +4 -0
- data/app/views/trade/admin/card_prepayments/_filter_form.html.erb +9 -0
- data/app/views/trade/admin/card_prepayments/_form.html.erb +3 -0
- data/app/views/trade/admin/card_prepayments/_index_tbody.html.erb +3 -0
- data/app/views/trade/admin/card_prepayments/_index_thead.html.erb +4 -0
- data/app/views/trade/admin/card_prepayments/_new_form.html.erb +4 -0
- data/app/views/trade/admin/card_prepayments/_show_table.html.erb +16 -0
- data/app/views/trade/admin/card_prepayments/index.html.erb +5 -0
- data/app/views/trade/admin/card_promotes/_breadcrumb.html.erb +6 -0
- data/app/views/trade/admin/card_promotes/_edit_form.html.erb +4 -0
- data/app/views/trade/admin/card_promotes/_filter_form.html.erb +9 -0
- data/app/views/trade/admin/card_promotes/_form.html.erb +4 -0
- data/app/views/trade/admin/card_promotes/_index_tbody.html.erb +5 -0
- data/app/views/trade/admin/card_promotes/_index_thead.html.erb +6 -0
- data/app/views/trade/admin/card_promotes/_new_form.html.erb +4 -0
- data/app/views/trade/admin/card_promotes/_show_table.html.erb +12 -0
- data/app/views/trade/admin/card_promotes/index.html.erb +5 -0
- data/app/views/trade/admin/card_templates/_advance_options.html.erb +1 -0
- data/app/views/trade/admin/card_templates/_card_template.json.jbuilder +7 -0
- data/app/views/trade/admin/card_templates/_edit_form.html.erb +4 -0
- data/app/views/trade/admin/card_templates/_filter_form.html.erb +9 -0
- data/app/views/trade/admin/card_templates/_form.html.erb +11 -0
- data/app/views/trade/admin/card_templates/_index_tbody.html.erb +14 -0
- data/app/views/trade/admin/card_templates/_index_thead.html.erb +10 -0
- data/app/views/trade/admin/card_templates/_index_tr.html.erb +25 -0
- data/app/views/trade/admin/card_templates/_item_form.html.erb +15 -0
- data/app/views/trade/admin/card_templates/_new_form.html.erb +4 -0
- data/app/views/trade/admin/card_templates/_show.json.jbuilder +1 -0
- data/app/views/trade/admin/card_templates/_show_table.html.erb +12 -0
- data/app/views/trade/admin/card_templates/advance_options.js.erb +3 -0
- data/app/views/trade/admin/card_templates/index.html.erb +5 -0
- data/app/views/trade/admin/card_templates/index.json.jbuilder +1 -0
- data/app/views/trade/admin/cards/_breadcrumb.html.erb +6 -0
- data/app/views/trade/admin/cards/_button.html.erb +3 -0
- data/app/views/trade/admin/cards/_card.json.jbuilder +10 -0
- data/app/views/trade/admin/cards/_edit_form.html.erb +4 -0
- data/app/views/trade/admin/cards/_filter_form.html.erb +10 -0
- data/app/views/trade/admin/cards/_filter_table.html.erb +11 -0
- data/app/views/trade/admin/cards/_form.html.erb +4 -0
- data/app/views/trade/admin/cards/_index_tbody.html.erb +25 -0
- data/app/views/trade/admin/cards/_index_thead.html.erb +14 -0
- data/app/views/trade/admin/cards/_index_tr.html.erb +19 -0
- data/app/views/trade/admin/cards/_new_form.html.erb +5 -0
- data/app/views/trade/admin/cards/_show.json.jbuilder +1 -0
- data/app/views/trade/admin/cards/_show_table.html.erb +20 -0
- data/app/views/trade/admin/cards/index.html.erb +5 -0
- data/app/views/trade/admin/cards/index.json.jbuilder +1 -0
- data/app/views/trade/admin/{promote_buyers/show.html.erb → carts/_button.html.erb} +0 -0
- data/app/views/trade/admin/{cart_item_serves → carts}/_check.html.erb +0 -0
- data/app/views/trade/admin/{cart_item_serves → carts}/_index.html.erb +1 -3
- data/app/views/trade/admin/carts/_index_tbody.html.erb +6 -0
- data/app/views/trade/admin/carts/_index_thead.html.erb +7 -0
- data/app/views/trade/admin/{cart_item_serves → carts}/_new.html.erb +1 -1
- data/app/views/trade/admin/{cart_item_serves → carts}/_serve.html.erb +2 -2
- data/app/views/trade/admin/{cart_item_serves → carts}/_single.html.erb +0 -0
- data/app/views/trade/admin/{cart_item_serves → carts}/_single_table.html.erb +0 -0
- data/app/views/trade/admin/{cart_item_serves → carts}/_total.html.erb +0 -0
- data/app/views/trade/admin/{cart_item_serves → carts}/_total_table.html.erb +0 -0
- data/app/views/trade/admin/carts/index.html.erb +5 -0
- data/app/views/trade/admin/cash_givens/_edit_form.html.erb +4 -0
- data/app/views/trade/admin/cash_givens/_filter_form.html.erb +5 -0
- data/app/views/trade/admin/cash_givens/_form.html.erb +4 -0
- data/app/views/trade/admin/cash_givens/_index_tbody.html.erb +17 -0
- data/app/views/trade/admin/cash_givens/_index_thead.html.erb +4 -0
- data/app/views/trade/admin/cash_givens/_new_form.html.erb +4 -0
- data/app/views/trade/admin/cash_givens/_show_table.html.erb +12 -0
- data/app/views/trade/admin/cash_givens/index.html.erb +5 -0
- data/app/views/trade/admin/cash_logs/_edit_form.html.erb +4 -0
- data/app/views/trade/admin/cash_logs/_filter_form.html.erb +8 -0
- data/app/views/trade/admin/cash_logs/_form.html.erb +2 -0
- data/app/views/trade/admin/cash_logs/_index_tbody.html.erb +25 -0
- data/app/views/trade/admin/cash_logs/_index_thead.html.erb +11 -0
- data/app/views/trade/admin/cash_logs/_new_form.html.erb +4 -0
- data/app/views/trade/admin/cash_logs/_show_table.html.erb +20 -0
- data/app/views/trade/admin/cash_logs/index.html.erb +5 -0
- data/app/views/trade/admin/cashes/_button.html.erb +0 -0
- data/app/views/trade/admin/cashes/_edit_form.html.erb +4 -0
- data/app/views/trade/admin/cashes/_filter_form.html.erb +5 -0
- data/app/views/trade/admin/cashes/_form.html.erb +3 -0
- data/app/views/trade/admin/cashes/_index_tbody.html.erb +18 -0
- data/app/views/trade/admin/cashes/_index_thead.html.erb +12 -0
- data/app/views/trade/admin/cashes/_new_form.html.erb +4 -0
- data/app/views/trade/admin/cashes/_show_tbody.html.erb +20 -0
- data/app/views/trade/admin/cashes/index.html.erb +5 -0
- data/app/views/trade/admin/goods/_form.html.erb +1 -1
- data/app/views/trade/admin/goods/_item.html.erb +1 -1
- data/app/views/trade/admin/goods/_new.html.erb +1 -1
- data/app/views/trade/admin/order_payments/_index_tbody.html.erb +6 -0
- data/app/views/trade/admin/order_payments/_index_thead.html.erb +6 -0
- data/app/views/trade/admin/order_payments/_index_tr.html.erb +4 -0
- data/app/views/trade/admin/order_payments/_new_form.html.erb +30 -0
- data/app/views/trade/admin/order_payments/_payment_orders.html.erb +2 -2
- data/app/views/trade/admin/order_payments/index.html.erb +12 -0
- data/app/views/trade/admin/orders/_addresses.html.erb +3 -3
- data/app/views/trade/admin/orders/_breadcrumb.html.erb +5 -0
- data/app/views/trade/admin/orders/_button.html.erb +0 -0
- data/app/views/trade/admin/orders/_edit_form.html.erb +3 -0
- data/app/views/trade/admin/orders/_filter_form.html.erb +9 -0
- data/app/views/trade/admin/orders/_filter_table.html.erb +20 -0
- data/app/views/trade/admin/orders/_index_tbody.html.erb +16 -0
- data/app/views/trade/admin/orders/_index_thead.html.erb +8 -0
- data/app/views/trade/admin/orders/_index_tr.html.erb +10 -0
- data/app/views/trade/admin/orders/_invoice_addresses.html.erb +3 -3
- data/app/views/trade/admin/orders/_show/_breadcrumb.html.erb +6 -0
- data/app/views/trade/admin/orders/index.html.erb +2 -49
- data/app/views/trade/admin/orders/new.html.erb +1 -1
- data/app/{assets/javascripts/controllers → views}/trade/admin/orders/new.js +0 -0
- data/app/views/trade/admin/orders/payments.html.erb +6 -6
- data/app/views/trade/admin/orders/refund.turbo_stream.erb +3 -0
- data/app/views/trade/admin/orders/show.html.erb +12 -20
- data/app/views/trade/admin/payment_methods/_breadcrumb.html.erb +10 -0
- data/app/views/trade/admin/payment_methods/_edit_form.html.erb +4 -0
- data/app/views/trade/admin/payment_methods/_filter_form.html.erb +12 -0
- data/app/views/trade/admin/payment_methods/_filter_table.html.erb +9 -0
- data/app/views/trade/admin/payment_methods/_form.html.erb +1 -2
- data/app/views/trade/admin/payment_methods/_index_tbody.html.erb +17 -0
- data/app/views/trade/admin/payment_methods/_index_thead.html.erb +7 -0
- data/app/views/trade/admin/payment_methods/_index_tr.html.erb +10 -0
- data/app/views/trade/admin/payment_methods/_new_form.html.erb +4 -0
- data/app/views/trade/admin/payment_methods/_unverified/_index_tbody.html.erb +37 -0
- data/app/views/trade/admin/payment_methods/index.html.erb +4 -25
- data/app/views/trade/admin/payment_methods/mine.html.erb +3 -3
- data/app/views/trade/admin/payment_methods/unverified.html.erb +4 -57
- data/app/views/trade/admin/payment_orders/_index.html.erb +5 -7
- data/app/views/trade/admin/payment_orders/_new.html.erb +5 -8
- data/app/views/trade/admin/payment_orders/_orders.html.erb +1 -3
- data/app/views/trade/admin/payment_orders/cancel.js.erb +2 -2
- data/app/views/trade/admin/payment_orders/create.js.erb +2 -2
- data/app/views/trade/admin/payment_orders/new.turbo_stream.erb +2 -0
- data/app/views/trade/admin/payment_orders/update.js.erb +2 -2
- data/app/views/trade/admin/payment_orders/update_fail.js.erb +2 -2
- data/app/views/trade/admin/payment_strategies/_edit_form.html.erb +4 -0
- data/app/views/trade/admin/payment_strategies/_form.html.erb +2 -5
- data/app/views/trade/admin/payment_strategies/_index_tbody.html.erb +12 -0
- data/app/views/trade/admin/payment_strategies/_index_thead.html.erb +3 -0
- data/app/views/trade/admin/payment_strategies/_new_form.html.erb +4 -0
- data/app/views/trade/admin/payment_strategies/index.html.erb +4 -36
- data/app/views/trade/admin/payments/_breadcrumb.html.erb +5 -0
- data/app/views/trade/admin/payments/_button.html.erb +2 -0
- data/app/views/trade/admin/payments/_edit_form.html.erb +4 -0
- data/app/views/trade/admin/payments/_filter_form.html.erb +13 -0
- data/app/views/trade/admin/payments/_filter_table.html.erb +29 -0
- data/app/views/trade/admin/payments/_form.html.erb +2 -3
- data/app/views/trade/admin/payments/_index_tbody.html.erb +24 -0
- data/app/views/trade/admin/payments/_index_thead.html.erb +15 -0
- data/app/views/trade/admin/payments/_index_tr.html.erb +17 -0
- data/app/views/trade/admin/payments/_new_form.html.erb +4 -0
- data/app/views/trade/admin/payments/dashboard.html.erb +0 -3
- data/app/views/trade/admin/payments/index.html.erb +2 -37
- data/app/views/trade/admin/payouts/_edit_form.html.erb +4 -0
- data/app/views/trade/admin/payouts/_filter_form.html.erb +10 -0
- data/app/views/trade/admin/payouts/_form.html.erb +4 -0
- data/app/views/trade/admin/payouts/_index_tbody.html.erb +12 -0
- data/app/views/trade/admin/payouts/_index_thead.html.erb +11 -0
- data/app/views/trade/admin/payouts/_index_tr.html.erb +9 -0
- data/app/views/trade/admin/payouts/_new_form.html.erb +4 -0
- data/app/views/trade/admin/payouts/_show_table.html.erb +32 -0
- data/app/views/trade/admin/payouts/index.html.erb +5 -0
- data/app/views/trade/admin/promote_carts/_breadcrumb.html.erb +10 -0
- data/app/views/trade/admin/promote_carts/_edit_form.html.erb +4 -0
- data/app/views/trade/admin/promote_carts/_filter_form.html.erb +9 -0
- data/app/views/trade/admin/promote_carts/_form.html.erb +9 -0
- data/app/views/trade/admin/promote_carts/_index_tbody.html.erb +3 -0
- data/app/views/trade/admin/promote_carts/_index_thead.html.erb +4 -0
- data/app/views/trade/admin/promote_carts/_index_tr.html.erb +10 -0
- data/app/views/trade/admin/promote_carts/_new_form.html.erb +4 -0
- data/app/views/trade/admin/{promote_buyers → promote_carts}/_promote_buyer.json.jbuilder +0 -0
- data/app/{assets/javascripts/controllers/trade/admin/promote_buyers → views/trade/admin/promote_carts}/edit.js +0 -0
- data/app/views/trade/admin/promote_carts/index.html.erb +5 -0
- data/app/views/trade/admin/{promote_buyers → promote_carts}/index.json.jbuilder +0 -0
- data/app/{assets/javascripts/controllers/trade/admin/promote_buyers → views/trade/admin/promote_carts}/new.js +0 -0
- data/app/views/trade/admin/promote_carts/show.json.jbuilder +1 -0
- data/app/views/trade/admin/promote_charges/_base_price_form.html.erb +1 -1
- data/app/views/trade/admin/promote_charges/_breadcrumb.html.erb +7 -0
- data/app/views/trade/admin/promote_charges/_edit_form.html.erb +4 -0
- data/app/views/trade/admin/promote_charges/_filter_form.html.erb +13 -0
- data/app/views/trade/admin/promote_charges/_form.html.erb +5 -7
- data/app/views/trade/admin/promote_charges/_index_tbody.html.erb +17 -0
- data/app/views/trade/admin/promote_charges/_index_thead.html.erb +12 -0
- data/app/views/trade/admin/promote_charges/_index_tr.html.erb +13 -0
- data/app/views/trade/admin/promote_charges/_new_form.html.erb +4 -0
- data/app/views/trade/admin/promote_charges/index.html.erb +2 -62
- data/app/views/trade/admin/promote_goods/_breadcrumb.html.erb +9 -0
- data/app/views/trade/admin/promote_goods/_button.html.erb +3 -0
- data/app/views/trade/admin/promote_goods/_filter_form.html.erb +10 -0
- data/app/views/trade/admin/promote_goods/_form.html.erb +7 -8
- data/app/views/trade/admin/promote_goods/_index_tbody.html.erb +10 -0
- data/app/views/trade/admin/promote_goods/_index_thead.html.erb +5 -0
- data/app/views/trade/admin/promote_goods/_index_tr.html.erb +16 -0
- data/app/views/trade/admin/promote_goods/_new_form.html.erb +4 -0
- data/app/views/trade/admin/promote_goods/goods.js.erb +1 -1
- data/app/views/trade/admin/promote_goods/index.html.erb +2 -58
- data/app/views/trade/admin/promotes/_edit_form.html.erb +4 -0
- data/app/views/trade/admin/promotes/_filter_table.html.erb +11 -0
- data/app/views/trade/admin/promotes/_form.html.erb +3 -8
- data/app/views/trade/admin/promotes/_index_tbody.html.erb +18 -0
- data/app/views/trade/admin/promotes/_index_thead.html.erb +12 -0
- data/app/views/trade/admin/promotes/_index_tr.html.erb +22 -0
- data/app/views/trade/admin/promotes/_new_form.html.erb +4 -0
- data/app/views/trade/admin/promotes/_new_promote_charge.html.erb +1 -1
- data/app/views/trade/admin/promotes/_show_table.html.erb +4 -0
- data/app/views/trade/admin/promotes/index.html.erb +4 -78
- data/app/views/trade/admin/refunds/_breadcrumb.html.erb +6 -0
- data/app/views/trade/admin/refunds/_filter_form.html.erb +13 -0
- data/app/views/trade/admin/refunds/_index_tbody.html.erb +25 -0
- data/app/views/trade/admin/refunds/_index_thead.html.erb +12 -0
- data/app/views/trade/admin/refunds/_index_tr.html.erb +3 -0
- data/app/views/trade/admin/refunds/_logs_form.html.erb +33 -0
- data/app/views/trade/admin/refunds/_new.html.erb +8 -18
- data/app/views/trade/admin/refunds/confirm.turbo_stream.erb +3 -0
- data/app/views/trade/admin/refunds/deny.turbo_stream.erb +3 -0
- data/app/views/trade/admin/refunds/index.html.erb +4 -52
- data/app/views/trade/admin/refunds/logs.turbo_stream.erb +1 -0
- data/app/views/trade/admin/trade_items/_filter.html.erb +5 -5
- data/app/views/trade/admin/trade_items/_good_price.html.erb +5 -5
- data/app/views/trade/admin/trade_items/_order_price.html.erb +8 -8
- data/app/views/trade/admin/trade_items/_retail_price.html.erb +3 -3
- data/app/views/trade/admin/trade_items/_show/_breadcrumb.html.erb +7 -0
- data/app/views/trade/admin/trade_items/_single_price.html.erb +10 -10
- data/app/{assets/javascripts/controllers/trade/admin/cart_items → views/trade/admin/trade_items}/create.js +0 -0
- data/app/views/trade/admin/trade_items/index.html.erb +31 -42
- data/app/{assets/javascripts/controllers/trade/admin/cart_items → views/trade/admin/trade_items}/index.js +0 -0
- data/app/views/trade/admin/trade_items/only.html.erb +2 -2
- data/app/{assets/javascripts/controllers/trade/admin/cart_items → views/trade/admin/trade_items}/only.js +0 -0
- data/app/views/trade/admin/trade_items/show.html.erb +0 -0
- data/app/views/trade/admin/trade_promotes/_edit_form.html.erb +4 -0
- data/app/views/trade/admin/trade_promotes/{_filter.html.erb → _filter_form.html.erb} +2 -2
- data/app/views/trade/admin/trade_promotes/_form.html.erb +3 -6
- data/app/views/trade/admin/trade_promotes/_index_tbody.html.erb +2 -0
- data/app/views/trade/admin/trade_promotes/_index_thead.html.erb +3 -0
- data/app/views/trade/admin/trade_promotes/_new_form.html.erb +4 -0
- data/app/views/trade/admin/trade_promotes/_show_table.html.erb +8 -20
- data/app/views/trade/admin/trade_promotes/index.html.erb +3 -36
- data/app/views/trade/admin/{buyers → users}/index.html.erb +4 -4
- data/app/views/trade/admin/{buyers → users}/orders.html.erb +6 -6
- data/app/views/trade/admin/{buyers → users}/overdue.html.erb +2 -2
- data/app/views/trade/advances/index.html.erb +15 -0
- data/app/views/trade/card_templates/_card_template.json.jbuilder +9 -0
- data/app/views/trade/card_templates/_filter_form.html.erb +8 -0
- data/app/views/trade/card_templates/_show_table.html.erb +16 -0
- data/app/views/trade/card_templates/index.html.erb +16 -0
- data/app/views/trade/card_templates/index.json.jbuilder +1 -0
- data/app/views/trade/card_templates/show.json.jbuilder +1 -0
- data/app/views/trade/goods/_search.html.erb +3 -3
- data/app/views/trade/goods/taxon/_breadcrumb.html.erb +2 -2
- data/app/views/trade/my/advances/index.json.jbuilder +11 -0
- data/app/views/trade/my/advances/order.json.jbuilder +14 -0
- data/app/views/trade/my/card_logs/_wallet_log.json.jbuilder +1 -0
- data/app/views/trade/my/card_logs/index.html.erb +15 -0
- data/app/views/trade/my/card_logs/index.json.jbuilder +5 -0
- data/app/views/trade/my/cards/index.html.erb +45 -0
- data/app/views/trade/my/cards/new.html.erb +0 -0
- data/app/views/trade/my/cards/token.html.erb +11 -0
- data/app/views/trade/my/{trade_items → carts}/_additions.html.erb +0 -2
- data/app/views/trade/my/carts/_addresses/_index_table.html.erb +14 -0
- data/app/views/trade/my/carts/_addresses/_index_tbody.html.erb +5 -0
- data/app/views/trade/my/carts/_addresses/_index_tr.html.erb +13 -0
- data/app/views/trade/my/carts/_filter_form.html.erb +9 -0
- data/app/views/trade/my/carts/_form.html.erb +1 -1
- data/app/views/trade/my/carts/_show/_address.html.erb +18 -0
- data/app/views/trade/my/carts/_show/_tab_bar.html.erb +22 -0
- data/app/views/trade/my/carts/_show_table.html.erb +16 -28
- data/app/views/trade/my/carts/_show_thead.html.erb +6 -0
- data/app/views/trade/my/carts/_total_price.html.erb +44 -0
- data/app/views/trade/my/carts/_trade_item.html.erb +52 -0
- data/app/views/trade/my/carts/add.html.erb +23 -0
- data/app/views/trade/my/carts/add.turbo_stream.erb +3 -0
- data/app/views/trade/my/carts/addresses.html.erb +5 -0
- data/app/views/trade/my/carts/destroy.turbo_stream.erb +3 -0
- data/app/views/trade/my/carts/show.html+phone.erb +45 -25
- data/app/views/trade/my/carts/show.html.erb +25 -0
- data/app/views/trade/my/carts/update.turbo_stream.erb +9 -0
- data/app/views/trade/my/cash_logs/_cash_log.json.jbuilder +1 -0
- data/app/views/trade/my/cash_logs/index.json.jbuilder +4 -0
- data/app/views/trade/my/orders/_date_form.html.erb +2 -2
- data/app/views/trade/my/orders/_edit_form.html.erb +4 -0
- data/app/views/trade/my/orders/_edit_payment_type.html.erb +3 -12
- data/app/views/trade/my/orders/_form.html.erb +1 -4
- data/app/views/trade/my/orders/_payment_types/_show_table.html.erb +35 -0
- data/app/views/trade/my/orders/_show/_breadcrumb.html.erb +6 -0
- data/app/views/trade/my/orders/_success.html.erb +9 -0
- data/app/views/trade/my/orders/alipay_pay.json.jbuilder +1 -0
- data/app/views/trade/my/orders/create.turbo_stream.erb +3 -0
- data/app/views/trade/my/orders/edit_payment_type.html.erb +3 -0
- data/app/views/trade/my/orders/index.html+phone.erb +14 -11
- data/app/views/trade/my/orders/index.html.erb +15 -15
- data/app/views/trade/my/orders/new.html.erb +25 -36
- data/app/views/trade/my/orders/payment_types.html+phone.erb +51 -0
- data/app/views/trade/my/orders/payment_types.html.erb +5 -0
- data/app/views/trade/my/orders/refresh.turbo_stream.erb +3 -0
- data/app/views/trade/my/orders/show.html+phone.erb +2 -2
- data/app/views/trade/my/orders/show.html.erb +54 -97
- data/app/views/trade/my/orders/success.html.erb +2 -9
- data/app/views/trade/my/orders/wxpay_pay.html.erb +13 -0
- data/app/views/trade/my/orders/wxpay_pay_err.html.erb +5 -0
- data/app/views/trade/my/orders/wxpay_pc_pay.html.erb +24 -0
- data/app/views/trade/my/payment_methods/_button.html.erb +3 -0
- data/app/views/trade/my/payment_methods/_edit_form.html.erb +4 -0
- data/app/views/trade/my/payment_methods/{_item.html.erb → _index_tbody.html.erb} +3 -4
- data/app/views/trade/my/payment_methods/_index_thead.html.erb +4 -0
- data/app/views/trade/my/payment_methods/_new_form.html.erb +4 -0
- data/app/views/trade/my/payment_methods/index.html.erb +5 -1
- data/app/views/trade/my/payments/_edit_form.html.erb +4 -0
- data/app/views/trade/my/payments/_filter_form.html.erb +9 -0
- data/app/views/trade/my/payments/_form.html.erb +2 -0
- data/app/views/trade/my/payments/_index_tbody.html.erb +1 -0
- data/app/views/trade/my/payments/_index_thead.html.erb +2 -0
- data/app/views/trade/my/payments/_new_form.html.erb +4 -0
- data/app/views/trade/my/payments/_show_table.html.erb +4 -0
- data/app/views/trade/my/payments/create.turbo_stream.erb +3 -0
- data/app/views/trade/my/payments/destroy.turbo_stream.erb +3 -0
- data/app/views/trade/my/payments/index.html.erb +5 -0
- data/app/views/trade/my/payouts/_payout.json.jbuilder +11 -0
- data/app/views/trade/my/payouts/index.json.jbuilder +3 -0
- data/app/views/trade/my/payouts/list.json.jbuilder +2 -0
- data/app/views/trade/my/payouts/show.json.jbuilder +1 -0
- data/app/views/trade/my/shared/_cash.json.jbuilder +6 -0
- data/app/views/trade/my/trade_items/_show/_breadcrumb.html.erb +7 -0
- data/app/views/trade/my/trade_items/promote.html.erb +12 -0
- data/app/views/trade/my/trade_items/show.html.erb +0 -0
- data/app/views/trade/my/trade_items/toggle.turbo_stream.erb +3 -0
- data/app/views/trade/panel/exchange_rates/_edit_form.html.erb +4 -0
- data/app/views/trade/panel/exchange_rates/_filter_form.html.erb +9 -0
- data/app/views/trade/panel/exchange_rates/_form.html.erb +4 -0
- data/app/views/trade/panel/exchange_rates/_index_tbody.html.erb +3 -0
- data/app/views/trade/panel/exchange_rates/_index_thead.html.erb +4 -0
- data/app/views/trade/panel/exchange_rates/_new_form.html.erb +4 -0
- data/app/views/trade/panel/exchange_rates/_show_table.html.erb +12 -0
- data/app/views/trade/panel/exchange_rates/index.html.erb +5 -0
- data/config/locales/en.attributes.yml +35 -0
- data/config/locales/en.controller.yml +73 -0
- data/config/locales/en.yml +28 -44
- data/config/locales/zh.attributes.yml +78 -16
- data/config/locales/zh.controller.yml +53 -1
- data/config/locales/zh.enum.yml +44 -18
- data/config/locales/zh.help.yml +7 -7
- data/config/locales/zh.yml +24 -0
- data/config/routes.rb +164 -89
- data/lib/rails_trade/config.rb +0 -2
- data/lib/rails_trade/engine.rb +2 -1
- data/lib/rails_trade.rb +2 -10
- metadata +465 -322
- data/app/assets/javascripts/controllers/trade/admin/payment_methods/edit.js +0 -1
- data/app/assets/javascripts/controllers/trade/admin/payment_methods/new.js +0 -1
- data/app/assets/javascripts/controllers/trade/admin/payments/edit.js +0 -1
- data/app/assets/javascripts/controllers/trade/admin/payments/new.js +0 -1
- data/app/assets/javascripts/controllers/trade/admin/promote_charges/edit.js +0 -1
- data/app/assets/javascripts/controllers/trade/admin/promote_charges/new.js +0 -7
- data/app/assets/javascripts/controllers/trade/admin/promote_goods/edit.js +0 -1
- data/app/assets/javascripts/controllers/trade/admin/promote_goods/new.js +0 -17
- data/app/assets/javascripts/controllers/trade/admin/promotes/edit.js +0 -2
- data/app/assets/javascripts/controllers/trade/admin/promotes/new.js +0 -5
- data/app/assets/javascripts/controllers/trade/admin/refunds/index.js +0 -1
- data/app/assets/javascripts/controllers/trade/admin/refunds/new.js +0 -1
- data/app/assets/javascripts/controllers/trade/my/carts/show-phone-ready.js +0 -1
- data/app/assets/javascripts/controllers/trade/my/carts/show-ready.js +0 -28
- data/app/assets/javascripts/controllers/trade/my/orders/wait-phone.js +0 -8
- data/app/assets/javascripts/controllers/trade/my/trade_items/create.js +0 -2
- data/app/assets/stylesheets/controllers/trade/admin/promote_charges/index.css +0 -4
- data/app/assets/stylesheets/controllers/trade/admin/promotes/index.css +0 -4
- data/app/assets/stylesheets/controllers/trade/my/carts/show-phone.css +0 -1
- data/app/assets/stylesheets/controllers/trade/payments/wxpay_result.css +0 -57
- data/app/channels/paid_channel.rb +0 -7
- data/app/controllers/concerns/controller_order_types.rb +0 -89
- data/app/controllers/rails_trade/my_cart.rb +0 -16
- data/app/controllers/trade/admin/buyers_controller.rb +0 -37
- data/app/controllers/trade/admin/cart_serves_controller.rb +0 -66
- data/app/controllers/trade/admin/goods_controller.rb +0 -96
- data/app/controllers/trade/admin/produces_controller.rb +0 -66
- data/app/controllers/trade/admin/promote_buyers_controller.rb +0 -57
- data/app/controllers/trade/buyers_controller.rb +0 -8
- data/app/controllers/trade/my/order_items_controller.rb +0 -49
- data/app/models/cart.rb +0 -4
- data/app/models/order.rb +0 -4
- data/app/models/payment/alipay_payment.rb +0 -3
- data/app/models/payment/apple_payment.rb +0 -3
- data/app/models/payment/bank_payment.rb +0 -3
- data/app/models/payment/hand_payment.rb +0 -3
- data/app/models/payment/paypal_payment.rb +0 -3
- data/app/models/payment/stripe_payment.rb +0 -3
- data/app/models/payment/wxpay_payment.rb +0 -3
- data/app/models/payment.rb +0 -4
- data/app/models/payment_method/alipay_method.rb +0 -7
- data/app/models/payment_method/bank_method.rb +0 -7
- data/app/models/payment_method/stripe_method.rb +0 -3
- data/app/models/payment_method.rb +0 -3
- data/app/models/payment_order.rb +0 -3
- data/app/models/payment_reference.rb +0 -3
- data/app/models/payment_strategy.rb +0 -3
- data/app/models/payment_type.rb +0 -3
- data/app/models/promote.rb +0 -3
- data/app/models/promote_buyer.rb +0 -3
- data/app/models/promote_charge/cash_promote_charge.rb +0 -3
- data/app/models/promote_charge/discount_promote_charge.rb +0 -3
- data/app/models/promote_charge/final_promote_charge.rb +0 -3
- data/app/models/promote_charge/minus_promote_charge.rb +0 -3
- data/app/models/promote_charge/plus_promote_charge.rb +0 -3
- data/app/models/promote_charge.rb +0 -3
- data/app/models/promote_extra.rb +0 -3
- data/app/models/promote_good.rb +0 -3
- data/app/models/rails_trade/amount.rb +0 -44
- data/app/models/rails_trade/buyer.rb +0 -35
- data/app/models/rails_trade/cart.rb +0 -64
- data/app/models/rails_trade/good.rb +0 -71
- data/app/models/rails_trade/order.rb +0 -98
- data/app/models/rails_trade/ordering/payment.rb +0 -113
- data/app/models/rails_trade/ordering/refund.rb +0 -34
- data/app/models/rails_trade/payment/alipay_payment.rb +0 -15
- data/app/models/rails_trade/payment/apple_payment.rb +0 -7
- data/app/models/rails_trade/payment/bank_payment.rb +0 -13
- data/app/models/rails_trade/payment/hand_payment.rb +0 -8
- data/app/models/rails_trade/payment/paypal_payment.rb +0 -8
- data/app/models/rails_trade/payment/stripe_payment.rb +0 -9
- data/app/models/rails_trade/payment/wxpay_payment.rb +0 -13
- data/app/models/rails_trade/payment.rb +0 -134
- data/app/models/rails_trade/payment_method/stripe_method.rb +0 -60
- data/app/models/rails_trade/payment_method.rb +0 -67
- data/app/models/rails_trade/payment_order.rb +0 -108
- data/app/models/rails_trade/payment_reference.rb +0 -18
- data/app/models/rails_trade/payment_strategy.rb +0 -19
- data/app/models/rails_trade/payment_type/alipay.rb +0 -28
- data/app/models/rails_trade/payment_type/apple_pay.rb +0 -18
- data/app/models/rails_trade/payment_type/paypal.rb +0 -82
- data/app/models/rails_trade/payment_type/stripe.rb +0 -55
- data/app/models/rails_trade/payment_type/wxpay.rb +0 -55
- data/app/models/rails_trade/promote.rb +0 -78
- data/app/models/rails_trade/promote_buyer.rb +0 -27
- data/app/models/rails_trade/promote_charge/cash_promote_charge.rb +0 -12
- data/app/models/rails_trade/promote_charge/discount_promote_charge.rb +0 -17
- data/app/models/rails_trade/promote_charge/final_promote_charge.rb +0 -12
- data/app/models/rails_trade/promote_charge/minus_promote_charge.rb +0 -11
- data/app/models/rails_trade/promote_charge/plus_promote_charge.rb +0 -7
- data/app/models/rails_trade/promote_charge.rb +0 -84
- data/app/models/rails_trade/promote_extra.rb +0 -13
- data/app/models/rails_trade/promote_good.rb +0 -22
- data/app/models/rails_trade/refund/alipay_refund.rb +0 -33
- data/app/models/rails_trade/refund/bank_refund.rb +0 -5
- data/app/models/rails_trade/refund/hand_refund.rb +0 -5
- data/app/models/rails_trade/refund/paypal_refund.rb +0 -32
- data/app/models/rails_trade/refund/stripe_refund.rb +0 -26
- data/app/models/rails_trade/refund/wxpay_refund.rb +0 -48
- data/app/models/rails_trade/refund.rb +0 -74
- data/app/models/rails_trade/sell.rb +0 -24
- data/app/models/rails_trade/trade_item.rb +0 -153
- data/app/models/rails_trade/trade_promote.rb +0 -92
- data/app/models/rails_trade/user.rb +0 -9
- data/app/models/refund/alipay_refund.rb +0 -3
- data/app/models/refund/bank_refund.rb +0 -3
- data/app/models/refund/hand_refund.rb +0 -3
- data/app/models/refund/paypal_refund.rb +0 -3
- data/app/models/refund/stripe_refund.rb +0 -3
- data/app/models/refund/wxpay_refund.rb +0 -3
- data/app/models/refund.rb +0 -3
- data/app/models/trade_item.rb +0 -3
- data/app/models/trade_promote.rb +0 -3
- data/app/views/application/_trade_nav.html.erb +0 -16
- data/app/views/trade/admin/buyers/_form.html.erb +0 -17
- data/app/views/trade/admin/buyers/_menu.html.erb +0 -5
- data/app/views/trade/admin/buyers/_search_form.html.erb +0 -11
- data/app/views/trade/admin/buyers/edit.html.erb +0 -6
- data/app/views/trade/admin/buyers/new.html.erb +0 -5
- data/app/views/trade/admin/buyers/show.html.erb +0 -4
- data/app/views/trade/admin/cart_item_serves/add.js.erb +0 -47
- data/app/views/trade/admin/cart_item_serves/create.js.erb +0 -3
- data/app/views/trade/admin/cart_item_serves/destroy.js.erb +0 -50
- data/app/views/trade/admin/cart_item_serves/index.js.erb +0 -50
- data/app/views/trade/admin/cart_item_serves/new.js.erb +0 -5
- data/app/views/trade/admin/cart_item_serves/single.js.erb +0 -55
- data/app/views/trade/admin/cart_item_serves/total.js.erb +0 -55
- data/app/views/trade/admin/order_payments/_index.html.erb +0 -44
- data/app/views/trade/admin/order_payments/_new.html.erb +0 -44
- data/app/views/trade/admin/order_payments/create.js.erb +0 -2
- data/app/views/trade/admin/order_payments/destroy.js.erb +0 -2
- data/app/views/trade/admin/order_payments/index.js.erb +0 -8
- data/app/views/trade/admin/order_payments/new.js.erb +0 -8
- data/app/views/trade/admin/orders/_filter.html.erb +0 -26
- data/app/views/trade/admin/orders/_form.html.erb +0 -4
- data/app/views/trade/admin/orders/refresh.js.erb +0 -7
- data/app/views/trade/admin/payment_methods/_edit.html.erb +0 -6
- data/app/views/trade/admin/payment_methods/_filter.html.erb +0 -18
- data/app/views/trade/admin/payment_methods/_index_layout.html.erb +0 -12
- data/app/views/trade/admin/payment_methods/_new.html.erb +0 -13
- data/app/views/trade/admin/payment_methods/_payment_method.html.erb +0 -24
- data/app/views/trade/admin/payment_methods/create.js.erb +0 -2
- data/app/views/trade/admin/payment_methods/destroy.js.erb +0 -1
- data/app/views/trade/admin/payment_methods/edit.html.erb +0 -15
- data/app/views/trade/admin/payment_methods/edit.js.erb +0 -8
- data/app/views/trade/admin/payment_methods/new.html.erb +0 -15
- data/app/views/trade/admin/payment_methods/new.js.erb +0 -7
- data/app/views/trade/admin/payment_methods/update.js.erb +0 -2
- data/app/views/trade/admin/payment_orders/new.js.erb +0 -6
- data/app/views/trade/admin/payment_strategies/edit.html.erb +0 -13
- data/app/views/trade/admin/payment_strategies/new.html.erb +0 -13
- data/app/views/trade/admin/payments/_edit.html.erb +0 -12
- data/app/views/trade/admin/payments/_filter.html.erb +0 -40
- data/app/views/trade/admin/payments/_item.html.erb +0 -41
- data/app/views/trade/admin/payments/_new.html.erb +0 -12
- data/app/views/trade/admin/payments/edit.html.erb +0 -13
- data/app/views/trade/admin/payments/edit.js.erb +0 -3
- data/app/views/trade/admin/payments/new.html.erb +0 -13
- data/app/views/trade/admin/payments/new.js.erb +0 -3
- data/app/views/trade/admin/payments/show.html.erb +0 -4
- data/app/views/trade/admin/promote_buyers/_filter.html.erb +0 -7
- data/app/views/trade/admin/promote_buyers/_form.html.erb +0 -17
- data/app/views/trade/admin/promote_buyers/edit.html.erb +0 -14
- data/app/views/trade/admin/promote_buyers/edit.js.erb +0 -3
- data/app/views/trade/admin/promote_buyers/index.html.erb +0 -52
- data/app/views/trade/admin/promote_buyers/new.html.erb +0 -13
- data/app/views/trade/admin/promote_buyers/new.js.erb +0 -3
- data/app/views/trade/admin/promote_buyers/show.json.jbuilder +0 -1
- data/app/views/trade/admin/promote_charges/_edit.html.erb +0 -13
- data/app/views/trade/admin/promote_charges/_filter.html.erb +0 -11
- data/app/views/trade/admin/promote_charges/_new.html.erb +0 -13
- data/app/views/trade/admin/promote_goods/_filter.html.erb +0 -8
- data/app/views/trade/admin/promotes/_edit.html.erb +0 -12
- data/app/views/trade/admin/promotes/_filter.html.erb +0 -9
- data/app/views/trade/admin/promotes/_new.html.erb +0 -12
- data/app/views/trade/admin/promotes/create.js.erb +0 -2
- data/app/views/trade/admin/refunds/_filter.html.erb +0 -11
- data/app/views/trade/admin/refunds/_form.html.erb +0 -17
- data/app/views/trade/admin/refunds/_logs_table.html.erb +0 -33
- data/app/views/trade/admin/refunds/edit.html.erb +0 -6
- data/app/views/trade/admin/refunds/logs.js.erb +0 -8
- data/app/views/trade/admin/refunds/new.html.erb +0 -5
- data/app/views/trade/admin/refunds/new.js.erb +0 -8
- data/app/views/trade/admin/refunds/show.html.erb +0 -4
- data/app/views/trade/admin/trade_items/destroy.js.erb +0 -1
- data/app/views/trade/admin/trade_items/update.js.erb +0 -11
- data/app/views/trade/admin/trade_promotes/edit.html.erb +0 -9
- data/app/views/trade/admin/trade_promotes/edit.js.erb +0 -3
- data/app/views/trade/admin/trade_promotes/new.html.erb +0 -9
- data/app/views/trade/admin/trade_promotes/new.js.erb +0 -3
- data/app/views/trade/admin/trade_promotes/show.html.erb +0 -7
- data/app/views/trade/admin/trade_promotes/show.js.erb +0 -3
- data/app/views/trade/admin/trade_promotes/update.js.erb +0 -1
- data/app/views/trade/buyers/_show.html.erb +0 -7
- data/app/views/trade/buyers/show.js.erb +0 -1
- data/app/views/trade/my/carts/_filter.html.erb +0 -7
- data/app/views/trade/my/carts/edit.html.erb +0 -9
- data/app/views/trade/my/carts/edit.js.erb +0 -3
- data/app/views/trade/my/carts/index.html.erb +0 -47
- data/app/views/trade/my/carts/new.html.erb +0 -9
- data/app/views/trade/my/carts/new.js.erb +0 -3
- data/app/views/trade/my/order_items/_form.html.erb +0 -17
- data/app/views/trade/my/order_items/edit.html.erb +0 -6
- data/app/views/trade/my/order_items/index.html.erb +0 -25
- data/app/views/trade/my/order_items/new.html.erb +0 -5
- data/app/views/trade/my/order_items/show.html.erb +0 -8
- data/app/views/trade/my/orders/_edit.html.erb +0 -10
- data/app/views/trade/my/orders/destroy.js.erb +0 -1
- data/app/views/trade/my/orders/edit.js.erb +0 -4
- data/app/views/trade/my/orders/edit_payment_type.js.erb +0 -4
- data/app/views/trade/my/orders/refresh.js.erb +0 -7
- data/app/views/trade/my/orders/update.js.erb +0 -3
- data/app/views/trade/my/orders/wxpay_pay.js.erb +0 -16
- data/app/views/trade/my/orders/wxpay_pay_err.js.erb +0 -5
- data/app/views/trade/my/payment_methods/_edit.html.erb +0 -13
- data/app/views/trade/my/payment_methods/_index.html.erb +0 -25
- data/app/views/trade/my/payment_methods/_new.html.erb +0 -13
- data/app/views/trade/my/payment_methods/create.js.erb +0 -3
- data/app/views/trade/my/payment_methods/destroy.js.erb +0 -1
- data/app/views/trade/my/payment_methods/edit.js.erb +0 -8
- data/app/views/trade/my/payment_methods/index.js.erb +0 -1
- data/app/views/trade/my/payment_methods/new.js.erb +0 -8
- data/app/views/trade/my/payment_methods/show.html.erb +0 -4
- data/app/views/trade/my/payment_methods/update.js.erb +0 -2
- data/app/views/trade/my/trade_items/_cart_item.js.erb +0 -2
- data/app/views/trade/my/trade_items/_single_price.html.erb +0 -6
- data/app/views/trade/my/trade_items/_total_price.html.erb +0 -8
- data/app/views/trade/my/trade_items/_trade_items.html.erb +0 -68
- data/app/views/trade/my/trade_items/create.html.erb +0 -1
- data/app/views/trade/my/trade_items/destroy.js.erb +0 -1
- data/app/views/trade/my/trade_items/update.js.erb +0 -1
- data/app/views/trade/my/users/_form.html.erb +0 -17
- data/app/views/trade/my/users/edit.html.erb +0 -44
- data/app/views/trade/my/users/show.html.erb +0 -18
- data/lib/rails_trade/apple_pay.rb +0 -32
- data/lib/rails_trade/version.rb +0 -3
data/lib/rails_trade/config.rb
CHANGED
data/lib/rails_trade/engine.rb
CHANGED
@@ -8,7 +8,8 @@ module RailsTrade
|
|
8
8
|
"#{config.root}/app/models/payment_method",
|
9
9
|
"#{config.root}/app/models/promote",
|
10
10
|
"#{config.root}/app/models/promote_charge",
|
11
|
-
"#{config.root}/app/models/refund"
|
11
|
+
"#{config.root}/app/models/refund",
|
12
|
+
"#{config.root}/app/models/payout"
|
12
13
|
]
|
13
14
|
|
14
15
|
config.generators do |g|
|
data/lib/rails_trade.rb
CHANGED
@@ -1,12 +1,4 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require '
|
4
|
-
require '
|
5
|
-
require 'rails_role'
|
6
|
-
require 'rails_data'
|
7
|
-
require 'rails_audit'
|
8
|
-
|
9
|
-
require_relative 'rails_trade/engine'
|
10
|
-
require_relative 'rails_trade/config'
|
11
|
-
|
12
|
-
require_relative 'rails_trade/apple_pay'
|
3
|
+
require 'rails_trade/engine'
|
4
|
+
require 'rails_trade/config'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_trade
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- qinmingyuan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-09-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails_com
|
@@ -24,76 +24,20 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.2'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: rails_auth
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - "~>"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '1.0'
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "~>"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '1.0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: rails_role
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '1.0'
|
48
|
-
type: :runtime
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '1.0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: rails_data
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '1.0'
|
62
|
-
type: :runtime
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - "~>"
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '1.0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: rails_audit
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - "~>"
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '1.0'
|
76
|
-
type: :runtime
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - "~>"
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '1.0'
|
83
27
|
- !ruby/object:Gem::Dependency
|
84
28
|
name: money-rails
|
85
29
|
requirement: !ruby/object:Gem::Requirement
|
86
30
|
requirements:
|
87
31
|
- - "~>"
|
88
32
|
- !ruby/object:Gem::Version
|
89
|
-
version: '1.
|
33
|
+
version: '1.14'
|
90
34
|
type: :runtime
|
91
35
|
prerelease: false
|
92
36
|
version_requirements: !ruby/object:Gem::Requirement
|
93
37
|
requirements:
|
94
38
|
- - "~>"
|
95
39
|
- !ruby/object:Gem::Version
|
96
|
-
version: '1.
|
40
|
+
version: '1.14'
|
97
41
|
description: trade, payment
|
98
42
|
email:
|
99
43
|
- mingyuan0715@foxmail.com
|
@@ -104,39 +48,20 @@ files:
|
|
104
48
|
- LICENSE
|
105
49
|
- README.md
|
106
50
|
- Rakefile
|
107
|
-
- app/
|
108
|
-
- app/
|
109
|
-
- app/assets/javascripts/controllers/trade/admin/cart_items/only.js
|
110
|
-
- app/assets/javascripts/controllers/trade/admin/orders/new.js
|
111
|
-
- app/assets/javascripts/controllers/trade/admin/payment_methods/edit.js
|
112
|
-
- app/assets/javascripts/controllers/trade/admin/payment_methods/new.js
|
113
|
-
- app/assets/javascripts/controllers/trade/admin/payments/edit.js
|
114
|
-
- app/assets/javascripts/controllers/trade/admin/payments/new.js
|
115
|
-
- app/assets/javascripts/controllers/trade/admin/promote_buyers/edit.js
|
116
|
-
- app/assets/javascripts/controllers/trade/admin/promote_buyers/new.js
|
117
|
-
- app/assets/javascripts/controllers/trade/admin/promote_charges/edit.js
|
118
|
-
- app/assets/javascripts/controllers/trade/admin/promote_charges/new.js
|
119
|
-
- app/assets/javascripts/controllers/trade/admin/promote_goods/edit.js
|
120
|
-
- app/assets/javascripts/controllers/trade/admin/promote_goods/new.js
|
121
|
-
- app/assets/javascripts/controllers/trade/admin/promotes/edit.js
|
122
|
-
- app/assets/javascripts/controllers/trade/admin/promotes/new.js
|
123
|
-
- app/assets/javascripts/controllers/trade/admin/refunds/index.js
|
124
|
-
- app/assets/javascripts/controllers/trade/admin/refunds/new.js
|
125
|
-
- app/assets/javascripts/controllers/trade/my/carts/show-phone-ready.js
|
126
|
-
- app/assets/javascripts/controllers/trade/my/carts/show-ready.js
|
127
|
-
- app/assets/javascripts/controllers/trade/my/orders/wait-phone.js
|
128
|
-
- app/assets/javascripts/controllers/trade/my/trade_items/create.js
|
129
|
-
- app/assets/stylesheets/controllers/trade/admin/promote_charges/index.css
|
130
|
-
- app/assets/stylesheets/controllers/trade/admin/promotes/index.css
|
131
|
-
- app/assets/stylesheets/controllers/trade/my/carts/show-phone.css
|
132
|
-
- app/assets/stylesheets/controllers/trade/payments/wxpay_result.css
|
133
|
-
- app/channels/paid_channel.rb
|
134
|
-
- app/controllers/concerns/controller_order_types.rb
|
135
|
-
- app/controllers/rails_trade/my_cart.rb
|
51
|
+
- app/apis/trade/apple_pay_api.rb
|
52
|
+
- app/controllers/trade/admin/advances_controller.rb
|
136
53
|
- app/controllers/trade/admin/base_controller.rb
|
137
|
-
- app/controllers/trade/admin/
|
138
|
-
- app/controllers/trade/admin/
|
139
|
-
- app/controllers/trade/admin/
|
54
|
+
- app/controllers/trade/admin/card_advances_controller.rb
|
55
|
+
- app/controllers/trade/admin/card_logs_controller.rb
|
56
|
+
- app/controllers/trade/admin/card_payments_controller.rb
|
57
|
+
- app/controllers/trade/admin/card_prepayments_controller.rb
|
58
|
+
- app/controllers/trade/admin/card_promotes_controller.rb
|
59
|
+
- app/controllers/trade/admin/card_templates_controller.rb
|
60
|
+
- app/controllers/trade/admin/cards_controller.rb
|
61
|
+
- app/controllers/trade/admin/carts_controller.rb
|
62
|
+
- app/controllers/trade/admin/cash_givens_controller.rb
|
63
|
+
- app/controllers/trade/admin/cash_logs_controller.rb
|
64
|
+
- app/controllers/trade/admin/cashes_controller.rb
|
140
65
|
- app/controllers/trade/admin/order_payments_controller.rb
|
141
66
|
- app/controllers/trade/admin/orders_controller.rb
|
142
67
|
- app/controllers/trade/admin/payment_methods_controller.rb
|
@@ -144,131 +69,280 @@ files:
|
|
144
69
|
- app/controllers/trade/admin/payment_references_controller.rb
|
145
70
|
- app/controllers/trade/admin/payment_strategies_controller.rb
|
146
71
|
- app/controllers/trade/admin/payments_controller.rb
|
147
|
-
- app/controllers/trade/admin/
|
148
|
-
- app/controllers/trade/admin/
|
72
|
+
- app/controllers/trade/admin/payouts_controller.rb
|
73
|
+
- app/controllers/trade/admin/promote_carts_controller.rb
|
149
74
|
- app/controllers/trade/admin/promote_charges_controller.rb
|
150
75
|
- app/controllers/trade/admin/promote_goods_controller.rb
|
151
76
|
- app/controllers/trade/admin/promotes_controller.rb
|
152
77
|
- app/controllers/trade/admin/refunds_controller.rb
|
153
78
|
- app/controllers/trade/admin/trade_items_controller.rb
|
154
79
|
- app/controllers/trade/admin/trade_promotes_controller.rb
|
155
|
-
- app/controllers/trade/
|
80
|
+
- app/controllers/trade/admin/users_controller.rb
|
81
|
+
- app/controllers/trade/advances_controller.rb
|
82
|
+
- app/controllers/trade/base_controller.rb
|
83
|
+
- app/controllers/trade/card_templates_controller.rb
|
84
|
+
- app/controllers/trade/controller/application.rb
|
85
|
+
- app/controllers/trade/controller/promote.rb
|
86
|
+
- app/controllers/trade/my/advances_controller.rb
|
156
87
|
- app/controllers/trade/my/base_controller.rb
|
88
|
+
- app/controllers/trade/my/card_logs_controller.rb
|
89
|
+
- app/controllers/trade/my/cards_controller.rb
|
157
90
|
- app/controllers/trade/my/carts_controller.rb
|
158
|
-
- app/controllers/trade/my/
|
91
|
+
- app/controllers/trade/my/cash_logs_controller.rb
|
159
92
|
- app/controllers/trade/my/orders_controller.rb
|
160
93
|
- app/controllers/trade/my/payment_methods_controller.rb
|
94
|
+
- app/controllers/trade/my/payments_controller.rb
|
95
|
+
- app/controllers/trade/my/payouts_controller.rb
|
161
96
|
- app/controllers/trade/my/trade_items_controller.rb
|
97
|
+
- app/controllers/trade/panel/base_controller.rb
|
98
|
+
- app/controllers/trade/panel/exchange_rates_controller.rb
|
162
99
|
- app/controllers/trade/payments_controller.rb
|
163
|
-
- app/models/
|
164
|
-
- app/models/
|
165
|
-
- app/models/payment.rb
|
166
|
-
- app/models/payment/
|
167
|
-
- app/models/payment/
|
168
|
-
- app/models/payment/
|
169
|
-
- app/models/payment/
|
170
|
-
- app/models/payment/
|
171
|
-
- app/models/
|
172
|
-
- app/models/
|
173
|
-
- app/models/payment_method.rb
|
174
|
-
- app/models/
|
175
|
-
- app/models/
|
176
|
-
- app/models/
|
177
|
-
- app/models/
|
178
|
-
- app/models/
|
179
|
-
- app/models/
|
180
|
-
- app/models/
|
181
|
-
- app/models/
|
182
|
-
- app/models/
|
183
|
-
- app/models/
|
184
|
-
- app/models/
|
185
|
-
- app/models/
|
186
|
-
- app/models/
|
187
|
-
- app/models/
|
188
|
-
- app/models/
|
189
|
-
- app/models/
|
190
|
-
- app/models/
|
191
|
-
- app/models/
|
192
|
-
- app/models/
|
193
|
-
- app/models/
|
194
|
-
- app/models/
|
195
|
-
- app/models/
|
196
|
-
- app/models/
|
197
|
-
- app/models/
|
198
|
-
- app/models/
|
199
|
-
- app/models/
|
200
|
-
- app/models/
|
201
|
-
- app/models/
|
202
|
-
- app/models/
|
203
|
-
- app/models/
|
204
|
-
- app/models/
|
205
|
-
- app/models/
|
206
|
-
- app/models/
|
207
|
-
- app/models/
|
208
|
-
- app/models/
|
209
|
-
- app/models/
|
210
|
-
- app/models/
|
211
|
-
- app/models/
|
212
|
-
- app/models/
|
213
|
-
- app/models/
|
214
|
-
- app/models/
|
215
|
-
- app/models/
|
216
|
-
- app/models/
|
217
|
-
- app/models/
|
218
|
-
- app/models/
|
219
|
-
- app/models/
|
220
|
-
- app/models/
|
221
|
-
- app/models/
|
222
|
-
- app/models/
|
223
|
-
- app/models/
|
224
|
-
- app/models/
|
225
|
-
- app/models/
|
226
|
-
- app/models/
|
227
|
-
- app/models/
|
228
|
-
- app/models/
|
229
|
-
- app/models/
|
230
|
-
- app/models/
|
231
|
-
- app/models/
|
232
|
-
- app/models/
|
233
|
-
- app/models/
|
234
|
-
- app/models/
|
235
|
-
- app/models/
|
236
|
-
- app/models/
|
237
|
-
- app/models/
|
238
|
-
- app/models/
|
239
|
-
- app/models/
|
240
|
-
- app/models/
|
241
|
-
- app/models/
|
242
|
-
- app/models/
|
243
|
-
- app/models/
|
244
|
-
- app/models/
|
245
|
-
- app/models/
|
246
|
-
- app/
|
100
|
+
- app/models/payment/trade/alipay_payment.rb
|
101
|
+
- app/models/payment/trade/apple_payment.rb
|
102
|
+
- app/models/payment/trade/bank_payment.rb
|
103
|
+
- app/models/payment/trade/card_payment.rb
|
104
|
+
- app/models/payment/trade/hand_payment.rb
|
105
|
+
- app/models/payment/trade/paypal_payment.rb
|
106
|
+
- app/models/payment/trade/stripe_payment.rb
|
107
|
+
- app/models/payment/trade/wxpay_payment.rb
|
108
|
+
- app/models/payment_method/trade/alipay_method.rb
|
109
|
+
- app/models/payment_method/trade/bank_method.rb
|
110
|
+
- app/models/payment_method/trade/stripe_method.rb
|
111
|
+
- app/models/payout/trade/wxpay_payout.rb
|
112
|
+
- app/models/promote_charge/trade/discount_promote_charge.rb
|
113
|
+
- app/models/promote_charge/trade/final_promote_charge.rb
|
114
|
+
- app/models/promote_charge/trade/minus_promote_charge.rb
|
115
|
+
- app/models/promote_charge/trade/plus_promote_charge.rb
|
116
|
+
- app/models/refund/trade/alipay_refund.rb
|
117
|
+
- app/models/refund/trade/bank_refund.rb
|
118
|
+
- app/models/refund/trade/card_refund.rb
|
119
|
+
- app/models/refund/trade/hand_refund.rb
|
120
|
+
- app/models/refund/trade/paypal_refund.rb
|
121
|
+
- app/models/refund/trade/stripe_refund.rb
|
122
|
+
- app/models/refund/trade/wxpay_refund.rb
|
123
|
+
- app/models/trade.rb
|
124
|
+
- app/models/trade/advance.rb
|
125
|
+
- app/models/trade/application_record.rb
|
126
|
+
- app/models/trade/card.rb
|
127
|
+
- app/models/trade/card_advance.rb
|
128
|
+
- app/models/trade/card_log.rb
|
129
|
+
- app/models/trade/card_prepayment.rb
|
130
|
+
- app/models/trade/card_promote.rb
|
131
|
+
- app/models/trade/card_template.rb
|
132
|
+
- app/models/trade/cart.rb
|
133
|
+
- app/models/trade/cash.rb
|
134
|
+
- app/models/trade/cash_given.rb
|
135
|
+
- app/models/trade/cash_log.rb
|
136
|
+
- app/models/trade/exchange_rate.rb
|
137
|
+
- app/models/trade/ext/payable.rb
|
138
|
+
- app/models/trade/ext/user.rb
|
139
|
+
- app/models/trade/model/advance.rb
|
140
|
+
- app/models/trade/model/agency.rb
|
141
|
+
- app/models/trade/model/amount.rb
|
142
|
+
- app/models/trade/model/card.rb
|
143
|
+
- app/models/trade/model/card_advance.rb
|
144
|
+
- app/models/trade/model/card_log.rb
|
145
|
+
- app/models/trade/model/card_prepayment.rb
|
146
|
+
- app/models/trade/model/card_promote.rb
|
147
|
+
- app/models/trade/model/card_template.rb
|
148
|
+
- app/models/trade/model/cart.rb
|
149
|
+
- app/models/trade/model/cash.rb
|
150
|
+
- app/models/trade/model/cash_given.rb
|
151
|
+
- app/models/trade/model/cash_log.rb
|
152
|
+
- app/models/trade/model/compute.rb
|
153
|
+
- app/models/trade/model/exchange_rate.rb
|
154
|
+
- app/models/trade/model/good.rb
|
155
|
+
- app/models/trade/model/member.rb
|
156
|
+
- app/models/trade/model/order.rb
|
157
|
+
- app/models/trade/model/payment.rb
|
158
|
+
- app/models/trade/model/payment/alipay_payment.rb
|
159
|
+
- app/models/trade/model/payment/apple_payment.rb
|
160
|
+
- app/models/trade/model/payment/bank_payment.rb
|
161
|
+
- app/models/trade/model/payment/card_payment.rb
|
162
|
+
- app/models/trade/model/payment/hand_payment.rb
|
163
|
+
- app/models/trade/model/payment/paypal_payment.rb
|
164
|
+
- app/models/trade/model/payment/stripe_payment.rb
|
165
|
+
- app/models/trade/model/payment/wxpay_payment.rb
|
166
|
+
- app/models/trade/model/payment_method.rb
|
167
|
+
- app/models/trade/model/payment_method/stripe_method.rb
|
168
|
+
- app/models/trade/model/payment_order.rb
|
169
|
+
- app/models/trade/model/payment_reference.rb
|
170
|
+
- app/models/trade/model/payment_strategy.rb
|
171
|
+
- app/models/trade/model/payout.rb
|
172
|
+
- app/models/trade/model/payout/wxpay_payout.rb
|
173
|
+
- app/models/trade/model/plan_attender.rb
|
174
|
+
- app/models/trade/model/profile.rb
|
175
|
+
- app/models/trade/model/promote.rb
|
176
|
+
- app/models/trade/model/promote_cart.rb
|
177
|
+
- app/models/trade/model/promote_charge.rb
|
178
|
+
- app/models/trade/model/promote_charge/discount_promote_charge.rb
|
179
|
+
- app/models/trade/model/promote_charge/final_promote_charge.rb
|
180
|
+
- app/models/trade/model/promote_charge/minus_promote_charge.rb
|
181
|
+
- app/models/trade/model/promote_charge/plus_promote_charge.rb
|
182
|
+
- app/models/trade/model/promote_extra.rb
|
183
|
+
- app/models/trade/model/promote_good.rb
|
184
|
+
- app/models/trade/model/refund.rb
|
185
|
+
- app/models/trade/model/refund/alipay_refund.rb
|
186
|
+
- app/models/trade/model/refund/bank_refund.rb
|
187
|
+
- app/models/trade/model/refund/card_refund.rb
|
188
|
+
- app/models/trade/model/refund/hand_refund.rb
|
189
|
+
- app/models/trade/model/refund/paypal_refund.rb
|
190
|
+
- app/models/trade/model/refund/stripe_refund.rb
|
191
|
+
- app/models/trade/model/refund/wxpay_refund.rb
|
192
|
+
- app/models/trade/model/sell.rb
|
193
|
+
- app/models/trade/model/trade_item.rb
|
194
|
+
- app/models/trade/model/trade_promote.rb
|
195
|
+
- app/models/trade/order.rb
|
196
|
+
- app/models/trade/ordering/payment.rb
|
197
|
+
- app/models/trade/ordering/refund.rb
|
198
|
+
- app/models/trade/payment.rb
|
199
|
+
- app/models/trade/payment_method.rb
|
200
|
+
- app/models/trade/payment_order.rb
|
201
|
+
- app/models/trade/payment_reference.rb
|
202
|
+
- app/models/trade/payment_strategy.rb
|
203
|
+
- app/models/trade/payment_type/alipay.rb
|
204
|
+
- app/models/trade/payment_type/apple_pay.rb
|
205
|
+
- app/models/trade/payment_type/paypal.rb
|
206
|
+
- app/models/trade/payment_type/stripe.rb
|
207
|
+
- app/models/trade/payment_type/svf_card.rb
|
208
|
+
- app/models/trade/payment_type/wxpay.rb
|
209
|
+
- app/models/trade/payout.rb
|
210
|
+
- app/models/trade/promote.rb
|
211
|
+
- app/models/trade/promote_cart.rb
|
212
|
+
- app/models/trade/promote_charge.rb
|
213
|
+
- app/models/trade/promote_extra.rb
|
214
|
+
- app/models/trade/promote_good.rb
|
215
|
+
- app/models/trade/refund.rb
|
216
|
+
- app/models/trade/trade_item.rb
|
217
|
+
- app/models/trade/trade_promote.rb
|
218
|
+
- app/views/admin/_trade_nav.html.erb
|
247
219
|
- app/views/my/_trade_nav.html.erb
|
248
|
-
- app/views/
|
249
|
-
- app/views/trade/admin/
|
250
|
-
- app/views/trade/admin/
|
251
|
-
- app/views/trade/admin/
|
252
|
-
- app/views/trade/admin/
|
253
|
-
- app/views/trade/admin/
|
254
|
-
- app/views/trade/admin/
|
255
|
-
- app/views/trade/admin/
|
256
|
-
- app/views/trade/admin/
|
257
|
-
- app/views/trade/admin/
|
258
|
-
- app/views/trade/admin/
|
259
|
-
- app/views/trade/admin/
|
260
|
-
- app/views/trade/admin/
|
261
|
-
- app/views/trade/admin/
|
262
|
-
- app/views/trade/admin/
|
263
|
-
- app/views/trade/admin/
|
264
|
-
- app/views/trade/admin/
|
265
|
-
- app/views/trade/admin/
|
266
|
-
- app/views/trade/admin/
|
267
|
-
- app/views/trade/admin/
|
268
|
-
- app/views/trade/admin/
|
269
|
-
- app/views/trade/admin/
|
270
|
-
- app/views/trade/admin/
|
271
|
-
- app/views/trade/admin/
|
220
|
+
- app/views/panel/_trade_nav.html.erb
|
221
|
+
- app/views/trade/admin/advances/_breadcrumb.html.erb
|
222
|
+
- app/views/trade/admin/advances/_edit_form.html.erb
|
223
|
+
- app/views/trade/admin/advances/_form.html.erb
|
224
|
+
- app/views/trade/admin/advances/_index_tbody.html.erb
|
225
|
+
- app/views/trade/admin/advances/_index_thead.html.erb
|
226
|
+
- app/views/trade/admin/advances/_new_form.html.erb
|
227
|
+
- app/views/trade/admin/advances/index.html.erb
|
228
|
+
- app/views/trade/admin/advances/show.html.erb
|
229
|
+
- app/views/trade/admin/base/_nav.html.erb
|
230
|
+
- app/views/trade/admin/card_advances/_breadcrumb.html.erb
|
231
|
+
- app/views/trade/admin/card_advances/_edit_form.html.erb
|
232
|
+
- app/views/trade/admin/card_advances/_form.html.erb
|
233
|
+
- app/views/trade/admin/card_advances/_index_tbody.html.erb
|
234
|
+
- app/views/trade/admin/card_advances/_index_thead.html.erb
|
235
|
+
- app/views/trade/admin/card_advances/_new_form.html.erb
|
236
|
+
- app/views/trade/admin/card_advances/_show_table.html.erb
|
237
|
+
- app/views/trade/admin/card_advances/index.html.erb
|
238
|
+
- app/views/trade/admin/card_logs/_breadcrumb.html.erb
|
239
|
+
- app/views/trade/admin/card_logs/_card_log.json.jbuilder
|
240
|
+
- app/views/trade/admin/card_logs/_edit_form.html.erb
|
241
|
+
- app/views/trade/admin/card_logs/_filter_form.html.erb
|
242
|
+
- app/views/trade/admin/card_logs/_form.html.erb
|
243
|
+
- app/views/trade/admin/card_logs/_index_tbody.html.erb
|
244
|
+
- app/views/trade/admin/card_logs/_index_thead.html.erb
|
245
|
+
- app/views/trade/admin/card_logs/_index_tr.html.erb
|
246
|
+
- app/views/trade/admin/card_logs/_new_form.html.erb
|
247
|
+
- app/views/trade/admin/card_logs/_show.json.jbuilder
|
248
|
+
- app/views/trade/admin/card_logs/_show_table.html.erb
|
249
|
+
- app/views/trade/admin/card_logs/index.html.erb
|
250
|
+
- app/views/trade/admin/card_logs/index.json.jbuilder
|
251
|
+
- app/views/trade/admin/card_payments/_breadcrumb.html.erb
|
252
|
+
- app/views/trade/admin/card_payments/_button.html.erb
|
253
|
+
- app/views/trade/admin/card_payments/_edit_form.html.erb
|
254
|
+
- app/views/trade/admin/card_payments/_filter_form.html.erb
|
255
|
+
- app/views/trade/admin/card_payments/_form.html.erb
|
256
|
+
- app/views/trade/admin/card_payments/_index_tbody.html.erb
|
257
|
+
- app/views/trade/admin/card_payments/_index_thead.html.erb
|
258
|
+
- app/views/trade/admin/card_payments/_new_form.html.erb
|
259
|
+
- app/views/trade/admin/card_payments/_show_table.html.erb
|
260
|
+
- app/views/trade/admin/card_payments/index.html.erb
|
261
|
+
- app/views/trade/admin/card_prepayments/_breadcrumb.html.erb
|
262
|
+
- app/views/trade/admin/card_prepayments/_edit_form.html.erb
|
263
|
+
- app/views/trade/admin/card_prepayments/_filter_form.html.erb
|
264
|
+
- app/views/trade/admin/card_prepayments/_form.html.erb
|
265
|
+
- app/views/trade/admin/card_prepayments/_index_tbody.html.erb
|
266
|
+
- app/views/trade/admin/card_prepayments/_index_thead.html.erb
|
267
|
+
- app/views/trade/admin/card_prepayments/_new_form.html.erb
|
268
|
+
- app/views/trade/admin/card_prepayments/_show_table.html.erb
|
269
|
+
- app/views/trade/admin/card_prepayments/index.html.erb
|
270
|
+
- app/views/trade/admin/card_promotes/_breadcrumb.html.erb
|
271
|
+
- app/views/trade/admin/card_promotes/_edit_form.html.erb
|
272
|
+
- app/views/trade/admin/card_promotes/_filter_form.html.erb
|
273
|
+
- app/views/trade/admin/card_promotes/_form.html.erb
|
274
|
+
- app/views/trade/admin/card_promotes/_index_tbody.html.erb
|
275
|
+
- app/views/trade/admin/card_promotes/_index_thead.html.erb
|
276
|
+
- app/views/trade/admin/card_promotes/_new_form.html.erb
|
277
|
+
- app/views/trade/admin/card_promotes/_show_table.html.erb
|
278
|
+
- app/views/trade/admin/card_promotes/index.html.erb
|
279
|
+
- app/views/trade/admin/card_templates/_advance_options.html.erb
|
280
|
+
- app/views/trade/admin/card_templates/_card_template.json.jbuilder
|
281
|
+
- app/views/trade/admin/card_templates/_edit_form.html.erb
|
282
|
+
- app/views/trade/admin/card_templates/_filter_form.html.erb
|
283
|
+
- app/views/trade/admin/card_templates/_form.html.erb
|
284
|
+
- app/views/trade/admin/card_templates/_index_tbody.html.erb
|
285
|
+
- app/views/trade/admin/card_templates/_index_thead.html.erb
|
286
|
+
- app/views/trade/admin/card_templates/_index_tr.html.erb
|
287
|
+
- app/views/trade/admin/card_templates/_item_form.html.erb
|
288
|
+
- app/views/trade/admin/card_templates/_new_form.html.erb
|
289
|
+
- app/views/trade/admin/card_templates/_show.json.jbuilder
|
290
|
+
- app/views/trade/admin/card_templates/_show_table.html.erb
|
291
|
+
- app/views/trade/admin/card_templates/advance_options.js.erb
|
292
|
+
- app/views/trade/admin/card_templates/index.html.erb
|
293
|
+
- app/views/trade/admin/card_templates/index.json.jbuilder
|
294
|
+
- app/views/trade/admin/cards/_breadcrumb.html.erb
|
295
|
+
- app/views/trade/admin/cards/_button.html.erb
|
296
|
+
- app/views/trade/admin/cards/_card.json.jbuilder
|
297
|
+
- app/views/trade/admin/cards/_edit_form.html.erb
|
298
|
+
- app/views/trade/admin/cards/_filter_form.html.erb
|
299
|
+
- app/views/trade/admin/cards/_filter_table.html.erb
|
300
|
+
- app/views/trade/admin/cards/_form.html.erb
|
301
|
+
- app/views/trade/admin/cards/_index_tbody.html.erb
|
302
|
+
- app/views/trade/admin/cards/_index_thead.html.erb
|
303
|
+
- app/views/trade/admin/cards/_index_tr.html.erb
|
304
|
+
- app/views/trade/admin/cards/_new_form.html.erb
|
305
|
+
- app/views/trade/admin/cards/_show.json.jbuilder
|
306
|
+
- app/views/trade/admin/cards/_show_table.html.erb
|
307
|
+
- app/views/trade/admin/cards/index.html.erb
|
308
|
+
- app/views/trade/admin/cards/index.json.jbuilder
|
309
|
+
- app/views/trade/admin/carts/_button.html.erb
|
310
|
+
- app/views/trade/admin/carts/_check.html.erb
|
311
|
+
- app/views/trade/admin/carts/_index.html.erb
|
312
|
+
- app/views/trade/admin/carts/_index_tbody.html.erb
|
313
|
+
- app/views/trade/admin/carts/_index_thead.html.erb
|
314
|
+
- app/views/trade/admin/carts/_new.html.erb
|
315
|
+
- app/views/trade/admin/carts/_serve.html.erb
|
316
|
+
- app/views/trade/admin/carts/_single.html.erb
|
317
|
+
- app/views/trade/admin/carts/_single_table.html.erb
|
318
|
+
- app/views/trade/admin/carts/_total.html.erb
|
319
|
+
- app/views/trade/admin/carts/_total_table.html.erb
|
320
|
+
- app/views/trade/admin/carts/index.html.erb
|
321
|
+
- app/views/trade/admin/cash_givens/_edit_form.html.erb
|
322
|
+
- app/views/trade/admin/cash_givens/_filter_form.html.erb
|
323
|
+
- app/views/trade/admin/cash_givens/_form.html.erb
|
324
|
+
- app/views/trade/admin/cash_givens/_index_tbody.html.erb
|
325
|
+
- app/views/trade/admin/cash_givens/_index_thead.html.erb
|
326
|
+
- app/views/trade/admin/cash_givens/_new_form.html.erb
|
327
|
+
- app/views/trade/admin/cash_givens/_show_table.html.erb
|
328
|
+
- app/views/trade/admin/cash_givens/index.html.erb
|
329
|
+
- app/views/trade/admin/cash_logs/_edit_form.html.erb
|
330
|
+
- app/views/trade/admin/cash_logs/_filter_form.html.erb
|
331
|
+
- app/views/trade/admin/cash_logs/_form.html.erb
|
332
|
+
- app/views/trade/admin/cash_logs/_index_tbody.html.erb
|
333
|
+
- app/views/trade/admin/cash_logs/_index_thead.html.erb
|
334
|
+
- app/views/trade/admin/cash_logs/_new_form.html.erb
|
335
|
+
- app/views/trade/admin/cash_logs/_show_table.html.erb
|
336
|
+
- app/views/trade/admin/cash_logs/index.html.erb
|
337
|
+
- app/views/trade/admin/cashes/_button.html.erb
|
338
|
+
- app/views/trade/admin/cashes/_edit_form.html.erb
|
339
|
+
- app/views/trade/admin/cashes/_filter_form.html.erb
|
340
|
+
- app/views/trade/admin/cashes/_form.html.erb
|
341
|
+
- app/views/trade/admin/cashes/_index_tbody.html.erb
|
342
|
+
- app/views/trade/admin/cashes/_index_thead.html.erb
|
343
|
+
- app/views/trade/admin/cashes/_new_form.html.erb
|
344
|
+
- app/views/trade/admin/cashes/_show_tbody.html.erb
|
345
|
+
- app/views/trade/admin/cashes/index.html.erb
|
272
346
|
- app/views/trade/admin/goods/_form.html.erb
|
273
347
|
- app/views/trade/admin/goods/_item.html.erb
|
274
348
|
- app/views/trade/admin/goods/_new.html.erb
|
@@ -286,50 +360,53 @@ files:
|
|
286
360
|
- app/views/trade/admin/goods/new.js.erb
|
287
361
|
- app/views/trade/admin/goods/show.js.erb
|
288
362
|
- app/views/trade/admin/goods/update.js.erb
|
289
|
-
- app/views/trade/admin/order_payments/
|
290
|
-
- app/views/trade/admin/order_payments/
|
363
|
+
- app/views/trade/admin/order_payments/_index_tbody.html.erb
|
364
|
+
- app/views/trade/admin/order_payments/_index_thead.html.erb
|
365
|
+
- app/views/trade/admin/order_payments/_index_tr.html.erb
|
366
|
+
- app/views/trade/admin/order_payments/_new_form.html.erb
|
291
367
|
- app/views/trade/admin/order_payments/_payment_orders.html.erb
|
292
368
|
- app/views/trade/admin/order_payments/_payments.html.erb
|
293
|
-
- app/views/trade/admin/order_payments/create.js.erb
|
294
369
|
- app/views/trade/admin/order_payments/create_fail.js.erb
|
295
|
-
- app/views/trade/admin/order_payments/
|
296
|
-
- app/views/trade/admin/order_payments/index.js.erb
|
297
|
-
- app/views/trade/admin/order_payments/new.js.erb
|
370
|
+
- app/views/trade/admin/order_payments/index.html.erb
|
298
371
|
- app/views/trade/admin/orders/_addresses.html.erb
|
299
|
-
- app/views/trade/admin/orders/
|
300
|
-
- app/views/trade/admin/orders/
|
372
|
+
- app/views/trade/admin/orders/_breadcrumb.html.erb
|
373
|
+
- app/views/trade/admin/orders/_button.html.erb
|
374
|
+
- app/views/trade/admin/orders/_edit_form.html.erb
|
375
|
+
- app/views/trade/admin/orders/_filter_form.html.erb
|
376
|
+
- app/views/trade/admin/orders/_filter_table.html.erb
|
377
|
+
- app/views/trade/admin/orders/_index_tbody.html.erb
|
378
|
+
- app/views/trade/admin/orders/_index_thead.html.erb
|
379
|
+
- app/views/trade/admin/orders/_index_tr.html.erb
|
301
380
|
- app/views/trade/admin/orders/_invoice_addresses.html.erb
|
302
381
|
- app/views/trade/admin/orders/_item.html.erb
|
303
382
|
- app/views/trade/admin/orders/_new_items.html.erb
|
304
|
-
- app/views/trade/admin/orders/
|
383
|
+
- app/views/trade/admin/orders/_show/_breadcrumb.html.erb
|
305
384
|
- app/views/trade/admin/orders/index.html.erb
|
306
385
|
- app/views/trade/admin/orders/new.html.erb
|
386
|
+
- app/views/trade/admin/orders/new.js
|
307
387
|
- app/views/trade/admin/orders/payments.html.erb
|
308
|
-
- app/views/trade/admin/orders/
|
388
|
+
- app/views/trade/admin/orders/refund.turbo_stream.erb
|
309
389
|
- app/views/trade/admin/orders/show.html.erb
|
310
|
-
- app/views/trade/admin/payment_methods/
|
311
|
-
- app/views/trade/admin/payment_methods/
|
390
|
+
- app/views/trade/admin/payment_methods/_breadcrumb.html.erb
|
391
|
+
- app/views/trade/admin/payment_methods/_edit_form.html.erb
|
392
|
+
- app/views/trade/admin/payment_methods/_filter_form.html.erb
|
393
|
+
- app/views/trade/admin/payment_methods/_filter_table.html.erb
|
312
394
|
- app/views/trade/admin/payment_methods/_form.html.erb
|
313
|
-
- app/views/trade/admin/payment_methods/
|
314
|
-
- app/views/trade/admin/payment_methods/
|
315
|
-
- app/views/trade/admin/payment_methods/
|
316
|
-
- app/views/trade/admin/payment_methods/
|
317
|
-
- app/views/trade/admin/payment_methods/
|
318
|
-
- app/views/trade/admin/payment_methods/edit.html.erb
|
319
|
-
- app/views/trade/admin/payment_methods/edit.js.erb
|
395
|
+
- app/views/trade/admin/payment_methods/_index_tbody.html.erb
|
396
|
+
- app/views/trade/admin/payment_methods/_index_thead.html.erb
|
397
|
+
- app/views/trade/admin/payment_methods/_index_tr.html.erb
|
398
|
+
- app/views/trade/admin/payment_methods/_new_form.html.erb
|
399
|
+
- app/views/trade/admin/payment_methods/_unverified/_index_tbody.html.erb
|
320
400
|
- app/views/trade/admin/payment_methods/index.html.erb
|
321
401
|
- app/views/trade/admin/payment_methods/mine.html.erb
|
322
|
-
- app/views/trade/admin/payment_methods/new.html.erb
|
323
|
-
- app/views/trade/admin/payment_methods/new.js.erb
|
324
402
|
- app/views/trade/admin/payment_methods/unverified.html.erb
|
325
|
-
- app/views/trade/admin/payment_methods/update.js.erb
|
326
403
|
- app/views/trade/admin/payment_orders/_index.html.erb
|
327
404
|
- app/views/trade/admin/payment_orders/_new.html.erb
|
328
405
|
- app/views/trade/admin/payment_orders/_orders.html.erb
|
329
406
|
- app/views/trade/admin/payment_orders/cancel.js.erb
|
330
407
|
- app/views/trade/admin/payment_orders/create.js.erb
|
331
408
|
- app/views/trade/admin/payment_orders/create_fail.js.erb
|
332
|
-
- app/views/trade/admin/payment_orders/new.
|
409
|
+
- app/views/trade/admin/payment_orders/new.turbo_stream.erb
|
333
410
|
- app/views/trade/admin/payment_orders/raise_fail.js.erb
|
334
411
|
- app/views/trade/admin/payment_orders/update.js.erb
|
335
412
|
- app/views/trade/admin/payment_orders/update_fail.js.erb
|
@@ -340,90 +417,126 @@ files:
|
|
340
417
|
- app/views/trade/admin/payment_references/index.html.erb
|
341
418
|
- app/views/trade/admin/payment_references/new.js.erb
|
342
419
|
- app/views/trade/admin/payment_references/show.html.erb
|
420
|
+
- app/views/trade/admin/payment_strategies/_edit_form.html.erb
|
343
421
|
- app/views/trade/admin/payment_strategies/_form.html.erb
|
344
|
-
- app/views/trade/admin/payment_strategies/
|
422
|
+
- app/views/trade/admin/payment_strategies/_index_tbody.html.erb
|
423
|
+
- app/views/trade/admin/payment_strategies/_index_thead.html.erb
|
424
|
+
- app/views/trade/admin/payment_strategies/_new_form.html.erb
|
345
425
|
- app/views/trade/admin/payment_strategies/index.html.erb
|
346
|
-
- app/views/trade/admin/
|
426
|
+
- app/views/trade/admin/payments/_breadcrumb.html.erb
|
427
|
+
- app/views/trade/admin/payments/_button.html.erb
|
347
428
|
- app/views/trade/admin/payments/_checked_amount.html.erb
|
348
|
-
- app/views/trade/admin/payments/
|
349
|
-
- app/views/trade/admin/payments/
|
429
|
+
- app/views/trade/admin/payments/_edit_form.html.erb
|
430
|
+
- app/views/trade/admin/payments/_filter_form.html.erb
|
431
|
+
- app/views/trade/admin/payments/_filter_table.html.erb
|
350
432
|
- app/views/trade/admin/payments/_form.html.erb
|
351
|
-
- app/views/trade/admin/payments/
|
352
|
-
- app/views/trade/admin/payments/
|
433
|
+
- app/views/trade/admin/payments/_index_tbody.html.erb
|
434
|
+
- app/views/trade/admin/payments/_index_thead.html.erb
|
435
|
+
- app/views/trade/admin/payments/_index_tr.html.erb
|
436
|
+
- app/views/trade/admin/payments/_new_form.html.erb
|
353
437
|
- app/views/trade/admin/payments/analyze.js.erb
|
354
438
|
- app/views/trade/admin/payments/dashboard.html.erb
|
355
|
-
- app/views/trade/admin/payments/edit.html.erb
|
356
|
-
- app/views/trade/admin/payments/edit.js.erb
|
357
439
|
- app/views/trade/admin/payments/index.html.erb
|
358
|
-
- app/views/trade/admin/
|
359
|
-
- app/views/trade/admin/
|
360
|
-
- app/views/trade/admin/
|
361
|
-
- app/views/trade/admin/
|
362
|
-
- app/views/trade/admin/
|
363
|
-
- app/views/trade/admin/
|
364
|
-
- app/views/trade/admin/
|
365
|
-
- app/views/trade/admin/
|
366
|
-
- app/views/trade/admin/
|
367
|
-
- app/views/trade/admin/
|
368
|
-
- app/views/trade/admin/
|
369
|
-
- app/views/trade/admin/
|
370
|
-
- app/views/trade/admin/
|
371
|
-
- app/views/trade/admin/
|
440
|
+
- app/views/trade/admin/payouts/_edit_form.html.erb
|
441
|
+
- app/views/trade/admin/payouts/_filter_form.html.erb
|
442
|
+
- app/views/trade/admin/payouts/_form.html.erb
|
443
|
+
- app/views/trade/admin/payouts/_index_tbody.html.erb
|
444
|
+
- app/views/trade/admin/payouts/_index_thead.html.erb
|
445
|
+
- app/views/trade/admin/payouts/_index_tr.html.erb
|
446
|
+
- app/views/trade/admin/payouts/_new_form.html.erb
|
447
|
+
- app/views/trade/admin/payouts/_show_table.html.erb
|
448
|
+
- app/views/trade/admin/payouts/index.html.erb
|
449
|
+
- app/views/trade/admin/promote_carts/_breadcrumb.html.erb
|
450
|
+
- app/views/trade/admin/promote_carts/_edit_form.html.erb
|
451
|
+
- app/views/trade/admin/promote_carts/_filter_form.html.erb
|
452
|
+
- app/views/trade/admin/promote_carts/_form.html.erb
|
453
|
+
- app/views/trade/admin/promote_carts/_index_tbody.html.erb
|
454
|
+
- app/views/trade/admin/promote_carts/_index_thead.html.erb
|
455
|
+
- app/views/trade/admin/promote_carts/_index_tr.html.erb
|
456
|
+
- app/views/trade/admin/promote_carts/_new_form.html.erb
|
457
|
+
- app/views/trade/admin/promote_carts/_promote_buyer.json.jbuilder
|
458
|
+
- app/views/trade/admin/promote_carts/edit.js
|
459
|
+
- app/views/trade/admin/promote_carts/index.html.erb
|
460
|
+
- app/views/trade/admin/promote_carts/index.json.jbuilder
|
461
|
+
- app/views/trade/admin/promote_carts/new.js
|
462
|
+
- app/views/trade/admin/promote_carts/show.json.jbuilder
|
372
463
|
- app/views/trade/admin/promote_charges/_base_price_form.html.erb
|
373
|
-
- app/views/trade/admin/promote_charges/
|
374
|
-
- app/views/trade/admin/promote_charges/
|
464
|
+
- app/views/trade/admin/promote_charges/_breadcrumb.html.erb
|
465
|
+
- app/views/trade/admin/promote_charges/_edit_form.html.erb
|
466
|
+
- app/views/trade/admin/promote_charges/_filter_form.html.erb
|
375
467
|
- app/views/trade/admin/promote_charges/_form.html.erb
|
376
|
-
- app/views/trade/admin/promote_charges/
|
468
|
+
- app/views/trade/admin/promote_charges/_index_tbody.html.erb
|
469
|
+
- app/views/trade/admin/promote_charges/_index_thead.html.erb
|
470
|
+
- app/views/trade/admin/promote_charges/_index_tr.html.erb
|
471
|
+
- app/views/trade/admin/promote_charges/_new_form.html.erb
|
377
472
|
- app/views/trade/admin/promote_charges/index.html.erb
|
378
473
|
- app/views/trade/admin/promote_charges/options.js.erb
|
379
|
-
- app/views/trade/admin/promote_goods/
|
474
|
+
- app/views/trade/admin/promote_goods/_breadcrumb.html.erb
|
475
|
+
- app/views/trade/admin/promote_goods/_button.html.erb
|
476
|
+
- app/views/trade/admin/promote_goods/_filter_form.html.erb
|
380
477
|
- app/views/trade/admin/promote_goods/_form.html.erb
|
381
478
|
- app/views/trade/admin/promote_goods/_goods_options.html.erb
|
479
|
+
- app/views/trade/admin/promote_goods/_index_tbody.html.erb
|
480
|
+
- app/views/trade/admin/promote_goods/_index_thead.html.erb
|
481
|
+
- app/views/trade/admin/promote_goods/_index_tr.html.erb
|
482
|
+
- app/views/trade/admin/promote_goods/_new_form.html.erb
|
382
483
|
- app/views/trade/admin/promote_goods/goods.js.erb
|
383
484
|
- app/views/trade/admin/promote_goods/index.html.erb
|
384
|
-
- app/views/trade/admin/promotes/
|
385
|
-
- app/views/trade/admin/promotes/
|
485
|
+
- app/views/trade/admin/promotes/_edit_form.html.erb
|
486
|
+
- app/views/trade/admin/promotes/_filter_table.html.erb
|
386
487
|
- app/views/trade/admin/promotes/_form.html.erb
|
387
|
-
- app/views/trade/admin/promotes/
|
488
|
+
- app/views/trade/admin/promotes/_index_tbody.html.erb
|
489
|
+
- app/views/trade/admin/promotes/_index_thead.html.erb
|
490
|
+
- app/views/trade/admin/promotes/_index_tr.html.erb
|
491
|
+
- app/views/trade/admin/promotes/_new_form.html.erb
|
388
492
|
- app/views/trade/admin/promotes/_new_promote_charge.html.erb
|
389
|
-
- app/views/trade/admin/promotes/
|
493
|
+
- app/views/trade/admin/promotes/_show_table.html.erb
|
390
494
|
- app/views/trade/admin/promotes/index.html.erb
|
391
|
-
- app/views/trade/admin/refunds/
|
392
|
-
- app/views/trade/admin/refunds/
|
393
|
-
- app/views/trade/admin/refunds/
|
495
|
+
- app/views/trade/admin/refunds/_breadcrumb.html.erb
|
496
|
+
- app/views/trade/admin/refunds/_filter_form.html.erb
|
497
|
+
- app/views/trade/admin/refunds/_index_tbody.html.erb
|
498
|
+
- app/views/trade/admin/refunds/_index_thead.html.erb
|
499
|
+
- app/views/trade/admin/refunds/_index_tr.html.erb
|
500
|
+
- app/views/trade/admin/refunds/_logs_form.html.erb
|
394
501
|
- app/views/trade/admin/refunds/_new.html.erb
|
395
|
-
- app/views/trade/admin/refunds/
|
502
|
+
- app/views/trade/admin/refunds/confirm.turbo_stream.erb
|
503
|
+
- app/views/trade/admin/refunds/deny.turbo_stream.erb
|
396
504
|
- app/views/trade/admin/refunds/index.html.erb
|
397
|
-
- app/views/trade/admin/refunds/logs.
|
398
|
-
- app/views/trade/admin/refunds/new.html.erb
|
399
|
-
- app/views/trade/admin/refunds/new.js.erb
|
400
|
-
- app/views/trade/admin/refunds/show.html.erb
|
505
|
+
- app/views/trade/admin/refunds/logs.turbo_stream.erb
|
401
506
|
- app/views/trade/admin/trade_items/_additions.html.erb
|
402
507
|
- app/views/trade/admin/trade_items/_filter.html.erb
|
403
508
|
- app/views/trade/admin/trade_items/_good_price.html.erb
|
404
509
|
- app/views/trade/admin/trade_items/_order_price.html.erb
|
405
510
|
- app/views/trade/admin/trade_items/_retail_price.html.erb
|
511
|
+
- app/views/trade/admin/trade_items/_show/_breadcrumb.html.erb
|
406
512
|
- app/views/trade/admin/trade_items/_single_price.html.erb
|
407
513
|
- app/views/trade/admin/trade_items/_total_price.html.erb
|
408
|
-
- app/views/trade/admin/trade_items/
|
514
|
+
- app/views/trade/admin/trade_items/create.js
|
409
515
|
- app/views/trade/admin/trade_items/error.html.erb
|
410
516
|
- app/views/trade/admin/trade_items/index.html.erb
|
517
|
+
- app/views/trade/admin/trade_items/index.js
|
411
518
|
- app/views/trade/admin/trade_items/only.html.erb
|
519
|
+
- app/views/trade/admin/trade_items/only.js
|
520
|
+
- app/views/trade/admin/trade_items/show.html.erb
|
412
521
|
- app/views/trade/admin/trade_items/total.js.erb
|
413
|
-
- app/views/trade/admin/
|
414
|
-
- app/views/trade/admin/trade_promotes/
|
522
|
+
- app/views/trade/admin/trade_promotes/_edit_form.html.erb
|
523
|
+
- app/views/trade/admin/trade_promotes/_filter_form.html.erb
|
415
524
|
- app/views/trade/admin/trade_promotes/_form.html.erb
|
525
|
+
- app/views/trade/admin/trade_promotes/_index_tbody.html.erb
|
526
|
+
- app/views/trade/admin/trade_promotes/_index_thead.html.erb
|
527
|
+
- app/views/trade/admin/trade_promotes/_new_form.html.erb
|
416
528
|
- app/views/trade/admin/trade_promotes/_show_table.html.erb
|
417
|
-
- app/views/trade/admin/trade_promotes/edit.html.erb
|
418
|
-
- app/views/trade/admin/trade_promotes/edit.js.erb
|
419
529
|
- app/views/trade/admin/trade_promotes/index.html.erb
|
420
|
-
- app/views/trade/admin/
|
421
|
-
- app/views/trade/admin/
|
422
|
-
- app/views/trade/admin/
|
423
|
-
- app/views/trade/
|
424
|
-
- app/views/trade/
|
425
|
-
- app/views/trade/
|
426
|
-
- app/views/trade/
|
530
|
+
- app/views/trade/admin/users/index.html.erb
|
531
|
+
- app/views/trade/admin/users/orders.html.erb
|
532
|
+
- app/views/trade/admin/users/overdue.html.erb
|
533
|
+
- app/views/trade/advances/index.html.erb
|
534
|
+
- app/views/trade/card_templates/_card_template.json.jbuilder
|
535
|
+
- app/views/trade/card_templates/_filter_form.html.erb
|
536
|
+
- app/views/trade/card_templates/_show_table.html.erb
|
537
|
+
- app/views/trade/card_templates/index.html.erb
|
538
|
+
- app/views/trade/card_templates/index.json.jbuilder
|
539
|
+
- app/views/trade/card_templates/show.json.jbuilder
|
427
540
|
- app/views/trade/goods/_choose.html.erb
|
428
541
|
- app/views/trade/goods/_good.html.erb
|
429
542
|
- app/views/trade/goods/_good_item.html.erb
|
@@ -443,84 +556,114 @@ files:
|
|
443
556
|
- app/views/trade/goods/taxon/_nav.html.erb
|
444
557
|
- app/views/trade/goods/taxon/_nav_.html.erb
|
445
558
|
- app/views/trade/goods/taxon/_nav_last.html.erb
|
446
|
-
- app/views/trade/my/
|
559
|
+
- app/views/trade/my/advances/index.json.jbuilder
|
560
|
+
- app/views/trade/my/advances/order.json.jbuilder
|
561
|
+
- app/views/trade/my/card_logs/_wallet_log.json.jbuilder
|
562
|
+
- app/views/trade/my/card_logs/index.html.erb
|
563
|
+
- app/views/trade/my/card_logs/index.json.jbuilder
|
564
|
+
- app/views/trade/my/cards/index.html.erb
|
565
|
+
- app/views/trade/my/cards/new.html.erb
|
566
|
+
- app/views/trade/my/cards/token.html.erb
|
567
|
+
- app/views/trade/my/carts/_additions.html.erb
|
568
|
+
- app/views/trade/my/carts/_addresses/_index_table.html.erb
|
569
|
+
- app/views/trade/my/carts/_addresses/_index_tbody.html.erb
|
570
|
+
- app/views/trade/my/carts/_addresses/_index_tr.html.erb
|
571
|
+
- app/views/trade/my/carts/_filter_form.html.erb
|
447
572
|
- app/views/trade/my/carts/_form.html.erb
|
573
|
+
- app/views/trade/my/carts/_show/_address.html.erb
|
574
|
+
- app/views/trade/my/carts/_show/_tab_bar.html.erb
|
448
575
|
- app/views/trade/my/carts/_show_table.html.erb
|
449
|
-
- app/views/trade/my/carts/
|
450
|
-
- app/views/trade/my/carts/
|
451
|
-
- app/views/trade/my/carts/
|
452
|
-
- app/views/trade/my/carts/
|
453
|
-
- app/views/trade/my/carts/
|
576
|
+
- app/views/trade/my/carts/_show_thead.html.erb
|
577
|
+
- app/views/trade/my/carts/_total_price.html.erb
|
578
|
+
- app/views/trade/my/carts/_trade_item.html.erb
|
579
|
+
- app/views/trade/my/carts/add.html.erb
|
580
|
+
- app/views/trade/my/carts/add.turbo_stream.erb
|
581
|
+
- app/views/trade/my/carts/addresses.html.erb
|
582
|
+
- app/views/trade/my/carts/destroy.turbo_stream.erb
|
454
583
|
- app/views/trade/my/carts/show.html+phone.erb
|
455
584
|
- app/views/trade/my/carts/show.html.erb
|
456
|
-
- app/views/trade/my/
|
457
|
-
- app/views/trade/my/
|
458
|
-
- app/views/trade/my/
|
459
|
-
- app/views/trade/my/order_items/new.html.erb
|
460
|
-
- app/views/trade/my/order_items/show.html.erb
|
585
|
+
- app/views/trade/my/carts/update.turbo_stream.erb
|
586
|
+
- app/views/trade/my/cash_logs/_cash_log.json.jbuilder
|
587
|
+
- app/views/trade/my/cash_logs/index.json.jbuilder
|
461
588
|
- app/views/trade/my/orders/_date_form.html.erb
|
462
|
-
- app/views/trade/my/orders/
|
589
|
+
- app/views/trade/my/orders/_edit_form.html.erb
|
463
590
|
- app/views/trade/my/orders/_edit_payment_type.html.erb
|
464
591
|
- app/views/trade/my/orders/_form.html.erb
|
465
|
-
- app/views/trade/my/orders/
|
466
|
-
- app/views/trade/my/orders/
|
467
|
-
- app/views/trade/my/orders/
|
592
|
+
- app/views/trade/my/orders/_payment_types/_show_table.html.erb
|
593
|
+
- app/views/trade/my/orders/_show/_breadcrumb.html.erb
|
594
|
+
- app/views/trade/my/orders/_success.html.erb
|
595
|
+
- app/views/trade/my/orders/alipay_pay.json.jbuilder
|
596
|
+
- app/views/trade/my/orders/create.turbo_stream.erb
|
597
|
+
- app/views/trade/my/orders/edit_payment_type.html.erb
|
468
598
|
- app/views/trade/my/orders/fail.html.erb
|
469
599
|
- app/views/trade/my/orders/index.html+phone.erb
|
470
600
|
- app/views/trade/my/orders/index.html.erb
|
471
601
|
- app/views/trade/my/orders/index.json.jbuilder
|
472
602
|
- app/views/trade/my/orders/new.html.erb
|
473
|
-
- app/views/trade/my/orders/
|
603
|
+
- app/views/trade/my/orders/payment_types.html+phone.erb
|
604
|
+
- app/views/trade/my/orders/payment_types.html.erb
|
605
|
+
- app/views/trade/my/orders/refresh.turbo_stream.erb
|
474
606
|
- app/views/trade/my/orders/refund.json.jbuilder
|
475
607
|
- app/views/trade/my/orders/show.html+phone.erb
|
476
608
|
- app/views/trade/my/orders/show.html.erb
|
477
609
|
- app/views/trade/my/orders/success.html.erb
|
478
|
-
- app/views/trade/my/orders/update.js.erb
|
479
610
|
- app/views/trade/my/orders/wait.html+wechat.erb
|
480
|
-
- app/views/trade/my/orders/wxpay_pay.
|
481
|
-
- app/views/trade/my/orders/wxpay_pay_err.
|
482
|
-
- app/views/trade/my/
|
611
|
+
- app/views/trade/my/orders/wxpay_pay.html.erb
|
612
|
+
- app/views/trade/my/orders/wxpay_pay_err.html.erb
|
613
|
+
- app/views/trade/my/orders/wxpay_pc_pay.html.erb
|
614
|
+
- app/views/trade/my/payment_methods/_button.html.erb
|
615
|
+
- app/views/trade/my/payment_methods/_edit_form.html.erb
|
483
616
|
- app/views/trade/my/payment_methods/_form.html.erb
|
484
|
-
- app/views/trade/my/payment_methods/
|
485
|
-
- app/views/trade/my/payment_methods/
|
486
|
-
- app/views/trade/my/payment_methods/
|
487
|
-
- app/views/trade/my/payment_methods/create.js.erb
|
488
|
-
- app/views/trade/my/payment_methods/destroy.js.erb
|
489
|
-
- app/views/trade/my/payment_methods/edit.js.erb
|
617
|
+
- app/views/trade/my/payment_methods/_index_tbody.html.erb
|
618
|
+
- app/views/trade/my/payment_methods/_index_thead.html.erb
|
619
|
+
- app/views/trade/my/payment_methods/_new_form.html.erb
|
490
620
|
- app/views/trade/my/payment_methods/index.html.erb
|
491
|
-
- app/views/trade/my/
|
492
|
-
- app/views/trade/my/
|
493
|
-
- app/views/trade/my/
|
494
|
-
- app/views/trade/my/
|
495
|
-
- app/views/trade/my/
|
496
|
-
- app/views/trade/my/
|
497
|
-
- app/views/trade/my/
|
498
|
-
- app/views/trade/my/
|
499
|
-
- app/views/trade/my/
|
500
|
-
- app/views/trade/my/
|
501
|
-
- app/views/trade/my/
|
621
|
+
- app/views/trade/my/payments/_edit_form.html.erb
|
622
|
+
- app/views/trade/my/payments/_filter_form.html.erb
|
623
|
+
- app/views/trade/my/payments/_form.html.erb
|
624
|
+
- app/views/trade/my/payments/_index_tbody.html.erb
|
625
|
+
- app/views/trade/my/payments/_index_thead.html.erb
|
626
|
+
- app/views/trade/my/payments/_new_form.html.erb
|
627
|
+
- app/views/trade/my/payments/_show_table.html.erb
|
628
|
+
- app/views/trade/my/payments/create.turbo_stream.erb
|
629
|
+
- app/views/trade/my/payments/destroy.turbo_stream.erb
|
630
|
+
- app/views/trade/my/payments/index.html.erb
|
631
|
+
- app/views/trade/my/payouts/_payout.json.jbuilder
|
632
|
+
- app/views/trade/my/payouts/index.json.jbuilder
|
633
|
+
- app/views/trade/my/payouts/list.json.jbuilder
|
634
|
+
- app/views/trade/my/payouts/show.json.jbuilder
|
635
|
+
- app/views/trade/my/shared/_cash.json.jbuilder
|
636
|
+
- app/views/trade/my/trade_items/_show/_breadcrumb.html.erb
|
502
637
|
- app/views/trade/my/trade_items/index.json.jbuilder
|
503
|
-
- app/views/trade/my/trade_items/
|
504
|
-
- app/views/trade/my/
|
505
|
-
- app/views/trade/my/
|
506
|
-
- app/views/trade/
|
638
|
+
- app/views/trade/my/trade_items/promote.html.erb
|
639
|
+
- app/views/trade/my/trade_items/show.html.erb
|
640
|
+
- app/views/trade/my/trade_items/toggle.turbo_stream.erb
|
641
|
+
- app/views/trade/panel/exchange_rates/_edit_form.html.erb
|
642
|
+
- app/views/trade/panel/exchange_rates/_filter_form.html.erb
|
643
|
+
- app/views/trade/panel/exchange_rates/_form.html.erb
|
644
|
+
- app/views/trade/panel/exchange_rates/_index_tbody.html.erb
|
645
|
+
- app/views/trade/panel/exchange_rates/_index_thead.html.erb
|
646
|
+
- app/views/trade/panel/exchange_rates/_new_form.html.erb
|
647
|
+
- app/views/trade/panel/exchange_rates/_show_table.html.erb
|
648
|
+
- app/views/trade/panel/exchange_rates/index.html.erb
|
507
649
|
- app/views/trade/payments/_wxpay_result.html.erb
|
508
650
|
- app/views/trade/payments/wxpay_result.js.erb
|
651
|
+
- config/locales/en.attributes.yml
|
652
|
+
- config/locales/en.controller.yml
|
509
653
|
- config/locales/en.enum.yml
|
510
654
|
- config/locales/en.yml
|
511
655
|
- config/locales/zh.attributes.yml
|
512
656
|
- config/locales/zh.controller.yml
|
513
657
|
- config/locales/zh.enum.yml
|
514
658
|
- config/locales/zh.help.yml
|
659
|
+
- config/locales/zh.yml
|
515
660
|
- config/routes.rb
|
516
661
|
- lib/rails_trade.rb
|
517
|
-
- lib/rails_trade/apple_pay.rb
|
518
662
|
- lib/rails_trade/config.rb
|
519
663
|
- lib/rails_trade/engine.rb
|
520
|
-
- lib/rails_trade/version.rb
|
521
664
|
homepage: https://github.com/work-design/rails_trade
|
522
665
|
licenses:
|
523
|
-
-
|
666
|
+
- MIT
|
524
667
|
metadata: {}
|
525
668
|
post_install_message:
|
526
669
|
rdoc_options: []
|
@@ -537,7 +680,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
537
680
|
- !ruby/object:Gem::Version
|
538
681
|
version: '0'
|
539
682
|
requirements: []
|
540
|
-
rubygems_version: 3.
|
683
|
+
rubygems_version: 3.2.22
|
541
684
|
signing_key:
|
542
685
|
specification_version: 4
|
543
686
|
summary: Rails engine for trade, payment and more
|