Method: Cin7API::PaymentResource#update
- Defined in:
- lib/cin7_api/resources/payment_resource.rb
#update(attributes_array) ⇒ Object
attributes_array = [
{
id: 712,
orderId: 2223,
method: "manual",
amount: 0,
}
] @client.payment.update(attributes_array)
50 51 52 53 |
# File 'lib/cin7_api/resources/payment_resource.rb', line 50 def update(attributes_array) responses = put_request("Payments", body: attributes_array).body responses.map { |attributes| Response.new(attributes) } end |