TariffDefinitionSimulateGetAll
(Różnice między wersjami)
(Utworzył nową stronę „Zapytanie: <pre class="brush:xml"> //BEGIN// <?xml version="1.0" encoding="UTF-8"?> <Net47> <SessionID>9859c16379c2f22e2db8dde9f41cc6a8</SessionID> <Priority>0</Pr...”) |
|||
Linia 9: | Linia 9: | ||
<Type>TariffDefinitionSimulateGetAll</Type> | <Type>TariffDefinitionSimulateGetAll</Type> | ||
<TariffDefinitionSimulateGetAll> | <TariffDefinitionSimulateGetAll> | ||
− | < | + | <TariffID>1</TariffID> <!-- id z TariffGetAll --> |
<CustomerID>4</CustomerID> | <CustomerID>4</CustomerID> | ||
</TariffDefinitionSimulateGetAll> | </TariffDefinitionSimulateGetAll> |
Wersja z 11:03, 24 paź 2012
Zapytanie:
//BEGIN// <?xml version="1.0" encoding="UTF-8"?> <Net47> <SessionID>9859c16379c2f22e2db8dde9f41cc6a8</SessionID> <Priority>0</Priority> <Request> <Type>TariffDefinitionSimulateGetAll</Type> <TariffDefinitionSimulateGetAll> <TariffID>1</TariffID> <!-- id z TariffGetAll --> <CustomerID>4</CustomerID> </TariffDefinitionSimulateGetAll> </Request> </Net47> //BEGINEND//
Odpowiedź:
//BEGIN// <?xml version="1.0" encoding="UTF-8"?> <Net47> <Request> <Type>TariffDefinitionSimulateGetAll</Type> <TariffDefinitionSimulateGetAll> <TariffDefinition> <ID>4</ID> <Cycles>36</Cycles> <Description>Promocja 36 miesięcy</Description> <Simulate> <Cycle> <Cycle>1</Cycle> <Name>Promocja 24 miesiące</Name> <NameDescription>taryfa testowa</NameDescription> <Price>23.42</Price> <Netto>false</Netto> <Download>2048</Download> <Upload>512</Upload> <TerminPlatnosci>8</TerminPlatnosci> <!-- wyrazone w dniach --> </Cycle> <Cycle> <Cycle>2</Cycle> <Name>Promocja 24 miesiące</Name> <NameDescription>taryfa testowa</NameDescription> <Price>23.42</Price> <Netto>false</Netto> <Download>2048</Download> <Upload>512</Upload> <TerminPlatnosci>8</TerminPlatnosci> <!-- wyrazone w dniach --> </Cycle> <Cycle> <Cycle>3</Cycle> <Name>Promocja 24 miesiące</Name> <NameDescription>taryfa testowa</NameDescription> <Price>23.42</Price> <Netto>false</Netto> <Download>2048</Download> <Upload>512</Upload> <TerminPlatnosci>8</TerminPlatnosci> <!-- wyrazone w dniach --> </Cycle> </Simulate> </TariffDefinition> <TariffDefinition> <ID>4</ID> <Cycles>36</Cycles> <Description>Promocja 36 miesięcy</Description> <Simulate> <Cycle> <Cycle>1</Cycle> <Name>Promocja 24 miesiące</Name> <NameDescription>taryfa testowa</NameDescription> <Price>23.42</Price> <Netto>false</Netto> <Download>2048</Download> <Upload>512</Upload> <TerminPlatnosci>8</TerminPlatnosci> <!-- wyrazone w dniach --> </Cycle> <Cycle> <Cycle>2</Cycle> <Name>Promocja 24 miesiące</Name> <NameDescription>taryfa testowa</NameDescription> <Price>23.42</Price> <Netto>false</Netto> <Download>2048</Download> <Upload>512</Upload> <TerminPlatnosci>8</TerminPlatnosci> <!-- wyrazone w dniach --> </Cycle> <Cycle> <Cycle>3</Cycle> <Name>Promocja 24 miesiące</Name> <NameDescription>taryfa testowa</NameDescription> <Price>23.42</Price> <Netto>false</Netto> <Download>2048</Download> <Upload>512</Upload> <TerminPlatnosci>8</TerminPlatnosci> <!-- wyrazone w dniach --> </Cycle> </Simulate> </TariffDefinition> </TariffDefinitionSimulateGetAll> </Request> </Net47> //BEGINEND//
Błędy:
//BEGIN// <?xml version="1.0" encoding="UTF-8"?> <Net47> <Request> <Type>Error</Type> <Error>Taryfa o podanym ID nie istnieje</Error> </Request> </Net47> //BEGINEND//