<s> from decimal import Decimal <EOL> from braintree . attribute_getter import AttributeGetter <EOL> from braintree . transaction_details import TransactionDetails <EOL> class Dispute ( AttributeGetter ) : <EOL> class Status ( object ) : <EOL> """<STR_LIT>""" <EOL> Open = "<STR_LIT>" <EOL> Won = "<STR_LIT>" <EOL> Lost = "<STR_LIT>" <EOL> class Reason ( object ) : <EOL> """<STR_LIT>""" <EOL> CancelledRecurringTransaction = "<STR_LIT>" <EOL> CreditNotProcessed = "<STR_LIT>" <EOL> Duplicate = "<STR_LIT>" <EOL> Fraud = "<STR_LIT>" <EOL> General = "<STR_LIT>" <EOL> InvalidAccount = "<STR_LIT>" <EOL> NotRecognized = "<STR_LIT>" <EOL> ProductNotReceived = "<STR_LIT>" <EOL> ProductUnsatisfactory = "<STR_LIT>" <EOL> Retrieval = "<STR_LIT>" <EOL> TransactionAmountDiffers = "<STR_LIT>" <EOL> class Kind ( object ) : <EOL> """<STR_LIT>""" <EOL> Chargeback = "<STR_LIT>" <EOL> PreArbitration = "<STR_LIT>" <EOL> Retrieval = "<STR_LIT>" <EOL> def __init__ ( self , attributes ) : <EOL> AttributeGetter . __init__ ( self , attributes ) <EOL> if self . amount is not None : <EOL> self . amount = Decimal ( self . amount ) <EOL> if "<STR_LIT>" in attributes : <EOL> self . transaction_details = TransactionDetails ( attributes . pop ( "<STR_LIT>" ) ) </s>
