Class MetaDataProviderBuilder
Builder for a MetaDataProvider object.
Inherited Members
Namespace: Ingenico.Connect.Sdk
Assembly: connect-sdk-dotnet.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. |