
// _BPPayment.h
// BISubstrate
// 
// Created by mceogenerator
// DO NOT EDIT.  Make changes to BPPayment.h instead.
// 
// Copyright (c) 2008 Marketcircle Inc. All rights reserved.

#import <MCFoundation/MCPObject.h>
#import "BIPObject.h"

@class BIPaymentMethodType;
@class BIClient;
@class BIPaymentInvoiceEntry;

@interface _BPPayment : BIPObject
{ 
//    
//    NSNumber *baseCurrencyManuallyEntered;
//    NSNumber *baseCurrencyTotal;
//    NSNumber *clientID;
//    NSNumber *total;
//    NSNumber *projectID;
//    NSNumber *paymentID;
//    NSString *name;
//    NSCalendarDate *modifyDate;
//    NSNumber *methodID;
//    NSCalendarDate *createDate;
//    NSString *comment;
//    NSNumber *cachedAppliedAmount;
//    
//    BIClient*client;
//    BIPaymentMethodType*method;
//    
//    NSMutableArray *paymentEntries;
}




- (void)setBaseCurrencyManuallyEntered:(NSNumber *)aValue;
- (NSNumber *)baseCurrencyManuallyEntered;

- (void)setBaseCurrencyTotal:(NSNumber *)aValue;
- (NSNumber *)baseCurrencyTotal;

- (void)setClientID:(NSNumber *)aValue;
- (NSNumber *)clientID;

- (void)setTotal:(NSNumber *)aValue;
- (NSNumber *)total;

- (void)setProjectID:(NSNumber *)aValue;
- (NSNumber *)projectID;

- (void)setPaymentID:(NSNumber *)aValue;
- (NSNumber *)paymentID;

- (void)setName:(NSString *)aValue;
- (NSString *)name;

- (void)setModifyDate:(NSCalendarDate *)aValue;
- (NSCalendarDate *)modifyDate;

- (void)setMethodID:(NSNumber *)aValue;
- (NSNumber *)methodID;

- (void)setCreateDate:(NSCalendarDate *)aValue;
- (NSCalendarDate *)createDate;

- (void)setComment:(NSString *)aValue;
- (NSString *)comment;

- (void)setCachedAppliedAmount:(NSNumber *)aValue;
- (NSNumber *)cachedAppliedAmount;

- (void)setClient:(BIClient*)aValue;
- (BIClient*)createAndSetClientIfNeeded;
- (BIClient*)client;

- (void)setMethod:(BIPaymentMethodType*)aValue;
- (BIPaymentMethodType*)createAndSetMethodIfNeeded;
- (BIPaymentMethodType*)method;

- (NSMutableArray *)paymentEntries;
- (BIPaymentInvoiceEntry*)createAndAddToPaymentEntries;
- (void)addToPaymentEntries:(BIPaymentInvoiceEntry*)object;
- (void)removeFromPaymentEntries:(BIPaymentInvoiceEntry*)object;
- (BOOL)hasPaymentEntriesBeenFaulted;



@end
