3535import com.xero.models.accounting.Organisations;
3636import com.xero.models.accounting.Overpayments;
3737import com.xero.models.accounting.Payment;
38+ import com.xero.models.accounting.PaymentDelete;
3839import com.xero.models.accounting.PaymentService;
3940import com.xero.models.accounting.PaymentServices;
4041import com.xero.models.accounting.Payments;
@@ -90,7 +91,7 @@ public class AccountingApi {
9091 private ApiClient apiClient;
9192 private static AccountingApi instance = null;
9293 private String userAgent = "Default";
93- private String version = "3.4 .0";
94+ private String version = "3.5 .0";
9495
9596 public AccountingApi() {
9697 this(new ApiClient());
@@ -3974,15 +3975,15 @@ public HttpResponse deleteLinkedTransactionForHttpResponse(String accessToken,
39743975 * <p><b>400</b> - A failed request due to validation error
39753976 * @param xeroTenantId Xero identifier for Tenant
39763977 * @param paymentID Unique identifier for a Payment
3977- * @param payments The payments parameter
3978+ * @param paymentDelete The paymentDelete parameter
39783979 * @param accessToken Authorization token for user set in header of each request
39793980 * @return Payments
39803981 * @throws IOException if an error occurs while attempting to invoke the API
39813982 **/
3982- public Payments deletePayment(String accessToken, String xeroTenantId, UUID paymentID, Payments payments ) throws IOException {
3983+ public Payments deletePayment(String accessToken, String xeroTenantId, UUID paymentID, PaymentDelete paymentDelete ) throws IOException {
39833984 try {
39843985 TypeReference<Payments> typeRef = new TypeReference<Payments>() {};
3985- HttpResponse response = deletePaymentForHttpResponse(accessToken, xeroTenantId, paymentID, payments );
3986+ HttpResponse response = deletePaymentForHttpResponse(accessToken, xeroTenantId, paymentID, paymentDelete );
39863987 return apiClient.getObjectMapper().readValue(response.getContent(), typeRef);
39873988 } catch (HttpResponseException e) {
39883989 XeroApiExceptionHandler handler = new XeroApiExceptionHandler();
@@ -3993,16 +3994,16 @@ public Payments deletePayment(String accessToken, String xeroTenantId, UUID pay
39933994 return null;
39943995 }
39953996
3996- public HttpResponse deletePaymentForHttpResponse(String accessToken, String xeroTenantId, UUID paymentID, Payments payments ) throws IOException {
3997+ public HttpResponse deletePaymentForHttpResponse(String accessToken, String xeroTenantId, UUID paymentID, PaymentDelete paymentDelete ) throws IOException {
39973998 // verify the required parameter 'xeroTenantId' is set
39983999 if (xeroTenantId == null) {
39994000 throw new IllegalArgumentException("Missing the required parameter 'xeroTenantId' when calling deletePayment");
40004001 }// verify the required parameter 'paymentID' is set
40014002 if (paymentID == null) {
40024003 throw new IllegalArgumentException("Missing the required parameter 'paymentID' when calling deletePayment");
4003- }// verify the required parameter 'payments ' is set
4004- if (payments == null) {
4005- throw new IllegalArgumentException("Missing the required parameter 'payments ' when calling deletePayment");
4004+ }// verify the required parameter 'paymentDelete ' is set
4005+ if (paymentDelete == null) {
4006+ throw new IllegalArgumentException("Missing the required parameter 'paymentDelete ' when calling deletePayment");
40064007 }
40074008 if (accessToken == null) {
40084009 throw new IllegalArgumentException("Missing the required parameter 'accessToken' when calling deletePayment");
@@ -4024,7 +4025,7 @@ public HttpResponse deletePaymentForHttpResponse(String accessToken, String xer
40244025
40254026
40264027 HttpContent content = null;
4027- content = apiClient.new JacksonJsonHttpContent(payments );
4028+ content = apiClient.new JacksonJsonHttpContent(paymentDelete );
40284029
40294030 Credential credential = new Credential(BearerToken.authorizationHeaderAccessMethod()).setAccessToken(accessToken);
40304031 HttpTransport transport = apiClient.getHttpTransport();
0 commit comments