public class CreateCustomerOperation
extends com.mulesoft.connectors.dynamics365bc.internal.operation.BaseRestOperation
| Constructor and Description |
|---|
CreateCustomerOperation() |
| Modifier and Type | Method and Description |
|---|---|
void |
createCustomer(CitizenMicrosoftDynamics365Configuration config,
com.mulesoft.connectors.dynamics365bc.internal.connection.MicrosoftRestConnection connection,
String companyId,
String number,
String displayName,
String type,
String addressLine1,
String addressLine2,
String city,
String state,
String country,
String postalCode,
String phoneNumber,
String email,
String website,
String salespersonCode,
int creditLimit,
boolean taxLiable,
String taxArea,
String taxRegistrationNumber,
String currencyCode,
String paymentTerms,
String shipmentMethod,
String paymentMethod,
CustomerBlockedEnum blocked,
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 Customer
|
@Throws(value=com.mulesoft.connectors.dynamics365bc.internal.error.provider.CreateODataErrorProvider.class) @DisplayName(value="Create Customer") @MediaType(value="application/json") @OutputResolver(output=CustomerTypeMetadataResolver.class) @SampleData(value=CustomerSampleDataProvider.class) public void createCustomer(@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 number, @Optional String displayName, @Optional String type, @Optional String addressLine1, @Optional String addressLine2, @Optional String city, @Optional String state, @Optional String country, @Optional String postalCode, @Optional String phoneNumber, @Optional String email, @Optional String website, @Optional String salespersonCode, @Optional int creditLimit, @Optional boolean taxLiable, @Optional @OfValues(value=TaxAreaValueProvider.class) String taxArea, @Optional String taxRegistrationNumber, @Optional @OfValues(value=CurrencyCodeValueProvider.class) String currencyCode, @Optional @OfValues(value=PaymentTermsValueProvider.class) String paymentTerms, @Optional @OfValues(value=ShipmentMethodValueProvider.class) String shipmentMethod, @Optional @OfValues(value=PaymentMethodValueProvider.class) String paymentMethod, @Optional CustomerBlockedEnum blocked, 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.