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

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

build_endpoint, routes

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