// Generated by xsd compiler for ios/objective-c
// DO NOT CHANGE!

#import <Foundation/Foundation.h>
#import "Trading_PromotionalSaleType.h"
#import "Trading_ItemIDArrayType.h"

@implementation Trading_PromotionalSaleType

@synthesize promotionalSaleID = _promotionalSaleID;
@synthesize promotionalSaleName = _promotionalSaleName;
@synthesize promotionalSaleItemIDArray = _promotionalSaleItemIDArray;
@synthesize status = _status;
@synthesize discountType = _discountType;
@synthesize discountValue = _discountValue;
@synthesize promotionalSaleStartTime = _promotionalSaleStartTime;
@synthesize promotionalSaleEndTime = _promotionalSaleEndTime;
@synthesize promotionalSaleType = _promotionalSaleType;
@synthesize any = _any;

// class meta-data method
// note: this method is only for internal use, DO NOT CHANGE!
+(PicoClassSchema *)getClassMetaData {
    return nil;
}

// property meta-data method
// note: this method is only for internal use, DO NOT CHANGE!
+(NSMutableDictionary *)getPropertyMetaData {
    NSMutableDictionary *map = [NSMutableDictionary dictionary];
    
    PicoPropertySchema *ps = nil;
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"PromotionalSaleID" propertyName:@"promotionalSaleID" type:PICO_TYPE_LONG clazz:nil];
    [map setObject:ps forKey:@"promotionalSaleID"];
    [ps release];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"PromotionalSaleName" propertyName:@"promotionalSaleName" type:PICO_TYPE_STRING clazz:nil];
    [map setObject:ps forKey:@"promotionalSaleName"];
    [ps release];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"PromotionalSaleItemIDArray" propertyName:@"promotionalSaleItemIDArray" type:PICO_TYPE_OBJECT clazz:[Trading_ItemIDArrayType class]];
    [map setObject:ps forKey:@"promotionalSaleItemIDArray"];
    [ps release];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"Status" propertyName:@"status" type:PICO_TYPE_ENUM clazz:nil];
    [map setObject:ps forKey:@"status"];
    [ps release];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"DiscountType" propertyName:@"discountType" type:PICO_TYPE_ENUM clazz:nil];
    [map setObject:ps forKey:@"discountType"];
    [ps release];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"DiscountValue" propertyName:@"discountValue" type:PICO_TYPE_DOUBLE clazz:nil];
    [map setObject:ps forKey:@"discountValue"];
    [ps release];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"PromotionalSaleStartTime" propertyName:@"promotionalSaleStartTime" type:PICO_TYPE_DATE clazz:nil];
    [map setObject:ps forKey:@"promotionalSaleStartTime"];
    [ps release];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"PromotionalSaleEndTime" propertyName:@"promotionalSaleEndTime" type:PICO_TYPE_DATE clazz:nil];
    [map setObject:ps forKey:@"promotionalSaleEndTime"];
    [ps release];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"PromotionalSaleType" propertyName:@"promotionalSaleType" type:PICO_TYPE_ENUM clazz:nil];
    [map setObject:ps forKey:@"promotionalSaleType"];
    [ps release];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ANY_ELEMENT xmlName:@"any" propertyName:@"any" type:PICO_TYPE_ANYELEMENT clazz:nil];
    [map setObject:ps forKey:@"any"];
    [ps release];
    
    return map;
}



-(void)dealloc {
    self.promotionalSaleID = nil;
    self.promotionalSaleName = nil;
    self.promotionalSaleItemIDArray = nil;
    self.status = nil;
    self.discountType = nil;
    self.discountValue = nil;
    self.promotionalSaleStartTime = nil;
    self.promotionalSaleEndTime = nil;
    self.promotionalSaleType = nil;
    self.any = nil;
    [super dealloc];
}

@end
