jp.gopay.sdk.resources.TransactionTokensResource Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gopay-java-sdk Show documentation
Show all versions of gopay-java-sdk Show documentation
Official Gyro-n Payments Java SDK
package jp.gopay.sdk.resources;
import jp.gopay.sdk.constants.GopayConstants;
import jp.gopay.sdk.models.common.*;
import jp.gopay.sdk.models.common.Void;
import jp.gopay.sdk.models.request.transactiontoken.*;
import jp.gopay.sdk.models.response.GoPayBinaryData;
import jp.gopay.sdk.models.response.PaginatedList;
import jp.gopay.sdk.models.response.transactiontoken.*;
import jp.gopay.sdk.types.*;
import retrofit2.Call;
import retrofit2.http.*;
import javax.annotation.Nullable;
public interface TransactionTokensResource{
@POST("/tokens")
Call create(
@Body CreateReq dataToPost,
@Header(GopayConstants.idempotencyKeyHeaderName) IdempotencyKey idempotencyKey
);
@GET("/stores/{storeId}/tokens/{tokenId}")
Call get(
@Path("storeId") StoreId storeId,
@Path("tokenId") TransactionTokenId tokenId
);
@DELETE("/stores/{storeId}/tokens/{tokenId}")
Call delete(
@Path("storeId") StoreId storeId,
@Path("tokenId") TransactionTokenId tokenId
);
@PATCH("/stores/{storeId}/tokens/{tokenId}")
Call update(
@Path("storeId") StoreId storeId,
@Path("tokenId") TransactionTokenId tokenId,
@Body UpdateReq dataToPatch,
@Header(GopayConstants.idempotencyKeyHeaderName) IdempotencyKey idempotencyKey
);
@GET("/stores/{storeId}/tokens")
Call> list(
@Path("storeId") StoreId storeId,
@Query("limit") @Nullable Integer limit,
@Query("cursor_direction") @Nullable CursorDirection cursorDirection,
@Query("cursor") @Nullable TransactionTokenId cursor,
@Query("all") @Nullable Boolean all,
@Query("search") @Nullable String search,
@Query("mode") @Nullable ProcessingMode mode,
@Query("type") @Nullable TransactionTokenType type,
@Query("customer_id") @Nullable GopayCustomerId customerId
);
@GET("/tokens")
Call> listMerchant(
@Query("limit") @Nullable Integer limit,
@Query("cursor_direction") @Nullable CursorDirection cursorDirection,
@Query("cursor") @Nullable TransactionTokenId cursor,
@Query("all") @Nullable Boolean all,
@Query("search") @Nullable String search,
@Query("mode") @Nullable ProcessingMode mode,
@Query("type") @Nullable TransactionTokenType type,
@Query("customer_id") @Nullable GopayCustomerId customerId
);
@POST("/tokens/alias")
Call createAlias(
@Body TemporaryTokenAliasReq dataToPost,
@Header(GopayConstants.idempotencyKeyHeaderName) IdempotencyKey idempotencyKey
);
@GET("/stores/{storeId}/tokens/alias/{aliasKey}")
Call getAlias(
@Path("storeId") StoreId storeId,
@Path("aliasKey") TokenAliasKey aliasKey
);
@GET("/stores/{storeId}/tokens/alias/{aliasKey}")
Call getAliasAsImage(
@Path("storeId") StoreId storeId,
@Path("aliasKey") TokenAliasKey aliasKey,
@Query("media") @Nullable TemporaryTokenAliasMedia media,
@Query("size") @Nullable Integer size,
@Query("logo") @Nullable TemporaryTokenAliasQRLogo logo,
@Query("color") @Nullable String color
);
@POST("/stores/{storeId}/tokens/alias/{aliasKey}")
Call getAliasAsImage(
@Path("storeId") StoreId storeId,
@Path("aliasKey") TokenAliasKey aliasKey,
@Body TemporaryTokenAliasDisplayReq dataToPost
);
@DELETE("/stores/{storeId}/tokens/alias/{aliasKey}")
Call deleteAlias(
@Path("storeId") StoreId storeId,
@Path("aliasKey") TokenAliasKey aliasKey
);
@POST("/stores/{storeId}/tokens/{tokenId}/confirm")
Call confirm(
@Path("storeId") StoreId storeId,
@Path("tokenId") TransactionTokenId tokenId,
@Body ConfirmTransactionTokenReq dataToPost,
@Header(GopayConstants.idempotencyKeyHeaderName) IdempotencyKey idempotencyKey
);
}