Class CouponsApi


  • public class CouponsApi
    extends Object
    • Constructor Detail

      • CouponsApi

        public CouponsApi()
      • CouponsApi

        public CouponsApi​(ApiClient apiClient)
    • Method Detail

      • getApiClient

        public ApiClient getApiClient()
      • setApiClient

        public void setApiClient​(ApiClient apiClient)
      • getEmailCouponSubscritpionUsingGETCall

        public com.squareup.okhttp.Call getEmailCouponSubscritpionUsingGETCall​(String couponId,
                                                                               String email,
                                                                               ProgressResponseBody.ProgressListener progressListener,
                                                                               ProgressRequestBody.ProgressRequestListener progressRequestListener)
                                                                        throws ApiException
        Build call for getEmailCouponSubscritpionUsingGET
        Parameters:
        couponId - couponId (required)
        email - email (required)
        progressListener - Progress listener
        progressRequestListener - Progress request listener
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • getEmailCouponSubscritpionUsingGET

        public void getEmailCouponSubscritpionUsingGET​(String couponId,
                                                       String email)
                                                throws ApiException
        Send an email with a coupon for new users.
        Parameters:
        couponId - couponId (required)
        email - email (required)
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getEmailCouponSubscritpionUsingGETWithHttpInfo

        public ApiResponse<Void> getEmailCouponSubscritpionUsingGETWithHttpInfo​(String couponId,
                                                                                String email)
                                                                         throws ApiException
        Send an email with a coupon for new users.
        Parameters:
        couponId - couponId (required)
        email - email (required)
        Returns:
        ApiResponse<Void>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getEmailCouponSubscritpionUsingGETAsync

        public com.squareup.okhttp.Call getEmailCouponSubscritpionUsingGETAsync​(String couponId,
                                                                                String email,
                                                                                ApiCallback<Void> callback)
                                                                         throws ApiException
        Send an email with a coupon for new users. (asynchronously)
        Parameters:
        couponId - couponId (required)
        email - email (required)
        callback - The callback to be executed when the API call finishes
        Returns:
        The request call
        Throws:
        ApiException - If fail to process the API call, e.g. serializing the request body object