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

com.hps.integrator.entities.HpsDirectMarketData Maven / Gradle / Ivy

Go to download

The SecureSubmit Java SDK simplifies processing of credit card transactions using Heartland Payment Systems' Portico Payment Gateway

There is a newer version: v2.5.2
Show newest version
package com.hps.integrator.entities;

import java.util.Calendar;

public class HpsDirectMarketData {
    private String invoiceNumber;
    private Integer shipMonth;
    private Integer shipDay;

    public HpsDirectMarketData () {
        Calendar cal = Calendar.getInstance();

        this.invoiceNumber = "";
        this.shipDay = cal.get(Calendar.DAY_OF_MONTH);
        this.shipMonth = cal.get(Calendar.MONTH) + 1;
    }

    public HpsDirectMarketData (String invoiceNumber) {
        Calendar cal = Calendar.getInstance();

        this.invoiceNumber = invoiceNumber;
        this.shipDay = cal.get(Calendar.DAY_OF_MONTH);
        this.shipMonth = cal.get(Calendar.MONTH) + 1;
    }

    public HpsDirectMarketData (String invoiceNumber, Integer shipDay, Integer shipMonth) {
        this.invoiceNumber = invoiceNumber;
        this.shipDay = shipDay;
        this.shipMonth = shipMonth;
    }

    public String getInvoiceNumber() {
        return invoiceNumber;
    }

    public void setInvoiceNumber(String invoiceNumber) {
        this.invoiceNumber = invoiceNumber;
    }

    public Integer getShipDay() {
        return shipDay;
    }

    public void setShipDay(Integer shipDay) {
        this.shipDay = shipDay;
    }

    public Integer getShipMonth() {
        return shipMonth;
    }

    public void setShipMonth(Integer shipMonth) {
        this.shipMonth = shipMonth;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy