예제 #1
0
    def build_milks(self):
        whmm = CatalogModifier()
        whmm.name = 'Whole Milk'
        whm = CatalogObject()
        whm.type = 'MODIFIER'
        whm.id = self.CLIENT_ID_MILK_WHOLE
        whm.modifier_data = whmm

        skmm = CatalogModifier()
        skmm.name = 'Skim Milk'
        skm = CatalogObject()
        skm.type = 'MODIFIER'
        skm.id = self.CLIENT_ID_MILK_SKIM
        skm.modifier_data = skmm

        symm = CatalogModifier()
        symm.name = 'Soy Milk'
        symm.price_money = Money(50, 'USD')
        sym = CatalogObject()
        sym.type = 'MODIFIER'
        sym.id = self.CLIENT_ID_MILK_SOY
        sym.modifier_data = symm

        ml = CatalogModifierList()
        ml.name = 'Milks'
        ml.modifiers = [whm, skm, sym]

        co = CatalogObject()
        co.type = 'MODIFIER_LIST'
        co.id = self.CLIENT_ID_MILKS
        co.modifier_list_data = ml
        return co
예제 #2
0
    def build_milks(self):
        whmm = CatalogModifier()
        whmm.name = 'Whole Milk'
        whm = CatalogObject()
        whm.type = 'MODIFIER'
        whm.id = self.CLIENT_ID_MILK_WHOLE
        whm.modifier_data = whmm

        skmm = CatalogModifier()
        skmm.name = 'Skim Milk'
        skm = CatalogObject()
        skm.type = 'MODIFIER'
        skm.id = self.CLIENT_ID_MILK_SKIM
        skm.modifier_data = skmm

        symm = CatalogModifier()
        symm.name = 'Soy Milk'
        symm.price_money = Money(50, 'USD')
        sym = CatalogObject()
        sym.type = 'MODIFIER'
        sym.id = self.CLIENT_ID_MILK_SOY
        sym.modifier_data = symm

        ml = CatalogModifierList()
        ml.name = 'Milks'
        ml.modifiers = [whm, skm, sym]

        co = CatalogObject()
        co.type = 'MODIFIER_LIST'
        co.id = self.CLIENT_ID_MILKS
        co.modifier_list_data = ml
        return co
예제 #3
0
    def build_syrups(self):
        hzmm = CatalogModifier()
        hzmm.name = 'Hazelnut'
        hzm = CatalogObject()
        hzm.type = 'MODIFIER'
        hzm.id = self.CLIENT_ID_HAZELNUT
        hzm.modifier_data = hzmm

        vnmm = CatalogModifier()
        vnmm.name = 'Vanilla'
        vnm = CatalogObject()
        vnm.type = 'MODIFIER'
        vnm.id = self.CLIENT_ID_VANILLA
        vnm.modifier_data = vnmm

        chmm = CatalogModifier()
        chmm.name = 'Chocolate'
        chm = CatalogObject()
        chm.type = 'MODIFIER'
        chm.id = self.CLIENT_ID_CHOCOLATE
        chm.modifier_data = chmm

        ml = CatalogModifierList()
        ml.name = 'Syrups'
        ml.modifiers = [hzm, vnm, chm]

        co = CatalogObject()
        co.type = 'MODIFIER_LIST'
        co.id = self.CLIENT_ID_SYRUPS
        co.modifier_list_data = ml
        return co
예제 #4
0
    def build_syrups(self):
        hzmm = CatalogModifier()
        hzmm.name = 'Hazelnut'
        hzm = CatalogObject()
        hzm.type = 'MODIFIER'
        hzm.id = self.CLIENT_ID_HAZELNUT
        hzm.modifier_data = hzmm

        vnmm = CatalogModifier()
        vnmm.name = 'Vanilla'
        vnm = CatalogObject()
        vnm.type = 'MODIFIER'
        vnm.id = self.CLIENT_ID_VANILLA
        vnm.modifier_data = vnmm

        chmm = CatalogModifier()
        chmm.name = 'Chocolate'
        chm = CatalogObject()
        chm.type = 'MODIFIER'
        chm.id = self.CLIENT_ID_CHOCOLATE
        chm.modifier_data = chmm

        ml = CatalogModifierList()
        ml.name = 'Syrups'
        ml.modifiers = [hzm, vnm, chm]

        co = CatalogObject()
        co.type = 'MODIFIER_LIST'
        co.id = self.CLIENT_ID_SYRUPS
        co.modifier_list_data = ml
        return co