Class CouponSetClient
- java.lang.Object
-
- com.inteliqua.rest.EliquaClientBase
-
- com.inteliqua.rest.EliquaClient
-
- com.inteliqua.rest.couponset.client.CouponSetClient
-
- All Implemented Interfaces:
CrudClient<CouponSetCriteria,CouponSetCreateDto,CouponSetUpdateDto>
public class CouponSetClient extends EliquaClient implements CrudClient<CouponSetCriteria,CouponSetCreateDto,CouponSetUpdateDto>
Client responsible for interacting with the coupon set search API. ExtendsEliquaClientand implementsCrudClientto provides full CRUD functionality for coupon sets.
-
-
Field Summary
Fields Modifier and Type Field Description static StringCOUPONSET_SEARCH_URIstatic StringSEARCH_PATH
-
Constructor Summary
Constructors Constructor Description CouponSetClient(String host, EliquaAuthenticationProvider eliquaAuthenticationProvider)Constructs a newCouponSetClientwith the given host and authentication provider.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.qivos.util.rest.common.envelope.APIResponseEnvelopecreate(CouponSetCreateDto requestBody)com.qivos.util.rest.common.envelope.APIResponseEnvelopedelete(String code)StringgetResourceURI()Returns the resource URI for the coupon set search endpoint.com.qivos.util.rest.common.envelope.APIResponseEnvelope<CouponSetSearchResponsePayload>search(SearchRequest<CouponSetCriteria> requestBody)Executes a search for coupon sets based on the providedCouponSetCriteria.com.qivos.util.rest.common.envelope.APIResponseEnvelopesearchExtended(SearchRequest<CouponSetCriteria> requestBody)com.qivos.util.rest.common.envelope.APIResponseEnvelope<CouponSetCreateUpdateResponsePayload>update(CouponSetUpdateDto requestBody, String code)Updates an existing coupon set identified by the given code.
-
-
-
Field Detail
-
COUPONSET_SEARCH_URI
public static final String COUPONSET_SEARCH_URI
- See Also:
- Constant Field Values
-
SEARCH_PATH
public static final String SEARCH_PATH
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CouponSetClient
public CouponSetClient(String host, EliquaAuthenticationProvider eliquaAuthenticationProvider)
Constructs a newCouponSetClientwith the given host and authentication provider.- Parameters:
host- the base URL of the APIeliquaAuthenticationProvider- the provider responsible for authentication
-
-
Method Detail
-
search
public com.qivos.util.rest.common.envelope.APIResponseEnvelope<CouponSetSearchResponsePayload> search(SearchRequest<CouponSetCriteria> requestBody)
Executes a search for coupon sets based on the providedCouponSetCriteria.- Specified by:
searchin interfaceCrudClient<CouponSetCriteria,CouponSetCreateDto,CouponSetUpdateDto>- Parameters:
requestBody- the search request containing the criteria for the coupon set query- Returns:
- an
APIResponseEnvelopecontaining theCouponSetSearchResponsePayload
-
searchExtended
public com.qivos.util.rest.common.envelope.APIResponseEnvelope searchExtended(SearchRequest<CouponSetCriteria> requestBody)
- Specified by:
searchExtendedin interfaceCrudClient<CouponSetCriteria,CouponSetCreateDto,CouponSetUpdateDto>
-
create
public com.qivos.util.rest.common.envelope.APIResponseEnvelope create(CouponSetCreateDto requestBody)
- Specified by:
createin interfaceCrudClient<CouponSetCriteria,CouponSetCreateDto,CouponSetUpdateDto>
-
update
public com.qivos.util.rest.common.envelope.APIResponseEnvelope<CouponSetCreateUpdateResponsePayload> update(CouponSetUpdateDto requestBody, String code)
Updates an existing coupon set identified by the given code.- Specified by:
updatein interfaceCrudClient<CouponSetCriteria,CouponSetCreateDto,CouponSetUpdateDto>- Parameters:
requestBody- the update data encapsulated in aCouponSetUpdateDtocode- the unique identifier of the coupon set to update- Returns:
- an
APIResponseEnvelopecontainingCouponSetCreateUpdateResponsePayload
-
delete
public com.qivos.util.rest.common.envelope.APIResponseEnvelope delete(String code)
- Specified by:
deletein interfaceCrudClient<CouponSetCriteria,CouponSetCreateDto,CouponSetUpdateDto>
-
getResourceURI
public String getResourceURI()
Returns the resource URI for the coupon set search endpoint.- Specified by:
getResourceURIin classEliquaClient- Returns:
- the URI path used in HTTP requests for coupon set search
-
-