Subversion Repositories SmartDukaan

Rev

Rev 6147 | Rev 6443 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6147 Rev 6433
Line 20... Line 20...
20
    idPrefix = Field(String(8))
20
    idPrefix = Field(String(8))
21
    transaction = ManyToOne("DigitalTransaction")
21
    transaction = ManyToOne("DigitalTransaction")
22
    creationTimestamp = Field(DateTime)
22
    creationTimestamp = Field(DateTime)
23
    totalAmount = Field(Integer)
23
    totalAmount = Field(Integer)
24
    walletAmount = Field(Integer)
24
    walletAmount = Field(Integer)
-
 
25
    couponAmount = Field(Integer, default=0)
-
 
26
    couponCode = Field(String(256))
25
    userId = Field(Integer)
27
    userId = Field(Integer)
26
    userEmailId = Field(String(256))
28
    userEmailId = Field(String(256))
27
    invoiceNumber = Field(Integer)
29
    invoiceNumber = Field(Integer)
28
    orderType = Field(Integer)
30
    orderType = Field(Integer)
29
    using_options(shortnames=True, inheritance='multi')
31
    using_options(shortnames=True, inheritance='multi')
Line 38... Line 40...
38
        '''
40
        '''
39
        Copies attributes to thrift object
41
        Copies attributes to thrift object
40
        '''
42
        '''
41
        thriftObject.totalAmount = self.totalAmount
43
        thriftObject.totalAmount = self.totalAmount
42
        thriftObject.walletAmount = self.walletAmount
44
        thriftObject.walletAmount = self.walletAmount
-
 
45
        thriftObject.couponAmount = self.couponAmount
-
 
46
        thriftObject.couponCode = self.couponCode
43
        thriftObject.creationTimestamp = to_java_date(self.creationTimestamp)
47
        thriftObject.creationTimestamp = to_java_date(self.creationTimestamp)
44
        thriftObject.userEmailId = self.userEmailId
48
        thriftObject.userEmailId = self.userEmailId
45
        thriftObject.userId = self.userId
49
        thriftObject.userId = self.userId
46
        thriftObject.id = self.id
50
        thriftObject.id = self.id
47
        thriftObject.displayId = self.idPrefix + str(self.id)
51
        thriftObject.displayId = self.idPrefix + str(self.id)