Class: Reattract::InviteConversion
- Inherits:
-
Object
- Object
- Reattract::InviteConversion
- Defined in:
- lib/reattract/resources/invite_conversion.rb
Overview
/v1/invite_conversions
Class Method Summary collapse
- .create(user_id:, invite_code: nil, invite_session_id: nil, customer: {}) ⇒ Object
- .list(limit: 20, page: 1, order: ['id desc']) ⇒ Object
Class Method Details
.create(user_id:, invite_code: nil, invite_session_id: nil, customer: {}) ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/reattract/resources/invite_conversion.rb', line 7 def create(user_id:, invite_code: nil, invite_session_id: nil, customer: {}) request.post( body: { organization_user_id: user_id, unique_code: invite_code, invite_session_id: invite_session_id, organization_customer: customer } ) end |
.list(limit: 20, page: 1, order: ['id desc']) ⇒ Object
18 19 20 21 22 23 24 25 26 |
# File 'lib/reattract/resources/invite_conversion.rb', line 18 def list(limit: 20, page: 1, order: ['id desc']) request.get( sort: order, pagination: { limit: limit, page: page } ) end |