/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. // GDataFinanceTransactionData.h
  17. //
  18. #if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_FINANCE_SERVICE
  19. #import "GDataObject.h"
  20. //
  21. // transaction data, like
  22. // <gf:transactionData shares="20" date="2007-07-16T00:00:00" type="Buy">
  23. // <gf:price>
  24. // <gd:money amount="199" currencycode="USD"/>
  25. // </gf:price>
  26. // <gf:commission>
  27. // <gd:money amount="10" currencycode="USD"/>
  28. // </gf:commission>
  29. // </gf:transactionData>
  30. //
  31. @class GDataCommission;
  32. @class GDataPrice;
  33. @interface GDataFinanceTransactionData : GDataObject <GDataExtension>
  34. + (GDataFinanceTransactionData *)transactionDataWithType:(NSString *)str;
  35. - (NSString *)type;
  36. - (void)setType:(NSString *)str;
  37. - (GDataDateTime *)date;
  38. - (void)setDate:(GDataDateTime *)date;
  39. - (NSString *)notes;
  40. - (void)setNotes:(NSString *)str;
  41. - (NSDecimalNumber *)shares;
  42. - (void)setShares:(NSNumber *)num;
  43. - (GDataCommission *)commission;
  44. - (void)setCommission:(GDataCommission *)obj;
  45. - (GDataPrice *)price;
  46. - (void)setPrice:(GDataPrice *)obj;
  47. @end
  48. #endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_FINANCE_SERVICE