PageRenderTime 25ms CodeModel.GetById 12ms app.highlight 8ms RepoModel.GetById 1ms app.codeStats 1ms

/core/externals/update-engine/externals/gdata-objectivec-client/Source/Clients/Finance/GDataFinanceTransactionData.h

http://macfuse.googlecode.com/
C++ Header | 63 lines | 20 code | 15 blank | 28 comment | 1 complexity | 3ed24ee534a5dd3252001dfb031e40c6 MD5 | raw file
 1/* Copyright (c) 2008 Google Inc.
 2 *
 3 * Licensed under the Apache License, Version 2.0 (the "License");
 4 * you may not use this file except in compliance with the License.
 5 * 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
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16//
17//  GDataFinanceTransactionData.h
18//
19
20#if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_FINANCE_SERVICE
21
22#import "GDataObject.h"
23
24//
25// transaction data, like
26//  <gf:transactionData shares="20" date="2007-07-16T00:00:00" type="Buy">
27//    <gf:price>
28//      <gd:money amount="199" currencycode="USD"/>
29//    </gf:price>
30//    <gf:commission>
31//      <gd:money amount="10" currencycode="USD"/>
32//    </gf:commission>
33//  </gf:transactionData>
34//
35
36@class GDataCommission;
37@class GDataPrice;
38
39@interface GDataFinanceTransactionData : GDataObject <GDataExtension>
40
41+ (GDataFinanceTransactionData *)transactionDataWithType:(NSString *)str;
42
43- (NSString *)type;
44- (void)setType:(NSString *)str;
45
46- (GDataDateTime *)date;
47- (void)setDate:(GDataDateTime *)date;
48
49- (NSString *)notes;
50- (void)setNotes:(NSString *)str;
51
52- (NSDecimalNumber *)shares;
53- (void)setShares:(NSNumber *)num;
54
55- (GDataCommission *)commission;
56- (void)setCommission:(GDataCommission *)obj;
57
58- (GDataPrice *)price;
59- (void)setPrice:(GDataPrice *)obj;
60
61@end
62
63#endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_FINANCE_SERVICE