Sage.PL.WebAPI.Interface.Contractors.Interfaces Namespace > IContractorDeliveryAddressesController Interface > IContractorDeliveryAddressesController Methods > Update Method  > Update Method (String, ContractorDeliveryAddress)

Drukuj

.NET Framework Class Library

IContractorDeliveryAddressesController.Update Method (String, ContractorDeliveryAddress)

Metoda umożliwia aktualizacje lub utworzenie nowego adresu dostawy dla kontrahenta o podanym id. W przypadku, gdy nie istnieje adres dostawy o podanym id lub kodzie, zostanie utworzony nowy adres dostawy o podanych wartościach dla wskazanego kontrahenta.

[PUT] /api/ContractorDeliveryAddresses/Update?contractorCode=kod_kontrahenta

Namespace: Sage.PL.WebAPI.Interface.Contractors.Interfaces

Assembly:  Sage.PL.WebAPI.Interface.Contractors (in Sage.PL.WebAPI.Interface.Contractors.dll) Version: 24.2.1.0 (24.2.1.0)

Syntax

Visual Basic

Function Update ( _
 contractorCode As String, _
 contractorDeliveryAddress As ContractorDeliveryAddress _
As IHttpActionResult

C#

IHttpActionResult Update(
 string contractorCode,
 ContractorDeliveryAddress contractorDeliveryAddress
)

Visual C++

IHttpActionResultUpdate(
 StringcontractorCode,
 ContractorDeliveryAddresscontractorDeliveryAddress
)

JavaScript

function update(contractorCodecontractorDeliveryAddress);

Parameters

contractorCode

Type: System.String

[FromUri] Kod kontrahenta.

contractorDeliveryAddress

Type: Sage.PL.WebAPI.Interface.Contractors.ViewModels.ContractorDeliveryAddress

[FromBody] Obiekt adresu dostawy kontrahenta do aktualizacji.

Return Value

Metoda nie zwraca żadnej zawartości.

See Also

IContractorDeliveryAddressesController Interface

IContractorDeliveryAddressesController Members

Update Overload

Sage.PL.WebAPI.Interface.Contractors.Interfaces Namespace