com.univapay.sdk.resources.MerchantsResource Maven / Gradle / Ivy
The newest version!
package com.univapay.sdk.resources;
import com.univapay.sdk.constants.UnivapayConstants;
import com.univapay.sdk.models.common.IdempotencyKey;
import com.univapay.sdk.models.common.ResourceId;
import com.univapay.sdk.models.common.StoreId;
import com.univapay.sdk.models.request.merchant.MerchantsReq;
import com.univapay.sdk.models.response.PaginatedList;
import com.univapay.sdk.models.response.merchant.MerchantVerificationData;
import com.univapay.sdk.models.response.merchant.MerchantWithConfiguration;
import com.univapay.sdk.models.response.merchant.Transaction;
import com.univapay.sdk.types.CursorDirection;
import com.univapay.sdk.types.ProcessingMode;
import com.univapay.sdk.types.TransactionStatus;
import com.univapay.sdk.types.TransactionType;
import java.time.OffsetDateTime;
import org.jetbrains.annotations.Nullable;
import retrofit2.Call;
import retrofit2.http.*;
/** Resource for managing the merchant's information and history. */
public interface MerchantsResource {
@GET("/verification")
Call getVerification();
@POST("/verification")
Call createVerification(
@Body MerchantsReq dataToPost,
@Header(UnivapayConstants.idempotencyKeyHeaderName) IdempotencyKey idempotencyKey);
@PATCH("/verification")
Call updateVerification(
@Body MerchantsReq dataToPatch,
@Header(UnivapayConstants.idempotencyKeyHeaderName) IdempotencyKey idempotencyKey);
@GET("/transaction_history")
Call> getTransactionHistory(
@Query("limit") @Nullable Integer limit,
@Query("cursor_direction") @Nullable CursorDirection cursorDirection,
@Query("cursor") @Nullable ResourceId cursor,
@Query("from") @Nullable OffsetDateTime from,
@Query("to") @Nullable OffsetDateTime to,
@Query("status") @Nullable TransactionStatus status,
@Query("type") @Nullable TransactionType type,
@Query("mode") @Nullable ProcessingMode mode,
@Query("search") @Nullable String search,
@Query("all") @Nullable Boolean all);
@GET("/stores/{storeId}/transaction_history")
Call> getStoreTransactionHistory(
@Path("storeId") StoreId storeId,
@Query("limit") @Nullable Integer limit,
@Query("cursor_direction") @Nullable CursorDirection cursorDirection,
@Query("cursor") @Nullable ResourceId cursor,
@Query("from") @Nullable OffsetDateTime from,
@Query("to") @Nullable OffsetDateTime to,
@Query("status") @Nullable TransactionStatus status,
@Query("type") @Nullable TransactionType type,
@Query("mode") @Nullable ProcessingMode mode,
@Query("search") @Nullable String search,
@Query("all") @Nullable Boolean all);
@GET("/me")
Call me();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy