com.bitpay.sdk.model.payout.PayoutWebhook 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.
/*
* Copyright (c) 2019 BitPay.
* All rights reserved.
*/
package com.bitpay.sdk.model.payout;
import com.bitpay.sdk.util.serializer.Iso8601ToZonedDateTimeDeserializer;
import com.bitpay.sdk.util.serializer.ZonedDateTimeToIso8601Serializer;
import com.fasterxml.jackson.annotation.JsonSetter;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import java.math.BigDecimal;
import java.time.ZonedDateTime;
import java.util.Hashtable;
import java.util.List;
/**
* The type Payout webhook.
*
* @see Payout Webhook
*/
class PayoutWebhook {
protected String id;
protected String recipientId;
protected String shopperId;
protected Double price;
protected String currency;
protected String ledgerCurrency;
protected Hashtable> exchangeRates;
protected String email;
protected String reference;
protected String label;
protected String notificationUrl;
protected String notificationEmail;
protected ZonedDateTime effectiveDate;
protected ZonedDateTime requestDate;
protected String status;
protected List transactions;
protected String accountId;
protected ZonedDateTime dateExecuted;
protected String groupId;
public String getId() {
return this.id;
}
public void setId(String id) {
this.id = id;
}
public String getRecipientId() {
return this.recipientId;
}
public void setRecipientId(String recipientId) {
this.recipientId = recipientId;
}
public String getShopperId() {
return this.shopperId;
}
public void setShopperId(String shopperId) {
this.shopperId = shopperId;
}
public Double getPrice() {
return this.price;
}
public void setPrice(Double price) {
this.price = price;
}
public String getCurrency() {
return this.currency;
}
public void setCurrency(String currency) {
this.currency = currency;
}
public String getLedgerCurrency() {
return this.ledgerCurrency;
}
public void setLedgerCurrency(String ledgerCurrency) {
this.ledgerCurrency = ledgerCurrency;
}
public Hashtable> getExchangeRates() {
return this.exchangeRates;
}
public void setExchangeRates(
Hashtable> exchangeRates) {
this.exchangeRates = exchangeRates;
}
public String getEmail() {
return this.email;
}
public void setEmail(String email) {
this.email = email;
}
public String getReference() {
return this.reference;
}
public void setReference(String reference) {
this.reference = reference;
}
public String getLabel() {
return this.label;
}
public void setLabel(String label) {
this.label = label;
}
public String getNotificationUrl() {
return this.notificationUrl;
}
@JsonSetter("notificationURL")
public void setNotificationUrl(String notificationUrl) {
this.notificationUrl = notificationUrl;
}
public String getNotificationEmail() {
return this.notificationEmail;
}
public void setNotificationEmail(String notificationEmail) {
this.notificationEmail = notificationEmail;
}
@JsonSerialize(using = ZonedDateTimeToIso8601Serializer.class)
public ZonedDateTime getEffectiveDate() {
return this.effectiveDate;
}
@JsonDeserialize(using = Iso8601ToZonedDateTimeDeserializer.class)
public void setEffectiveDate(ZonedDateTime effectiveDate) {
this.effectiveDate = effectiveDate;
}
@JsonSerialize(using = ZonedDateTimeToIso8601Serializer.class)
public ZonedDateTime getRequestDate() {
return this.requestDate;
}
@JsonDeserialize(using = Iso8601ToZonedDateTimeDeserializer.class)
public void setRequestDate(ZonedDateTime requestDate) {
this.requestDate = requestDate;
}
public String getStatus() {
return this.status;
}
public void setStatus(String status) {
this.status = status;
}
public List getTransactions() {
return this.transactions;
}
public void setTransactions(List transactions) {
this.transactions = transactions;
}
public String getAccountId() {
return this.accountId;
}
public void setAccountId(String accountId) {
this.accountId = accountId;
}
public ZonedDateTime getDateExecuted() {
return this.dateExecuted;
}
public void setDateExecuted(ZonedDateTime dateExecuted) {
this.dateExecuted = dateExecuted;
}
public String getGroupId() {
return this.groupId;
}
public void setGroupId(String groupId) {
this.groupId = groupId;
}
}