|
| 1 | +/* |
| 2 | + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except |
| 3 | + * in compliance with the License. You may obtain a copy of the License at |
| 4 | + * |
| 5 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 6 | + * |
| 7 | + * Unless required by applicable law or agreed to in writing, software distributed under the License |
| 8 | + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express |
| 9 | + * or implied. See the License for the specific language governing permissions and limitations under |
| 10 | + * the License. |
| 11 | + */ |
| 12 | +/* |
| 13 | + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ |
| 14 | + * Modify at your own risk. |
| 15 | + */ |
| 16 | + |
| 17 | +package com.google.api.services.androidpublisher.model; |
| 18 | + |
| 19 | +/** |
| 20 | + * Address information for the customer, for use in tax computation. |
| 21 | + * |
| 22 | + * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is |
| 23 | + * transmitted over HTTP when working with the Google Play Android Developer API. For a detailed |
| 24 | + * explanation see: |
| 25 | + * <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a> |
| 26 | + * </p> |
| 27 | + * |
| 28 | + * @author Google, Inc. |
| 29 | + */ |
| 30 | +@SuppressWarnings("javadoc") |
| 31 | +public final class BuyerAddress extends com.google.api.client.json.GenericJson { |
| 32 | + |
| 33 | + /** |
| 34 | + * Two letter country code based on ISO-3166-1 Alpha-2 (UN country codes). |
| 35 | + * The value may be {@code null}. |
| 36 | + */ |
| 37 | + @com.google.api.client.util.Key |
| 38 | + private java.lang.String buyerCountry; |
| 39 | + |
| 40 | + /** |
| 41 | + * Postal code of an address. When Google is the Merchant of Record for the order, this |
| 42 | + * information is not included. |
| 43 | + * The value may be {@code null}. |
| 44 | + */ |
| 45 | + @com.google.api.client.util.Key |
| 46 | + private java.lang.String buyerPostcode; |
| 47 | + |
| 48 | + /** |
| 49 | + * Top-level administrative subdivision of the buyer address country. When Google is the Merchant |
| 50 | + * of Record for the order, this information is not included. |
| 51 | + * The value may be {@code null}. |
| 52 | + */ |
| 53 | + @com.google.api.client.util.Key |
| 54 | + private java.lang.String buyerState; |
| 55 | + |
| 56 | + /** |
| 57 | + * Two letter country code based on ISO-3166-1 Alpha-2 (UN country codes). |
| 58 | + * @return value or {@code null} for none |
| 59 | + */ |
| 60 | + public java.lang.String getBuyerCountry() { |
| 61 | + return buyerCountry; |
| 62 | + } |
| 63 | + |
| 64 | + /** |
| 65 | + * Two letter country code based on ISO-3166-1 Alpha-2 (UN country codes). |
| 66 | + * @param buyerCountry buyerCountry or {@code null} for none |
| 67 | + */ |
| 68 | + public BuyerAddress setBuyerCountry(java.lang.String buyerCountry) { |
| 69 | + this.buyerCountry = buyerCountry; |
| 70 | + return this; |
| 71 | + } |
| 72 | + |
| 73 | + /** |
| 74 | + * Postal code of an address. When Google is the Merchant of Record for the order, this |
| 75 | + * information is not included. |
| 76 | + * @return value or {@code null} for none |
| 77 | + */ |
| 78 | + public java.lang.String getBuyerPostcode() { |
| 79 | + return buyerPostcode; |
| 80 | + } |
| 81 | + |
| 82 | + /** |
| 83 | + * Postal code of an address. When Google is the Merchant of Record for the order, this |
| 84 | + * information is not included. |
| 85 | + * @param buyerPostcode buyerPostcode or {@code null} for none |
| 86 | + */ |
| 87 | + public BuyerAddress setBuyerPostcode(java.lang.String buyerPostcode) { |
| 88 | + this.buyerPostcode = buyerPostcode; |
| 89 | + return this; |
| 90 | + } |
| 91 | + |
| 92 | + /** |
| 93 | + * Top-level administrative subdivision of the buyer address country. When Google is the Merchant |
| 94 | + * of Record for the order, this information is not included. |
| 95 | + * @return value or {@code null} for none |
| 96 | + */ |
| 97 | + public java.lang.String getBuyerState() { |
| 98 | + return buyerState; |
| 99 | + } |
| 100 | + |
| 101 | + /** |
| 102 | + * Top-level administrative subdivision of the buyer address country. When Google is the Merchant |
| 103 | + * of Record for the order, this information is not included. |
| 104 | + * @param buyerState buyerState or {@code null} for none |
| 105 | + */ |
| 106 | + public BuyerAddress setBuyerState(java.lang.String buyerState) { |
| 107 | + this.buyerState = buyerState; |
| 108 | + return this; |
| 109 | + } |
| 110 | + |
| 111 | + @Override |
| 112 | + public BuyerAddress set(String fieldName, Object value) { |
| 113 | + return (BuyerAddress) super.set(fieldName, value); |
| 114 | + } |
| 115 | + |
| 116 | + @Override |
| 117 | + public BuyerAddress clone() { |
| 118 | + return (BuyerAddress) super.clone(); |
| 119 | + } |
| 120 | + |
| 121 | +} |
0 commit comments