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

com.coinbase.domain.transaction.payment.CbPaymentMethod Maven / Gradle / Ivy

package com.coinbase.domain.transaction.payment;

import javax.annotation.Generated;

import com.coinbase.domain.account.CbAccountRef;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.coinbase.domain.price.CbAmount;
/**
 * The MIT License (MIT)
 *
 *	Copyright (c) 2021 antlen
 *
 *	Permission is hereby granted, free of charge, to any person obtaining a copy
 *	of this software and associated documentation files (the "Software"), to deal
 *	in the Software without restriction, including without limitation the rights
 *	to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 *	copies of the Software, and to permit persons to whom the Software is
 *	furnished to do so, subject to the following conditions:
 *
 *	The above copyright notice and this permission notice shall be included in all
 *	copies or substantial portions of the Software.
 *
 *	THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 *	IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 *	FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 *	AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 *	LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 *	OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 *	SOFTWARE.
 *
 * ------------------------------------------------
 *
 * @author antlen
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
        "id",
        "type",
        "name",
        "currency",
        "primary_buy",
        "primary_sell",
        "instant_buy",
        "instant_sell",
        "created_at",
        "updated_at",
        "resource",
        "resource_path",
        "allow_buy",
        "allow_sell",
        "allow_deposit",
        "allow_withdraw",
        "fiat_account",
        "verified",
        "minimum_purchase_amount"
})
@Generated("jsonschema2pojo")
@JsonIgnoreProperties(ignoreUnknown = true)
public class CbPaymentMethod {

    @JsonProperty("id")
    private String id;
    @JsonProperty("type")
    private String type;
    @JsonProperty("name")
    private String name;
    @JsonProperty("currency")
    private String currency;
    @JsonProperty("primary_buy")
    private Boolean primaryBuy;
    @JsonProperty("primary_sell")
    private Boolean primarySell;
    @JsonProperty("instant_buy")
    private Boolean instantBuy;
    @JsonProperty("instant_sell")
    private Boolean instantSell;
    @JsonProperty("created_at")
    private String createdAt;
    @JsonProperty("updated_at")
    private String updatedAt;
    @JsonProperty("resource")
    private String resource;
    @JsonProperty("resource_path")
    private String resourcePath;
    @JsonProperty("allow_buy")
    private Boolean allowBuy;
    @JsonProperty("allow_sell")
    private Boolean allowSell;
    @JsonProperty("allow_deposit")
    private Boolean allowDeposit;
    @JsonProperty("allow_withdraw")
    private Boolean allowWithdraw;
    @JsonProperty("fiat_account")
    private CbAccountRef fiatAccount;
    @JsonProperty("verified")
    private Boolean verified;
    @JsonProperty("minimum_purchase_amount")
    private CbAmount minimumPurchaseAmount;
    @JsonProperty("limits")
    private CbPaymentMethodLimits limits;


    @JsonProperty("id")
    public String getId() {
        return id;
    }

    @JsonProperty("type")
    public String getType() {
        return type;
    }

    @JsonProperty("name")
    public String getName() {
        return name;
    }

    @JsonProperty("currency")
    public String getCurrency() {
        return currency;
    }

    @JsonProperty("primary_buy")
    public Boolean getPrimaryBuy() {
        return primaryBuy;
    }

    @JsonProperty("primary_sell")
    public Boolean getPrimarySell() {
        return primarySell;
    }

    @JsonProperty("instant_buy")
    public Boolean getInstantBuy() {
        return instantBuy;
    }

    @JsonProperty("instant_sell")
    public Boolean getInstantSell() {
        return instantSell;
    }

    @JsonProperty("created_at")
    public String getCreatedAt() {
        return createdAt;
    }

    @JsonProperty("updated_at")
    public String getUpdatedAt() {
        return updatedAt;
    }

    @JsonProperty("resource")
    public String getResource() {
        return resource;
    }

    @JsonProperty("resource_path")
    public String getResourcePath() {
        return resourcePath;
    }

    @JsonProperty("allow_buy")
    public Boolean getAllowBuy() {
        return allowBuy;
    }

    @JsonProperty("allow_sell")
    public Boolean getAllowSell() {
        return allowSell;
    }

    @JsonProperty("allow_deposit")
    public Boolean getAllowDeposit() {
        return allowDeposit;
    }

    @JsonProperty("allow_withdraw")
    public Boolean getAllowWithdraw() {
        return allowWithdraw;
    }

    @JsonProperty("fiat_account")
    public CbAccountRef getFiatAccount() {
        return fiatAccount;
    }

    @JsonProperty("verified")
    public Boolean getVerified() {
        return verified;
    }

    @JsonProperty("minimum_purchase_amount")
    public CbAmount getMinimumPurchaseAmount() {
        return minimumPurchaseAmount;
    }

    @JsonProperty("limits")
    public CbPaymentMethodLimits getLimits() {
        return limits;
    }

    @Override
    public String toString() {
        return "CbPaymentMethod{" +
                "id='" + id + '\'' +
                ", type='" + type + '\'' +
                ", name='" + name + '\'' +
                ", currency='" + currency + '\'' +
                ", primaryBuy=" + primaryBuy +
                ", primarySell=" + primarySell +
                ", instantBuy=" + instantBuy +
                ", instantSell=" + instantSell +
                ", createdAt='" + createdAt + '\'' +
                ", updatedAt='" + updatedAt + '\'' +
                ", resource='" + resource + '\'' +
                ", resourcePath='" + resourcePath + '\'' +
                ", allowBuy=" + allowBuy +
                ", allowSell=" + allowSell +
                ", allowDeposit=" + allowDeposit +
                ", allowWithdraw=" + allowWithdraw +
                ", fiatAccount=" + fiatAccount +
                ", verified=" + verified +
                ", minimumPurchaseAmount=" + minimumPurchaseAmount +
                ", limits=" + limits +
                '}';
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy