Esempio n. 1
0
class _AppProvider(Model):
    id = fields.Str()
    providerName = fields.Str()
    titleId = fields.Str()
    primaryColor = fields.Str()
    secondaryColor = fields.Str()
    channels = NestedModel(_AppChannel, many=True)
Esempio n. 2
0
class _LiveTvInfo(Model):
    streamingPort = fields.Int()
    inHdmiMode = fields.Bool()
    tunerChannelType = fields.Str()
    currentTunerChannelId = fields.Str()
    currentHdmiChannelId = fields.Str()
    pauseBufferInfo = NestedModel(_PauseBufferInfo)
Esempio n. 3
0
class OrderSchema(Model):
    gross_amount = fields.Int(required=True, data_key='gross_amount')
    net_amount = fields.Int(required=True, data_key='net_amount')
    discount_gross_amount = fields.Int(required=True,
                                       data_key='discount_gross_amount')
    discount_net_amount = fields.Int(required=True,
                                     data_key='discount_net_amount')
    items = fields.List(NestedModel(ItemSchema))
Esempio n. 4
0
class _HeadendInfo(Model):
    providerName = fields.Str()
    headendId = fields.UUID()
    blockExplicitContentPerShow = fields.Bool()
    dvrEnabled = fields.Bool()
    headendLocale = fields.Str()
    streamingPort = fields.Int()
    preferredProvider = fields.Str()
    providers = NestedModel(_HeadendProvider, many=True)
Esempio n. 5
0
class AddressSchema(Model):
    first_name = fields.String(required=True, data_key='first_name')
    last_name = fields.String(required=True, data_key='last_name')
    company_name = fields.String(required=True, data_key='company_name')
    street = fields.String(required=True, data_key='street')
    street_number = fields.String(required=True, data_key='street_number')
    city = fields.String(required=True, data_key='city')
    zip = fields.String(required=True, data_key='zip')
    additional = fields.String(required=True, data_key='additional')
    country = NestedModel(CountrySchema, attribute='country')
Esempio n. 6
0
class PaymentDto(Model):
    reference_id = fields.String(required=True, data_key='reference_id')
    currency = fields.String(required=True, data_key='currency')
    order = NestedModel(OrderSchema, attribute='order')
    shipping = NestedModel(ShippingSchema, attribute='shipping')
    customer = NestedModel(CustomerSchema, attribute='customer')
    billing_address = NestedModel(AddressSchema, attribute='billing_address')
    delivery_address = NestedModel(AddressSchema, attribute='delivery_address')
    payment_configuration = NestedModel(PaymentConfiguration,
                                        attribute='payment_configuration')
Esempio n. 7
0
class PaymentConfiguration(Model):
    payment_method = fields.String(required=True, data_key='payment_method')
    authorisation_url = NestedModel(AuthorisationUrlSchema,
                                    attribute='authorisation_url')
Esempio n. 8
0
class _TunerLineups(Model):
    providers = NestedModel(_LineupProvider, many=True)
Esempio n. 9
0
class _LineupProvider(Model):
    foundChannels = NestedModel(_FoundChannel, many=True, required=True)
    cqsChannels = fields.List(fields.Str(), required=True)
    headendId = fields.UUID()
Esempio n. 10
0
class HeadendInfo(StumpResponse):
    params = NestedModel(_HeadendInfo)
Esempio n. 11
0
class LiveTvInfo(StumpResponse):
    params = NestedModel(_LiveTvInfo)
Esempio n. 12
0
class Configuration(StumpResponse):
    params = NestedModel(_DeviceConfiguration, many=True)
Esempio n. 13
0
class RecentChannels(StumpResponse):
    params = NestedModel(_RecentChannel, many=True)
Esempio n. 14
0
class TunerLineups(StumpResponse):
    params = NestedModel(_TunerLineups)
Esempio n. 15
0
class EnsureStreamingStarted(StumpResponse):
    params = NestedModel(_EnsureStreamingStarted)
Esempio n. 16
0
class AppChannelLineups(StumpResponse):
    params = NestedModel(_AppProvider, many=True)