コード例 #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)
コード例 #2
0
class _LiveTvInfo(Model):
    streamingPort = fields.Int()
    inHdmiMode = fields.Bool()
    tunerChannelType = fields.Str()
    currentTunerChannelId = fields.Str()
    currentHdmiChannelId = fields.Str()
    pauseBufferInfo = NestedModel(_PauseBufferInfo)
コード例 #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))
コード例 #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)
コード例 #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')
コード例 #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')
コード例 #7
0
class PaymentConfiguration(Model):
    payment_method = fields.String(required=True, data_key='payment_method')
    authorisation_url = NestedModel(AuthorisationUrlSchema,
                                    attribute='authorisation_url')
コード例 #8
0
class _TunerLineups(Model):
    providers = NestedModel(_LineupProvider, many=True)
コード例 #9
0
class _LineupProvider(Model):
    foundChannels = NestedModel(_FoundChannel, many=True, required=True)
    cqsChannels = fields.List(fields.Str(), required=True)
    headendId = fields.UUID()
コード例 #10
0
class HeadendInfo(StumpResponse):
    params = NestedModel(_HeadendInfo)
コード例 #11
0
class LiveTvInfo(StumpResponse):
    params = NestedModel(_LiveTvInfo)
コード例 #12
0
class Configuration(StumpResponse):
    params = NestedModel(_DeviceConfiguration, many=True)
コード例 #13
0
class RecentChannels(StumpResponse):
    params = NestedModel(_RecentChannel, many=True)
コード例 #14
0
class TunerLineups(StumpResponse):
    params = NestedModel(_TunerLineups)
コード例 #15
0
class EnsureStreamingStarted(StumpResponse):
    params = NestedModel(_EnsureStreamingStarted)
コード例 #16
0
class AppChannelLineups(StumpResponse):
    params = NestedModel(_AppProvider, many=True)