Package com.duffel.sdk.api
Class RefundsApi
java.lang.Object
com.duffel.sdk.api.RefundsApi
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2022-08-28T15:13:42.592945+07:00[Asia/Bangkok]")
public class RefundsApi
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<GetRefundById200Response>createRefund(String accept, String duffelVersion, CreateRefundRequest createRefundRequest, String acceptEncoding, String contentType) Create a Refund Create a __Refund__ to refund some money to a customer that they paid using a __Payment Intent__.reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<GetRefundById200Response>>createRefundWithHttpInfo(String accept, String duffelVersion, CreateRefundRequest createRefundRequest, String acceptEncoding, String contentType) reactor.core.publisher.Mono<GetRefundById200Response>getRefundById(String accept, String duffelVersion, String id, String acceptEncoding) Get a single Refund You should use this API to get the complete, up-to-date information about a __Refund__.reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<GetRefundById200Response>>getRefundByIdWithHttpInfo(String accept, String duffelVersion, String id, String acceptEncoding) voidsetApiClient(ApiClient apiClient)
-
Constructor Details
-
RefundsApi
public RefundsApi() -
RefundsApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
createRefund
public reactor.core.publisher.Mono<GetRefundById200Response> createRefund(String accept, String duffelVersion, CreateRefundRequest createRefundRequest, String acceptEncoding, String contentType) throws org.springframework.web.reactive.function.client.WebClientResponseException Create a Refund Create a __Refund__ to refund some money to a customer that they paid using a __Payment Intent__. You must specify the amount and currency. The currency is currently limited to the currency in which the __Payment Intent__ was made.201 - A __Refund__
- Parameters:
accept- All responses from the API are in JSON format with UTF-8 encoding. An `Accept` header is required with every request.duffelVersion- You'll need to send a `Duffel-Version` header with each request so we know which version of the API you want to use. Currently, the only available API version is `beta`.createRefundRequest- The createRefundRequest parameteracceptEncoding- We recommend enabling compression for responses returned by the API, since they can be very large. To enable compression, send an `Accept-Encoding` header. You'll need to configure your HTTP client to decompress responses. Most clients will have this functionality built-in.contentType- All request bodies sent to the API should be in JSON format. A `Content-Type` header is required whenever you're sending a request body (i.e. for POST and PUT requests).- Returns:
- GetRefundById200Response
- Throws:
org.springframework.web.reactive.function.client.WebClientResponseException- if an error occurs while attempting to invoke the API
-
createRefundWithHttpInfo
public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<GetRefundById200Response>> createRefundWithHttpInfo(String accept, String duffelVersion, CreateRefundRequest createRefundRequest, String acceptEncoding, String contentType) throws org.springframework.web.reactive.function.client.WebClientResponseException - Throws:
org.springframework.web.reactive.function.client.WebClientResponseException
-
getRefundById
public reactor.core.publisher.Mono<GetRefundById200Response> getRefundById(String accept, String duffelVersion, String id, String acceptEncoding) throws org.springframework.web.reactive.function.client.WebClientResponseException Get a single Refund You should use this API to get the complete, up-to-date information about a __Refund__.200 - A __Refund__ object
- Parameters:
accept- All responses from the API are in JSON format with UTF-8 encoding. An `Accept` header is required with every request.duffelVersion- You'll need to send a `Duffel-Version` header with each request so we know which version of the API you want to use. Currently, the only available API version is `beta`.id- Duffel's unique identifier for the __Refund__acceptEncoding- We recommend enabling compression for responses returned by the API, since they can be very large. To enable compression, send an `Accept-Encoding` header. You'll need to configure your HTTP client to decompress responses. Most clients will have this functionality built-in.- Returns:
- GetRefundById200Response
- Throws:
org.springframework.web.reactive.function.client.WebClientResponseException- if an error occurs while attempting to invoke the API
-
getRefundByIdWithHttpInfo
public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<GetRefundById200Response>> getRefundByIdWithHttpInfo(String accept, String duffelVersion, String id, String acceptEncoding) throws org.springframework.web.reactive.function.client.WebClientResponseException - Throws:
org.springframework.web.reactive.function.client.WebClientResponseException
-