---
swagger: "2.0"
info:
  description: "API for the Collect platform"
  version: "1.0.0"
  title: "Intelecom Collect API"
host: "collectapi.intele.com"
basePath: "/collect-api/rs"
tags:
- name: "Collector"
- name: "Member"
- name: "Statistics"
- name: "Activity"
- name: "Transaction"
schemes:
- "https"
paths:
  /s/activities:
    get:
      tags:
      - "Activity"
      summary: "List all activities"
      description: ""
      operationId: "getActivities"
      produces:
      - "application/vnd.collect.activities+json"
      parameters:
      - name: "collectorUuid"
        in: "query"
        description: "Show activities only for this collector"
        required: false
        type: "string"
      responses:
        200:
          description: "successful operation"
          schema:
            $ref: "#/definitions/ActivitiesResponse"
        404:
          description: "No such collector"
  /s/activity/{activityUuid}:
    get:
      tags:
      - "Activity"
      summary: "List all activities"
      description: ""
      operationId: "getActivity"
      produces:
      - "application/vnd.collect.activity+json"
      parameters:
      - name: "activityUuid"
        in: "path"
        required: true
        type: "string"
      responses:
        200:
          description: "successful operation"
          schema:
            $ref: "#/definitions/ActivityResponse"
        403:
          description: "No access to the activity"
        404:
          description: "No such activity"
  /s/activity/{activityUuid}/collector:
    post:
      tags:
      - "Collector"
      summary: "Create a collector and add the collector to an activity"
      description: ""
      operationId: "createCollectorForActivity"
      consumes:
      - "application/vnd.collect.collector_request+json"
      produces:
      - "application/vnd.collect.collector+json"
      parameters:
      - in: "body"
        name: "body"
        required: false
        schema:
          $ref: "#/definitions/CollectorRequest"
      - name: "activityUuid"
        in: "path"
        required: true
        type: "string"
      responses:
        200:
          description: "successful operation"
          schema:
            $ref: "#/definitions/CollectorResponse"
        403:
          description: "No access to the activity"
        404:
          description: "No such activity"
        409:
          description: "A collector with the MSISDN already exists"
          schema:
            $ref: "#/definitions/ClientMessage"
  /s/collector:
    post:
      tags:
      - "Collector"
      summary: "Create a collector"
      description: ""
      operationId: "createCollector"
      consumes:
      - "application/vnd.collect.collector_request+json"
      produces:
      - "application/vnd.collect.collector+json"
      parameters:
      - in: "body"
        name: "body"
        required: false
        schema:
          $ref: "#/definitions/CollectorRequest"
      responses:
        200:
          description: "successful operation"
          schema:
            $ref: "#/definitions/CollectorResponse"
        409:
          description: "A collector with the MSISDN already exists"
          schema:
            $ref: "#/definitions/ClientMessage"
  /s/collector/{collectorUuid}:
    get:
      tags:
      - "Collector"
      summary: "Get collector"
      description: ""
      operationId: "getCollector"
      produces:
      - "application/vnd.collect.collector+json"
      parameters:
      - name: "collectorUuid"
        in: "path"
        required: true
        type: "string"
      responses:
        200:
          description: "successful operation"
          schema:
            $ref: "#/definitions/CollectorResponse"
        403:
          description: "No access to the collector"
        404:
          description: "No such collector"
    put:
      tags:
      - "Collector"
      summary: "Update a collector"
      description: ""
      operationId: "updateCollector"
      consumes:
      - "application/vnd.collect.collector_request+json"
      produces:
      - "application/vnd.collect.collector+json"
      parameters:
      - name: "collectorUuid"
        in: "path"
        required: true
        type: "string"
      - in: "body"
        name: "body"
        required: false
        schema:
          $ref: "#/definitions/CollectorRequest"
      responses:
        200:
          description: "successful operation"
          schema:
            $ref: "#/definitions/CollectorResponse"
        403:
          description: "No access to the collector"
        404:
          description: "No such collector"
    delete:
      tags:
      - "Collector"
      summary: "Remove the collector"
      description: ""
      operationId: "removeCollector"
      parameters:
      - name: "collectorUuid"
        in: "path"
        required: true
        type: "string"
      responses:
        403:
          description: "No access to the collector"
        404:
          description: "No such collector"
  /s/collector/{collectorUuid}/activity/{activityUuid}:
    post:
      tags:
      - "Collector"
      summary: "Add the collector to the activity"
      description: ""
      operationId: "connectCollectorToActivity"
      parameters:
      - name: "collectorUuid"
        in: "path"
        required: true
        type: "string"
      - name: "activityUuid"
        in: "path"
        required: true
        type: "string"
      responses:
        403:
          description: "No access to the collector/activity"
        404:
          description: "No such collector/activity"
    delete:
      tags:
      - "Collector"
      summary: "Remove the collector from the activity"
      description: ""
      operationId: "removeCollectorFromActivity"
      parameters:
      - name: "collectorUuid"
        in: "path"
        required: true
        type: "string"
      - name: "activityUuid"
        in: "path"
        required: true
        type: "string"
      responses:
        403:
          description: "No access to the collector/activity"
        404:
          description: "No such collector/activity"
  /s/collectors:
    get:
      tags:
      - "Collector"
      summary: "List all collectors"
      description: ""
      operationId: "getCollectors"
      produces:
      - "application/vnd.collect.collectors+json"
      parameters:
      - name: "activity"
        in: "query"
        description: "Show collectors only for this activity"
        required: false
        type: "string"
      responses:
        200:
          description: "successful operation"
          schema:
            $ref: "#/definitions/CollectorsResponse"
        403:
          description: "No access to the activity"
        404:
          description: "No such activity"
  /s/member/{activityUuid}:
    post:
      tags:
      - "Member"
      summary: "Create member"
      description: ""
      operationId: "createMember"
      consumes:
      - "application/vnd.collect.member_request+json"
      produces:
      - "application/vnd.collect.member+json"
      parameters:
      - name: "activityUuid"
        in: "path"
        required: true
        type: "string"
      - in: "body"
        name: "body"
        required: false
        schema:
          $ref: "#/definitions/MemberRequest"
      responses:
        200:
          description: "successful operation"
          schema:
            $ref: "#/definitions/MemberResponse"
        403:
          description: "No access to the activity"
        404:
          description: "No such activity"
        409:
          description: "The member already exists"
          schema:
            $ref: "#/definitions/ClientMessage"
  /s/member/{memberUuid}:
    get:
      tags:
      - "Member"
      summary: "Get member"
      description: ""
      operationId: "getMember"
      produces:
      - "application/vnd.collect.member+json"
      parameters:
      - name: "memberUuid"
        in: "path"
        required: true
        type: "string"
      responses:
        200:
          description: "successful operation"
          schema:
            $ref: "#/definitions/MemberResponse"
        403:
          description: "No access to the member"
        404:
          description: "No such member"
    put:
      tags:
      - "Member"
      summary: "Update member"
      description: ""
      operationId: "updateMember"
      consumes:
      - "application/vnd.collect.member_request+json"
      parameters:
      - name: "memberUuid"
        in: "path"
        required: true
        type: "string"
      - in: "body"
        name: "body"
        required: false
        schema:
          $ref: "#/definitions/MemberRequest"
      responses:
        403:
          description: "No access to the member"
        404:
          description: "No such member"
    delete:
      tags:
      - "Member"
      summary: "Delete member"
      description: ""
      operationId: "deleteMember"
      parameters:
      - name: "memberUuid"
        in: "path"
        required: true
        type: "string"
      responses:
        403:
          description: "No access to the member"
        404:
          description: "No such member"
  /s/members/{activityUuid}:
    get:
      tags:
      - "Member"
      summary: "List all members for the activity"
      description: ""
      operationId: "getMembers"
      produces:
      - "application/vnd.collect.members+json"
      parameters:
      - name: "activityUuid"
        in: "path"
        required: true
        type: "string"
      - name: "changeReference"
        in: "query"
        description: "Show only members added after this reference"
        required: false
        type: "integer"
        format: "int64"
      responses:
        200:
          description: "successful operation"
          schema:
            $ref: "#/definitions/MemberListResponse"
        403:
          description: "No access to the activity"
        404:
          description: "No such activity"
  /s/statistic/transactions/{activityUuid}/age:
    get:
      tags:
      - "Statistics"
      summary: "Total number of transactions for an activity grouped by age"
      description: ""
      operationId: "getTotalTransactionsForActivityAge"
      produces:
      - "application/vnd.collect.statistics_group_response+json"
      parameters:
      - name: "activityUuid"
        in: "path"
        required: true
        type: "string"
      - name: "fromDate"
        in: "query"
        description: "Only show transactions from after this date"
        required: false
        type: "string"
        x-example: "20160517"
      - name: "toDate"
        in: "query"
        description: "Only show transactions from before this date"
        required: false
        type: "string"
        x-example: "20160517"
      responses:
        200:
          description: "successful operation"
          schema:
            $ref: "#/definitions/StatisticsGroupResponse"
        400:
          description: "Invalid query parameter"
          schema:
            $ref: "#/definitions/ClientMessage"
        403:
          description: "No access to the activity"
        404:
          description: "No such activity exist"
  /s/statistic/transactions/{activityUuid}/county:
    get:
      tags:
      - "Statistics"
      summary: "Total number of transactions for an activity grouped by county"
      description: ""
      operationId: "getTotalTransactionsForActivityByCounty"
      produces:
      - "application/vnd.collect.statistics_group_response+json"
      parameters:
      - name: "activityUuid"
        in: "path"
        required: true
        type: "string"
      - name: "fromDate"
        in: "query"
        description: "Only show transactions from after this date"
        required: false
        type: "string"
        x-example: "20160517"
      - name: "toDate"
        in: "query"
        description: "Only show transactions from before this date"
        required: false
        type: "string"
        x-example: "20160517"
      responses:
        200:
          description: "successful operation"
          schema:
            $ref: "#/definitions/StatisticsGroupResponse"
        400:
          description: "Invalid query parameter"
          schema:
            $ref: "#/definitions/ClientMessage"
        403:
          description: "No access to the activity"
        404:
          description: "No such activity exist"
  /s/statistic/transactions/{activityUuid}/gender:
    get:
      tags:
      - "Statistics"
      summary: "Total number of transactions for an activity grouped by gender"
      description: ""
      operationId: "getTotalTransactionsForActivityGender"
      produces:
      - "application/vnd.collect.statistics_group_response+json"
      parameters:
      - name: "activityUuid"
        in: "path"
        required: true
        type: "string"
      - name: "fromDate"
        in: "query"
        description: "Only show transactions from after this date"
        required: false
        type: "string"
        x-example: "20160517"
      - name: "toDate"
        in: "query"
        description: "Only show transactions from before this date"
        required: false
        type: "string"
        x-example: "20160517"
      responses:
        200:
          description: "successful operation"
          schema:
            $ref: "#/definitions/StatisticsGroupResponse"
        400:
          description: "Invalid query parameter"
          schema:
            $ref: "#/definitions/ClientMessage"
        403:
          description: "No access to the activity"
        404:
          description: "No such activity exist"
  /s/statistic/transactions/{activityUuid}/municipality:
    get:
      tags:
      - "Statistics"
      summary: "Total number of transactions for an activity grouped by municipality"
      description: ""
      operationId: "getTotalTransactionsForActivityMunicipality"
      produces:
      - "application/vnd.collect.statistics_group_response+json"
      parameters:
      - name: "activityUuid"
        in: "path"
        required: true
        type: "string"
      - name: "fromDate"
        in: "query"
        description: "Only show transactions from after this date"
        required: false
        type: "string"
        x-example: "20160517"
      - name: "toDate"
        in: "query"
        description: "Only show transactions from before this date"
        required: false
        type: "string"
        x-example: "20160517"
      responses:
        200:
          description: "successful operation"
          schema:
            $ref: "#/definitions/StatisticsGroupResponse"
        400:
          description: "Invalid query parameter"
          schema:
            $ref: "#/definitions/ClientMessage"
        403:
          description: "No access to the activity"
        404:
          description: "No such activity exist"
  /s/statistic/transactions/{activityUuid}/municipalityid:
    get:
      tags:
      - "Statistics"
      summary: "Total number of transactions for an activity grouped by municipality\
        \ id"
      description: ""
      operationId: "getTotalTransactionsForActivityMunicipalityId"
      produces:
      - "application/vnd.collect.statistics_group_response+json"
      parameters:
      - name: "activityUuid"
        in: "path"
        required: true
        type: "string"
      - name: "fromDate"
        in: "query"
        description: "Only show transactions from after this date"
        required: false
        type: "string"
        x-example: "20160517"
      - name: "toDate"
        in: "query"
        description: "Only show transactions from before this date"
        required: false
        type: "string"
        x-example: "20160517"
      responses:
        200:
          description: "successful operation"
          schema:
            $ref: "#/definitions/StatisticsGroupResponse"
        400:
          description: "Invalid query parameter"
          schema:
            $ref: "#/definitions/ClientMessage"
        403:
          description: "No access to the activity"
        404:
          description: "No such activity exist"
  /s/statistic/transactions/{activityUuid}/region:
    get:
      tags:
      - "Statistics"
      summary: "Total number of transactions for an activity grouped by region"
      description: ""
      operationId: "getTotalTransactionsForActivityRegion"
      produces:
      - "application/vnd.collect.statistics_group_response+json"
      parameters:
      - name: "activityUuid"
        in: "path"
        required: true
        type: "string"
      - name: "fromDate"
        in: "query"
        description: "Only show transactions from after this date"
        required: false
        type: "string"
        x-example: "20160517"
      - name: "toDate"
        in: "query"
        description: "Only show transactions from before this date"
        required: false
        type: "string"
        x-example: "20160517"
      responses:
        200:
          description: "successful operation"
          schema:
            $ref: "#/definitions/StatisticsGroupResponse"
        400:
          description: "Invalid query parameter"
          schema:
            $ref: "#/definitions/ClientMessage"
        403:
          description: "No access to the activity"
        404:
          description: "No such activity exist"
  /s/statistic/transactions/{activityUuid}/total:
    get:
      tags:
      - "Statistics"
      summary: "Total number of transactions for an activity"
      description: ""
      operationId: "getTotalTransactionsForActivity"
      produces:
      - "application/vnd.collect.statistics_response+json"
      parameters:
      - name: "activityUuid"
        in: "path"
        required: true
        type: "string"
      - name: "fromDate"
        in: "query"
        description: "Only show transactions from after this date"
        required: false
        type: "string"
        x-example: "20160517"
      - name: "toDate"
        in: "query"
        description: "Only show transactions from before this date"
        required: false
        type: "string"
        x-example: "20160517"
      responses:
        200:
          description: "successful operation"
          schema:
            $ref: "#/definitions/StatisticGroup"
        400:
          description: "Invalid query parameter"
          schema:
            $ref: "#/definitions/ClientMessage"
        403:
          description: "No access to the activity"
        404:
          description: "No such activity exist"
  /s/statistic/turnover/{activityUuid}/age:
    get:
      tags:
      - "Statistics"
      summary: "Total turnover for an activity grouped by age"
      description: ""
      operationId: "getTotalTurnoverForActivityAge"
      produces:
      - "application/vnd.collect.statistics_group_response+json"
      parameters:
      - name: "activityUuid"
        in: "path"
        required: true
        type: "string"
      - name: "fromDate"
        in: "query"
        description: "Only show turnover from after this date"
        required: false
        type: "string"
        x-example: "20160517"
      - name: "toDate"
        in: "query"
        description: "Only show turnover from before this date"
        required: false
        type: "string"
        x-example: "20160517"
      responses:
        200:
          description: "successful operation"
          schema:
            $ref: "#/definitions/StatisticsGroupResponse"
        400:
          description: "Invalid query parameter"
          schema:
            $ref: "#/definitions/ClientMessage"
        403:
          description: "No access to the activity"
        404:
          description: "No such activity exist"
  /s/statistic/turnover/{activityUuid}/county:
    get:
      tags:
      - "Statistics"
      summary: "Total turnover for an activity grouped by county"
      description: ""
      operationId: "getTotalTurnoverForActivityByCounty"
      produces:
      - "application/vnd.collect.statistics_group_response+json"
      parameters:
      - name: "activityUuid"
        in: "path"
        required: true
        type: "string"
      - name: "fromDate"
        in: "query"
        description: "Only show turnover from after this date"
        required: false
        type: "string"
        x-example: "20160517"
      - name: "toDate"
        in: "query"
        description: "Only show turnover from before this date"
        required: false
        type: "string"
        x-example: "20160517"
      responses:
        200:
          description: "successful operation"
          schema:
            $ref: "#/definitions/StatisticsGroupResponse"
        400:
          description: "Invalid query parameter"
          schema:
            $ref: "#/definitions/ClientMessage"
        403:
          description: "No access to the activity"
        404:
          description: "No such activity exist"
  /s/statistic/turnover/{activityUuid}/gender:
    get:
      tags:
      - "Statistics"
      summary: "Total turnover for an activity grouped by gender"
      description: ""
      operationId: "getTotalTurnoverForActivityGender"
      produces:
      - "application/vnd.collect.statistics_group_response+json"
      parameters:
      - name: "activityUuid"
        in: "path"
        required: true
        type: "string"
      - name: "fromDate"
        in: "query"
        description: "Only show turnover from after this date"
        required: false
        type: "string"
        x-example: "20160517"
      - name: "toDate"
        in: "query"
        description: "Only show turnover from before this date"
        required: false
        type: "string"
        x-example: "20160517"
      responses:
        200:
          description: "successful operation"
          schema:
            $ref: "#/definitions/StatisticsGroupResponse"
        400:
          description: "Invalid query parameter"
          schema:
            $ref: "#/definitions/ClientMessage"
        403:
          description: "No access to the activity"
        404:
          description: "No such activity exist"
  /s/statistic/turnover/{activityUuid}/municipality:
    get:
      tags:
      - "Statistics"
      summary: "Total turnover for an activity grouped by municipality"
      description: ""
      operationId: "getTotalTurnoverForActivityMunicipality"
      produces:
      - "application/vnd.collect.statistics_group_response+json"
      parameters:
      - name: "activityUuid"
        in: "path"
        required: true
        type: "string"
      - name: "fromDate"
        in: "query"
        description: "Only show turnover from after this date"
        required: false
        type: "string"
        x-example: "20160517"
      - name: "toDate"
        in: "query"
        description: "Only show turnover from before this date"
        required: false
        type: "string"
        x-example: "20160517"
      responses:
        200:
          description: "successful operation"
          schema:
            $ref: "#/definitions/StatisticsGroupResponse"
        400:
          description: "Invalid query parameter"
          schema:
            $ref: "#/definitions/ClientMessage"
        403:
          description: "No access to the activity"
        404:
          description: "No such activity exist"
  /s/statistic/turnover/{activityUuid}/municipalityid:
    get:
      tags:
      - "Statistics"
      summary: "Total turnover for an activity grouped by municipality id"
      description: ""
      operationId: "getTotalTurnoverForActivityMunicipalityId"
      produces:
      - "application/vnd.collect.statistics_group_response+json"
      parameters:
      - name: "activityUuid"
        in: "path"
        required: true
        type: "string"
      - name: "fromDate"
        in: "query"
        description: "Only show turnover from after this date"
        required: false
        type: "string"
        x-example: "20160517"
      - name: "toDate"
        in: "query"
        description: "Only show turnover from before this date"
        required: false
        type: "string"
        x-example: "20160517"
      responses:
        200:
          description: "successful operation"
          schema:
            $ref: "#/definitions/StatisticsGroupResponse"
        400:
          description: "Invalid query parameter"
          schema:
            $ref: "#/definitions/ClientMessage"
        403:
          description: "No access to the activity"
        404:
          description: "No such activity exist"
  /s/statistic/turnover/{activityUuid}/region:
    get:
      tags:
      - "Statistics"
      summary: "Total turnover for an activity grouped by region"
      description: ""
      operationId: "getTotalTurnoverForActivityRegion"
      produces:
      - "application/vnd.collect.statistics_group_response+json"
      parameters:
      - name: "activityUuid"
        in: "path"
        required: true
        type: "string"
      - name: "fromDate"
        in: "query"
        description: "Only show turnover from after this date"
        required: false
        type: "string"
        x-example: "20160517"
      - name: "toDate"
        in: "query"
        description: "Only show turnover from before this date"
        required: false
        type: "string"
        x-example: "20160517"
      responses:
        200:
          description: "successful operation"
          schema:
            $ref: "#/definitions/StatisticsGroupResponse"
        400:
          description: "Invalid query parameter"
          schema:
            $ref: "#/definitions/ClientMessage"
        403:
          description: "No access to the activity"
        404:
          description: "No such activity exist"
  /s/statistic/turnover/{activityUuid}/total:
    get:
      tags:
      - "Statistics"
      summary: "Total turnover for an activity"
      description: ""
      operationId: "getTotalTurnoverForActivity"
      produces:
      - "application/vnd.collect.statistics_response+json"
      parameters:
      - name: "activityUuid"
        in: "path"
        required: true
        type: "string"
      - name: "fromDate"
        in: "query"
        description: "Only show turnover from after this date"
        required: false
        type: "string"
        x-example: "20160517"
      - name: "toDate"
        in: "query"
        description: "Only show turnover from before this date"
        required: false
        type: "string"
        x-example: "20160517"
      responses:
        200:
          description: "successful operation"
          schema:
            $ref: "#/definitions/StatisticGroup"
        400:
          description: "Invalid query parameter"
          schema:
            $ref: "#/definitions/ClientMessage"
        403:
          description: "No access to the activity"
        404:
          description: "No such activity exist"
  /s/transactions:
    get:
      tags:
      - "Transaction"
      summary: "List all transactions"
      description: "Note that a transaction may change status so you may retrieve\
        \ the same transaction several timeswhen using the updated-since filter. Either\
        \ handle duplicates using the unique transaction ID or filter on transactions\
        \ that are in a finished state using the status-filter."
      operationId: "getTransactions"
      produces:
      - "application/vnd.collect.transactions+json"
      parameters:
      - name: "activity-uuid"
        in: "query"
        description: "Only show transactions for this activity"
        required: false
        type: "string"
      - name: "from-date"
        in: "query"
        description: "Only show transactions from after this date"
        required: false
        type: "string"
        x-example: "20160517T170000"
      - name: "to-date"
        in: "query"
        description: "Only show transactions from before this date"
        required: false
        type: "string"
        x-example: "20160517T170000"
      - name: "updated-since"
        in: "query"
        description: "Only show transactions updated after this date"
        required: false
        type: "string"
        x-example: "20160517T170000"
      - name: "status-filter"
        in: "query"
        description: "Only show transactions with this status"
        required: false
        type: "string"
      responses:
        200:
          description: "successful operation"
          schema:
            $ref: "#/definitions/TransactionsResponse"
        400:
          description: "Invalid query parameter"
          schema:
            $ref: "#/definitions/ClientMessage"
definitions:
  MemberResponse:
    type: "object"
    properties:
      msisdn:
        type: "string"
      firstname:
        type: "string"
      lastname:
        type: "string"
      address:
        type: "string"
      postcode:
        type: "string"
      town:
        type: "string"
      email:
        type: "string"
      uuid:
        type: "string"
      moMessageId:
        type: "string"
      smsSessionId:
        type: "string"
      custom1:
        type: "string"
      custom2:
        type: "string"
      custom3:
        type: "string"
      custom4:
        type: "string"
      custom5:
        type: "string"
      memberStatus:
        type: "string"
        enum:
        - "ACTIVE"
        - "PENDING"
        - "INACTIVE"
  StatisticsGroupResponse:
    type: "object"
    properties:
      descripiton:
        type: "string"
      groupList:
        type: "array"
        items:
          $ref: "#/definitions/StatisticGroup"
  TransactionsResponse:
    type: "object"
    properties:
      transactions:
        type: "array"
        items:
          $ref: "#/definitions/TransactionResponse"
  ClientMessage:
    type: "object"
    properties:
      errorCode:
        type: "integer"
        format: "int32"
        readOnly: true
      message:
        type: "string"
        readOnly: true
  MemberListResponse:
    type: "object"
    properties:
      reference:
        type: "integer"
        format: "int64"
      memberList:
        type: "array"
        items:
          $ref: "#/definitions/MemberResponse"
  ActivitiesResponse:
    type: "object"
    properties:
      activities:
        type: "array"
        items:
          $ref: "#/definitions/ActivityResponse"
  CollectorsResponse:
    type: "object"
    properties:
      collectors:
        type: "array"
        items:
          $ref: "#/definitions/CollectorResponse"
  AddressInfo:
    type: "object"
    properties:
      firstName:
        type: "string"
      lastName:
        type: "string"
      address:
        type: "string"
      areaCode:
        type: "string"
      city:
        type: "string"
      birthdate:
        type: "string"
        format: "date-time"
        description: "ISO-8601 extended local date format, e.g. '2011-12-03'"
        title: "Local date"
      type:
        type: "string"
        enum:
        - "MALE"
        - "WOMAN"
        - "UNKNOWN"
        - "COMPANY"
  CollectorResponse:
    type: "object"
    properties:
      firstName:
        type: "string"
      lastName:
        type: "string"
      email:
        type: "string"
      msisdn:
        type: "string"
      uuid:
        type: "string"
  ActivityResponse:
    type: "object"
    properties:
      name:
        type: "string"
      description:
        type: "string"
      startDate:
        type: "string"
        format: "date-time"
        description: "ISO-8601 extended offset date-time format, e.g. '2011-12-03T10:15:30+01:00'"
        title: "Zoned date time"
      stopDate:
        type: "string"
        format: "date-time"
        description: "ISO-8601 extended offset date-time format, e.g. '2011-12-03T10:15:30+01:00'"
        title: "Zoned date time"
      status:
        type: "string"
        enum:
        - "Inactive"
        - "Active"
      defaultKeyWord:
        type: "string"
      portal:
        type: "string"
      uuid:
        type: "string"
  CollectorRequest:
    type: "object"
    properties:
      firstName:
        type: "string"
      lastName:
        type: "string"
      email:
        type: "string"
      msisdn:
        type: "string"
  TransactionResponse:
    type: "object"
    properties:
      id:
        type: "integer"
        format: "int32"
      created:
        type: "string"
      price:
        type: "integer"
        format: "int32"
      status:
        type: "string"
        enum:
        - "OK"
        - "ERROR"
        - "PENDING"
      serviceId:
        type: "integer"
        format: "int32"
      moMessageId:
        type: "string"
      billingMessageId:
        type: "string"
      msisdn:
        type: "string"
      activityUuid:
        type: "string"
      collectorUuid:
        type: "string"
      collectorCode:
        type: "string"
      addressInfo:
        $ref: "#/definitions/AddressInfo"
      updated:
        type: "string"
      moKeyword:
        type: "string"
      type:
        type: "string"
        enum:
        - "FUNDRAISING_CAMPAIGN"
        - "REGULAR_SPONSOR"
        - "WEB_SPONSOR"
        - "FUNDRAISING_CAMPAIGN_MULTICHANNEL"
        - "FUNDRAISING_CAMPAIGN_MULTICHANNEL_VARIABLE_PRICE"
        - "WEB_SPONSOR_MULTICHANNEL"
      moMessageContent:
        type: "string"
  StatisticGroup:
    type: "object"
    properties:
      name:
        type: "string"
      description:
        type: "string"
      value:
        type: "integer"
        format: "int32"
  MemberRequest:
    type: "object"
    properties:
      msisdn:
        type: "string"
      firstname:
        type: "string"
      lastname:
        type: "string"
      address:
        type: "string"
      postcode:
        type: "string"
      town:
        type: "string"
      email:
        type: "string"
      custom1:
        type: "string"
      custom2:
        type: "string"
      custom3:
        type: "string"
      custom4:
        type: "string"
      custom5:
        type: "string"
      memberStatus:
        type: "string"
        enum:
        - "ACTIVE"
        - "PENDING"
        - "INACTIVE"
