Class: PlentyClient::Order::CouponCode::Validation

Inherits:
Object
  • Object
show all
Includes:
Endpoint, Request
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

included

Methods included from Endpoint

included

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