Billhighway Cloud API

<back to all web services

SalesForceCreditCardReference

The following routes are available for this service:
POST/api/SalesForce/CreditCardReference
import 'package:servicestack/servicestack.dart';

class SalesForceCreditCardReferenceReply implements IHaveErrorField, IConvertible
{
    String? ClassName;
    String? UniqueId;
    DateTime? CreatedDateTime;
    int? ClientId;
    String? CardReference;
    int? ErrorCode;
    String? ErrorMessage;
    bool? IsError;

    SalesForceCreditCardReferenceReply({this.ClassName,this.UniqueId,this.CreatedDateTime,this.ClientId,this.CardReference,this.ErrorCode,this.ErrorMessage,this.IsError});
    SalesForceCreditCardReferenceReply.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        ClassName = json['ClassName'];
        UniqueId = json['UniqueId'];
        CreatedDateTime = JsonConverters.fromJson(json['CreatedDateTime'],'DateTime',context!);
        ClientId = json['ClientId'];
        CardReference = json['CardReference'];
        ErrorCode = json['ErrorCode'];
        ErrorMessage = json['ErrorMessage'];
        IsError = json['IsError'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'ClassName': ClassName,
        'UniqueId': UniqueId,
        'CreatedDateTime': JsonConverters.toJson(CreatedDateTime,'DateTime',context!),
        'ClientId': ClientId,
        'CardReference': CardReference,
        'ErrorCode': ErrorCode,
        'ErrorMessage': ErrorMessage,
        'IsError': IsError
    };

    getTypeName() => "SalesForceCreditCardReferenceReply";
    TypeContext? context = _ctx;
}

class SalesForceCreditCardReference implements IConvertible
{
    String? ClassName;
    String? UniqueId;
    DateTime? CreatedDateTime;
    int? ClientId;
    String? CardType;
    String? CardReferenceOrCardNumber;
    String? Cvv;
    int? ExpirationMonth;
    int? ExpirationYear;
    String? Location;
    String? GroupId;

    SalesForceCreditCardReference({this.ClassName,this.UniqueId,this.CreatedDateTime,this.ClientId,this.CardType,this.CardReferenceOrCardNumber,this.Cvv,this.ExpirationMonth,this.ExpirationYear,this.Location,this.GroupId});
    SalesForceCreditCardReference.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        ClassName = json['ClassName'];
        UniqueId = json['UniqueId'];
        CreatedDateTime = JsonConverters.fromJson(json['CreatedDateTime'],'DateTime',context!);
        ClientId = json['ClientId'];
        CardType = json['CardType'];
        CardReferenceOrCardNumber = json['CardReferenceOrCardNumber'];
        Cvv = json['Cvv'];
        ExpirationMonth = json['ExpirationMonth'];
        ExpirationYear = json['ExpirationYear'];
        Location = json['Location'];
        GroupId = json['GroupId'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'ClassName': ClassName,
        'UniqueId': UniqueId,
        'CreatedDateTime': JsonConverters.toJson(CreatedDateTime,'DateTime',context!),
        'ClientId': ClientId,
        'CardType': CardType,
        'CardReferenceOrCardNumber': CardReferenceOrCardNumber,
        'Cvv': Cvv,
        'ExpirationMonth': ExpirationMonth,
        'ExpirationYear': ExpirationYear,
        'Location': Location,
        'GroupId': GroupId
    };

    getTypeName() => "SalesForceCreditCardReference";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'devapi.billhighway.com', types: <String, TypeInfo> {
    'SalesForceCreditCardReferenceReply': TypeInfo(TypeOf.Class, create:() => SalesForceCreditCardReferenceReply()),
    'SalesForceCreditCardReference': TypeInfo(TypeOf.Class, create:() => SalesForceCreditCardReference()),
});

Dart SalesForceCreditCardReference DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /api/SalesForce/CreditCardReference HTTP/1.1 
Host: devapi.billhighway.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"ClassName":"String","UniqueId":"String","CreatedDateTime":"0001-01-01T00:00:00.0000000","ClientId":0,"CardType":"String","CardReferenceOrCardNumber":"String","Cvv":"String","ExpirationMonth":0,"ExpirationYear":0,"Location":"String","GroupId":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"ClassName":"String","UniqueId":"String","CreatedDateTime":"0001-01-01T00:00:00.0000000","ClientId":0,"CardReference":"String","ErrorCode":0,"ErrorMessage":"String","IsError":false}