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}'.freeze
Class Method Summary collapse
Methods included from Endpoint
Methods included from Request
delete, get, patch, post, put, request
Class Method Details
.update(coupon_string, headers = {}, &block) ⇒ Object
11 12 13 14 |
# File 'lib/plenty_client/order/coupon_code/validation.rb', line 11 def update(coupon_string, headers = {}, &block) post(build_endpoint(VALIDATE_COUPON, coupon_string: coupon_string), headers, &block) end |