public interface LoyaltyApi
CreateLoyaltyAccountResponse createLoyaltyAccount(CreateLoyaltyAccountRequest body) throws ApiException, IOException
body - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.CompletableFuture<CreateLoyaltyAccountResponse> createLoyaltyAccountAsync(CreateLoyaltyAccountRequest body)
body - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.SearchLoyaltyAccountsResponse searchLoyaltyAccounts(SearchLoyaltyAccountsRequest body) throws ApiException, IOException
body - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.CompletableFuture<SearchLoyaltyAccountsResponse> searchLoyaltyAccountsAsync(SearchLoyaltyAccountsRequest body)
body - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.RetrieveLoyaltyAccountResponse retrieveLoyaltyAccount(String accountId) throws ApiException, IOException
accountId - Required parameter: The ID of the [loyalty account]($m/LoyaltyAccount) to
retrieve.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.CompletableFuture<RetrieveLoyaltyAccountResponse> retrieveLoyaltyAccountAsync(String accountId)
accountId - Required parameter: The ID of the [loyalty account]($m/LoyaltyAccount) to
retrieve.AccumulateLoyaltyPointsResponse accumulateLoyaltyPoints(String accountId, AccumulateLoyaltyPointsRequest body) throws ApiException, IOException
accountId - Required parameter: The [loyalty account]($m/LoyaltyAccount) ID to which
to add the points.body - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.CompletableFuture<AccumulateLoyaltyPointsResponse> accumulateLoyaltyPointsAsync(String accountId, AccumulateLoyaltyPointsRequest body)
accountId - Required parameter: The [loyalty account]($m/LoyaltyAccount) ID to which
to add the points.body - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.AdjustLoyaltyPointsResponse adjustLoyaltyPoints(String accountId, AdjustLoyaltyPointsRequest body) throws ApiException, IOException
accountId - Required parameter: The ID of the [loyalty account]($m/LoyaltyAccount) in
which to adjust the points.body - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.CompletableFuture<AdjustLoyaltyPointsResponse> adjustLoyaltyPointsAsync(String accountId, AdjustLoyaltyPointsRequest body)
accountId - Required parameter: The ID of the [loyalty account]($m/LoyaltyAccount) in
which to adjust the points.body - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.SearchLoyaltyEventsResponse searchLoyaltyEvents(SearchLoyaltyEventsRequest body) throws ApiException, IOException
body - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.CompletableFuture<SearchLoyaltyEventsResponse> searchLoyaltyEventsAsync(SearchLoyaltyEventsRequest body)
body - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.@Deprecated ListLoyaltyProgramsResponse listLoyaltyPrograms() throws ApiException, IOException
ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.@Deprecated CompletableFuture<ListLoyaltyProgramsResponse> listLoyaltyProgramsAsync()
RetrieveLoyaltyProgramResponse retrieveLoyaltyProgram(String programId) throws ApiException, IOException
programId - Required parameter: The ID of the loyalty program or the keyword `main`.
Either value can be used to retrieve the single loyalty program that belongs to the
seller.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.CompletableFuture<RetrieveLoyaltyProgramResponse> retrieveLoyaltyProgramAsync(String programId)
programId - Required parameter: The ID of the loyalty program or the keyword `main`.
Either value can be used to retrieve the single loyalty program that belongs to the
seller.CalculateLoyaltyPointsResponse calculateLoyaltyPoints(String programId, CalculateLoyaltyPointsRequest body) throws ApiException, IOException
programId - Required parameter: The [loyalty program]($m/LoyaltyProgram) ID, which
defines the rules for accruing points.body - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.CompletableFuture<CalculateLoyaltyPointsResponse> calculateLoyaltyPointsAsync(String programId, CalculateLoyaltyPointsRequest body)
programId - Required parameter: The [loyalty program]($m/LoyaltyProgram) ID, which
defines the rules for accruing points.body - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.CreateLoyaltyRewardResponse createLoyaltyReward(CreateLoyaltyRewardRequest body) throws ApiException, IOException
body - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.CompletableFuture<CreateLoyaltyRewardResponse> createLoyaltyRewardAsync(CreateLoyaltyRewardRequest body)
body - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.SearchLoyaltyRewardsResponse searchLoyaltyRewards(SearchLoyaltyRewardsRequest body) throws ApiException, IOException
body - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.CompletableFuture<SearchLoyaltyRewardsResponse> searchLoyaltyRewardsAsync(SearchLoyaltyRewardsRequest body)
body - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.DeleteLoyaltyRewardResponse deleteLoyaltyReward(String rewardId) throws ApiException, IOException
rewardId - Required parameter: The ID of the [loyalty reward]($m/LoyaltyReward) to
delete.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.CompletableFuture<DeleteLoyaltyRewardResponse> deleteLoyaltyRewardAsync(String rewardId)
rewardId - Required parameter: The ID of the [loyalty reward]($m/LoyaltyReward) to
delete.RetrieveLoyaltyRewardResponse retrieveLoyaltyReward(String rewardId) throws ApiException, IOException
rewardId - Required parameter: The ID of the [loyalty reward]($m/LoyaltyReward) to
retrieve.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.CompletableFuture<RetrieveLoyaltyRewardResponse> retrieveLoyaltyRewardAsync(String rewardId)
rewardId - Required parameter: The ID of the [loyalty reward]($m/LoyaltyReward) to
retrieve.RedeemLoyaltyRewardResponse redeemLoyaltyReward(String rewardId, RedeemLoyaltyRewardRequest body) throws ApiException, IOException
rewardId - Required parameter: The ID of the [loyalty reward]($m/LoyaltyReward) to
redeem.body - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.CompletableFuture<RedeemLoyaltyRewardResponse> redeemLoyaltyRewardAsync(String rewardId, RedeemLoyaltyRewardRequest body)
rewardId - Required parameter: The ID of the [loyalty reward]($m/LoyaltyReward) to
redeem.body - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.Copyright © 2022. All rights reserved.