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