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.
Files changed (616) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/README.md +37 -15
  4. data/Rakefile +9 -27
  5. data/app/assets/javascripts/controllers/{rails_trade_admin → trade/admin}/cart_items/create.js +0 -0
  6. data/app/assets/javascripts/controllers/{rails_trade_admin → trade/admin}/cart_items/index.js +0 -0
  7. data/app/assets/javascripts/controllers/{rails_trade_admin → trade/admin}/cart_items/only.js +0 -0
  8. data/app/assets/javascripts/controllers/{rails_trade_admin → trade/admin}/orders/new.js +0 -0
  9. data/app/assets/javascripts/controllers/trade/admin/payment_methods/edit.js +1 -0
  10. data/app/assets/javascripts/controllers/{rails_trade_admin → trade/admin}/payment_methods/new.js +0 -0
  11. data/app/assets/javascripts/controllers/trade/admin/payments/edit.js +1 -0
  12. data/app/assets/javascripts/controllers/{rails_trade_admin → trade/admin}/payments/new.js +0 -0
  13. data/app/assets/javascripts/controllers/{rails_trade_admin → trade/admin}/promote_buyers/edit.js +0 -0
  14. data/app/assets/javascripts/controllers/{rails_trade_admin → trade/admin}/promote_buyers/new.js +3 -1
  15. data/app/assets/javascripts/controllers/trade/admin/promote_charges/edit.js +1 -0
  16. data/app/assets/javascripts/controllers/trade/admin/promote_charges/new.js +7 -0
  17. data/app/assets/javascripts/controllers/trade/admin/promote_goods/edit.js +1 -0
  18. data/app/assets/javascripts/controllers/trade/admin/promote_goods/new.js +17 -0
  19. data/app/assets/javascripts/controllers/trade/admin/promotes/edit.js +2 -0
  20. data/app/assets/javascripts/controllers/trade/admin/promotes/new.js +5 -0
  21. data/app/assets/javascripts/controllers/trade/admin/refunds/index.js +1 -0
  22. data/app/assets/javascripts/controllers/trade/admin/refunds/new.js +1 -0
  23. data/app/assets/javascripts/controllers/trade/my/carts/show-phone-ready.js +1 -0
  24. data/app/assets/javascripts/controllers/trade/my/carts/show-ready.js +28 -0
  25. data/app/assets/javascripts/controllers/trade/my/orders/wait-phone.js +8 -0
  26. data/app/{views/goods/show.html.erb → assets/javascripts/controllers/trade/my/trade_items/create.js} +0 -0
  27. data/app/assets/stylesheets/controllers/trade/admin/promote_charges/index.css +4 -0
  28. data/app/assets/stylesheets/controllers/trade/admin/promotes/index.css +4 -0
  29. data/app/{views/rails_trade_admin/orders/edit.html.erb → assets/stylesheets/controllers/trade/my/carts/show-phone.css} +0 -0
  30. data/app/assets/stylesheets/controllers/trade/payments/wxpay_result.css +57 -0
  31. data/app/channels/paid_channel.rb +7 -0
  32. data/app/controllers/concerns/controller_order_types.rb +3 -6
  33. data/app/controllers/rails_trade/my_cart.rb +16 -0
  34. data/app/controllers/trade/admin/base_controller.rb +5 -0
  35. data/app/controllers/{the_trade_admin → trade/admin}/buyers_controller.rb +3 -3
  36. data/app/controllers/{the_trade_admin/cart_item_serves_controller.rb → trade/admin/cart_serves_controller.rb} +8 -5
  37. data/app/controllers/{goods_controller.rb → trade/admin/goods_controller.rb} +7 -1
  38. data/app/controllers/{the_trade_admin → trade/admin}/order_payments_controller.rb +6 -3
  39. data/app/controllers/{the_trade_admin → trade/admin}/orders_controller.rb +23 -16
  40. data/app/controllers/{the_trade_admin → trade/admin}/payment_methods_controller.rb +8 -5
  41. data/app/controllers/{the_trade_admin → trade/admin}/payment_orders_controller.rb +10 -12
  42. data/app/controllers/{the_trade_admin → trade/admin}/payment_references_controller.rb +3 -3
  43. data/app/controllers/{the_trade_admin → trade/admin}/payment_strategies_controller.rb +9 -5
  44. data/app/controllers/trade/admin/payments_controller.rb +97 -0
  45. data/app/controllers/{the_trade_admin → trade/admin}/produces_controller.rb +4 -4
  46. data/app/controllers/trade/admin/promote_buyers_controller.rb +57 -0
  47. data/app/controllers/trade/admin/promote_charges_controller.rb +67 -0
  48. data/app/controllers/trade/admin/promote_goods_controller.rb +63 -0
  49. data/app/controllers/trade/admin/promotes_controller.rb +69 -0
  50. data/app/controllers/{the_trade_admin → trade/admin}/refunds_controller.rb +9 -12
  51. data/app/controllers/{the_trade_admin/cart_items_controller.rb → trade/admin/trade_items_controller.rb} +26 -28
  52. data/app/controllers/trade/admin/trade_promotes_controller.rb +71 -0
  53. data/app/controllers/trade/buyers_controller.rb +8 -0
  54. data/app/controllers/trade/my/base_controller.rb +4 -0
  55. data/app/controllers/trade/my/carts_controller.rb +32 -0
  56. data/app/controllers/{the_trade_my → trade/my}/order_items_controller.rb +4 -4
  57. data/app/controllers/trade/my/orders_controller.rb +106 -0
  58. data/app/controllers/{the_trade_my → trade/my}/payment_methods_controller.rb +1 -1
  59. data/app/controllers/trade/my/trade_items_controller.rb +47 -0
  60. data/app/controllers/trade/payments_controller.rb +71 -0
  61. data/app/models/cart.rb +4 -0
  62. data/app/models/order.rb +4 -0
  63. data/app/models/payment.rb +4 -0
  64. data/app/models/payment/alipay_payment.rb +3 -0
  65. data/app/models/payment/apple_payment.rb +3 -0
  66. data/app/models/payment/bank_payment.rb +3 -0
  67. data/app/models/payment/hand_payment.rb +3 -0
  68. data/app/models/payment/paypal_payment.rb +3 -0
  69. data/app/models/payment/stripe_payment.rb +3 -0
  70. data/app/models/payment/wxpay_payment.rb +3 -0
  71. data/app/models/payment_method.rb +3 -0
  72. data/app/models/{rails_trade/payment_methods → payment_method}/alipay_method.rb +1 -1
  73. data/app/models/{rails_trade/payment_methods → payment_method}/bank_method.rb +1 -1
  74. data/app/models/payment_method/stripe_method.rb +3 -0
  75. data/app/models/payment_order.rb +3 -0
  76. data/app/models/payment_reference.rb +3 -0
  77. data/app/models/payment_strategy.rb +3 -0
  78. data/app/models/payment_type.rb +3 -0
  79. data/app/models/promote.rb +3 -0
  80. data/app/models/promote_buyer.rb +3 -0
  81. data/app/models/promote_charge.rb +3 -0
  82. data/app/models/promote_charge/cash_promote_charge.rb +3 -0
  83. data/app/models/promote_charge/discount_promote_charge.rb +3 -0
  84. data/app/models/promote_charge/final_promote_charge.rb +3 -0
  85. data/app/models/promote_charge/minus_promote_charge.rb +3 -0
  86. data/app/models/promote_charge/plus_promote_charge.rb +3 -0
  87. data/app/models/promote_extra.rb +3 -0
  88. data/app/models/promote_good.rb +3 -0
  89. data/app/models/rails_trade/amount.rb +44 -0
  90. data/app/models/rails_trade/buyer.rb +35 -0
  91. data/app/models/rails_trade/cart.rb +64 -0
  92. data/app/models/rails_trade/good.rb +71 -0
  93. data/app/models/rails_trade/order.rb +78 -91
  94. data/app/models/rails_trade/ordering/payment.rb +113 -0
  95. data/app/models/rails_trade/{concerns/the_refund.rb → ordering/refund.rb} +3 -5
  96. data/app/models/rails_trade/payment.rb +72 -73
  97. data/app/models/rails_trade/payment/alipay_payment.rb +15 -0
  98. data/app/models/rails_trade/payment/apple_payment.rb +7 -0
  99. data/app/models/rails_trade/{payments → payment}/bank_payment.rb +2 -4
  100. data/app/models/rails_trade/payment/hand_payment.rb +8 -0
  101. data/app/models/rails_trade/payment/paypal_payment.rb +8 -0
  102. data/app/models/rails_trade/payment/stripe_payment.rb +9 -0
  103. data/app/models/rails_trade/{payments → payment}/wxpay_payment.rb +1 -2
  104. data/app/models/rails_trade/payment_method.rb +22 -12
  105. data/app/models/rails_trade/{payment_methods → payment_method}/stripe_method.rb +7 -4
  106. data/app/models/rails_trade/payment_order.rb +84 -51
  107. data/app/models/rails_trade/payment_reference.rb +12 -9
  108. data/app/models/rails_trade/payment_strategy.rb +15 -12
  109. data/app/models/rails_trade/payment_type/alipay.rb +28 -0
  110. data/app/models/rails_trade/payment_type/apple_pay.rb +18 -0
  111. data/app/models/rails_trade/{payment_interface/the_paypal.rb → payment_type/paypal.rb} +8 -29
  112. data/app/models/rails_trade/{payment_interface/the_stripe.rb → payment_type/stripe.rb} +8 -26
  113. data/app/models/rails_trade/payment_type/wxpay.rb +55 -0
  114. data/app/models/rails_trade/promote.rb +65 -27
  115. data/app/models/rails_trade/promote_buyer.rb +25 -7
  116. data/app/models/rails_trade/promote_charge.rb +78 -11
  117. data/app/models/rails_trade/promote_charge/cash_promote_charge.rb +12 -0
  118. data/app/models/rails_trade/promote_charge/discount_promote_charge.rb +17 -0
  119. data/app/models/rails_trade/promote_charge/final_promote_charge.rb +12 -0
  120. data/app/models/rails_trade/promote_charge/minus_promote_charge.rb +11 -0
  121. data/app/models/rails_trade/promote_charge/plus_promote_charge.rb +7 -0
  122. data/app/models/rails_trade/promote_extra.rb +13 -0
  123. data/app/models/rails_trade/promote_good.rb +20 -7
  124. data/app/models/rails_trade/refund.rb +30 -19
  125. data/app/models/rails_trade/{refunds → refund}/alipay_refund.rb +1 -1
  126. data/app/models/rails_trade/refund/bank_refund.rb +5 -0
  127. data/app/models/rails_trade/refund/hand_refund.rb +5 -0
  128. data/app/models/rails_trade/{refunds → refund}/paypal_refund.rb +1 -1
  129. data/app/models/rails_trade/{refunds → refund}/stripe_refund.rb +1 -1
  130. data/app/models/rails_trade/{refunds → refund}/wxpay_refund.rb +17 -9
  131. data/app/models/rails_trade/sell.rb +24 -0
  132. data/app/models/rails_trade/trade_item.rb +153 -0
  133. data/app/models/rails_trade/trade_promote.rb +92 -0
  134. data/app/models/rails_trade/user.rb +9 -0
  135. data/app/models/refund.rb +3 -0
  136. data/app/models/refund/alipay_refund.rb +3 -0
  137. data/app/models/refund/bank_refund.rb +3 -0
  138. data/app/models/refund/hand_refund.rb +3 -0
  139. data/app/models/refund/paypal_refund.rb +3 -0
  140. data/app/models/refund/stripe_refund.rb +3 -0
  141. data/app/models/refund/wxpay_refund.rb +3 -0
  142. data/app/models/trade_item.rb +3 -0
  143. data/app/models/trade_promote.rb +3 -0
  144. data/app/views/application/_trade_nav.html.erb +16 -0
  145. data/app/views/my/_trade_nav.html.erb +10 -0
  146. data/app/views/{rails_trade_admin → trade/admin}/buyers/_form.html.erb +0 -0
  147. data/app/views/{rails_trade_admin → trade/admin}/buyers/_menu.html.erb +0 -0
  148. data/app/views/{rails_trade_admin → trade/admin}/buyers/_search_form.html.erb +3 -3
  149. data/app/views/{rails_trade_admin → trade/admin}/buyers/edit.html.erb +0 -0
  150. data/app/views/{rails_trade_admin → trade/admin}/buyers/index.html.erb +1 -1
  151. data/app/views/{rails_trade_admin → trade/admin}/buyers/new.html.erb +0 -0
  152. data/app/views/{rails_trade_admin → trade/admin}/buyers/orders.html.erb +2 -2
  153. data/app/views/{rails_trade_admin → trade/admin}/buyers/overdue.html.erb +1 -1
  154. data/app/views/{rails_trade_admin → trade/admin}/buyers/show.html.erb +0 -0
  155. data/app/views/{rails_trade_admin → trade/admin}/cart_item_serves/_check.html.erb +0 -0
  156. data/app/views/{rails_trade_admin → trade/admin}/cart_item_serves/_index.html.erb +1 -1
  157. data/app/views/{rails_trade_admin → trade/admin}/cart_item_serves/_new.html.erb +0 -0
  158. data/app/views/{rails_trade_admin → trade/admin}/cart_item_serves/_serve.html.erb +0 -0
  159. data/app/views/{rails_trade_admin → trade/admin}/cart_item_serves/_single.html.erb +1 -1
  160. data/app/views/{rails_trade_admin → trade/admin}/cart_item_serves/_single_table.html.erb +0 -0
  161. data/app/views/{rails_trade_admin → trade/admin}/cart_item_serves/_total.html.erb +1 -1
  162. data/app/views/{rails_trade_admin → trade/admin}/cart_item_serves/_total_table.html.erb +0 -0
  163. data/app/views/{rails_trade_admin → trade/admin}/cart_item_serves/add.js.erb +0 -0
  164. data/app/views/{rails_trade_admin → trade/admin}/cart_item_serves/create.js.erb +0 -0
  165. data/app/views/{rails_trade_admin → trade/admin}/cart_item_serves/destroy.js.erb +0 -0
  166. data/app/views/{rails_trade_admin → trade/admin}/cart_item_serves/index.js.erb +0 -0
  167. data/app/views/{rails_trade_admin → trade/admin}/cart_item_serves/new.js.erb +0 -0
  168. data/app/views/{rails_trade_admin → trade/admin}/cart_item_serves/single.js.erb +0 -0
  169. data/app/views/{rails_trade_admin → trade/admin}/cart_item_serves/total.js.erb +0 -0
  170. data/app/views/trade/admin/goods/_form.html.erb +7 -0
  171. data/app/views/{rails_trade_admin → trade/admin}/goods/_item.html.erb +0 -0
  172. data/app/views/{rails_trade_admin → trade/admin}/goods/_new.html.erb +2 -2
  173. data/app/views/{rails_trade_admin → trade/admin}/goods/_show.html.erb +0 -0
  174. data/app/views/{rails_trade_admin → trade/admin}/goods/_show_tr.html.erb +0 -0
  175. data/app/views/{rails_trade_admin → trade/admin}/goods/create.js.erb +0 -0
  176. data/app/views/{rails_trade_admin → trade/admin}/goods/destroy.js.erb +0 -0
  177. data/app/views/{rails_trade_admin → trade/admin}/goods/edit.html.erb +2 -2
  178. data/app/views/{rails_trade_admin → trade/admin}/goods/edit.js.erb +0 -0
  179. data/app/views/{rails_trade_admin → trade/admin}/goods/edit_items.html.erb +2 -2
  180. data/app/views/{rails_trade_admin → trade/admin}/goods/edit_pic.html.erb +2 -2
  181. data/app/views/{rails_trade_admin → trade/admin}/goods/edit_promote.html.erb +2 -2
  182. data/app/views/{rails_trade_admin → trade/admin}/goods/index.html.erb +1 -1
  183. data/app/views/{rails_trade_admin → trade/admin}/goods/new.html.erb +1 -1
  184. data/app/views/{rails_trade_admin → trade/admin}/goods/new.js.erb +0 -0
  185. data/app/views/{rails_trade_admin → trade/admin}/goods/show.js.erb +0 -0
  186. data/app/views/{rails_trade_admin → trade/admin}/goods/update.js.erb +0 -0
  187. data/app/views/{rails_trade_admin → trade/admin}/order_payments/_index.html.erb +0 -0
  188. data/app/views/{rails_trade_admin → trade/admin}/order_payments/_new.html.erb +0 -0
  189. data/app/views/{rails_trade_admin → trade/admin}/order_payments/_payment_orders.html.erb +1 -1
  190. data/app/views/{rails_trade_admin → trade/admin}/order_payments/_payments.html.erb +0 -0
  191. data/app/views/{rails_trade_admin → trade/admin}/order_payments/create.js.erb +0 -0
  192. data/app/views/{rails_trade_admin → trade/admin}/order_payments/create_fail.js.erb +0 -0
  193. data/app/views/{rails_trade_admin → trade/admin}/order_payments/destroy.js.erb +0 -0
  194. data/app/views/{rails_trade_admin → trade/admin}/order_payments/index.js.erb +0 -0
  195. data/app/views/{rails_trade_admin → trade/admin}/order_payments/new.js.erb +0 -0
  196. data/app/views/{rails_trade_admin → trade/admin}/orders/_addresses.html.erb +1 -1
  197. data/app/views/trade/admin/orders/_filter.html.erb +26 -0
  198. data/app/views/trade/admin/orders/_form.html.erb +4 -0
  199. data/app/views/{rails_trade_admin → trade/admin}/orders/_invoice_addresses.html.erb +1 -1
  200. data/app/views/{rails_trade_admin → trade/admin}/orders/_item.html.erb +0 -0
  201. data/app/views/{rails_trade_admin → trade/admin}/orders/_new_items.html.erb +1 -1
  202. data/app/{assets/javascripts/controllers/rails_trade_admin/payments/index.js → views/trade/admin/orders/_search_form.html.erb} +0 -0
  203. data/app/views/trade/admin/orders/index.html.erb +52 -0
  204. data/app/views/{rails_trade_admin → trade/admin}/orders/new.html.erb +0 -0
  205. data/app/views/{rails_trade_admin → trade/admin}/orders/payments.html.erb +1 -1
  206. data/app/views/{rails_trade_admin → trade/admin}/orders/refresh.js.erb +0 -0
  207. data/app/views/trade/admin/orders/show.html.erb +75 -0
  208. data/app/views/{rails_trade_admin → trade/admin}/payment_methods/_edit.html.erb +0 -0
  209. data/app/views/{rails_trade_admin/payment_methods/_search_form.html.erb → trade/admin/payment_methods/_filter.html.erb} +5 -9
  210. data/app/views/{rails_trade_admin → trade/admin}/payment_methods/_form.html.erb +0 -0
  211. data/app/views/{rails_trade_admin → trade/admin}/payment_methods/_index_layout.html.erb +2 -5
  212. data/app/views/{rails_trade_admin → trade/admin}/payment_methods/_new.html.erb +2 -2
  213. data/app/views/{rails_trade_admin → trade/admin}/payment_methods/_payment_method.html.erb +2 -3
  214. data/app/views/trade/admin/payment_methods/create.js.erb +2 -0
  215. data/app/views/{rails_trade_admin → trade/admin}/payment_methods/destroy.js.erb +0 -0
  216. data/app/views/{rails_trade_admin → trade/admin}/payment_methods/edit.html.erb +1 -1
  217. data/app/views/{rails_trade_admin → trade/admin}/payment_methods/edit.js.erb +0 -0
  218. data/app/views/{rails_trade_admin → trade/admin}/payment_methods/index.html.erb +7 -4
  219. data/app/views/{rails_trade_admin → trade/admin}/payment_methods/mine.html.erb +2 -2
  220. data/app/views/{rails_trade_admin → trade/admin}/payment_methods/new.html.erb +1 -1
  221. data/app/views/{rails_trade_admin → trade/admin}/payment_methods/new.js.erb +0 -0
  222. data/app/views/{rails_trade_admin → trade/admin}/payment_methods/unverified.html.erb +4 -6
  223. data/app/views/{rails_trade_admin → trade/admin}/payment_methods/update.js.erb +0 -0
  224. data/app/views/{rails_trade_admin → trade/admin}/payment_orders/_index.html.erb +2 -6
  225. data/app/views/trade/admin/payment_orders/_new.html.erb +23 -0
  226. data/app/views/{rails_trade_admin → trade/admin}/payment_orders/_orders.html.erb +2 -9
  227. data/app/views/{rails_trade_admin → trade/admin}/payment_orders/cancel.js.erb +0 -0
  228. data/app/views/{rails_trade_admin → trade/admin}/payment_orders/create.js.erb +0 -0
  229. data/app/views/{rails_trade_admin → trade/admin}/payment_orders/create_fail.js.erb +0 -0
  230. data/app/views/{rails_trade_admin → trade/admin}/payment_orders/new.js.erb +0 -0
  231. data/app/views/{rails_trade_admin → trade/admin}/payment_orders/raise_fail.js.erb +0 -0
  232. data/app/views/{rails_trade_admin → trade/admin}/payment_orders/update.js.erb +1 -1
  233. data/app/views/{rails_trade_admin → trade/admin}/payment_orders/update_fail.js.erb +0 -0
  234. data/app/views/{rails_trade_admin → trade/admin}/payment_references/_form.html.erb +1 -1
  235. data/app/views/{rails_trade_admin → trade/admin}/payment_references/_new.html.erb +1 -1
  236. data/app/views/{rails_trade_admin → trade/admin}/payment_references/destroy.js.erb +0 -0
  237. data/app/views/{rails_trade_admin → trade/admin}/payment_references/edit.html.erb +0 -0
  238. data/app/views/{rails_trade_admin → trade/admin}/payment_references/index.html.erb +1 -1
  239. data/app/views/{rails_trade_admin → trade/admin}/payment_references/new.js.erb +0 -0
  240. data/app/views/{rails_trade_admin → trade/admin}/payment_references/show.html.erb +0 -0
  241. data/app/views/{rails_trade_admin → trade/admin}/payment_strategies/_form.html.erb +0 -0
  242. data/app/views/{rails_trade_admin → trade/admin}/payment_strategies/edit.html.erb +2 -2
  243. data/app/views/{rails_trade_admin → trade/admin}/payment_strategies/index.html.erb +2 -2
  244. data/app/views/{rails_trade_admin → trade/admin}/payment_strategies/new.html.erb +1 -1
  245. data/app/views/trade/admin/payments/_checked_amount.html.erb +6 -0
  246. data/app/views/trade/admin/payments/_edit.html.erb +12 -0
  247. data/app/views/trade/admin/payments/_filter.html.erb +40 -0
  248. data/app/views/{rails_trade_admin → trade/admin}/payments/_form.html.erb +6 -2
  249. data/app/views/trade/admin/payments/_item.html.erb +41 -0
  250. data/app/views/trade/admin/payments/_new.html.erb +12 -0
  251. data/app/views/{rails_trade_admin → trade/admin}/payments/analyze.js.erb +0 -0
  252. data/app/views/{rails_trade_admin → trade/admin}/payments/dashboard.html.erb +0 -0
  253. data/app/views/trade/admin/payments/edit.html.erb +13 -0
  254. data/app/views/trade/admin/payments/edit.js.erb +3 -0
  255. data/app/views/trade/admin/payments/index.html.erb +40 -0
  256. data/app/views/trade/admin/payments/new.html.erb +13 -0
  257. data/app/views/trade/admin/payments/new.js.erb +3 -0
  258. data/app/views/{rails_trade_admin → trade/admin}/payments/show.html.erb +0 -0
  259. data/app/views/trade/admin/promote_buyers/_filter.html.erb +7 -0
  260. data/app/views/trade/admin/promote_buyers/_form.html.erb +17 -0
  261. data/app/views/{rails_trade_admin → trade/admin}/promote_buyers/_promote_buyer.json.jbuilder +0 -0
  262. data/app/views/{rails_trade_admin → trade/admin}/promote_buyers/edit.html.erb +1 -1
  263. data/app/views/trade/admin/promote_buyers/edit.js.erb +3 -0
  264. data/app/views/trade/admin/promote_buyers/index.html.erb +52 -0
  265. data/app/views/{rails_trade_admin → trade/admin}/promote_buyers/index.json.jbuilder +0 -0
  266. data/app/views/{rails_trade_admin → trade/admin}/promote_buyers/new.html.erb +1 -1
  267. data/app/views/trade/admin/promote_buyers/new.js.erb +3 -0
  268. data/app/views/{rails_trade_admin → trade/admin}/promote_buyers/show.html.erb +0 -0
  269. data/app/views/{rails_trade_admin → trade/admin}/promote_buyers/show.json.jbuilder +0 -0
  270. data/app/views/trade/admin/promote_charges/_base_price_form.html.erb +1 -0
  271. data/app/views/trade/admin/promote_charges/_edit.html.erb +13 -0
  272. data/app/views/trade/admin/promote_charges/_filter.html.erb +11 -0
  273. data/app/views/trade/admin/promote_charges/_form.html.erb +11 -0
  274. data/app/views/trade/admin/promote_charges/_new.html.erb +13 -0
  275. data/app/views/trade/admin/promote_charges/index.html.erb +65 -0
  276. data/app/views/trade/admin/promote_charges/options.js.erb +4 -0
  277. data/app/views/trade/admin/promote_goods/_filter.html.erb +8 -0
  278. data/app/views/trade/admin/promote_goods/_form.html.erb +8 -0
  279. data/app/views/trade/admin/promote_goods/_goods_options.html.erb +1 -0
  280. data/app/views/trade/admin/promote_goods/goods.js.erb +2 -0
  281. data/app/views/trade/admin/promote_goods/index.html.erb +61 -0
  282. data/app/views/trade/admin/promotes/_edit.html.erb +12 -0
  283. data/app/views/trade/admin/promotes/_filter.html.erb +9 -0
  284. data/app/views/trade/admin/promotes/_form.html.erb +12 -0
  285. data/app/views/trade/admin/promotes/_new.html.erb +12 -0
  286. data/app/views/trade/admin/promotes/_new_promote_charge.html.erb +10 -0
  287. data/app/views/trade/admin/promotes/create.js.erb +2 -0
  288. data/app/views/trade/admin/promotes/index.html.erb +79 -0
  289. data/app/views/trade/admin/refunds/_filter.html.erb +11 -0
  290. data/app/views/{rails_trade_admin → trade/admin}/refunds/_form.html.erb +0 -0
  291. data/app/views/{rails_trade_admin → trade/admin}/refunds/_logs_table.html.erb +0 -0
  292. data/app/views/{rails_trade_admin → trade/admin}/refunds/_new.html.erb +0 -0
  293. data/app/views/{rails_trade_admin → trade/admin}/refunds/edit.html.erb +0 -0
  294. data/app/views/{rails_trade_admin → trade/admin}/refunds/index.html.erb +13 -17
  295. data/app/views/{rails_trade_admin → trade/admin}/refunds/logs.js.erb +0 -0
  296. data/app/views/{rails_trade_admin → trade/admin}/refunds/new.html.erb +0 -0
  297. data/app/views/{rails_trade_admin → trade/admin}/refunds/new.js.erb +0 -0
  298. data/app/views/{rails_trade_admin → trade/admin}/refunds/show.html.erb +0 -0
  299. data/app/views/{rails_trade_admin/cart_items → trade/admin/trade_items}/_additions.html.erb +0 -0
  300. data/app/views/{rails_trade_admin/cart_items → trade/admin/trade_items}/_filter.html.erb +0 -0
  301. data/app/views/{rails_trade_admin/cart_items → trade/admin/trade_items}/_good_price.html.erb +0 -0
  302. data/app/views/{rails_trade_admin/cart_items → trade/admin/trade_items}/_order_price.html.erb +0 -0
  303. data/app/views/{rails_trade_admin/cart_items → trade/admin/trade_items}/_retail_price.html.erb +0 -0
  304. data/app/views/{rails_trade_admin/cart_items → trade/admin/trade_items}/_single_price.html.erb +0 -0
  305. data/app/views/{rails_trade_admin/cart_items → trade/admin/trade_items}/_total_price.html.erb +0 -0
  306. data/app/views/{rails_trade_admin/cart_items → trade/admin/trade_items}/destroy.js.erb +0 -0
  307. data/app/views/{rails_trade_admin/cart_items → trade/admin/trade_items}/error.html.erb +0 -0
  308. data/app/views/{rails_trade_admin/cart_items → trade/admin/trade_items}/index.html.erb +3 -3
  309. data/app/views/{rails_trade_admin/cart_items → trade/admin/trade_items}/only.html.erb +2 -2
  310. data/app/views/{rails_trade_admin/cart_items → trade/admin/trade_items}/total.js.erb +0 -0
  311. data/app/views/{rails_trade_admin/cart_items → trade/admin/trade_items}/update.js.erb +0 -0
  312. data/app/views/trade/admin/trade_promotes/_filter.html.erb +7 -0
  313. data/app/views/trade/admin/trade_promotes/_form.html.erb +6 -0
  314. data/app/views/trade/admin/trade_promotes/_show_table.html.erb +20 -0
  315. data/app/views/trade/admin/trade_promotes/edit.html.erb +9 -0
  316. data/app/views/trade/admin/trade_promotes/edit.js.erb +3 -0
  317. data/app/views/trade/admin/trade_promotes/index.html.erb +38 -0
  318. data/app/views/trade/admin/trade_promotes/new.html.erb +9 -0
  319. data/app/views/trade/admin/trade_promotes/new.js.erb +3 -0
  320. data/app/views/trade/admin/trade_promotes/show.html.erb +7 -0
  321. data/app/views/trade/admin/trade_promotes/show.js.erb +3 -0
  322. data/app/views/trade/admin/trade_promotes/update.js.erb +1 -0
  323. data/app/views/{buyers → trade/buyers}/_show.html.erb +0 -0
  324. data/app/views/{buyers → trade/buyers}/show.js.erb +0 -0
  325. data/app/views/{goods → trade/goods}/_choose.html.erb +0 -0
  326. data/app/views/{goods → trade/goods}/_good.html.erb +0 -0
  327. data/app/views/{goods → trade/goods}/_good_item.html.erb +0 -0
  328. data/app/views/{goods → trade/goods}/_nav.html.erb +0 -0
  329. data/app/views/{goods → trade/goods}/_search.html.erb +0 -0
  330. data/app/views/{goods → trade/goods}/index.html.erb +0 -0
  331. data/app/views/{goods → trade/goods}/index/_product.html.erb +0 -0
  332. data/app/views/{goods → trade/goods}/item.html.erb +0 -0
  333. data/app/views/{goods → trade/goods}/produce.html.erb +0 -0
  334. data/app/views/trade/goods/show.html.erb +2 -0
  335. data/app/views/{goods → trade/goods}/show/_basic.html.erb +0 -0
  336. data/app/views/{goods → trade/goods}/show/_carousel.html.erb +0 -0
  337. data/app/views/{goods → trade/goods}/show/_items.html.erb +0 -0
  338. data/app/views/{goods → trade/goods}/show/_sales.html.erb +0 -0
  339. data/app/views/{goods → trade/goods}/show/_side.html.erb +0 -0
  340. data/app/views/{goods → trade/goods}/taxon/_breadcrumb.html.erb +0 -0
  341. data/app/views/{goods → trade/goods}/taxon/_nav.html.erb +0 -0
  342. data/app/views/{goods → trade/goods}/taxon/_nav_.html.erb +0 -0
  343. data/app/views/{goods → trade/goods}/taxon/_nav_last.html.erb +0 -0
  344. data/app/views/trade/my/carts/_filter.html.erb +7 -0
  345. data/app/views/trade/my/carts/_form.html.erb +8 -0
  346. data/app/views/trade/my/carts/_show_table.html.erb +28 -0
  347. data/app/views/trade/my/carts/edit.html.erb +9 -0
  348. data/app/views/trade/my/carts/edit.js.erb +3 -0
  349. data/app/views/trade/my/carts/index.html.erb +47 -0
  350. data/app/views/trade/my/carts/new.html.erb +9 -0
  351. data/app/views/trade/my/carts/new.js.erb +3 -0
  352. data/app/views/trade/my/carts/show.html+phone.erb +46 -0
  353. data/app/views/{rails_trade_admin/promote_goods → trade/my/carts}/show.html.erb +0 -0
  354. data/app/views/{rails_trade_my → trade/my}/order_items/_form.html.erb +0 -0
  355. data/app/views/{rails_trade_my → trade/my}/order_items/edit.html.erb +0 -0
  356. data/app/views/{rails_trade_my → trade/my}/order_items/index.html.erb +1 -1
  357. data/app/views/{rails_trade_my → trade/my}/order_items/new.html.erb +0 -0
  358. data/app/views/{rails_trade_my → trade/my}/order_items/show.html.erb +0 -0
  359. data/app/views/{rails_trade_my → trade/my}/orders/_date_form.html.erb +0 -0
  360. data/app/views/{rails_trade_my → trade/my}/orders/_edit.html.erb +2 -2
  361. data/app/views/trade/my/orders/_edit_payment_type.html.erb +12 -0
  362. data/app/views/{rails_trade_my → trade/my}/orders/_form.html.erb +0 -0
  363. data/app/views/{rails_trade_my → trade/my}/orders/destroy.js.erb +0 -0
  364. data/app/views/{rails_trade_my → trade/my}/orders/edit.js.erb +0 -0
  365. data/app/views/trade/my/orders/edit_payment_type.js.erb +4 -0
  366. data/app/views/{rails_trade_my → trade/my}/orders/fail.html.erb +0 -0
  367. data/app/views/trade/my/orders/index.html+phone.erb +37 -0
  368. data/app/views/trade/my/orders/index.html.erb +36 -0
  369. data/app/views/{rails_trade_my → trade/my}/orders/index.json.jbuilder +0 -0
  370. data/app/views/{rails_trade_my → trade/my}/orders/new.html.erb +0 -0
  371. data/app/views/{rails_trade_my → trade/my}/orders/refresh.js.erb +0 -0
  372. data/app/views/trade/my/orders/refund.json.jbuilder +12 -0
  373. data/app/views/trade/my/orders/show.html+phone.erb +3 -0
  374. data/app/views/{rails_trade_my → trade/my}/orders/show.html.erb +3 -3
  375. data/app/views/{rails_trade_my → trade/my}/orders/success.html.erb +0 -2
  376. data/app/views/{rails_trade_my → trade/my}/orders/update.js.erb +1 -1
  377. data/app/views/trade/my/orders/wait.html+wechat.erb +4 -0
  378. data/app/views/trade/my/orders/wxpay_pay.js.erb +16 -0
  379. data/app/views/trade/my/orders/wxpay_pay_err.js.erb +5 -0
  380. data/app/views/{rails_trade_my → trade/my}/payment_methods/_edit.html.erb +1 -1
  381. data/app/views/{rails_trade_my → trade/my}/payment_methods/_form.html.erb +0 -0
  382. data/app/views/{rails_trade_my → trade/my}/payment_methods/_index.html.erb +1 -1
  383. data/app/views/{rails_trade_my → trade/my}/payment_methods/_item.html.erb +1 -1
  384. data/app/views/{rails_trade_my → trade/my}/payment_methods/_new.html.erb +3 -3
  385. data/app/views/{rails_trade_my → trade/my}/payment_methods/create.js.erb +0 -0
  386. data/app/views/{rails_trade_my/addresses → trade/my/payment_methods}/destroy.js.erb +0 -0
  387. data/app/views/{rails_trade_my → trade/my}/payment_methods/edit.js.erb +0 -0
  388. data/app/views/{rails_trade_my → trade/my}/payment_methods/index.html.erb +0 -0
  389. data/app/views/{rails_trade_my → trade/my}/payment_methods/index.js.erb +0 -0
  390. data/app/views/{rails_trade_my → trade/my}/payment_methods/new.js.erb +0 -0
  391. data/app/views/{rails_trade_my → trade/my}/payment_methods/show.html.erb +0 -0
  392. data/app/views/{rails_trade_my/addresses → trade/my/payment_methods}/update.js.erb +0 -0
  393. data/app/views/trade/my/trade_items/_additions.html.erb +12 -0
  394. data/app/views/trade/my/trade_items/_cart_item.js.erb +2 -0
  395. data/app/views/trade/my/trade_items/_single_price.html.erb +6 -0
  396. data/app/views/trade/my/trade_items/_total_price.html.erb +8 -0
  397. data/app/views/trade/my/trade_items/_trade_items.html.erb +68 -0
  398. data/app/views/trade/my/trade_items/create.html.erb +1 -0
  399. data/app/views/{rails_trade_my/cart_items → trade/my/trade_items}/destroy.js.erb +0 -0
  400. data/app/views/trade/my/trade_items/index.json.jbuilder +0 -0
  401. data/app/views/trade/my/trade_items/update.js.erb +1 -0
  402. data/app/views/{rails_trade_my → trade/my}/users/_form.html.erb +0 -0
  403. data/app/views/{rails_trade_my → trade/my}/users/edit.html.erb +0 -0
  404. data/app/views/{rails_trade_my → trade/my}/users/show.html.erb +0 -0
  405. data/app/views/trade/payments/_wxpay_result.html.erb +3 -0
  406. data/app/views/trade/payments/wxpay_result.js.erb +1 -0
  407. data/config/locales/en.enum.yml +47 -0
  408. data/config/locales/en.yml +22 -60
  409. data/config/locales/zh.attributes.yml +75 -0
  410. data/config/locales/zh.controller.yml +51 -0
  411. data/config/locales/zh.enum.yml +58 -0
  412. data/config/locales/zh.help.yml +7 -0
  413. data/config/routes.rb +45 -59
  414. data/lib/rails_trade.rb +9 -19
  415. data/lib/rails_trade/apple_pay.rb +32 -0
  416. data/lib/rails_trade/config.rb +6 -3
  417. data/lib/rails_trade/engine.rb +15 -19
  418. data/lib/rails_trade/version.rb +1 -1
  419. metadata +475 -422
  420. data/app/assets/config/rails_trade_manifest.js +0 -1
  421. data/app/assets/javascripts/controllers/rails_trade_admin/buyers/index.js +0 -15
  422. data/app/assets/javascripts/controllers/rails_trade_admin/buyers/overdue.js +0 -15
  423. data/app/assets/javascripts/controllers/rails_trade_admin/payment_methods/edit.js +0 -1
  424. data/app/assets/javascripts/controllers/rails_trade_admin/payment_methods/index.js +0 -1
  425. data/app/assets/javascripts/controllers/rails_trade_admin/payment_methods/unverified.js +0 -1
  426. data/app/assets/javascripts/controllers/rails_trade_admin/promote_goods/index.js +0 -1
  427. data/app/assets/javascripts/controllers/rails_trade_admin/promotes/edit.js +0 -2
  428. data/app/assets/javascripts/controllers/rails_trade_admin/promotes/index.js +0 -1
  429. data/app/assets/javascripts/controllers/rails_trade_admin/promotes/new.js +0 -2
  430. data/app/assets/javascripts/controllers/rails_trade_admin/serves/edit.js +0 -2
  431. data/app/assets/javascripts/controllers/rails_trade_admin/serves/index.js +0 -1
  432. data/app/assets/javascripts/controllers/rails_trade_admin/serves/new.js +0 -4
  433. data/app/assets/javascripts/controllers/rails_trade_my/cart_items/create.js +0 -3
  434. data/app/assets/javascripts/controllers/rails_trade_my/cart_items/index.js +0 -65
  435. data/app/controllers/areas_controller.rb +0 -18
  436. data/app/controllers/buyers_controller.rb +0 -8
  437. data/app/controllers/payments_controller.rb +0 -50
  438. data/app/controllers/providers_controller.rb +0 -8
  439. data/app/controllers/the_trade_admin/addresses_controller.rb +0 -75
  440. data/app/controllers/the_trade_admin/areas_controller.rb +0 -50
  441. data/app/controllers/the_trade_admin/base_controller.rb +0 -5
  442. data/app/controllers/the_trade_admin/payments_controller.rb +0 -89
  443. data/app/controllers/the_trade_admin/promote_buyers_controller.rb +0 -39
  444. data/app/controllers/the_trade_admin/promote_charges_controller.rb +0 -62
  445. data/app/controllers/the_trade_admin/promote_goods_controller.rb +0 -50
  446. data/app/controllers/the_trade_admin/promotes_controller.rb +0 -105
  447. data/app/controllers/the_trade_admin/providers_controller.rb +0 -121
  448. data/app/controllers/the_trade_admin/serve_charges_controller.rb +0 -67
  449. data/app/controllers/the_trade_admin/serves_controller.rb +0 -107
  450. data/app/controllers/the_trade_my/addresses_controller.rb +0 -50
  451. data/app/controllers/the_trade_my/base_controller.rb +0 -13
  452. data/app/controllers/the_trade_my/buyers_controller.rb +0 -35
  453. data/app/controllers/the_trade_my/cart_items_controller.rb +0 -71
  454. data/app/controllers/the_trade_my/orders_controller.rb +0 -161
  455. data/app/controllers/the_trade_my/providers_controller.rb +0 -44
  456. data/app/models/rails_trade/address.rb +0 -14
  457. data/app/models/rails_trade/area.rb +0 -65
  458. data/app/models/rails_trade/cart_item.rb +0 -185
  459. data/app/models/rails_trade/cart_item_serve.rb +0 -16
  460. data/app/models/rails_trade/concerns/good_able.rb +0 -63
  461. data/app/models/rails_trade/concerns/order_able.rb +0 -48
  462. data/app/models/rails_trade/concerns/promote_fee.rb +0 -54
  463. data/app/models/rails_trade/concerns/serve_fee.rb +0 -41
  464. data/app/models/rails_trade/concerns/summary_service.rb +0 -67
  465. data/app/models/rails_trade/concerns/the_payment.rb +0 -88
  466. data/app/models/rails_trade/concerns/the_trade_buyer.rb +0 -50
  467. data/app/models/rails_trade/concerns/the_trade_user.rb +0 -23
  468. data/app/models/rails_trade/good_partner.rb +0 -8
  469. data/app/models/rails_trade/good_produce.rb +0 -14
  470. data/app/models/rails_trade/order_item.rb +0 -88
  471. data/app/models/rails_trade/order_promote.rb +0 -23
  472. data/app/models/rails_trade/order_serve.rb +0 -23
  473. data/app/models/rails_trade/order_shipment.rb +0 -10
  474. data/app/models/rails_trade/payment_interface/payment_interface_base.rb +0 -8
  475. data/app/models/rails_trade/payment_interface/the_alipay.rb +0 -49
  476. data/app/models/rails_trade/payment_interface/the_wxpay.rb +0 -56
  477. data/app/models/rails_trade/payments/alipay_payment.rb +0 -12
  478. data/app/models/rails_trade/payments/hand_payment.rb +0 -13
  479. data/app/models/rails_trade/payments/paypal_payment.rb +0 -8
  480. data/app/models/rails_trade/payments/stripe_payment.rb +0 -7
  481. data/app/models/rails_trade/produce.rb +0 -18
  482. data/app/models/rails_trade/promote_charges/single_promote_charge.rb +0 -7
  483. data/app/models/rails_trade/promote_charges/total_promote_charge.rb +0 -7
  484. data/app/models/rails_trade/promotes/amount_promote.rb +0 -4
  485. data/app/models/rails_trade/promotes/number_promote.rb +0 -4
  486. data/app/models/rails_trade/provider.rb +0 -25
  487. data/app/models/rails_trade/refunds/bank_refund.rb +0 -5
  488. data/app/models/rails_trade/refunds/hand_refund.rb +0 -5
  489. data/app/models/rails_trade/serve.rb +0 -44
  490. data/app/models/rails_trade/serve_charge.rb +0 -37
  491. data/app/models/rails_trade/serve_charges/single_serve_charge.rb +0 -7
  492. data/app/models/rails_trade/serve_charges/total_serve_charge.rb +0 -7
  493. data/app/models/rails_trade/serve_good.rb +0 -9
  494. data/app/models/rails_trade/serves/number_serve.rb +0 -4
  495. data/app/models/rails_trade/serves/quantity_serve.rb +0 -4
  496. data/app/models/rails_trade/shipment.rb +0 -8
  497. data/app/views/layouts/rails_trade_admin/base.html.erb +0 -25
  498. data/app/views/layouts/rails_trade_my/base.html.erb +0 -28
  499. data/app/views/rails_trade_admin/addresses/_address.html.erb +0 -24
  500. data/app/views/rails_trade_admin/addresses/_edit.html.erb +0 -13
  501. data/app/views/rails_trade_admin/addresses/_form.html.erb +0 -23
  502. data/app/views/rails_trade_admin/addresses/_new.html.erb +0 -13
  503. data/app/views/rails_trade_admin/addresses/create.js.erb +0 -2
  504. data/app/views/rails_trade_admin/addresses/destroy.js.erb +0 -1
  505. data/app/views/rails_trade_admin/addresses/edit.js.erb +0 -39
  506. data/app/views/rails_trade_admin/addresses/index.html.erb +0 -41
  507. data/app/views/rails_trade_admin/addresses/new.js.erb +0 -52
  508. data/app/views/rails_trade_admin/addresses/show.html.erb +0 -4
  509. data/app/views/rails_trade_admin/addresses/update.js.erb +0 -2
  510. data/app/views/rails_trade_admin/areas/_form.html.erb +0 -9
  511. data/app/views/rails_trade_admin/areas/edit.html.erb +0 -16
  512. data/app/views/rails_trade_admin/areas/index.html.erb +0 -43
  513. data/app/views/rails_trade_admin/areas/new.html.erb +0 -11
  514. data/app/views/rails_trade_admin/areas/show.html.erb +0 -1
  515. data/app/views/rails_trade_admin/base/_nav.html.erb +0 -24
  516. data/app/views/rails_trade_admin/base/_nav_bar.html.erb +0 -23
  517. data/app/views/rails_trade_admin/base/_nav_payment.html.erb +0 -25
  518. data/app/views/rails_trade_admin/goods/_form.html.erb +0 -7
  519. data/app/views/rails_trade_admin/orders/_filter.html.erb +0 -20
  520. data/app/views/rails_trade_admin/orders/_form.html.erb +0 -17
  521. data/app/views/rails_trade_admin/orders/_search_form.html.erb +0 -7
  522. data/app/views/rails_trade_admin/orders/index.html.erb +0 -61
  523. data/app/views/rails_trade_admin/orders/show.html.erb +0 -89
  524. data/app/views/rails_trade_admin/payment_methods/create.js.erb +0 -2
  525. data/app/views/rails_trade_admin/payment_orders/_new.html.erb +0 -24
  526. data/app/views/rails_trade_admin/payments/_item.html.erb +0 -49
  527. data/app/views/rails_trade_admin/payments/_search_form.html.erb +0 -15
  528. data/app/views/rails_trade_admin/payments/edit.html.erb +0 -15
  529. data/app/views/rails_trade_admin/payments/index.html.erb +0 -60
  530. data/app/views/rails_trade_admin/payments/new.html.erb +0 -17
  531. data/app/views/rails_trade_admin/promote_buyers/_form.html.erb +0 -6
  532. data/app/views/rails_trade_admin/promote_buyers/index.html.erb +0 -42
  533. data/app/views/rails_trade_admin/promote_charges/_edit.html.erb +0 -13
  534. data/app/views/rails_trade_admin/promote_charges/_form.html.erb +0 -6
  535. data/app/views/rails_trade_admin/promote_charges/_new.html.erb +0 -13
  536. data/app/views/rails_trade_admin/promote_charges/_search_form.html.erb +0 -9
  537. data/app/views/rails_trade_admin/promote_charges/edit.js.erb +0 -8
  538. data/app/views/rails_trade_admin/promote_charges/index.html.erb +0 -49
  539. data/app/views/rails_trade_admin/promote_charges/new.js.erb +0 -8
  540. data/app/views/rails_trade_admin/promote_goods/_form.html.erb +0 -4
  541. data/app/views/rails_trade_admin/promote_goods/_promote_good.json.jbuilder +0 -2
  542. data/app/views/rails_trade_admin/promote_goods/edit.html.erb +0 -14
  543. data/app/views/rails_trade_admin/promote_goods/index.html.erb +0 -37
  544. data/app/views/rails_trade_admin/promote_goods/index.json.jbuilder +0 -1
  545. data/app/views/rails_trade_admin/promote_goods/new.html.erb +0 -13
  546. data/app/views/rails_trade_admin/promote_goods/show.json.jbuilder +0 -1
  547. data/app/views/rails_trade_admin/promotes/_form.html.erb +0 -9
  548. data/app/views/rails_trade_admin/promotes/edit.html.erb +0 -9
  549. data/app/views/rails_trade_admin/promotes/index.html.erb +0 -65
  550. data/app/views/rails_trade_admin/promotes/new.html.erb +0 -9
  551. data/app/views/rails_trade_admin/promotes/show.html.erb +0 -4
  552. data/app/views/rails_trade_admin/providers/_form.html.erb +0 -6
  553. data/app/views/rails_trade_admin/providers/_product.html.erb +0 -12
  554. data/app/views/rails_trade_admin/providers/_side.html.erb +0 -8
  555. data/app/views/rails_trade_admin/providers/area.html.erb +0 -1
  556. data/app/views/rails_trade_admin/providers/channel.html.erb +0 -46
  557. data/app/views/rails_trade_admin/providers/edit.html.erb +0 -16
  558. data/app/views/rails_trade_admin/providers/index.html.erb +0 -27
  559. data/app/views/rails_trade_admin/providers/new.html.erb +0 -21
  560. data/app/views/rails_trade_admin/providers/posts.html.erb +0 -41
  561. data/app/views/rails_trade_admin/providers/products.html.erb +0 -23
  562. data/app/views/rails_trade_admin/providers/show.html.erb +0 -60
  563. data/app/views/rails_trade_admin/refunds/_search_form.html.erb +0 -13
  564. data/app/views/rails_trade_admin/serve_charges/_edit.html.erb +0 -13
  565. data/app/views/rails_trade_admin/serve_charges/_form.html.erb +0 -10
  566. data/app/views/rails_trade_admin/serve_charges/_new.html.erb +0 -13
  567. data/app/views/rails_trade_admin/serve_charges/_search_form.html.erb +0 -10
  568. data/app/views/rails_trade_admin/serve_charges/edit.js.erb +0 -7
  569. data/app/views/rails_trade_admin/serve_charges/index.html.erb +0 -56
  570. data/app/views/rails_trade_admin/serve_charges/new.js.erb +0 -8
  571. data/app/views/rails_trade_admin/serves/_form.html.erb +0 -9
  572. data/app/views/rails_trade_admin/serves/edit.html.erb +0 -9
  573. data/app/views/rails_trade_admin/serves/index.html.erb +0 -80
  574. data/app/views/rails_trade_admin/serves/new.html.erb +0 -9
  575. data/app/views/rails_trade_my/addresses/_edit.html.erb +0 -31
  576. data/app/views/rails_trade_my/addresses/_form.html.erb +0 -23
  577. data/app/views/rails_trade_my/addresses/_new.html.erb +0 -11
  578. data/app/views/rails_trade_my/addresses/create.js.erb +0 -2
  579. data/app/views/rails_trade_my/addresses/edit.js.erb +0 -39
  580. data/app/views/rails_trade_my/addresses/index.html.erb +0 -44
  581. data/app/views/rails_trade_my/addresses/new.js.erb +0 -39
  582. data/app/views/rails_trade_my/addresses/show.html.erb +0 -4
  583. data/app/views/rails_trade_my/base/_nav.html.erb +0 -22
  584. data/app/views/rails_trade_my/buyers/_form.html.erb +0 -5
  585. data/app/views/rails_trade_my/buyers/edit.html.erb +0 -2
  586. data/app/views/rails_trade_my/buyers/show.html.erb +0 -21
  587. data/app/views/rails_trade_my/cart_items/_additions.html.erb +0 -22
  588. data/app/views/rails_trade_my/cart_items/_single_price.html.erb +0 -6
  589. data/app/views/rails_trade_my/cart_items/_total_price.html.erb +0 -8
  590. data/app/views/rails_trade_my/cart_items/index.html.erb +0 -69
  591. data/app/views/rails_trade_my/cart_items/total.js.erb +0 -11
  592. data/app/views/rails_trade_my/cart_items/update.js.erb +0 -8
  593. data/app/views/rails_trade_my/my/index.html.erb +0 -17
  594. data/app/views/rails_trade_my/orders/_edit_payment_type.html.erb +0 -13
  595. data/app/views/rails_trade_my/orders/edit_payment_type.js.erb +0 -6
  596. data/app/views/rails_trade_my/orders/index.html.erb +0 -55
  597. data/app/views/rails_trade_my/orders/update_payment_type.js.erb +0 -3
  598. data/app/views/rails_trade_my/orders/wxpay_pay.js.erb +0 -16
  599. data/app/views/rails_trade_my/orders/wxpay_pay_err.js.erb +0 -5
  600. data/app/views/rails_trade_my/payment_methods/destroy.js.erb +0 -1
  601. data/app/views/rails_trade_my/payment_methods/update.js.erb +0 -2
  602. data/app/views/rails_trade_my/providers/_form.html.erb +0 -5
  603. data/app/views/rails_trade_my/providers/_provider.html.erb +0 -20
  604. data/app/views/rails_trade_my/providers/edit.html.erb +0 -2
  605. data/app/views/rails_trade_my/providers/index.html.erb +0 -12
  606. data/app/views/rails_trade_my/providers/new.html.erb +0 -10
  607. data/app/views/rails_trade_my/providers/show.html.erb +0 -13
  608. data/config/locales/zh.yml +0 -75
  609. data/db/migrate/20150514135720_create_providers.rb +0 -59
  610. data/db/migrate/20170601014520_create_payments.rb +0 -52
  611. data/db/migrate/20170602061859_create_payment_references.rb +0 -12
  612. data/db/migrate/20170702234123_create_orders.rb +0 -56
  613. data/db/migrate/20170714080032_create_payment_strategies.rb +0 -77
  614. data/db/migrate/20171115063702_create_promote_buyers.rb +0 -31
  615. data/db/schema.rb +0 -94
  616. 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
