TicketUserServices

<back to all web services

MyRecurringPaymentsRequest

Requires Authentication
The following routes are available for this service:
GET/recurringPayments/mine
import datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class RecurringSubscriptionView:
    id: Optional[int] = None
    status: Optional[str] = None
    phone_verification_number: Optional[str] = None
    start_date: Optional[datetime.datetime] = None
    last_payment: Optional[datetime.datetime] = None
    next_payment: Optional[datetime.datetime] = None
    owner_id: Optional[int] = None
    owner_card_type_id: Optional[int] = None
    declined_counter: Optional[int] = None
    subscription_length: Optional[int] = None
    months_paid: Optional[int] = None
    monthly_price: Optional[int] = None
    transaction_fee: Optional[Decimal] = None
    payment_token_id: Optional[str] = None
    pan_last_four: Optional[str] = None
    exp_month: Optional[str] = None
    exp_year: Optional[str] = None
    mode: Optional[str] = None
    card_id: Optional[int] = None
    initial_payment_date: Optional[str] = None
    initial_payment_amount: Optional[str] = None
    initial_payment_currency: Optional[str] = None
    initial_payment_status: Optional[str] = None
    cancelled_at: Optional[datetime.datetime] = None
    cancellation_reason: Optional[str] = None
    prior_subscription_length: Optional[int] = None
    terms_version: Optional[str] = None
    terms_accepted_at: Optional[datetime.datetime] = None


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class MyRecurringPaymentsResult:
    items: Optional[List[RecurringSubscriptionView]] = None
    status_code: Optional[int] = None
    message: Optional[str] = None


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class MyRecurringPaymentsRequest:
    phone: Optional[str] = None

Python MyRecurringPaymentsRequest DTOs

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

HTTP + 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
}