Class RewardsBankApi


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               date="2023-01-03T18:30:54.338494Z[Etc/UTC]")
    public class RewardsBankApi
    extends Object
    • Constructor Detail

      • RewardsBankApi

        public RewardsBankApi()
      • RewardsBankApi

        @Autowired
        public RewardsBankApi​(ApiClient apiClient)
    • Method Detail

      • getApiClient

        public ApiClient getApiClient()
      • setApiClient

        public void setApiClient​(ApiClient apiClient)
      • createRewards

        public reactor.core.publisher.Mono<RewardBankModel> createRewards​(PostRewardBankModel postRewardBankModel)
                                                                   throws org.springframework.web.reactive.function.client.WebClientResponseException
        Create Reward Creates a reward. Required scope: **rewards:execute**

        201 - reward created

        400 - Invalid requests - malformed authentication header

        401 - Unauthorized - Authentication failed,

        403 - Invalid scope

        Parameters:
        postRewardBankModel - The postRewardBankModel parameter
        Returns:
        RewardBankModel
        Throws:
        org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
      • createRewardsWithHttpInfo

        public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<RewardBankModel>> createRewardsWithHttpInfo​(PostRewardBankModel postRewardBankModel)
                                                                                                                        throws org.springframework.web.reactive.function.client.WebClientResponseException
        Throws:
        org.springframework.web.reactive.function.client.WebClientResponseException
      • getReward

        public reactor.core.publisher.Mono<RewardBankModel> getReward​(String rewardGuid)
                                                               throws org.springframework.web.reactive.function.client.WebClientResponseException
        Get Reward Retrieves a reward. Required scope: **rewards:read**

        200 - reward found

        401 - Unauthorized - Authentication failed,

        403 - Invalid scope

        404 - reward not found

        Parameters:
        rewardGuid - Identifier for the reward.
        Returns:
        RewardBankModel
        Throws:
        org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
      • getRewardWithHttpInfo

        public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<RewardBankModel>> getRewardWithHttpInfo​(String rewardGuid)
                                                                                                                    throws org.springframework.web.reactive.function.client.WebClientResponseException
        Throws:
        org.springframework.web.reactive.function.client.WebClientResponseException
      • listRewards

        public reactor.core.publisher.Mono<RewardListBankModel> listRewards​(BigInteger page,
                                                                            BigInteger perPage,
                                                                            String guid,
                                                                            String bankGuid,
                                                                            String customerGuid)
                                                                     throws org.springframework.web.reactive.function.client.WebClientResponseException
        Get rewards list Retrieves a listing of rewards. Required scope: **rewards:read**

        200 - get list of rewards

        400 - Invalid requests - malformed authentication header

        401 - Unauthorized - Authentication failed,

        403 - Invalid scope

        Parameters:
        page - The page index to retrieve.
        perPage - The number of entities per page to return.
        guid - Comma separated reward_guids to list rewards for.
        bankGuid - Comma separated bank_guids to list rewards for.
        customerGuid - Comma separated customer_guids to list rewards for.
        Returns:
        RewardListBankModel
        Throws:
        org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
      • listRewardsWithHttpInfo

        public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<RewardListBankModel>> listRewardsWithHttpInfo​(BigInteger page,
                                                                                                                                 BigInteger perPage,
                                                                                                                                 String guid,
                                                                                                                                 String bankGuid,
                                                                                                                                 String customerGuid)
                                                                                                                          throws org.springframework.web.reactive.function.client.WebClientResponseException
        Throws:
        org.springframework.web.reactive.function.client.WebClientResponseException