class PlentyClient::Payment::Order
Constants
- CREATE_PAYMENT_ORDER_RELATION
- DELETE_ORDERS_PAYMENT
- LIST_ORDERS_PAYMENTS
Public Class Methods
create(payment_id, order_id, body = {})
click to toggle source
# File lib/plenty_client/payment/order.rb, line 18 def create(payment_id, order_id, body = {}) post(build_endpoint(CREATE_PAYMENT_ORDER_RELATION, payment: payment_id, order: order_id), body) end
destroy(payment_id, body = {})
click to toggle source
# File lib/plenty_client/payment/order.rb, line 22 def destroy(payment_id, body = {}) delete(build_endpoint(DELETE_ORDERS_PAYMENT, payment: payment_id), body) end
list(order_id, headers = {}, &block)
click to toggle source
# File lib/plenty_client/payment/order.rb, line 14 def list(order_id, headers = {}, &block) get(build_endpoint(LIST_ORDERS_PAYMENTS, order: order_id), headers, &block) end