Class: PlentyClient::Order::CouponCode::Contact

Inherits:
Object
  • Object
show all
Includes:
Endpoint, Request
Defined in:
lib/plenty_client/order/coupon_code/contact.rb

Constant Summary collapse

LIST_COUPON_CONTACTS =
'/orders/coupons/codes/contacts/{contactId}'.freeze

Class Method Summary collapse

Methods included from Request

included

Methods included from Endpoint

included

Class Method Details

.update(contact_id, headers = {}, &block) ⇒ Object



11
12
13
# File 'lib/plenty_client/order/coupon_code/contact.rb', line 11

def update(contact_id, headers = {}, &block)
  post(build_endpoint(LIST_COUPON_CONTACTS, contact: contact_id), headers, &block)
end