Class: Alula::UserTransferReject

Inherits:
RpcResource show all
Defined in:
lib/alula/procedures/user_transfer_reject.rb

Defined Under Namespace

Classes: Response

Class Method Summary collapse

Methods inherited from RpcResource

ok?, request, wrap_payload

Class Method Details

.call(transfer_id:, description:) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
# File 'lib/alula/procedures/user_transfer_reject.rb', line 7

def self.call(transfer_id:, description:)
  request( 
    http_method: :post,
    path: '/rpc/v1/users/transfer/reject',
    payload: {
      id: transfer_id,
      reason: description,
    },
    handler: Response
  )
end