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 .xml suffix or ?format=xml

HTTP + XML

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: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<MyRecurringPaymentsResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <Items>
    <RecurringSubscriptionView>
      <CancellationReason>String</CancellationReason>
      <CancelledAt>0001-01-01T00:00:00</CancelledAt>
      <CardId>0</CardId>
      <DeclinedCounter>0</DeclinedCounter>
      <ExpMonth>String</ExpMonth>
      <ExpYear>String</ExpYear>
      <Id>0</Id>
      <InitialPaymentAmount>String</InitialPaymentAmount>
      <InitialPaymentCurrency>String</InitialPaymentCurrency>
      <InitialPaymentDate>String</InitialPaymentDate>
      <InitialPaymentStatus>String</InitialPaymentStatus>
      <LastPayment>0001-01-01T00:00:00</LastPayment>
      <Mode>String</Mode>
      <MonthlyPrice>0</MonthlyPrice>
      <MonthsPaid>0</MonthsPaid>
      <NextPayment>0001-01-01T00:00:00</NextPayment>
      <OwnerCardTypeId>0</OwnerCardTypeId>
      <OwnerId>0</OwnerId>
      <PanLastFour>String</PanLastFour>
      <PaymentTokenId>String</PaymentTokenId>
      <PhoneVerificationNumber>String</PhoneVerificationNumber>
      <PriorSubscriptionLength>0</PriorSubscriptionLength>
      <StartDate>0001-01-01T00:00:00</StartDate>
      <Status>String</Status>
      <SubscriptionLength>0</SubscriptionLength>
      <TermsAcceptedAt>0001-01-01T00:00:00</TermsAcceptedAt>
      <TermsVersion>String</TermsVersion>
      <TransactionFee>0</TransactionFee>
    </RecurringSubscriptionView>
  </Items>
  <Message>String</Message>
  <StatusCode>0</StatusCode>
</MyRecurringPaymentsResult>