# Path: async_v20/endpoints/annotations.py
# class Alias(str):
#     pass
# 
# Path: async_v20/endpoints/annotations.py
# class Authorization(str):
#     """Contains OANDA's v20 API authorization token"""
#     pass
# 
# Path: async_v20/endpoints/annotations.py
# class Instruments(str):
#     pass
# 
# Path: async_v20/endpoints/annotations.py
# class SinceTransactionID(TransactionID):
#     """The account changes to get Since LastTransactionID for account_changes() method"""
#     pass
# 
# Path: async_v20/endpoints/base.py
# class EndPoint(object):
#     """Base object representation of an endpoint"""
# 
#     # Default host to use unless otherwise specified by a derived class
#     host = 'REST'
# 
#     # Path needs to be a Path object
#     path = ()
# 
#     # the HTTP verb to use for this endpoint
#     method = ''
# 
#     # description of endpoint
#     description = ''
# 
#     # parameters required to send to endpoint
#     parameters = {}
# 
#     # valid responses
#     responses = {}
# 
#     # error msgs'
#     error = ()
# 
#     # json format the data body as per the response_schema below
#     request_schema = {}
# 
# HEADER = 'header'
# 
# PATH = 'path'
# 
# QUERY = 'query'


from .annotations import Alias
from .annotations import Authorization
from .annotations import Instruments
from .annotations import SinceTransactionID
from .base import EndPoint, HEADER, PATH, QUERY
from ..definitions.primitives import *
from ..definitions.types import *

__all__ = ['GETAccounts', 'GETAccountID', 'GETAccountIDSummary', 'GETAccountIDInstruments',
           'PATCHAccountIDConfiguration', 'GETAccountIDChanges']


class GETAccounts(EndPoint):
    # the HTTP verb to use for this endpoint
    method = 'GET'

    # path to endpoint
    path = ('/v3/accounts',)

    # description of endpoint
    description = 'Get a list of all Accounts authorized for the provided token.'

    # parameters required to send to endpoint
    parameters = {Authorization: (HEADER, 'Authorization')}

    # valid responses
    responses = {200: {'accounts': ArrayAccountProperties}}

    # error msgs'
    error = (401, 405)



# Path: async_v20/endpoints/annotations.py
# class Alias(str):
#     pass
# 
# Path: async_v20/endpoints/annotations.py
# class Authorization(str):
#     """Contains OANDA's v20 API authorization token"""
#     pass
# 
# Path: async_v20/endpoints/annotations.py
# class Instruments(str):
#     pass
# 
# Path: async_v20/endpoints/annotations.py
# class SinceTransactionID(TransactionID):
#     """The account changes to get Since LastTransactionID for account_changes() method"""
#     pass
# 
# Path: async_v20/endpoints/base.py
# class EndPoint(object):
#     """Base object representation of an endpoint"""
# 
#     # Default host to use unless otherwise specified by a derived class
#     host = 'REST'
# 
#     # Path needs to be a Path object
#     path = ()
# 
#     # the HTTP verb to use for this endpoint
#     method = ''
# 
#     # description of endpoint
#     description = ''
# 
#     # parameters required to send to endpoint
#     parameters = {}
# 
#     # valid responses
#     responses = {}
# 
#     # error msgs'
#     error = ()
# 
#     # json format the data body as per the response_schema below
#     request_schema = {}
# 
# HEADER = 'header'
# 
# PATH = 'path'
# 
# QUERY = 'query'


# Path: async_v20/endpoints/account.py
from .annotations import Alias
from .annotations import Authorization
from .annotations import Instruments
from .annotations import SinceTransactionID
from .base import EndPoint, HEADER, PATH, QUERY
from ..definitions.primitives import *
from ..definitions.types import *


__all__ = ['GETAccounts', 'GETAccountID', 'GETAccountIDSummary', 'GETAccountIDInstruments',
           'PATCHAccountIDConfiguration', 'GETAccountIDChanges']


class GETAccounts(EndPoint):
    # the HTTP verb to use for this endpoint
    method = 'GET'

    # path to endpoint
    path = ('/v3/accounts',)

    # description of endpoint
    description = 'Get a list of all Accounts authorized for the provided token.'

    # parameters required to send to endpoint
    parameters = {Authorization: (HEADER, 'Authorization')}

    # valid responses
    responses = {200: {'accounts': ArrayAccountProperties}}

    # error msgs'
    error = (401, 405)



class GETAccountID(EndPoint):