+
@@ -0,0 +1,7 @@
1
+ zh:
2
+ activerecord:
3
+ help:
4
+ promote:
5
+ scope: 是否可以对多个商品进行统一计算
6
+ trade_promote:
7
+ amount: 负数表示减少金额,正数表示增加金额
@@ -1,19 +1,30 @@
1
1
  Rails.application.routes.draw do
2
2
 
3
- scope :admin, as: 'admin', module: 'rails_trade_admin' do
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
- resources :addresses
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 :cart_items, except: [:new] do
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 :cart_item_serves do
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 :order_items
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
- resources :providers
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, as: 'my', module: 'rails_trade_my' do
72
- resource :buyer
73
- resource :provider
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
- post :direct, on: :collection
83
- get :refresh, on: :collection
84
- get :paypal_pay, on: :member
85
- get :alipay_pay, on: :member
86
- get :wxpay_pay, on: :member
87
- patch :stripe_pay, on: :member
88
- get :paypal_execute, on: :member
89
- get :pay, on: :member
90
- get 'payment_type' => :edit_payment_type, on: :member
91
- put 'payment_type' => :update_payment_type, on: :member
92
- patch 'payment_type' => :update_payment_type, on: :member
93
- get 'cancel' => :edit_cancel, on: :member
94
- put 'cancel' => :update_cancel, on: :member
95
- put :refund, on: :member
96
- get :check, on: :member
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
@@ -1,22 +1,12 @@
1
- require 'rails_trade/engine'
2
- require 'rails_trade/config'
1
+ # frozen_string_literal: true
3
2
 
