| GET | /recurringPayments/mine |
|---|
import Foundation
import ServiceStack
public class MyRecurringPaymentsRequest : Codable
{
public var phone:String?
required public init(){}
}
public class MyRecurringPaymentsResult : Codable
{
public var items:[RecurringSubscriptionView] = []
public var statusCode:Int?
public var message:String?
required public init(){}
}
public class RecurringSubscriptionView : Codable
{
public var id:Int?
public var status:String?
public var phoneVerificationNumber:String?
public var startDate:Date?
public var lastPayment:Date?
public var nextPayment:Date?
public var ownerId:Int?
public var ownerCardTypeId:Int?
public var declinedCounter:Int?
public var subscriptionLength:Int?
public var monthsPaid:Int?
public var monthlyPrice:Int?
public var transactionFee:Double?
public var paymentTokenId:String?
public var panLastFour:String?
public var expMonth:String?
public var expYear:String?
public var mode:String?
public var cardId:Int?
public var initialPaymentDate:String?
public var initialPaymentAmount:String?
public var initialPaymentCurrency:String?
public var initialPaymentStatus:String?
public var cancelledAt:Date?
public var cancellationReason:String?
public var priorSubscriptionLength:Int?
public var termsVersion:String?
public var termsAcceptedAt:Date?
required public init(){}
}
Swift MyRecurringPaymentsRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /recurringPayments/mine HTTP/1.1 Host: stubbur-app.azurewebsites.net Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
items:
[
{
id: 0,
status: String,
phoneVerificationNumber: String,
startDate: 0001-01-01,
lastPayment: 0001-01-01,
nextPayment: 0001-01-01,
ownerId: 0,
ownerCardTypeId: 0,
declinedCounter: 0,
subscriptionLength: 0,
monthsPaid: 0,
monthlyPrice: 0,
transactionFee: 0,
paymentTokenId: String,
panLastFour: String,
expMonth: String,
expYear: String,
mode: String,
cardId: 0,
initialPaymentDate: String,
initialPaymentAmount: String,
initialPaymentCurrency: String,
initialPaymentStatus: String,
cancelledAt: 0001-01-01,
cancellationReason: String,
priorSubscriptionLength: 0,
termsVersion: String,
termsAcceptedAt: 0001-01-01
}
],
statusCode: 0,
message: String
}