| GET | /recurringPayments/mine |
|---|
export class RecurringSubscriptionView
{
public id?: number;
public status?: string;
public phoneVerificationNumber?: string;
public startDate?: string;
public lastPayment?: string;
public nextPayment?: string;
public ownerId?: number;
public ownerCardTypeId?: number;
public declinedCounter?: number;
public subscriptionLength?: number;
public monthsPaid?: number;
public monthlyPrice?: number;
public transactionFee?: number;
public paymentTokenId?: string;
public panLastFour?: string;
public expMonth?: string;
public expYear?: string;
public mode?: string;
public cardId?: number;
public initialPaymentDate?: string;
public initialPaymentAmount?: string;
public initialPaymentCurrency?: string;
public initialPaymentStatus?: string;
public cancelledAt?: string;
public cancellationReason?: string;
public priorSubscriptionLength?: number;
public termsVersion?: string;
public termsAcceptedAt?: string;
public constructor(init?: Partial<RecurringSubscriptionView>) { (Object as any).assign(this, init); }
}
export class MyRecurringPaymentsResult
{
public items?: RecurringSubscriptionView[];
public statusCode?: number;
public message?: string;
public constructor(init?: Partial<MyRecurringPaymentsResult>) { (Object as any).assign(this, init); }
}
export class MyRecurringPaymentsRequest
{
public phone?: string;
public constructor(init?: Partial<MyRecurringPaymentsRequest>) { (Object as any).assign(this, init); }
}
TypeScript 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
}