Class LaybuyClientConfiguration
Provides configuration settings for ILaybuyClient and default values for some requests..
Inherited Members
Namespace: Yort.Laybuy.InStore
Assembly: Yort.Laybuy.InStore.dll
Syntax
public class LaybuyClientConfiguration
Constructors
| Improve this Doc View SourceLaybuyClientConfiguration(LaybuyCredentials)
Default constructor.
Declaration
public LaybuyClientConfiguration(LaybuyCredentials credentials)
Parameters
Type | Name | Description |
---|---|---|
LaybuyCredentials | credentials |
Properties
| Improve this Doc View SourceCredentials
Gets or sets a LaybuyCredentials instance used to authenticate to the Laybuy API.
Declaration
public LaybuyCredentials Credentials { get; }
Property Value
Type | Description |
---|---|
LaybuyCredentials |
DefaultBranch
Gets or sets the default value for Branch which is applied if no origin data is specified on a CreateOrderRequest.
Declaration
public string DefaultBranch { get; set; }
Property Value
Type | Description |
---|---|
String | The default branch identifier (usually name). |
DefaultOrigin
Gets or sets the default Origin value.
Declaration
public string DefaultOrigin { get; set; }
Property Value
Type | Description |
---|---|
String | The default origin. |
Remarks
The default value is "POS".
Environment
Gets or sets a value from the LaybuyEnvironment enum specifying whether this client connects to the production or sandboxed (test) Laybuy API.
Declaration
public LaybuyEnvironment Environment { get; set; }
Property Value
Type | Description |
---|---|
LaybuyEnvironment |
Remarks
The default value is Sandbox to prevent accidental live transactions. Production systems must specify Production for real payments to occur.
HttpClientFactory
Gets or sets a function that create an HttpClient to be used to communicate with Laybuy. Can be null, in which case the system will create it's own instance.
Declaration
public Func<HttpClient> HttpClientFactory { get; set; }
Property Value
Type | Description |
---|---|
Func<HttpClient> |