Beispiel #1
0
class ItemSchema(Model):
    id = fields.Int(required=True, data_key='id')
    name = fields.String(required=True, data_key='name')
    type = fields.String(required=True, data_key='type')
    quantity = fields.Int(required=True, data_key='quantity')
    gross_amount = fields.Int(required=True, data_key='gross_amount')
    net_amount = fields.Int(required=True, data_key='net_amount')
Beispiel #2
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))
Beispiel #3
0
class _LiveTvInfo(Model):
    streamingPort = fields.Int()
    inHdmiMode = fields.Bool()
    tunerChannelType = fields.Str()
    currentTunerChannelId = fields.Str()
    currentHdmiChannelId = fields.Str()
    pauseBufferInfo = NestedModel(_PauseBufferInfo)
Beispiel #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)
Beispiel #5
0
class _PauseBufferInfo(Model):
    Enabled = fields.Bool()
    IsDvr = fields.Bool()
    MaxBufferSize = fields.Int()
    BufferCurrent = fields.Int()
    BufferStart = fields.Int()
    BufferEnd = fields.Int()
    CurrentTime = fields.Int()
    Epoch = fields.Int()
class BroadcastStateStarted(_BroadcastStateMessage):
    isWirelessConnection = fields.Bool()
    wirelessChannel = fields.Int()
    transmitLinkSpeed = fields.Int()
class BroadcastStateInitializing(_BroadcastStateMessage):
    udpPort = fields.Int()
    tcpPort = fields.Int()
class BroadcastStreamEnabled(_BroadcastMessage):
    enabled = fields.Bool()
    canBeEnabled = fields.Bool()
    majorProtocolVersion = fields.Int()
    minorProtocolVersion = fields.Int()
Beispiel #9
0
class PaymentResponseDto(Schema):
    id = fields.Int(required=True, data_key='id')
    payment_method = fields.String(required=True, data_key='payment_method')
    amount = fields.Int(required=True, data_key='amount')
    status = fields.String(required=True, data_key='status')
    transaction_id = fields.String(required=True, data_key='transaction_id')
Beispiel #10
0
class ReservedPaymentDto(Model):
    id = fields.Int(required=True, data_key='id')
Beispiel #11
0
class ShippingSchema(Model):
    name = fields.String(required=True, data_key='name')
    gross_amount = fields.Int(required=True, data_key='gross_amount')
    net_amount = fields.Int(required=True, data_key='net_amount')
Beispiel #12
0
class _EnsureStreamingStarted(Model):
    currentChannelId = fields.Str()
    source = fields.Str()
    streamingPort = fields.Int()
    tunerChannelType = fields.Str()
    userCanViewChannel = fields.Str()
Beispiel #13
0
class _FoundChannel(Model):
    channelNumber = fields.Int()
    displayName = fields.Str()
    channelId = fields.Str()