Class OnlineEftposRequestBuilder
Reduces the effort/code needed to construct a OnlineEftposPaymentRequest or OnlineEftposRefundRequest by using default & templated values for properties that do not change or have a predictable pattern.
Inheritance
Inherited Members
Namespace: Yort.OnlineEftpos
Assembly: cs.temp.dll.dll
Syntax
public class OnlineEftposRequestBuilder
Remarks
Note: Values neither provided to the builder nor the resulting request objects are validated. To ensure a request is valid make sure to call the requests EnsureValid method.
Constructors
Name | Description |
---|---|
OnlineEftposRequestBuilder() | Default constructor. |
OnlineEftposRequestBuilder() | Default constructor. |
Properties
Name | Description |
---|---|
CallbackUrlTemplate | A template string for creating callback urls. |
CallbackUrlTemplate | A template string for creating callback urls. |
DefaultCurrency | The default value for the Currency property. |
DefaultCurrency | The default value for the Currency property. |
DefaultCurrencyMultiplier | Specifies the multipler to convert a System.Decimal value into a valid API amount (integer). |
DefaultCurrencyMultiplier | Specifies the multipler to convert a System.Decimal value into a valid API amount (integer). |
DefaultMerchantId | The default value for the MerchantIdCode property. |
DefaultMerchantIdCode | The default value for the MerchantIdCode property. |
DefaultMerchantUrl | The default value for the MerchantUrl property. |
DefaultMerchantUrl | The default value for the MerchantUrl property. |
DefaultUserAgent | For systems that do not interact with a user via HTTP, this is the fake value passed for the UserAgent property. |
DefaultUserAgent | For systems that do not interact with a user via HTTP, this is the fake value passed for the UserAgent property. |
DefaultUserIP | For systems that do not interact with a user via HTTP, this is the fake value passed for the UserIPAddress property. |
DefaultUserIP | For systems that do not interact with a user via HTTP, this is the fake value passed for the UserIPAddress property. |
PurchaseDescriptionTemplate | The template string to use for default purchase descriptions. |
PurchaseDescriptionTemplate | The template string to use for default purchase descriptions. |
RefundReasonTemplate | The template string to use for default refund reasons. |
RefundReasonTemplate | The template string to use for default refund reasons. |
Methods
Name | Description |
---|---|
CreatePaymentRequest(String, String, String, String, Decimal) | Create a new (unvalidated) payment request using default and supplied values. |
CreatePaymentRequest(String, String, String, String, Decimal) | Create a new (unvalidated) payment request using default and supplied values. |
CreatePaymentRequest(String, String, String, String, Decimal, String, String) | Create a new (unvalidated) payment request using default and supplied values. |
CreateRefundRequest(String, String, Decimal) | Create a new (unvalidated) refund request using default and supplied values. |
CreateRefundRequest(String, String, Decimal) | Create a new (unvalidated) refund request using default and supplied values. |
CreateRefundRequest(String, String, Decimal, String, String) | Create a new (unvalidated) refund request using default and supplied values. |