| 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 LoyaltyPoints.
|
|
|
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 LoyaltyPoints extends com.google.api.client.json.GenericJson {
|
|
|
36 |
|
|
|
37 |
/**
|
|
|
38 |
* Name of loyalty points program. It is recommended to limit the name to 12 full-width characters
|
|
|
39 |
* or 24 Roman characters.
|
|
|
40 |
* The value may be {@code null}.
|
|
|
41 |
*/
|
|
|
42 |
@com.google.api.client.util.Key
|
|
|
43 |
private java.lang.String name;
|
|
|
44 |
|
|
|
45 |
/**
|
|
|
46 |
* The retailer's loyalty points in absolute value.
|
|
|
47 |
* The value may be {@code null}.
|
|
|
48 |
*/
|
|
|
49 |
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
|
|
|
50 |
private java.math.BigInteger pointsValue;
|
|
|
51 |
|
|
|
52 |
/**
|
|
|
53 |
* The ratio of a point when converted to currency. Google assumes currency based on Merchant
|
|
|
54 |
* Center settings. If ratio is left out, it defaults to 1.0.
|
|
|
55 |
* The value may be {@code null}.
|
|
|
56 |
*/
|
|
|
57 |
@com.google.api.client.util.Key
|
|
|
58 |
private java.lang.Double ratio;
|
|
|
59 |
|
|
|
60 |
/**
|
|
|
61 |
* Name of loyalty points program. It is recommended to limit the name to 12 full-width characters
|
|
|
62 |
* or 24 Roman characters.
|
|
|
63 |
* @return value or {@code null} for none
|
|
|
64 |
*/
|
|
|
65 |
public java.lang.String getName() {
|
|
|
66 |
return name;
|
|
|
67 |
}
|
|
|
68 |
|
|
|
69 |
/**
|
|
|
70 |
* Name of loyalty points program. It is recommended to limit the name to 12 full-width characters
|
|
|
71 |
* or 24 Roman characters.
|
|
|
72 |
* @param name name or {@code null} for none
|
|
|
73 |
*/
|
|
|
74 |
public LoyaltyPoints setName(java.lang.String name) {
|
|
|
75 |
this.name = name;
|
|
|
76 |
return this;
|
|
|
77 |
}
|
|
|
78 |
|
|
|
79 |
/**
|
|
|
80 |
* The retailer's loyalty points in absolute value.
|
|
|
81 |
* @return value or {@code null} for none
|
|
|
82 |
*/
|
|
|
83 |
public java.math.BigInteger getPointsValue() {
|
|
|
84 |
return pointsValue;
|
|
|
85 |
}
|
|
|
86 |
|
|
|
87 |
/**
|
|
|
88 |
* The retailer's loyalty points in absolute value.
|
|
|
89 |
* @param pointsValue pointsValue or {@code null} for none
|
|
|
90 |
*/
|
|
|
91 |
public LoyaltyPoints setPointsValue(java.math.BigInteger pointsValue) {
|
|
|
92 |
this.pointsValue = pointsValue;
|
|
|
93 |
return this;
|
|
|
94 |
}
|
|
|
95 |
|
|
|
96 |
/**
|
|
|
97 |
* The ratio of a point when converted to currency. Google assumes currency based on Merchant
|
|
|
98 |
* Center settings. If ratio is left out, it defaults to 1.0.
|
|
|
99 |
* @return value or {@code null} for none
|
|
|
100 |
*/
|
|
|
101 |
public java.lang.Double getRatio() {
|
|
|
102 |
return ratio;
|
|
|
103 |
}
|
|
|
104 |
|
|
|
105 |
/**
|
|
|
106 |
* The ratio of a point when converted to currency. Google assumes currency based on Merchant
|
|
|
107 |
* Center settings. If ratio is left out, it defaults to 1.0.
|
|
|
108 |
* @param ratio ratio or {@code null} for none
|
|
|
109 |
*/
|
|
|
110 |
public LoyaltyPoints setRatio(java.lang.Double ratio) {
|
|
|
111 |
this.ratio = ratio;
|
|
|
112 |
return this;
|
|
|
113 |
}
|
|
|
114 |
|
|
|
115 |
@Override
|
|
|
116 |
public LoyaltyPoints set(String fieldName, Object value) {
|
|
|
117 |
return (LoyaltyPoints) super.set(fieldName, value);
|
|
|
118 |
}
|
|
|
119 |
|
|
|
120 |
@Override
|
|
|
121 |
public LoyaltyPoints clone() {
|
|
|
122 |
return (LoyaltyPoints) super.clone();
|
|
|
123 |
}
|
|
|
124 |
|
|
|
125 |
}
|