4
- module RailsTrade
3
+ require 'rails_com'
4
+ require 'rails_auth'
5
+ require 'rails_role'
6
+ require 'rails_data'
7
+ require 'rails_audit'
5
8
 
6
- def self.buyer_class
7
- @buyer_class
8
- end
9
+ require_relative 'rails_trade/engine'
10
+ require_relative 'rails_trade/config'
9
11
 
10
- def self.buyer_class=(buyer)
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
@@ -4,9 +4,12 @@ module RailsTrade
4
4
  include ActiveSupport::Configurable
5
5
 
6
6
  configure do |config|
7
- config.admin_class = 'Admin::BaseController'
8
- config.my_class = 'My::BaseController'
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
@@ -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/rails_trade",
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.eager_load_paths += Dir[
10
- "#{config.root}/app/models/rails_trade/concerns",
11
- "#{config.root}/app/models/rails_trade/payment_interface",
12
- "#{config.root}/app/models/rails_trade/payments",
13
- "#{config.root}/app/models/rails_trade/payment_methods",
14
- "#{config.root}/app/models/rails_trade/refunds",
15
- "#{config.root}/app/models/rails_trade/promotes",
16
- "#{config.root}/app/models/rails_trade/serves",
17
- "#{config.root}/app/models/rails_trade/promote_charges",
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
@@ -1,3 +1,3 @@
1
1
  module RailsTrade
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
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.1
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: 2018-09-19 00:00:00.000000000 Z
11
+ date: 2020-02-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rails
14
+ name: rails_com
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '5.0'
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: '5.0'
27
- description: Description of TheSync.
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/config/rails_trade_manifest.js
38
- - app/assets/javascripts/controllers/rails_trade_admin/buyers/index.js
39
- - app/assets/javascripts/controllers/rails_trade_admin/buyers/overdue.js
40
- - app/assets/javascripts/controllers/rails_trade_admin/cart_items/create.js
41
- - app/assets/javascripts/controllers/rails_trade_admin/cart_items/index.js
42
- - app/assets/javascripts/controllers/rails_trade_admin/cart_items/only.js
43
- - app/assets/javascripts/controllers/rails_trade_admin/orders/new.js
44
- - app/assets/javascripts/controllers/rails_trade_admin/payment_methods/edit.js
45
- - app/assets/javascripts/controllers/rails_trade_admin/payment_methods/index.js
46
- - app/assets/javascripts/controllers/rails_trade_admin/payment_methods/new.js
47
- - app/assets/javascripts/controllers/rails_trade_admin/payment_methods/unverified.js
48
- - app/assets/javascripts/controllers/rails_trade_admin/payments/index.js
49
- - app/assets/javascripts/controllers/rails_trade_admin/payments/new.js
50
- - app/assets/javascripts/controllers/rails_trade_admin/promote_buyers/edit.js
51
- - app/assets/javascripts/controllers/rails_trade_admin/promote_buyers/new.js
52
- - app/assets/javascripts/controllers/rails_trade_admin/promote_goods/index.js
53
- - app/assets/javascripts/controllers/rails_trade_admin/promotes/edit.js
54
- - app/assets/javascripts/controllers/rails_trade_admin/promotes/index.js
55
- - app/assets/javascripts/controllers/rails_trade_admin/promotes/new.js
56
- - app/assets/javascripts/controllers/rails_trade_admin/serves/edit.js
57
- - app/assets/javascripts/controllers/rails_trade_admin/serves/index.js
58
- - app/assets/javascripts/controllers/rails_trade_admin/serves/new.js
59
- - app/assets/javascripts/controllers/rails_trade_my/cart_items/create.js
60
- - app/assets/javascripts/controllers/rails_trade_my/cart_items/index.js
61
- - app/controllers/areas_controller.rb
62
- - app/controllers/buyers_controller.rb
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/goods_controller.rb
65
- - app/controllers/payments_controller.rb
66
- - app/controllers/providers_controller.rb
67
- - app/controllers/the_trade_admin/addresses_controller.rb
68
- - app/controllers/the_trade_admin/areas_controller.rb
69
- - app/controllers/the_trade_admin/base_controller.rb
70
- - app/controllers/the_trade_admin/buyers_controller.rb
71
- - app/controllers/the_trade_admin/cart_item_serves_controller.rb
72
- - app/controllers/the_trade_admin/cart_items_controller.rb
73
- - app/controllers/the_trade_admin/order_payments_controller.rb
74
- - app/controllers/the_trade_admin/orders_controller.rb
75
- - app/controllers/the_trade_admin/payment_methods_controller.rb
76
- - app/controllers/the_trade_admin/payment_orders_controller.rb
77
- - app/controllers/the_trade_admin/payment_references_controller.rb
78
- - app/controllers/the_trade_admin/payment_strategies_controller.rb
79
- - app/controllers/the_trade_admin/payments_controller.rb
80
- - app/controllers/the_trade_admin/produces_controller.rb
81
- - app/controllers/the_trade_admin/promote_buyers_controller.rb
82
- - app/controllers/the_trade_admin/promote_charges_controller.rb
83
- - app/controllers/the_trade_admin/promote_goods_controller.rb
84
- - app/controllers/the_trade_admin/promotes_controller.rb
85
- - app/controllers/the_trade_admin/providers_controller.rb
86
- - app/controllers/the_trade_admin/refunds_controller.rb
87
- - app/controllers/the_trade_admin/serve_charges_controller.rb
88
- - app/controllers/the_trade_admin/serves_controller.rb
89
- - app/controllers/the_trade_my/addresses_controller.rb
90
- - app/controllers/the_trade_my/base_controller.rb
91
- - app/controllers/the_trade_my/buyers_controller.rb
92
- - app/controllers/the_trade_my/cart_items_controller.rb
93
- - app/controllers/the_trade_my/order_items_controller.rb
94
- - app/controllers/the_trade_my/orders_controller.rb
95
- - app/controllers/the_trade_my/payment_methods_controller.rb
96
- - app/controllers/the_trade_my/providers_controller.rb
97
- - app/models/rails_trade/address.rb
98
- - app/models/rails_trade/area.rb
99
- - app/models/rails_trade/cart_item.rb
100
- - app/models/rails_trade/cart_item_serve.rb
101
- - app/models/rails_trade/concerns/good_able.rb
102
- - app/models/rails_trade/concerns/order_able.rb
103
- - app/models/rails_trade/concerns/promote_fee.rb
104
- - app/models/rails_trade/concerns/serve_fee.rb
105
- - app/models/rails_trade/concerns/summary_service.rb
106
- - app/models/rails_trade/concerns/the_payment.rb
107
- - app/models/rails_trade/concerns/the_refund.rb
108
- - app/models/rails_trade/concerns/the_trade_buyer.rb
109
- - app/models/rails_trade/concerns/the_trade_user.rb
110
- - app/models/rails_trade/good_partner.rb
111
- - app/models/rails_trade/good_produce.rb
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/order_item.rb
114
- - app/models/rails_trade/order_promote.rb
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/payment_interface/payment_interface_base.rb
119
- - app/models/rails_trade/payment_interface/the_alipay.rb
120
- - app/models/rails_trade/payment_interface/the_paypal.rb
121
- - app/models/rails_trade/payment_interface/the_stripe.rb
122
- - app/models/rails_trade/payment_interface/the_wxpay.rb
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/payment_methods/alipay_method.rb
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/payments/alipay_payment.rb
131
- - app/models/rails_trade/payments/bank_payment.rb
132
- - app/models/rails_trade/payments/hand_payment.rb
133
- - app/models/rails_trade/payments/paypal_payment.rb
134
- - app/models/rails_trade/payments/stripe_payment.rb
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/promote_charges/single_promote_charge.rb
141
- - app/models/rails_trade/promote_charges/total_promote_charge.rb
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/refunds/alipay_refund.rb
148
- - app/models/rails_trade/refunds/bank_refund.rb
149
- - app/models/rails_trade/refunds/hand_refund.rb
150
- - app/models/rails_trade/refunds/paypal_refund.rb
151
- - app/models/rails_trade/refunds/stripe_refund.rb
152
- - app/models/rails_trade/refunds/wxpay_refund.rb
153
- - app/models/rails_trade/serve.rb
154
- - app/models/rails_trade/serve_charge.rb
155
- - app/models/rails_trade/serve_charges/single_serve_charge.rb
156
- - app/models/rails_trade/serve_charges/total_serve_charge.rb
157
- - app/models/rails_trade/serve_good.rb
158
- - app/models/rails_trade/serves/number_serve.rb
159
- - app/models/rails_trade/serves/quantity_serve.rb
160
- - app/models/rails_trade/shipment.rb
161
- - app/views/buyers/_show.html.erb
162
- - app/views/buyers/show.js.erb
163
- - app/views/goods/_choose.html.erb
164
- - app/views/goods/_good.html.erb
165
- - app/views/goods/_good_item.html.erb
166
- - app/views/goods/_nav.html.erb
167
- - app/views/goods/_search.html.erb
168
- - app/views/goods/index.html.erb
169
- - app/views/goods/index/_product.html.erb
170
- - app/views/goods/item.html.erb
171
- - app/views/goods/produce.html.erb
172
- - app/views/goods/show.html.erb
173
- - app/views/goods/show/_basic.html.erb
174
- - app/views/goods/show/_carousel.html.erb
175
- - app/views/goods/show/_items.html.erb
176
- - app/views/goods/show/_sales.html.erb
177
- - app/views/goods/show/_side.html.erb
178
- - app/views/goods/taxon/_breadcrumb.html.erb
179
- - app/views/goods/taxon/_nav.html.erb
180
- - app/views/goods/taxon/_nav_.html.erb
181
- - app/views/goods/taxon/_nav_last.html.erb
182
- - app/views/layouts/rails_trade_admin/base.html.erb
183
- - app/views/layouts/rails_trade_my/base.html.erb
184
- - app/views/rails_trade_admin/addresses/_address.html.erb
185
- - app/views/rails_trade_admin/addresses/_edit.html.erb
186
- - app/views/rails_trade_admin/addresses/_form.html.erb
187
- - app/views/rails_trade_admin/addresses/_new.html.erb
188
- - app/views/rails_trade_admin/addresses/create.js.erb
189
- - app/views/rails_trade_admin/addresses/destroy.js.erb
190
- - app/views/rails_trade_admin/addresses/edit.js.erb
191
- - app/views/rails_trade_admin/addresses/index.html.erb
192
- - app/views/rails_trade_admin/addresses/new.js.erb
193
- - app/views/rails_trade_admin/addresses/show.html.erb
194
- - app/views/rails_trade_admin/addresses/update.js.erb
195
- - app/views/rails_trade_admin/areas/_form.html.erb
196
- - app/views/rails_trade_admin/areas/edit.html.erb
197
- - app/views/rails_trade_admin/areas/index.html.erb
198
- - app/views/rails_trade_admin/areas/new.html.erb
199
- - app/views/rails_trade_admin/areas/show.html.erb
200
- - app/views/rails_trade_admin/base/_nav.html.erb
201
- - app/views/rails_trade_admin/base/_nav_bar.html.erb
202
- - app/views/rails_trade_admin/base/_nav_payment.html.erb
203
- - app/views/rails_trade_admin/buyers/_form.html.erb
204
- - app/views/rails_trade_admin/buyers/_menu.html.erb
205
- - app/views/rails_trade_admin/buyers/_search_form.html.erb
206
- - app/views/rails_trade_admin/buyers/edit.html.erb
207
- - app/views/rails_trade_admin/buyers/index.html.erb
208
- - app/views/rails_trade_admin/buyers/new.html.erb
209
- - app/views/rails_trade_admin/buyers/orders.html.erb
210
- - app/views/rails_trade_admin/buyers/overdue.html.erb
211
- - app/views/rails_trade_admin/buyers/show.html.erb
212
- - app/views/rails_trade_admin/cart_item_serves/_check.html.erb
213
- - app/views/rails_trade_admin/cart_item_serves/_index.html.erb
214
- - app/views/rails_trade_admin/cart_item_serves/_new.html.erb
215
- - app/views/rails_trade_admin/cart_item_serves/_serve.html.erb
216
- - app/views/rails_trade_admin/cart_item_serves/_single.html.erb
217
- - app/views/rails_trade_admin/cart_item_serves/_single_table.html.erb
218
- - app/views/rails_trade_admin/cart_item_serves/_total.html.erb
219
- - app/views/rails_trade_admin/cart_item_serves/_total_table.html.erb
220
- - app/views/rails_trade_admin/cart_item_serves/add.js.erb
221
- - app/views/rails_trade_admin/cart_item_serves/create.js.erb
222
- - app/views/rails_trade_admin/cart_item_serves/destroy.js.erb
223
- - app/views/rails_trade_admin/cart_item_serves/index.js.erb
224
- - app/views/rails_trade_admin/cart_item_serves/new.js.erb
225
- - app/views/rails_trade_admin/cart_item_serves/single.js.erb
226
- - app/views/rails_trade_admin/cart_item_serves/total.js.erb
227
- - app/views/rails_trade_admin/cart_items/_additions.html.erb
228
- - app/views/rails_trade_admin/cart_items/_filter.html.erb
229
- - app/views/rails_trade_admin/cart_items/_good_price.html.erb
230
- - app/views/rails_trade_admin/cart_items/_order_price.html.erb
231
- - app/views/rails_trade_admin/cart_items/_retail_price.html.erb
232
- - app/views/rails_trade_admin/cart_items/_single_price.html.erb
233
- - app/views/rails_trade_admin/cart_items/_total_price.html.erb
234
- - app/views/rails_trade_admin/cart_items/destroy.js.erb
235
- - app/views/rails_trade_admin/cart_items/error.html.erb
236
- - app/views/rails_trade_admin/cart_items/index.html.erb
237
- - app/views/rails_trade_admin/cart_items/only.html.erb
238
- - app/views/rails_trade_admin/cart_items/total.js.erb
239
- - app/views/rails_trade_admin/cart_items/update.js.erb
240
- - app/views/rails_trade_admin/goods/_form.html.erb
241
- - app/views/rails_trade_admin/goods/_item.html.erb
242
- - app/views/rails_trade_admin/goods/_new.html.erb
243
- - app/views/rails_trade_admin/goods/_show.html.erb
244
- - app/views/rails_trade_admin/goods/_show_tr.html.erb
245
- - app/views/rails_trade_admin/goods/create.js.erb
246
- - app/views/rails_trade_admin/goods/destroy.js.erb
247
- - app/views/rails_trade_admin/goods/edit.html.erb
248
- - app/views/rails_trade_admin/goods/edit.js.erb
249
- - app/views/rails_trade_admin/goods/edit_items.html.erb
250
- - app/views/rails_trade_admin/goods/edit_pic.html.erb
251
- - app/views/rails_trade_admin/goods/edit_promote.html.erb
252
- - app/views/rails_trade_admin/goods/index.html.erb
253
- - app/views/rails_trade_admin/goods/new.html.erb
254
- - app/views/rails_trade_admin/goods/new.js.erb
255
- - app/views/rails_trade_admin/goods/show.js.erb
256
- - app/views/rails_trade_admin/goods/update.js.erb
257
- - app/views/rails_trade_admin/order_payments/_index.html.erb
258
- - app/views/rails_trade_admin/order_payments/_new.html.erb
259
- - app/views/rails_trade_admin/order_payments/_payment_orders.html.erb
260
- - app/views/rails_trade_admin/order_payments/_payments.html.erb
261
- - app/views/rails_trade_admin/order_payments/create.js.erb
262
- - app/views/rails_trade_admin/order_payments/create_fail.js.erb
263
- - app/views/rails_trade_admin/order_payments/destroy.js.erb
264
- - app/views/rails_trade_admin/order_payments/index.js.erb
265
- - app/views/rails_trade_admin/order_payments/new.js.erb
266
- - app/views/rails_trade_admin/orders/_addresses.html.erb
267
- - app/views/rails_trade_admin/orders/_filter.html.erb
268
- - app/views/rails_trade_admin/orders/_form.html.erb
269
- - app/views/rails_trade_admin/orders/_invoice_addresses.html.erb
270
- - app/views/rails_trade_admin/orders/_item.html.erb
271
- - app/views/rails_trade_admin/orders/_new_items.html.erb
272
- - app/views/rails_trade_admin/orders/_search_form.html.erb
273
- - app/views/rails_trade_admin/orders/edit.html.erb
274
- - app/views/rails_trade_admin/orders/index.html.erb
275
- - app/views/rails_trade_admin/orders/new.html.erb
276
- - app/views/rails_trade_admin/orders/payments.html.erb
277
- - app/views/rails_trade_admin/orders/refresh.js.erb
278
- - app/views/rails_trade_admin/orders/show.html.erb
279
- - app/views/rails_trade_admin/payment_methods/_edit.html.erb
280
- - app/views/rails_trade_admin/payment_methods/_form.html.erb
281
- - app/views/rails_trade_admin/payment_methods/_index_layout.html.erb
282
- - app/views/rails_trade_admin/payment_methods/_new.html.erb
283
- - app/views/rails_trade_admin/payment_methods/_payment_method.html.erb
284
- - app/views/rails_trade_admin/payment_methods/_search_form.html.erb
285
- - app/views/rails_trade_admin/payment_methods/create.js.erb
286
- - app/views/rails_trade_admin/payment_methods/destroy.js.erb
287
- - app/views/rails_trade_admin/payment_methods/edit.html.erb
288
- - app/views/rails_trade_admin/payment_methods/edit.js.erb
289
- - app/views/rails_trade_admin/payment_methods/index.html.erb
290
- - app/views/rails_trade_admin/payment_methods/mine.html.erb
291
- - app/views/rails_trade_admin/payment_methods/new.html.erb
292
- - app/views/rails_trade_admin/payment_methods/new.js.erb
293
- - app/views/rails_trade_admin/payment_methods/unverified.html.erb
294
- - app/views/rails_trade_admin/payment_methods/update.js.erb
295
- - app/views/rails_trade_admin/payment_orders/_index.html.erb
296
- - app/views/rails_trade_admin/payment_orders/_new.html.erb
297
- - app/views/rails_trade_admin/payment_orders/_orders.html.erb
298
- - app/views/rails_trade_admin/payment_orders/cancel.js.erb
299
- - app/views/rails_trade_admin/payment_orders/create.js.erb
300
- - app/views/rails_trade_admin/payment_orders/create_fail.js.erb
301
- - app/views/rails_trade_admin/payment_orders/new.js.erb
302
- - app/views/rails_trade_admin/payment_orders/raise_fail.js.erb
303
- - app/views/rails_trade_admin/payment_orders/update.js.erb
304
- - app/views/rails_trade_admin/payment_orders/update_fail.js.erb
305
- - app/views/rails_trade_admin/payment_references/_form.html.erb
306
- - app/views/rails_trade_admin/payment_references/_new.html.erb
307
- - app/views/rails_trade_admin/payment_references/destroy.js.erb
308
- - app/views/rails_trade_admin/payment_references/edit.html.erb
309
- - app/views/rails_trade_admin/payment_references/index.html.erb
310
- - app/views/rails_trade_admin/payment_references/new.js.erb
311
- - app/views/rails_trade_admin/payment_references/show.html.erb
312
- - app/views/rails_trade_admin/payment_strategies/_form.html.erb
313
- - app/views/rails_trade_admin/payment_strategies/edit.html.erb
314
- - app/views/rails_trade_admin/payment_strategies/index.html.erb
315
- - app/views/rails_trade_admin/payment_strategies/new.html.erb
316
- - app/views/rails_trade_admin/payments/_form.html.erb
317
- - app/views/rails_trade_admin/payments/_item.html.erb
318
- - app/views/rails_trade_admin/payments/_search_form.html.erb
319
- - app/views/rails_trade_admin/payments/analyze.js.erb
320
- - app/views/rails_trade_admin/payments/dashboard.html.erb
321
- - app/views/rails_trade_admin/payments/edit.html.erb
322
- - app/views/rails_trade_admin/payments/index.html.erb
323
- - app/views/rails_trade_admin/payments/new.html.erb
324
- - app/views/rails_trade_admin/payments/show.html.erb
325
- - app/views/rails_trade_admin/promote_buyers/_form.html.erb
326
- - app/views/rails_trade_admin/promote_buyers/_promote_buyer.json.jbuilder
327
- - app/views/rails_trade_admin/promote_buyers/edit.html.erb
328
- - app/views/rails_trade_admin/promote_buyers/index.html.erb
329
- - app/views/rails_trade_admin/promote_buyers/index.json.jbuilder
330
- - app/views/rails_trade_admin/promote_buyers/new.html.erb
331
- - app/views/rails_trade_admin/promote_buyers/show.html.erb
332
- - app/views/rails_trade_admin/promote_buyers/show.json.jbuilder
333
- - app/views/rails_trade_admin/promote_charges/_edit.html.erb
334
- - app/views/rails_trade_admin/promote_charges/_form.html.erb
335
- - app/views/rails_trade_admin/promote_charges/_new.html.erb
336
- - app/views/rails_trade_admin/promote_charges/_search_form.html.erb
337
- - app/views/rails_trade_admin/promote_charges/edit.js.erb
338
- - app/views/rails_trade_admin/promote_charges/index.html.erb
339
- - app/views/rails_trade_admin/promote_charges/new.js.erb
340
- - app/views/rails_trade_admin/promote_goods/_form.html.erb
341
- - app/views/rails_trade_admin/promote_goods/_promote_good.json.jbuilder
342
- - app/views/rails_trade_admin/promote_goods/edit.html.erb
343
- - app/views/rails_trade_admin/promote_goods/index.html.erb
344
- - app/views/rails_trade_admin/promote_goods/index.json.jbuilder
345
- - app/views/rails_trade_admin/promote_goods/new.html.erb
346
- - app/views/rails_trade_admin/promote_goods/show.html.erb
347
- - app/views/rails_trade_admin/promote_goods/show.json.jbuilder
348
- - app/views/rails_trade_admin/promotes/_form.html.erb
349
- - app/views/rails_trade_admin/promotes/edit.html.erb
350
- - app/views/rails_trade_admin/promotes/index.html.erb
351
- - app/views/rails_trade_admin/promotes/new.html.erb
352
- - app/views/rails_trade_admin/promotes/show.html.erb
353
- - app/views/rails_trade_admin/providers/_form.html.erb
354
- - app/views/rails_trade_admin/providers/_product.html.erb
355
- - app/views/rails_trade_admin/providers/_side.html.erb
356
- - app/views/rails_trade_admin/providers/area.html.erb
357
- - app/views/rails_trade_admin/providers/channel.html.erb
358
- - app/views/rails_trade_admin/providers/edit.html.erb
359
- - app/views/rails_trade_admin/providers/index.html.erb
360
- - app/views/rails_trade_admin/providers/new.html.erb
361
- - app/views/rails_trade_admin/providers/posts.html.erb
362
- - app/views/rails_trade_admin/providers/products.html.erb
363
- - app/views/rails_trade_admin/providers/show.html.erb
364
- - app/views/rails_trade_admin/refunds/_form.html.erb
365
- - app/views/rails_trade_admin/refunds/_logs_table.html.erb
366
- - app/views/rails_trade_admin/refunds/_new.html.erb
367
- - app/views/rails_trade_admin/refunds/_search_form.html.erb
368
- - app/views/rails_trade_admin/refunds/edit.html.erb
369
- - app/views/rails_trade_admin/refunds/index.html.erb
370
- - app/views/rails_trade_admin/refunds/logs.js.erb
371
- - app/views/rails_trade_admin/refunds/new.html.erb
372
- - app/views/rails_trade_admin/refunds/new.js.erb
373
- - app/views/rails_trade_admin/refunds/show.html.erb
374
- - app/views/rails_trade_admin/serve_charges/_edit.html.erb
375
- - app/views/rails_trade_admin/serve_charges/_form.html.erb
376
- - app/views/rails_trade_admin/serve_charges/_new.html.erb
377
- - app/views/rails_trade_admin/serve_charges/_search_form.html.erb
378
- - app/views/rails_trade_admin/serve_charges/edit.js.erb
379
- - app/views/rails_trade_admin/serve_charges/index.html.erb
380
- - app/views/rails_trade_admin/serve_charges/new.js.erb
381
- - app/views/rails_trade_admin/serves/_form.html.erb
382
- - app/views/rails_trade_admin/serves/edit.html.erb
383
- - app/views/rails_trade_admin/serves/index.html.erb
384
- - app/views/rails_trade_admin/serves/new.html.erb
385
- - app/views/rails_trade_my/addresses/_edit.html.erb
386
- - app/views/rails_trade_my/addresses/_form.html.erb
387
- - app/views/rails_trade_my/addresses/_new.html.erb
388
- - app/views/rails_trade_my/addresses/create.js.erb
389
- - app/views/rails_trade_my/addresses/destroy.js.erb
390
- - app/views/rails_trade_my/addresses/edit.js.erb
391
- - app/views/rails_trade_my/addresses/index.html.erb
392
- - app/views/rails_trade_my/addresses/new.js.erb
393
- - app/views/rails_trade_my/addresses/show.html.erb
394
- - app/views/rails_trade_my/addresses/update.js.erb
395
- - app/views/rails_trade_my/base/_nav.html.erb
396
- - app/views/rails_trade_my/buyers/_form.html.erb
397
- - app/views/rails_trade_my/buyers/edit.html.erb
398
- - app/views/rails_trade_my/buyers/show.html.erb
399
- - app/views/rails_trade_my/cart_items/_additions.html.erb
400
- - app/views/rails_trade_my/cart_items/_single_price.html.erb
401
- - app/views/rails_trade_my/cart_items/_total_price.html.erb
402
- - app/views/rails_trade_my/cart_items/destroy.js.erb
403
- - app/views/rails_trade_my/cart_items/index.html.erb
404
- - app/views/rails_trade_my/cart_items/total.js.erb
405
- - app/views/rails_trade_my/cart_items/update.js.erb
406
- - app/views/rails_trade_my/my/index.html.erb
407
- - app/views/rails_trade_my/order_items/_form.html.erb
408
- - app/views/rails_trade_my/order_items/edit.html.erb
409
- - app/views/rails_trade_my/order_items/index.html.erb
410
- - app/views/rails_trade_my/order_items/new.html.erb
411
- - app/views/rails_trade_my/order_items/show.html.erb
412
- - app/views/rails_trade_my/orders/_date_form.html.erb
413
- - app/views/rails_trade_my/orders/_edit.html.erb
414
- - app/views/rails_trade_my/orders/_edit_payment_type.html.erb
415
- - app/views/rails_trade_my/orders/_form.html.erb
416
- - app/views/rails_trade_my/orders/destroy.js.erb
417
- - app/views/rails_trade_my/orders/edit.js.erb
418
- - app/views/rails_trade_my/orders/edit_payment_type.js.erb
419
- - app/views/rails_trade_my/orders/fail.html.erb
420
- - app/views/rails_trade_my/orders/index.html.erb
421
- - app/views/rails_trade_my/orders/index.json.jbuilder
422
- - app/views/rails_trade_my/orders/new.html.erb
423
- - app/views/rails_trade_my/orders/refresh.js.erb
424
- - app/views/rails_trade_my/orders/show.html.erb
425
- - app/views/rails_trade_my/orders/success.html.erb
426
- - app/views/rails_trade_my/orders/update.js.erb
427
- - app/views/rails_trade_my/orders/update_payment_type.js.erb
428
- - app/views/rails_trade_my/orders/wxpay_pay.js.erb
429
- - app/views/rails_trade_my/orders/wxpay_pay_err.js.erb
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
- - lib/tasks/the_trade_tasks.rake
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
- rubyforge_project:
487
- rubygems_version: 2.7.7
540
+ rubygems_version: 3.0.3
488
541
  signing_key:
489
542
  specification_version: 4
490
- summary: Summary of TheSync.
543
+ summary: Rails engine for trade, payment and more
491
544
  test_files: []