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

com.paypal.payments.AuthorizationsCaptureRequest Maven / Gradle / Ivy

There is a newer version: 2.0.0
Show 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
// AuthorizationsCaptureRequest.java
// @version 0.1.0-dev+904328-dirty
// @type request
// @data H4sIAAAAAAAC/+xde2/bRpD//z7FQD2gMSBLiROnrYEDzomdi+7q2Gc7BQ45Q1pxh+LWy112dymZLfLdD/ugxJfiPGT32hJFEXt3Sc57frMcrv8YvCMpDo4GJDeJVOx3YpgUehSRzOQKB8PBCepIscwOD44Gr/24BiKgvAQpZKRIUZghzAuYnIwGw8F/56iKC6JIigaVHhx9uBkO3iKhqGqjfwyui8wSoI1iYjEYDn4hipE5x0DYcZWwwXDwX1hsmalTehxFqDUYeYsCYiXT8CMKmkkmDIyXz8bS8nAwdjOW6mOlSOEJejocXCKh54IXg6OYcI124LecKaSDI6NyHA4ulMxQGYZ6cCRyzj8O72XnghQXhO/bO6E2+xNaY6lrts7WdYKgUS1RgTbSauIWCw2xVPDiECgp9BfxEQa+hhGFMao69eVQm+TMTSmkJfEKdSaFRsgzKUDnTltxziGSacbRXgoyBpMgKC+NEfxCeI7A9NH/5k+fPo9y7v5F/xtn1d8iSf1PqNDkSvxbygRLib8iGm+mR1CRqF+rgUBYviHTSJCZYSn7HS2JaS5Y5AwP5mhWiMKRenwxgYhwjgqIoG7I33oEx+17MhHxnKJ265p0M9qiddhapA0xuW4tdA9/e3x9en58BZyJWz0Ka+pSukdmCjOFGoVxjH6u6IICrd60zFVkf6jeZxj4ZmLhGI9ypVAYsLzgRuf+2m66x6Xqd2HqN8PBG6nSZqy6ICb5skhVC6FTVvfsTq8I7r5AgYoYpDA5cZ5sJdCOrtYGQ1zeRay68WtQG3+TNX8hxkOYbTO6SQ4b/u5NGMhMYt0CMqm8d3s+45zzKrMklbkw1g46U8y3RreNGs+kwKJDi+75Nd7WQ20N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ejExzA9VX660sjTmGmzU64Au8IbK0WDKmUivDEPvfFGWqteojL++Cqbq9eNwUYCEdIZylc1f3+Vy/ojeablA+tabc39BVvivwFDux2xbtG05/5RovmSzwVCj9jmUxHnCiM4/S1nS8LDIUjWE3LBTBkHwjFTa75C/WV8/iy/JpBq3WzvCPDY0N7LSHh2CJQtmNElsFTuW4XwgHWTvmTC7D7Odn9ds1BS62nHNzaNif5Lm/5Lm/5Lm7/vl+Pd0UGg6YoNteE+MvSRoY8M/7TI4Ov9adw+UGIz3EeGPjL0keFvGxke/mCt9TFqm+PZug7ZkgrmSt6iIgt080FfWsuIuQ8nwgb9vZs5/WlcfXzs42MfH/vTuPrTuPrTuPrTuPrTuPrTuHZ0Gte9FXXlVWUHaOya7fFjjx97/Pg3w483O+34cH87x009VDtDw6Cv/MNOPGDdRvqUruebLFSmtuPgLbwEVh8+aCkkutGFtR7q+rrFTsEqKT5FtU1Ds4vTdyeTd/8xs2F4dnL6bnJ6Mhs9VkNcntHOY9Xq4/2xav9/j1W7+TgcvPa95kHXJMt4+Bti41+9gb41Jjvzp5EcDS7Or64H/u9QDY4G4+XBuDyEa1z/Y33jP5p/eerjeHNU2dUty9Zknd5lGBmkPhbYWDo4Onj67OO//B8AAAD//w==
// 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;
/**
 * Captures an authorized payment, by ID.
 */
public class AuthorizationsCaptureRequest extends HttpRequest {

    public AuthorizationsCaptureRequest(String authorizationId) {
        super("/v2/payments/authorizations/{authorization_id}/capture?", "POST", Capture.class);
        try {
            path(path().replace("{authorization_id}", URLEncoder.encode(String.valueOf(authorizationId), "UTF-8")));
        } catch (UnsupportedEncodingException ignored) {}

        header("Content-Type", "application/json");
    }

    public AuthorizationsCaptureRequest payPalRequestId(String payPalRequestId) {
        header("PayPal-Request-Id", String.valueOf(payPalRequestId));
        return this;
    }

    public AuthorizationsCaptureRequest prefer(String prefer) {
        header("Prefer", String.valueOf(prefer));
        return this;
    }



    public AuthorizationsCaptureRequest requestBody(CaptureRequest capture) {
        super.requestBody(capture);
        return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy