Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • RepositoryBase
    • CustomerRepository

Index

Methods

  • Renews a customer access token

    Parameters

    • Optional customerAccessToken: string

      The current customer access token

    Returns Promise<GraphqlResponse<CustomerAccessTokenRenewData>>

  • Authenticates a customer

    Parameters

    • input: string

      The email, CPF or CNPJ of the customer

    • password: string

      The password of the customer

    • Optional recaptchaToken: string

    Returns Promise<GraphqlResponse<CustomerAuthenticatedLoginData>>

  • Authenticates a customer using an access key

    Parameters

    • email: string

      The email of the customer

    • accessKey: string

      The access key sent to customer's email

    • Optional recaptchaToken: string

      The recaptcha token

    Returns Promise<GraphqlResponse<CustomerAuthenticateAccessKeyData>>

  • Creates a new customer address

    Parameters

    • addressInput: CreateCustomerAddressInput

      The input data for creating a new address

    • Optional customerAccessToken: string

      The customer access token

    • Optional recaptchaToken: string

    Returns Promise<GraphqlResponse<CustomerAddressData>>

  • Edit a customer address

    Parameters

    • addressId: string

      The address ID

    • addressInput: UpdateCustomerAddressInput

      The input data for update a address

    • Optional customerAccessToken: string

      The customer access token

    • Optional recaptchaToken: string

    Returns Promise<GraphqlResponse<CustomerAddressData>>

  • Changes the email of a customer

    Parameters

    • newEmail: string

      The new email address for the customer

    • Optional customerAccessToken: string

      The customer access token

    • Optional recaptchaToken: string

    Returns Promise<GraphqlResponse<CustomerEmailChangeData>>

  • Fetches customer data

    Parameters

    • Optional customerAccessToken: string

      The access token for the customer

    Returns Promise<GraphqlResponse<CustomerData>>

  • Impersonates a customer

    Parameters

    • input: string

      The e-mail of the customer

    • Optional masterCustomerAccessToken: string
    • Optional recaptchaToken: string

    Returns Promise<GraphqlResponse<CustomerImpersonateData>>

  • Changes the password of a customer

    Parameters

    • currentPassword: string

      The current password of the customer

    • newPassword: string

      The new password for the customer

    • newPasswordConfirmation: string

      Confirmation for the new password

    • Optional customerAccessToken: string

      The customer access token

    • Optional recaptchaToken: string

    Returns Promise<GraphqlResponse<CustomerPasswordChangeData>>

  • Changes the password of a customer by recovery

    Parameters

    • key: string

      The customer verification code to change password

    • newPassword: string

      The new password for the customer

    • newPasswordConfirmation: string

      Confirmation of the customer's new password

    • Optional recaptchaToken: string

    Returns Promise<GraphqlResponse<CustomerPasswordRecoveryData>>

  • Initiates a password recovery process for a customer

    Parameters

    • email: string

      The email address of the customer

    • Optional recaptchaToken: string

    Returns Promise<GraphqlResponse<CustomerPasswordRecoveryData>>

  • Remove a customer address

    Parameters

    • addressId: string

      The address ID

    • Optional customerAccessToken: string

      The customer access token

    • Optional recaptchaToken: string

    Returns Promise<GraphqlResponse<CustomerAddressRemoveData>>

  • Sends the email with an access key to authenticate a customer

    Parameters

    • email: string

      The email of the customer

    • Optional recaptchaToken: string

      The recaptcha token

    Returns Promise<GraphqlResponse<CustomerSendAccessKeyEmailData>>

  • Starts the simple login process for a customer

    Parameters

    • input: string

      The email or cpf of the customer

    • Optional recaptchaToken: string

    Returns Promise<GraphqlResponse<CustomerSimpleLoginStartData>>

  • Verifies the answer for a simple login question

    Parameters

    • input: string

      Additional input if required

    • questionId: string

      The ID of the question being answered

    • answerId: string

      The ID of the selected answer

    • Optional recaptchaToken: string

    Returns Promise<GraphqlResponse<CustomerSimpleLoginVerifyAnswerData>>

  • Log in using a Facebook access token

    Parameters

    • facebookAccessToken: string

      The access token provided by Facebook

    • Optional recaptchaToken: string

    Returns Promise<GraphqlResponse<CustomerSocialLoginFacebookData>>

  • Log in using Google credentials

    Parameters

    • userCredential: string

      The user credential provided by Google

    • Optional recaptchaToken: string

    Returns Promise<GraphqlResponse<CustomerSocialLoginGoogleData>>

  • Changes the address selected for a subscription

    Parameters

    • addressId: string

      The address ID

    • subscriptionId: string

      The subscription to change

    • Optional customerAccessToken: string

      The customer access token

    • Optional recaptchaToken: string

      The recaptcha token

    Returns Promise<GraphqlResponse<CustomerSubscriptionAddressChangeData>>

  • Updates a subcription status

    Parameters

    • status: string

      The status enum

    • subscriptionId: string

      The subscription to change

    • Optional customerAccessToken: string

      The customer access token

    • Optional recaptchaToken: string

      The recaptcha token

    Returns Promise<GraphqlResponse<CustomerSubscriptionUpdateStatusData>>

  • Updates an existing customer

    Parameters

    • customerAccessToken: string

      The customer access token

    • input: CustomerUpdateInput

      The input data to update an existing customer

    • Optional recaptchaToken: string

    Returns Promise<GraphqlResponse<CustomerUpdateData>>

Generated using TypeDoc