SettlementInstructions.h 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. #ifndef FIX43_SETTLEMENTINSTRUCTIONS_H
  2. #define FIX43_SETTLEMENTINSTRUCTIONS_H
  3. #include "Message.h"
  4. namespace FIX43
  5. {
  6. class SettlementInstructions : public Message
  7. {
  8. public:
  9. SettlementInstructions() : Message(MsgType()) {}
  10. SettlementInstructions(const FIX::Message& m) : Message(m) {}
  11. SettlementInstructions(const Message& m) : Message(m) {}
  12. SettlementInstructions(const SettlementInstructions& m) : Message(m) {}
  13. static FIX::MsgType MsgType() { return FIX::MsgType("T"); }
  14. SettlementInstructions(
  15. const FIX::SettlInstID& aSettlInstID,
  16. const FIX::SettlInstTransType& aSettlInstTransType,
  17. const FIX::SettlInstRefID& aSettlInstRefID,
  18. const FIX::SettlInstMode& aSettlInstMode,
  19. const FIX::SettlInstSource& aSettlInstSource,
  20. const FIX::AllocAccount& aAllocAccount,
  21. const FIX::TransactTime& aTransactTime )
  22. : Message(MsgType())
  23. {
  24. set(aSettlInstID);
  25. set(aSettlInstTransType);
  26. set(aSettlInstRefID);
  27. set(aSettlInstMode);
  28. set(aSettlInstSource);
  29. set(aAllocAccount);
  30. set(aTransactTime);
  31. }
  32. FIELD_SET(*this, FIX::SettlInstID);
  33. FIELD_SET(*this, FIX::SettlInstTransType);
  34. FIELD_SET(*this, FIX::SettlInstRefID);
  35. FIELD_SET(*this, FIX::SettlInstMode);
  36. FIELD_SET(*this, FIX::SettlInstSource);
  37. FIELD_SET(*this, FIX::AllocAccount);
  38. FIELD_SET(*this, FIX::IndividualAllocID);
  39. FIELD_SET(*this, FIX::ClOrdID);
  40. FIELD_SET(*this, FIX::TradeDate);
  41. FIELD_SET(*this, FIX::AllocID);
  42. FIELD_SET(*this, FIX::LastMkt);
  43. FIELD_SET(*this, FIX::TradingSessionID);
  44. FIELD_SET(*this, FIX::TradingSessionSubID);
  45. FIELD_SET(*this, FIX::Side);
  46. FIELD_SET(*this, FIX::SecurityType);
  47. FIELD_SET(*this, FIX::EffectiveTime);
  48. FIELD_SET(*this, FIX::TransactTime);
  49. FIELD_SET(*this, FIX::NoPartyIDs);
  50. class NoPartyIDs: public FIX::Group
  51. {
  52. public:
  53. NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,523,0)) {}
  54. FIELD_SET(*this, FIX::PartyID);
  55. FIELD_SET(*this, FIX::PartyIDSource);
  56. FIELD_SET(*this, FIX::PartyRole);
  57. FIELD_SET(*this, FIX::PartySubID);
  58. };
  59. FIELD_SET(*this, FIX::StandInstDbType);
  60. FIELD_SET(*this, FIX::StandInstDbName);
  61. FIELD_SET(*this, FIX::StandInstDbID);
  62. FIELD_SET(*this, FIX::SettlDeliveryType);
  63. FIELD_SET(*this, FIX::SettlDepositoryCode);
  64. FIELD_SET(*this, FIX::SettlBrkrCode);
  65. FIELD_SET(*this, FIX::SettlInstCode);
  66. FIELD_SET(*this, FIX::SecuritySettlAgentName);
  67. FIELD_SET(*this, FIX::SecuritySettlAgentCode);
  68. FIELD_SET(*this, FIX::SecuritySettlAgentAcctNum);
  69. FIELD_SET(*this, FIX::SecuritySettlAgentAcctName);
  70. FIELD_SET(*this, FIX::SecuritySettlAgentContactName);
  71. FIELD_SET(*this, FIX::SecuritySettlAgentContactPhone);
  72. FIELD_SET(*this, FIX::CashSettlAgentName);
  73. FIELD_SET(*this, FIX::CashSettlAgentCode);
  74. FIELD_SET(*this, FIX::CashSettlAgentAcctNum);
  75. FIELD_SET(*this, FIX::CashSettlAgentAcctName);
  76. FIELD_SET(*this, FIX::CashSettlAgentContactName);
  77. FIELD_SET(*this, FIX::CashSettlAgentContactPhone);
  78. FIELD_SET(*this, FIX::PaymentMethod);
  79. FIELD_SET(*this, FIX::PaymentRef);
  80. FIELD_SET(*this, FIX::CardHolderName);
  81. FIELD_SET(*this, FIX::CardNumber);
  82. FIELD_SET(*this, FIX::CardStartDate);
  83. FIELD_SET(*this, FIX::CardExpDate);
  84. FIELD_SET(*this, FIX::CardIssNo);
  85. FIELD_SET(*this, FIX::PaymentDate);
  86. FIELD_SET(*this, FIX::PaymentRemitterID);
  87. };
  88. }
  89. #endif