Class RewardsBankApi
- java.lang.Object
-
- app.cybrid.cybrid_api_bank.client.api.RewardsBankApi
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-07-19T02:53:36.812556Z[Etc/UTC]") public class RewardsBankApi extends Object
-
-
Constructor Summary
Constructors Constructor Description RewardsBankApi()RewardsBankApi(ApiClient apiClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description reactor.core.publisher.Mono<RewardBankModel>createRewards(PostRewardBankModel postRewardBankModel)Create Reward Creates a reward.reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<RewardBankModel>>createRewardsWithHttpInfo(PostRewardBankModel postRewardBankModel)ApiClientgetApiClient()reactor.core.publisher.Mono<RewardBankModel>getReward(String rewardGuid)Get Reward Retrieves a reward.reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<RewardBankModel>>getRewardWithHttpInfo(String rewardGuid)reactor.core.publisher.Mono<RewardListBankModel>listRewards(BigInteger page, BigInteger perPage, String guid, String bankGuid, String customerGuid)Get rewards list Retrieves a listing of rewards.reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<RewardListBankModel>>listRewardsWithHttpInfo(BigInteger page, BigInteger perPage, String guid, String bankGuid, String customerGuid)voidsetApiClient(ApiClient apiClient)
-
-
-
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
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
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
-
-