Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • RepositoryBase
    • PartnerRepository

Index

Methods

  • Get a partner by partner access token cookie

    Returns Promise<PartnerResponse>

  • getCep(): string
  • Get CEP by cookie

    Returns string

  • hasPartnerByRegion(): boolean
  • Returns if has partner by region cookies

    Returns boolean

  • Authenticates a partner

    Parameters

    • username: string

      The username of the partner

    • password: string

      The password of the partner

    • Optional recaptchaToken: string

    Returns Promise<GraphqlResponse<PartnerAccessTokenCreateData>>

  • setPartnerAccessToken(token: string, validUntil: string): Promise<void>
  • Parameters

    • token: string
    • validUntil: string

    Returns Promise<void>

  • setPartnerByRegion(cep: string): Promise<boolean>
  • Set a partner by region

    Parameters

    • cep: string

      The CEP to find a partner by region

    Returns Promise<boolean>

Generated using TypeDoc