001// Generated by delombok at Sun Jul 07 22:01:30 CEST 2019
002/**
003 * Copyright (c) 2010-2019 Mark Allen, Norbert Bartels.
004 *
005 * Permission is hereby granted, free of charge, to any person obtaining a copy
006 * of this software and associated documentation files (the "Software"), to deal
007 * in the Software without restriction, including without limitation the rights
008 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
009 * copies of the Software, and to permit persons to whom the Software is
010 * furnished to do so, subject to the following conditions:
011 *
012 * The above copyright notice and this permission notice shall be included in
013 * all copies or substantial portions of the Software.
014 *
015 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
016 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
017 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
018 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
019 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
020 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
021 * THE SOFTWARE.
022 */
023package com.restfb.types.webhook.messaging.payment;
024
025import java.io.Serializable;
026import com.restfb.Facebook;
027
028public class ShippingAddress implements Serializable {
029  /**
030   * ID of shipping address
031   */
032  @Facebook
033  private String id;
034  /**
035   * Shipping address country
036   */
037  @Facebook
038  private String country;
039  /**
040   * Shipping address city
041   */
042  @Facebook
043  private String city;
044  /**
045   * Shipping address street, first line
046   */
047  @Facebook
048  private String street1;
049  /**
050   * Shipping address street, second line
051   */
052  @Facebook
053  private String street2;
054  /**
055   * Shipping address state
056   */
057  @Facebook
058  private String state;
059  /**
060   * Shipping address postal code
061   */
062  @Facebook("postal_code")
063  private String postalCode;
064
065  @java.lang.Override
066  @java.lang.SuppressWarnings("all")
067  public java.lang.String toString() {
068    return "ShippingAddress(id=" + this.getId() + ", country=" + this.getCountry() + ", city=" + this.getCity() + ", street1=" + this.getStreet1() + ", street2=" + this.getStreet2() + ", state=" + this.getState() + ", postalCode=" + this.getPostalCode() + ")";
069  }
070
071  /**
072   * ID of shipping address
073   */
074  @java.lang.SuppressWarnings("all")
075  public String getId() {
076    return this.id;
077  }
078
079  /**
080   * ID of shipping address
081   */
082  @java.lang.SuppressWarnings("all")
083  public void setId(final String id) {
084    this.id = id;
085  }
086
087  /**
088   * Shipping address country
089   */
090  @java.lang.SuppressWarnings("all")
091  public String getCountry() {
092    return this.country;
093  }
094
095  /**
096   * Shipping address country
097   */
098  @java.lang.SuppressWarnings("all")
099  public void setCountry(final String country) {
100    this.country = country;
101  }
102
103  /**
104   * Shipping address city
105   */
106  @java.lang.SuppressWarnings("all")
107  public String getCity() {
108    return this.city;
109  }
110
111  /**
112   * Shipping address city
113   */
114  @java.lang.SuppressWarnings("all")
115  public void setCity(final String city) {
116    this.city = city;
117  }
118
119  /**
120   * Shipping address street, first line
121   */
122  @java.lang.SuppressWarnings("all")
123  public String getStreet1() {
124    return this.street1;
125  }
126
127  /**
128   * Shipping address street, first line
129   */
130  @java.lang.SuppressWarnings("all")
131  public void setStreet1(final String street1) {
132    this.street1 = street1;
133  }
134
135  /**
136   * Shipping address street, second line
137   */
138  @java.lang.SuppressWarnings("all")
139  public String getStreet2() {
140    return this.street2;
141  }
142
143  /**
144   * Shipping address street, second line
145   */
146  @java.lang.SuppressWarnings("all")
147  public void setStreet2(final String street2) {
148    this.street2 = street2;
149  }
150
151  /**
152   * Shipping address state
153   */
154  @java.lang.SuppressWarnings("all")
155  public String getState() {
156    return this.state;
157  }
158
159  /**
160   * Shipping address state
161   */
162  @java.lang.SuppressWarnings("all")
163  public void setState(final String state) {
164    this.state = state;
165  }
166
167  /**
168   * Shipping address postal code
169   */
170  @java.lang.SuppressWarnings("all")
171  public String getPostalCode() {
172    return this.postalCode;
173  }
174
175  /**
176   * Shipping address postal code
177   */
178  @java.lang.SuppressWarnings("all")
179  public void setPostalCode(final String postalCode) {
180    this.postalCode = postalCode;
181  }
182}