<commit_before>package com.gocardless.resources;

import java.util.Map;

import com.google.gson.annotations.SerializedName;

/**
 * Represents a payment resource returned from the API.
 *
 * Payment objects represent payments from a [customer](#core-endpoints-customers) to a
 * [creditor](#whitelabel-partner-endpoints-creditors), taken against a Direct Debit
 * [mandate](#core-endpoints-mandates).
 * 
 * GoCardless will notify you via a [webhook](#webhooks)
 * whenever the state of a payment changes.
 */
public class Payment {
    private Payment() {
        // blank to prevent instantiation
    }

    private Integer amount;
    private Integer amountRefunded;
    private Integer appFee;
    private String chargeDate;
    private String createdAt;
    private String currency;
    private String description;
    private String id;
    private Links links;
    private Map<String, String> metadata;
    private String reference;
    private Status status;

    /**
     * Amount in pence (GBP), cents (EUR), or öre (SEK).
     */
    public Integer getAmount() {
        return amount;
    }

    /**
     * Amount [refunded](#core-endpoints-refunds) in pence/cents/öre.
     */
    public Integer getAmountRefunded() {
        return amountRefunded;
    }

    /**
     * The amount to be deducted from the payment as the OAuth app's fee, in pence or cents. <p
     * class="beta-notice"><strong>Beta</strong>: This field is part of the <a href='#guides-oauth'>OAuth
     * API</a>, which is currently in beta.</p>
     */
    public Integer getAppFee() {
        return appFee;
    }

    /**
     * A future date on which the payment should be collected. If not specified, the payment will be
     * collected as soon as possible. This must be on or after the [mandate](#core-endpoints-mandates)'s
     * `next_possible_charge_date`, and will be rolled-forwards by GoCardless if it is not a working day.
     */
    public String getChargeDate() {
        return chargeDate;
    }

    /**
     * Fixed [timestamp](#overview-time-zones-dates), recording when this resource was created.
     */
    public String getCreatedAt() {
        return createdAt;
    }

    /**
     * [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217#Active_codes) currency code, currently only
     * "GBP", "EUR", and "SEK" are supported.
     */
    public String getCurrency() {
        return currency;
    }

    /**
     * A human readable description of the payment.
     */<commit_msg>Crankshaft[BU0000022ZSCGV] Client - Java @ 2015-10-05 09:53:56 +0000<commit_after>package com.gocardless.resources;

import java.util.Map;

import com.google.gson.annotations.SerializedName;

/**
 * Represents a payment resource returned from the API.
 *
 * Payment objects represent payments from a [customer](#core-endpoints-customers) to a
 * [creditor](#whitelabel-partner-endpoints-creditors), taken against a Direct Debit
 * [mandate](#core-endpoints-mandates).
 * 
 * GoCardless will notify you via a [webhook](#webhooks)
 * whenever the state of a payment changes.
 */
public class Payment {
    private Payment() {
        // blank to prevent instantiation
    }

    private Integer amount;
    private Integer amountRefunded;
    private String chargeDate;
    private String createdAt;
    private String currency;
    private String description;
    private String id;
    private Links links;
    private Map<String, String> metadata;
    private String reference;
    private Status status;

    /**
     * Amount in pence (GBP), cents (EUR), or öre (SEK).
     */
    public Integer getAmount() {
        return amount;
    }

    /**
     * Amount [refunded](#core-endpoints-refunds) in pence/cents/öre.
     */
    public Integer getAmountRefunded() {
        return amountRefunded;
    }

    /**
     * A future date on which the payment should be collected. If not specified, the payment will be
     * collected as soon as possible. This must be on or after the [mandate](#core-endpoints-mandates)'s
     * `next_possible_charge_date`, and will be rolled-forwards by GoCardless if it is not a working day.
     */
    public String getChargeDate() {
        return chargeDate;
    }

    /**
     * Fixed [timestamp](#overview-time-zones-dates), recording when this resource was created.
     */
    public String getCreatedAt() {
        return createdAt;
    }

    /**
     * [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217#Active_codes) currency code, currently only
     * "GBP", "EUR", and "SEK" are supported.
     */
    public String getCurrency() {
        return currency;
    }

    /**
     * A human readable description of the payment.
     */
{'fraction_non_alphanumeric': 0.10184391080617496, 'fraction_numerical': 0.00879073756432247, 'mean_word_length': 2.801955990220049, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3516101', 'n_tokens_mistral': 1400, 'n_tokens_neox': 1329, 'n_words': 438}