com.paypal.payments.CapturesRefundRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com.liferay.commerce.payment.method.paypal
Show all versions of com.liferay.commerce.payment.method.paypal
Liferay Commerce Payment Method PayPal
The newest version!
// This class was generated on Wed, 22 Aug 2018 20:48:41 PDT by version 0.1.0-dev+904328-dirty of Braintree SDK Generator
// CapturesRefundRequest.java
// @version 0.1.0-dev+904328-dirty
// @type request
// @data H4sIAAAAAAAC/+xdbW/bOPJ///8UA+8f2AZw7DZtursBDri0Sa/Z2za5JF3gkAtiWhxb3FCkSlJ2tIt+9wMfZOuxSVsn3evqRYFmhpJmhsPfPIii/xi8JQkO9gYRSU2mUI8UzjJBB8PBAepIsdQwKQZ7g1NH1kAgjKSQkjxBYYYwzeHoYASvpAICs4xz8DcZAhMRzygCEYBJanJ7DZeEAhNgYoSfz47fgsL3GWoDU0nz4i4pUYaR1hv9J3v8+GkUSYruf0gSmQnjqeM1GeT0N4xM95MGw8G/MlT5CVEkQYNKD/YuLoeD10goqgr1j8F5nloraaOYmA+Gg1+JYmTKMVhvPzOxVOx34qw1HPwT8w5O1ar7UYRag5HXKGCmZBL+i4KmkgkD48WTsSSZiXfGjmOl3leK5F6gx8PBKRJ6LHg+2JsRrtES3mdMIR3sGZXhcHCiZIrKMNSDPZFx/mF4qzonJD8hfPvUm2v7iFZUauNW1TqPETSqBSrQRirUcI25hplU8GwXKMn1J+kRCJ+jiMIZqqr0BakpcupY1rWD8Ap1KoVGyFIpQGdutmYZh0gmKUd7KciZ86/gWiP4lfAMgek975EZ9+7o/+Ks/NfaWRWaTIm/JUywhPCGL4+gZFE/1q7EMHwtppEgU8MS9jtaEZNMsMg5HkzRLBH9Utg/OYKIcI4KiKCO5G89gv3mPcPK025cXW5GG7IOG4O0ISbTzQVqH/56//zweP8MOBPXehTGVK10i80Upgo1CuMUvavpwgTaedMyU5H9T/k+BeIwMXeKR5lSKAxYXXA95/7adrnHxdRvwtUvh4NXUiV1rDohJv40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Xr9Og0D1hynNAEancTaxLpCBVMlUMDVE5LKzCwrXRLDA/3bHXZtqDg9syXRyDoTO+qcbaHcpmIw3hVz4tbX/l1zWizyP7PLLPI7/hRlvnuy93yn31lVdBavl1BMcq4DecOL7hrOTMP+PA56tdEl/RFb8ueYnVnQZXN3j4C+8fofw259o5RYHUuSl6GedlWeOQZk9ODt8eHL39x8Ti7OTV/tEvhweTDWly5z3fWUpbT5Ss0vsTJf+8J0pefhgOXvqvvcJckzTl4Qc4xr9533xtTPrGnwe2Nzg5Pjsf+B9xGOwNxoudcYjyelz8HM/4j/UPNnwYr36b5+yapStJDm9SjAxSv94tTA72dh4/+fB//wUAAP//
// DO NOT EDIT
package com.paypal.payments;
import com.paypal.http.*;
import java.util.*;
import java.util.stream.Collectors;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
/**
* Refunds a captured payment, by ID. For a full refund, include an empty payload in the JSON request body. For a partial refund, include an amount
object in the JSON request body.
*/
public class CapturesRefundRequest extends HttpRequest {
public CapturesRefundRequest(String captureId) {
super("/v2/payments/captures/{capture_id}/refund?", "POST", Refund.class);
try {
path(path().replace("{capture_id}", URLEncoder.encode(String.valueOf(captureId), "UTF-8")));
} catch (UnsupportedEncodingException ignored) {}
header("Content-Type", "application/json");
}
public CapturesRefundRequest authorization(String authorization) {
header("Authorization", String.valueOf(authorization));
return this;
}
public CapturesRefundRequest payPalRequestId(String payPalRequestId) {
header("PayPal-Request-Id", String.valueOf(payPalRequestId));
return this;
}
public CapturesRefundRequest prefer(String prefer) {
header("Prefer", String.valueOf(prefer));
return this;
}
public CapturesRefundRequest requestBody(RefundRequest refundRequest) {
super.requestBody(refundRequest);
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy