<commit_before>swagger: "2.0"
info:
  version: "3.0.0"
  title: TrustFile Provisioning API
  description: |
    Signup endpoints for TrustFile.  Provision users via API or add an iframe to a landing page with a signup form.
  
    #### Testing:
    Test this endpoint @ https://stable.trustfile.avalara.com
    
    #### Security:
    Authentication/Auth header is not required for either endpoint
    
    #### CORS:
    Access-Control-Allow-Headers: X-Requested-With
    
  contact:
    name: Trustfile API Support
    url: trustfile.com
    email: <EMAIL>
host: app.trustfile.avalara.com
basePath: /v3
schemes:
  - http
  - https
x-ApiType: SOAP
consumes:
  - application/json
produces:
  - application/json
paths:
  /companies:
    post:
      tags:
        - Api
      operationId: PostCompanySignup
      summary: Company Signup
      description: >
        * All data is expected in the request body in a flat JSON format.

        * User Fields: firstName lastName

        * Company fields: companyName companyPhone companyLine1
        companyLine2 companyLine3 companyCity companyZip companyState
        companyCountry

        * Optional Lead fields: campaignId lsmr integratorId salesUserId
        salesUserEmail

        * The new user will receive an email to set their password
      
        * user.connectionId will only be passed if the user completes the required fields AND provides a company address
        
      parameters:
        - in: body
          name: body
          description: Company signup object
          required: true
          schema:
            type: object
            required:
              - email
            example:
              "email": "<EMAIL>"
              "firstName": "firstname"
              "lastName": "lastname"
              "companyPhone": "4258776015"
              "companyName": "Best Company Ever"
              "companyLine1": "street address"
              "companyCity": "city"
              "companyZip": "98101"
              "companyState": "WA"
              "campaignId": "2"
            properties:
              email:
                type: string
                example: <EMAIL>
              firstName:
                type: string
              lastName:
                type: string
              companyName:
                type: string
              companyPhone:
                type: string
              companyLine1:
                type: string
              companyLine2:
                type: string
              companyLine3:
                type: string
              companyState:
                type: string
              companyCity:
                type: string
              companyZip:
                type: string
              companyCountry:
                type: string
              campaignId:
                type: string
              lsmr:
                type: string
              integratorId:
                type: string
              salesUserId:
                type: string
              salesUserEmail:
                type: string
      responses:
        '200':
          description: "User creation successful response"
          schema:
            type: object
            properties:
              user:
                type: object
                properties:
                  displayName:
                    type: string
                  firstName:
                    type: string
                  lastName:
                    type: string
                  email:
                    type: string
                  password:
                    type: string
                    description: Hashed password
                  connectionId:
                    type: string
                    description: connectionId. Will not be passed if the address is incomplete.
                  accountSetup:
                    type: boolean
                  lastLoginAt:
                    type: string
                    format: date-time
                  accountCreated:
                    type: string
                    format: date-time
                  tos:
                    type: boolean
                  createdAt:
                    type: string
                    format: date-time
                  updatedAt:
                    type: string
                    format: date-time
                  company:
                    type: object
                    properties:
                      name:
                        type: string
                      isFba:
                        type: boolean
                      syncDate:
                        type: string
                        format: date-time
                      fein:
                        type: string
                      phone:
                        type: string
                      fax:
                        type: string
                      createdAt:
                        type: string
                        format: date-time
                      updatedAt:
                        type: string
                        format: date-time
              notification:
                type: object
                properties:
                  message:
                    type: string
                  options:
                    type: object
                    properties:
                      level:
                        type: string
        '400':
          description: "User creation failure response"
          schema:
            type: object
            example:
              user: 'null'
              notification:
                message: There was a problem creating your account. User could not be created.
                options:
                  level: error
            properties:
              user:
                type: string
                description: "Will be null for failed creation"
              notification:
                type: object
                properties:
                  message:
                    type: string
                    description: Error message
                  options:
                    type: object
                    properties:
                      level:
                        type: string
<commit_msg>edit trustfile provisioning api CASH-531<commit_after>swagger: "2.0"
info:
  version: "3.0.0"
  title: TrustFile Provisioning API
  description: |
    Signup endpoints for TrustFile.  Provision users via API or add an iframe to a landing page with a signup form.
  
    #### Testing:
    Test this endpoint @ https://stable.trustfile.avalara.com
    
    #### Security:
    Authentication/Auth header is not required for either endpoint
    
    #### CORS:
    Access-Control-Allow-Headers: X-Requested-With
    
  contact:
    name: Trustfile API Support
    url: trustfile.com
    email: <EMAIL>
host: app.trustfile.avalara.com
basePath: /v3
schemes:
  - https
x-ApiType: SOAP
consumes:
  - application/json
produces:
  - application/json
paths:
  /companies:
    post:
      tags:
        - Api
      operationId: PostCompanySignup
      summary: Company Signup
      description: >
        * All data is expected in the request body in a flat JSON format.

        * User Fields: firstName lastName

        * Company fields: companyName companyPhone companyLine1
        companyLine2 companyLine3 companyCity companyZip companyState
        companyCountry

        * Optional Lead fields: campaignId lsmr integratorId salesUserId
        salesUserEmail

        * The new user will receive an email to set their password
      
        * user.company.connectionId will only be passed if the user completes the required fields AND provides a company address
        
      parameters:
        - in: body
          name: body
          description: Company signup object
          required: true
          schema:
            type: object
            required:
              - email
            example:
              "email": "<EMAIL>"
              "firstName": "firstname"
              "lastName": "lastname"
              "companyPhone": "4258776015"
              "companyName": "Best Company Ever"
              "companyLine1": "street address"
              "companyCity": "city"
              "companyZip": "98101"
              "companyState": "WA"
              "campaignId": "2"
            properties:
              email:
                type: string
                example: <EMAIL>.com
              firstName:
                type: string
              lastName:
                type: string
              companyName:
                type: string
              companyPhone:
                type: string
              companyLine1:
                type: string
              companyLine2:
                type: string
              companyLine3:
                type: string
              companyState:
                type: string
              companyCity:
                type: string
              companyZip:
                type: string
              companyCountry:
                type: string
              campaignId:
                type: string
              lsmr:
                type: string
              integratorId:
                type: string
              salesUserId:
                type: string
              salesUserEmail:
                type: string
      responses:
        '200':
          description: "User creation successful response"
          schema:
            type: object
            properties:
              user:
                type: object
                properties:
                  displayName:
                    type: string
                  firstName:
                    type: string
                  lastName:
                    type: string
                  email:
                    type: string
                  password:
                    type: string
                    description: Hashed password
                  accountSetup:
                    type: boolean
                  lastLoginAt:
                    type: string
                    format: date-time
                  accountCreated:
                    type: string
                    format: date-time
                  tos:
                    type: boolean
                  createdAt:
                    type: string
                    format: date-time
                  updatedAt:
                    type: string
                    format: date-time
                  company:
                    type: object
                    properties:
                      name:
                        type: string
                      isFba:
                        type: boolean
                      syncDate:
                        type: string
                        format: date-time
                      connectionId:
                        type: string
                        description: connectionId. Will not be passed if the address is incomplete.
                      fein:
                        type: string
                      phone:
                        type: string
                      fax:
                        type: string
                      createdAt:
                        type: string
                        format: date-time
                      updatedAt:
                        type: string
                        format: date-time
              notification:
                type: object
                properties:
                  message:
                    type: string
                  options:
                    type: object
                    properties:
                      level:
                        type: string
        '400':
          description: "User creation failure response"
          schema:
            type: object
            example:
              user: 'null'
              notification:
                message: There was a problem creating your account. User could not be created.
                options:
                  level: error
            properties:
              user:
                type: string
                description: "Will be null for failed creation"
              notification:
                type: object
                properties:
                  message:
                    type: string
                    description: Error message
                  options:
                    type: object
                    properties:
                      level:
                        type: string

{'fraction_non_alphanumeric': 0.050031969309462916, 'fraction_numerical': 0.005834398976982097, 'mean_word_length': 0.933106751120037, 'pattern_counts': {'":': 20, '<': 9, '<?xml version=': 0, '>': 11, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7584619', 'n_tokens_mistral': 2757, 'n_tokens_neox': 2507, 'n_words': 835}