github.com/optim-corp/cios-golang-sdk@v0.5.1/openapi/components/license-component.openapi.yml (about)

     1  openapi: 3.0.3
     2  info:
     3    title: License Component
     4    description: Component
     5    version: 1.0.0
     6  
     7  paths: {}
     8  
     9  components:
    10    schemas:
    11      MultipleLicense:
    12        required:
    13          - total
    14          - licenses
    15        properties:
    16          total:
    17            format: int64
    18            type: integer
    19          licenses:
    20            type: array
    21            items:
    22              $ref: '#/components/schemas/License'
    23      License:
    24        type: object
    25        required:
    26          - id
    27        properties:
    28          id:
    29            type: string
    30            format: uuid
    31            nullable: true
    32          issued_at:
    33            type: string
    34          expires_at:
    35            type: string
    36          subscription:
    37            $ref: '#/components/schemas/Subscription'
    38      Subscription:
    39        type: object
    40        required:
    41          - id
    42        properties:
    43          id:
    44            type: string
    45            format: uuid
    46          owner:
    47            $ref: '#/components/schemas/SubscriptionOwner'
    48          items:
    49            type: array
    50            items:
    51              $ref: '#/components/schemas/SubscriptionItem'
    52          provider_id:
    53            type: string
    54            format: uuid
    55            description: UUID形式
    56          quantity:
    57            type: integer
    58          unit:
    59            type: string
    60          license_type:
    61            type: string
    62            enum: [ Corporation, User, Device, Assignless ]
    63          status:
    64            type: string
    65            enum: [ active, inactive, suspend ]
    66          purchased_at:
    67            type: string
    68            description: ISO8601
    69          issued_at:
    70            type: string
    71            description: ISO8601
    72          expires_at:
    73            type: string
    74            description: ISO8601
    75      SubscriptionOwner:
    76        type: object
    77        required:
    78          - id
    79        properties:
    80          type:
    81            type: string
    82            enum: [ Corporation, User ]
    83            description: |
    84              Corporation: 企業
    85              User: ユーザー
    86          id:
    87            type: string
    88            format: uuid
    89      SubscriptionItem:
    90        type: object
    91        properties:
    92          item_id:
    93            type: string
    94          plan_id:
    95            type: string