Class PaymentConverter
Converts asbtract Payment to implementatopm
Inheritance
System.Object
PaymentConverter
Namespace: Mediachase.Commerce.Orders
Assembly: Mediachase.Commerce.dll
Version: 12.17.2Syntax
public class PaymentConverter : JsonConverter
Constructors
PaymentConverter()
Declaration
public PaymentConverter()
Properties
CanWrite
Gets a value indicating whether this Newtonsoft.Json.JsonConverter can write JSON.
Declaration
public override bool CanWrite { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Methods
CanConvert(Type)
Determines whether this instance can convert the specified object type.
Declaration
public override bool CanConvert(Type objectType)
Parameters
Type | Name | Description |
---|---|---|
System.Type | objectType | Type of the object. |
Returns
Type | Description |
---|---|
System.Boolean |
|
ReadJson(JsonReader, Type, Object, JsonSerializer)
Reads the JSON representation of the object.
Declaration
public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
Parameters
Type | Name | Description |
---|---|---|
Newtonsoft.Json.JsonReader | reader | The Newtonsoft.Json.JsonReader to read from. |
System.Type | objectType | Type of the object. |
System.Object | existingValue | The existing value of object being read. |
Newtonsoft.Json.JsonSerializer | serializer | The calling serializer. |
Returns
Type | Description |
---|---|
System.Object | The object value. |
WriteJson(JsonWriter, Object, JsonSerializer)
Writes the JSON representation of the object.
Declaration
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
Parameters
Type | Name | Description |
---|---|---|
Newtonsoft.Json.JsonWriter | writer | The Newtonsoft.Json.JsonWriter to write to. |
System.Object | value | The value. |
Newtonsoft.Json.JsonSerializer | serializer | The calling serializer. |