Class: Payrex::Services::CustomerSessionsService
Constant Summary
collapse
- PATH =
"customer_sessions"
Instance Method Summary
collapse
Methods inherited from BaseService
#initialize, #request
Instance Method Details
#create(payload) ⇒ Object
6
7
8
9
10
11
12
13
|
# File 'lib/services/customer_sessions_service.rb', line 6
def create(payload)
request(
method: :post,
object: Payrex::Entities::CustomerSession,
path: PATH,
payload: payload
)
end
|
#retrieve(id) ⇒ Object
15
16
17
18
19
20
21
22
|
# File 'lib/services/customer_sessions_service.rb', line 15
def retrieve(id)
request(
method: :get,
object: Payrex::Entities::CustomerSession,
path: "#{PATH}/#{id}",
payload: {}
)
end
|