Module: PlentyClient::Order::CouponCode
- Defined in:
- lib/plenty_client/order/coupon_code.rb,
lib/plenty_client/order/coupon_code/contact.rb,
lib/plenty_client/order/coupon_code/validation.rb
Defined Under Namespace
Classes: Contact, Validation
Constant Summary collapse
- UPDATE_COUPON_CODE =
'/orders/{orderId}/coupons/{coupon}'
Class Method Summary collapse
Methods included from Request
Methods included from Endpoint
Class Method Details
.update(order_id, coupon_string, headers = {}, &block) ⇒ Object
12 13 14 15 |
# File 'lib/plenty_client/order/coupon_code.rb', line 12 def update(order_id, coupon_string, headers = {}, &block) post(build_endpoint(UPDATE_COUPON_CODE, order: order_id, coupon_string: coupon_string), headers, &block) end |