com.bitpay.sdk.model.Policy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bitpay_sdk Show documentation
Show all versions of bitpay_sdk Show documentation
Full implementation of the BitPay Payment Gateway. This library implements BitPay's Cryptographically
Secure RESTful API.
The newest version!
/*
* Copyright (c) 2019 BitPay.
* All rights reserved.
*/
package com.bitpay.sdk.model;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/**
* The type Policy.
*
* @see Tokens concept
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class Policy {
protected String policy;
protected String method;
protected List params;
/**
* Instantiates a new Policy.
*/
public Policy() {
}
/**
* Gets policy. Can be "sin", "access", "events", "id", or "session".
*
* @return the policy
*/
@JsonIgnore
public String getPolicy() {
return this.policy;
}
/**
* Sets policy. Can be "sin", "access", "events", "id", or "session".
*
* @param policy the policy
*/
@JsonProperty("policy")
public void setPolicy(final String policy) {
this.policy = policy;
}
/**
* Gets method. Can be "requireSin", "requireFacadeAccess", "allowEventStream", "invalidated", "inactive",
* "unclaimed", "requireSession".
*
* @return the method
*/
@JsonIgnore
public String getMethod() {
return this.method;
}
/**
* Sets method. Can be "requireSin", "requireFacadeAccess", "allowEventStream", "invalidated", "inactive",
* "unclaimed", "requireSession".
*
* @param method the method
*/
@JsonProperty("method")
public void setMethod(final String method) {
this.method = method;
}
/**
* Gets params. Can be "support", SIN value, or null.
*
* @return the params
*/
@JsonIgnore
public List getParams() {
return this.params;
}
/**
* Sets params. Can be "support", SIN value, or null.
*
* @param params the params
*/
@JsonProperty("params")
public void setParams(final List params) {
this.params = params;
}
}