Class: Fuyou::MemberPoint
- Inherits:
-
Object
- Object
- Fuyou::MemberPoint
- Extended by:
- Base
- Defined in:
- lib/fuyou/member_point.rb
Class Method Summary collapse
-
.create(org_id, points, rate, service_charge) ⇒ Object
福管企业优分购买下单.
-
.rate_info(org_id) ⇒ Object
优分购买费率查询.
Methods included from Base
connection, format_response, http_get, http_post, refresh_token, sign
Class Method Details
.create(org_id, points, rate, service_charge) ⇒ Object
福管企业优分购买下单
16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/fuyou/member_point.rb', line 16 def create(org_id, points, rate, service_charge) = { customNo: Fuyou.config.custom_id, corpAccounts: org_id, goodPoints: points, factorage: rate, factorageAmount: service_charge, customSource: Fuyou.config.custom_source } http_post('/FuyouRest/mjfuguan/fuguanBuyScore', ) end |
.rate_info(org_id) ⇒ Object
优分购买费率查询
7 8 9 10 11 12 13 |
# File 'lib/fuyou/member_point.rb', line 7 def rate_info(org_id) = { customNo: Fuyou.config.custom_id, corpAccounts: org_id } http_post('/FuyouRest/mjfuguan/fuguanQueryRateInfo', ) end |