def save_3():
    sender = CounterpartyContact()
    sender.setCity('8d5a980d-391c-11dd-90d9-001a92567626')\
        .setRef('f867c762-e66a-11e3-8c4a-0050568002cf')\
        .setAddress('1ec09d88-e1c2-11e3-8c4a-0050568002cf')\
        .setContact('e23f313c-e67a-11e3-8c4a-0050568002cf')\
        .setPhone('+380660000000')

    recipient = CounterpartyContact()
    recipient.setCity('db5c88de-391c-11dd-90d9-001a92567626')\
        .setRef('7da56a9c-f205-11e3-8c4a-0050568002cf')\
        .setAddress('daec7561-b457-11e4-a77a-005056887b8d')\
        .setContact('57065334-f211-11e3-8c4a-0050568002cf')\
        .setPhone('+380660000001')

    backwardDeliveryData = BackwardDeliveryData()
    backwardDeliveryData.setPayerType('Sender')\
        .setCargoType('Money')\
        .setRedeliveryString('500')

    optionsSeat1 = OptionsSeat()
    optionsSeat1.setVolumetricHeight(20)\
        .setVolumetricLength(20)\
        .setVolumetricWidth(20)\
        .setWeight(20)

    optionsSeat2 = OptionsSeat()
    optionsSeat2.setVolumetricHeight(15)\
        .setVolumetricLength(15)\
        .setVolumetricWidth(15)\
        .setWeight(15)

    optionsSeat3 = OptionsSeat()
    optionsSeat3.setVolumetricVolume(0.05)\
        .setWeight(10)

    optionsSeat4 = OptionsSeat()
    optionsSeat4.setVolumetricVolume(0.05)\
        .setWeight(15)

    internetDocument = InternetDocument()
    internetDocument.setSender(sender)\
        .setRecipient(recipient)\
        .setServiceType('WarehouseDoors')\
        .setPayerType('Recipient')\
        .setPaymentMethod('Cash')\
        .setCargoType('Cargo')\
        .setCost('200')\
        .setDescription('ТЦ')\
        .addOptionsSeat(optionsSeat1)\
        .addOptionsSeat(optionsSeat2)\
        .addOptionsSeat(optionsSeat3)\
        .addOptionsSeat(optionsSeat4)\
        .addBackwardDeliveryData(backwardDeliveryData)

    internetDocument.CargoType = 'Cargo'

    return internetDocument.save()
def save_4():
    sender = CounterpartyContact()
    sender.setCity('8d5a980d-391c-11dd-90d9-001a92567626')\
        .setRef('f867c762-e66a-11e3-8c4a-0050568002cf')\
        .setAddress('1ec09d88-e1c2-11e3-8c4a-0050568002cf')\
        .setContact('e23f313c-e67a-11e3-8c4a-0050568002cf')\
        .setPhone('+380660000000')

    recipient = CounterpartyContact()
    recipient.setCity('db5c88de-391c-11dd-90d9-001a92567626')\
        .setRef('7da56a9c-f205-11e3-8c4a-0050568002cf')\
        .setAddress('daec7561-b457-11e4-a77a-005056887b8d')\
        .setContact('57065334-f211-11e3-8c4a-0050568002cf')\
        .setPhone('+380660000001')

    optionsSeat1 = OptionsSeat()
    optionsSeat1.setVolumetricHeight(100)\
        .setVolumetricLength(100)\
        .setVolumetricWidth(100)\
        .setWeight(100)

    optionsSeat2 = OptionsSeat()
    optionsSeat2.setVolumetricHeight(100)\
        .setVolumetricLength(100)\
        .setVolumetricWidth(170)\
        .setWeight(550)

    internetDocument = InternetDocument()
    internetDocument.setSender(sender)\
        .setRecipient(recipient)\
        .setServiceType('WarehouseDoors')\
        .setPayerType('Recipient')\
        .setPaymentMethod('Cash')\
        .setCargoType('Pallet')\
        .setCost('200')\
        .setDescription('ТЦ')\
        .addOptionsSeat(optionsSeat1)\
        .addOptionsSeat(optionsSeat2)

    return internetDocument.save()