"""V1 Subaccount schema.""" from marshmallow import Schema, fields from marshmallow.validate import OneOf class CreateSubaccountSchema(Schema): """V1 Create Subaccount schema. Properties: -vendor_id (int): The id of Vendor -subaccount_name (str): full name of the Subaccount """ vendor_id = fields.Integer(required=True) subaccount_name = fields.String(required=True) description = fields.String(required=False) country_id = fields.Integer(required=False) commission_override = fields.Float(required=False) subaccount_split_type = fields.Str(validate=OneOf(['Gross', 'Net']), required=False)