public class CreateSalesOrderOperation
extends com.mulesoft.connectors.dynamics365bc.internal.operation.BaseRestOperation
| Constructor and Description |
|---|
CreateSalesOrderOperation() |
| Modifier and Type | Method and Description |
|---|---|
void |
createSalesOrder(CitizenMicrosoftDynamics365Configuration config,
com.mulesoft.connectors.dynamics365bc.internal.connection.MicrosoftRestConnection connection,
String companyId,
String externalDocumentNumber,
LocalDate orderDate,
LocalDate postingDate,
String customerNumber,
String currencyCode,
String paymentTerms,
String shipmentMethod,
String salesPerson,
boolean partialShipping,
LocalDate requestedDeliveryDate,
Float discountAmount,
boolean fullyShipped,
String phoneNumber,
String email,
String billToCustomerNumber,
Recipient shipTo,
Recipient sellTo,
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)
Creates a single Sales Order
|
@Throws(value=com.mulesoft.connectors.dynamics365bc.internal.error.provider.CreateODataErrorProvider.class) @DisplayName(value="Create Sales Order") @MediaType(value="application/json") @OutputResolver(output=SalesOrderTypeMetadataResolver.class) @SampleData(value=SalesOrderSampleDataProvider.class) public void createSalesOrder(@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, @Optional String externalDocumentNumber, @Optional LocalDate orderDate, @Optional LocalDate postingDate, 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 @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)
config - the configuration to useconnection - the connection to usecompanyId - ID of the companystreamingHelper - the StreamingHelpercallback - the operation's CompletionCallbackCopyright © 2023 MuleSoft, Inc.. All rights reserved.