
app.cybrid.cybrid_api_bank.client.apis.CustomersApi.kt Maven / Gradle / Ivy
package app.cybrid.cybrid_api_bank.client.apis
import app.cybrid.cybrid_api_bank.client.infrastructure.CollectionFormats.*
import retrofit2.http.*
import retrofit2.Response
import okhttp3.RequestBody
import app.cybrid.cybrid_api_bank.client.models.CustomerBankModel
import app.cybrid.cybrid_api_bank.client.models.CustomerListBankModel
import app.cybrid.cybrid_api_bank.client.models.ErrorResponseBankModel
import app.cybrid.cybrid_api_bank.client.models.PostCustomerBankModel
interface CustomersApi {
/**
* Create Customer
* Creates a customer. ## Customer Type Customer resources are an abstraction for real world individuals and businesses on the Cybrid Platform and are used throughout the platform to perform high level operations, e.g., create a quote, execute a trade, etc.. Customers can have additional resources attached to them, e.g., identity records, accounts, etc. At present, Customer's can be created with type `individual`. Required scope: **customers:execute**
* Responses:
* - 201: customer created
* - 400: Invalid requests - malformed authentication header
* - 401: Unauthorized - Authentication failed, invalid subject
* - 403: Invalid scope
*
* @param postCustomerBankModel
* @return [CustomerBankModel]
*/
@POST("api/customers")
suspend fun createCustomer(@Body postCustomerBankModel: PostCustomerBankModel): Response
/**
* Get Customer
* Retrieves a customer. Required scope: **customers:read**
* Responses:
* - 200: customer found
* - 400: Invalid requests - malformed authentication header
* - 401: Unauthorized - Authentication failed, invalid subject
* - 403: Invalid scope
* - 404: customer not found
*
* @param customerGuid Identifier for the customer.
* @return [CustomerBankModel]
*/
@GET("api/customers/{customer_guid}")
suspend fun getCustomer(@Path("customer_guid") customerGuid: kotlin.String): Response
/**
* Get customers list
* Retrieves a listing of customers. Required scope: **customers:read**
* Responses:
* - 200: get list of customers
* - 400: Invalid requests - malformed authentication header
* - 401: Unauthorized - Authentication failed, invalid subject,
* - 403: Invalid scope
*
* @param page (optional)
* @param perPage (optional)
* @param bankGuid Comma separated bank_guids to list customers for. (optional)
* @param guid Comma separated customer_guids to list customers for. (optional)
* @return [CustomerListBankModel]
*/
@GET("api/customers")
suspend fun listCustomers(@Query("page") page: java.math.BigDecimal? = null, @Query("per_page") perPage: java.math.BigDecimal? = null, @Query("bank_guid") bankGuid: kotlin.String? = null, @Query("guid") guid: kotlin.String? = null): Response
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy