Class MetadataProviderBuilder
Builder for a MetadataProvider object.
Inherited Members
Namespace: Worldline.Connect.Sdk.Communication
Assembly: Worldline.Connect.Sdk.dll
Syntax
public class MetadataProviderBuilder
Constructors
MetadataProviderBuilder(string)
Declaration
public MetadataProviderBuilder(string integrator)
Parameters
Type | Name | Description |
---|---|---|
string | integrator | The integrator to use. |
Properties
AdditionalRequestHeaders
Gets or sets the additional request headers. The following names are prohibited in these additional request headers, because these will be set automatically as needed:
Declaration
public IEnumerable<RequestHeader> AdditionalRequestHeaders { get; set; }
Property Value
Type | Description |
---|---|
IEnumerable<RequestHeader> |
Integrator
Gets or sets the integrator to use.
Declaration
public string Integrator { get; }
Property Value
Type | Description |
---|---|
string |
ShoppingCartExtension
Gets or sets the shopping cart extension to use.
Declaration
public ShoppingCartExtension ShoppingCartExtension { get; set; }
Property Value
Type | Description |
---|---|
ShoppingCartExtension |
Methods
Build()
Creates a fully initialized MetadataProvider object.
Declaration
public MetadataProvider Build()
Returns
Type | Description |
---|---|
MetadataProvider |
WithAdditionalRequestHeader(RequestHeader)
Adds an additional request header. The following names are prohibited in these additional request headers, because these will be set automatically as needed:
Declaration
public MetadataProviderBuilder WithAdditionalRequestHeader(RequestHeader additionalRequestHeader)
Parameters
Type | Name | Description |
---|---|---|
RequestHeader | additionalRequestHeader |
Returns
Type | Description |
---|---|
MetadataProviderBuilder | This. |
WithShoppingCartExtension(ShoppingCartExtension)
Sets the shopping cart extension to use.
Declaration
public MetadataProviderBuilder WithShoppingCartExtension(ShoppingCartExtension shoppingCartExtension)
Parameters
Type | Name | Description |
---|---|---|
ShoppingCartExtension | shoppingCartExtension |
Returns
Type | Description |
---|---|
MetadataProviderBuilder | This. |