rails_trade 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/README.md +37 -15
- data/Rakefile +9 -27
- data/app/assets/javascripts/controllers/{rails_trade_admin → trade/admin}/cart_items/create.js +0 -0
- data/app/assets/javascripts/controllers/{rails_trade_admin → trade/admin}/cart_items/index.js +0 -0
- data/app/assets/javascripts/controllers/{rails_trade_admin → trade/admin}/cart_items/only.js +0 -0
- data/app/assets/javascripts/controllers/{rails_trade_admin → trade/admin}/orders/new.js +0 -0
- data/app/assets/javascripts/controllers/trade/admin/payment_methods/edit.js +1 -0
- data/app/assets/javascripts/controllers/{rails_trade_admin → trade/admin}/payment_methods/new.js +0 -0
- data/app/assets/javascripts/controllers/trade/admin/payments/edit.js +1 -0
- data/app/assets/javascripts/controllers/{rails_trade_admin → trade/admin}/payments/new.js +0 -0
- data/app/assets/javascripts/controllers/{rails_trade_admin → trade/admin}/promote_buyers/edit.js +0 -0
- data/app/assets/javascripts/controllers/{rails_trade_admin → trade/admin}/promote_buyers/new.js +3 -1
- data/app/assets/javascripts/controllers/trade/admin/promote_charges/edit.js +1 -0
- data/app/assets/javascripts/controllers/trade/admin/promote_charges/new.js +7 -0
- data/app/assets/javascripts/controllers/trade/admin/promote_goods/edit.js +1 -0
- data/app/assets/javascripts/controllers/trade/admin/promote_goods/new.js +17 -0
- data/app/assets/javascripts/controllers/trade/admin/promotes/edit.js +2 -0
- data/app/assets/javascripts/controllers/trade/admin/promotes/new.js +5 -0
- data/app/assets/javascripts/controllers/trade/admin/refunds/index.js +1 -0
- data/app/assets/javascripts/controllers/trade/admin/refunds/new.js +1 -0
- data/app/assets/javascripts/controllers/trade/my/carts/show-phone-ready.js +1 -0
- data/app/assets/javascripts/controllers/trade/my/carts/show-ready.js +28 -0
- data/app/assets/javascripts/controllers/trade/my/orders/wait-phone.js +8 -0
- data/app/{views/goods/show.html.erb → assets/javascripts/controllers/trade/my/trade_items/create.js} +0 -0
- data/app/assets/stylesheets/controllers/trade/admin/promote_charges/index.css +4 -0
- data/app/assets/stylesheets/controllers/trade/admin/promotes/index.css +4 -0
- data/app/{views/rails_trade_admin/orders/edit.html.erb → assets/stylesheets/controllers/trade/my/carts/show-phone.css} +0 -0
- data/app/assets/stylesheets/controllers/trade/payments/wxpay_result.css +57 -0
- data/app/channels/paid_channel.rb +7 -0
- data/app/controllers/concerns/controller_order_types.rb +3 -6
- data/app/controllers/rails_trade/my_cart.rb +16 -0
- data/app/controllers/trade/admin/base_controller.rb +5 -0
- data/app/controllers/{the_trade_admin → trade/admin}/buyers_controller.rb +3 -3
- data/app/controllers/{the_trade_admin/cart_item_serves_controller.rb → trade/admin/cart_serves_controller.rb} +8 -5
- data/app/controllers/{goods_controller.rb → trade/admin/goods_controller.rb} +7 -1
- data/app/controllers/{the_trade_admin → trade/admin}/order_payments_controller.rb +6 -3
- data/app/controllers/{the_trade_admin → trade/admin}/orders_controller.rb +23 -16
- data/app/controllers/{the_trade_admin → trade/admin}/payment_methods_controller.rb +8 -5
- data/app/controllers/{the_trade_admin → trade/admin}/payment_orders_controller.rb +10 -12
- data/app/controllers/{the_trade_admin → trade/admin}/payment_references_controller.rb +3 -3
- data/app/controllers/{the_trade_admin → trade/admin}/payment_strategies_controller.rb +9 -5
- data/app/controllers/trade/admin/payments_controller.rb +97 -0
- data/app/controllers/{the_trade_admin → trade/admin}/produces_controller.rb +4 -4
- data/app/controllers/trade/admin/promote_buyers_controller.rb +57 -0
- data/app/controllers/trade/admin/promote_charges_controller.rb +67 -0
- data/app/controllers/trade/admin/promote_goods_controller.rb +63 -0
- data/app/controllers/trade/admin/promotes_controller.rb +69 -0
- data/app/controllers/{the_trade_admin → trade/admin}/refunds_controller.rb +9 -12
- data/app/controllers/{the_trade_admin/cart_items_controller.rb → trade/admin/trade_items_controller.rb} +26 -28
- data/app/controllers/trade/admin/trade_promotes_controller.rb +71 -0
- data/app/controllers/trade/buyers_controller.rb +8 -0
- data/app/controllers/trade/my/base_controller.rb +4 -0
- data/app/controllers/trade/my/carts_controller.rb +32 -0
- data/app/controllers/{the_trade_my → trade/my}/order_items_controller.rb +4 -4
- data/app/controllers/trade/my/orders_controller.rb +106 -0
- data/app/controllers/{the_trade_my → trade/my}/payment_methods_controller.rb +1 -1
- data/app/controllers/trade/my/trade_items_controller.rb +47 -0
- data/app/controllers/trade/payments_controller.rb +71 -0
- data/app/models/cart.rb +4 -0
- data/app/models/order.rb +4 -0
- data/app/models/payment.rb +4 -0
- data/app/models/payment/alipay_payment.rb +3 -0
- data/app/models/payment/apple_payment.rb +3 -0
- data/app/models/payment/bank_payment.rb +3 -0
- data/app/models/payment/hand_payment.rb +3 -0
- data/app/models/payment/paypal_payment.rb +3 -0
- data/app/models/payment/stripe_payment.rb +3 -0
- data/app/models/payment/wxpay_payment.rb +3 -0
- data/app/models/payment_method.rb +3 -0
- data/app/models/{rails_trade/payment_methods → payment_method}/alipay_method.rb +1 -1
- data/app/models/{rails_trade/payment_methods → payment_method}/bank_method.rb +1 -1
- data/app/models/payment_method/stripe_method.rb +3 -0
- data/app/models/payment_order.rb +3 -0
- data/app/models/payment_reference.rb +3 -0
- data/app/models/payment_strategy.rb +3 -0
- data/app/models/payment_type.rb +3 -0
- data/app/models/promote.rb +3 -0
- data/app/models/promote_buyer.rb +3 -0
- data/app/models/promote_charge.rb +3 -0
- data/app/models/promote_charge/cash_promote_charge.rb +3 -0
- data/app/models/promote_charge/discount_promote_charge.rb +3 -0
- data/app/models/promote_charge/final_promote_charge.rb +3 -0
- data/app/models/promote_charge/minus_promote_charge.rb +3 -0
- data/app/models/promote_charge/plus_promote_charge.rb +3 -0
- data/app/models/promote_extra.rb +3 -0
- data/app/models/promote_good.rb +3 -0
- data/app/models/rails_trade/amount.rb +44 -0
- data/app/models/rails_trade/buyer.rb +35 -0
- data/app/models/rails_trade/cart.rb +64 -0
- data/app/models/rails_trade/good.rb +71 -0
- data/app/models/rails_trade/order.rb +78 -91
- data/app/models/rails_trade/ordering/payment.rb +113 -0
- data/app/models/rails_trade/{concerns/the_refund.rb → ordering/refund.rb} +3 -5
- data/app/models/rails_trade/payment.rb +72 -73
- data/app/models/rails_trade/payment/alipay_payment.rb +15 -0
- data/app/models/rails_trade/payment/apple_payment.rb +7 -0
- data/app/models/rails_trade/{payments → payment}/bank_payment.rb +2 -4
- data/app/models/rails_trade/payment/hand_payment.rb +8 -0
- data/app/models/rails_trade/payment/paypal_payment.rb +8 -0
- data/app/models/rails_trade/payment/stripe_payment.rb +9 -0
- data/app/models/rails_trade/{payments → payment}/wxpay_payment.rb +1 -2
- data/app/models/rails_trade/payment_method.rb +22 -12
- data/app/models/rails_trade/{payment_methods → payment_method}/stripe_method.rb +7 -4
- data/app/models/rails_trade/payment_order.rb +84 -51
- data/app/models/rails_trade/payment_reference.rb +12 -9
- data/app/models/rails_trade/payment_strategy.rb +15 -12
- data/app/models/rails_trade/payment_type/alipay.rb +28 -0
- data/app/models/rails_trade/payment_type/apple_pay.rb +18 -0
- data/app/models/rails_trade/{payment_interface/the_paypal.rb → payment_type/paypal.rb} +8 -29
- data/app/models/rails_trade/{payment_interface/the_stripe.rb → payment_type/stripe.rb} +8 -26
- data/app/models/rails_trade/payment_type/wxpay.rb +55 -0
- data/app/models/rails_trade/promote.rb +65 -27
- data/app/models/rails_trade/promote_buyer.rb +25 -7
- data/app/models/rails_trade/promote_charge.rb +78 -11
- data/app/models/rails_trade/promote_charge/cash_promote_charge.rb +12 -0
- data/app/models/rails_trade/promote_charge/discount_promote_charge.rb +17 -0
- data/app/models/rails_trade/promote_charge/final_promote_charge.rb +12 -0
- data/app/models/rails_trade/promote_charge/minus_promote_charge.rb +11 -0
- data/app/models/rails_trade/promote_charge/plus_promote_charge.rb +7 -0
- data/app/models/rails_trade/promote_extra.rb +13 -0
- data/app/models/rails_trade/promote_good.rb +20 -7
- data/app/models/rails_trade/refund.rb +30 -19
- data/app/models/rails_trade/{refunds → refund}/alipay_refund.rb +1 -1
- data/app/models/rails_trade/refund/bank_refund.rb +5 -0
- data/app/models/rails_trade/refund/hand_refund.rb +5 -0
- data/app/models/rails_trade/{refunds → refund}/paypal_refund.rb +1 -1
- data/app/models/rails_trade/{refunds → refund}/stripe_refund.rb +1 -1
- data/app/models/rails_trade/{refunds → refund}/wxpay_refund.rb +17 -9
- data/app/models/rails_trade/sell.rb +24 -0
- data/app/models/rails_trade/trade_item.rb +153 -0
- data/app/models/rails_trade/trade_promote.rb +92 -0
- data/app/models/rails_trade/user.rb +9 -0
- data/app/models/refund.rb +3 -0
- data/app/models/refund/alipay_refund.rb +3 -0
- data/app/models/refund/bank_refund.rb +3 -0
- data/app/models/refund/hand_refund.rb +3 -0
- data/app/models/refund/paypal_refund.rb +3 -0
- data/app/models/refund/stripe_refund.rb +3 -0
- data/app/models/refund/wxpay_refund.rb +3 -0
- data/app/models/trade_item.rb +3 -0
- data/app/models/trade_promote.rb +3 -0
- data/app/views/application/_trade_nav.html.erb +16 -0
- data/app/views/my/_trade_nav.html.erb +10 -0
- data/app/views/{rails_trade_admin → trade/admin}/buyers/_form.html.erb +0 -0
- data/app/views/{rails_trade_admin → trade/admin}/buyers/_menu.html.erb +0 -0
- data/app/views/{rails_trade_admin → trade/admin}/buyers/_search_form.html.erb +3 -3
- data/app/views/{rails_trade_admin → trade/admin}/buyers/edit.html.erb +0 -0
- data/app/views/{rails_trade_admin → trade/admin}/buyers/index.html.erb +1 -1
- data/app/views/{rails_trade_admin → trade/admin}/buyers/new.html.erb +0 -0
- data/app/views/{rails_trade_admin → trade/admin}/buyers/orders.html.erb +2 -2
- data/app/views/{rails_trade_admin → trade/admin}/buyers/overdue.html.erb +1 -1
- data/app/views/{rails_trade_admin → trade/admin}/buyers/show.html.erb +0 -0
- data/app/views/{rails_trade_admin → trade/admin}/cart_item_serves/_check.html.erb +0 -0
- data/app/views/{rails_trade_admin → trade/admin}/cart_item_serves/_index.html.erb +1 -1
- data/app/views/{rails_trade_admin → trade/admin}/cart_item_serves/_new.html.erb +0 -0
- data/app/views/{rails_trade_admin → trade/admin}/cart_item_serves/_serve.html.erb +0 -0
- data/app/views/{rails_trade_admin → trade/admin}/cart_item_serves/_single.html.erb +1 -1
- data/app/views/{rails_trade_admin → trade/admin}/cart_item_serves/_single_table.html.erb +0 -0
- data/app/views/{rails_trade_admin → trade/admin}/cart_item_serves/_total.html.erb +1 -1
- data/app/views/{rails_trade_admin → trade/admin}/cart_item_serves/_total_table.html.erb +0 -0
- data/app/views/{rails_trade_admin → trade/admin}/cart_item_serves/add.js.erb +0 -0
- data/app/views/{rails_trade_admin → trade/admin}/cart_item_serves/create.js.erb +0 -0
- data/app/views/{rails_trade_admin → trade/admin}/cart_item_serves/destroy.js.erb +0 -0
- data/app/views/{rails_trade_admin → trade/admin}/cart_item_serves/index.js.erb +0 -0
- data/app/views/{rails_trade_admin → trade/admin}/cart_item_serves/new.js.erb +0 -0
- data/app/views/{rails_trade_admin → trade/admin}/cart_item_serves/single.js.erb +0 -0
- data/app/views/{rails_trade_admin → trade/admin}/cart_item_serves/total.js.erb +0 -0
- data/app/views/trade/admin/goods/_form.html.erb +7 -0
- data/app/views/{rails_trade_admin → trade/admin}/goods/_item.html.erb +0 -0
- data/app/views/{rails_trade_admin → trade/admin}/goods/_new.html.erb +2 -2
- data/app/views/{rails_trade_admin → trade/admin}/goods/_show.html.erb +0 -0
- data/app/views/{rails_trade_admin → trade/admin}/goods/_show_tr.html.erb +0 -0
- data/app/views/{rails_trade_admin → trade/admin}/goods/create.js.erb +0 -0
- data/app/views/{rails_trade_admin → trade/admin}/goods/destroy.js.erb +0 -0
- data/app/views/{rails_trade_admin → trade/admin}/goods/edit.html.erb +2 -2
- data/app/views/{rails_trade_admin → trade/admin}/goods/edit.js.erb +0 -0
- data/app/views/{rails_trade_admin → trade/admin}/goods/edit_items.html.erb +2 -2
- data/app/views/{rails_trade_admin → trade/admin}/goods/edit_pic.html.erb +2 -2
- data/app/views/{rails_trade_admin → trade/admin}/goods/edit_promote.html.erb +2 -2
- data/app/views/{rails_trade_admin → trade/admin}/goods/index.html.erb +1 -1
- data/app/views/{rails_trade_admin → trade/admin}/goods/new.html.erb +1 -1
- data/app/views/{rails_trade_admin → trade/admin}/goods/new.js.erb +0 -0
- data/app/views/{rails_trade_admin → trade/admin}/goods/show.js.erb +0 -0
- data/app/views/{rails_trade_admin → trade/admin}/goods/update.js.erb +0 -0
- data/app/views/{rails_trade_admin → trade/admin}/order_payments/_index.html.erb +0 -0
- data/app/views/{rails_trade_admin → trade/admin}/order_payments/_new.html.erb +0 -0
- data/app/views/{rails_trade_admin → trade/admin}/order_payments/_payment_orders.html.erb +1 -1
- data/app/views/{rails_trade_admin → trade/admin}/order_payments/_payments.html.erb +0 -0
- data/app/views/{rails_trade_admin → trade/admin}/order_payments/create.js.erb +0 -0
- data/app/views/{rails_trade_admin → trade/admin}/order_payments/create_fail.js.erb +0 -0
- data/app/views/{rails_trade_admin → trade/admin}/order_payments/destroy.js.erb +0 -0
- data/app/views/{rails_trade_admin → trade/admin}/order_payments/index.js.erb +0 -0
- data/app/views/{rails_trade_admin → trade/admin}/order_payments/new.js.erb +0 -0
- data/app/views/{rails_trade_admin → trade/admin}/orders/_addresses.html.erb +1 -1
- data/app/views/trade/admin/orders/_filter.html.erb +26 -0
- data/app/views/trade/admin/orders/_form.html.erb +4 -0
- data/app/views/{rails_trade_admin → trade/admin}/orders/_invoice_addresses.html.erb +1 -1
- data/app/views/{rails_trade_admin → trade/admin}/orders/_item.html.erb +0 -0
- data/app/views/{rails_trade_admin → trade/admin}/orders/_new_items.html.erb +1 -1
- data/app/{assets/javascripts/controllers/rails_trade_admin/payments/index.js → views/trade/admin/orders/_search_form.html.erb} +0 -0
- data/app/views/trade/admin/orders/index.html.erb +52 -0
- data/app/views/{rails_trade_admin → trade/admin}/orders/new.html.erb +0 -0
- data/app/views/{rails_trade_admin → trade/admin}/orders/payments.html.erb +1 -1
- data/app/views/{rails_trade_admin → trade/admin}/orders/refresh.js.erb +0 -0
- data/app/views/trade/admin/orders/show.html.erb +75 -0
- data/app/views/{rails_trade_admin → trade/admin}/payment_methods/_edit.html.erb +0 -0
- data/app/views/{rails_trade_admin/payment_methods/_search_form.html.erb → trade/admin/payment_methods/_filter.html.erb} +5 -9
- data/app/views/{rails_trade_admin → trade/admin}/payment_methods/_form.html.erb +0 -0
- data/app/views/{rails_trade_admin → trade/admin}/payment_methods/_index_layout.html.erb +2 -5
- data/app/views/{rails_trade_admin → trade/admin}/payment_methods/_new.html.erb +2 -2
- data/app/views/{rails_trade_admin → trade/admin}/payment_methods/_payment_method.html.erb +2 -3
- data/app/views/trade/admin/payment_methods/create.js.erb +2 -0
- data/app/views/{rails_trade_admin → trade/admin}/payment_methods/destroy.js.erb +0 -0
- data/app/views/{rails_trade_admin → trade/admin}/payment_methods/edit.html.erb +1 -1
- data/app/views/{rails_trade_admin → trade/admin}/payment_methods/edit.js.erb +0 -0
- data/app/views/{rails_trade_admin → trade/admin}/payment_methods/index.html.erb +7 -4
- data/app/views/{rails_trade_admin → trade/admin}/payment_methods/mine.html.erb +2 -2
- data/app/views/{rails_trade_admin → trade/admin}/payment_methods/new.html.erb +1 -1
- data/app/views/{rails_trade_admin → trade/admin}/payment_methods/new.js.erb +0 -0
- data/app/views/{rails_trade_admin → trade/admin}/payment_methods/unverified.html.erb +4 -6
- data/app/views/{rails_trade_admin → trade/admin}/payment_methods/update.js.erb +0 -0
- data/app/views/{rails_trade_admin → trade/admin}/payment_orders/_index.html.erb +2 -6
- data/app/views/trade/admin/payment_orders/_new.html.erb +23 -0
- data/app/views/{rails_trade_admin → trade/admin}/payment_orders/_orders.html.erb +2 -9
- data/app/views/{rails_trade_admin → trade/admin}/payment_orders/cancel.js.erb +0 -0
- data/app/views/{rails_trade_admin → trade/admin}/payment_orders/create.js.erb +0 -0
- data/app/views/{rails_trade_admin → trade/admin}/payment_orders/create_fail.js.erb +0 -0
- data/app/views/{rails_trade_admin → trade/admin}/payment_orders/new.js.erb +0 -0
- data/app/views/{rails_trade_admin → trade/admin}/payment_orders/raise_fail.js.erb +0 -0
- data/app/views/{rails_trade_admin → trade/admin}/payment_orders/update.js.erb +1 -1
- data/app/views/{rails_trade_admin → trade/admin}/payment_orders/update_fail.js.erb +0 -0
- data/app/views/{rails_trade_admin → trade/admin}/payment_references/_form.html.erb +1 -1
- data/app/views/{rails_trade_admin → trade/admin}/payment_references/_new.html.erb +1 -1
- data/app/views/{rails_trade_admin → trade/admin}/payment_references/destroy.js.erb +0 -0
- data/app/views/{rails_trade_admin → trade/admin}/payment_references/edit.html.erb +0 -0
- data/app/views/{rails_trade_admin → trade/admin}/payment_references/index.html.erb +1 -1
- data/app/views/{rails_trade_admin → trade/admin}/payment_references/new.js.erb +0 -0
- data/app/views/{rails_trade_admin → trade/admin}/payment_references/show.html.erb +0 -0
- data/app/views/{rails_trade_admin → trade/admin}/payment_strategies/_form.html.erb +0 -0
- data/app/views/{rails_trade_admin → trade/admin}/payment_strategies/edit.html.erb +2 -2
- data/app/views/{rails_trade_admin → trade/admin}/payment_strategies/index.html.erb +2 -2
- data/app/views/{rails_trade_admin → trade/admin}/payment_strategies/new.html.erb +1 -1
- data/app/views/trade/admin/payments/_checked_amount.html.erb +6 -0
- data/app/views/trade/admin/payments/_edit.html.erb +12 -0
- data/app/views/trade/admin/payments/_filter.html.erb +40 -0
- data/app/views/{rails_trade_admin → trade/admin}/payments/_form.html.erb +6 -2
- data/app/views/trade/admin/payments/_item.html.erb +41 -0
- data/app/views/trade/admin/payments/_new.html.erb +12 -0
- data/app/views/{rails_trade_admin → trade/admin}/payments/analyze.js.erb +0 -0
- data/app/views/{rails_trade_admin → trade/admin}/payments/dashboard.html.erb +0 -0
- data/app/views/trade/admin/payments/edit.html.erb +13 -0
- data/app/views/trade/admin/payments/edit.js.erb +3 -0
- data/app/views/trade/admin/payments/index.html.erb +40 -0
- data/app/views/trade/admin/payments/new.html.erb +13 -0
- data/app/views/trade/admin/payments/new.js.erb +3 -0
- data/app/views/{rails_trade_admin → trade/admin}/payments/show.html.erb +0 -0
- data/app/views/trade/admin/promote_buyers/_filter.html.erb +7 -0
- data/app/views/trade/admin/promote_buyers/_form.html.erb +17 -0
- data/app/views/{rails_trade_admin → trade/admin}/promote_buyers/_promote_buyer.json.jbuilder +0 -0
- data/app/views/{rails_trade_admin → trade/admin}/promote_buyers/edit.html.erb +1 -1
- data/app/views/trade/admin/promote_buyers/edit.js.erb +3 -0
- data/app/views/trade/admin/promote_buyers/index.html.erb +52 -0
- data/app/views/{rails_trade_admin → trade/admin}/promote_buyers/index.json.jbuilder +0 -0
- data/app/views/{rails_trade_admin → trade/admin}/promote_buyers/new.html.erb +1 -1
- data/app/views/trade/admin/promote_buyers/new.js.erb +3 -0
- data/app/views/{rails_trade_admin → trade/admin}/promote_buyers/show.html.erb +0 -0
- data/app/views/{rails_trade_admin → trade/admin}/promote_buyers/show.json.jbuilder +0 -0
- data/app/views/trade/admin/promote_charges/_base_price_form.html.erb +1 -0
- data/app/views/trade/admin/promote_charges/_edit.html.erb +13 -0
- data/app/views/trade/admin/promote_charges/_filter.html.erb +11 -0
- data/app/views/trade/admin/promote_charges/_form.html.erb +11 -0
- data/app/views/trade/admin/promote_charges/_new.html.erb +13 -0
- data/app/views/trade/admin/promote_charges/index.html.erb +65 -0
- data/app/views/trade/admin/promote_charges/options.js.erb +4 -0
- data/app/views/trade/admin/promote_goods/_filter.html.erb +8 -0
- data/app/views/trade/admin/promote_goods/_form.html.erb +8 -0
- data/app/views/trade/admin/promote_goods/_goods_options.html.erb +1 -0
- data/app/views/trade/admin/promote_goods/goods.js.erb +2 -0
- data/app/views/trade/admin/promote_goods/index.html.erb +61 -0
- data/app/views/trade/admin/promotes/_edit.html.erb +12 -0
- data/app/views/trade/admin/promotes/_filter.html.erb +9 -0
- data/app/views/trade/admin/promotes/_form.html.erb +12 -0
- data/app/views/trade/admin/promotes/_new.html.erb +12 -0
- data/app/views/trade/admin/promotes/_new_promote_charge.html.erb +10 -0
- data/app/views/trade/admin/promotes/create.js.erb +2 -0
- data/app/views/trade/admin/promotes/index.html.erb +79 -0
- data/app/views/trade/admin/refunds/_filter.html.erb +11 -0
- data/app/views/{rails_trade_admin → trade/admin}/refunds/_form.html.erb +0 -0
- data/app/views/{rails_trade_admin → trade/admin}/refunds/_logs_table.html.erb +0 -0
- data/app/views/{rails_trade_admin → trade/admin}/refunds/_new.html.erb +0 -0
- data/app/views/{rails_trade_admin → trade/admin}/refunds/edit.html.erb +0 -0
- data/app/views/{rails_trade_admin → trade/admin}/refunds/index.html.erb +13 -17
- data/app/views/{rails_trade_admin → trade/admin}/refunds/logs.js.erb +0 -0
- data/app/views/{rails_trade_admin → trade/admin}/refunds/new.html.erb +0 -0
- data/app/views/{rails_trade_admin → trade/admin}/refunds/new.js.erb +0 -0
- data/app/views/{rails_trade_admin → trade/admin}/refunds/show.html.erb +0 -0
- data/app/views/{rails_trade_admin/cart_items → trade/admin/trade_items}/_additions.html.erb +0 -0
- data/app/views/{rails_trade_admin/cart_items → trade/admin/trade_items}/_filter.html.erb +0 -0
- data/app/views/{rails_trade_admin/cart_items → trade/admin/trade_items}/_good_price.html.erb +0 -0
- data/app/views/{rails_trade_admin/cart_items → trade/admin/trade_items}/_order_price.html.erb +0 -0
- data/app/views/{rails_trade_admin/cart_items → trade/admin/trade_items}/_retail_price.html.erb +0 -0
- data/app/views/{rails_trade_admin/cart_items → trade/admin/trade_items}/_single_price.html.erb +0 -0
- data/app/views/{rails_trade_admin/cart_items → trade/admin/trade_items}/_total_price.html.erb +0 -0
- data/app/views/{rails_trade_admin/cart_items → trade/admin/trade_items}/destroy.js.erb +0 -0
- data/app/views/{rails_trade_admin/cart_items → trade/admin/trade_items}/error.html.erb +0 -0
- data/app/views/{rails_trade_admin/cart_items → trade/admin/trade_items}/index.html.erb +3 -3
- data/app/views/{rails_trade_admin/cart_items → trade/admin/trade_items}/only.html.erb +2 -2
- data/app/views/{rails_trade_admin/cart_items → trade/admin/trade_items}/total.js.erb +0 -0
- data/app/views/{rails_trade_admin/cart_items → trade/admin/trade_items}/update.js.erb +0 -0
- data/app/views/trade/admin/trade_promotes/_filter.html.erb +7 -0
- data/app/views/trade/admin/trade_promotes/_form.html.erb +6 -0
- data/app/views/trade/admin/trade_promotes/_show_table.html.erb +20 -0
- data/app/views/trade/admin/trade_promotes/edit.html.erb +9 -0
- data/app/views/trade/admin/trade_promotes/edit.js.erb +3 -0
- data/app/views/trade/admin/trade_promotes/index.html.erb +38 -0
- data/app/views/trade/admin/trade_promotes/new.html.erb +9 -0
- data/app/views/trade/admin/trade_promotes/new.js.erb +3 -0
- data/app/views/trade/admin/trade_promotes/show.html.erb +7 -0
- data/app/views/trade/admin/trade_promotes/show.js.erb +3 -0
- data/app/views/trade/admin/trade_promotes/update.js.erb +1 -0
- data/app/views/{buyers → trade/buyers}/_show.html.erb +0 -0
- data/app/views/{buyers → trade/buyers}/show.js.erb +0 -0
- data/app/views/{goods → trade/goods}/_choose.html.erb +0 -0
- data/app/views/{goods → trade/goods}/_good.html.erb +0 -0
- data/app/views/{goods → trade/goods}/_good_item.html.erb +0 -0
- data/app/views/{goods → trade/goods}/_nav.html.erb +0 -0
- data/app/views/{goods → trade/goods}/_search.html.erb +0 -0
- data/app/views/{goods → trade/goods}/index.html.erb +0 -0
- data/app/views/{goods → trade/goods}/index/_product.html.erb +0 -0
- data/app/views/{goods → trade/goods}/item.html.erb +0 -0
- data/app/views/{goods → trade/goods}/produce.html.erb +0 -0
- data/app/views/trade/goods/show.html.erb +2 -0
- data/app/views/{goods → trade/goods}/show/_basic.html.erb +0 -0
- data/app/views/{goods → trade/goods}/show/_carousel.html.erb +0 -0
- data/app/views/{goods → trade/goods}/show/_items.html.erb +0 -0
- data/app/views/{goods → trade/goods}/show/_sales.html.erb +0 -0
- data/app/views/{goods → trade/goods}/show/_side.html.erb +0 -0
- data/app/views/{goods → trade/goods}/taxon/_breadcrumb.html.erb +0 -0
- data/app/views/{goods → trade/goods}/taxon/_nav.html.erb +0 -0
- data/app/views/{goods → trade/goods}/taxon/_nav_.html.erb +0 -0
- data/app/views/{goods → trade/goods}/taxon/_nav_last.html.erb +0 -0
- data/app/views/trade/my/carts/_filter.html.erb +7 -0
- data/app/views/trade/my/carts/_form.html.erb +8 -0
- data/app/views/trade/my/carts/_show_table.html.erb +28 -0
- data/app/views/trade/my/carts/edit.html.erb +9 -0
- data/app/views/trade/my/carts/edit.js.erb +3 -0
- data/app/views/trade/my/carts/index.html.erb +47 -0
- data/app/views/trade/my/carts/new.html.erb +9 -0
- data/app/views/trade/my/carts/new.js.erb +3 -0
- data/app/views/trade/my/carts/show.html+phone.erb +46 -0
- data/app/views/{rails_trade_admin/promote_goods → trade/my/carts}/show.html.erb +0 -0
- data/app/views/{rails_trade_my → trade/my}/order_items/_form.html.erb +0 -0
- data/app/views/{rails_trade_my → trade/my}/order_items/edit.html.erb +0 -0
- data/app/views/{rails_trade_my → trade/my}/order_items/index.html.erb +1 -1
- data/app/views/{rails_trade_my → trade/my}/order_items/new.html.erb +0 -0
- data/app/views/{rails_trade_my → trade/my}/order_items/show.html.erb +0 -0
- data/app/views/{rails_trade_my → trade/my}/orders/_date_form.html.erb +0 -0
- data/app/views/{rails_trade_my → trade/my}/orders/_edit.html.erb +2 -2
- data/app/views/trade/my/orders/_edit_payment_type.html.erb +12 -0
- data/app/views/{rails_trade_my → trade/my}/orders/_form.html.erb +0 -0
- data/app/views/{rails_trade_my → trade/my}/orders/destroy.js.erb +0 -0
- data/app/views/{rails_trade_my → trade/my}/orders/edit.js.erb +0 -0
- data/app/views/trade/my/orders/edit_payment_type.js.erb +4 -0
- data/app/views/{rails_trade_my → trade/my}/orders/fail.html.erb +0 -0
- data/app/views/trade/my/orders/index.html+phone.erb +37 -0
- data/app/views/trade/my/orders/index.html.erb +36 -0
- data/app/views/{rails_trade_my → trade/my}/orders/index.json.jbuilder +0 -0
- data/app/views/{rails_trade_my → trade/my}/orders/new.html.erb +0 -0
- data/app/views/{rails_trade_my → trade/my}/orders/refresh.js.erb +0 -0
- data/app/views/trade/my/orders/refund.json.jbuilder +12 -0
- data/app/views/trade/my/orders/show.html+phone.erb +3 -0
- data/app/views/{rails_trade_my → trade/my}/orders/show.html.erb +3 -3
- data/app/views/{rails_trade_my → trade/my}/orders/success.html.erb +0 -2
- data/app/views/{rails_trade_my → trade/my}/orders/update.js.erb +1 -1
- data/app/views/trade/my/orders/wait.html+wechat.erb +4 -0
- data/app/views/trade/my/orders/wxpay_pay.js.erb +16 -0
- data/app/views/trade/my/orders/wxpay_pay_err.js.erb +5 -0
- data/app/views/{rails_trade_my → trade/my}/payment_methods/_edit.html.erb +1 -1
- data/app/views/{rails_trade_my → trade/my}/payment_methods/_form.html.erb +0 -0
- data/app/views/{rails_trade_my → trade/my}/payment_methods/_index.html.erb +1 -1
- data/app/views/{rails_trade_my → trade/my}/payment_methods/_item.html.erb +1 -1
- data/app/views/{rails_trade_my → trade/my}/payment_methods/_new.html.erb +3 -3
- data/app/views/{rails_trade_my → trade/my}/payment_methods/create.js.erb +0 -0
- data/app/views/{rails_trade_my/addresses → trade/my/payment_methods}/destroy.js.erb +0 -0
- data/app/views/{rails_trade_my → trade/my}/payment_methods/edit.js.erb +0 -0
- data/app/views/{rails_trade_my → trade/my}/payment_methods/index.html.erb +0 -0
- data/app/views/{rails_trade_my → trade/my}/payment_methods/index.js.erb +0 -0
- data/app/views/{rails_trade_my → trade/my}/payment_methods/new.js.erb +0 -0
- data/app/views/{rails_trade_my → trade/my}/payment_methods/show.html.erb +0 -0
- data/app/views/{rails_trade_my/addresses → trade/my/payment_methods}/update.js.erb +0 -0
- data/app/views/trade/my/trade_items/_additions.html.erb +12 -0
- data/app/views/trade/my/trade_items/_cart_item.js.erb +2 -0
- data/app/views/trade/my/trade_items/_single_price.html.erb +6 -0
- data/app/views/trade/my/trade_items/_total_price.html.erb +8 -0
- data/app/views/trade/my/trade_items/_trade_items.html.erb +68 -0
- data/app/views/trade/my/trade_items/create.html.erb +1 -0
- data/app/views/{rails_trade_my/cart_items → trade/my/trade_items}/destroy.js.erb +0 -0
- data/app/views/trade/my/trade_items/index.json.jbuilder +0 -0
- data/app/views/trade/my/trade_items/update.js.erb +1 -0
- data/app/views/{rails_trade_my → trade/my}/users/_form.html.erb +0 -0
- data/app/views/{rails_trade_my → trade/my}/users/edit.html.erb +0 -0
- data/app/views/{rails_trade_my → trade/my}/users/show.html.erb +0 -0
- data/app/views/trade/payments/_wxpay_result.html.erb +3 -0
- data/app/views/trade/payments/wxpay_result.js.erb +1 -0
- data/config/locales/en.enum.yml +47 -0
- data/config/locales/en.yml +22 -60
- data/config/locales/zh.attributes.yml +75 -0
- data/config/locales/zh.controller.yml +51 -0
- data/config/locales/zh.enum.yml +58 -0
- data/config/locales/zh.help.yml +7 -0
- data/config/routes.rb +45 -59
- data/lib/rails_trade.rb +9 -19
- data/lib/rails_trade/apple_pay.rb +32 -0
- data/lib/rails_trade/config.rb +6 -3
- data/lib/rails_trade/engine.rb +15 -19
- data/lib/rails_trade/version.rb +1 -1
- metadata +475 -422
- data/app/assets/config/rails_trade_manifest.js +0 -1
- data/app/assets/javascripts/controllers/rails_trade_admin/buyers/index.js +0 -15
- data/app/assets/javascripts/controllers/rails_trade_admin/buyers/overdue.js +0 -15
- data/app/assets/javascripts/controllers/rails_trade_admin/payment_methods/edit.js +0 -1
- data/app/assets/javascripts/controllers/rails_trade_admin/payment_methods/index.js +0 -1
- data/app/assets/javascripts/controllers/rails_trade_admin/payment_methods/unverified.js +0 -1
- data/app/assets/javascripts/controllers/rails_trade_admin/promote_goods/index.js +0 -1
- data/app/assets/javascripts/controllers/rails_trade_admin/promotes/edit.js +0 -2
- data/app/assets/javascripts/controllers/rails_trade_admin/promotes/index.js +0 -1
- data/app/assets/javascripts/controllers/rails_trade_admin/promotes/new.js +0 -2
- data/app/assets/javascripts/controllers/rails_trade_admin/serves/edit.js +0 -2
- data/app/assets/javascripts/controllers/rails_trade_admin/serves/index.js +0 -1
- data/app/assets/javascripts/controllers/rails_trade_admin/serves/new.js +0 -4
- data/app/assets/javascripts/controllers/rails_trade_my/cart_items/create.js +0 -3
- data/app/assets/javascripts/controllers/rails_trade_my/cart_items/index.js +0 -65
- data/app/controllers/areas_controller.rb +0 -18
- data/app/controllers/buyers_controller.rb +0 -8
- data/app/controllers/payments_controller.rb +0 -50
- data/app/controllers/providers_controller.rb +0 -8
- data/app/controllers/the_trade_admin/addresses_controller.rb +0 -75
- data/app/controllers/the_trade_admin/areas_controller.rb +0 -50
- data/app/controllers/the_trade_admin/base_controller.rb +0 -5
- data/app/controllers/the_trade_admin/payments_controller.rb +0 -89
- data/app/controllers/the_trade_admin/promote_buyers_controller.rb +0 -39
- data/app/controllers/the_trade_admin/promote_charges_controller.rb +0 -62
- data/app/controllers/the_trade_admin/promote_goods_controller.rb +0 -50
- data/app/controllers/the_trade_admin/promotes_controller.rb +0 -105
- data/app/controllers/the_trade_admin/providers_controller.rb +0 -121
- data/app/controllers/the_trade_admin/serve_charges_controller.rb +0 -67
- data/app/controllers/the_trade_admin/serves_controller.rb +0 -107
- data/app/controllers/the_trade_my/addresses_controller.rb +0 -50
- data/app/controllers/the_trade_my/base_controller.rb +0 -13
- data/app/controllers/the_trade_my/buyers_controller.rb +0 -35
- data/app/controllers/the_trade_my/cart_items_controller.rb +0 -71
- data/app/controllers/the_trade_my/orders_controller.rb +0 -161
- data/app/controllers/the_trade_my/providers_controller.rb +0 -44
- data/app/models/rails_trade/address.rb +0 -14
- data/app/models/rails_trade/area.rb +0 -65
- data/app/models/rails_trade/cart_item.rb +0 -185
- data/app/models/rails_trade/cart_item_serve.rb +0 -16
- data/app/models/rails_trade/concerns/good_able.rb +0 -63
- data/app/models/rails_trade/concerns/order_able.rb +0 -48
- data/app/models/rails_trade/concerns/promote_fee.rb +0 -54
- data/app/models/rails_trade/concerns/serve_fee.rb +0 -41
- data/app/models/rails_trade/concerns/summary_service.rb +0 -67
- data/app/models/rails_trade/concerns/the_payment.rb +0 -88
- data/app/models/rails_trade/concerns/the_trade_buyer.rb +0 -50
- data/app/models/rails_trade/concerns/the_trade_user.rb +0 -23
- data/app/models/rails_trade/good_partner.rb +0 -8
- data/app/models/rails_trade/good_produce.rb +0 -14
- data/app/models/rails_trade/order_item.rb +0 -88
- data/app/models/rails_trade/order_promote.rb +0 -23
- data/app/models/rails_trade/order_serve.rb +0 -23
- data/app/models/rails_trade/order_shipment.rb +0 -10
- data/app/models/rails_trade/payment_interface/payment_interface_base.rb +0 -8
- data/app/models/rails_trade/payment_interface/the_alipay.rb +0 -49
- data/app/models/rails_trade/payment_interface/the_wxpay.rb +0 -56
- data/app/models/rails_trade/payments/alipay_payment.rb +0 -12
- data/app/models/rails_trade/payments/hand_payment.rb +0 -13
- data/app/models/rails_trade/payments/paypal_payment.rb +0 -8
- data/app/models/rails_trade/payments/stripe_payment.rb +0 -7
- data/app/models/rails_trade/produce.rb +0 -18
- data/app/models/rails_trade/promote_charges/single_promote_charge.rb +0 -7
- data/app/models/rails_trade/promote_charges/total_promote_charge.rb +0 -7
- data/app/models/rails_trade/promotes/amount_promote.rb +0 -4
- data/app/models/rails_trade/promotes/number_promote.rb +0 -4
- data/app/models/rails_trade/provider.rb +0 -25
- data/app/models/rails_trade/refunds/bank_refund.rb +0 -5
- data/app/models/rails_trade/refunds/hand_refund.rb +0 -5
- data/app/models/rails_trade/serve.rb +0 -44
- data/app/models/rails_trade/serve_charge.rb +0 -37
- data/app/models/rails_trade/serve_charges/single_serve_charge.rb +0 -7
- data/app/models/rails_trade/serve_charges/total_serve_charge.rb +0 -7
- data/app/models/rails_trade/serve_good.rb +0 -9
- data/app/models/rails_trade/serves/number_serve.rb +0 -4
- data/app/models/rails_trade/serves/quantity_serve.rb +0 -4
- data/app/models/rails_trade/shipment.rb +0 -8
- data/app/views/layouts/rails_trade_admin/base.html.erb +0 -25
- data/app/views/layouts/rails_trade_my/base.html.erb +0 -28
- data/app/views/rails_trade_admin/addresses/_address.html.erb +0 -24
- data/app/views/rails_trade_admin/addresses/_edit.html.erb +0 -13
- data/app/views/rails_trade_admin/addresses/_form.html.erb +0 -23
- data/app/views/rails_trade_admin/addresses/_new.html.erb +0 -13
- data/app/views/rails_trade_admin/addresses/create.js.erb +0 -2
- data/app/views/rails_trade_admin/addresses/destroy.js.erb +0 -1
- data/app/views/rails_trade_admin/addresses/edit.js.erb +0 -39
- data/app/views/rails_trade_admin/addresses/index.html.erb +0 -41
- data/app/views/rails_trade_admin/addresses/new.js.erb +0 -52
- data/app/views/rails_trade_admin/addresses/show.html.erb +0 -4
- data/app/views/rails_trade_admin/addresses/update.js.erb +0 -2
- data/app/views/rails_trade_admin/areas/_form.html.erb +0 -9
- data/app/views/rails_trade_admin/areas/edit.html.erb +0 -16
- data/app/views/rails_trade_admin/areas/index.html.erb +0 -43
- data/app/views/rails_trade_admin/areas/new.html.erb +0 -11
- data/app/views/rails_trade_admin/areas/show.html.erb +0 -1
- data/app/views/rails_trade_admin/base/_nav.html.erb +0 -24
- data/app/views/rails_trade_admin/base/_nav_bar.html.erb +0 -23
- data/app/views/rails_trade_admin/base/_nav_payment.html.erb +0 -25
- data/app/views/rails_trade_admin/goods/_form.html.erb +0 -7
- data/app/views/rails_trade_admin/orders/_filter.html.erb +0 -20
- data/app/views/rails_trade_admin/orders/_form.html.erb +0 -17
- data/app/views/rails_trade_admin/orders/_search_form.html.erb +0 -7
- data/app/views/rails_trade_admin/orders/index.html.erb +0 -61
- data/app/views/rails_trade_admin/orders/show.html.erb +0 -89
- data/app/views/rails_trade_admin/payment_methods/create.js.erb +0 -2
- data/app/views/rails_trade_admin/payment_orders/_new.html.erb +0 -24
- data/app/views/rails_trade_admin/payments/_item.html.erb +0 -49
- data/app/views/rails_trade_admin/payments/_search_form.html.erb +0 -15
- data/app/views/rails_trade_admin/payments/edit.html.erb +0 -15
- data/app/views/rails_trade_admin/payments/index.html.erb +0 -60
- data/app/views/rails_trade_admin/payments/new.html.erb +0 -17
- data/app/views/rails_trade_admin/promote_buyers/_form.html.erb +0 -6
- data/app/views/rails_trade_admin/promote_buyers/index.html.erb +0 -42
- data/app/views/rails_trade_admin/promote_charges/_edit.html.erb +0 -13
- data/app/views/rails_trade_admin/promote_charges/_form.html.erb +0 -6
- data/app/views/rails_trade_admin/promote_charges/_new.html.erb +0 -13
- data/app/views/rails_trade_admin/promote_charges/_search_form.html.erb +0 -9
- data/app/views/rails_trade_admin/promote_charges/edit.js.erb +0 -8
- data/app/views/rails_trade_admin/promote_charges/index.html.erb +0 -49
- data/app/views/rails_trade_admin/promote_charges/new.js.erb +0 -8
- data/app/views/rails_trade_admin/promote_goods/_form.html.erb +0 -4
- data/app/views/rails_trade_admin/promote_goods/_promote_good.json.jbuilder +0 -2
- data/app/views/rails_trade_admin/promote_goods/edit.html.erb +0 -14
- data/app/views/rails_trade_admin/promote_goods/index.html.erb +0 -37
- data/app/views/rails_trade_admin/promote_goods/index.json.jbuilder +0 -1
- data/app/views/rails_trade_admin/promote_goods/new.html.erb +0 -13
- data/app/views/rails_trade_admin/promote_goods/show.json.jbuilder +0 -1
- data/app/views/rails_trade_admin/promotes/_form.html.erb +0 -9
- data/app/views/rails_trade_admin/promotes/edit.html.erb +0 -9
- data/app/views/rails_trade_admin/promotes/index.html.erb +0 -65
- data/app/views/rails_trade_admin/promotes/new.html.erb +0 -9
- data/app/views/rails_trade_admin/promotes/show.html.erb +0 -4
- data/app/views/rails_trade_admin/providers/_form.html.erb +0 -6
- data/app/views/rails_trade_admin/providers/_product.html.erb +0 -12
- data/app/views/rails_trade_admin/providers/_side.html.erb +0 -8
- data/app/views/rails_trade_admin/providers/area.html.erb +0 -1
- data/app/views/rails_trade_admin/providers/channel.html.erb +0 -46
- data/app/views/rails_trade_admin/providers/edit.html.erb +0 -16
- data/app/views/rails_trade_admin/providers/index.html.erb +0 -27
- data/app/views/rails_trade_admin/providers/new.html.erb +0 -21
- data/app/views/rails_trade_admin/providers/posts.html.erb +0 -41
- data/app/views/rails_trade_admin/providers/products.html.erb +0 -23
- data/app/views/rails_trade_admin/providers/show.html.erb +0 -60
- data/app/views/rails_trade_admin/refunds/_search_form.html.erb +0 -13
- data/app/views/rails_trade_admin/serve_charges/_edit.html.erb +0 -13
- data/app/views/rails_trade_admin/serve_charges/_form.html.erb +0 -10
- data/app/views/rails_trade_admin/serve_charges/_new.html.erb +0 -13
- data/app/views/rails_trade_admin/serve_charges/_search_form.html.erb +0 -10
- data/app/views/rails_trade_admin/serve_charges/edit.js.erb +0 -7
- data/app/views/rails_trade_admin/serve_charges/index.html.erb +0 -56
- data/app/views/rails_trade_admin/serve_charges/new.js.erb +0 -8
- data/app/views/rails_trade_admin/serves/_form.html.erb +0 -9
- data/app/views/rails_trade_admin/serves/edit.html.erb +0 -9
- data/app/views/rails_trade_admin/serves/index.html.erb +0 -80
- data/app/views/rails_trade_admin/serves/new.html.erb +0 -9
- data/app/views/rails_trade_my/addresses/_edit.html.erb +0 -31
- data/app/views/rails_trade_my/addresses/_form.html.erb +0 -23
- data/app/views/rails_trade_my/addresses/_new.html.erb +0 -11
- data/app/views/rails_trade_my/addresses/create.js.erb +0 -2
- data/app/views/rails_trade_my/addresses/edit.js.erb +0 -39
- data/app/views/rails_trade_my/addresses/index.html.erb +0 -44
- data/app/views/rails_trade_my/addresses/new.js.erb +0 -39
- data/app/views/rails_trade_my/addresses/show.html.erb +0 -4
- data/app/views/rails_trade_my/base/_nav.html.erb +0 -22
- data/app/views/rails_trade_my/buyers/_form.html.erb +0 -5
- data/app/views/rails_trade_my/buyers/edit.html.erb +0 -2
- data/app/views/rails_trade_my/buyers/show.html.erb +0 -21
- data/app/views/rails_trade_my/cart_items/_additions.html.erb +0 -22
- data/app/views/rails_trade_my/cart_items/_single_price.html.erb +0 -6
- data/app/views/rails_trade_my/cart_items/_total_price.html.erb +0 -8
- data/app/views/rails_trade_my/cart_items/index.html.erb +0 -69
- data/app/views/rails_trade_my/cart_items/total.js.erb +0 -11
- data/app/views/rails_trade_my/cart_items/update.js.erb +0 -8
- data/app/views/rails_trade_my/my/index.html.erb +0 -17
- data/app/views/rails_trade_my/orders/_edit_payment_type.html.erb +0 -13
- data/app/views/rails_trade_my/orders/edit_payment_type.js.erb +0 -6
- data/app/views/rails_trade_my/orders/index.html.erb +0 -55
- data/app/views/rails_trade_my/orders/update_payment_type.js.erb +0 -3
- data/app/views/rails_trade_my/orders/wxpay_pay.js.erb +0 -16
- data/app/views/rails_trade_my/orders/wxpay_pay_err.js.erb +0 -5
- data/app/views/rails_trade_my/payment_methods/destroy.js.erb +0 -1
- data/app/views/rails_trade_my/payment_methods/update.js.erb +0 -2
- data/app/views/rails_trade_my/providers/_form.html.erb +0 -5
- data/app/views/rails_trade_my/providers/_provider.html.erb +0 -20
- data/app/views/rails_trade_my/providers/edit.html.erb +0 -2
- data/app/views/rails_trade_my/providers/index.html.erb +0 -12
- data/app/views/rails_trade_my/providers/new.html.erb +0 -10
- data/app/views/rails_trade_my/providers/show.html.erb +0 -13
- data/config/locales/zh.yml +0 -75
- data/db/migrate/20150514135720_create_providers.rb +0 -59
- data/db/migrate/20170601014520_create_payments.rb +0 -52
- data/db/migrate/20170602061859_create_payment_references.rb +0 -12
- data/db/migrate/20170702234123_create_orders.rb +0 -56
- data/db/migrate/20170714080032_create_payment_strategies.rb +0 -77
- data/db/migrate/20171115063702_create_promote_buyers.rb +0 -31
- data/db/schema.rb +0 -94
- data/lib/tasks/the_trade_tasks.rake +0 -4
@@ -0,0 +1,58 @@
|
|
1
|
+
zh:
|
2
|
+
activerecord:
|
3
|
+
enum:
|
4
|
+
order:
|
5
|
+
payment_status:
|
6
|
+
unpaid: 未支付
|
7
|
+
part_paid: 部分支付
|
8
|
+
all_paid: 已支付
|
9
|
+
refunding: 退款中
|
10
|
+
refunded: 已退款
|
11
|
+
denied: 退款失败
|
12
|
+
payment:
|
13
|
+
type:
|
14
|
+
HandPayment: 后台支付
|
15
|
+
BankPayment: 银行支付
|
16
|
+
PaypalPayment: Paypal
|
17
|
+
state:
|
18
|
+
init: 未核销
|
19
|
+
part_checked: 部分核销
|
20
|
+
all_checked: 全部核销
|
21
|
+
adjust_checked: 调整核销
|
22
|
+
abusive_checked: 问题核销
|
23
|
+
payment_order:
|
24
|
+
state:
|
25
|
+
init: 待确认
|
26
|
+
confirmed: 已确认
|
27
|
+
promote:
|
28
|
+
scope:
|
29
|
+
overall: 全体商品
|
30
|
+
single: 单个商品
|
31
|
+
metering:
|
32
|
+
number: 购买件数
|
33
|
+
amount: 总金额
|
34
|
+
weight: 总重量
|
35
|
+
volume: 体积
|
36
|
+
trade_promote:
|
37
|
+
scope:
|
38
|
+
overall: 全体商品
|
39
|
+
single: 单个商品
|
40
|
+
promote_charge:
|
41
|
+
type:
|
42
|
+
DiscountPromoteCharge: 折扣
|
43
|
+
FinalPromoteCharge: 一口价
|
44
|
+
MinusPromoteCharge: 满减
|
45
|
+
CashPromoteCharge: 抵扣券
|
46
|
+
PlusPromoteCharge: 附加费用
|
47
|
+
promote_good:
|
48
|
+
status:
|
49
|
+
default: 默认生效
|
50
|
+
available: 适用
|
51
|
+
unavailable: 不适用
|
52
|
+
specific: 特定的
|
53
|
+
promote_buyer:
|
54
|
+
state:
|
55
|
+
unused: 未使用
|
56
|
+
used: 已使用
|
57
|
+
expired: 已过期
|
58
|
+
|
data/config/routes.rb
CHANGED
@@ -1,19 +1,30 @@
|
|
1
1
|
Rails.application.routes.draw do
|
2
2
|
|
3
|
-
scope
|
3
|
+
scope module: 'trade' do
|
4
|
+
resources :payments, only: [:index] do
|
5
|
+
get :result, on: :collection
|
6
|
+
match :notify, on: :collection, via: [:get, :post]
|
7
|
+
match :alipay_notify, on: :collection, via: [:get, :post]
|
8
|
+
match :wxpay_notify, on: :collection, via: [:get, :post]
|
9
|
+
end
|
10
|
+
resources :buyers, only: [] do
|
11
|
+
get :search, on: :collection
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
scope :admin, module: 'trade/admin', as: 'admin' do
|
4
16
|
get 'trade' => 'trade#index'
|
5
|
-
|
6
|
-
resources :areas
|
17
|
+
|
7
18
|
resources :buyers do
|
8
19
|
get :overdue, on: :collection
|
9
20
|
get :orders, on: :member
|
10
21
|
put :remind, on: :collection
|
11
22
|
end
|
12
|
-
resources :
|
23
|
+
resources :carts, except: [:new] do
|
13
24
|
get :total, on: :collection
|
14
25
|
get :doc, on: :collection
|
15
26
|
get :only, on: :collection
|
16
|
-
resources :
|
27
|
+
resources :cart_serves do
|
17
28
|
get :single, on: :collection
|
18
29
|
get :total, on: :collection
|
19
30
|
post :add, on: :collection
|
@@ -25,7 +36,8 @@ Rails.application.routes.draw do
|
|
25
36
|
patch :refund, on: :member
|
26
37
|
resources :order_payments
|
27
38
|
end
|
28
|
-
resources :
|
39
|
+
resources :trade_items
|
40
|
+
resources :trade_promotes
|
29
41
|
resources :payments do
|
30
42
|
resources :payment_orders do
|
31
43
|
patch :cancel, on: :member
|
@@ -45,74 +57,48 @@ Rails.application.routes.draw do
|
|
45
57
|
resources :produces
|
46
58
|
resources :promotes do
|
47
59
|
get :search, on: :collection
|
48
|
-
patch :toggle, on: :member
|
49
|
-
patch :overall, on: :member
|
50
|
-
patch :contain, on: :member
|
51
60
|
resources :promote_charges, as: 'charges'
|
52
61
|
end
|
62
|
+
resources :promote_charges, only: [] do
|
63
|
+
get :options, on: :collection
|
64
|
+
end
|
53
65
|
resources :promote_buyers
|
54
|
-
resources :promote_goods
|
55
|
-
|
56
|
-
|
66
|
+
resources :promote_goods do
|
67
|
+
get :goods, on: :collection
|
68
|
+
end
|
57
69
|
resources :refunds do
|
58
70
|
patch :confirm, on: :member
|
59
71
|
patch :deny, on: :member
|
60
72
|
end
|
61
|
-
resources :serves do
|
62
|
-
get :search, on: :collection
|
63
|
-
patch :toggle, on: :member
|
64
|
-
patch :overall, on: :member
|
65
|
-
patch :contain, on: :member
|
66
|
-
patch :default, on: :member
|
67
|
-
resources :serve_charges, as: 'charges'
|
68
|
-
end
|
69
73
|
end
|
70
74
|
|
71
|
-
scope :my,
|
72
|
-
resource :
|
73
|
-
|
74
|
-
|
75
|
-
resources :addresses
|
76
|
-
resources :buyers
|
77
|
-
resources :cart_items do
|
78
|
-
get :total, on: :collection
|
75
|
+
scope :my, module: 'trade/my', as: 'my' do
|
76
|
+
resource :cart, only: [:show, :edit, :update] do
|
77
|
+
get :total, on: :member
|
79
78
|
end
|
79
|
+
resources :trade_items
|
80
80
|
resources :good_providers
|
81
81
|
resources :orders do
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
82
|
+
collection do
|
83
|
+
post :direct
|
84
|
+
get :refresh
|
85
|
+
end
|
86
|
+
member do
|
87
|
+
get :paypal_pay
|
88
|
+
get :alipay_pay
|
89
|
+
get :wxpay_pay
|
90
|
+
patch :stripe_pay
|
91
|
+
get :paypal_execute
|
92
|
+
get :pay
|
93
|
+
get 'payment_type' => :edit_payment_type
|
94
|
+
get 'cancel' => :edit_cancel
|
95
|
+
put 'cancel' => :update_cancel
|
96
|
+
put :refund
|
97
|
+
get :wait
|
98
|
+
end
|
97
99
|
end
|
98
100
|
resources :order_items
|
99
101
|
resources :payment_methods
|
100
102
|
end
|
101
103
|
|
102
|
-
resources :areas, only: [] do
|
103
|
-
get :search, on: :collection
|
104
|
-
end
|
105
|
-
resources :payments, only: [:index] do
|
106
|
-
get :result, on: :collection
|
107
|
-
match :notify, on: :collection, via: [:get, :post]
|
108
|
-
match :alipay_notify, on: :collection, via: [:get, :post]
|
109
|
-
match :wxpay_notify, on: :collection, via: [:get, :post]
|
110
|
-
end
|
111
|
-
resources :providers, only: [] do
|
112
|
-
get :search, on: :collection
|
113
|
-
end
|
114
|
-
resources :buyers, only: [] do
|
115
|
-
get :search, on: :collection
|
116
|
-
end
|
117
|
-
|
118
104
|
end
|
data/lib/rails_trade.rb
CHANGED
@@ -1,22 +1,12 @@
|
|
1
|
-
|
2
|
-
require 'rails_trade/config'
|
1
|
+
# frozen_string_literal: true
|
3
2
|
|
4
|
-
|
3
|
+
require 'rails_com'
|
4
|
+
require 'rails_auth'
|
5
|
+
require 'rails_role'
|
6
|
+
require 'rails_data'
|
7
|
+
require 'rails_audit'
|
5
8
|
|
6
|
-
|
7
|
-
|
8
|
-
end
|
9
|
+
require_relative 'rails_trade/engine'
|
10
|
+
require_relative 'rails_trade/config'
|
9
11
|
|
10
|
-
|
11
|
-
if @buyer_class&.name == buyer.name
|
12
|
-
return
|
13
|
-
elsif buyer.ancestors.include?(ActiveRecord::Base)
|
14
|
-
@buyer_class = buyer
|
15
|
-
elsif buyer.is_a?(Class)
|
16
|
-
raise 'You can not include RailsTradeBuyer more than once'
|
17
|
-
else
|
18
|
-
raise 'You must assign an ActiveRecord class'
|
19
|
-
end
|
20
|
-
end
|
21
|
-
|
22
|
-
end
|
12
|
+
require_relative 'rails_trade/apple_pay'
|
@@ -0,0 +1,32 @@
|
|
1
|
+
require 'httpx'
|
2
|
+
module ApplePay
|
3
|
+
URL = 'https://buy.itunes.apple.com/verifyReceipt'
|
4
|
+
SANDBOX_URL = 'https://sandbox.itunes.apple.com/verifyReceipt'
|
5
|
+
extend self
|
6
|
+
|
7
|
+
def detect_verify(receipt_data)
|
8
|
+
r = verify(receipt_data)
|
9
|
+
|
10
|
+
if r['status'] == 21007
|
11
|
+
verify(receipt_data, true)
|
12
|
+
else
|
13
|
+
r
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
def verify(receipt_data, sandbox = false)
|
18
|
+
if sandbox
|
19
|
+
url = SANDBOX_URL
|
20
|
+
else
|
21
|
+
url = URL
|
22
|
+
end
|
23
|
+
|
24
|
+
body = {
|
25
|
+
'receipt-data': receipt_data
|
26
|
+
}
|
27
|
+
|
28
|
+
r = HTTPX.post(url, form: body)
|
29
|
+
JSON.parse(r.body)
|
30
|
+
end
|
31
|
+
|
32
|
+
end
|
data/lib/rails_trade/config.rb
CHANGED
@@ -4,9 +4,12 @@ module RailsTrade
|
|
4
4
|
include ActiveSupport::Configurable
|
5
5
|
|
6
6
|
configure do |config|
|
7
|
-
config.
|
8
|
-
config.
|
7
|
+
config.admin_controller = 'AdminController'
|
8
|
+
config.my_controller = 'MyController'
|
9
|
+
config.default_currency = 'CNY'
|
9
10
|
config.disabled_models = []
|
11
|
+
|
12
|
+
config.expire_after = 2.hour
|
10
13
|
end
|
11
14
|
|
12
|
-
end
|
15
|
+
end
|
data/lib/rails_trade/engine.rb
CHANGED
@@ -1,29 +1,25 @@
|
|
1
1
|
require 'monetize'
|
2
|
+
require 'rails_com'
|
2
3
|
module RailsTrade
|
3
4
|
class Engine < ::Rails::Engine
|
4
5
|
|
5
6
|
config.autoload_paths += Dir[
|
6
|
-
"#{config.root}/app/models/
|
7
|
+
"#{config.root}/app/models/payment",
|
8
|
+
"#{config.root}/app/models/payment_method",
|
9
|
+
"#{config.root}/app/models/promote",
|
10
|
+
"#{config.root}/app/models/promote_charge",
|
11
|
+
"#{config.root}/app/models/refund"
|
7
12
|
]
|
8
13
|
|
9
|
-
config.
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
"#{config.root}/app/models/rails_trade/serve_charges"
|
19
|
-
]
|
20
|
-
|
21
|
-
initializer 'rails_trade.assets.precompile' do |app|
|
22
|
-
app.config.assets.precompile += ['rails_trade_manifest.js']
|
23
|
-
end
|
24
|
-
|
25
|
-
ActiveSupport::Inflector.inflections(:en) do |inflect|
|
26
|
-
inflect.irregular 'serve', 'serves'
|
14
|
+
config.generators do |g|
|
15
|
+
g.rails = {
|
16
|
+
helper: false
|
17
|
+
}
|
18
|
+
g.test_unit = {
|
19
|
+
fixture: true,
|
20
|
+
fixture_replacement: :factory_girl
|
21
|
+
}
|
22
|
+
g.templates.unshift File.expand_path('lib/templates', RailsCom::Engine.root)
|
27
23
|
end
|
28
24
|
|
29
25
|
end
|
data/lib/rails_trade/version.rb
CHANGED
metadata
CHANGED
@@ -1,30 +1,100 @@
|
|
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.2
|
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: 2020-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: rails_com
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '1.2'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
27
|
-
|
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
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: money-rails
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '1.12'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '1.12'
|
97
|
+
description: trade, payment
|
28
98
|
email:
|
29
99
|
- mingyuan0715@foxmail.com
|
30
100
|
executables: []
|
@@ -34,437 +104,421 @@ files:
|
|
34
104
|
- LICENSE
|
35
105
|
- README.md
|
36
106
|
- Rakefile
|
37
|
-
- app/assets/
|
38
|
-
- app/assets/javascripts/controllers/
|
39
|
-
- app/assets/javascripts/controllers/
|
40
|
-
- app/assets/javascripts/controllers/
|
41
|
-
- app/assets/javascripts/controllers/
|
42
|
-
- app/assets/javascripts/controllers/
|
43
|
-
- app/assets/javascripts/controllers/
|
44
|
-
- app/assets/javascripts/controllers/
|
45
|
-
- app/assets/javascripts/controllers/
|
46
|
-
- app/assets/javascripts/controllers/
|
47
|
-
- app/assets/javascripts/controllers/
|
48
|
-
- app/assets/javascripts/controllers/
|
49
|
-
- app/assets/javascripts/controllers/
|
50
|
-
- app/assets/javascripts/controllers/
|
51
|
-
- app/assets/javascripts/controllers/
|
52
|
-
- app/assets/javascripts/controllers/
|
53
|
-
- app/assets/javascripts/controllers/
|
54
|
-
- app/assets/javascripts/controllers/
|
55
|
-
- app/assets/javascripts/controllers/
|
56
|
-
- app/assets/javascripts/controllers/
|
57
|
-
- app/assets/javascripts/controllers/
|
58
|
-
- app/assets/javascripts/controllers/
|
59
|
-
- app/assets/
|
60
|
-
- app/assets/
|
61
|
-
- app/controllers/
|
62
|
-
- app/controllers/
|
107
|
+
- app/assets/javascripts/controllers/trade/admin/cart_items/create.js
|
108
|
+
- app/assets/javascripts/controllers/trade/admin/cart_items/index.js
|
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
|
63
134
|
- app/controllers/concerns/controller_order_types.rb
|
64
|
-
- app/controllers/
|
65
|
-
- app/controllers/
|
66
|
-
- app/controllers/
|
67
|
-
- app/controllers/
|
68
|
-
- app/controllers/
|
69
|
-
- app/controllers/
|
70
|
-
- app/controllers/
|
71
|
-
- app/controllers/
|
72
|
-
- app/controllers/
|
73
|
-
- app/controllers/
|
74
|
-
- app/controllers/
|
75
|
-
- app/controllers/
|
76
|
-
- app/controllers/
|
77
|
-
- app/controllers/
|
78
|
-
- app/controllers/
|
79
|
-
- app/controllers/
|
80
|
-
- app/controllers/
|
81
|
-
- app/controllers/
|
82
|
-
- app/controllers/
|
83
|
-
- app/controllers/
|
84
|
-
- app/controllers/
|
85
|
-
- app/controllers/
|
86
|
-
- app/controllers/
|
87
|
-
- app/controllers/
|
88
|
-
- app/controllers/
|
89
|
-
- app/controllers/
|
90
|
-
- app/controllers/
|
91
|
-
- app/controllers/
|
92
|
-
- app/
|
93
|
-
- app/
|
94
|
-
- app/
|
95
|
-
- app/
|
96
|
-
- app/
|
97
|
-
- app/models/
|
98
|
-
- app/models/
|
99
|
-
- app/models/
|
100
|
-
- app/models/
|
101
|
-
- app/models/
|
102
|
-
- app/models/
|
103
|
-
- app/models/
|
104
|
-
- app/models/
|
105
|
-
- app/models/
|
106
|
-
- app/models/
|
107
|
-
- app/models/
|
108
|
-
- app/models/
|
109
|
-
- app/models/
|
110
|
-
- app/models/
|
111
|
-
- app/models/
|
135
|
+
- app/controllers/rails_trade/my_cart.rb
|
136
|
+
- app/controllers/trade/admin/base_controller.rb
|
137
|
+
- app/controllers/trade/admin/buyers_controller.rb
|
138
|
+
- app/controllers/trade/admin/cart_serves_controller.rb
|
139
|
+
- app/controllers/trade/admin/goods_controller.rb
|
140
|
+
- app/controllers/trade/admin/order_payments_controller.rb
|
141
|
+
- app/controllers/trade/admin/orders_controller.rb
|
142
|
+
- app/controllers/trade/admin/payment_methods_controller.rb
|
143
|
+
- app/controllers/trade/admin/payment_orders_controller.rb
|
144
|
+
- app/controllers/trade/admin/payment_references_controller.rb
|
145
|
+
- app/controllers/trade/admin/payment_strategies_controller.rb
|
146
|
+
- app/controllers/trade/admin/payments_controller.rb
|
147
|
+
- app/controllers/trade/admin/produces_controller.rb
|
148
|
+
- app/controllers/trade/admin/promote_buyers_controller.rb
|
149
|
+
- app/controllers/trade/admin/promote_charges_controller.rb
|
150
|
+
- app/controllers/trade/admin/promote_goods_controller.rb
|
151
|
+
- app/controllers/trade/admin/promotes_controller.rb
|
152
|
+
- app/controllers/trade/admin/refunds_controller.rb
|
153
|
+
- app/controllers/trade/admin/trade_items_controller.rb
|
154
|
+
- app/controllers/trade/admin/trade_promotes_controller.rb
|
155
|
+
- app/controllers/trade/buyers_controller.rb
|
156
|
+
- app/controllers/trade/my/base_controller.rb
|
157
|
+
- app/controllers/trade/my/carts_controller.rb
|
158
|
+
- app/controllers/trade/my/order_items_controller.rb
|
159
|
+
- app/controllers/trade/my/orders_controller.rb
|
160
|
+
- app/controllers/trade/my/payment_methods_controller.rb
|
161
|
+
- app/controllers/trade/my/trade_items_controller.rb
|
162
|
+
- app/controllers/trade/payments_controller.rb
|
163
|
+
- app/models/cart.rb
|
164
|
+
- app/models/order.rb
|
165
|
+
- app/models/payment.rb
|
166
|
+
- app/models/payment/alipay_payment.rb
|
167
|
+
- app/models/payment/apple_payment.rb
|
168
|
+
- app/models/payment/bank_payment.rb
|
169
|
+
- app/models/payment/hand_payment.rb
|
170
|
+
- app/models/payment/paypal_payment.rb
|
171
|
+
- app/models/payment/stripe_payment.rb
|
172
|
+
- app/models/payment/wxpay_payment.rb
|
173
|
+
- app/models/payment_method.rb
|
174
|
+
- app/models/payment_method/alipay_method.rb
|
175
|
+
- app/models/payment_method/bank_method.rb
|
176
|
+
- app/models/payment_method/stripe_method.rb
|
177
|
+
- app/models/payment_order.rb
|
178
|
+
- app/models/payment_reference.rb
|
179
|
+
- app/models/payment_strategy.rb
|
180
|
+
- app/models/payment_type.rb
|
181
|
+
- app/models/promote.rb
|
182
|
+
- app/models/promote_buyer.rb
|
183
|
+
- app/models/promote_charge.rb
|
184
|
+
- app/models/promote_charge/cash_promote_charge.rb
|
185
|
+
- app/models/promote_charge/discount_promote_charge.rb
|
186
|
+
- app/models/promote_charge/final_promote_charge.rb
|
187
|
+
- app/models/promote_charge/minus_promote_charge.rb
|
188
|
+
- app/models/promote_charge/plus_promote_charge.rb
|
189
|
+
- app/models/promote_extra.rb
|
190
|
+
- app/models/promote_good.rb
|
191
|
+
- app/models/rails_trade/amount.rb
|
192
|
+
- app/models/rails_trade/buyer.rb
|
193
|
+
- app/models/rails_trade/cart.rb
|
194
|
+
- app/models/rails_trade/good.rb
|
112
195
|
- app/models/rails_trade/order.rb
|
113
|
-
- app/models/rails_trade/
|
114
|
-
- app/models/rails_trade/
|
115
|
-
- app/models/rails_trade/order_serve.rb
|
116
|
-
- app/models/rails_trade/order_shipment.rb
|
196
|
+
- app/models/rails_trade/ordering/payment.rb
|
197
|
+
- app/models/rails_trade/ordering/refund.rb
|
117
198
|
- app/models/rails_trade/payment.rb
|
118
|
-
- app/models/rails_trade/
|
119
|
-
- app/models/rails_trade/
|
120
|
-
- app/models/rails_trade/
|
121
|
-
- app/models/rails_trade/
|
122
|
-
- app/models/rails_trade/
|
199
|
+
- app/models/rails_trade/payment/alipay_payment.rb
|
200
|
+
- app/models/rails_trade/payment/apple_payment.rb
|
201
|
+
- app/models/rails_trade/payment/bank_payment.rb
|
202
|
+
- app/models/rails_trade/payment/hand_payment.rb
|
203
|
+
- app/models/rails_trade/payment/paypal_payment.rb
|
204
|
+
- app/models/rails_trade/payment/stripe_payment.rb
|
205
|
+
- app/models/rails_trade/payment/wxpay_payment.rb
|
123
206
|
- app/models/rails_trade/payment_method.rb
|
124
|
-
- app/models/rails_trade/
|
125
|
-
- app/models/rails_trade/payment_methods/bank_method.rb
|
126
|
-
- app/models/rails_trade/payment_methods/stripe_method.rb
|
207
|
+
- app/models/rails_trade/payment_method/stripe_method.rb
|
127
208
|
- app/models/rails_trade/payment_order.rb
|
128
209
|
- app/models/rails_trade/payment_reference.rb
|
129
210
|
- app/models/rails_trade/payment_strategy.rb
|
130
|
-
- app/models/rails_trade/
|
131
|
-
- app/models/rails_trade/
|
132
|
-
- app/models/rails_trade/
|
133
|
-
- app/models/rails_trade/
|
134
|
-
- app/models/rails_trade/
|
135
|
-
- app/models/rails_trade/payments/wxpay_payment.rb
|
136
|
-
- app/models/rails_trade/produce.rb
|
211
|
+
- app/models/rails_trade/payment_type/alipay.rb
|
212
|
+
- app/models/rails_trade/payment_type/apple_pay.rb
|
213
|
+
- app/models/rails_trade/payment_type/paypal.rb
|
214
|
+
- app/models/rails_trade/payment_type/stripe.rb
|
215
|
+
- app/models/rails_trade/payment_type/wxpay.rb
|
137
216
|
- app/models/rails_trade/promote.rb
|
138
217
|
- app/models/rails_trade/promote_buyer.rb
|
139
218
|
- app/models/rails_trade/promote_charge.rb
|
140
|
-
- app/models/rails_trade/
|
141
|
-
- app/models/rails_trade/
|
219
|
+
- app/models/rails_trade/promote_charge/cash_promote_charge.rb
|
220
|
+
- app/models/rails_trade/promote_charge/discount_promote_charge.rb
|
221
|
+
- app/models/rails_trade/promote_charge/final_promote_charge.rb
|
222
|
+
- app/models/rails_trade/promote_charge/minus_promote_charge.rb
|
223
|
+
- app/models/rails_trade/promote_charge/plus_promote_charge.rb
|
224
|
+
- app/models/rails_trade/promote_extra.rb
|
142
225
|
- app/models/rails_trade/promote_good.rb
|
143
|
-
- app/models/rails_trade/promotes/amount_promote.rb
|
144
|
-
- app/models/rails_trade/promotes/number_promote.rb
|
145
|
-
- app/models/rails_trade/provider.rb
|
146
226
|
- app/models/rails_trade/refund.rb
|
147
|
-
- app/models/rails_trade/
|
148
|
-
- app/models/rails_trade/
|
149
|
-
- app/models/rails_trade/
|
150
|
-
- app/models/rails_trade/
|
151
|
-
- app/models/rails_trade/
|
152
|
-
- app/models/rails_trade/
|
153
|
-
- app/models/rails_trade/
|
154
|
-
- app/models/rails_trade/
|
155
|
-
- app/models/rails_trade/
|
156
|
-
- app/models/rails_trade/
|
157
|
-
- app/models/
|
158
|
-
- app/models/
|
159
|
-
- app/models/
|
160
|
-
- app/models/
|
161
|
-
- app/
|
162
|
-
- app/
|
163
|
-
- app/
|
164
|
-
- app/
|
165
|
-
- app/
|
166
|
-
- app/views/
|
167
|
-
- app/views/
|
168
|
-
- app/views/
|
169
|
-
- app/views/
|
170
|
-
- app/views/
|
171
|
-
- app/views/
|
172
|
-
- app/views/
|
173
|
-
- app/views/
|
174
|
-
- app/views/
|
175
|
-
- app/views/
|
176
|
-
- app/views/
|
177
|
-
- app/views/
|
178
|
-
- app/views/
|
179
|
-
- app/views/
|
180
|
-
- app/views/
|
181
|
-
- app/views/
|
182
|
-
- app/views/
|
183
|
-
- app/views/
|
184
|
-
- app/views/
|
185
|
-
- app/views/
|
186
|
-
- app/views/
|
187
|
-
- app/views/
|
188
|
-
- app/views/
|
189
|
-
- app/views/
|
190
|
-
- app/views/
|
191
|
-
- app/views/
|
192
|
-
- app/views/
|
193
|
-
- app/views/
|
194
|
-
- app/views/
|
195
|
-
- app/views/
|
196
|
-
- app/views/
|
197
|
-
- app/views/
|
198
|
-
- app/views/
|
199
|
-
- app/views/
|
200
|
-
- app/views/
|
201
|
-
- app/views/
|
202
|
-
- app/views/
|
203
|
-
- app/views/
|
204
|
-
- app/views/
|
205
|
-
- app/views/
|
206
|
-
- app/views/
|
207
|
-
- app/views/
|
208
|
-
- app/views/
|
209
|
-
- app/views/
|
210
|
-
- app/views/
|
211
|
-
- app/views/
|
212
|
-
- app/views/
|
213
|
-
- app/views/
|
214
|
-
- app/views/
|
215
|
-
- app/views/
|
216
|
-
- app/views/
|
217
|
-
- app/views/
|
218
|
-
- app/views/
|
219
|
-
- app/views/
|
220
|
-
- app/views/
|
221
|
-
- app/views/
|
222
|
-
- app/views/
|
223
|
-
- app/views/
|
224
|
-
- app/views/
|
225
|
-
- app/views/
|
226
|
-
- app/views/
|
227
|
-
- app/views/
|
228
|
-
- app/views/
|
229
|
-
- app/views/
|
230
|
-
- app/views/
|
231
|
-
- app/views/
|
232
|
-
- app/views/
|
233
|
-
- app/views/
|
234
|
-
- app/views/
|
235
|
-
- app/views/
|
236
|
-
- app/views/
|
237
|
-
- app/views/
|
238
|
-
- app/views/
|
239
|
-
- app/views/
|
240
|
-
- app/views/
|
241
|
-
- app/views/
|
242
|
-
- app/views/
|
243
|
-
- app/views/
|
244
|
-
- app/views/
|
245
|
-
- app/views/
|
246
|
-
- app/views/
|
247
|
-
- app/views/
|
248
|
-
- app/views/
|
249
|
-
- app/views/
|
250
|
-
- app/views/
|
251
|
-
- app/views/
|
252
|
-
- app/views/
|
253
|
-
- app/views/
|
254
|
-
- app/views/
|
255
|
-
- app/views/
|
256
|
-
- app/views/
|
257
|
-
- app/views/
|
258
|
-
- app/views/
|
259
|
-
- app/views/
|
260
|
-
- app/views/
|
261
|
-
- app/views/
|
262
|
-
- app/views/
|
263
|
-
- app/views/
|
264
|
-
- app/views/
|
265
|
-
- app/views/
|
266
|
-
- app/views/
|
267
|
-
- app/views/
|
268
|
-
- app/views/
|
269
|
-
- app/views/
|
270
|
-
- app/views/
|
271
|
-
- app/views/
|
272
|
-
- app/views/
|
273
|
-
- app/views/
|
274
|
-
- app/views/
|
275
|
-
- app/views/
|
276
|
-
- app/views/
|
277
|
-
- app/views/
|
278
|
-
- app/views/
|
279
|
-
- app/views/
|
280
|
-
- app/views/
|
281
|
-
- app/views/
|
282
|
-
- app/views/
|
283
|
-
- app/views/
|
284
|
-
- app/views/
|
285
|
-
- app/views/
|
286
|
-
- app/views/
|
287
|
-
- app/views/
|
288
|
-
- app/views/
|
289
|
-
- app/views/
|
290
|
-
- app/views/
|
291
|
-
- app/views/
|
292
|
-
- app/views/
|
293
|
-
- app/views/
|
294
|
-
- app/views/
|
295
|
-
- app/views/
|
296
|
-
- app/views/
|
297
|
-
- app/views/
|
298
|
-
- app/views/
|
299
|
-
- app/views/
|
300
|
-
- app/views/
|
301
|
-
- app/views/
|
302
|
-
- app/views/
|
303
|
-
- app/views/
|
304
|
-
- app/views/
|
305
|
-
- app/views/
|
306
|
-
- app/views/
|
307
|
-
- app/views/
|
308
|
-
- app/views/
|
309
|
-
- app/views/
|
310
|
-
- app/views/
|
311
|
-
- app/views/
|
312
|
-
- app/views/
|
313
|
-
- app/views/
|
314
|
-
- app/views/
|
315
|
-
- app/views/
|
316
|
-
- app/views/
|
317
|
-
- app/views/
|
318
|
-
- app/views/
|
319
|
-
- app/views/
|
320
|
-
- app/views/
|
321
|
-
- app/views/
|
322
|
-
- app/views/
|
323
|
-
- app/views/
|
324
|
-
- app/views/
|
325
|
-
- app/views/
|
326
|
-
- app/views/
|
327
|
-
- app/views/
|
328
|
-
- app/views/
|
329
|
-
- app/views/
|
330
|
-
- app/views/
|
331
|
-
- app/views/
|
332
|
-
- app/views/
|
333
|
-
- app/views/
|
334
|
-
- app/views/
|
335
|
-
- app/views/
|
336
|
-
- app/views/
|
337
|
-
- app/views/
|
338
|
-
- app/views/
|
339
|
-
- app/views/
|
340
|
-
- app/views/
|
341
|
-
- app/views/
|
342
|
-
- app/views/
|
343
|
-
- app/views/
|
344
|
-
- app/views/
|
345
|
-
- app/views/
|
346
|
-
- app/views/
|
347
|
-
- app/views/
|
348
|
-
- app/views/
|
349
|
-
- app/views/
|
350
|
-
- app/views/
|
351
|
-
- app/views/
|
352
|
-
- app/views/
|
353
|
-
- app/views/
|
354
|
-
- app/views/
|
355
|
-
- app/views/
|
356
|
-
- app/views/
|
357
|
-
- app/views/
|
358
|
-
- app/views/
|
359
|
-
- app/views/
|
360
|
-
- app/views/
|
361
|
-
- app/views/
|
362
|
-
- app/views/
|
363
|
-
- app/views/
|
364
|
-
- app/views/
|
365
|
-
- app/views/
|
366
|
-
- app/views/
|
367
|
-
- app/views/
|
368
|
-
- app/views/
|
369
|
-
- app/views/
|
370
|
-
- app/views/
|
371
|
-
- app/views/
|
372
|
-
- app/views/
|
373
|
-
- app/views/
|
374
|
-
- app/views/
|
375
|
-
- app/views/
|
376
|
-
- app/views/
|
377
|
-
- app/views/
|
378
|
-
- app/views/
|
379
|
-
- app/views/
|
380
|
-
- app/views/
|
381
|
-
- app/views/
|
382
|
-
- app/views/
|
383
|
-
- app/views/
|
384
|
-
- app/views/
|
385
|
-
- app/views/
|
386
|
-
- app/views/
|
387
|
-
- app/views/
|
388
|
-
- app/views/
|
389
|
-
- app/views/
|
390
|
-
- app/views/
|
391
|
-
- app/views/
|
392
|
-
- app/views/
|
393
|
-
- app/views/
|
394
|
-
- app/views/
|
395
|
-
- app/views/
|
396
|
-
- app/views/
|
397
|
-
- app/views/
|
398
|
-
- app/views/
|
399
|
-
- app/views/
|
400
|
-
- app/views/
|
401
|
-
- app/views/
|
402
|
-
- app/views/
|
403
|
-
- app/views/
|
404
|
-
- app/views/
|
405
|
-
- app/views/
|
406
|
-
- app/views/
|
407
|
-
- app/views/
|
408
|
-
- app/views/
|
409
|
-
- app/views/
|
410
|
-
- app/views/
|
411
|
-
- app/views/
|
412
|
-
- app/views/
|
413
|
-
- app/views/
|
414
|
-
- app/views/
|
415
|
-
- app/views/
|
416
|
-
- app/views/
|
417
|
-
- app/views/
|
418
|
-
- app/views/
|
419
|
-
- app/views/
|
420
|
-
- app/views/
|
421
|
-
- app/views/
|
422
|
-
- app/views/
|
423
|
-
- app/views/
|
424
|
-
- app/views/
|
425
|
-
- app/views/
|
426
|
-
- app/views/
|
427
|
-
- app/views/
|
428
|
-
- app/views/
|
429
|
-
-
|
430
|
-
- app/views/rails_trade_my/payment_methods/_edit.html.erb
|
431
|
-
- app/views/rails_trade_my/payment_methods/_form.html.erb
|
432
|
-
- app/views/rails_trade_my/payment_methods/_index.html.erb
|
433
|
-
- app/views/rails_trade_my/payment_methods/_item.html.erb
|
434
|
-
- app/views/rails_trade_my/payment_methods/_new.html.erb
|
435
|
-
- app/views/rails_trade_my/payment_methods/create.js.erb
|
436
|
-
- app/views/rails_trade_my/payment_methods/destroy.js.erb
|
437
|
-
- app/views/rails_trade_my/payment_methods/edit.js.erb
|
438
|
-
- app/views/rails_trade_my/payment_methods/index.html.erb
|
439
|
-
- app/views/rails_trade_my/payment_methods/index.js.erb
|
440
|
-
- app/views/rails_trade_my/payment_methods/new.js.erb
|
441
|
-
- app/views/rails_trade_my/payment_methods/show.html.erb
|
442
|
-
- app/views/rails_trade_my/payment_methods/update.js.erb
|
443
|
-
- app/views/rails_trade_my/providers/_form.html.erb
|
444
|
-
- app/views/rails_trade_my/providers/_provider.html.erb
|
445
|
-
- app/views/rails_trade_my/providers/edit.html.erb
|
446
|
-
- app/views/rails_trade_my/providers/index.html.erb
|
447
|
-
- app/views/rails_trade_my/providers/new.html.erb
|
448
|
-
- app/views/rails_trade_my/providers/show.html.erb
|
449
|
-
- app/views/rails_trade_my/users/_form.html.erb
|
450
|
-
- app/views/rails_trade_my/users/edit.html.erb
|
451
|
-
- app/views/rails_trade_my/users/show.html.erb
|
227
|
+
- app/models/rails_trade/refund/alipay_refund.rb
|
228
|
+
- app/models/rails_trade/refund/bank_refund.rb
|
229
|
+
- app/models/rails_trade/refund/hand_refund.rb
|
230
|
+
- app/models/rails_trade/refund/paypal_refund.rb
|
231
|
+
- app/models/rails_trade/refund/stripe_refund.rb
|
232
|
+
- app/models/rails_trade/refund/wxpay_refund.rb
|
233
|
+
- app/models/rails_trade/sell.rb
|
234
|
+
- app/models/rails_trade/trade_item.rb
|
235
|
+
- app/models/rails_trade/trade_promote.rb
|
236
|
+
- app/models/rails_trade/user.rb
|
237
|
+
- app/models/refund.rb
|
238
|
+
- app/models/refund/alipay_refund.rb
|
239
|
+
- app/models/refund/bank_refund.rb
|
240
|
+
- app/models/refund/hand_refund.rb
|
241
|
+
- app/models/refund/paypal_refund.rb
|
242
|
+
- app/models/refund/stripe_refund.rb
|
243
|
+
- app/models/refund/wxpay_refund.rb
|
244
|
+
- app/models/trade_item.rb
|
245
|
+
- app/models/trade_promote.rb
|
246
|
+
- app/views/application/_trade_nav.html.erb
|
247
|
+
- app/views/my/_trade_nav.html.erb
|
248
|
+
- app/views/trade/admin/buyers/_form.html.erb
|
249
|
+
- app/views/trade/admin/buyers/_menu.html.erb
|
250
|
+
- app/views/trade/admin/buyers/_search_form.html.erb
|
251
|
+
- app/views/trade/admin/buyers/edit.html.erb
|
252
|
+
- app/views/trade/admin/buyers/index.html.erb
|
253
|
+
- app/views/trade/admin/buyers/new.html.erb
|
254
|
+
- app/views/trade/admin/buyers/orders.html.erb
|
255
|
+
- app/views/trade/admin/buyers/overdue.html.erb
|
256
|
+
- app/views/trade/admin/buyers/show.html.erb
|
257
|
+
- app/views/trade/admin/cart_item_serves/_check.html.erb
|
258
|
+
- app/views/trade/admin/cart_item_serves/_index.html.erb
|
259
|
+
- app/views/trade/admin/cart_item_serves/_new.html.erb
|
260
|
+
- app/views/trade/admin/cart_item_serves/_serve.html.erb
|
261
|
+
- app/views/trade/admin/cart_item_serves/_single.html.erb
|
262
|
+
- app/views/trade/admin/cart_item_serves/_single_table.html.erb
|
263
|
+
- app/views/trade/admin/cart_item_serves/_total.html.erb
|
264
|
+
- app/views/trade/admin/cart_item_serves/_total_table.html.erb
|
265
|
+
- app/views/trade/admin/cart_item_serves/add.js.erb
|
266
|
+
- app/views/trade/admin/cart_item_serves/create.js.erb
|
267
|
+
- app/views/trade/admin/cart_item_serves/destroy.js.erb
|
268
|
+
- app/views/trade/admin/cart_item_serves/index.js.erb
|
269
|
+
- app/views/trade/admin/cart_item_serves/new.js.erb
|
270
|
+
- app/views/trade/admin/cart_item_serves/single.js.erb
|
271
|
+
- app/views/trade/admin/cart_item_serves/total.js.erb
|
272
|
+
- app/views/trade/admin/goods/_form.html.erb
|
273
|
+
- app/views/trade/admin/goods/_item.html.erb
|
274
|
+
- app/views/trade/admin/goods/_new.html.erb
|
275
|
+
- app/views/trade/admin/goods/_show.html.erb
|
276
|
+
- app/views/trade/admin/goods/_show_tr.html.erb
|
277
|
+
- app/views/trade/admin/goods/create.js.erb
|
278
|
+
- app/views/trade/admin/goods/destroy.js.erb
|
279
|
+
- app/views/trade/admin/goods/edit.html.erb
|
280
|
+
- app/views/trade/admin/goods/edit.js.erb
|
281
|
+
- app/views/trade/admin/goods/edit_items.html.erb
|
282
|
+
- app/views/trade/admin/goods/edit_pic.html.erb
|
283
|
+
- app/views/trade/admin/goods/edit_promote.html.erb
|
284
|
+
- app/views/trade/admin/goods/index.html.erb
|
285
|
+
- app/views/trade/admin/goods/new.html.erb
|
286
|
+
- app/views/trade/admin/goods/new.js.erb
|
287
|
+
- app/views/trade/admin/goods/show.js.erb
|
288
|
+
- app/views/trade/admin/goods/update.js.erb
|
289
|
+
- app/views/trade/admin/order_payments/_index.html.erb
|
290
|
+
- app/views/trade/admin/order_payments/_new.html.erb
|
291
|
+
- app/views/trade/admin/order_payments/_payment_orders.html.erb
|
292
|
+
- app/views/trade/admin/order_payments/_payments.html.erb
|
293
|
+
- app/views/trade/admin/order_payments/create.js.erb
|
294
|
+
- app/views/trade/admin/order_payments/create_fail.js.erb
|
295
|
+
- app/views/trade/admin/order_payments/destroy.js.erb
|
296
|
+
- app/views/trade/admin/order_payments/index.js.erb
|
297
|
+
- app/views/trade/admin/order_payments/new.js.erb
|
298
|
+
- app/views/trade/admin/orders/_addresses.html.erb
|
299
|
+
- app/views/trade/admin/orders/_filter.html.erb
|
300
|
+
- app/views/trade/admin/orders/_form.html.erb
|
301
|
+
- app/views/trade/admin/orders/_invoice_addresses.html.erb
|
302
|
+
- app/views/trade/admin/orders/_item.html.erb
|
303
|
+
- app/views/trade/admin/orders/_new_items.html.erb
|
304
|
+
- app/views/trade/admin/orders/_search_form.html.erb
|
305
|
+
- app/views/trade/admin/orders/index.html.erb
|
306
|
+
- app/views/trade/admin/orders/new.html.erb
|
307
|
+
- app/views/trade/admin/orders/payments.html.erb
|
308
|
+
- app/views/trade/admin/orders/refresh.js.erb
|
309
|
+
- app/views/trade/admin/orders/show.html.erb
|
310
|
+
- app/views/trade/admin/payment_methods/_edit.html.erb
|
311
|
+
- app/views/trade/admin/payment_methods/_filter.html.erb
|
312
|
+
- app/views/trade/admin/payment_methods/_form.html.erb
|
313
|
+
- app/views/trade/admin/payment_methods/_index_layout.html.erb
|
314
|
+
- app/views/trade/admin/payment_methods/_new.html.erb
|
315
|
+
- app/views/trade/admin/payment_methods/_payment_method.html.erb
|
316
|
+
- app/views/trade/admin/payment_methods/create.js.erb
|
317
|
+
- app/views/trade/admin/payment_methods/destroy.js.erb
|
318
|
+
- app/views/trade/admin/payment_methods/edit.html.erb
|
319
|
+
- app/views/trade/admin/payment_methods/edit.js.erb
|
320
|
+
- app/views/trade/admin/payment_methods/index.html.erb
|
321
|
+
- 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
|
+
- app/views/trade/admin/payment_methods/unverified.html.erb
|
325
|
+
- app/views/trade/admin/payment_methods/update.js.erb
|
326
|
+
- app/views/trade/admin/payment_orders/_index.html.erb
|
327
|
+
- app/views/trade/admin/payment_orders/_new.html.erb
|
328
|
+
- app/views/trade/admin/payment_orders/_orders.html.erb
|
329
|
+
- app/views/trade/admin/payment_orders/cancel.js.erb
|
330
|
+
- app/views/trade/admin/payment_orders/create.js.erb
|
331
|
+
- app/views/trade/admin/payment_orders/create_fail.js.erb
|
332
|
+
- app/views/trade/admin/payment_orders/new.js.erb
|
333
|
+
- app/views/trade/admin/payment_orders/raise_fail.js.erb
|
334
|
+
- app/views/trade/admin/payment_orders/update.js.erb
|
335
|
+
- app/views/trade/admin/payment_orders/update_fail.js.erb
|
336
|
+
- app/views/trade/admin/payment_references/_form.html.erb
|
337
|
+
- app/views/trade/admin/payment_references/_new.html.erb
|
338
|
+
- app/views/trade/admin/payment_references/destroy.js.erb
|
339
|
+
- app/views/trade/admin/payment_references/edit.html.erb
|
340
|
+
- app/views/trade/admin/payment_references/index.html.erb
|
341
|
+
- app/views/trade/admin/payment_references/new.js.erb
|
342
|
+
- app/views/trade/admin/payment_references/show.html.erb
|
343
|
+
- app/views/trade/admin/payment_strategies/_form.html.erb
|
344
|
+
- app/views/trade/admin/payment_strategies/edit.html.erb
|
345
|
+
- app/views/trade/admin/payment_strategies/index.html.erb
|
346
|
+
- app/views/trade/admin/payment_strategies/new.html.erb
|
347
|
+
- app/views/trade/admin/payments/_checked_amount.html.erb
|
348
|
+
- app/views/trade/admin/payments/_edit.html.erb
|
349
|
+
- app/views/trade/admin/payments/_filter.html.erb
|
350
|
+
- app/views/trade/admin/payments/_form.html.erb
|
351
|
+
- app/views/trade/admin/payments/_item.html.erb
|
352
|
+
- app/views/trade/admin/payments/_new.html.erb
|
353
|
+
- app/views/trade/admin/payments/analyze.js.erb
|
354
|
+
- 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
|
+
- app/views/trade/admin/payments/index.html.erb
|
358
|
+
- app/views/trade/admin/payments/new.html.erb
|
359
|
+
- app/views/trade/admin/payments/new.js.erb
|
360
|
+
- app/views/trade/admin/payments/show.html.erb
|
361
|
+
- app/views/trade/admin/promote_buyers/_filter.html.erb
|
362
|
+
- app/views/trade/admin/promote_buyers/_form.html.erb
|
363
|
+
- app/views/trade/admin/promote_buyers/_promote_buyer.json.jbuilder
|
364
|
+
- app/views/trade/admin/promote_buyers/edit.html.erb
|
365
|
+
- app/views/trade/admin/promote_buyers/edit.js.erb
|
366
|
+
- app/views/trade/admin/promote_buyers/index.html.erb
|
367
|
+
- app/views/trade/admin/promote_buyers/index.json.jbuilder
|
368
|
+
- app/views/trade/admin/promote_buyers/new.html.erb
|
369
|
+
- app/views/trade/admin/promote_buyers/new.js.erb
|
370
|
+
- app/views/trade/admin/promote_buyers/show.html.erb
|
371
|
+
- app/views/trade/admin/promote_buyers/show.json.jbuilder
|
372
|
+
- app/views/trade/admin/promote_charges/_base_price_form.html.erb
|
373
|
+
- app/views/trade/admin/promote_charges/_edit.html.erb
|
374
|
+
- app/views/trade/admin/promote_charges/_filter.html.erb
|
375
|
+
- app/views/trade/admin/promote_charges/_form.html.erb
|
376
|
+
- app/views/trade/admin/promote_charges/_new.html.erb
|
377
|
+
- app/views/trade/admin/promote_charges/index.html.erb
|
378
|
+
- app/views/trade/admin/promote_charges/options.js.erb
|
379
|
+
- app/views/trade/admin/promote_goods/_filter.html.erb
|
380
|
+
- app/views/trade/admin/promote_goods/_form.html.erb
|
381
|
+
- app/views/trade/admin/promote_goods/_goods_options.html.erb
|
382
|
+
- app/views/trade/admin/promote_goods/goods.js.erb
|
383
|
+
- app/views/trade/admin/promote_goods/index.html.erb
|
384
|
+
- app/views/trade/admin/promotes/_edit.html.erb
|
385
|
+
- app/views/trade/admin/promotes/_filter.html.erb
|
386
|
+
- app/views/trade/admin/promotes/_form.html.erb
|
387
|
+
- app/views/trade/admin/promotes/_new.html.erb
|
388
|
+
- app/views/trade/admin/promotes/_new_promote_charge.html.erb
|
389
|
+
- app/views/trade/admin/promotes/create.js.erb
|
390
|
+
- app/views/trade/admin/promotes/index.html.erb
|
391
|
+
- app/views/trade/admin/refunds/_filter.html.erb
|
392
|
+
- app/views/trade/admin/refunds/_form.html.erb
|
393
|
+
- app/views/trade/admin/refunds/_logs_table.html.erb
|
394
|
+
- app/views/trade/admin/refunds/_new.html.erb
|
395
|
+
- app/views/trade/admin/refunds/edit.html.erb
|
396
|
+
- app/views/trade/admin/refunds/index.html.erb
|
397
|
+
- app/views/trade/admin/refunds/logs.js.erb
|
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
|
401
|
+
- app/views/trade/admin/trade_items/_additions.html.erb
|
402
|
+
- app/views/trade/admin/trade_items/_filter.html.erb
|
403
|
+
- app/views/trade/admin/trade_items/_good_price.html.erb
|
404
|
+
- app/views/trade/admin/trade_items/_order_price.html.erb
|
405
|
+
- app/views/trade/admin/trade_items/_retail_price.html.erb
|
406
|
+
- app/views/trade/admin/trade_items/_single_price.html.erb
|
407
|
+
- app/views/trade/admin/trade_items/_total_price.html.erb
|
408
|
+
- app/views/trade/admin/trade_items/destroy.js.erb
|
409
|
+
- app/views/trade/admin/trade_items/error.html.erb
|
410
|
+
- app/views/trade/admin/trade_items/index.html.erb
|
411
|
+
- app/views/trade/admin/trade_items/only.html.erb
|
412
|
+
- app/views/trade/admin/trade_items/total.js.erb
|
413
|
+
- app/views/trade/admin/trade_items/update.js.erb
|
414
|
+
- app/views/trade/admin/trade_promotes/_filter.html.erb
|
415
|
+
- app/views/trade/admin/trade_promotes/_form.html.erb
|
416
|
+
- 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
|
+
- app/views/trade/admin/trade_promotes/index.html.erb
|
420
|
+
- app/views/trade/admin/trade_promotes/new.html.erb
|
421
|
+
- app/views/trade/admin/trade_promotes/new.js.erb
|
422
|
+
- app/views/trade/admin/trade_promotes/show.html.erb
|
423
|
+
- app/views/trade/admin/trade_promotes/show.js.erb
|
424
|
+
- app/views/trade/admin/trade_promotes/update.js.erb
|
425
|
+
- app/views/trade/buyers/_show.html.erb
|
426
|
+
- app/views/trade/buyers/show.js.erb
|
427
|
+
- app/views/trade/goods/_choose.html.erb
|
428
|
+
- app/views/trade/goods/_good.html.erb
|
429
|
+
- app/views/trade/goods/_good_item.html.erb
|
430
|
+
- app/views/trade/goods/_nav.html.erb
|
431
|
+
- app/views/trade/goods/_search.html.erb
|
432
|
+
- app/views/trade/goods/index.html.erb
|
433
|
+
- app/views/trade/goods/index/_product.html.erb
|
434
|
+
- app/views/trade/goods/item.html.erb
|
435
|
+
- app/views/trade/goods/produce.html.erb
|
436
|
+
- app/views/trade/goods/show.html.erb
|
437
|
+
- app/views/trade/goods/show/_basic.html.erb
|
438
|
+
- app/views/trade/goods/show/_carousel.html.erb
|
439
|
+
- app/views/trade/goods/show/_items.html.erb
|
440
|
+
- app/views/trade/goods/show/_sales.html.erb
|
441
|
+
- app/views/trade/goods/show/_side.html.erb
|
442
|
+
- app/views/trade/goods/taxon/_breadcrumb.html.erb
|
443
|
+
- app/views/trade/goods/taxon/_nav.html.erb
|
444
|
+
- app/views/trade/goods/taxon/_nav_.html.erb
|
445
|
+
- app/views/trade/goods/taxon/_nav_last.html.erb
|
446
|
+
- app/views/trade/my/carts/_filter.html.erb
|
447
|
+
- app/views/trade/my/carts/_form.html.erb
|
448
|
+
- app/views/trade/my/carts/_show_table.html.erb
|
449
|
+
- app/views/trade/my/carts/edit.html.erb
|
450
|
+
- app/views/trade/my/carts/edit.js.erb
|
451
|
+
- app/views/trade/my/carts/index.html.erb
|
452
|
+
- app/views/trade/my/carts/new.html.erb
|
453
|
+
- app/views/trade/my/carts/new.js.erb
|
454
|
+
- app/views/trade/my/carts/show.html+phone.erb
|
455
|
+
- app/views/trade/my/carts/show.html.erb
|
456
|
+
- app/views/trade/my/order_items/_form.html.erb
|
457
|
+
- app/views/trade/my/order_items/edit.html.erb
|
458
|
+
- app/views/trade/my/order_items/index.html.erb
|
459
|
+
- app/views/trade/my/order_items/new.html.erb
|
460
|
+
- app/views/trade/my/order_items/show.html.erb
|
461
|
+
- app/views/trade/my/orders/_date_form.html.erb
|
462
|
+
- app/views/trade/my/orders/_edit.html.erb
|
463
|
+
- app/views/trade/my/orders/_edit_payment_type.html.erb
|
464
|
+
- app/views/trade/my/orders/_form.html.erb
|
465
|
+
- app/views/trade/my/orders/destroy.js.erb
|
466
|
+
- app/views/trade/my/orders/edit.js.erb
|
467
|
+
- app/views/trade/my/orders/edit_payment_type.js.erb
|
468
|
+
- app/views/trade/my/orders/fail.html.erb
|
469
|
+
- app/views/trade/my/orders/index.html+phone.erb
|
470
|
+
- app/views/trade/my/orders/index.html.erb
|
471
|
+
- app/views/trade/my/orders/index.json.jbuilder
|
472
|
+
- app/views/trade/my/orders/new.html.erb
|
473
|
+
- app/views/trade/my/orders/refresh.js.erb
|
474
|
+
- app/views/trade/my/orders/refund.json.jbuilder
|
475
|
+
- app/views/trade/my/orders/show.html+phone.erb
|
476
|
+
- app/views/trade/my/orders/show.html.erb
|
477
|
+
- app/views/trade/my/orders/success.html.erb
|
478
|
+
- app/views/trade/my/orders/update.js.erb
|
479
|
+
- app/views/trade/my/orders/wait.html+wechat.erb
|
480
|
+
- app/views/trade/my/orders/wxpay_pay.js.erb
|
481
|
+
- app/views/trade/my/orders/wxpay_pay_err.js.erb
|
482
|
+
- app/views/trade/my/payment_methods/_edit.html.erb
|
483
|
+
- app/views/trade/my/payment_methods/_form.html.erb
|
484
|
+
- app/views/trade/my/payment_methods/_index.html.erb
|
485
|
+
- app/views/trade/my/payment_methods/_item.html.erb
|
486
|
+
- app/views/trade/my/payment_methods/_new.html.erb
|
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
|
490
|
+
- app/views/trade/my/payment_methods/index.html.erb
|
491
|
+
- app/views/trade/my/payment_methods/index.js.erb
|
492
|
+
- app/views/trade/my/payment_methods/new.js.erb
|
493
|
+
- app/views/trade/my/payment_methods/show.html.erb
|
494
|
+
- app/views/trade/my/payment_methods/update.js.erb
|
495
|
+
- app/views/trade/my/trade_items/_additions.html.erb
|
496
|
+
- app/views/trade/my/trade_items/_cart_item.js.erb
|
497
|
+
- app/views/trade/my/trade_items/_single_price.html.erb
|
498
|
+
- app/views/trade/my/trade_items/_total_price.html.erb
|
499
|
+
- app/views/trade/my/trade_items/_trade_items.html.erb
|
500
|
+
- app/views/trade/my/trade_items/create.html.erb
|
501
|
+
- app/views/trade/my/trade_items/destroy.js.erb
|
502
|
+
- app/views/trade/my/trade_items/index.json.jbuilder
|
503
|
+
- app/views/trade/my/trade_items/update.js.erb
|
504
|
+
- app/views/trade/my/users/_form.html.erb
|
505
|
+
- app/views/trade/my/users/edit.html.erb
|
506
|
+
- app/views/trade/my/users/show.html.erb
|
507
|
+
- app/views/trade/payments/_wxpay_result.html.erb
|
508
|
+
- app/views/trade/payments/wxpay_result.js.erb
|
509
|
+
- config/locales/en.enum.yml
|
452
510
|
- config/locales/en.yml
|
453
|
-
- config/locales/zh.yml
|
511
|
+
- config/locales/zh.attributes.yml
|
512
|
+
- config/locales/zh.controller.yml
|
513
|
+
- config/locales/zh.enum.yml
|
514
|
+
- config/locales/zh.help.yml
|
454
515
|
- config/routes.rb
|
455
|
-
- db/migrate/20150514135720_create_providers.rb
|
456
|
-
- db/migrate/20170601014520_create_payments.rb
|
457
|
-
- db/migrate/20170602061859_create_payment_references.rb
|
458
|
-
- db/migrate/20170702234123_create_orders.rb
|
459
|
-
- db/migrate/20170714080032_create_payment_strategies.rb
|
460
|
-
- db/migrate/20171115063702_create_promote_buyers.rb
|
461
|
-
- db/schema.rb
|
462
516
|
- lib/rails_trade.rb
|
517
|
+
- lib/rails_trade/apple_pay.rb
|
463
518
|
- lib/rails_trade/config.rb
|
464
519
|
- lib/rails_trade/engine.rb
|
465
520
|
- lib/rails_trade/version.rb
|
466
|
-
|
467
|
-
homepage: https://github.com/yougexiangfa/rails_trade
|
521
|
+
homepage: https://github.com/work-design/rails_trade
|
468
522
|
licenses:
|
469
523
|
- LGPL-3.0
|
470
524
|
metadata: {}
|
@@ -483,9 +537,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
483
537
|
- !ruby/object:Gem::Version
|
484
538
|
version: '0'
|
485
539
|
requirements: []
|
486
|
-
|
487
|
-
rubygems_version: 2.7.7
|
540
|
+
rubygems_version: 3.0.3
|
488
541
|
signing_key:
|
489
542
|
specification_version: 4
|
490
|
-
summary:
|
543
|
+
summary: Rails engine for trade, payment and more
|
491
544
|
test_files: []
|