POST | /licenses/dibscallback/ | Save Dibs Callback | This service is used for the DIBS callback. |
---|
namespace BokaMera.API.ServiceModel.Dtos
open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
type DibStatus =
| Success = 0
| Cancelled = 1
[<AllowNullLiteral>]
type DibsCallbackDto() =
///<summary>
///The company id to save the credit card to
///</summary>
[<ApiMember(DataType="string", Description="The company id to save the credit card to", IsRequired=true)>]
member val CompanyId:Guid = new Guid() with get,set
///<summary>
///The dibs card expiration date (yymm)
///</summary>
[<ApiMember(DataType="string", Description="The dibs card expiration date (yymm)", IsRequired=true)>]
member val cardexpdate:String = null with get,set
///<summary>
///The dibs transact id
///</summary>
[<ApiMember(DataType="string", Description="The dibs transact id", IsRequired=true)>]
member val transact:String = null with get,set
///<summary>
///The dibs card number (masked)
///</summary>
[<ApiMember(DataType="string", Description="The dibs card number (masked)", IsRequired=true)>]
member val cardnomask:String = null with get,set
///<summary>
///The dibs paytype
///</summary>
[<ApiMember(DataType="string", Description="The dibs paytype", IsRequired=true)>]
member val paytype:String = null with get,set
///<summary>
///The dibs currency
///</summary>
[<ApiMember(DataType="string", Description="The dibs currency", IsRequired=true)>]
member val currency:String = null with get,set
///<summary>
///The dibs acquirer
///</summary>
[<ApiMember(DataType="string", Description="The dibs acquirer", IsRequired=true)>]
member val acquirer:String = null with get,set
///<summary>
///The dibs approval code
///</summary>
[<ApiMember(DataType="string", Description="The dibs approval code", IsRequired=true)>]
member val approvalcode:String = null with get,set
///<summary>
///The dibs status code
///</summary>
[<ApiMember(DataType="string", Description="The dibs status code", IsRequired=true)>]
member val statuscode:String = null with get,set
///<summary>
///The dibs amount
///</summary>
[<ApiMember(DataType="string", Description="The dibs amount", IsRequired=true)>]
member val amount:String = null with get,set
///<summary>
///The redirect url to send user back to after added creditcard
///</summary>
[<ApiMember(DataType="uri", Description="The redirect url to send user back to after added creditcard", IsRequired=true)>]
member val RedirectUrl:String = null with get,set
///<summary>
///The unique token for this request
///</summary>
[<ApiMember(DataType="string", Description="The unique token for this request", IsRequired=true)>]
member val Token:String = null with get,set
///<summary>
///status of the callback url
///</summary>
[<ApiMember(DataType="enum", Description="status of the callback url", IsRequired=true)>]
member val Status:DibStatus = new DibStatus() with get,set
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /licenses/dibscallback/ HTTP/1.1
Host: api.bokamera.se
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"cardexpdate":"String","transact":"String","cardnomask":"String","paytype":"String","currency":"String","acquirer":"String","approvalcode":"String","statuscode":"String","amount":"String","RedirectUrl":"String","Token":"String","Status":"Success"}
HTTP/1.1 200 OK Content-Type: text/jsonl Content-Length: length {}