updateSalesOrder
@Throws(value=com.mulesoft.connectors.dynamics365bc.internal.error.provider.UpdateODataErrorProvider.class)
@DisplayName(value="Update Sales Order")
@MediaType(value="application/json")
@OutputResolver(output=SalesOrderTypeMetadataResolver.class)
@SampleData(value=SalesOrderSampleDataProvider.class)
public void updateSalesOrder(@Config
CitizenMicrosoftDynamics365Configuration config,
@Connection
com.mulesoft.connectors.dynamics365bc.internal.connection.MicrosoftRestConnection connection,
@MetadataKeyId @Expression(value=NOT_SUPPORTED) @OfValues(value=DelegateCompanyNameValueProvider.class) @DisplayName(value="Company") @Summary(value="Name of the Company that the action should apply to")
String companyId,
@DisplayName(value="Entity ID")
String entityId,
@DisplayName(value="ETag")
String etag,
@Optional
String externalDocumentNumber,
@Optional
LocalDate orderDate,
@Optional
LocalDate postingDate,
@Optional
String customerNumber,
@Optional @OfValues(value=CurrencyCodeValueProvider.class)
String currencyCode,
@Optional @OfValues(value=PaymentTermsValueProvider.class)
String paymentTerms,
@Optional @OfValues(value=ShipmentMethodValueProvider.class)
String shipmentMethod,
@Optional
String salesPerson,
@Optional
boolean partialShipping,
@Optional
LocalDate requestedDeliveryDate,
@Optional
Float discountAmount,
@Optional
boolean fullyShipped,
@Optional
String phoneNumber,
@Optional
String email,
@Optional
String billToCustomerNumber,
@Optional @ParameterGroup(name="Ship To",showInDsl=true)
Recipient shipTo,
@Optional @ParameterGroup(name="Sell To",showInDsl=true)
Recipient sellTo,
@Optional
boolean replaceAll,
@Optional @NullSafe
List<SalesOrderLine> salesOrderLines,
org.mule.runtime.extension.api.runtime.streaming.StreamingHelper streamingHelper,
org.mule.runtime.extension.api.runtime.process.CompletionCallback<InputStream,com.mulesoft.connectors.dynamics365bc.api.HttpResponseAttributes> callback)
Updates a single Sales Order. The operation uses batch request to manage sales order lines, the maximum amount of the
requests is 100 which means that in case you use replace all for more than 49 sales order lines you have to split into 2
operations using one with replaceAll=true and second with replaceAll=false.
- Parameters:
config - the configuration to use
connection - the connection to use
companyId - ID of the company
entityId - ID of the entity to update
etag - ETag of the entity to update to prevent conflicts
streamingHelper - the StreamingHelper
callback - the operation's CompletionCallback