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

com.mangopay.core.ShippingAddress Maven / Gradle / Ivy

There is a newer version: 2.42.0
Show newest version
package com.mangopay.core;

import com.google.gson.annotations.SerializedName;

import java.lang.reflect.Type;
import java.util.Map;

/**
 * Models shipping details
 */
public class ShippingAddress extends Dto {

    /**
     * Name of the shipping recipient
     */
    @SerializedName("RecipientName")
    private String recipientName;

    /**
     * The shipping address
     */
    @SerializedName("Address")
    private Address address;

    public String getRecipientName() {
        return recipientName;
    }

    public void setRecipientName(String recipientName) {
        this.recipientName = recipientName;
    }

    public Address getAddress() {
        return address;
    }

    public void setAddress(Address address) {
        this.address = address;
    }

    @Override
    public Map getSubObjects() {
        Map subObjects = super.getSubObjects();

        subObjects.put("Address", Address.class);

        return subObjects;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy