Class: Payrex::Services::BillingStatementLineItemsService
- Inherits:
-
BaseService
- Object
- BaseService
- Payrex::Services::BillingStatementLineItemsService
show all
- Defined in:
- lib/services/billing_statement_line_items_service.rb
Constant Summary
collapse
- PATH =
"billing_statement_line_items"
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/billing_statement_line_items_service.rb', line 6
def create(payload)
request(
method: :post,
object: Payrex::Entities::BillingStatementLineItem,
path: PATH,
payload: payload
)
end
|
#delete(id) ⇒ Object
33
34
35
36
37
38
39
40
|
# File 'lib/services/billing_statement_line_items_service.rb', line 33
def delete(id)
request(
method: :delete,
object: Payrex::Entities::Deleted,
path: "#{PATH}/#{id}",
payload: {}
)
end
|
#retrieve(id) ⇒ Object
15
16
17
18
19
20
21
22
|
# File 'lib/services/billing_statement_line_items_service.rb', line 15
def retrieve(id)
request(
method: :get,
object: Payrex::Entities::BillingStatementLineItem,
path: "#{PATH}/#{id}",
payload: {}
)
end
|
#update(id, payload) ⇒ Object
24
25
26
27
28
29
30
31
|
# File 'lib/services/billing_statement_line_items_service.rb', line 24
def update(id, payload)
request(
method: :put,
object: Payrex::Entities::BillingStatementLineItem,
path: "#{PATH}/#{id}",
payload: payload
)
end
|