com.paypal.orders.Capture Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of checkout-sdk Show documentation
Show all versions of checkout-sdk Show documentation
PayPal SDK for integrating with the Checkout REST APIs
// This class was generated on Tue, 04 Sep 2018 12:15:14 PDT by version 0.1.0-dev+904328-dirty of Braintree SDK Generator
// Capture.java
// @version 0.1.0-dev+904328-dirty
// @type object
// @data H4sIAAAAAAAC/+w8628jt/Hff3/FQPkBOQOydLk7O4k/1Xd2Grfx2bB9BQrXkKjlSMuaS25IrmS1yP9eDLm72pdiJyc7bbIfDEMzfMyL8+Bj/z24Wac4OBp8YKnLDA6Gg78xI9hM4keWEGIwHPwV15sfJ2gjI1IntBocDY4hCh05pGydoHKjwXBwbAxbh4FfDwdXyPiFkuvB0ZxJiwT4MRMGeQm4NDpF4wTawdFtSdK5VrhuE8QSnSlXI6sE1Ym7iRGizBhU0RqY4hDawVwbYDAXiqlIMAnOMGVZRL2GYLMoBmaBwYxJpiIEbQregGe4O/6sM0It2gwWJE8izbHGZxPTZvfWxQZxP4qZYZFDA2fXF/vv3nz19UYQ1Pfu1ZjryI6FcrgwjAYYc2EwcmOD1o2LxvvU2I73wMXMgeConJgLtOAqov1FEnEmawhEZVL+NHxUKksms7o0CkhbCh4zhFUsohgSsYgdzPDoH9nr12+jTPr/GH5JEX4dK/CyQOOtI2eNOJXiHmH6l8u/T4MQmEFQ2oFbpyJiUq5hboLtMDkKg46LURtzAMdIJEyWPbrnuvl4UpnLZjMuloIjJwo1uFhnlinuYts93bjg8DttvJ5MLnxQWTJDA3peEpJKFqHNF0TNQoZgEeH2QwH7QIbwS81mF5Zx9wTbiAwyhxMnksZ6qcHbdsKZQ+8YqMUQhILbM+XQKHR1HEkoYe7uVexcao/GY6e1tCOBbj7SZjGOXSLHZh69ffv22y8seuXuH4wO90ZwjZFW3HpdlppYxUJixXDAVlrptGZNM6mj+x8z7bCqZeuMVosA+ahdYd3jKhxuvPYXmWQG8CE1aC1ZXWo0GZSFR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p/tfl2zMNraSccbmwaif2nTv7TpX9r8bl/abPEOCl2Xb6iBe8/Qe4beM/zRPEOo9ydzxMauUwXce4beM/Se4XfrGS4lc3NtEvgOO3Yv0hxLvqCx9dvAbN9vK1qGRW+cIoNAtP4BTyL861Y7JOzM6Hs0bIEen+vLWh0J/3Ai36B/dDPnsP96Qe8fe//Y+8edZE7FzvZ7ZrEzg2onT1vyprA7bctDhuLNOqxiXb6Z9Zjw5J3cxzyTcyFlAOePdW+qfYUFJq2Ge6VXipxI8Qz3JbyGFKhc85lyFdoWQprNpIg26zoYP0tTCN998IdXVemMAzNwppzRPIvCqzqbpak2DjJL4cCihVc0Do4WI3hvmFA3BhEqRhOiRzgU24NVjCYXU3jDPGGcG7TW3zDLZ54ITuKllceWTEji/IU2Qms01U8NGpi2hIW/W8GCe/CfCvB9IO/z+R+o+JSSBg7fVV67erfBpNQrUiDOtQk3fd4cHGxrxeYuP7oKc9D6DRP8KZ90AwErFmoE3+sVLtEMfa/wYJ+cIYsiTMlyEvYgkiwBiWrh4mBYqs49KfTNwbvWQ938oB2WaIpoQ85QQaa8kPhTqQR8ENb9xp/dqFhw44ZWFb7tWwj5K/6zkyKckY+BhNl75CQgG06dvRbyHiyKfJqTu/vwfYj8PJWWaHG3wnCfAgrMxd7sZ8Ggn2Em14AqMmuvWJ9IQWp0agQ6ZtawJIaV33Unx/z2DfXNbHAO/oJW8ejWZnJX+/BPqKgrR5UdSWMXts8f+/yxzx9/Z/nj3U5vfJB9BNRzXWdoGPR1mOwkJKzbSJ/wEt9koYLangdv4SVn9fmdlkFmG7ewSlDX6xZCwSpe/xzVFIaml6cfT84+/nlKbnh6cvrx7PRkOnqpC3FZyjs/q1aH959V++/9rNrdT//3HwAAAP//
// DO NOT EDIT
package com.paypal.orders;
import java.util.Map;
import java.util.HashMap;
import java.util.List;
import java.util.ArrayList;
import com.braintreepayments.http.annotations.*;
/**
* A captured payment.
*/
@Model
public class Capture {
// Required default constructor
public Capture() {}
/**
* The currency and amount for a financial transaction, such as a balance or payment due.
*/
@SerializedName("amount")
private Money amount;
public Money amount() { return amount; }
public Capture amount(Money amount) {
this.amount = amount;
return this;
}
/**
* The date and time, in [Internet date and time format](https://tools.ietf.org/html/rfc3339#section-5.6). Seconds are required while fractional seconds are optional.Note: The regular expression provides guidance but does not reject all invalid dates.
*/
@SerializedName("create_time")
private String createTime;
public String createTime() { return createTime; }
public Capture createTime(String createTime) {
this.createTime = createTime;
return this;
}
/**
* The funds that are held on behalf of the merchant.
*/
@SerializedName("disbursement_mode")
private String disbursementMode;
public String disbursementMode() { return disbursementMode; }
public Capture disbursementMode(String disbursementMode) {
this.disbursementMode = disbursementMode;
return this;
}
/**
* Indicates whether you can make additional captures against the authorized payment. Set to `true` if you do not intend to capture additional payments against the authorization. Set to `false` if you intend to capture additional payments against the authorization.
*/
@SerializedName("final_capture")
private Boolean finalCapture;
public Boolean finalCapture() { return finalCapture; }
public Capture finalCapture(Boolean finalCapture) {
this.finalCapture = finalCapture;
return this;
}
/**
* The PayPal-generated ID for the captured payment.
*/
@SerializedName("id")
private String id;
public String id() { return id; }
public Capture id(String id) {
this.id = id;
return this;
}
/**
* The API caller-provided external invoice number for this order. Appears in both the payer's transaction history and the emails that the payer receives.
*/
@SerializedName("invoice_id")
private String invoiceId;
public String invoiceId() { return invoiceId; }
public Capture invoiceId(String invoiceId) {
this.invoiceId = invoiceId;
return this;
}
/**
* An array of related [HATEOAS links](/docs/api/overview/#hateoas-links).
*/
@SerializedName(value = "links", listClass = LinkDescription.class)
private List links;
public List links() { return links; }
public Capture links(List links) {
this.links = links;
return this;
}
/**
* The level of protection offered as defined by [PayPal Seller Protection for Merchants](https://www.paypal.com/us/webapps/mpp/security/seller-protection).
*/
@SerializedName("seller_protection")
private SellerProtection sellerProtection;
public SellerProtection sellerProtection() { return sellerProtection; }
public Capture sellerProtection(SellerProtection sellerProtection) {
this.sellerProtection = sellerProtection;
return this;
}
/**
* The detailed breakdown of the captured payment.
*/
@SerializedName("seller_receivable_breakdown")
private MerchantReceivableBreakdown sellerReceivableBreakdown;
public MerchantReceivableBreakdown sellerReceivableBreakdown() { return sellerReceivableBreakdown; }
public Capture sellerReceivableBreakdown(MerchantReceivableBreakdown sellerReceivableBreakdown) {
this.sellerReceivableBreakdown = sellerReceivableBreakdown;
return this;
}
/**
* The status of the captured payment.
*/
@SerializedName("status")
private String status;
public String status() { return status; }
public Capture status(String status) {
this.status = status;
return this;
}
/**
* The details of the captured payment status.
*/
@SerializedName("status_details")
private StatusDetails statusDetails;
public StatusDetails statusDetails() { return statusDetails; }
public Capture statusDetails(StatusDetails statusDetails) {
this.statusDetails = statusDetails;
return this;
}
/**
* The date and time, in [Internet date and time format](https://tools.ietf.org/html/rfc3339#section-5.6). Seconds are required while fractional seconds are optional.Note: The regular expression provides guidance but does not reject all invalid dates.
*/
@SerializedName("update_time")
private String updateTime;
public String updateTime() { return updateTime; }
public Capture updateTime(String updateTime) {
this.updateTime = updateTime;
return this;
}
}