All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.cardpay.sdk.api.PixAccountDetailsApi Maven / Gradle / Ivy

There is a newer version: 3.82.1
Show newest version
package com.cardpay.sdk.api;

import com.cardpay.sdk.client.CollectionFormats.*;
import com.cardpay.sdk.model.AccountDetailsRequest;
import com.cardpay.sdk.model.PixAccountDetailsResponse;
import retrofit2.Call;
import retrofit2.http.*;

public interface PixAccountDetailsApi {
  /**
   * Get methods account details
   * 
   * @param detailsRequest detailsRequest (required)
   * @param method method (required)
   * @return Call<PixAccountDetailsResponse>
   */
  @Headers({
    "Content-Type:application/json"
  })
  @POST("api/account_details/{method}")
  Call accountDetails(
    @retrofit2.http.Body AccountDetailsRequest detailsRequest, @retrofit2.http.Path("method") String method
  );

  /**
   * Get adapter banks list
   * 
   * @param currency currency (required)
   * @param method method (required)
   * @return Call<Object>
   */
  @GET("api/banks/{method}/{currency}")
  Call banks(
    @retrofit2.http.Path("currency") String currency, @retrofit2.http.Path("method") String method
  );

}