| Requires any of the roles: | Admin, TeamAdmin | Requires the permission: | Tickets.Add |
| POST | /OwnerCards/{Id}/refund |
|---|
import Foundation
import ServiceStack
public class OwnerCardRefundRequest : Codable
{
public var id:Int?
public var ownerId:Int?
public var reason:String?
public var userId:Int?
public var idempotencyKey:String?
required public init(){}
}
public class OwnerCardRefundResult : Codable
{
public var success:Bool?
public var statusCode:Int?
public var message:String?
public var result:String?
public var ownerCardId:Int?
public var ownerId:Int?
public var orderReference:String?
public var paymentReference:String?
public var previousPaymentStatus:String?
public var paymentStatus:String?
public var cardRefundAmount:Int?
public var giftCreditAmount:Int?
public var giftCreditPendingAmount:Int?
public var totalRefunded:Int?
public var donationAmountNotRefunded:Int?
public var borgunRefunded:Bool?
public var borgunPartial:Bool?
public var borgunRefundTransactionId:String?
public var merchantCredentials:String?
public var replayed:Bool?
public var refundId:Int?
public var refundedUTC:Date?
required public init(){}
}
Swift OwnerCardRefundRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /OwnerCards/{Id}/refund HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<OwnerCardRefundRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<Id>0</Id>
<IdempotencyKey>String</IdempotencyKey>
<OwnerId>0</OwnerId>
<Reason>String</Reason>
<UserId>0</UserId>
</OwnerCardRefundRequest>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <OwnerCardRefundResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel"> <BorgunPartial>false</BorgunPartial> <BorgunRefundTransactionId>String</BorgunRefundTransactionId> <BorgunRefunded>false</BorgunRefunded> <CardRefundAmount>0</CardRefundAmount> <DonationAmountNotRefunded>0</DonationAmountNotRefunded> <GiftCreditAmount>0</GiftCreditAmount> <GiftCreditPendingAmount>0</GiftCreditPendingAmount> <MerchantCredentials>String</MerchantCredentials> <Message>String</Message> <OrderReference>String</OrderReference> <OwnerCardId>0</OwnerCardId> <OwnerId>0</OwnerId> <PaymentReference>String</PaymentReference> <PaymentStatus>String</PaymentStatus> <PreviousPaymentStatus>String</PreviousPaymentStatus> <RefundId>0</RefundId> <RefundedUTC>0001-01-01T00:00:00</RefundedUTC> <Replayed>false</Replayed> <Result>String</Result> <StatusCode>0</StatusCode> <Success>false</Success> <TotalRefunded>0</TotalRefunded> </OwnerCardRefundResult>