Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
12291 manish.sha 1
/*
2
 * Copyright 2010 Google Inc.
3
 *
4
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
5
 * in compliance with the License. You may obtain a copy of the License at
6
 *
7
 * http://www.apache.org/licenses/LICENSE-2.0
8
 *
9
 * Unless required by applicable law or agreed to in writing, software distributed under the License
10
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
11
 * or implied. See the License for the specific language governing permissions and limitations under
12
 * the License.
13
 */
14
/*
15
 * This code was generated by https://code.google.com/p/google-apis-client-generator/
16
 * (build: 2014-07-09 17:08:39 UTC)
17
 * on 2014-07-23 at 21:49:03 UTC 
18
 * Modify at your own risk.
19
 */
20
 
21
package com.google.api.services.content.model;
22
 
23
/**
24
 * Model definition for ProductTax.
25
 *
26
 * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
27
 * transmitted over HTTP when working with the Content API for Shopping. For a detailed explanation
28
 * see:
29
 * <a href="http://code.google.com/p/google-http-java-client/wiki/JSON">http://code.google.com/p/google-http-java-client/wiki/JSON</a>
30
 * </p>
31
 *
32
 * @author Google, Inc.
33
 */
34
@SuppressWarnings("javadoc")
35
public final class ProductTax extends com.google.api.client.json.GenericJson {
36
 
37
  /**
38
   * The country within which the item is taxed, specified with a two-letter ISO 3166 country code.
39
   * The value may be {@code null}.
40
   */
41
  @com.google.api.client.util.Key
42
  private java.lang.String country;
43
 
44
  /**
45
   * The percentage of tax rate that applies to the item price.
46
   * The value may be {@code null}.
47
   */
48
  @com.google.api.client.util.Key
49
  private java.lang.Double rate;
50
 
51
  /**
52
   * The geographic region to which the tax rate applies.
53
   * The value may be {@code null}.
54
   */
55
  @com.google.api.client.util.Key
56
  private java.lang.String region;
57
 
58
  /**
59
   * Set to true if tax is charged on shipping.
60
   * The value may be {@code null}.
61
   */
62
  @com.google.api.client.util.Key
63
  private java.lang.Boolean taxShip;
64
 
65
  /**
66
   * The country within which the item is taxed, specified with a two-letter ISO 3166 country code.
67
   * @return value or {@code null} for none
68
   */
69
  public java.lang.String getCountry() {
70
    return country;
71
  }
72
 
73
  /**
74
   * The country within which the item is taxed, specified with a two-letter ISO 3166 country code.
75
   * @param country country or {@code null} for none
76
   */
77
  public ProductTax setCountry(java.lang.String country) {
78
    this.country = country;
79
    return this;
80
  }
81
 
82
  /**
83
   * The percentage of tax rate that applies to the item price.
84
   * @return value or {@code null} for none
85
   */
86
  public java.lang.Double getRate() {
87
    return rate;
88
  }
89
 
90
  /**
91
   * The percentage of tax rate that applies to the item price.
92
   * @param rate rate or {@code null} for none
93
   */
94
  public ProductTax setRate(java.lang.Double rate) {
95
    this.rate = rate;
96
    return this;
97
  }
98
 
99
  /**
100
   * The geographic region to which the tax rate applies.
101
   * @return value or {@code null} for none
102
   */
103
  public java.lang.String getRegion() {
104
    return region;
105
  }
106
 
107
  /**
108
   * The geographic region to which the tax rate applies.
109
   * @param region region or {@code null} for none
110
   */
111
  public ProductTax setRegion(java.lang.String region) {
112
    this.region = region;
113
    return this;
114
  }
115
 
116
  /**
117
   * Set to true if tax is charged on shipping.
118
   * @return value or {@code null} for none
119
   */
120
  public java.lang.Boolean getTaxShip() {
121
    return taxShip;
122
  }
123
 
124
  /**
125
   * Set to true if tax is charged on shipping.
126
   * @param taxShip taxShip or {@code null} for none
127
   */
128
  public ProductTax setTaxShip(java.lang.Boolean taxShip) {
129
    this.taxShip = taxShip;
130
    return this;
131
  }
132
 
133
  @Override
134
  public ProductTax set(String fieldName, Object value) {
135
    return (ProductTax) super.set(fieldName, value);
136
  }
137
 
138
  @Override
139
  public ProductTax clone() {
140
    return (ProductTax) super.clone();
141
  }
142
 
143
}