openapi: 3.1.0
info:
  title: 1GLOBAL Connect API
  description: |-
    1GLOBAL Connect is a set of APIs designed for server-to-server integration, accessible over the internet, that enables the provisioning of a variety of connectivity solutions to users. 

    The main goal of the API is to enable our partners to easily order, activate, and manage 1GLOBAL's global connectivity.
  version: 'Next'
  x-logo:
    url: https://docs.connect.1global.com/img/logo.svg
    backgroundColor: '#FFFFFF'
    altText: 1Global
    href: '#'
servers:
  - url: https://api.1global.com/connect
security:
  - oAuth2: []
tags:

  - name: Accounts
    x-api: account
    description: Accounts represent business or personal accounts and can have a set of subscribers
  - name: Contracts
    x-api: contract
    description: Contract represent a legal agreement between a customer and a service provider
  - name: Coverage Areas
    x-api: catalog
    description: A Coverage Area defines the country (or countries) where a Product Offering can be used
  - name: Invoices
    x-api: invoice
    description: Invoices represent the billing of a set of products and services
  - name: Network Operators
    x-api: network-operator
    description: Network Operators
  - name: Orders
    x-api: order
    description: Orders are used to make purchases of products within a subscription
  - name: Phone Numbers
    x-api: phone-number
    description: Phone Numbers
  - name: Portings
    x-api: porting
    description: Portings represent portability requests for port-in and port-out of phone numbers
  - name: Product Catalogs
    x-api: catalog
    description: Product Catalogs aggregate a group of Product Offerings
  - name: Product Offerings
    x-api: catalog
    description: Product Offerings are blueprints for Products. You can access your Product Offerings via a single request. **Lists all product offerings** endpoint will show you the complete list of products and their respective Ids, which can be used in an order to activate/topup eSIM profiles.
  - name: Products
    x-api: product
    description: A Product is an instance of the Product Offering that has been ordered & provisioned. Products are created by placing a new Order and always have a Product Offering.
  - name: Service Providers
    x-api: service-provider
    description: Service Providers
  - name: Subscribers
    x-api: subscriber
    description: Subscribers represent end users and can have a set of Subscriptions
  - name: Subscriptions
    x-api: subscription
    description: Subscriptions have SIM Profiles and bundled products that are purchased






  - name: Events
    x-api: webhook
    description: Events are triggered when important domain transitions happen
paths:
  /accounts:
    post:
      x-api: account
      tags:
        - Accounts
      summary: Creates a new Account
      parameters:
        - $ref: '#/components/parameters/CorrelationId'
        - $ref: '#/components/parameters/ApiVersionHeader'
      requestBody:
        $ref: '#/components/requestBodies/CreateAccount'
      responses:
        '201':
          $ref: '#/components/responses/CreateAccount_201'
        '400':
          $ref: '#/components/responses/BadRequest'
        5XX:
          $ref: '#/components/responses/ServerError'
    get:
      x-api: account
      tags:
        - Accounts
      summary: List all accounts
      description: Returns a list of accounts
      parameters:
        - $ref: '#/components/parameters/CorrelationId'
        - $ref: '#/components/parameters/ApiVersionHeader'
        - $ref: '#/components/parameters/Cursor'
        - $ref: '#/components/parameters/Limit'
      responses:
        '200':
          $ref: '#/components/responses/ListAccounts_200'
        '400':
          $ref: '#/components/responses/BadRequest'
        5XX:
          $ref: '#/components/responses/ServerError'
  /accounts/{account-id}:
    get:
      x-api: account
      tags:
        - Accounts
      summary: Retrieve an account
      description: Retrieves the details of an existing account
      parameters:
        - $ref: '#/components/parameters/CorrelationId'
        - $ref: '#/components/parameters/ApiVersionHeader'
        - $ref: '#/components/parameters/PathAccountId'
      responses:
        '200':
          $ref: '#/components/responses/GetAccount_200'
        '404':
          $ref: '#/components/responses/NotFound'
        5XX:
          $ref: '#/components/responses/ServerError'
    patch:
      x-api: account
      tags:
        - Accounts
      summary: Patch an account
      description: Patch an account
      parameters:
        - $ref: '#/components/parameters/CorrelationId'
        - $ref: '#/components/parameters/ApiVersionHeader'
        - $ref: '#/components/parameters/PathAccountId'
      requestBody:
        $ref: '#/components/requestBodies/PatchAccount'
      responses:
        '200':
          $ref: '#/components/responses/PatchAccount_200'
        '400':
          $ref: '#/components/responses/BadRequest'
        5XX:
          $ref: '#/components/responses/ServerError'
  /coverage-areas:
    get:
      x-api: catalog
      tags:
        - Coverage Areas
      summary: List all Coverage Areas
      description: Returns a list of coverage areas
      parameters:
        - $ref: '#/components/parameters/CorrelationId'
        - $ref: '#/components/parameters/ApiVersionHeader'
        - $ref: '#/components/parameters/Countries'
        - $ref: '#/components/parameters/Cursor'
        - $ref: '#/components/parameters/Limit'
      responses:
        '200':
          $ref: '#/components/responses/GetCoverageAreas_200'
        '400':
          $ref: '#/components/responses/BadRequest'
        5XX:
          $ref: '#/components/responses/ServerError'
  /coverage-areas/{coverage-area-id}:
    get:
      x-api: catalog
      tags:
        - Coverage Areas
      summary: Retrieve a Coverage Area
      description: Retrieves the details of an existing coverage area.
      parameters:
        - $ref: '#/components/parameters/CorrelationId'
        - $ref: '#/components/parameters/ApiVersionHeader'
        - $ref: '#/components/parameters/CoverageAreaId'
      responses:
        '200':
          $ref: '#/components/responses/GetCoverageArea_200'
        '404':
          $ref: '#/components/responses/NotFound'
        5XX:
          $ref: '#/components/responses/ServerError'
  /product-offerings:
    get:
      x-api: catalog
      tags:
        - Product Offerings
      summary: Lists all Product Offerings
      description: Returns a list of product offerings
      parameters:
        - $ref: '#/components/parameters/CorrelationId'
        - $ref: '#/components/parameters/ApiVersionHeader'
        - $ref: '#/components/parameters/ProductOfferingStatus'
        - $ref: '#/components/parameters/ProductOfferingType'
        - $ref: '#/components/parameters/AllowancesCountries'
        - $ref: '#/components/parameters/Cursor'
        - $ref: '#/components/parameters/Limit'
      responses:
        '200':
          $ref: '#/components/responses/GetProductOfferings_200'
        '400':
          $ref: '#/components/responses/BadRequest'
        5XX:
          $ref: '#/components/responses/ServerError'
  /product-offerings/{product-offering-id}:
    get:
      x-api: catalog
      tags:
        - Product Offerings
      summary: Retrieve a Product Offering
      description: Retrieves the details of an existing product offering
      parameters:
        - $ref: '#/components/parameters/CorrelationId'
        - $ref: '#/components/parameters/ApiVersionHeader'
        - $ref: '#/components/parameters/ProductOfferingId'
      responses:
        '200':
          $ref: '#/components/responses/GetProductOffering_200'
        '404':
          $ref: '#/components/responses/NotFound'
        5XX:
          $ref: '#/components/responses/ServerError'
  /product-offerings/{product-offering-id}/compatible:
    get:
      x-api: catalog
      tags:
        - Product Offerings
      summary: Lists all compatible Product Offerings
      description: Returns a list of product offerings compatible with this one
      parameters:
        - $ref: '#/components/parameters/CorrelationId'
        - $ref: '#/components/parameters/ApiVersionHeader'
        - $ref: '#/components/parameters/ProductOfferingId'
        - $ref: '#/components/parameters/Cursor'
        - $ref: '#/components/parameters/Limit'
      responses:
        '200':
          $ref: '#/components/responses/GetProductOfferingAddons_200'
        '404':
          $ref: '#/components/responses/NotFound'
        5XX:
          $ref: '#/components/responses/ServerError'
  /product-catalogs:
    get:
      x-api: catalog
      tags:
        - Product Catalogs
      summary: List all Product Catalogs
      description: Returns a list of product catalogs
      parameters:
        - $ref: '#/components/parameters/CorrelationId'
        - $ref: '#/components/parameters/ApiVersionHeader'
        - $ref: '#/components/parameters/Cursor'
        - $ref: '#/components/parameters/Limit'
        - $ref: '#/components/parameters/ProductCatalogName'
      responses:
        '200':
          $ref: '#/components/responses/GetProductCatalogs_200'
        '400':
          $ref: '#/components/responses/BadRequest'
        5XX:
          $ref: '#/components/responses/ServerError'
  /product-catalogs/{product-catalog-id}:
    get:
      x-api: catalog
      tags:
        - Product Catalogs
      summary: Retrieve a Product Catalog
      description: Retrieves the details of a product catalog
      parameters:
        - $ref: '#/components/parameters/CorrelationId'
        - $ref: '#/components/parameters/ApiVersionHeader'
        - $ref: '#/components/parameters/ProductCatalogId'
      responses:
        '200':
          $ref: '#/components/responses/ProductCatalog_200'
        '404':
          $ref: '#/components/responses/NotFound'
        5XX:
          $ref: '#/components/responses/ServerError'
  /product-catalogs/{product-catalog-id}/product-offerings:
    get:
      x-api: catalog
      tags:
        - Product Catalogs
      summary: List all Product Offerings of a Product Catalog
      description: Returns a list of product offerings from a specific product catalog
      parameters:
        - $ref: '#/components/parameters/CorrelationId'
        - $ref: '#/components/parameters/ApiVersionHeader'
        - $ref: '#/components/parameters/ProductCatalogId'
        - $ref: '#/components/parameters/ProductOfferingStatus'
        - $ref: '#/components/parameters/ProductOfferingType'
        - $ref: '#/components/parameters/AllowancesCountries'
        - $ref: '#/components/parameters/Cursor'
        - $ref: '#/components/parameters/Limit'
      responses:
        '200':
          $ref: '#/components/responses/GetProductOfferings_200'
        '400':
          $ref: '#/components/responses/BadRequest'
        '404':
          $ref: '#/components/responses/NotFound'
        5XX:
          $ref: '#/components/responses/ServerError'
  /products:
    get:
      x-api: product
      tags:
        - Products
      summary: List all products
      description: Returns a list of products
      parameters:
        - $ref: '#/components/parameters/CorrelationId'
        - $ref: '#/components/parameters/ApiVersionHeader'
        - $ref: '#/components/parameters/Limit'
        - $ref: '#/components/parameters/Cursor'
        - $ref: '#/components/parameters/ProductStatus'
        - $ref: '#/components/parameters/SubscriptionId'
        - $ref: '#/components/parameters/OrderId'
      responses:
        '200':
          $ref: '#/components/responses/ListProducts_200'
        '400':
          $ref: '#/components/responses/BadRequest'
        5XX:
          $ref: '#/components/responses/ServerError'
  /products/{product-id}:
    get:
      x-api: product
      tags:
        - Products
      summary: Retrieve a product
      description: Retrieves the details of an existing product
      parameters:
        - $ref: '#/components/parameters/CorrelationId'
        - $ref: '#/components/parameters/ApiVersionHeader'
        - $ref: '#/components/parameters/ProductId'
      responses:
        '200':
          $ref: '#/components/responses/GetProduct_200'
        '404':
          $ref: '#/components/responses/NotFound'
        5XX:
          $ref: '#/components/responses/ServerError'
  /products/{product-id}/activate:
    post:
      x-api: product
      tags:
        - Products
      summary: Activate a Product
      description: Activates a product. Only products in status scheduled or pending first usage can be activated.
      parameters:
        - $ref: '#/components/parameters/CorrelationId'
        - $ref: '#/components/parameters/ApiVersionHeader'
        - $ref: '#/components/parameters/ProductId'
      responses:
        '200':
          $ref: '#/components/responses/ActivateProduct_200'
        '404':
          $ref: '#/components/responses/NotFound'
        5XX:
          $ref: '#/components/responses/ServerError'
  /products/{product-id}/cancel:
    post:
      x-api: product
      tags:
        - Products
      summary: Cancel a Product
      description: Cancels a product. Only products in status active, scheduled or pending first usage can be canceled.
      parameters:
        - $ref: '#/components/parameters/CorrelationId'
        - $ref: '#/components/parameters/ApiVersionHeader'
        - $ref: '#/components/parameters/ProductId'
      requestBody:
        $ref: '#/components/requestBodies/CancelProduct'
      responses:
        '200':
          $ref: '#/components/responses/CancelProduct_200'
        '404':
          $ref: '#/components/responses/NotFound'
        5XX:
          $ref: '#/components/responses/ServerError'
  /orders:
    post:
      x-api: order
      tags:
        - Orders
      summary: Creates a new Order
      description: Creates a new order for a subscriber.
      operationId: createOrder
      parameters:
        - $ref: '#/components/parameters/CorrelationId'
        - $ref: '#/components/parameters/ApiVersionHeader'
      requestBody:
        $ref: '#/components/requestBodies/CreateOrder'
      responses:
        '201':
          $ref: '#/components/responses/OrderCreated_201'
        '400':
          $ref: '#/components/responses/BadRequest'
        5XX:
          $ref: '#/components/responses/ServerError'
    get:
      x-api: order
      tags:
        - Orders
      summary: List all Orders
      description: Returns a list of orders
      parameters:
        - $ref: '#/components/parameters/CorrelationId'
        - $ref: '#/components/parameters/ApiVersionHeader'
        - $ref: '#/components/parameters/Cursor'
        - $ref: '#/components/parameters/Limit'
        - $ref: '#/components/parameters/OrderStatus'
      responses:
        '200':
          $ref: '#/components/responses/ListOrders_200'
        '400':
          $ref: '#/components/responses/BadRequest'
        5XX:
          $ref: '#/components/responses/ServerError'
  /orders/{order-id}:
    get:
      x-api: order
      tags:
        - Orders
      summary: Retrieve an Order
      description: Retrieves the details of an existing order
      parameters:
        - $ref: '#/components/parameters/CorrelationId'
        - $ref: '#/components/parameters/ApiVersionHeader'
        - $ref: '#/components/parameters/PathOrderId'
      responses:
        '200':
          $ref: '#/components/responses/GetOrder_200'
        '404':
          $ref: '#/components/responses/NotFound'
        5XX:
          $ref: '#/components/responses/ServerError'
  /orders/{order-id}/cancel:
    post:
      x-api: order
      tags:
        - Orders
      summary: Cancels a scheduled Order
      description: Cancels a scheduled order. Only orders in status scheduled can be canceled.
      parameters:
        - $ref: '#/components/parameters/CorrelationId'
        - $ref: '#/components/parameters/ApiVersionHeader'
        - $ref: '#/components/parameters/PathOrderId'
      responses:
        200:
          $ref: '#/components/responses/CanceledOrder_200'
        400:
          $ref: '#/components/responses/BadRequest'
        404:
          $ref: '#/components/responses/NotFound'
        5XX:
          $ref: '#/components/responses/ServerError'
  /subscribers:
    post:
      x-api: subscriber
      tags:
        - Subscribers
      summary: Creates a new Subscriber
      parameters:
        - $ref: '#/components/parameters/CorrelationId'
        - $ref: '#/components/parameters/ApiVersionHeader'
      requestBody:
        $ref: '#/components/requestBodies/CreateSubscriber'
      responses:
        '201':
          $ref: '#/components/responses/CreateSubscriber_201'
        '400':
          $ref: '#/components/responses/BadRequest'
        5XX:
          $ref: '#/components/responses/ServerError'
    get:
      x-api: subscriber
      tags:
        - Subscribers
      summary: List all subscribers
      description: Returns a list of subscribers
      parameters:
        - $ref: '#/components/parameters/CorrelationId'
        - $ref: '#/components/parameters/ApiVersionHeader'
        - $ref: '#/components/parameters/Cursor'
        - $ref: '#/components/parameters/Limit'
      responses:
        '200':
          $ref: '#/components/responses/ListSubscriber_200'
        '400':
          $ref: '#/components/responses/BadRequest'
        5XX:
          $ref: '#/components/responses/ServerError'
  /subscribers/{subscriber-id}:
    get:
      x-api: subscriber
      tags:
        - Subscribers
      summary: Retrieve a subscriber
      description: Retrieves the details of an existing subscriber
      parameters:
        - $ref: '#/components/parameters/CorrelationId'
        - $ref: '#/components/parameters/ApiVersionHeader'
        - $ref: '#/components/parameters/PathSubscriberId'
      responses:
        '200':
          $ref: '#/components/responses/GetSubscriber_200'
        '400':
          $ref: '#/components/responses/BadRequest'
        '404':
          $ref: '#/components/responses/NotFound'
        5XX:
          $ref: '#/components/responses/ServerError'
    patch:
      x-api: subscriber
      tags:
        - Subscribers
      summary: Updates a Subscriber
      description: Updates an existing Subscriber
      parameters:
        - $ref: '#/components/parameters/CorrelationId'
        - $ref: '#/components/parameters/ApiVersionHeader'
        - $ref: '#/components/parameters/PathSubscriberId'
      requestBody:
        $ref: '#/components/requestBodies/PatchSubscriber'
      responses:
        '200':
          $ref: '#/components/responses/GetSubscriber_200'
        '400':
          $ref: '#/components/responses/BadRequest'
        '404':
          $ref: '#/components/responses/NotFound'
        5XX:
          $ref: '#/components/responses/ServerError'
  /subscriptions:
    get:
      x-api: subscription
      tags:
        - Subscriptions
      summary: List all subscriptions
      description: Returns a list of subscriptions
      parameters:
        - $ref: '#/components/parameters/CorrelationId'
        - $ref: '#/components/parameters/ApiVersionHeader'
        - $ref: '#/components/parameters/AccountId'
        - $ref: '#/components/parameters/SubscriberId'
        - $ref: '#/components/parameters/Cursor'
        - $ref: '#/components/parameters/Limit'
        - $ref: '#/components/parameters/SubscriptionStatus'
      responses:
        '200':
          $ref: '#/components/responses/ListSubscription_200'
        '400':
          $ref: '#/components/responses/BadRequest'
        5XX:
          $ref: '#/components/responses/ServerError'
  /subscriptions/{subscription-id}:
    get:
      x-api: subscription
      tags:
        - Subscriptions
      summary: Retrieve a subscription
      description: Retrieves the details of an existing subscription
      parameters:
        - $ref: '#/components/parameters/CorrelationId'
        - $ref: '#/components/parameters/ApiVersionHeader'
        - $ref: '#/components/parameters/PathSubscriptionId'
      responses:
        '200':
          $ref: '#/components/responses/GetSubscription_200'
        '400':
          $ref: '#/components/responses/BadRequest'
        '404':
          $ref: '#/components/responses/NotFound'
        5XX:
          $ref: '#/components/responses/ServerError'
  /subscriptions/{subscription-id}/grace:
    post:
      x-api: subscription
      tags:
        - Subscriptions
      summary: Graces a Subscription
      description: Applies to active subscriptions when service should be limited
      parameters:
        - $ref: '#/components/parameters/PathSubscriptionId'
        - $ref: '#/components/parameters/CorrelationId'
        - $ref: '#/components/parameters/ApiVersionHeader'
      responses:
        '200':
          $ref: '#/components/responses/GraceSubscriptionResponseOK'
        '400':
          $ref: '#/components/responses/BadRequest'
        5XX:
          $ref: '#/components/responses/ServerError'
  /subscriptions/{subscription-id}/suspend:
    post:
      x-api: subscription
      tags:
        - Subscriptions
      summary: Suspends a Subscription
      description: Applies to subscriptions in grace status when service should be suspended
      parameters:
        - $ref: '#/components/parameters/PathSubscriptionId'
        - $ref: '#/components/parameters/CorrelationId'
        - $ref: '#/components/parameters/ApiVersionHeader'
      responses:
        '200':
          $ref: '#/components/responses/SuspendSubscriptionResponseOK'
        '400':
          $ref: '#/components/responses/BadRequest'
        5XX:
          $ref: '#/components/responses/ServerError'
  /subscriptions/{subscription-id}/deactivate:
    post:
      x-api: subscription
      tags:
        - Subscriptions
      summary: Deactivates a Subscription
      description: Can be used to temporary deactivate a subscription without affecting normal livecycle of products
      parameters:
        - $ref: '#/components/parameters/PathSubscriptionId'
        - $ref: '#/components/parameters/CorrelationId'
        - $ref: '#/components/parameters/ApiVersionHeader'
      responses:
        '200':
          $ref: '#/components/responses/DeactivateSubscriptionResponseOK'
        '400':
          $ref: '#/components/responses/BadRequest'
        5XX:
          $ref: '#/components/responses/ServerError'
  /subscriptions/{subscription-id}/resume:
    post:
      x-api: subscription
      tags:
        - Subscriptions
      summary: Resumes a Subscription
      description: Resumes a deactivated subscription back to active status
      parameters:
        - $ref: '#/components/parameters/PathSubscriptionId'
        - $ref: '#/components/parameters/CorrelationId'
        - $ref: '#/components/parameters/ApiVersionHeader'
      responses:
        '200':
          $ref: '#/components/responses/ResumeSubscriptionResponseOK'
        '400':
          $ref: '#/components/responses/BadRequest'
        5XX:
          $ref: '#/components/responses/ServerError'
  /phone-numbers:
    get:
      x-api: phone-number
      tags:
        - Phone Numbers
      summary: List Phone Numbers
      description: List phone numbers
      parameters:
        - $ref: '#/components/parameters/CorrelationId'
        - $ref: '#/components/parameters/ApiVersionHeader'
        - $ref: '#/components/parameters/Limit'
        - $ref: '#/components/parameters/Cursor'
        - $ref: '#/components/parameters/SubscriptionId'
      responses:
        '200':
          $ref: '#/components/responses/ListPhoneNumbers_200'
        '400':
          $ref: '#/components/responses/BadRequest'
        '404':
          $ref: '#/components/responses/NotFound'
        5XX:
          $ref: '#/components/responses/ServerError'
  /phone-numbers/{phone-number-id}:
    get:
      x-api: phone-number
      tags:
        - Phone Numbers
      summary: Retrieve a Phone Number
      description: Retrieves the details of an existing Phone Number
      parameters:
        - $ref: '#/components/parameters/CorrelationId'
        - $ref: '#/components/parameters/ApiVersionHeader'
        - $ref: '#/components/parameters/PathPhoneNumberId'
      responses:
        '200':
          $ref: '#/components/responses/GetPhoneNumber_200'
        '400':
          $ref: '#/components/responses/BadRequest'
        '404':
          $ref: '#/components/responses/NotFound'
        5XX:
          $ref: '#/components/responses/ServerError'
  /phone-numbers/{phone-number-id}/enable-porting-opt-in:
    post:
      x-api: phone-number
      tags:
        - Phone Numbers
      summary: Enable Phone Number Opt In
      description: Enables the Phone Number porting Opt In
      parameters:
        - $ref: '#/components/parameters/CorrelationId'
        - $ref: '#/components/parameters/ApiVersionHeader'
        - $ref: '#/components/parameters/PathPhoneNumberId'
      responses:
        '200':
          $ref: '#/components/responses/PhoneNumberEnableOptInResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '404':
          $ref: '#/components/responses/NotFound'
        5XX:
          $ref: '#/components/responses/ServerError'
  /phone-numbers/{phone-number-id}/disable-porting-opt-in:
    post:
      x-api: phone-number
      tags:
        - Phone Numbers
      summary: Disable Phone Number Opt In
      description: Disables the Phone Number porting Opt In
      parameters:
        - $ref: '#/components/parameters/CorrelationId'
        - $ref: '#/components/parameters/ApiVersionHeader'
        - $ref: '#/components/parameters/PathPhoneNumberId'
      responses:
        '200':
          $ref: '#/components/responses/PhoneNumberDisableOptInResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '404':
          $ref: '#/components/responses/NotFound'
        5XX:
          $ref: '#/components/responses/ServerError'
  /portings:
    get:
      x-api: porting
      tags:
        - Portings
      summary: List all Portings
      description: Returns a list of Portings
      parameters:
        - $ref: '#/components/parameters/CorrelationId'
        - $ref: '#/components/parameters/ApiVersionHeader'
        - $ref: '#/components/parameters/Limit'
        - $ref: '#/components/parameters/Cursor'
        - $ref: '#/components/parameters/PortingStatus'
        - $ref: '#/components/parameters/PhoneNumberId'
        - $ref: '#/components/parameters/SubscriptionId'
      responses:
        '200':
          $ref: '#/components/responses/ListPortings_200'
        '400':
          $ref: '#/components/responses/BadRequest'
        5XX:
          $ref: '#/components/responses/ServerError'
    post:
      x-api: porting
      tags:
        - Portings
      summary: Create a porting
      description: Create a new porting request
      parameters:
        - $ref: '#/components/parameters/CorrelationId'
        - $ref: '#/components/parameters/ApiVersionHeader'
      requestBody:
        $ref: '#/components/requestBodies/CreatePorting'
      responses:
        '201':
          $ref: '#/components/responses/PortingCreated_201'
        '400':
          $ref: '#/components/responses/BadRequest'
        5XX:
          $ref: '#/components/responses/ServerError'
  /portings/{porting-id}:
    get:
      x-api: porting
      tags:
        - Portings
      summary: Retrieve a porting
      description: Retrieves a porting
      parameters:
        - $ref: '#/components/parameters/CorrelationId'
        - $ref: '#/components/parameters/ApiVersionHeader'
        - $ref: '#/components/parameters/PathPortingId'
      responses:
        '200':
          $ref: '#/components/responses/GetPorting_200'
        '404':
          $ref: '#/components/responses/NotFound'
        5XX:
          $ref: '#/components/responses/ServerError'
  /portings/{porting-id}/accept:
    post:
      x-api: porting
      summary: Accept a porting request
      description: Accept a porting request
      parameters:
        - $ref: '#/components/parameters/CorrelationId'
        - $ref: '#/components/parameters/ApiVersionHeader'
        - $ref: '#/components/parameters/PathPortingId'
      tags:
        - Portings
      requestBody:
        $ref: '#/components/requestBodies/AcceptPorting'
      responses:
        '202':
          $ref: '#/components/responses/AcceptPorting_202'
        '400':
          $ref: '#/components/responses/BadRequest'
        5XX:
          $ref: '#/components/responses/ServerError'
  /portings/{porting-id}/reject:
    post:
      x-api: porting
      tags:
        - Portings
      summary: Rejects a porting request
      description: Rejects a porting request
      parameters:
        - $ref: '#/components/parameters/CorrelationId'
        - $ref: '#/components/parameters/ApiVersionHeader'
        - $ref: '#/components/parameters/PathPortingId'
      requestBody:
        $ref: '#/components/requestBodies/RejectPorting'
      responses:
        '202':
          $ref: '#/components/responses/RejectPorting_202'
        '400':
          $ref: '#/components/responses/BadRequest'
        5XX:
          $ref: '#/components/responses/ServerError'
  /portings/{porting-id}/request-cancelation:
    post:
      x-api: porting
      tags:
        - Portings
      summary: Request cancelation of the porting
      description: Request cancelation of the porting
      parameters:
        - $ref: '#/components/parameters/CorrelationId'
        - $ref: '#/components/parameters/ApiVersionHeader'
        - $ref: '#/components/parameters/PathPortingId'
      requestBody:
        $ref: '#/components/requestBodies/RequestCancelationPorting'
      responses:
        '200':
          $ref: '#/components/responses/RequestCancelationPorting_200'
        '400':
          $ref: '#/components/responses/BadRequest'
        5XX:
          $ref: '#/components/responses/ServerError'
  /portings/{porting-id}/accept-cancelation:
    post:
      x-api: porting
      tags:
        - Portings
      summary: Accept a porting cancelation request
      description: Accepts a porting cancelation request
      parameters:
        - $ref: '#/components/parameters/CorrelationId'
        - $ref: '#/components/parameters/ApiVersionHeader'
        - $ref: '#/components/parameters/PathPortingId'
      requestBody:
        $ref: '#/components/requestBodies/AcceptCancelationPorting'
      responses:
        '202':
          $ref: '#/components/responses/AcceptCancelationPorting_202'
        '400':
          $ref: '#/components/responses/BadRequest'
        5XX:
          $ref: '#/components/responses/ServerError'
  /portings/{porting-id}/reject-cancelation:
    post:
      x-api: porting
      tags:
        - Portings
      summary: Rejects a porting cancelation request
      description: Rejects a porting cancelation request
      parameters:
        - $ref: '#/components/parameters/CorrelationId'
        - $ref: '#/components/parameters/ApiVersionHeader'
        - $ref: '#/components/parameters/PathPortingId'
      requestBody:
        $ref: '#/components/requestBodies/RejectCancelationPorting'
      responses:
        '202':
          $ref: '#/components/responses/RejectCancelationPorting_202'
        '400':
          $ref: '#/components/responses/BadRequest'
        5XX:
          $ref: '#/components/responses/ServerError'
  /portings/{porting-id}/request-reschedule:
    post:
      x-api: porting
      tags:
        - Portings
      summary: Request Reschedule of the porting
      description: Request Reschedule of the porting
      parameters:
        - $ref: '#/components/parameters/CorrelationId'
        - $ref: '#/components/parameters/ApiVersionHeader'
        - $ref: '#/components/parameters/PathPortingId'
      requestBody:
        $ref: '#/components/requestBodies/RequestReschedulePorting'
      responses:
        200:
          $ref: '#/components/responses/RequestReschedulePorting_200'
        400:
          $ref: '#/components/responses/BadRequest'
        5XX:
          $ref: '#/components/responses/ServerError'
  /network-operators:
    get:
      x-api: network-operator
      tags:
        - Network Operators
      summary: List all network-operators
      description: Returns a list of network-operators
      parameters:
        - $ref: '#/components/parameters/CorrelationId'
        - $ref: '#/components/parameters/ApiVersionHeader'
        - $ref: '#/components/parameters/Limit'
        - $ref: '#/components/parameters/Cursor'
        - $ref: '#/components/parameters/QueryPortingCountry'
        - $ref: '#/components/parameters/QueryNetworkOperatorStatus'
      responses:
        '200':
          $ref: '#/components/responses/ListNetworkOperators_200'
        '400':
          $ref: '#/components/responses/BadRequest'
        5XX:
          $ref: '#/components/responses/ServerError'
  /network-operators/{network-operator-id}:
    get:
      x-api: network-operator
      tags:
        - Network Operators
      summary: Get a network-operators by id
      description: Get a network operator by id
      parameters:
        - $ref: '#/components/parameters/CorrelationId'
        - $ref: '#/components/parameters/ApiVersionHeader'
        - $ref: '#/components/parameters/PathNetworkOperatorId'
      responses:
        '200':
          $ref: '#/components/responses/GetNetworkOperator_200'
        '404':
          $ref: '#/components/responses/NotFound'
        5XX:
          $ref: '#/components/responses/ServerError'
  /service-providers:
    get:
      x-api: service-provider
      tags:
        - Service Providers
      summary: List all service-provider
      description: Returns a list of service-provider
      parameters:
        - $ref: '#/components/parameters/CorrelationId'
        - $ref: '#/components/parameters/ApiVersionHeader'
        - $ref: '#/components/parameters/Limit'
        - $ref: '#/components/parameters/Cursor'
        - $ref: '#/components/parameters/QueryPortingCountry'
        - $ref: '#/components/parameters/QueryServiceProviderStatus'
      responses:
        '200':
          $ref: '#/components/responses/ListServiceProviders_200'
        '400':
          $ref: '#/components/responses/BadRequest'
        5XX:
          $ref: '#/components/responses/ServerError'
  /service-providers/{service-provider-id}:
    get:
      x-api: service-provider
      tags:
        - Service Providers
      summary: Get a service-provider by id
      description: Get a service-provider by id
      parameters:
        - $ref: '#/components/parameters/CorrelationId'
        - $ref: '#/components/parameters/ApiVersionHeader'
        - $ref: '#/components/parameters/PathServiceProviderId'
      responses:
        '200':
          $ref: '#/components/responses/GetServiceProvider_200'
        '404':
          $ref: '#/components/responses/NotFound'
        5XX:
          $ref: '#/components/responses/ServerError'
  /contracts:
    get:
      x-api: contract
      tags:
        - Contracts
      summary: List all Contracts
      description: Returns a list of Contracts
      parameters:
        - $ref: '#/components/parameters/CorrelationId'
        - $ref: '#/components/parameters/ApiVersionHeader'
        - $ref: '#/components/parameters/Limit'
        - $ref: '#/components/parameters/Cursor'
        - $ref: '#/components/parameters/AccountId'
      responses:
        '200':
          $ref: '#/components/responses/ListContracts_200'
        '400':
          $ref: '#/components/responses/BadRequest'
        5XX:
          $ref: '#/components/responses/ServerError'
  /contracts/{contract-id}:
    get:
      x-api: contract
      tags:
        - Contracts
      summary: Retrieve a contract
      description: Retrieves a contract by its ID
      parameters:
        - $ref: '#/components/parameters/CorrelationId'
        - $ref: '#/components/parameters/ApiVersionHeader'
        - $ref: '#/components/parameters/PathContractId'
      responses:
        '200':
          $ref: '#/components/responses/GetContract_200'
        '404':
          $ref: '#/components/responses/NotFound'
        5XX:
          $ref: '#/components/responses/ServerError'
  /invoices:
    get:
      x-api: invoice
      tags:
        - Invoices
      summary: List all Invoices
      description: Returns a list of Invoices
      parameters:
        - $ref: '#/components/parameters/CorrelationId'
        - $ref: '#/components/parameters/ApiVersionHeader'
        - $ref: '#/components/parameters/Limit'
        - $ref: '#/components/parameters/Cursor'
        - $ref: '#/components/parameters/AccountId'
      responses:
        '200':
          $ref: '#/components/responses/ListInvoices_200'
        '400':
          $ref: '#/components/responses/BadRequest'
        5XX:
          $ref: '#/components/responses/ServerError'
  /invoices/{invoice-id}:
    get:
      x-api: invoice
      tags:
        - Invoices
      summary: Retrieve a invoice
      description: Retrieves a invoice by its ID
      parameters:
        - $ref: '#/components/parameters/CorrelationId'
        - $ref: '#/components/parameters/ApiVersionHeader'
        - $ref: '#/components/parameters/PathInvoiceId'
      responses:
        '200':
          $ref: '#/components/responses/GetInvoice_200'
        '404':
          $ref: '#/components/responses/NotFound'
        5XX:
          $ref: '#/components/responses/ServerError'
  /invoices/{invoice-id}/items:
    get:
      x-api: invoice
      tags:
        - Invoices
      summary: List all Invoices Items
      description: Returns a list of Invoice Items
      parameters:
        - $ref: '#/components/parameters/CorrelationId'
        - $ref: '#/components/parameters/ApiVersionHeader'
        - $ref: '#/components/parameters/Limit'
        - $ref: '#/components/parameters/Cursor'
        - $ref: '#/components/parameters/PathInvoiceId'
      responses:
        '200':
          $ref: '#/components/responses/ListInvoiceItems_200'
        '400':
          $ref: '#/components/responses/BadRequest'
        5XX:
          $ref: '#/components/responses/ServerError'
webhooks:
  balanceThreshold:
    post:
      x-api: webhook
      security:
        - basicAuth: []
      tags:
        - Events
      summary: Balance Threshold
      description: This webhook is triggered when a product balance threshold is reached.
      requestBody:
        description: Product balance threshold event schema
        required: true
        content:
          application/hal+json:
            schema:
              $ref: '#/components/schemas/BalanceThresholdNotification'
            examples:
              balanceThresholdExample:
                $ref: '#/components/examples/BalanceThresholdExample'
      responses:
        '200':
          description: Acknowledgement of successful receipt
        '400':
          description: Invalid data
  productDepleted:
    post:
      x-api: webhook
      security:
        - basicAuth: []
      tags:
        - Events
      summary: Product Depleted
      description: This webhook is triggered when a product is depleted.
      requestBody:
        description: Product depleted event notification payload
        required: true
        content:
          application/hal+json:
            schema:
              $ref: '#/components/schemas/ProductNotificationDepleted'
            examples:
              productDepletedExample:
                $ref: '#/components/examples/ProductDepletedExample'
      responses:
        '200':
          description: Acknowledgement of successful receipt
        '400':
          description: Invalid data
  productTerminated:
    post:
      x-api: webhook
      security:
        - basicAuth: []
      tags:
        - Events
      summary: Product Terminated
      description: This webhook is triggered when a product is terminated.
      requestBody:
        description: Product terminated notification payload
        required: true
        content:
          application/hal+json:
            schema:
              $ref: '#/components/schemas/ProductNotificationTerminated'
            examples:
              product:
                $ref: '#/components/examples/ProductTerminatedExample'
      responses:
        '200':
          description: Acknowledgement of successful receipt
        '400':
          description: Invalid data
  productActive:
    post:
      x-api: webhook
      security:
        - basicAuth: []
      tags:
        - Events
      summary: Product Active
      description: This webhook is triggered when a product is activated.
      requestBody:
        description: Product active notification payload
        required: true
        content:
          application/hal+json:
            schema:
              $ref: '#/components/schemas/ProductNotificationActive'
            examples:
              product:
                $ref: '#/components/examples/ProductActiveExample'
      responses:
        '200':
          description: Acknowledgement of successful receipt
        '400':
          description: Invalid data
  productCanceled:
    post:
      x-api: webhook
      security:
        - basicAuth: []
      tags:
        - Events
      summary: Product Canceled
      description: This webhook is triggered when a product is canceled.
      requestBody:
        description: Product canceled notification payload
        required: true
        content:
          application/hal+json:
            schema:
              $ref: '#/components/schemas/ProductNotificationCanceled'
            examples:
              product:
                $ref: '#/components/examples/ProductCanceledExample'
      responses:
        '200':
          description: Acknowledgement of successful receipt
        '400':
          description: Invalid data
  productThrottlingApplied:
    post:
      x-api: webhook
      security:
        - basicAuth: [ ]
      tags:
        - Events
      summary: Product Throttling Applied
      description: This webhook is triggered when a product throttling is applied.
      requestBody:
        description: Product product throttling applied notification payload
        required: true
        content:
          application/hal+json:
            schema:
              $ref: '#/components/schemas/ProductThrottlingAppliedNotification'
            examples:
              product:
                $ref: '#/components/examples/ProductThrottlingAppliedExample'
      responses:
        '200':
          description: Acknowledgement of successful receipt
        '400':
          description: Invalid data
  subscriptionActive:
    post:
      x-api: webhook
      security:
        - basicAuth: []
      tags:
        - Events
      summary: Subscription Active
      description: This webhook is triggered when a subscription is activated.
      requestBody:
        description: Subscription active event payload
        required: true
        content:
          application/hal+json:
            schema:
              $ref: '#/components/schemas/SubscriptionNotificationActive'
            examples:
              subscription:
                $ref: '#/components/examples/EventSubscriptionActive'
      responses:
        '200':
          description: Acknowledgement of successful receipt
        '400':
          description: Invalid data
  subscriptionGrace:
    post:
      x-api: webhook
      security:
        - basicAuth: []
      tags:
        - Events
      summary: Subscription Grace
      description: This webhook is triggered when a subscription goes into grace period.
      requestBody:
        description: Subscription grace event payload
        required: true
        content:
          application/hal+json:
            schema:
              $ref: '#/components/schemas/SubscriptionNotificationGrace'
            examples:
              subscription:
                $ref: '#/components/examples/EventSubscriptionGrace'
      responses:
        '200':
          description: Acknowledgement of successful receipt
        '400':
          description: Invalid data
  subscriptionSuspended:
    post:
      x-api: webhook
      security:
        - basicAuth: []
      tags:
        - Events
      summary: Subscription Suspended
      description: This webhook is triggered when a subscription is suspended.
      requestBody:
        description: Subscription suspended event payload
        required: true
        content:
          application/hal+json:
            schema:
              $ref: '#/components/schemas/SubscriptionNotificationSuspended'
            examples:
              subscription:
                $ref: '#/components/examples/EventSubscriptionSuspended'
      responses:
        '200':
          description: Acknowledgement of successful receipt
        '400':
          description: Invalid data
  subscriptionTerminated:
    post:
      x-api: webhook
      security:
        - basicAuth: []
      tags:
        - Events
      summary: Subscription Terminated
      description: This webhook is triggered when a subscription is terminated.
      requestBody:
        description: Subscription terminated event payload
        required: true
        content:
          application/hal+json:
            schema:
              $ref: '#/components/schemas/SubscriptionNotificationTerminated'
            examples:
              subscription:
                $ref: '#/components/examples/EventSubscriptionTerminated'
      responses:
        '200':
          description: Acknowledgement of successful receipt
        '400':
          description: Invalid data
  subscriptionDeactivated:
    post:
      x-api: webhook
      security:
        - basicAuth: []
      tags:
        - Events
      summary: Subscription Deactivated
      description: This webhook is triggered when a subscription is deactivated.
      requestBody:
        description: Subscription deactivated event payload
        required: true
        content:
          application/hal+json:
            schema:
              $ref: '#/components/schemas/SubscriptionNotificationDeactivated'
            examples:
              subscription:
                $ref: '#/components/examples/EventSubscriptionDeactivated'
      responses:
        '200':
          description: Acknowledgement of successful receipt
        '400':
          description: Invalid data
  subscriptionCanceled:
    post:
      x-api: webhook
      security:
        - basicAuth: []
      tags:
        - Events
      summary: Subscription Canceled
      description: This webhook is triggered when a subscription is canceled.
      requestBody:
        description: Subscription canceled event payload
        required: true
        content:
          application/hal+json:
            schema:
              $ref: '#/components/schemas/SubscriptionNotificationCanceled'
            examples:
              subscription:
                $ref: '#/components/examples/EventSubscriptionCanceled'
      responses:
        '200':
          description: Acknowledgement of successful receipt
        '400':
          description: Invalid data
  subscriptionSimProfileInstalled:
    post:
      x-api: webhook
      security:
        - basicAuth: []
      tags:
        - Events
      summary: Subscription Profile Installed
      description: This webhook is triggered when a profile is installed.
      requestBody:
        description: Subscription profile event payload
        required: true
        content:
          application/hal+json:
            schema:
              $ref: '#/components/schemas/SubscriptionProfileNotificationInstalled'
            examples:
              subscription:
                $ref: '#/components/examples/SubscriptionSimProfileInstalledExample'
      responses:
        '200':
          description: Acknowledgement of successful receipt
        '400':
          description: Invalid data
  subscriptionSimProfileDeleted:
    post:
      x-api: webhook
      security:
        - basicAuth: []
      tags:
        - Events
      summary: Subscription Profile Deleted
      description: This webhook is triggered when a profile is deleted.
      requestBody:
        description: Subscription profile event payload
        required: true
        content:
          application/hal+json:
            schema:
              $ref: '#/components/schemas/SubscriptionProfileNotificationDeleted'
            examples:
              subscription:
                $ref: '#/components/examples/SubscriptionSimProfileDeletedExample'
      responses:
        '200':
          description: Acknowledgement of successful receipt
        '400':
          description: Invalid data
  subscriptionSimProfileReadyForInstallation:
    post:
      x-api: webhook
      security:
        - basicAuth: []
      tags:
        - Events
      summary: Subscription Profile Ready for Installation
      description: This webhook is triggered when a profile is ready for installed.
      requestBody:
        description: Subscription profile event payload
        required: true
        content:
          application/hal+json:
            schema:
              $ref: '#/components/schemas/SubscriptionProfileNotificationReadyForInstallation'
            examples:
              subscription:
                $ref: '#/components/examples/SubscriptionSimProfileReadyForInstallationExample'
      responses:
        '200':
          description: Acknowledgement of successful receipt
        '400':
          description: Invalid data
  orderCompleted:
    post:
      x-api: webhook
      security:
        - basicAuth: []
      tags:
        - Events
      summary: Order Completed
      description: This webhook is triggered when an order is completed.
      requestBody:
        description: Order completed notification payload
        required: true
        content:
          application/hal+json:
            schema:
              $ref: '#/components/schemas/OrderNotificationCompleted'
            examples:
              order:
                $ref: '#/components/examples/OrderCompletedExample'
      responses:
        '200':
          description: Acknowledgement of successful receipt
        '400':
          description: Invalid data
  orderFailed:
    post:
      x-api: webhook
      security:
        - basicAuth: []
      tags:
        - Events
      summary: Order Failed
      description: This webhook is triggered when an order has failed.
      requestBody:
        description: Order failed notification payload
        required: true
        content:
          application/hal+json:
            schema:
              $ref: '#/components/schemas/OrderNotificationFailed'
            examples:
              order:
                $ref: '#/components/examples/OrderFailedExample'
      responses:
        '200':
          description: Acknowledgement of successful receipt
        '400':
          description: Invalid data
  orderCanceled:
    post:
      x-api: webhook
      security:
        - basicAuth: [ ]
      tags:
        - Events
      summary: Order Canceled
      description: This webhook is triggered when an order was canceled.
      requestBody:
        description: Order canceled notification payload
        required: true
        content:
          application/hal+json:
            schema:
              $ref: '#/components/schemas/OrderNotificationCanceled'
            examples:
              order:
                $ref: '#/components/examples/OrderCanceledExample'
      responses:
        200:
          description: Acknowledgement of successful receipt
        400:
          description: Invalid data
  portingDraft:
    post:
      x-api: webhook
      security:
        - basicAuth: []
      tags:
        - Events
      summary: Porting Draft
      description: This webhook is triggered when a porting request is in draft
      requestBody:
        description: Porting draft event schema
        required: true
        content:
          application/hal+json:
            schema:
              $ref: '#/components/schemas/PortingDraftNotification'
            examples:
              portingInDraftExample:
                $ref: '#/components/examples/PortingInDraftNotificationExample'
      responses:
        '200':
          description: Acknowledgement of successful receipt
        '400':
          description: Invalid data
  portingPending:
    post:
      x-api: webhook
      security:
        - basicAuth: []
      tags:
        - Events
      summary: Porting Pending
      description: This webhook is triggered when a porting request is in pending
      requestBody:
        description: Porting pending event schema
        required: true
        content:
          application/hal+json:
            schema:
              $ref: '#/components/schemas/PortingPendingNotification'
            examples:
              portingInPendingExample:
                $ref: '#/components/examples/PortingInPendingNotificationExample'
              portingOutPendingExample:
                $ref: '#/components/examples/PortingOutPendingNotificationExample'
      responses:
        '200':
          description: Acknowledgement of successful receipt
        '400':
          description: Invalid data
  portingScheduled:
    post:
      x-api: webhook
      security:
        - basicAuth: []
      tags:
        - Events
      summary: Porting Scheduled
      description: This webhook is triggered when a porting request is in Scheduled
      requestBody:
        description: Porting draft event schema
        required: true
        content:
          application/hal+json:
            schema:
              $ref: '#/components/schemas/PortingScheduledNotification'
            examples:
              portingInScheduledExample:
                $ref: '#/components/examples/PortingInScheduledNotificationExample'
              portingOutScheduledExample:
                $ref: '#/components/examples/PortingOutScheduledNotificationExample'
      responses:
        '200':
          description: Acknowledgement of successful receipt
        '400':
          description: Invalid data
  portingProcessing:
    post:
      x-api: webhook
      security:
        - basicAuth: []
      tags:
        - Events
      summary: Porting Processing
      description: This webhook is triggered when a porting request is in Processing
      requestBody:
        description: Porting Processing event schema
        required: true
        content:
          application/hal+json:
            schema:
              $ref: '#/components/schemas/PortingProcessingNotification'
            examples:
              portingInProcessingExample:
                $ref: '#/components/examples/PortingInProcessingNotificationExample'
              portingOutProcessingExample:
                $ref: '#/components/examples/PortingOutProcessingNotificationExample'
      responses:
        '200':
          description: Acknowledgement of successful receipt
        '400':
          description: Invalid data
  portingCompleted:
    post:
      x-api: webhook
      security:
        - basicAuth: []
      tags:
        - Events
      summary: Porting Completed
      description: This webhook is triggered when a porting request is in Completed
      requestBody:
        description: Porting Completed event schema
        required: true
        content:
          application/hal+json:
            schema:
              $ref: '#/components/schemas/PortingCompletedNotification'
            examples:
              portingInCompletedExample:
                $ref: '#/components/examples/PortingInCompletedNotificationExample'
              portingOutCompletedExample:
                $ref: '#/components/examples/PortingOutCompletedNotificationExample'
      responses:
        '200':
          description: Acknowledgement of successful receipt
        '400':
          description: Invalid data
  portingCancelationRequested:
    post:
      x-api: webhook
      security:
        - basicAuth: []
      tags:
        - Events
      summary: Porting Cancelation Requested
      description: This webhook is triggered when a porting request is in CancelationRequested
      requestBody:
        description: Porting CancelationRequested event schema
        required: true
        content:
          application/hal+json:
            schema:
              $ref: '#/components/schemas/PortingCancelationRequestedNotification'
            examples:
              portingInCancelationRequestedExample:
                $ref: '#/components/examples/PortingInCancelationRequestedNotificationExample'
              portingOutCancelationRequestedExample:
                $ref: '#/components/examples/PortingOutCancelationRequestedNotificationExample'
      responses:
        '200':
          description: Acknowledgement of successful receipt
        '400':
          description: Invalid data
  portingCanceled:
    post:
      x-api: webhook
      security:
        - basicAuth: []
      tags:
        - Events
      summary: Porting Canceled
      description: This webhook is triggered when a porting request is in Canceled
      requestBody:
        description: Porting Canceled event schema
        required: true
        content:
          application/hal+json:
            schema:
              $ref: '#/components/schemas/PortingCanceledNotification'
            examples:
              portingInCanceledExample:
                $ref: '#/components/examples/PortingInCanceledNotificationExample'
              portingOutCanceledExample:
                $ref: '#/components/examples/PortingOutCanceledNotificationExample'
      responses:
        '200':
          description: Acknowledgement of successful receipt
        '400':
          description: Invalid data
  portingRejected:
    post:
      x-api: webhook
      security:
        - basicAuth: []
      tags:
        - Events
      summary: Porting Rejected
      description: This webhook is triggered when a porting request is in Rejected
      requestBody:
        description: Porting Rejected event schema
        required: true
        content:
          application/hal+json:
            schema:
              $ref: '#/components/schemas/PortingRejectedNotification'
            examples:
              portingInRejectedExample:
                $ref: '#/components/examples/PortingInRejectedNotificationExample'
              portingOutRejectedExample:
                $ref: '#/components/examples/PortingOutRejectedNotificationExample'
      responses:
        '200':
          description: Acknowledgement of successful receipt
        '400':
          description: Invalid data
  portingRescheduleRequested:
    post:
      x-api: webhook
      security:
        - basicAuth: []
      tags:
        - Events
      summary: Porting Reschedule Requested
      description: This webhook is triggered when a porting request is in Reschedule Requested
      requestBody:
        description: Porting Reschedule Requested event schema
        required: true
        content:
          application/hal+json:
            schema:
              $ref: '#/components/schemas/PortingRescheduleRequestedNotification'
            examples:
              portingOutRescheduleRequestedPLExample:
                $ref: '#/components/examples/PortingOutRescheduleRequestedPLNotificationExample'
      responses:
        200:
          description: Acknowledgement of successful receipt
        400:
          description: Invalid data
  contractCreated:
    post:
      x-api: webhook
      security:
        - basicAuth: []
      tags:
        - Events
      summary: Contract Created
      description: This webhook is triggered when a new contract is created.
      requestBody:
        description: Contract event schema
        required: true
        content:
          application/hal+json:
            schema:
              $ref: '#/components/schemas/ContractNotification'
            examples:
              ContractExample:
                $ref: '#/components/examples/ContractNotificationExample'
      responses:
        '200':
          description: Acknowledgement of successful receipt
        '400':
          description: Invalid data
  invoiceOpen:
    post:
      x-api: webhook
      security:
        - basicAuth: []
      tags:
        - Events
      summary: Invoice Open
      description: This webhook is triggered when a new invoice is open.
      requestBody:
        description: Invoice event schema
        required: true
        content:
          application/hal+json:
            schema:
              $ref: '#/components/schemas/InvoiceNotification'
            examples:
              InvoiceMonthlyRecurringRegular:
                $ref: '#/components/examples/InvoiceMonthlyRecurringRegularNotificationExample'
      responses:
        '200':
          description: Acknowledgement of successful receipt
        '400':
          description: Invalid data
components:
  requestBodies:
    CreateAccount:
      required: true
      content:
        application/json:
          schema:
            oneOf:
              - $ref: '#/components/schemas/CreateAccountPersonal'
              - $ref: '#/components/schemas/CreateAccountBusiness'
            discriminator:
              propertyName: type
              mapping:
                personal: '#/components/schemas/CreateAccountPersonal'
                business: '#/components/schemas/CreateAccountBusiness'
          examples:
            personal:
              $ref: '#/components/examples/CreateAccountPersonal'
            business:
              $ref: '#/components/examples/CreateAccountBusiness'
    PatchAccount:
      required: true
      content:
        application/json:
          schema:
            oneOf:
              - $ref: '#/components/schemas/PatchAccountPersonal'
              - $ref: '#/components/schemas/PatchAccountBusiness'
          examples:
            personal:
              $ref: '#/components/examples/PatchAccountPersonal'
            business:
              $ref: '#/components/examples/PatchAccountBusiness'
    CancelProduct:
      required: true
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/CancelProduct'
          examples:
            cancel_immediate:
              $ref: '#/components/examples/CancelProductImmediate'
            cancel_end_of_cycle:
              $ref: '#/components/examples/CancelProductEndOfCycle'
    CreateOrder:
      required: true
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/CreateOrder'
          examples:
            ActivateSubscriptionOrderFirsUsage:
              $ref: '#/components/examples/ActivateSubscriptionOrderFirstUsage'
            ActivateSubscriptionOrderImmediate:
              $ref: '#/components/examples/ActivateSubscriptionOrderImmediate'
            ActivateSubscriptionOrderScheduled:
              $ref: '#/components/examples/ActivateSubscriptionOrderScheduled'
            ActivateSubscriptionOrderEID:
              $ref: '#/components/examples/ActivateSubscriptionOrderEID'
            TopUpSubscriptionOrderFirstUsage:
              $ref: '#/components/examples/TopUpSubscriptionOrderFirstUsage'
            TopUpSubscriptionOrderScheduled:
              $ref: '#/components/examples/TopUpSubscriptionOrderScheduled'
            TopUpSubscriptionOrderImmediate:
              $ref: '#/components/examples/TopUpSubscriptionOrderImmediate'
            CancelOrder:
              $ref: '#/components/examples/CancelOrder'
            SwapSubscriptionSimOrder:
              $ref: '#/components/examples/SwapSubscriptionSimOrder'
            ChangeSubscriptionPlanOrderImmediate:
              $ref: '#/components/examples/ChangeSubscriptionPlanOrderImmediate'
            ChangeSubscriptionPlanOrderEndOfLifecycle:
              $ref: '#/components/examples/ChangeSubscriptionPlanOrderEndOfCycle'
    CreateSubscriber:
      required: true
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/CreateSubscriber'
          examples:
            CreateSubscriberUS:
              $ref: '#/components/examples/CreateSubscriberUS'
            CreateSubscriberEU:
              $ref: '#/components/examples/CreateSubscriberEU'
    PatchSubscriber:
      required: true
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/PatchSubscriber'
          examples:
            UpdateSubscriberUS:
              $ref: '#/components/examples/UpdateSubscriberUS'
            UpdateSubscriberEU:
              $ref: '#/components/examples/UpdateSubscriberEU'
    CreatePorting:
      required: true
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/CreatePorting'
    AcceptPorting:
      required: true
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/AcceptPorting'
    RejectPorting:
      required: true
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/RejectPorting'
    RequestCancelationPorting:
      required: true
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/RequestCancelationPorting'
    AcceptCancelationPorting:
      required: true
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/AcceptCancelationPorting'
    RejectCancelationPorting:
      required: true
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/RejectCancelationPorting'
    RequestReschedulePorting:
      required: true
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/RequestReschedulePorting'
    CreateFile:
      description: The file to upload.
      content:
        multipart/form-data:
          schema:
            type: object
            properties:
              file:
                type: string
                format: binary
                description: The file to upload.
            required:
              - file
  responses:
    CreateAccount_201:
      description: Account created
      content:
        application/hal+json:
          schema:
            $ref: '#/components/schemas/OneOfAccount'
          examples:
            AccountPersonal:
              $ref: '#/components/examples/AccountPersonal'
            AccountBusiness:
              $ref: '#/components/examples/AccountBusiness'
    ListAccounts_200:
      description: Accounts
      content:
        application/hal+json:
          schema:
            $ref: '#/components/schemas/AccountList'
    GetAccount_200:
      description: Account
      content:
        application/hal+json:
          schema:
            $ref: '#/components/schemas/OneOfAccount'
          examples:
            AccountPersonal:
              $ref: '#/components/examples/AccountPersonal'
            AccountBusiness:
              $ref: '#/components/examples/AccountBusiness'
    PatchAccount_200:
      description: Account
      content:
        application/hal+json:
          schema:
            $ref: '#/components/schemas/OneOfAccount'
          examples:
            AccountPersonal:
              $ref: '#/components/examples/AccountPersonal'
            AccountBusiness:
              $ref: '#/components/examples/AccountBusiness'
    ListSubscriber_200:
      description: Subscribers
      content:
        application/hal+json:
          schema:
            $ref: '#/components/schemas/SubscribersSummaryList'
          examples:
            ListSubscribers:
              $ref: '#/components/examples/ListSubscribers'
    GetSubscriber_200:
      description: Subscriber
      content:
        application/hal+json:
          schema:
            $ref: '#/components/schemas/Subscriber'
          examples:
            usSubscriber:
              $ref: '#/components/examples/GetSubscriberUS'
            ptSubscriber:
              $ref: '#/components/examples/GetSubscriberEU'
    OrderCreated_201:
      description: Order created
      content:
        application/hal+json:
          schema:
            $ref: '#/components/schemas/Order'
          examples:
            CreateOrder:
              $ref: '#/components/examples/CreateOrder'
    ListOrders_200:
      description: Orders
      content:
        application/hal+json:
          schema:
            $ref: '#/components/schemas/OrderList'
          examples:
            ListOrders:
              $ref: '#/components/examples/ListOrders'
    GetOrder_200:
      description: Order
      content:
        application/hal+json:
          schema:
            $ref: '#/components/schemas/Order'
          examples:
            GetOrder:
              $ref: '#/components/examples/GetOrder'
    CanceledOrder_200:
      description: Order
      content:
        application/hal+json:
          schema:
            $ref: '#/components/schemas/Order'
          examples:
            CanceledOrder:
              $ref: '#/components/examples/CanceledOrder'
    GetProduct_200:
      description: Product
      content:
        application/hal+json:
          schema:
            $ref: '#/components/schemas/ProductResponseOneOf'
          examples:
            active:
              $ref: '#/components/examples/ActiveProduct'
            canceled:
              $ref: '#/components/examples/CanceledProduct'
            terminated:
              $ref: '#/components/examples/TerminatedProduct'
            pending_first_usage:
              $ref: '#/components/examples/PendingFirstUsageProduct'
            depleted:
              $ref: '#/components/examples/DepletedProduct'
            scheduled:
              $ref: '#/components/examples/ScheduledProduct'
    ListSubscription_200:
      description: Subscriptions
      content:
        application/hal+json:
          schema:
            $ref: '#/components/schemas/SubscriptionSummaryList'
          examples:
            list_subscriptions:
              $ref: '#/components/examples/ListSubscriptionsResponse'
    GetSubscription_200:
      description: Subscription
      content:
        application/hal+json:
          schema:
            $ref: '#/components/schemas/Subscription'
          examples:
            subscription_created:
              $ref: '#/components/examples/CreatedSubscriptionResponse'
            subscription_active:
              $ref: '#/components/examples/ActiveSubscriptionResponse'
            subscription_grace:
              $ref: '#/components/examples/GraceSubscriptionResponse'
            subscription_suspended:
              $ref: '#/components/examples/SuspendSubscriptionResponse'
            subscription_terminated:
              $ref: '#/components/examples/TerminatedSubscriptionResponse'
            subscription_deactivated:
              $ref: '#/components/examples/DeactivateSubscriptionResponse'
    ListPhoneNumbers_200:
      description: Phone Numbers
      content:
        application/hal+json:
          schema:
            $ref: '#/components/schemas/PhoneNumbersPaginated'
          examples:
            phone_numbers_list:
              $ref: '#/components/examples/PhoneNumbersListResponse'
    GetPhoneNumber_200:
      description: Phone Number
      content:
        application/hal+json:
          schema:
            $ref: '#/components/schemas/PhoneNumberDetailed'
          examples:
            phone_number_opt_in_enabled:
              $ref: '#/components/examples/GetPhoneNumberResponseOptInEnabled'
            phone_number_opt_in_disabled:
              $ref: '#/components/examples/GetPhoneNumberResponseOptInDisabled'
            phone_number_terminated:
              $ref: '#/components/examples/GetPhoneNumberResponseTerminated'
            phone_number_ported_out:
              $ref: '#/components/examples/GetPhoneNumberResponsePortedOut'
    PhoneNumberEnableOptInResponse:
      description: Phone Number
      content:
        application/hal+json:
          schema:
            $ref: '#/components/schemas/PhoneNumberDetailedOptIn'
          examples:
            phone_number_opt_in_enabled:
              $ref: '#/components/examples/GetPhoneNumberResponseOptInEnabled'
    PhoneNumberDisableOptInResponse:
      description: Phone Number
      content:
        application/hal+json:
          schema:
            $ref: '#/components/schemas/PhoneNumberDetailedOptIn'
          examples:
            phone_number_opt_in_disabled:
              $ref: '#/components/examples/GetPhoneNumberResponseOptInDisabled'
    GetCoverageAreas_200:
      description: Coverage Areas
      content:
        application/hal+json:
          schema:
            $ref: '#/components/schemas/CoverageAreas'
          examples:
            ListCoverageAreas:
              $ref: '#/components/examples/ListCoverageAreas'
    GetProductCatalogs_200:
      description: Product Catalogs
      content:
        application/hal+json:
          schema:
            $ref: '#/components/schemas/ProductCatalogs'
          examples:
            oneCatalog:
              summary: Example with one product catalog
              value:
                _embedded:
                  product_catalogs:
                    - id: prdcat_92BX5ZZKBKGCTAV9WEVGEMMVRY
                      name: Generic Product Catalog
                      created_at: '2021-03-01T14:28:17.967Z'
                      updated_at: '2022-03-01T16:23:10.445Z'
                      _links:
                        self:
                          href: https://api.1global.com/connect/product-catalogs/prdcat_92BX5ZZKBKGCTAV9WEVGEMMVRY
                        product-offerings:
                          href: https://api.1global.com/connect/product-catalogs/prdcat_92BX5ZZKBKGCTAV9WEVGEMMVRY/product-offerings
                _links:
                  self:
                    href: https://api.1global.com/connect/product-catalogs
                  next:
                    href: https://api.1global.com/connect/product-catalogs?cursor=nextCursor&limit=10
                  prev:
                    href: https://api.1global.com/connect/product-catalogs?cursor=prevCursor&limit=10
            twoCatalogs:
              summary: Example with two product catalogs
              value:
                _embedded:
                  product_catalogs:
                    - id: prdcat_01BX5ZZKBKACTAV9WEVGEMMVRY
                      name: Global Product Catalog
                      created_at: '2021-02-01T14:28:17.967Z'
                      updated_at: '2022-03-01T16:23:10.445Z'
                      _links:
                        self:
                          href: https://api.1global.com/connect/product-catalogs/prdcat_01BX5ZZKBKACTAV9WEVGEMMVRY
                        product-offerings:
                          href: https://api.1global.com/connect/product-catalogs/prdcat_01BX5ZZKBKACTAV9WEVGEMMVRY/product-offerings
                    - id: prdcat_02BX5ZZKBKACTAV9WEVGEMMVRY
                      name: Local Product Catalog
                      created_at: '2021-03-01T14:28:17.967Z'
                      updated_at: '2022-03-01T14:28:17.967Z'
                      _links:
                        self:
                          href: https://api.1global.com/connect/product-catalogs/prdcat_02BX5ZZKBKACTAV9WEVGEMMVRY
                        product-offerings:
                          href: https://api.1global.com/connect/product-catalogs/prdcat_02BX5ZZKBKACTAV9WEVGEMMVRY/product-offerings
                _links:
                  self:
                    href: https://api.1global.com/connect/product-catalogs
                  next:
                    href: https://api.1global.com/connect/product-catalogs?cursor=nextCursor&limit=2
                  prev:
                    href: https://api.1global.com/connect/product-catalogs?cursor=prevCursor&limit=2
    ProductCatalog_200:
      description: Product Catalog
      content:
        application/hal+json:
          schema:
            $ref: '#/components/schemas/ProductCatalog'
          examples:
            productCatalog:
              $ref: '#/components/examples/ProductCatalogResponse'
    GetProductOffering_200:
      description: Product Offering
      content:
        application/hal+json:
          schema:
            $ref: '#/components/schemas/ProductOffering'
          examples:
            addon:
              $ref: '#/components/examples/GetProductOffering'
            plan:
              $ref: '#/components/examples/GetProductOfferingPlan'
    GetProductOfferings_200:
      description: Product Offerings
      content:
        application/hal+json:
          schema:
            $ref: '#/components/schemas/ProductOfferings'
          examples:
            ListProductOfferings:
              $ref: '#/components/examples/ListProductOfferings'
    GetProductOfferingAddons_200:
      description: Product Offerings compatible addons
      content:
        application/hal+json:
          schema:
            $ref: '#/components/schemas/ProductOfferings'
          examples:
            ListProductOfferings:
              $ref: '#/components/examples/ListProductOfferings'
    GetCoverageArea_200:
      description: Coverage Area
      content:
        application/hal+json:
          schema:
            $ref: '#/components/schemas/CoverageArea'
          examples:
            external:
              $ref: '#/components/examples/CoverageAreaResponseExternal'
    ListProducts_200:
      description: Products
      content:
        application/hal+json:
          schema:
            $ref: '#/components/schemas/ProductsSummaryList'
          examples:
            ListProducts:
              $ref: '#/components/examples/ListProducts'
    ActivateProduct_200:
      description: Product activated
      content:
        application/hal+json:
          schema:
            $ref: '#/components/schemas/ProductResponseActive'
          examples:
            active:
              $ref: '#/components/examples/ActiveProduct'
    CancelProduct_200:
      description: Product canceled
      content:
        application/hal+json:
          schema:
            $ref: '#/components/schemas/ProductCanceledOneOf'
          examples:
            immediate:
              $ref: '#/components/examples/CanceledProduct'
            end_of_cycle:
              $ref: '#/components/examples/ActiveProduct'
    CreateSubscriber_201:
      description: Subscriber created
      content:
        application/hal+json:
          schema:
            $ref: '#/components/schemas/Subscriber'
          examples:
            usSubscriber:
              $ref: '#/components/examples/GetSubscriberUS'
    BadRequest:
      description: Invalid request parameters
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/ProblemDetails'
          examples:
            badRequest:
              $ref: '#/components/examples/BadRequestResponse'
    NotFound:
      description: Resource not found
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/ProblemDetails'
          examples:
            notFound:
              $ref: '#/components/examples/NotFoundResponse'
    ServerError:
      description: Internal server error
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/ProblemDetails'
          examples:
            serverError:
              $ref: '#/components/examples/ServerErrorResponse'
    GraceSubscriptionResponseOK:
      description: Successfully grace subscription
      content:
        application/hal+json:
          schema:
            $ref: '#/components/schemas/SubscriptionGrace'
          examples:
            grace:
              $ref: '#/components/examples/GraceSubscriptionResponse'
    SuspendSubscriptionResponseOK:
      description: Successfully suspended subscription
      content:
        application/hal+json:
          schema:
            $ref: '#/components/schemas/SubscriptionSuspended'
          examples:
            suspend:
              $ref: '#/components/examples/SuspendSubscriptionResponse'
    DeactivateSubscriptionResponseOK:
      description: Successfully deactivated subscription
      content:
        application/hal+json:
          schema:
            $ref: '#/components/schemas/SubscriptionDeactivated'
          examples:
            deactivate:
              $ref: '#/components/examples/DeactivateSubscriptionResponse'
    ResumeSubscriptionResponseOK:
      description: Successfully resumed subscription
      content:
        application/hal+json:
          schema:
            $ref: '#/components/schemas/SubscriptionActive'
          examples:
            resumed:
              $ref: '#/components/examples/ActiveSubscriptionResponse'
    GetNetworkOperator_200:
      description: Network Operator
      content:
        application/hal+json:
          schema:
            $ref: '#/components/schemas/NetworkOperator'
          examples:
            network_provider_telekom:
              $ref: '#/components/examples/NetworkOperator'
    GetServiceProvider_200:
      description: Service Provider
      content:
        application/hal+json:
          schema:
            $ref: '#/components/schemas/ServiceProvider'
          examples:
            service_provider_tmobile:
              $ref: '#/components/examples/ServiceProvider'
    ListNetworkOperators_200:
      description: Network Operators
      content:
        application/hal+json:
          schema:
            $ref: '#/components/schemas/NetworkOperatorList'
          examples:
            network-operators-list:
              $ref: '#/components/examples/NetworkOperatorListExample'
    ListServiceProviders_200:
      description: Service Providers
      content:
        application/hal+json:
          schema:
            $ref: '#/components/schemas/ServiceProviderList'
          examples:
            service-providers-list:
              $ref: '#/components/examples/ServiceProviderListExample'
    ListPortings_200:
      description: Portings
      content:
        application/hal+json:
          schema:
            $ref: '#/components/schemas/PortingList'
    PortingCreated_201:
      description: Porting created
      content:
        application/hal+json:
          schema:
            $ref: '#/components/schemas/PortingInDraft'
          examples:
            PortingInDraftDE:
              $ref: '#/components/examples/PortingInDraftDE'
    GetPorting_200:
      description: Porting
      content:
        application/hal+json:
          schema:
            $ref: '#/components/schemas/Porting'
          examples:
            PortingOutPendingDE:
              $ref: '#/components/examples/PortingOutPendingDE'
            PortingOutScheduledDE:
              $ref: '#/components/examples/PortingOutScheduledDE'
            PortingOutCancelationRequestedDE:
              $ref: '#/components/examples/PortingOutCancelationRequestedDE'
            PortingOutCanceledDE:
              $ref: '#/components/examples/PortingOutCanceledDE'
            PortingOutScheduledDeclinedCancelationDE:
              $ref: '#/components/examples/PortingOutScheduledDeclinedCancelationDE'
            PortingOutProcessingDE:
              $ref: '#/components/examples/PortingOutProcessingDE'
            PortingOutCompletedDE:
              $ref: '#/components/examples/PortingOutCompletedDE'
            PortingInDraftDE:
              $ref: '#/components/examples/PortingInDraftDE'
            PortingInPendingDE:
              $ref: '#/components/examples/PortingInPendingDE'
            PortingInRejectedDE:
              $ref: '#/components/examples/PortingInRejectedDE'
            PortingIntScheduledDE:
              $ref: '#/components/examples/PortingInScheduledDE'
            PortingInCancelationRequestedDE:
              $ref: '#/components/examples/PortingInCancelationRequestedDE'
            PortingInCanceledDE:
              $ref: '#/components/examples/PortingInCanceledDE'
            PortingInScheduledDeclinedCancelationDE:
              $ref: '#/components/examples/PortingInScheduledDeclinedCancelationDE'
            PortingInProcessingDE:
              $ref: '#/components/examples/PortingInProcessingDE'
            PortingInCompletedDE:
              $ref: '#/components/examples/PortingInCompletedDE'
            PortingOutPendingPL:
              $ref: '#/components/examples/PortingOutPendingPL'
            PortingOutScheduledPL:
              $ref: '#/components/examples/PortingOutScheduledPL'
            PortingOutCancelationRequestedPL:
              $ref: '#/components/examples/PortingOutCancelationRequestedPL'
            PortingOutCanceledPL:
              $ref: '#/components/examples/PortingOutCanceledPL'
            PortingOutProcessingPL:
              $ref: '#/components/examples/PortingOutProcessingPL'
            PortingOutCompletedPL:
              $ref: '#/components/examples/PortingOutCompletedPL'
            PortingInDraftPL:
              $ref: '#/components/examples/PortingInDraftPL'
            PortingInPendingPL:
              $ref: '#/components/examples/PortingInPendingPL'
            PortingInRejectedPL:
              $ref: '#/components/examples/PortingInRejectedPL'
            PortingIntScheduledPL:
              $ref: '#/components/examples/PortingInScheduledPL'
            PortingInCancelationRequestedPL:
              $ref: '#/components/examples/PortingInCancelationRequestedPL'
            PortingInCanceledPL:
              $ref: '#/components/examples/PortingInCanceledPL'
            PortingInProcessingPL:
              $ref: '#/components/examples/PortingInProcessingPL'
            PortingInCompletedPL:
              $ref: '#/components/examples/PortingInCompletedPL'
    AcceptPorting_202:
      description: Porting
      content:
        application/hal+json:
          schema:
            $ref: '#/components/schemas/PortingOutPendingDE'
    RejectPorting_202:
      description: Porting
      content:
        application/hal+json:
          schema:
            $ref: '#/components/schemas/PortingOutPendingDE'
    RequestCancelationPorting_200:
      description: Porting
      content:
        application/hal+json:
          schema:
            anyOf: 
              -  $ref: '#/components/schemas/PortingInCancelationRequested'
              -  $ref: '#/components/schemas/PortingOutCancelationRequestedPL'
          examples:
            PortingInCancelationRequested:
              $ref: '#/components/examples/PortingInCancelationRequestedDE'
    AcceptCancelationPorting_202:
      description: Porting
      content:
        application/hal+json:
          schema:
            $ref: '#/components/schemas/Porting'
    RejectCancelationPorting_202:
      description: Porting
      content:
        application/hal+json:
          schema:
            $ref: '#/components/schemas/Porting'
    RequestReschedulePorting_200:
      description: Porting
      content:
        application/hal+json:
          schema:
            $ref: '#/components/schemas/PortingOutRescheduleRequested'
    GetContract_200:
      description: Contract
      content:
        application/hal+json:
          schema:
            $ref: '#/components/schemas/Contract'
          examples:
            ContractExample:
              $ref: '#/components/examples/ContractExample'
    ListContracts_200:
      description: Contracts
      content:
        application/hal+json:
          schema:
            $ref: '#/components/schemas/ContractList'
          examples:
            ListContracts:
              $ref: '#/components/examples/ListContracts_200'
    GetInvoice_200:
      description: Invoice
      content:
        application/hal+json:
          schema:
            $ref: '#/components/schemas/Invoice'
          examples:
            InvoiceMonthlyRecurringRegular:
              $ref: '#/components/examples/InvoiceMonthlyRecurringRegular'
    ListInvoices_200:
      description: Invoices
      content:
        application/hal+json:
          schema:
            $ref: '#/components/schemas/InvoiceList'
          examples:
            ListInvoices:
              $ref: '#/components/examples/ListInvoices_200'
    ListInvoiceItems_200:
      description: Invoice Items
      content:
        application/hal+json:
          schema:
            $ref: '#/components/schemas/InvoiceItemList'
          examples:
            ListInvoiceItems:
              $ref: '#/components/examples/ListInvoiceItems_200'
  examples:
    ServiceProvider:
      summary: Service Provider Telekom
      value:
        id: spro_01HV3KWPNRCT870WV3XG41CAT3
        name: Telekom
        country: DE
        status: active
        code: TMOB
        brands:
          - Telekom
        created_at: '2024-10-01T14:28:17.456Z'
        updated_at: '2024-10-01T14:28:17.456Z'
        _links:
          self:
            href: https://api.1global.com/connect/service-providers/spro_01HV3KWPNRCT870WV3XG41CAT3
    NetworkOperator:
      summary: Network Provider Telekom
      value:
        id: nopr_01HV3KWPNRCT870WV3XG41CAT3
        name: T-Mobile Deutschland GmbH
        trade_name: Telekom
        country: DE
        status: active
        code: D1
        created_at: '2024-10-01T14:28:17.456Z'
        updated_at: '2024-10-01T14:28:17.456Z'
        _links:
          self:
            href: https://api.1global.com/connect/network-operators/nopr_01HV3KWPNRCT870WV3XG41CAT3
    NotFoundResponse:
      summary: Resource not found
      value:
        title: Resource not found
        status: 404
        detail: 'Subscription not found for id: subs_01JADDWCZVVCTDQ3M4TYWH3MQW'
        correlation_id: 54057f59-c2ed-427d-88ac-5138ac324b3a
    BadRequestResponse:
      summary: Bad request
      value:
        title: Invalid request parameters
        status: 400
        correlation_id: 54057f59-c2ed-427d-88ac-5138ac324b3a
        errors:
          - code: constraint_validation_error
            detail: size must be between 1 and 15
            pointer: $.products
    ServerErrorResponse:
      summary: Server error
      value:
        title: Internal error
        status: 500
        detail: An internal error has occurred
        correlation_id: 54057f59-c2ed-427d-88ac-5138ac324b3a
    CreateAccountPersonal:
      summary: Create Personal Account Request
      value:
        name: Test account name
        type: personal
        owner:
          first_name: First name
          last_name: Last Name
          address:
            line1: Avenue 1
            line2: Central Park
            city: Berlin
            country: DE
            postal_code: 123-456
    CreateAccountBusiness:
      summary: Create Business Account Request
      value:
        name: Test account name
        type: business
        company_name: Company name
        tax_id: TAX123456789
        address:
          line1: Avenue 1
          line2: Central Park
          city: Berlin
          country: DE
          postal_code: 123-456
    PatchAccountPersonal:
      summary: Patch Personal Account Request
      value:
        owner:
          address:
            line1: Avenue 1
            line2: Central Park
            city: Berlin
            country: DE
            postal_code: 123-456
    PatchAccountBusiness:
      summary: Patch Business Account Request
      value:
        name: Test account name
        company_name: Company name
        tax_id: TAX123456789
    AccountPersonal:
      summary: Personal Account
      value:
        id: acc_01J806F9TNFYTQM3Z4THPTJEVY
        name: Test account name
        type: personal
        number: C2024AAAA0000
        owner:
          first_name: First name
          last_name: Last Name
          address:
            line1: Avenue 1
            line2: Central Park
            city: Berlin
            country: DE
            postal_code: 123-456
        created_at: '2024-09-17T14:34:06.037Z'
        updated_at: '2024-09-17T14:34:06.037Z'
        _links:
          self:
            href: https://api.1global.com/connect/accounts/acc_01J806F9TNFYTQM3Z4THPTJEVY
    AccountBusiness:
      summary: Business Account
      value:
        id: acc_01J806F9TNFYTQM3Z4THPTJEVY
        name: Test account name
        type: business
        number: C2024AAAA0000
        company_name: Company name
        tax_id: TAX123456789
        address:
          line1: Avenue 1
          line2: Central Park
          city: Berlin
          country: DE
          postal_code: 123-456
        created_at: '2024-09-17T14:34:06.037Z'
        updated_at: '2024-09-17T14:34:06.037Z'
        _links:
          self:
            href: https://api.1global.com/connect/accounts/acc_01J806F9TNFYTQM3Z4THPTJEVY
    BalanceThresholdExample:
      summary: Balance Threshold Product Example
      value:
        id: evt_01J494G6WZAR2E2808Z8M07K4Z
        type: balance.threshold.exceeded
        created_at: '2021-02-01T14:28:17.967Z'
        data:
          threshold:
            allowance_type: data
            percentage: 80
          product:
            id: prd_01J806F9TNFYTQM3Z4THPTJEVY
            status: active
            created_at: '2024-09-17T14:34:06.037Z'
            started_at: '2024-09-17T14:35:31.559Z'
            expire_at: '2025-09-17T14:34:03.946Z'
            end_at: '2024-10-17T14:35:31.559Z'
            _embedded:
              product_offering:
                id: prdoff_01J7ZWQW25H38MHADHDQ21H28W
                name: Local Germany 1Month 500MB
                type: addon
                validity:
                  type: duration
                  unit: month
                  unit_count: 1
                  is_recurrent: false
                _embedded:
                  allowances:
                    - type: data
                      unit: megabytes
                      unit_count: 500
                      is_unlimited: false
                      _embedded:
                        coverage_area:
                          id: cov_01J7ZWQVSNTKXMEZ77GS81ZG2T
                          name: Germany
                          type: local
                          created_at: '2024-09-17T11:44:00.818Z'
                          updated_at: '2024-09-17T11:44:00.818Z'
                          countries:
                            - DE
                          _links:
                            self:
                              href: https://api.1global.com/connect/coverage-areas/cov_01J7ZWQVSNTKXMEZ77GS81ZG2T
                _links:
                  self:
                    href: https://api.1global.com/connect/product-offerings/prdoff_01J7ZWQW25H38MHADHDQ21H28W
              balances:
                - type: limited
                  allowance_type: data
                  unit: bytes
                  initial: 524288000
                  remaining: 123000
                  spent: 524165000
              prices:
                - type: one_time
                  unit_amount: 0
                  currency: EUR
            _links:
              self:
                href: https://api.1global.com/connect/products/prd_01J806F9TNFYTQM3Z4THPTJEVY
              cancel:
                href: https://api.1global.com/connect/products/prd_01J806F9TNFYTQM3Z4THPTJEVY/cancel
              order:
                href: https://api.1global.com/connect/orders/ord_01J806F7RDT6ERDN47MHPC6AA2
              subscription:
                href: https://api.1global.com/connect/subscriptions/subs_01J806F86A8YJDPDX0DY9ZM7TD
    SubscriptionSimProfileInstalledExample:
      summary: Subscription Profile Installed
      value:
        id: evt_01J494G6WZAR2E2808Z8M07K4Z
        type: subscription.sim_profile.installed
        created_at: '2021-02-01T14:28:17.967Z'
        data:
          subscription:
            id: subs_01J3YVZN6DGMG6BWYJ8QY8NZ1H
            status: active
            created_at: '2024-07-29T09:08:45.901Z'
            updated_at: '2024-07-29T09:08:45.984Z'
            _embedded:
              sim_profile:
                sim_type: esim
                profile_status: Installed
                matching_id: BR-24GGSR-11KEFFV
                smdp_address: rsp.truphone.com
                iccid: '8999999999990238017'
                _embedded:
                  device:
                    uicc:
                      eid: '89049032004008882600018948798950'
              account:
                id: acc_01HRC2T6WK4CMVGFXA2RESTQ97
                _links:
                  self:
                    href: http://api.1global.com/connect/accounts/acc_01HRC2T6WK4CMVGFXA2RESTQ97
            _links:
              self:
                href: http://api.1global.com/connect/subscriptions/evt_01J494G6WZAR2E2808Z8M07K4Z
              qrcode:
                href: http://api.1global.com/qrcode/v1/esim/LPA:1$rsp.truphone.com$BR-24GGSR-11KEFFV
              products:
                href: http://api.1global.com/connect/products?subscription=evt_01J494G6WZAR2E2808Z8M07K4Z
              subscriber:
                href: http://api.1global.com/connect/subscriber/subr_02BX5ZZKBKACTAV9WEVGEMMVRY
    SubscriptionSimProfileReadyForInstallationExample:
      summary: Subscription Profile Ready for Installation
      value:
        id: evt_01J494G6WZAR2E2808Z8M07K4Z
        type: subscription.sim_profile.ready_for_installation
        created_at: '2021-02-01T14:28:17.967Z'
        data:
          subscription:
            id: subs_01J3YVZN6DGMG6BWYJ8QY8NZ1H
            status: active
            created_at: '2024-07-29T09:08:45.901Z'
            updated_at: '2024-07-29T09:08:45.984Z'
            _embedded:
              sim_profile:
                sim_type: esim
                profile_status: ready_for_installation
                matching_id: BR-24GGSR-11KEFFV
                smdp_address: rsp.truphone.com
                iccid: '8999999999990238017'
                _embedded:
                  device:
                    uicc:
                      eid: '89049032004008882600018948798950'
              account:
                id: acc_01HRC2T6WK4CMVGFXA2RESTQ97
                _links:
                  self:
                    href: http://api.1global.com/connect/accounts/acc_01HRC2T6WK4CMVGFXA2RESTQ97
            _links:
              self:
                href: http://api.1global.com/connect/subscriptions/evt_01J494G6WZAR2E2808Z8M07K4Z
              qrcode:
                href: http://api.1global.com/qrcode/v1/esim/LPA:1$rsp.truphone.com$BR-24GGSR-11KEFFV
              products:
                href: http://api.1global.com/connect/products?subscription=evt_01J494G6WZAR2E2808Z8M07K4Z
              subscriber:
                href: http://api.1global.com/connect/subscriber/subr_02BX5ZZKBKACTAV9WEVGEMMVRY
          order:
            id: ord_01J7ZWP1X8MBE7GZ73M75JEPB2
            _links:
              self:
                href: http://api.1global.com/connect/orders/ord_01J7ZWP1X8MBE7GZ73M75JEPB2
    SubscriptionSimProfileDeletedExample:
      summary: Subscription Profile Deleted
      value:
        id: evt_01J494G6WZAR2E2808Z8M07K4Z
        type: subscription.sim_profile.deleted
        created_at: '2021-02-01T14:28:17.967Z'
        data:
          subscription:
            id: subs_01J3YVZN6DGMG6BWYJ8QY8NZ1H
            status: terminated
            created_at: '2024-07-29T09:08:45.901Z'
            updated_at: '2024-07-29T09:08:45.984Z'
            _embedded:
              sim_profile:
                sim_type: esim
                profile_status: Deleted
                matching_id: BR-24GGSR-11KEFFV
                smdp_address: rsp.truphone.com
                iccid: '8999999999990238017'
                _embedded:
                  device:
                    uicc:
                      eid: '89049032004008882600018948798950'
              account:
                id: acc_01HRC2T6WK4CMVGFXA2RESTQ97
                _links:
                  self:
                    href: http://api.1global.com/connect/accounts/acc_01HRC2T6WK4CMVGFXA2RESTQ97
            _links:
              self:
                href: http://api.1global.com/connect/subscriptions/subs_01J3YVZN6DGMG6BWYJ8QY8NZ1H
              qrcode:
                href: http://api.1global.com/qrcode/v1/esim/LPA:1$rsp.truphone.com$BR-24GGSR-11KEFFV
              products:
                href: http://api.1global.com/connect/products?subscription=subs_01J3YVZN6DGMG6BWYJ8QY8NZ1H
              subscriber:
                href: http://api.1global.com/connect/subscriber/subr_02BX5ZZKBKACTAV9WEVGEMMVRY
    ProductDepletedExample:
      summary: Product Depleted
      value:
        id: evt_01J494G6WZAR2E2808Z8M07K4Z
        type: product.depleted
        created_at: '2021-02-01T14:28:17.967Z'
        data:
          product:
            id: prd_01J494WK30DVCMB6ZPYWN21APK
            status: depleted
            created_at: '2023-05-06T16:59:17.000Z'
            start_at: '2023-05-06T16:59:20.000Z'
            started_at: '2023-05-06T16:59:17.967Z'
            expire_at: '2023-10-21T14:28:17.967Z'
            end_at: '2023-06-07T16:52:17.967Z'
            ended_at: '2023-05-10T16:52:17.967Z'
            _embedded:
              product_offering:
                id: prdoff_01HW386JNMYHY5G9VXPNK49ABS
                name: Local Macedonia - 15 Days - 70 GB
                type: addon
                validity:
                  type: duration
                  unit: day
                  unit_count: 15
                  is_recurrent: false
                _embedded:
                  allowances:
                    - type: data
                      unit: bytes
                      unit_count: 70
                      is_unlimited: false
                      _embedded:
                        coverage_area:
                          id: cov_01J7ZWQVSNTKXMEZ77GS81ZG2T
                          name: Macedonia
                          type: local
                          created_at: '2024-09-17T11:44:00.818Z'
                          updated_at: '2024-10-10T11:44:00.000Z'
                          countries:
                            - DE
                          _links:
                            self:
                              href: https://api.1global.com/connect/coverage-areas/cov_01J7ZWQVSNTKXMEZ77GS81ZG2T
                _links:
                  self:
                    href: https://api.1global.com/connect/product-offerings/prdoff_01HW386JNMYHY5G9VXPNK49ABS
              balances:
                - type: limited
                  allowance_type: data
                  unit: bytes
                  initial: 524288000
                  remaining: 0
                  spent: 524288000
              prices:
                - type: recurring
                  unit_amount: 19
                  recurrence:
                    unit: week
                    unit_count: 1
                  currency: EUR
            _links:
              self:
                href: https://api.1global.com/consumer/product/products/prd_01J494WK30DVCMB6ZPYWN21APK
              order:
                href: https://api.1global.com/consumer/order/orders/ord_01HRCZZKEXG4QSYNVSD6FHFT0D
              subscription:
                href: https://api.1global.com/consumer/subscription/subscriptions/subs_01J0BQZ8MZ6C1V8GPYYQC0KZ2S
    ProductTerminatedExample:
      summary: Product Terminated
      value:
        id: evt_01J494G6WZAR2E2808Z8M07K4Z
        type: product.terminated
        created_at: '2021-02-01T14:28:17.967Z'
        data:
          product:
            id: prd_01J494WK30DVCMB6ZPYWN21APK
            status: terminated
            created_at: '2024-08-02T08:56:46.944Z'
            started_at: '2023-05-06T16:59:17.967Z'
            start_at: '2023-05-06T16:59:17.967Z'
            end_at: '2023-05-07T16:52:17.967Z'
            ended_at: '2023-05-07T16:52:17.967Z'
            _embedded:
              product_offering:
                id: prdoff_01HW386JNMYHY5G9VXPNK49ABS
                name: Local Macedonia - 15 Days - 70 GB
                type: addon
                validity:
                  type: duration
                  unit: day
                  unit_count: 15
                  is_recurrent: false
                _embedded:
                  allowances:
                    - type: data
                      unit: bytes
                      unit_count: 70
                      is_unlimited: false
                      _embedded:
                        coverage_area:
                          id: cov_01J7ZWQVSNTKXMEZ77GS81ZG2T
                          name: Macedonia
                          type: local
                          created_at: '2024-09-17T11:44:00.818Z'
                          updated_at: '2024-10-10T11:44:00.000Z'
                          countries:
                            - MK
                          _links:
                            self:
                              href: https://api.1global.com/connect/coverage-areas/cov_01J7ZWQVSNTKXMEZ77GS81ZG2T
                _links:
                  self:
                    href: https://api.1global.com/connect/product-offerings/prdoff_01HW386JNMYHY5G9VXPNK49ABS
              balances:
                - type: limited
                  allowance_type: data
                  unit: bytes
                  initial: 524288000
                  remaining: 123000
                  spent: 524165000
              prices:
                - type: recurring
                  unit_amount: 50
                  recurrence:
                    unit: month
                    unit_count: 1
                  currency: EUR
            _links:
              self:
                href: https://api.1global.com/connect/products/prd_01J494WK30DVCMB6ZPYWN21APK
              order:
                href: https://api.1global.com/connect/orders/ord_01HRCZZKEXG4QSYNVSD6FHFT0D
              subscription:
                href: https://api.1global.com/connect/subscriptions/subs_01J0BQZ8MZ6C1V8GPYYQC0KZ2S
    ProductActiveExample:
      summary: Product Active
      value:
        id: evt_01J494G6WZAR2E2808Z8M07K4Z
        type: product.active
        created_at: '2021-02-01T14:28:17.967Z'
        data:
          product:
            id: prd_01J494WK30DVCMB6ZPYWN21APK
            status: active
            created_at: '2023-01-02T08:56:46.944Z'
            started_at: '2023-05-06T16:59:17.967Z'
            end_at: '2023-06-07T16:52:17.967Z'
            expire_at: '2023-08-07T16:52:17.967Z'
            _embedded:
              product_offering:
                id: prdoff_01HW386JNMYHY5G9VXPNK49ABS
                name: Local Macedonia - 15 Days - 70 GB
                type: addon
                validity:
                  type: duration
                  unit: day
                  unit_count: 15
                  is_recurrent: false
                _embedded:
                  allowances:
                    - type: data
                      unit: bytes
                      unit_count: 70
                      is_unlimited: false
                      _embedded:
                        coverage_area:
                          id: cov_01J7ZWQVSNTKXMEZ77GS81ZG2T
                          name: Macedonia
                          type: local
                          created_at: '2024-09-17T11:44:00.818Z'
                          updated_at: '2024-10-10T11:44:00.000Z'
                          countries:
                            - MK
                          _links:
                            self:
                              href: https://api.1global.com/connect/coverage-areas/cov_01J7ZWQVSNTKXMEZ77GS81ZG2T
                _links:
                  self:
                    href: https://api.1global.com/connect/product-offerings/prdoff_01HW386JNMYHY5G9VXPNK49ABS
              balances:
                - type: limited
                  allowance_type: data
                  unit: bytes
                  initial: 524288000
                  remaining: 123000
                  spent: 524165000
              prices:
                - type: recurring
                  unit_amount: 50
                  recurrence:
                    unit: month
                    unit_count: 1
                  currency: EUR
            _links:
              self:
                href: https://api.1global.com/connect/products/prd_01J494WK30DVCMB6ZPYWN21APK
              order:
                href: https://api.1global.com/connect/orders/ord_01HRCZZKEXG4QSYNVSD6FHFT0D
              subscription:
                href: https://api.1global.com/connect/subscriptions/subs_01J0BQZ8MZ6C1V8GPYYQC0KZ2S
              cancel:
                href: https://api.1global.com/connect/products/prd_01J7ZWP2Q7C2VJRAPW5D62GQEH/cancel
    ProductCanceledExample:
      summary: Product Canceled
      value:
        id: evt_01J494G6WZAR2E2808Z8M07K4Z
        type: product.canceled
        created_at: '2021-02-01T14:28:17.967Z'
        data:
          product:
            id: prd_01J494WK30DVCMB6ZPYWN21APK
            status: canceled
            created_at: '2024-09-18T11:57:10.029Z'
            expire_at: '2025-09-18T11:57:08.570Z'
            ended_at: '2024-09-19T12:10:40.218Z'
            _embedded:
              product_offering:
                id: prdoff_01HW386JNMYHY5G9VXPNK49ABS
                name: Local Macedonia - 15 Days - 70 GB
                type: addon
                validity:
                  type: duration
                  unit: day
                  unit_count: 15
                  is_recurrent: false
                _embedded:
                  allowances:
                    - type: data
                      unit: bytes
                      unit_count: 70
                      is_unlimited: false
                      _embedded:
                        coverage_area:
                          id: cov_01J7ZWQVSNTKXMEZ77GS81ZG2T
                          name: Macedonia
                          type: local
                          created_at: '2024-09-17T11:44:00.818Z'
                          updated_at: '2024-10-10T11:44:00.000Z'
                          countries:
                            - MK
                          _links:
                            self:
                              href: https://api.1global.com/connect/coverage-areas/cov_01J7ZWQVSNTKXMEZ77GS81ZG2T
                _links:
                  self:
                    href: https://api.1global.com/connect/product-offerings/prdoff_01HW386JNMYHY5G9VXPNK49ABS
              balances:
                - type: limited
                  allowance_type: data
                  unit: bytes
                  initial: 524288000
                  remaining: 123000
                  spent: 524165000
              prices:
                - type: recurring
                  unit_amount: 50
                  recurrence:
                    unit: month
                    unit_count: 1
                  currency: EUR
            _links:
              self:
                href: https://api.1global.com/connect/products/prd_01J494WK30DVCMB6ZPYWN21APK
              order:
                href: https://api.1global.com/connect/orders/ord_01HRCZZKEXG4QSYNVSD6FHFT0D
              subscription:
                href: https://api.1global.com/connect/subscriptions/subs_01J0BQZ8MZ6C1V8GPYYQC0KZ2S
    
    ProductThrottlingAppliedExample:
      summary: Product Throttle Applied Example
      value:
        id: evt_01J494G6WZAR2E2808Z8M07K4Z
        type: product.throttling.applied
        created_at: '2021-02-01T14:28:17.967Z'
        data:
          throttling:
            bandwidth: 1Mbps
            period: daily
            reset_at: '2025-03-04T15:17:00Z'
          product:
            id: prd_01J806F9TNFYTQM3Z4THPTJEVY
            status: active
            created_at: '2024-09-17T14:34:06.037Z'
            started_at: '2024-09-17T14:35:31.559Z'
            expire_at: '2025-09-17T14:34:03.946Z'
            end_at: '2024-10-17T14:35:31.559Z'
            _embedded:
              product_offering:
                id: prdoff_01J7ZWQW25H38MHADHDQ21H28W
                name: Local Germany 1Month 500MB
                type: addon
                validity:
                  type: duration
                  unit: month
                  unit_count: 1
                  is_recurrent: false
                _embedded:
                  allowances:
                    - type: data
                      unit: megabytes
                      unit_count: 500
                      is_unlimited: false
                      _embedded:
                        coverage_area:
                          id: cov_01J7ZWQVSNTKXMEZ77GS81ZG2T
                          name: Germany
                          type: local
                          created_at: '2024-09-17T11:44:00.818Z'
                          updated_at: '2024-09-17T11:44:00.818Z'
                          countries:
                            - DE
                          _links:
                            self:
                              href: https://api.1global.com/connect/coverage-areas/cov_01J7ZWQVSNTKXMEZ77GS81ZG2T
                _links:
                  self:
                    href: https://api.1global.com/connect/product-offerings/prdoff_01J7ZWQW25H38MHADHDQ21H28W
              balances:
                - type: limited
                  allowance_type: data
                  unit: bytes
                  initial: 524288000
                  remaining: 123000
                  spent: 524165000
              prices:
                - type: one_time
                  unit_amount: 0
                  currency: EUR
            _links:
              self:
                href: https://api.1global.com/connect/products/prd_01J806F9TNFYTQM3Z4THPTJEVY
              cancel:
                href: https://api.1global.com/connect/products/prd_01J806F9TNFYTQM3Z4THPTJEVY/cancel
              order:
                href: https://api.1global.com/connect/orders/ord_01J806F7RDT6ERDN47MHPC6AA2
              subscription:
                href: https://api.1global.com/connect/subscriptions/subs_01J806F86A8YJDPDX0DY9ZM7TD

    ListOrders:
      summary: List Orders Example
      value:
        _embedded:
          orders:
            - id: ord_01HV3KWPNRCT870WV3XG41CAT3
              status: completed
              type: activate_subscription
              created_at: '2024-08-02T09:13:28.384Z'
              updated_at: '2024-08-02T09:15:30.544Z'
              completed_at: '2024-08-02T09:20:30.000Z'
              _links:
                self:
                  href: https://api.1global.com/orders/ord_01HV3KWPNRCT870WV3XG41CAT3
                subscriber:
                  href: https://api.1global.com/subscribers/subr_01J494G6WZAR2E2808Z8M07K4Z
            - id: ord_01HV3KWPNRCT870WV3XG41UTG4
              status: failed
              type: topup_subscription
              created_at: '2024-08-02T09:13:28.384Z'
              updated_at: '2024-08-02T09:18:30.544Z'
              _links:
                self:
                  href: https://api.1global.com/orders/ord_01HV3KWPNRCT870WV3XG41UTG4
                subscriber:
                  href: https://api.1global.com/subscribers/subr_01J494G6WZAR2E2808Z8M07K4Z
        _links:
          self:
            href: https://api.1global.com/connect/orders?limit=2
          prev:
            href: https://api.1global.com/connect/orders?cursor=eyJzbyI6eyJkIjoiREVTQyIsInAiOiJleHRlcm5hbElkIn0sInNpZCI6bnVsbCwicyI6bnVsbCwidCI6Ik5FWFQiLCJpZCI6InN1YnNfMDFKQTVESzdEOFBEQ0hTSDI3RjMzUjVXNDYifQ==&limit=2
          next:
            href: https://api.1global.com/connect/orders?cursor=eyJzbyI6eyJkIjoiREVTQyIsInAiOiJleHRlcm5hbElkIn0sInNpZCI6bnVsbCwicyI6bnVsbCwidCI6Ik5FWFQiLCJpZCI6InN1YnNfMDFKQTVESzdEOFBEQ0hTSDI3RjMzUjVXNDYifQ==&limit=2
    GetOrder:
      summary: A Topup Subscription order with status Completed
      value:
        id: ord_01HV3KWPNRCT870WV3XG41CAT3
        status: completed
        type: topup_subscription
        created_at: '2024-08-02T09:13:28.384Z'
        updated_at: '2024-08-02T09:13:30.544Z'
        completed_at: '2024-08-02T09:13:35.122Z'
        _embedded:
          subscription:
            id: subs_01HRCZZWCBXR40JQ6B705952WJ
            status: active
            created_at: '2024-07-11T10:29:42.426Z'
            _embedded:
              sim_profile:
                iccid: '8988211234567890023'
                sim_type: esim
                profile_status: Installed
                matching_id: 5C-ZYXZZ-1R54O94
                smdp_address: rsp.truphone.com
                _embedded:
                  device:
                    uicc:
                      eid: '89049032007208882600182092769530'
              account:
                id: acc_01HRC2T6WK4CMVGFXA2RESTQ97
                _links:
                  self:
                    href: http://api.1global.com/connect/accounts/acc_01HRC2T6WK4CMVGFXA2RESTQ97
            _links:
              self:
                href: https://api.1global.com/subscriptions/subs_01HRCZZWCBXR40JQ6B705952WJ
              qrcode:
                href: https://api.1global.com/qrcode/v1/esim/LPA:1$rsp.truphone.com$5C-ZYXZZ-1R54O94
        _links:
          self:
            href: https://api.1global.com/orders/ord_01HV3KWPNRCT870WV3XG41CAT3
          subscriber:
            href: https://api.1global.com/subscribers/subr_01J494G6WZAR2E2808Z8M07K4Z
    CanceledOrder:
      summary: A canceled Change Subscription plan order
      value:
        id: "ord_01HV3KWPNRCT870WV3XG41CAT3"
        status: "canceled"
        type: "change_subscription_plan"
        created_at: "2024-08-02T09:13:28.384Z"
        updated_at: "2024-08-02T09:13:30.544Z"
        canceled_at: "2024-08-02T09:13:35.122Z"
        _embedded:
          subscription:
            id: "subs_01HRCZZWCBXR40JQ6B705952WJ"
            status: "active"
            created_at: "2024-07-11T10:29:42.426Z"
            _embedded:
              sim_profile:
                iccid: "8988211234567890023"
                sim_type: "esim"
                profile_status: "Installed"
                matching_id: "5C-ZYXZZ-1R54O94"
                smdp_address: "rsp.truphone.com"
                _embedded:
                  device:
                    uicc:
                      eid: "89049032007208882600182092769530"
              account:
                id: acc_01HRC2T6WK4CMVGFXA2RESTQ97
                _links:
                  self:
                    href: http://api.1global.com/connect/accounts/acc_01HRC2T6WK4CMVGFXA2RESTQ97
            _links:
              self:
                href: https://api.1global.com/subscriptions/subs_01HRCZZWCBXR40JQ6B705952WJ
              qrcode:
                href: "https://api.1global.com/qrcode/v1/esim/LPA:1$rsp.truphone.com$5C-ZYXZZ-1R54O94"
        _links:
          self:
            href: https://api.1global.com/orders/ord_01HV3KWPNRCT870WV3XG41CAT3
          subscriber:
            href: https://api.1global.com/subscribers/subr_01J494G6WZAR2E2808Z8M07K4Z
    CreateOrder:
      summary: An Activation Subscription order is Created
      value:
        id: ord_01HV3KWPNRCT870WV3XG41UTG4
        status: accepted
        type: activate_subscription
        created_at: '2024-08-02T09:13:28.384Z'
        _links:
          self:
            href: https://api.1global.com/orders/ord_01HV3KWPNRCT870WV3XG41UTG4
          subscriber:
            href: https://api.1global.com/subscribers/subr_01J494G6WZAR2E2808Z8M07K4Z
    OrderCompletedExample:
      summary: Order Completed
      value:
        id: evt_01J494G6WZAR2E2808Z8M07K4Z
        type: order.completed
        created_at: '2024-08-08T14:28:17.967Z'
        data:
          order:
            id: ord_01HV3KWPNRCT870WV3XG41CAT3
            status: completed
            type: activate_subscription
            created_at: '2024-08-02T09:13:28.384Z'
            updated_at: '2024-08-02T09:13:40.544Z'
            completed_at: '2024-08-02T09:15:30.544Z'
            _embedded:
              subscription:
                id: subs_01HRCZZWCBXR40JQ6B705952WJ
                status: active
                created_at: '2024-07-11T10:29:42.426Z'
                updated_at: '2024-07-11T10:29:42.426Z'
                _embedded:
                  sim_profile:
                    iccid: '8988211234567890023'
                    sim_type: esim
                    profile_status: ready_for_installation
                    matching_id: 5C-ZYXZZ-1R54O94
                    smdp_address: rsp.truphone.com
                    _embedded:
                      device:
                        uicc:
                          eid: '89049032007208882600182092769530'
                  account:
                    id: acc_01HRC2T6WK4CMVGFXA2RESTQ97
                    _links:
                      self:
                        href: http://api.1global.com/connect/accounts/acc_01HRC2T6WK4CMVGFXA2RESTQ97
                _links:
                  self:
                    href: https://api.1global.com/connect/subscriptions/subs_01HRCZZWCBXR40JQ6B705952WJ
                  qrcode:
                    href: https://api.1global.com/connect/qrcode/v1/esim/LPA:1$rsp.truphone.com$5C-ZYXZZ-1R54O94
            _links:
              self:
                href: https://api.1global.com/connect/orders/ord_01HV3KWPNRCT870WV3XG41CAT3
              subscriber:
                href: http://api.1global.com/connect/subscriber/subr_02BX5ZZKBKACTAV9WEVGEMMVRY
    OrderFailedExample:
      summary: Order Failed
      value:
        id: evt_01J494G6WZAR2E2808Z8M07K4Z
        type: order.failed
        created_at: '2024-08-08T14:28:17.967Z'
        data:
          order:
            id: ord_01HV3KWPNRCT870WV3XG41CAT3
            status: failed
            type: activate_subscription
            created_at: '2024-08-02T09:13:28.384Z'
            updated_at: '2024-08-02T09:13:40.544Z'
            completed_at: '2024-08-02T09:15:30.544Z'
            _embedded:
              subscription:
                id: subs_01HRCZZWCBXR40JQ6B705952WJ
                status: active
                created_at: '2024-07-11T10:29:42.426Z'
                updated_at: '2024-07-11T10:29:42.426Z'
                _embedded:
                  sim_profile:
                    iccid: '8988211234567890023'
                    sim_type: esim
                    profile_status: ready_for_installation
                    matching_id: 5C-ZYXZZ-1R54O94
                    smdp_address: rsp.truphone.com
                    _embedded:
                      device:
                        uicc:
                          eid: '89049032007208882600182092769530'
                  account:
                    id: acc_01HRC2T6WK4CMVGFXA2RESTQ97
                    _links:
                      self:
                        href: http://api.1global.com/connect/accounts/acc_01HRC2T6WK4CMVGFXA2RESTQ97
                _links:
                  self:
                    href: https://api.1global.com/connect/subscriptions/subs_01HRCZZWCBXR40JQ6B705952WJ
                  qrcode:
                    href: https://api.1global.com/connect/qrcode/v1/esim/LPA:1$rsp.truphone.com$5C-ZYXZZ-1R54O94
            _links:
              self:
                href: https://api.1global.com/connect/orders/ord_01HV3KWPNRCT870WV3XG41CAT3
              subscriber:
                href: http://api.1global.com/connect/subscriber/subr_02BX5ZZKBKACTAV9WEVGEMMVRY
    OrderCanceledExample:
      summary: Order Canceled
      value:
        id: "evt_01J494G6WZAR2E2808Z8M07K4Z"
        type: "order.canceled"
        created_at: "2024-08-08T14:28:17.967Z"
        data:
          order:
            id: "ord_01HV3KWPNRCT870WV3XG41CAT3"
            status: "canceled"
            type: "change_subscription_plan"
            created_at: "2024-08-02T09:13:28.384Z"
            updated_at: "2024-08-02T09:13:40.544Z"
            canceled_at: "2024-08-02T09:15:30.544Z"
            schedule:
              mode: "end_of_cycle"
              effective_at: "2024-08-10"
            _embedded:
              subscription:
                id: "subs_01HRCZZWCBXR40JQ6B705952WJ"
                status: "active"
                created_at: "2024-07-11T10:29:42.426Z"
                updated_at: "2024-07-11T10:29:42.426Z"
                _embedded:
                  sim_profile:
                    iccid: "8988211234567890023"
                    sim_type: "esim"
                    profile_status: "ready_for_installation"
                    matching_id: "5C-ZYXZZ-1R54O94"
                    smdp_address: "rsp.truphone.com"
                    _embedded:
                      device:
                        uicc:
                          eid: "89049032007208882600182092769530"
                  account:
                    id: acc_01HRC2T6WK4CMVGFXA2RESTQ97
                    _links:
                      self:
                        href: http://api.1global.com/connect/accounts/acc_01HRC2T6WK4CMVGFXA2RESTQ97
                _links:
                  self:
                    href: "https://api.1global.com/connect/subscriptions/subs_01HRCZZWCBXR40JQ6B705952WJ"
                  qrcode:
                    href: "https://api.1global.com/connect/qrcode/v1/esim/LPA:1$rsp.truphone.com$5C-ZYXZZ-1R54O94"
            _links:
              self:
                href: "https://api.1global.com/connect/orders/ord_01HV3KWPNRCT870WV3XG41CAT3"
              subscriber:
                href: "http://api.1global.com/connect/subscriber/subr_02BX5ZZKBKACTAV9WEVGEMMVRY"
    GetProductOffering:
      summary: Product Offering
      value:
        id: prdoff_01J83E2WMQBDBEK70SX0N5RJ1P
        name: Addon - Local Portugal - 1 Day
        created_at: '2024-09-18T20:44:51.223Z'
        updated_at: '2024-09-18T21:34:02.456Z'
        status: active
        type: addon
        availability:
          start_at: '2024-09-18T19:59:56.000Z'
          end_at: '2025-09-18T19:59:56.000Z'
        validity:
          type: duration
          unit: day
          unit_count: 1
          is_recurrent: false
        _embedded:
          allowances:
            - type: data
              unit: gigabytes
              unit_count: 70
              is_unlimited: false
              _embedded:
                coverage_area:
                  id: cov_01J83E2VNKR4GD78MF1R43YWTK
                  name: Portugal
                  type: local
                  created_at: '2024-09-18T20:44:50.227Z'
                  updated_at: '2024-09-18T21:23:10.000Z'
                  countries:
                    - PT
                  _links:
                    self:
                      href: https://api.1global.com/connect/coverage-areas/cov_01J83E2VNKR4GD78MF1R43YWTK
          prices:
            - type: one_time
              unit_amount: 100
              currency: EUR
        _links:
          self:
            href: https://api.1global.com/connect/product-offerings/prdoff_01J83E2WMQBDBEK70SX0N5RJ1P
    GetProductOfferingPlan:
      summary: Product Offering Plan
      value:
        id: prdoff_01J83E2WMQBDBEK70SX0N5RJK2
        name: Plan - Local Portugal - 1 Month Recurring - 50GB
        created_at: '2024-05-18T20:44:51.222Z'
        updated_at: '2024-08-19T12:00:01.000Z'
        status: active
        type: plan
        availability:
          start_at: '2024-09-18T20:59:40.000Z'
          end_at: '2025-09-18T20:59:40.000Z'
        validity:
          type: duration
          unit: month
          unit_count: 1
          is_recurrent: true
        phone_number_country: DE
        _embedded:
          allowances:
            - type: data
              unit: gigabytes
              unit_count: 50
              is_unlimited: false
              _embedded:
                coverage_area:
                  id: cov_01J83E2VNKR4GD78MF1R43YWTK
                  name: Portugal
                  type: local
                  created_at: '2024-09-18T20:44:50.227Z'
                  updated_at: '2024-09-18T21:23:10.000Z'
                  countries:
                    - PT
                  _links:
                    self:
                      href: https://api.1global.com/connect/coverage-areas/cov_01J83E2VNKR4GD78MF1R43YWTK
            - type: voice
              is_unlimited: true
              _embedded:
                coverage_area:
                  id: cov_01J83E2VNKR4GD78MF1R43YWTK
                  name: Portugal
                  type: local
                  created_at: '2024-09-18T20:44:50.227Z'
                  updated_at: '2024-09-18T21:23:10.000Z'
                  countries:
                    - PT
                  _links:
                    self:
                      href: https://api.1global.com/connect/coverage-areas/cov_01J83E2VNKR4GD78MF1R43YWTK
          prices:
            - type: one_time
              unit_amount: 100
              currency: EUR
            - type: recurring
              unit_amount: 10
              currency: EUR
              recurrence:
                unit: month
                unit_count: 1
        _links:
          self:
            href: https://api.1global.com/connect/product-offerings/prdoff_01J83E2WMQBDBEK70SX0N5RJK2
    ListProductOfferings:
      summary: List Product Offerings Example
      value:
        _embedded:
          product_offerings:
            - id: prdoff_01J83E2WMQBDBEK70SX0N5RJ1P
              name: Local Portugal - 1 Day
              created_at: '2024-09-18T20:44:51.223Z'
              updated_at: '2024-09-18T21:50:51.233Z'
              status: active
              type: addon
              availability:
                start_at: '2024-09-18T19:59:56.000Z'
                end_at: '2025-09-18T19:59:56.000Z'
              validity:
                type: duration
                unit: month
                unit_count: 1
                is_recurrent: false
              _embedded:
                allowances:
                  - type: data
                    unit: gigabytes
                    unit_count: 100
                    is_unlimited: false
                    _embedded:
                      coverage_area:
                        id: cov_01J83E2VNKR4GD78MF1R43YWTK
                        name: Portugal
                        type: local
                        created_at: '2024-09-18T20:44:50.227Z'
                        updated_at: '2024-09-18T20:44:50.227Z'
                        countries:
                          - PT
                        _links:
                          self:
                            href: https://api.1global.com/connect/coverage-areas/cov_01J83E2VNKR4GD78MF1R43YWTK
                prices:
                  - type: recurring
                    unit_amount: 50
                    currency: EUR
                    recurrence:
                      unit: month
                      unit_count: 3
              _links:
                self:
                  href: https://api.1global.com/connect/product-offerings/prdoff_01J83E2WMQBDBEK70SX0N5RJ1P
            - id: prdoff_01J83E2WMQBDBEK70SX0N5R4GL
              name: Local Spain - 1 Day
              created_at: '2024-09-18T20:44:51.223Z'
              updated_at: '2024-09-24T08:00:34.123Z'
              status: active
              type: addon
              availability:
                start_at: '2024-09-18T19:59:56.000Z'
                end_at: '2025-09-18T19:59:56.000Z'
              validity:
                type: duration
                unit: month
                unit_count: 1
                is_recurrent: false
              _embedded:
                allowances:
                  - type: data
                    unit: gigabytes
                    unit_count: 80
                    is_unlimited: false
                    _embedded:
                      coverage_area:
                        id: cov_01J83E2VNKR4GD78MF1R43YIW3
                        name: Spain
                        type: local
                        created_at: '2024-01-14T20:44:50.098Z'
                        countries:
                          - ES
                        _links:
                          self:
                            href: https://api.1global.com/connect/coverage-areas/cov_01J83E2VNKR4GD78MF1R43YIW3
                prices:
                  - type: one_time
                    unit_amount: 100
                    currency: EUR
              _links:
                self:
                  href: https://api.1global.com/connect/product-offerings/prdoff_01J83E2WMQBDBEK70SX0N5R4GL
        _links:
          self:
            href: https://api.1global.com/connect/product-offerings?limit=2
          prev:
            href: https://api.1global.com/connect/product-offerings?cursor=eyJzbyI6eyJkIjoiREVTQyIsInAiOiJleHRlcm5hbElkIn0sInNpZCI6bnVsbCwicyI6bnVsbCwidCI6Ik5FWFQiLCJpZCI6InN1YnNfMDFKQTVESzdEOFBEQ0hTSDI3RjMzUjVXNDYifQ==&limit=2
          next:
            href: https://api.1global.com/connect/product-offerings?cursor=eyJzbyI6eyJkIjoiREVTQyIsInAiOiJleHRlcm5hbElkIn0sInNpZCI6bnVsbCwicyI6bnVsbCwidCI6Ik5FWFQiLCJpZCI6InN1YnNfMDFKQTVESzdEOFBEQ0hTSDI3RjMzUjVXNDYifQ==&limit=2
    ListCoverageAreas:
      summary: List Coverage Areas
      value:
        _embedded:
          coverage_areas:
            - id: cov_01J83E2VNKR4GD78MF1R43YWTK
              name: Portugal
              type: local
              created_at: '2024-09-18T20:44:50.227Z'
              updated_at: '2024-09-20T12:42:12.987Z'
              countries:
                - PT
              _links:
                self:
                  href: https://api.1global.com/connect/coverage-areas/cov_01J83E2VNKR4GD78MF1R43YWTK
            - id: cov_01J83E2VNKR4GD78MF1R43YIW3
              name: Spain
              type: local
              created_at: '2024-01-14T20:44:50.098Z'
              updated_at: '2024-04-23T01:23:10.234Z'
              countries:
                - ES
              _links:
                self:
                  href: https://api.1global.com/connect/coverage-areas/cov_01J83E2VNKR4GD78MF1R43YIW3
        _links:
          self:
            href: https://api.1global.com/connect/coverage-areas?limit=2
          prev:
            href: https://api.1global.com/connect/coverage-areas?cursor=eyJzbyI6eyJkIjoiREVTQyIsInAiOiJleHRlcm5hbElkIn0sInNpZCI6bnVsbCwicyI6bnVsbCwidCI6Ik5FWFQiLCJpZCI6InN1YnNfMDFKQTVESzdEOFBEQ0hTSDI3RjMzUjVXNDYifQ==&limit=2
          next:
            href: https://api.1global.com/connect/coverage-areas?cursor=eyJzbyI6eyJkIjoiREVTQyIsInAiOiJleHRlcm5hbElkIn0sInNpZCI6bnVsbCwicyI6bnVsbCwidCI6Ik5FWFQiLCJpZCI6InN1YnNfMDFKQTVESzdEOFBEQ0hTSDI3RjMzUjVXNDYifQ==&limit=2
    CoverageAreaResponseExternal:
      summary: External Client Coverage Area Response - Local Portugal
      value:
        id: cov_01BX5ZZKBKACTAV9WEVGEMMVRY
        name: Local pt
        type: local
        created_at: '2024-02-01T14:28:17.967Z'
        updated_at: '2024-03-01T15:28:00.127Z'
        countries:
          - PT
        _links:
          self:
            href: https://api.1global.com/connect/coverage-areas/cov_01BX5ZZKBKACTAV9WEVGEMMVRY
    EventSubscriptionActive:
      summary: Event Subscription Active
      value:
        id: evt_01J494G6WZAR2E2808Z8M07K4Z
        type: subscription.active
        created_at: '2021-02-01T14:28:17.967Z'
        data:
          subscription:
            id: subs_01BX5ZZKBKACTAV9WEVGEMMVRY
            status: active
            created_at: '2023-01-01T00:00:00.100Z'
            updated_at: '2023-05-21T00:00:00.500Z'
            _embedded:
              sim_profile:
                iccid: '8988211234567890123'
                sim_type: esim
                profile_status: ready_for_installation
                matching_id: 5C-ZYXZZ-1R54O94
                smdp_address: rsp.truphone.com
                _embedded:
                  device:
                    uicc:
                      eid: '89049032004008882600018948798950'
              active_phone_numbers:
                - id: pn_01BX5ZZKBKACTAV9WEVGEMUIJ6
                  status: active
                  created_at: '2024-01-01T00:00:00.100Z'
                  updated_at: '2024-05-21T00:00:00.500Z'
                  msisdn: '+4912984900817'
                  country: DE
                  is_primary: true
                  _links:
                    self:
                      href: https://api.1global.com/connect/phone-numbers/pn_01BX5ZZKBKACTAV9WEVGEMUIJ6
                    enable-porting-opt-in:
                      href: https://api.1global.com/connect/phone-numbers/pn_01BX5ZZKBKACTAV9WEVGEMUIJ6/enable-porting-opt-in
                    disable-porting-opt-in:
                      href: https://api.1global.com/connect/phone-numbers/pn_01BX5ZZKBKACTAV9WEVGEMUIJ6/disable-porting-opt-in
              account:
                id: acc_01HRC2T6WK4CMVGFXA2RESTQ97
                _links:
                  self:
                    href: http://api.1global.com/connect/accounts/acc_01HRC2T6WK4CMVGFXA2RESTQ97
            _links:
              self:
                href: http://api.1global.com/connect/subscriptions/subs_01BX5ZZKBKACTAV9WEVGEMMVRY
              subscriber:
                href: http://api.1global.com/connect/subscriber/subr_02BX5ZZKBKACTAV9WEVGEMMVRY
              products:
                href: http://api.1global.com/connect/products?subscription=subs_01BX5ZZKBKACTAV9WEVGEMMVRY
              qrcode:
                href: http://api.1global.com/qrcode/v1/esim/LPA:1$rsp.truphone.com$5C-ZYXZZ-1R54O94
              grace:
                href: http://api.1global.com/connect/subscriptions/subs_01BX5ZZKBKACTAV9WEVGEMMVRY/grace
              suspend:
                href: http://api.1global.com/connect/subscriptions/subs_01BX5ZZKBKACTAV9WEVGEMMVRY/suspend
              deactivate:
                href: http://api.1global.com/connect/subscriptions/subs_01BX5ZZKBKACTAV9WEVGEMMVRY/deactivate
              cancel:
                href: http://api.1global.com/connect/subscriptions/subs_01BX5ZZKBKACTAV9WEVGEMMVRY/cancel
    EventSubscriptionGrace:
      summary: Event Subscription Grace
      value:
        id: evt_01J494G6WZAR2E2808Z8M07K4Z
        type: subscription.grace
        created_at: '2021-02-01T14:28:17.967Z'
        data:
          subscription:
            id: subs_01BX5ZZKBKACTAV9WEVGEMMVRY
            status: grace
            created_at: '2023-01-01T00:00:00.100Z'
            updated_at: '2023-05-21T00:00:00.500Z'
            _embedded:
              sim_profile:
                iccid: '8988211234567890123'
                sim_type: esim
                profile_status: installed
                matching_id: 5C-ZYXZZ-1R54O94
                smdp_address: rsp.truphone.com
                _embedded:
                  device:
                    uicc:
                      eid: '89049032004008882600018948798950'
              active_phone_numbers:
                - id: pn_01BX5ZZKBKACTAV9WEVGEMUIJ6
                  status: active
                  created_at: '2024-01-01T00:00:00.100Z'
                  updated_at: '2024-05-21T00:00:00.500Z'
                  msisdn: '+4912984900817'
                  country: DE
                  is_primary: true
                  _links:
                    self:
                      href: https://api.1global.com/connect/phone-numbers/pn_01BX5ZZKBKACTAV9WEVGEMUIJ6
                    enable-porting-opt-in:
                      href: https://api.1global.com/connect/phone-numbers/pn_01BX5ZZKBKACTAV9WEVGEMUIJ6/enable-porting-opt-in
                    disable-porting-opt-in:
                      href: https://api.1global.com/connect/phone-numbers/pn_01BX5ZZKBKACTAV9WEVGEMUIJ6/disable-porting-opt-in
              account:
                id: acc_01HRC2T6WK4CMVGFXA2RESTQ97
                _links:
                  self:
                    href: http://api.1global.com/connect/accounts/acc_01HRC2T6WK4CMVGFXA2RESTQ97
            _links:
              self:
                href: http://api.1global.com/connect/subscriptions/subs_01BX5ZZKBKACTAV9WEVGEMMVRY
              subscriber:
                href: http://api.1global.com/connect/subscriber/subr_02BX5ZZKBKACTAV9WEVGEMMVRY
              products:
                href: http://api.1global.com/connect/products?subscription=subs_01BX5ZZKBKACTAV9WEVGEMMVRY
              qrcode:
                href: http://api.1global.com/qrcode/v1/esim/LPA:1$rsp.truphone.com$5C-ZYXZZ-1R54O94
              suspend:
                href: http://api.1global.com/connect/subscriptions/subs_01BX5ZZKBKACTAV9WEVGEMMVRY/suspend
              cancel:
                href: http://api.1global.com/connect/subscriptions/subs_01BX5ZZKBKACTAV9WEVGEMMVRY/cancel
    EventSubscriptionSuspended:
      summary: Event Subscription Suspended
      value:
        id: evt_01J494G6WZAR2E2808Z8M07K4Z
        type: subscription.suspended
        created_at: '2021-02-01T14:28:17.967Z'
        data:
          subscription:
            id: subs_01BX5ZZKBKACTAV9WEVGEMMVRY
            status: suspended
            created_at: '2023-01-01T00:00:00.100Z'
            updated_at: '2023-05-21T00:00:00.500Z'
            _embedded:
              sim_profile:
                iccid: '8988211234567890123'
                sim_type: esim
                profile_status: installed
                matching_id: 5C-ZYXZZ-1R54O94
                smdp_address: rsp.truphone.com
                _embedded:
                  device:
                    uicc:
                      eid: '89049032004008882600018948798950'
              active_phone_numbers:
                - id: pn_01BX5ZZKBKACTAV9WEVGEMUIJ6
                  status: active
                  created_at: '2024-01-01T00:00:00.100Z'
                  updated_at: '2024-05-21T00:00:00.500Z'
                  msisdn: '+4912984900817'
                  country: DE
                  is_primary: true
                  _links:
                    self:
                      href: https://api.1global.com/connect/phone-numbers/pn_01BX5ZZKBKACTAV9WEVGEMUIJ6
                    enable-porting-opt-in:
                      href: https://api.1global.com/connect/phone-numbers/pn_01BX5ZZKBKACTAV9WEVGEMUIJ6/enable-porting-opt-in
                    disable-porting-opt-in:
                      href: https://api.1global.com/connect/phone-numbers/pn_01BX5ZZKBKACTAV9WEVGEMUIJ6/disable-porting-opt-in
              account:
                id: acc_01HRC2T6WK4CMVGFXA2RESTQ97
                _links:
                  self:
                    href: http://api.1global.com/connect/accounts/acc_01HRC2T6WK4CMVGFXA2RESTQ97
            _links:
              self:
                href: http://api.1global.com/connect/subscriptions/subs_01BX5ZZKBKACTAV9WEVGEMMVRY
              subscriber:
                href: http://api.1global.com/connect/subscriber/subr_02BX5ZZKBKACTAV9WEVGEMMVRY
              products:
                href: http://api.1global.com/connect/products?subscription=subs_01BX5ZZKBKACTAV9WEVGEMMVRY
              qrcode:
                href: http://api.1global.com/qrcode/v1/esim/LPA:1$rsp.truphone.com$5C-ZYXZZ-1R54O94
              cancel:
                href: http://api.1global.com/connect/subscriptions/subs_01BX5ZZKBKACTAV9WEVGEMMVRY/cancel
    EventSubscriptionTerminated:
      summary: Event Subscription Terminated
      value:
        id: evt_01J494G6WZAR2E2808Z8M07K4Z
        type: subscription.terminated
        created_at: '2021-02-01T14:28:17.967Z'
        data:
          subscription:
            id: subs_01BX5ZZKBKACTAV9WEVGEMMVRY
            status: terminated
            created_at: '2023-01-01T00:00:00Z'
            updated_at: '2023-05-21T00:00:00Z'
            _embedded:
              sim_profile:
                iccid: '8988211234567890123'
                sim_type: esim
                profile_status: ready_for_installation
                matching_id: 5C-ZYXZZ-1R54O94
                smdp_address: rsp.truphone.com
                _embedded:
                  device:
                    uicc:
                      eid: '89049032004008882600018948798950'
              account:
                id: acc_01HRC2T6WK4CMVGFXA2RESTQ97
                _links:
                  self:
                    href: http://api.1global.com/connect/accounts/acc_01HRC2T6WK4CMVGFXA2RESTQ97
            _links:
              self:
                href: http://api.1global.com/connect/subscriptions/subs_01BX5ZZKBKACTAV9WEVGEMMVRY
              subscriber:
                href: http://api.1global.com/connect/subscriber/subr_02BX5ZZKBKACTAV9WEVGEMMVRY
              products:
                href: http://api.1global.com/connect/products?subscription=subs_01BX5ZZKBKACTAV9WEVGEMMVRY
    EventSubscriptionDeactivated:
      summary: Event Subscription Deactivated
      value:
        id: evt_01J494G6WZAR2E2808Z8M07K4Z
        type: subscription.deactivated
        created_at: '2021-02-01T14:28:17.967Z'
        data:
          subscription:
            id: subs_01BX5ZZKBKACTAV9WEVGEMMVRY
            status: deactivated
            created_at: '2023-01-01T00:00:00.100Z'
            updated_at: '2023-05-21T00:00:00.500Z'
            _embedded:
              sim_profile:
                iccid: '8988211234567890123'
                sim_type: esim
                profile_status: installed
                matching_id: 5C-ZYXZZ-1R54O94
                smdp_address: rsp.truphone.com
                _embedded:
                  device:
                    uicc:
                      eid: '89049032004008882600018948798950'
              active_phone_numbers:
                - id: pn_01BX5ZZKBKACTAV9WEVGEMUIJ6
                  status: active
                  created_at: '2024-01-01T00:00:00.100Z'
                  updated_at: '2024-05-21T00:00:00.500Z'
                  msisdn: '+49112984900817'
                  country: DE
                  is_primary: true
                  _links:
                    self:
                      href: https://api.1global.com/connect/phone-numbers/pn_01BX5ZZKBKACTAV9WEVGEMUIJ6
                    enable-porting-opt-in:
                      href: https://api.1global.com/connect/phone-numbers/pn_01BX5ZZKBKACTAV9WEVGEMUIJ6/enable-porting-opt-in
                    disable-porting-opt-in:
                      href: https://api.1global.com/connect/phone-numbers/pn_01BX5ZZKBKACTAV9WEVGEMUIJ6/disable-porting-opt-in
              account:
                id: acc_01HRC2T6WK4CMVGFXA2RESTQ97
                _links:
                  self:
                    href: http://api.1global.com/connect/accounts/acc_01HRC2T6WK4CMVGFXA2RESTQ97
            _links:
              self:
                href: http://api.1global.com/connect/subscriptions/subs_01BX5ZZKBKACTAV9WEVGEMMVRY
              subscriber:
                href: http://api.1global.com/connect/subscriber/subr_02BX5ZZKBKACTAV9WEVGEMMVRY
              products:
                href: http://api.1global.com/connect/products?subscription=subs_01BX5ZZKBKACTAV9WEVGEMMVRY
              resume:
                href: http://api.1global.com/connect/subscriptions/subs_01BX5ZZKBKACTAV9WEVGEMMVRY/resume
              cancel:
                href: http://api.1global.com/connect/subscriptions/subs_01BX5ZZKBKACTAV9WEVGEMMVRY/cancel
    EventSubscriptionCanceled:
      summary: Event Subscription Canceled
      value:
        id: evt_01J494G6WZAR2E2808Z8M07K4Z
        type: subscription.canceled
        created_at: '2021-02-01T14:28:17.967Z'
        data:
          subscription:
            id: subs_01BX5ZZKBKACTAV9WEVGEMMVRY
            status: canceled
            created_at: '2023-01-01T00:00:00.100Z'
            updated_at: '2023-05-21T00:00:00.500Z'
            _embedded:
              sim_profile:
                iccid: '8988211234567890123'
                sim_type: esim
                profile_status: installed
                matching_id: 5C-ZYXZZ-1R54O94
                smdp_address: rsp.truphone.com
                _embedded:
                  device:
                    uicc:
                      eid: '89049032004008882600018948798950'
              active_phone_numbers:
                - id: pn_01BX5ZZKBKACTAV9WEVGEMUIJ6
                  status: active
                  created_at: '2024-01-01T00:00:00.100Z'
                  updated_at: '2024-05-21T00:00:00.500Z'
                  msisdn: '+4912984900817'
                  country: DE
                  is_primary: true
                  _links:
                    self:
                      href: https://api.1global.com/connect/phone-numbers/pn_01BX5ZZKBKACTAV9WEVGEMUIJ6
                    enable-porting-opt-in:
                      href: https://api.1global.com/connect/phone-numbers/pn_01BX5ZZKBKACTAV9WEVGEMUIJ6/enable-porting-opt-in
                    disable-porting-opt-in:
                      href: https://api.1global.com/connect/phone-numbers/pn_01BX5ZZKBKACTAV9WEVGEMUIJ6/disable-porting-opt-in
              account:
                id: acc_01HRC2T6WK4CMVGFXA2RESTQ97
                _links:
                  self:
                    href: http://api.1global.com/connect/accounts/acc_01HRC2T6WK4CMVGFXA2RESTQ97
            _links:
              self:
                href: http://api.1global.com/connect/subscriptions/subs_01BX5ZZKBKACTAV9WEVGEMMVRY
              subscriber:
                href: http://api.1global.com/connect/subscriber/subr_02BX5ZZKBKACTAV9WEVGEMMVRY
              products:
                href: http://api.1global.com/connect/products?subscription=subs_01BX5ZZKBKACTAV9WEVGEMMVRY
    ProductCatalogResponse:
      summary: Product Catalog
      value:
        id: prdcat_01BX5ZZKBKACTAV9WEVGEMMVRY
        name: Global Product Catalog
        created_at: '2021-02-01T14:28:17.967Z'
        updated_at: '2022-02-05T08:23:14.345Z'
        _links:
          self:
            href: https://api.1global.com/connect/product-catalogs/prdcat_01BX5ZZKBKACTAV9WEVGEMMVRY
          product-offerings:
            href: https://api.1global.com/connect/product-catalogs/prdcat_01BX5ZZKBKACTAV9WEVGEMMVRY/product-offerings
    CreateSubscriberUS:
      summary: Subscriber with address in US
      value:
        account_id: acc_01HRC2T6WK4CMVGFXA2RESTQ97
        first_name: John
        last_name: Doe
        email: john.doe@dummy.com
        address:
          line1: 123 Main St
          line2: Apt 4B
          city: Los Angeles
          country: US
          state: CA
          postal_code: '90001'
        birth_date: '2074-04-12'
        locale: en-GB
    CreateSubscriberEU:
      summary: Subscriber with address in Portugal (no state)
      value:
        account_id: acc_01HRC2T6WK4CMVGFXA2RESTQ97
        first_name: Maria
        last_name: Silva
        email: maria.silva@dummy.com
        address:
          line1: Avenida da Boavista 345
          line2: 3 Esq
          city: Porto
          country: PT
          postal_code: 1000-001
        birth_date: '2055-04-03'
        locale: en-GB
    UpdateSubscriberUS:
      summary: Subscriber with address in US
      value:
        first_name: John
        last_name: Doe
        email: john.doe@dummy.com
        address:
          line1: 123 Main St
          line2: Apt 4B
          city: Los Angeles
          country: US
          state: CA
          postal_code: '90001'
        birth_date: '2074-04-12'
        locale: en-GB
    UpdateSubscriberEU:
      summary: Subscriber with address in Portugal (no state)
      value:
        first_name: Maria
        last_name: Silva
        email: maria.silva@dummy.com
        address:
          line1: Avenida da Boavista 345
          line2: 3 Esq
          city: Porto
          country: PT
          postal_code: 1000-001
        birth_date: '2055-04-03'
        locale: en-GB
    GetSubscriberUS:
      summary: Subscriber with address in US (California)
      value:
        id: subr_01HRC2T6WK4CMVGFXA2RESTQ97
        created_at: '2023-01-01T00:00:00Z'
        updated_at: '2023-05-21T00:00:00Z'
        first_name: John
        last_name: Doe
        email: john.doe@dummy.com
        locale: en-GB
        address:
          line1: 123 Main St
          line2: Apt 4B
          city: Los Angeles
          country: US
          state: CA
          postal_code: '90001'
        birth_date: '2073-06-01'
        _embedded:
          account:
            id: acc_01HRC2T6WK4CMVGFXA2RESTQ97
            _links:
              self:
                href: http://api.1global.com/connect/accounts/acc_01HRC2T6WK4CMVGFXA2RESTQ97
        _links:
          self:
            href: http://api.1global.com/connect/subscribers/subr_01HRC2T6WK4CMVGFXA2RESTQ97
          subscriptions:
            href: http://api.1global.com/connect/subscriptions?subscriber-id=subr_01HRC2T6WK4CMVGFXA2RESTQ97
    GetSubscriberEU:
      summary: Subscriber with address in Portugal (no state)
      value:
        id: subr_02HRC2T6WK4CMVGFXA2RESTQ98
        created_at: '2023-02-01T00:00:00Z'
        updated_at: '2023-06-21T00:00:00Z'
        first_name: Maria
        last_name: Silva
        email: maria.silva@dummy.com
        address:
          line1: Avenida da Boavista 345
          line2: 3 Esq
          city: Porto
          country: PT
          postal_code: 1000-001
        birth_date: '2077-04-23'
        locale: en-GB
        _embedded:
          account:
            id: acc_01HRC2T6WK4CMVGFXA2RESTQ97
            _links:
              self:
                href: http://api.1global.com/connect/accounts/acc_01HRC2T6WK4CMVGFXA2RESTQ97
        _links:
          self:
            href: http://api.1global.com/connect/subscribers/subr_02HRC2T6WK4CMVGFXA2RESTQ98
          subscriptions:
            href: http://api.1global.com/connect/subscriptions?subscriber-id=subr_02HRC2T6WK4CMVGFXA2RESTQ98
    ListSubscribers:
      summary: List Subscribers
      value:
        _embedded:
          subscribers:
            - id: subr_01HRC2T6WK4CMVGFXA2RESTQ97
              created_at: '2023-01-01T00:00:00Z'
              updated_at: '2023-05-21T00:00:00Z'
              first_name: John
              last_name: Doe
              email: john.doe@dummy.com
              address:
                line1: 123 Main St
                line2: Apt 4B
                city: Los Angeles
                country: US
                state: CA
                postal_code: '90001'
              locale: en-GB
              _embedded:
                account:
                  id: acc_01HRC2T6WK4CMVGFXA2RESTQ97
                  _links:
                    self:
                      href: http://api.1global.com/connect/accounts/acc_01HRC2T6WK4CMVGFXA2RESTQ97
              _links:
                self:
                  href: http://api.1global.com/connect/subscriber/subr_01HRC2T6WK4CMVGFXA2RESTQ97
                subscriptions:
                  href: http://api.1global.com/connect/subscriptions?subscriber-id=subr_01HRC2T6WK4CMVGFXA2RESTQ97
            - id: subr_02HRC2T6WK4CMVGFXA2RESTQ98
              created_at: '2023-02-01T00:00:00Z'
              updated_at: '2023-06-21T00:00:00Z'
              first_name: Maria
              last_name: Silva
              email: maria.silva@dummy.com
              address:
                line1: Avenida da Boavista 345
                line2: 3 Esq
                city: Porto
                country: PT
                postal_code: 1000-001
              birth_date: '2077-04-23'
              locale: en-GB
              _embedded:
                account:
                  id: acc_01HRC2T6WK4CMVGFXA2RESTQ97
                  _links:
                    self:
                      href: http://api.1global.com/connect/accounts/acc_01HRC2T6WK4CMVGFXA2RESTQ97
              _links:
                self:
                  href: http://api.1global.com/connect/subscribers/subr_02HRC2T6WK4CMVGFXA2RESTQ98
                subscriptions:
                  href: http://api.1global.com/connect/subscriptions?subscriber-id=subr_02HRC2T6WK4CMVGFXA2RESTQ98
        _links:
          self:
            href: http://api.1global.com/connect/subscribers?limit=2
          prev:
            href: http://api.1global.com/connect/subscribers?cursor=eyJzbyI6eyJkIjoiREVTQyIsInAiOiJleHRlcm5hbElkIn0sInNpZCI6bnVsbCwicyI6bnVsbCwidCI6Ik5FWFQiLCJpZCI6InN1YnNfMDFKQTVESzdEOFBEQ0hTSDI3RjMzUjVXNDYifQ==&limit=20
          next:
            href: http://api.1global.com/connect/subscribers?cursor=eyJzbyI6eyJkIjoiREVTQyIsInAiOiJleHRlcm5hbElkIn0sInNpZCI6bnVsbCwicyI6bnVsbCwidCI6Ik5FWFQiLCJpZCI6InN1YnNfMDFKQTVESzdEOFBEQ0hTSDI3RjMzUjVXNDYifQ==&limit=20
    ListSubscriptionsResponse:
      summary: Successfully retrieved the list of Subscriptions.
      value:
        _embedded:
          subscriptions:
            - id: subs_01BX5ZZKBKACTAV9WEVGEMMVRY
              status: terminated
              created_at: '2023-01-01T00:00:00.100Z'
              updated_at: '2023-05-21T00:00:00.500Z'
              _embedded:
                sim_profile:
                  iccid: '8999999999990242084'
                  sim_type: esim
                account:
                  id: acc_01HRC2T6WK4CMVGFXA2RESTQ97
                  _links:
                    self:
                      href: http://api.1global.com/connect/accounts/acc_01HRC2T6WK4CMVGFXA2RESTQ97
              _links:
                self:
                  href: http://api.1global.com/connect/subscriptions/subs_01BX5ZZKBKACTAV9WEVGEMMVRY
            - id: subs_02BX5ZZKBKACTAV9WEVGEMMVZS
              status: active
              created_at: '2022-01-01T00:00:00.100Z'
              updated_at: '2022-05-21T00:00:00.500Z'
              _embedded:
                sim_profile:
                  iccid: '8999999999990242084'
                  sim_type: esim
                account:
                  id: acc_01HRC2T6WK4CMVGFXA2RESTQ97
                  _links:
                    self:
                      href: http://api.1global.com/connect/accounts/acc_01HRC2T6WK4CMVGFXA2RESTQ97
              _links:
                self:
                  href: http://api.1global.com/connect/subscriptions/subs_02BX5ZZKBKACTAV9WEVGEMMVZS
        _links:
          self:
            href: http://api.1global.com/connect/subscriptions
          prev:
            href: http://api.1global.com/connect/subscriptions?cursor=eyJzbyI6eyJkIjoiREVTQyIsInAiOiJleHRlcm5hbElkIn0sInNpZCI6bnVsbCwicyI6bnVsbCwidCI6Ik5FWFQiLCJpZCI6InN1YnNfMDFKQTVESzdEOFBEQ0hTSDI3RjMzUjVXNDYifQ==&limit=10
          next:
            href: http://api.1global.com/connect/subscriptions?cursor=eyJzbyI6eyJkIjoiREVTQyIsInAiOiJleHRlcm5hbElkIn0sInNpZCI6bnVsbCwicyI6bnVsbCwidCI6Ik5FWFQiLCJpZCI6InN1YnNfMDFKQTVESzdEOFBEQ0hTSDI3RjMzUjVXNDYifQ==&limit=10
    PhoneNumbersListResponse:
      summary: Phone Numbers list
      value:
        _embedded:
          phone_numbers:
            - id: pn_01BX5ZZKBKACTAV9WEVGEMUIJ6
              status: active
              created_at: '2024-01-01T00:00:00.100Z'
              updated_at: '2024-05-21T00:00:00.500Z'
              msisdn: '+4912984900817'
              country: DE
              is_primary: true
              _links:
                self:
                  href: https://api.1global.com/connect/phone-numbers/pn_01BX5ZZKBKACTAV9WEVGEMUIJ6
                disable-porting-opt-in:
                  href: https://api.1global.com/connect/phone-numbers/pn_01BX5ZZKBKACTAV9WEVGEMUIJ6/disable-porting-opt-in
                subscription:
                  href: https://api.1global.com/connect/subscriptions/subs_02BX5ZZKBKACTAV9WEVGEMMVZS
            - id: pn_01BX5ZZKBKACTAV9WEVGEMUIJ6
              status: terminated
              created_at: '2023-01-01T00:00:00.100Z'
              updated_at: '2023-05-21T00:00:00.500Z'
              msisdn: '+4912984900817'
              country: DE
              is_primary: true
              _links:
                self:
                  href: https://api.1global.com/connect/phone-numbers/pn_01BX5ZZKBKACTAV9WEVGEMUIJ6
                subscription:
                  href: https://api.1global.com/connect/subscriptions/subs_02BX5ZZKBKACTAV9WEVGEMMVZS
        _links:
          self:
            href: http://api.1global.com/connect/phone-numbers
          prev:
            href: http://api.1global.com/connect/phone-numbers?cursor=eyJzbyI6eyJkIjoiREVTQyIsInAiOiJleHRlcm5hbElkIn0sInNpZCI6bnVsbCwicyI6bnVsbCwidCI6Ik5FWFQiLCJpZCI6InN1YnNfMDFKQTVESzdEOFBEQ0hTSDI3RjMzUjVXNDYifQ==&limit=10
          next:
            href: http://api.1global.com/connect/phone-numbers?cursor=eyJzbyI6eyJkIjoiREVTQyIsInAiOiJleHRlcm5hbElkIn0sInNpZCI6bnVsbCwicyI6bnVsbCwidCI6Ik5FWFQiLCJpZCI6InN1YnNfMDFKQTVESzdEOFBEQ0hTSDI3RjMzUjVXNDYifQ==&limit=10
    GetPhoneNumberResponseOptInEnabled:
      summary: Phone Number - active (opt in enabled)
      value:
        id: pn_01BX5ZZKBKACTAV9WEVGEMUIJ6
        status: active
        created_at: '2024-01-01T00:00:00.100Z'
        updated_at: '2024-05-21T00:00:00.500Z'
        msisdn: '+4912984900817'
        country: DE
        is_primary: true
        porting_opt_in:
          enabled: true
          expires_at: '2025-01-03T00:00:00.500Z'
        _links:
          self:
            href: https://api.1global.com/connect/phone-numbers/pn_01BX5ZZKBKACTAV9WEVGEMUIJ6
          disable-porting-opt-in:
            href: https://api.1global.com/connect/phone-numbers/pn_01BX5ZZKBKACTAV9WEVGEMUIJ6/disable-porting-opt-in
          subscription:
            href: https://api.1global.com/connect/subscriptions/subs_02BX5ZZKBKACTAV9WEVGEMMVZS
    GetPhoneNumberResponseOptInDisabled:
      summary: Phone Number - active (opt in disabled)
      value:
        id: pn_01BX5ZZKBKACTAV9WEVGEMUIJ6
        status: active
        created_at: '2024-01-01T00:00:00.100Z'
        updated_at: '2024-05-21T00:00:00.500Z'
        msisdn: '+4912984900817'
        country: DE
        is_primary: true
        porting_opt_in:
          enabled: false
        _links:
          self:
            href: https://api.1global.com/connect/phone-numbers/pn_01BX5ZZKBKACTAV9WEVGEMUIJ6
          enable-porting-opt-in:
            href: https://api.1global.com/connect/phone-numbers/pn_01BX5ZZKBKACTAV9WEVGEMUIJ6/enable-porting-opt-in
          subscription:
            href: https://api.1global.com/connect/subscriptions/subs_02BX5ZZKBKACTAV9WEVGEMMVZS
    GetPhoneNumberResponseTerminated:
      summary: Phone Number - terminated
      value:
        id: pn_01BX5ZZKBKACTAV9WEVGEMUIJ6
        status: terminated
        created_at: '2024-01-01T00:00:00.100Z'
        updated_at: '2024-05-21T00:00:00.500Z'
        port_out_expires_at: '2024-08-21T00:00:00.500Z'
        msisdn: '+4912984900817'
        country: DE
        is_primary: true
        porting_opt_in:
          enabled: true
          expires_at: '2025-01-03T00:00:00.500Z'
        _links:
          self:
            href: https://api.1global.com/connect/phone-numbers/pn_01BX5ZZKBKACTAV9WEVGEMUIJ6
          disable-porting-opt-in:
            href: https://api.1global.com/connect/phone-numbers/pn_01BX5ZZKBKACTAV9WEVGEMUIJ6/disable-porting-opt-in
          subscription:
            href: https://api.1global.com/connect/subscriptions/subs_02BX5ZZKBKACTAV9WEVGEMMVZS
    GetPhoneNumberResponsePortedOut:
      summary: Phone Number - ported out
      value:
        id: pn_01BX5ZZKBKACTAV9WEVGEMUIJ6
        status: ported_out
        created_at: '2024-01-01T00:00:00.100Z'
        updated_at: '2024-05-21T00:00:00.500Z'
        msisdn: '+4912984900817'
        country: DE
        is_primary: true
        _links:
          self:
            href: https://api.1global.com/connect/phone-numbers/pn_01BX5ZZKBKACTAV9WEVGEMUIJ6
          subscription:
            href: https://api.1global.com/connect/subscriptions/subs_02BX5ZZKBKACTAV9WEVGEMMVZS
    ActivateSubscriptionOrderFirstUsage:
      summary: Activate Subscription Order - First Usage
      value:
        type: activate_subscription
        subscriber_id: subr_01HXF4F4VYTCPVMBPBK3T52TN7
        purchase_location: US
        sim_profile:
          sim_type: esim
        products:
          plan:
            product_offering_id: prdoff_01HRD00B0K1EPRZ9WEVGEMUIJ6E
          addons:
            - activation_mode: first_usage
              product_offering_id: prdoff_01HRD00B0K1EPRZ91XEFRYPPTVX
    ActivateSubscriptionOrderScheduled:
      summary: Activate Subscription Order - Scheduled
      value:
        type: activate_subscription
        subscriber_id: subr_01HXF4F4VYTCPVMBPBK3T52TN7
        purchase_location: PT
        sim_profile:
          sim_type: esim
        products:
          plan:
            product_offering_id: prdoff_01HRD00B0K1EPRZ9WEVGEMUIJ6E
          addons:
            - activation_mode: scheduled
              product_offering_id: prdoff_01HRD00B0K1EPRZ91XEFRYPPTVX
              start_at: '2021-02-01T14:28:17.967Z'
    ActivateSubscriptionOrderEID:
      summary: Activate Subscription Order - EID
      value:
        type: activate_subscription
        subscriber_id: subr_01HXF4F4VYTCPVMBPBK3T52TN7
        purchase_location: PT
        sim_profile:
          sim_type: esim
        device:
          uicc:
            eid: '89043051202200006223007240196277'
        products:
          plan:
            product_offering_id: prdoff_01HRD00B0K1EPRZ9WEVGEMUIJ6E
          addons:
            - activation_mode: first_usage
              product_offering_id: prdoff_01HRD00B0K1EPRZ91XEFRYPPTVX
    ActivateSubscriptionOrderImmediate:
      summary: Activate Subscription Order - Immediate
      value:
        type: activate_subscription
        subscriber_id: subr_01HXF4F4VYTCPVMBPBK3T52TN7
        purchase_location: CA
        sim_profile:
          sim_type: esim
        products:
          plan:
            product_offering_id: prdoff_01HRD00B0K1EPRZ9WEVGEMUIJ6E
    TopUpSubscriptionOrderFirstUsage:
      summary: Top Up Subscription Order - First Usage
      value:
        type: topup_subscription
        subscription_id: subs_01HRCZZWCBXR40JQ6B705952WJ
        purchase_location: PT
        products:
          addons:
            - activation_mode: first_usage
              product_offering_id: prdoff_01HRD00B0K1EPRZ91XEFRYPPTVX
    TopUpSubscriptionOrderScheduled:
      summary: Top Up Subscription Order - Scheduled
      value:
        type: topup_subscription
        subscription_id: subs_01HRCZZWCBXR40JQ6B705952WJ
        purchase_location: PT
        products:
          addons:
            - activation_mode: scheduled
              product_offering_id: prdoff_01HRD00B0K1EPRZ91XEFRYPPTVX
              start_at: '2021-02-01T14:28:17.967Z'
    TopUpSubscriptionOrderImmediate:
      summary: Top Up Subscription Order - Immediate
      value:
        type: topup_subscription
        subscription_id: subs_01HRCZZWCBXR40JQ6B705952WJ
        purchase_location: PT
        products:
          addons:
            - activation_mode: immediate
              product_offering_id: prdoff_01HRD00B0K1EPRZ91XEFRYPPTVX
            - activation_mode: immediate
              product_offering_id: prdoff_01HRD00B0K1EPRZ91XEFRYPHUYG
    CancelOrder:
      summary: Cancel Subscription Order
      value:
        type: cancel_subscription
        subscription_id: subs_01HRCZZWCBXR40JQ6B705952WJ
    SwapSubscriptionSimOrder:
      summary: Swap Subscription Sim Order
      value:
        type: swap_subscription_sim
        subscription_id: subs_01HRCZZWCBXR40JQ6B705952WJ
    ChangeSubscriptionPlanOrderImmediate:
      summary: Change Subscription Plan Order - Immediate
      value:
        type: change_subscription_plan
        subscription_id: subs_01HRCZZWCBXR40JQ6B705952WJ
        purchase_location: DE
        products:
          plan:
            product_offering_id: prdoff_01HRD00B0K1EPRZ9WEVGEMUIJ6E
    ChangeSubscriptionPlanOrderEndOfCycle:
      summary: Change Subscription Plan Order - End of Cycle
      value:
        type: change_subscription_plan
        subscription_id: subs_01HRCZZWCBXR40JQ6B705952WJ
        purchase_location: DE
        products:
          plan:
            product_offering_id: prdoff_01HRD00B0K1EPRZ9WEVGEMUIJ6E
        schedule:
          mode: end_of_cycle
    ListProducts:
      summary: Successfully retrieved the list of Products.
      value:
        _embedded:
          products:
            - id: prd_01J7ZWP2Q7C2VJRAPW5D62GQEH
              status: active
              created_at: '2024-09-17T11:43:02.375Z'
              start_at: '2024-09-17T11:43:03.579Z'
              started_at: '2024-09-17T11:43:03.475Z'
              end_at: '2024-10-17T11:43:03.579Z'
              _embedded:
                product_offering:
                  id: prdoff_01J7ZWNYNYVJYKWGJR98FA3NZS
                  name: Local Germany 1 Month 500 MB
                  type: addon
                  validity:
                    type: duration
                    unit: month
                    unit_count: 1
                    is_recurrent: false
                  _embedded:
                    allowances:
                      - type: data
                        unit: megabytes
                        unit_count: 500
                        is_unlimited: false
                        _embedded:
                          coverage_area:
                            id: cov_01J7ZWNXBNSHG0Q0RWERPP5QDW
                            name: Germany
                            type: local
                            created_at: '2024-09-17T11:42:56.875Z'
                            updated_at: '2024-09-17T14:45:03.234Z'
                            countries:
                              - DE
                            _links:
                              self:
                                href: https://api.1global.com/connect/coverage-areas/cov_01J7ZWNXBNSHG0Q0RWERPP5QDW
                  _links:
                    self:
                      href: https://api.1global.com/connect/product-offerings/prdoff_01J7ZWNYNYVJYKWGJR98FA3NZS
                balances:
                  - type: limited
                    allowance_type: data
                    unit: bytes
                    initial: 524288000
                    remaining: 512154000
                    spent: 12134000
                prices:
                  - type: one_time
                    unit_amount: 1
                    currency: EUR
              _links:
                self:
                  href: https://api.1global.com/connect/products/prd_01J7ZWP2Q7C2VJRAPW5D62GQEH
                order:
                  href: https://api.1global.com/connect/orders/ord_01J7ZWP1X8MBE7GZ73M75JEPB2
                subscription:
                  href: https://api.1global.com/connect/subscriptions/subs_01J7ZWP28JKQAFY37GEX8XN8FS
                cancel:
                  href: https://api.1global.com/connect/products/prd_01J7ZWP2Q7C2VJRAPW5D62GQEH/cancel
            - id: prd_01J82FWNGE033C2DEMCRPY1427
              status: canceled
              created_at: '2024-09-18T11:57:10.029Z'
              expire_at: '2025-09-18T11:57:08.570Z'
              ended_at: '2024-09-25T12:10:40.218Z'
              _embedded:
                product_offering:
                  id: prdoff_01J8091PFJ4XWGXW5VN6T6JV3A
                  name: Local Zimbabwe - 7 Days
                  type: addon
                  validity:
                    type: duration
                    unit: day
                    unit_count: 7
                    is_recurrent: false
                  _embedded:
                    allowances:
                      - type: data
                        unit: gigabytes
                        unit_count: 1
                        is_unlimited: false
                        _embedded:
                          coverage_area:
                            id: cov_01J8091P6TD2DT8R1VYEADGXSJ
                            name: Zimbabwe
                            type: local
                            created_at: '2024-09-17T15:19:05.690Z'
                            updated_at: '2024-09-17T14:45:03.234Z'
                            countries:
                              - ZW
                            _links:
                              self:
                                href: https://api.1global.com/connect/coverage-areas/cov_01J8091P6TD2DT8R1VYEADGXSJ
                  _links:
                    self:
                      href: https://api.1global.com/connect/product-offerings/prdoff_01J8091PFJ4XWGXW5VN6T6JV3A
                balances:
                  - type: limited
                    allowance_type: data
                    unit: bytes
                    initial: 1073741824
                    remaining: 1073741824
                    spent: 0
                prices:
                  - type: one_time
                    unit_amount: 1
                    currency: USD
              _links:
                self:
                  href: https://api.1global.com/connect/products/prd_01J82FWNGE033C2DEMCRPY1427
                order:
                  href: https://api.1global.com/connect/orders/ord_01J82FWM1SNAPXYHYY50XP3SMN
                subscription:
                  href: https://api.1global.com/connect/subscriptions/subs_01J82FWMHCXZSAR4TMDA19Y4ZA
        _links:
          self:
            href: http://api.1global.com/connect/products?limit=2
          prev:
            href: http://api.1global.com/connect/products?cursor=eyJzbyI6eyJkIjoiREVTQyIsInAiOiJleHRlcm5hbElkIn0sInNpZCI6bnVsbCwicyI6bnVsbCwidCI6Ik5FWFQiLCJpZCI6InN1YnNfMDFKQTVESzdEOFBEQ0hTSDI3RjMzUjVXNDYifQ==&limit=20
          next:
            href: http://api.1global.com/connect/products?cursor=eyJzbyI6eyJkIjoiREVTQyIsInAiOiJleHRlcm5hbElkIn0sInNpZCI6bnVsbCwicyI6bnVsbCwidCI6Ik5FWFQiLCJpZCI6InN1YnNfMDFKQTVESzdEOFBEQ0hTSDI3RjMzUjVXNDYifQ==&limit=20
    ActiveProduct:
      summary: Active Product
      value:
        id: prd_01J7ZWP2Q7C2VJRAPW5D62GQEH
        status: active
        created_at: '2024-09-17T11:43:02.023'
        start_at: '2024-09-17T11:43:03.579Z'
        started_at: '2024-09-17T11:43:04.375Z'
        end_at: '2024-10-17T11:43:01.579Z'
        _embedded:
          product_offering:
            id: prdoff_01J7ZWNYNYVJYKWGJR98FA3NZS
            name: Local Germany 1 Month 500 MB
            type: addon
            validity:
              type: duration
              unit: month
              unit_count: 1
              is_recurrent: false
            _embedded:
              allowances:
                - type: data
                  unit: megabytes
                  unit_count: 500
                  is_unlimited: false
                  _embedded:
                    coverage_area:
                      id: cov_01J7ZWNXBNSHG0Q0RWERPP5QDW
                      name: Germany
                      type: local
                      created_at: '2024-09-17T11:42:56.875Z'
                      updated_at: '2024-09-17T14:45:03.234Z'
                      countries:
                        - DE
                      _links:
                        self:
                          href: https://api.1global.com/connect/coverage-areas/cov_01J7ZWNXBNSHG0Q0RWERPP5QDW
            _links:
              self:
                href: https://api.1global.com/connect/product-offerings/prdoff_01J7ZWNYNYVJYKWGJR98FA3NZS
          balances:
            - type: limited
              allowance_type: data
              unit: bytes
              initial: 524288000
              remaining: 512154000
              spent: 12134000
          prices:
            - type: one_time
              unit_amount: 1
              currency: EUR
        _links:
          self:
            href: https://api.1global.com/connect/products/prd_01J7ZWP2Q7C2VJRAPW5D62GQEH
          order:
            href: https://api.1global.com/connect/orders/ord_01J7ZWP1X8MBE7GZ73M75JEPB2
          subscription:
            href: https://api.1global.com/connect/subscriptions/subs_01J7ZWP28JKQAFY37GEX8XN8FS
          cancel:
            href: https://api.1global.com/connect/products/prd_01J7ZWP2Q7C2VJRAPW5D62GQEH/cancel
    CanceledProduct:
      summary: Canceled Product
      value:
        id: prd_01J82FWNGE033C2DEMCRPY1427
        status: canceled
        created_at: '2024-09-18T11:57:10.029Z'
        expire_at: '2025-09-18T11:57:08.570Z'
        ended_at: '2024-09-19T12:10:40.218Z'
        _embedded:
          product_offering:
            id: prdoff_01J8091PFJ4XWGXW5VN6T6JV3A
            name: Local Zimbabwe - 7 Days
            type: addon
            validity:
              type: duration
              unit: day
              unit_count: 7
              is_recurrent: false
            _embedded:
              allowances:
                - type: data
                  unit: gigabytes
                  unit_count: 1
                  is_unlimited: false
                  _embedded:
                    coverage_area:
                      id: cov_01J8091P6TD2DT8R1VYEADGXSJ
                      name: Zimbabwe
                      type: local
                      created_at: '2024-09-17T15:19:05.690Z'
                      updated_at: '2024-09-17T14:45:03.234Z'
                      countries:
                        - ZW
                      _links:
                        self:
                          href: https://api.1global.com/connect/coverage-areas/cov_01J8091P6TD2DT8R1VYEADGXSJ
            _links:
              self:
                href: https://api.1global.com/connect/product-offerings/prdoff_01J8091PFJ4XWGXW5VN6T6JV3A
          balances:
            - type: limited
              allowance_type: data
              unit: bytes
              initial: 1073741824
              remaining: 1073741824
              spent: 0
          prices:
            - type: one_time
              unit_amount: 1
              currency: USD
        _links:
          self:
            href: https://api.1global.com/connect/products/prd_01J82FWNGE033C2DEMCRPY1427
          order:
            href: https://api.1global.com/connect/orders/ord_01J82FWM1SNAPXYHYY50XP3SMN
          subscription:
            href: https://api.1global.com/connect/subscriptions/subs_01J82FWMHCXZSAR4TMDA19Y4ZA
    TerminatedProduct:
      summary: Terminated Product
      value:
        id: prd_01J7P0VV92H2EYXRQFCN0ZH50Y
        status: terminated
        created_at: '2024-09-13T15:43:41.346Z'
        start_at: '2024-09-13T15:43:45.823Z'
        started_at: '2024-09-13T15:43:46.345Z'
        end_at: '2024-09-14T15:43:35.823Z'
        ended_at: '2024-09-14T15:43:35.838Z'
        _embedded:
          product_offering:
            id: prdoff_01J7JR2FWKX5655G1DZR676QQ8
            name: Local Turkey - 7 Days
            type: addon
            validity:
              type: duration
              unit: day
              unit_count: 1
              is_recurrent: false
            _embedded:
              allowances:
                - type: data
                  unit: gigabytes
                  unit_count: 1
                  is_unlimited: false
                  _embedded:
                    coverage_area:
                      id: cov_01J7JR26GT6A55FGWWVJJA2HSX
                      name: Turkey
                      type: local
                      created_at: '2024-09-12T09:12:08.984Z'
                      updated_at: '2024-09-17T14:45:03.234Z'
                      countries:
                        - TR
                      _links:
                        self:
                          href: https://api.1global.com/connect/coverage-areas/cov_01J7JR26GT6A55FGWWVJJA2HSX
            _links:
              self:
                href: https://api.1global.com/connect/product-offerings/prdoff_01J7JR2FWKX5655G1DZR676QQ8
          balances:
            - type: limited
              allowance_type: data
              unit: bytes
              initial: 1073741824
              remaining: 1073741824
              spent: 0
          prices:
            - type: one_time
              unit_amount: 419
              currency: USD
        _links:
          self:
            href: https://api.1global.com/connect/products/prd_01J7P0VV92H2EYXRQFCN0ZH50Y
          order:
            href: https://api.1global.com/connect/orders/ord_01J7P0VNKS0G7968G267360B6Q
          subscription:
            href: https://api.1global.com/connect/subscriptions/subs_01J7P0VQ1K75R4FD1ZBJFAFK3T
    PendingFirstUsageProduct:
      summary: Pending First Usage Product
      value:
        id: prd_01J7ZWNYVB2X8J9BT6MBK8N37D
        status: pending_first_usage
        created_at: '2024-09-17T11:42:58.411Z'
        expire_at: '2025-09-17T11:42:57.164Z'
        _embedded:
          product_offering:
            id: prdoff_01J7ZWNWMX2ETSZ1TDWA21A2AH
            name: Local Germany 1 Month 500MB
            type: addon
            validity:
              type: duration
              unit: month
              unit_count: 1
              is_recurrent: false
            _embedded:
              allowances:
                - type: data
                  unit: megabytes
                  unit_count: 500
                  is_unlimited: false
                  _embedded:
                    coverage_area:
                      id: cov_01J7ZWNWH4CEMWRRQ96022148P
                      name: Germany
                      type: local
                      created_at: '2024-09-17T11:42:56.036Z'
                      updated_at: '2024-09-17T14:45:03.234Z'
                      countries:
                        - DE
                      _links:
                        self:
                          href: https://api.1global.com/connect/coverage-areas/cov_01J7ZWNWH4CEMWRRQ96022148P
            _links:
              self:
                href: https://api.1global.com/connect/product-offerings/prdoff_01J7ZWNWMX2ETSZ1TDWA21A2AH
          balances:
            - type: limited
              allowance_type: data
              unit: bytes
              initial: 524288000
              remaining: 524288000
              spent: 0
          prices:
            - type: one_time
              unit_amount: 1
              currency: EUR
        _links:
          self:
            href: https://api.1global.com/connect/products/prd_01J7ZWNYVB2X8J9BT6MBK8N37D
          order:
            href: https://api.1global.com/connect/orders/ord_01J7ZWNX2ZJR8PG853F3MA8BD8
          subscription:
            href: https://api.1global.com/connect/subscriptions/subs_01J7ZWNY4J3SF55D71WWB89S9T
          cancel:
            href: https://api.1global.com/connect/products/prd_01J7ZWNYVB2X8J9BT6MBK8N37D/cancel
          activate:
            href: https://api.1global.com/connect/products/prd_01J7ZWNYVB2X8J9BT6MBK8N37D/activate
    DepletedProduct:
      summary: Depleted Product
      value:
        id: prd_01J806F9TNFYTQM3Z4THPTJEVY
        status: depleted
        created_at: '2024-09-17T14:34:06.037Z'
        started_at: '2024-09-17T14:35:31.559Z'
        expire_at: '2025-09-17T14:34:03.946Z'
        end_at: '2024-10-17T14:35:31.559Z'
        ended_at: '2024-09-27T20:38:55.079Z'
        _embedded:
          product_offering:
            id: prdoff_01J7ZWQW25H38MHADHDQ21H28W
            name: Local Germany 1Month 500MB
            type: addon
            validity:
              type: duration
              unit: month
              unit_count: 1
              is_recurrent: false
            _embedded:
              allowances:
                - type: data
                  unit: megabytes
                  unit_count: 500
                  is_unlimited: false
                  _embedded:
                    coverage_area:
                      id: cov_01J7ZWQVSNTKXMEZ77GS81ZG2T
                      name: Germany
                      type: local
                      created_at: '2024-09-17T11:44:00.818Z'
                      updated_at: '2024-09-17T14:45:03.234Z'
                      countries:
                        - DE
                      _links:
                        self:
                          href: https://api.1global.com/connect/coverage-areas/cov_01J7ZWQVSNTKXMEZ77GS81ZG2T
            _links:
              self:
                href: https://api.1global.com/connect/product-offerings/prdoff_01J7ZWQW25H38MHADHDQ21H28W
          balances:
            - type: limited
              allowance_type: data
              unit: bytes
              initial: 524288000
              remaining: 0
              spent: 524288000
          prices:
            - type: one_time
              unit_amount: 0
              currency: EUR
        _links:
          self:
            href: https://api.1global.com/connect/products/prd_01J806F9TNFYTQM3Z4THPTJEVY
          order:
            href: https://api.1global.com/connect/orders/ord_01J806F7RDT6ERDN47MHPC6AA2
          subscription:
            href: https://api.1global.com/connect/subscriptions/subs_01J806F86A8YJDPDX0DY9ZM7TD
    ScheduledProduct:
      summary: Scheduled Product
      value:
        id: prd_01J6HE2DP5M8GKQ9P8R83VQW3J
        status: scheduled
        created_at: '2024-08-30T10:42:34.309Z'
        start_at: '2024-10-06T16:59:17.967Z'
        end_at: '2024-11-06T16:52:17.967Z'
        _embedded:
          product_offering:
            id: prdoff_01J6795M195EXEECTPY9Y3QD66
            name: Local Germany 1 Month 500MB
            type: addon
            validity:
              type: duration
              unit: month
              unit_count: 1
              is_recurrent: false
            _embedded:
              allowances:
                - type: data
                  unit: megabytes
                  unit_count: 500
                  is_unlimited: false
                  _embedded:
                    coverage_area:
                      id: cov_01J6795KQWQNPTMG49F6VE4QZH
                      name: Germany
                      type: local
                      created_at: '2024-08-26T12:04:31.612Z'
                      updated_at: '2024-09-17T14:45:03.234Z'
                      countries:
                        - DE
                      _links:
                        self:
                          href: https://api.1global.com/connect/coverage-areas/cov_01J6795KQWQNPTMG49F6VE4QZH
            _links:
              self:
                href: https://api.1global.com/connect/product-offerings/prdoff_01J6795M195EXEECTPY9Y3QD66
          balances:
            - type: limited
              allowance_type: data
              unit: bytes
              initial: 524288000
              remaining: 524288000
              spent: 0
          prices:
            - type: recurring
              unit_amount: 19
              recurrence:
                unit: day
                unit_count: 1
              currency: EUR
        _links:
          self:
            href: https://api.1global.com/connect/products/prd_01J6HE2DP5M8GKQ9P8R83VQW3J
          order:
            href: https://api.1global.com/connect/orders/ord_01J67F1GGCN0ZMGJQ17NTYV3WV
          subscription:
            href: https://api.1global.com/connect/subscriptions/subs_01J67SMMCM050XM1C1ABQNFD9K
          cancel:
            href: https://api.1global.com/connect/products/prd_01J6HE2DP5M8GKQ9P8R83VQW3J/cancel
          activate:
            href: https://api.1global.com/connect/products/prd_01J6HE2DP5M8GKQ9P8R83VQW3J/activate
    CancelProductImmediate:
      summary: Canceled Product - Immediate
      value:
        cancellation_mode: immediate
    CancelProductEndOfCycle:
      summary: Canceled Product - End of Cycle
      value:
        cancellation_mode: end_of_cycle
    TerminatedSubscriptionResponse:
      summary: Terminated subscription
      value:
        id: subs_01BX5ZZKBKACTAV9WEVGEMMVRY
        created_at: '2023-01-01T00:00:00Z'
        updated_at: '2023-05-21T00:00:00Z'
        status: terminated
        _embedded:
          sim_profile:
            iccid: '8988211234567890123'
            sim_type: esim
            profile_status: unavailable
            matching_id: 5C-ZYXZZ-1R54O94
            smdp_address: rsp.truphone.com
          account:
            id: acc_01HRC2T6WK4CMVGFXA2RESTQ97
            _links:
              self:
                href: http://api.1global.com/connect/accounts/acc_01HRC2T6WK4CMVGFXA2RESTQ97
        _links:
          self:
            href: http://api.1global.com/connect/subscriptions/subs_01BX5ZZKBKACTAV9WEVGEMMVRY
          products:
            href: http://api.1global.com/connect/products?subscription=subs_01BX5ZZKBKACTAV9WEVGEMMVRY
          subscriber:
            href: http://api.1global.com/connect/subscriber/subr_02BX5ZZKBKACTAV9WEVGEMMVRY
    GraceSubscriptionResponse:
      summary: Grace subscription
      value:
        id: subs_01BX5ZZKBKACTAV9WEVGEMMVRY
        created_at: '2023-01-01T00:00:00Z'
        updated_at: '2023-05-21T00:00:00Z'
        status: grace
        _embedded:
          sim_profile:
            iccid: '8988211234567890123'
            sim_type: esim
            profile_status: installed
            matching_id: 5C-ZYXZZ-1R54O94
            smdp_address: rsp.truphone.com
          active_phone_numbers:
            - id: pn_01BX5ZZKBKACTAV9WEVGEMUIJ6
              status: active
              created_at: '2023-01-01T00:30:00Z'
              msisdn: '+4912984900817'
              country: DE
              is_primary: true
              _links:
                self:
                  href: https://api.1global.com/connect/phone-numbers/pn_01BX5ZZKBKACTAV9WEVGEMUIJ6
                disable-porting-opt-in:
                  href: https://api.1global.com/connect/phone-numbers/pn_01BX5ZZKBKACTAV9WEVGEMUIJ6/disable-porting-opt-in
                subscription:
                  href: https://api.1global.com/connect/subscriptions/subs_01J67SMMCM050XM1C1ABQNFD9K
          account:
            id: acc_01HRC2T6WK4CMVGFXA2RESTQ97
            _links:
              self:
                href: http://api.1global.com/connect/accounts/acc_01HRC2T6WK4CMVGFXA2RESTQ97
        _links:
          self:
            href: http://api.1global.com/connect/subscriptions/subs_01BX5ZZKBKACTAV9WEVGEMMVRY
          qrcode:
            href: http://api.1global.com/qrcode/v1/esim/LPA:1$rsp.truphone.com$5C-ZYXZZ-1R54O94
          products:
            href: http://api.1global.com/connect/products?subscription=subs_01BX5ZZKBKACTAV9WEVGEMMVRY
          subscriber:
            href: http://api.1global.com/connect/subscriber/subr_02BX5ZZKBKACTAV9WEVGEMMVRY
    SuspendSubscriptionResponse:
      summary: Suspended subscription
      value:
        id: subs_01BX5ZZKBKACTAV9WEVGEMMVRY
        created_at: '2023-01-01T00:00:00Z'
        updated_at: '2023-05-21T00:00:00Z'
        status: suspended
        _embedded:
          sim_profile:
            iccid: '8988211234567890123'
            sim_type: esim
            profile_status: installed
            matching_id: 5C-ZYXZZ-1R54O94
            smdp_address: rsp.truphone.com
          account:
            id: acc_01HRC2T6WK4CMVGFXA2RESTQ97
            _links:
              self:
                href: http://api.1global.com/connect/accounts/acc_01HRC2T6WK4CMVGFXA2RESTQ97
        _links:
          self:
            href: http://api.1global.com/connect/subscriptions/subs_01BX5ZZKBKACTAV9WEVGEMMVRY
          qrcode:
            href: http://api.1global.com/qrcode/v1/esim/LPA:1$rsp.truphone.com$5C-ZYXZZ-1R54O94
          products:
            href: http://api.1global.com/connect/products?subscription=subs_01BX5ZZKBKACTAV9WEVGEMMVRY
          subscriber:
            href: http://api.1global.com/connect/subscriber/subr_02BX5ZZKBKACTAV9WEVGEMMVRY
    DeactivateSubscriptionResponse:
      summary: Deactivated subscription
      value:
        id: subs_01BX5ZZKBKACTAV9WEVGEMMVRY
        created_at: '2023-01-01T00:00:00Z'
        updated_at: '2023-05-21T00:00:00Z'
        status: deactivated
        _embedded:
          sim_profile:
            iccid: '8988211234567890123'
            sim_type: esim
            profile_status: installed
            matching_id: 5C-ZYXZZ-1R54O94
            smdp_address: rsp.truphone.com
          account:
            id: acc_01HRC2T6WK4CMVGFXA2RESTQ97
            _links:
              self:
                href: http://api.1global.com/connect/accounts/acc_01HRC2T6WK4CMVGFXA2RESTQ97
        _links:
          self:
            href: http://api.1global.com/connect/subscriptions/subs_01BX5ZZKBKACTAV9WEVGEMMVRY
          qrcode:
            href: http://api.1global.com/qrcode/v1/esim/LPA:1$rsp.truphone.com$5C-ZYXZZ-1R54O94
          products:
            href: http://api.1global.com/connect/products?subscription=subs_01BX5ZZKBKACTAV9WEVGEMMVRY
          subscriber:
            href: http://api.1global.com/connect/subscriber/subr_02BX5ZZKBKACTAV9WEVGEMMVRY
    CreatedSubscriptionResponse:
      summary: Created subscription
      value:
        id: subs_01BX5ZZKBKACTAV9WEVGEMMVRY
        created_at: '2023-01-01T00:00:00Z'
        updated_at: '2023-05-21T00:00:00Z'
        status: created
        _embedded:
          sim_profile:
            iccid: '8988211234567890123'
            sim_type: esim
            profile_status: installed
            matching_id: 5C-ZYXZZ-1R54O94
            smdp_address: rsp.truphone.com
          account:
            id: acc_01HRC2T6WK4CMVGFXA2RESTQ97
            _links:
              self:
                href: http://api.1global.com/connect/accounts/acc_01HRC2T6WK4CMVGFXA2RESTQ97
        _links:
          self:
            href: http://api.1global.com/connect/subscriptions/subs_01BX5ZZKBKACTAV9WEVGEMMVRY
          qrcode:
            href: http://api.1global.com/qrcode/v1/esim/LPA:1$rsp.truphone.com$5C-ZYXZZ-1R54O94
          products:
            href: http://api.1global.com/connect/products?subscription=subs_01BX5ZZKBKACTAV9WEVGEMMVRY
          subscriber:
            href: http://api.1global.com/connect/subscriber/subr_02BX5ZZKBKACTAV9WEVGEMMVRY
    ActiveSubscriptionResponse:
      summary: Active subscription
      value:
        id: subs_01BX5ZZKBKACTAV9WEVGEMMVRY
        created_at: '2023-01-01T00:00:00Z'
        updated_at: '2023-05-21T00:00:00Z'
        status: active
        _embedded:
          sim_profile:
            iccid: '8988211234567890123'
            sim_type: esim
            profile_status: installed
            matching_id: 5C-ZYXZZ-1R54O94
            smdp_address: rsp.truphone.com
          account:
            id: acc_01HRC2T6WK4CMVGFXA2RESTQ97
            _links:
              self:
                href: http://api.1global.com/connect/accounts/acc_01HRC2T6WK4CMVGFXA2RESTQ97
        _links:
          self:
            href: http://api.1global.com/connect/subscriptions/subs_01BX5ZZKBKACTAV9WEVGEMMVRY
          qrcode:
            href: http://api.1global.com/qrcode/v1/esim/LPA:1$rsp.truphone.com$5C-ZYXZZ-1R54O94
          products:
            href: http://api.1global.com/connect/products?subscription=subs_01BX5ZZKBKACTAV9WEVGEMMVRY
          subscriber:
            href: http://api.1global.com/connect/subscriber/subr_02BX5ZZKBKACTAV9WEVGEMMVRY
    PortingInDraftNotificationExample:
      summary: Porting Port-In Draft Example
      value:
        id: evt_01J494G6WZAR2E2808Z8M07K4Z
        type: porting.draft
        created_at: '2021-02-01T14:28:17.967Z'
        data:
          porting:
            id: port_01J6HE2DP5M8GKQ9P8R83VQW3J
            direction: in
            preferred_schedule:
              type: specific_date
              preferred_porting_at: '2024-08-30T10:42:34.309Z'
            country: DE
            status: draft
            msisdn: '+4912341234123'
            donor_details:
              _embedded:
                network_operator:
                  id: nopr_01J6795M195EXEECTPY9Y3QD66
                  name: Operator Name
                  trade_name: Trade Operator Name
                  country: DE
                  status: active
                  code: TP
                  created_at: '2024-08-30T10:42:34.309Z'
                  updated_at: '2024-08-30T10:42:34.309Z'
                  _links:
                    self:
                      href: https://api.1global.com/connect/network-operators/nopr_01J6795M195EXEECTPY9Y3QD66
                service_provider:
                  id: spro_01J6795M195EXEECTPY9Y3QD66
                  name: Provider Name
                  country: DE
                  status: active
                  code: TRUP
                  created_at: '2024-08-30T10:42:34.309Z'
                  updated_at: '2024-08-30T10:42:34.309Z'
                  _links:
                    self:
                      href: https://api.1global.com/connect/service-providers/spro_01J6795M195EXEECTPY9Y3QD66
              account:
                type: personal
            created_at: '2024-08-30T10:42:34.309Z'
            updated_at: '2024-08-30T10:42:34.309Z'
            _links:
              self:
                href: https://api.1global.com/connect/portings/port_01J6HE2DP5M8GKQ9P8R83VQW3J
              account:
                href: https://api.1global.com/connect/acounts/acc_01J6795M195EXEECTPY9Y3QD66
              subscriber:
                href: https://api.1global.com/connect/subscriber/subr_01J67F1GGCN0ZMGJQ17NTYV3WV
              subscription:
                href: https://api.1global.com/connect/subscriptions/subs_01J67SMMCM050XM1C1ABQNFD9K
              phone_number:
                href: https://api.1global.com/connect/phone-numbers/pn_01J6795M195EXEECTPY9Y3QD66
    PortingInPendingNotificationExample:
      summary: Porting Port-In Pending Example
      value:
        id: evt_01J494G6WZAR2E2808Z8M07K4Z
        type: porting.pending
        created_at: '2021-02-01T14:28:17.967Z'
        data:
          porting:
            id: port_01J6HE2DP5M8GKQ9P8R83VQW3J
            direction: in
            preferred_schedule:
              type: specific_date
              preferred_porting_at: '2024-08-30T10:42:34.309Z'
            country: DE
            status: pending
            msisdn: '+4912341234123'
            donor_details:
              _embedded:
                network_operator:
                  id: nopr_01J6795M195EXEECTPY9Y3QD66
                  name: Operator Name
                  trade_name: Trade Operator Name
                  country: DE
                  status: active
                  code: TP
                  created_at: '2024-08-30T10:42:34.309Z'
                  updated_at: '2024-08-30T10:42:34.309Z'
                  _links:
                    self:
                      href: https://api.1global.com/connect/network-operators/nopr_01J6795M195EXEECTPY9Y3QD66
                service_provider:
                  id: spro_01J6795M195EXEECTPY9Y3QD66
                  name: Provider Name
                  country: DE
                  status: active
                  code: TRUP
                  created_at: '2024-08-30T10:42:34.309Z'
                  updated_at: '2024-08-30T10:42:34.309Z'
                  _links:
                    self:
                      href: https://api.1global.com/connect/service-providers/spro_01J6795M195EXEECTPY9Y3QD66
              account:
                type: personal
            created_at: '2024-08-30T10:42:34.309Z'
            updated_at: '2024-08-30T10:42:34.309Z'
            _links:
              self:
                href: https://api.1global.com/connect/portings/port_01J6HE2DP5M8GKQ9P8R83VQW3J
              account:
                href: https://api.1global.com/connect/acounts/acc_01J6795M195EXEECTPY9Y3QD66
              subscriber:
                href: https://api.1global.com/connect/subscriber/subr_01J67F1GGCN0ZMGJQ17NTYV3WV
              subscription:
                href: https://api.1global.com/connect/subscriptions/subs_01J67SMMCM050XM1C1ABQNFD9K
              phone_number:
                href: https://api.1global.com/connect/phone-numbers/pn_01J6795M195EXEECTPY9Y3QD66
    PortingInScheduledNotificationExample:
      summary: Porting Port-In Scheduled Example
      value:
        id: evt_01J494G6WZAR2E2808Z8M07K4Z
        type: porting.scheduled
        created_at: '2021-02-01T14:28:17.967Z'
        data:
          porting:
            id: port_01J6HE2DP5M8GKQ9P8R83VQW3J
            direction: in
            preferred_schedule:
              type: specific_date
              preferred_porting_at: '2024-08-30T10:42:34.309Z'
            country: DE
            status: scheduled
            msisdn: '+4912341234123'
            donor_details:
              _embedded:
                network_operator:
                  id: nopr_01J6795M195EXEECTPY9Y3QD66
                  name: Operator Name
                  trade_name: Trade Operator Name
                  country: DE
                  status: active
                  code: TP
                  created_at: '2024-08-30T10:42:34.309Z'
                  updated_at: '2024-08-30T10:42:34.309Z'
                  _links:
                    self:
                      href: https://api.1global.com/connect/network-operators/nopr_01J6795M195EXEECTPY9Y3QD66
                service_provider:
                  id: spro_01J6795M195EXEECTPY9Y3QD66
                  name: Provider Name
                  country: DE
                  status: active
                  code: TRUP
                  created_at: '2024-08-30T10:42:34.309Z'
                  updated_at: '2024-08-30T10:42:34.309Z'
                  _links:
                    self:
                      href: https://api.1global.com/connect/service-providers/spro_01J6795M195EXEECTPY9Y3QD66
              account:
                type: personal
            cancelation_deadline_at: '2024-10-01T14:28:17.456Z'
            scheduled_at: '2024-10-01T14:28:17.456Z'
            created_at: '2024-08-30T10:42:34.309Z'
            updated_at: '2024-08-30T10:42:34.309Z'
            _links:
              self:
                href: https://api.1global.com/connect/portings/port_01J6HE2DP5M8GKQ9P8R83VQW3J
              account:
                href: https://api.1global.com/connect/acounts/acc_01J6795M195EXEECTPY9Y3QD66
              subscriber:
                href: https://api.1global.com/connect/subscriber/subr_01J67F1GGCN0ZMGJQ17NTYV3WV
              subscription:
                href: https://api.1global.com/connect/subscriptions/subs_01J67SMMCM050XM1C1ABQNFD9K
              phone_number:
                href: https://api.1global.com/connect/phone-numbers/pn_01J6795M195EXEECTPY9Y3QD66
              request-cancelation:
                href: https://api.1global.com/connect/portings/port_01J67SMMCM050XM1C1ABQNFD9K/request-cancelation
    PortingInProcessingNotificationExample:
      summary: Porting Port-In Processing Example
      value:
        id: evt_01J494G6WZAR2E2808Z8M07K4Z
        type: porting.processing
        created_at: '2021-02-01T14:28:17.967Z'
        data:
          porting:
            id: port_01J6HE2DP5M8GKQ9P8R83VQW3J
            direction: in
            preferred_schedule:
              type: specific_date
              preferred_porting_at: '2024-08-30T10:42:34.309Z'
            country: DE
            status: processing
            msisdn: '+4912341234123'
            donor_details:
              _embedded:
                network_operator:
                  id: nopr_01J6795M195EXEECTPY9Y3QD66
                  name: Operator Name
                  trade_name: Trade Operator Name
                  country: DE
                  status: active
                  code: TP
                  created_at: '2024-08-30T10:42:34.309Z'
                  updated_at: '2024-08-30T10:42:34.309Z'
                  _links:
                    self:
                      href: https://api.1global.com/connect/network-operators/nopr_01J6795M195EXEECTPY9Y3QD66
                service_provider:
                  id: spro_01J6795M195EXEECTPY9Y3QD66
                  name: Provider Name
                  country: DE
                  status: active
                  code: TRUP
                  created_at: '2024-08-30T10:42:34.309Z'
                  updated_at: '2024-08-30T10:42:34.309Z'
                  _links:
                    self:
                      href: https://api.1global.com/connect/service-providers/spro_01J6795M195EXEECTPY9Y3QD66
              account:
                type: personal
            scheduled_at: '2024-10-01T14:28:17.456Z'
            created_at: '2024-08-30T10:42:34.309Z'
            updated_at: '2024-08-30T10:42:34.309Z'
            _links:
              self:
                href: https://api.1global.com/connect/portings/port_01J6HE2DP5M8GKQ9P8R83VQW3J
              account:
                href: https://api.1global.com/connect/acounts/acc_01J6795M195EXEECTPY9Y3QD66
              subscriber:
                href: https://api.1global.com/connect/subscriber/subr_01J67F1GGCN0ZMGJQ17NTYV3WV
              subscription:
                href: https://api.1global.com/connect/subscriptions/subs_01J67SMMCM050XM1C1ABQNFD9K
              phone_number:
                href: https://api.1global.com/connect/phone-numbers/pn_01J6795M195EXEECTPY9Y3QD66
    PortingInCompletedNotificationExample:
      summary: Porting Port-In Completed Example
      value:
        id: evt_01J494G6WZAR2E2808Z8M07K4Z
        type: porting.completed
        created_at: '2021-02-01T14:28:17.967Z'
        data:
          porting:
            id: port_01J6HE2DP5M8GKQ9P8R83VQW3J
            direction: in
            preferred_schedule:
              type: specific_date
              preferred_porting_at: '2024-08-30T10:42:34.309Z'
            country: DE
            status: completed
            msisdn: '+4912341234123'
            donor_details:
              _embedded:
                network_operator:
                  id: nopr_01J6795M195EXEECTPY9Y3QD66
                  name: Operator Name
                  trade_name: Trade Operator Name
                  country: DE
                  status: active
                  code: TP
                  created_at: '2024-08-30T10:42:34.309Z'
                  updated_at: '2024-08-30T10:42:34.309Z'
                  _links:
                    self:
                      href: https://api.1global.com/connect/network-operators/nopr_01J6795M195EXEECTPY9Y3QD66
                service_provider:
                  id: spro_01J6795M195EXEECTPY9Y3QD66
                  name: Provider Name
                  country: DE
                  status: active
                  code: TRUP
                  created_at: '2024-08-30T10:42:34.309Z'
                  updated_at: '2024-08-30T10:42:34.309Z'
                  _links:
                    self:
                      href: https://api.1global.com/connect/service-providers/spro_01J6795M195EXEECTPY9Y3QD66
              account:
                type: personal
            completed_at: '2024-10-01T14:28:17.456Z'
            created_at: '2024-08-30T10:42:34.309Z'
            updated_at: '2024-08-30T10:42:34.309Z'
            _links:
              self:
                href: https://api.1global.com/connect/portings/port_01J6HE2DP5M8GKQ9P8R83VQW3J
              account:
                href: https://api.1global.com/connect/acounts/acc_01J6795M195EXEECTPY9Y3QD66
              subscriber:
                href: https://api.1global.com/connect/subscriber/subr_01J67F1GGCN0ZMGJQ17NTYV3WV
              subscription:
                href: https://api.1global.com/connect/subscriptions/subs_01J67SMMCM050XM1C1ABQNFD9K
              phone_number:
                href: https://api.1global.com/connect/phone-numbers/pn_01J6795M195EXEECTPY9Y3QD66
    PortingInRejectedNotificationExample:
      summary: Porting Port-In Rejected Example
      value:
        id: evt_01J494G6WZAR2E2808Z8M07K4Z
        type: porting.rejected
        created_at: '2021-02-01T14:28:17.967Z'
        data:
          porting:
            id: port_01J6HE2DP5M8GKQ9P8R83VQW3J
            direction: in
            preferred_schedule:
              type: specific_date
              preferred_porting_at: '2024-08-30T10:42:34.309Z'
            country: DE
            status: rejected
            msisdn: '+4912341234123'
            donor_details:
              _embedded:
                network_operator:
                  id: nopr_01J6795M195EXEECTPY9Y3QD66
                  name: Operator Name
                  trade_name: Trade Operator Name
                  country: DE
                  status: active
                  code: TP
                  created_at: '2024-08-30T10:42:34.309Z'
                  updated_at: '2024-08-30T10:42:34.309Z'
                  _links:
                    self:
                      href: https://api.1global.com/connect/network-operators/nopr_01J6795M195EXEECTPY9Y3QD66
                service_provider:
                  id: spro_01J6795M195EXEECTPY9Y3QD66
                  name: Provider Name
                  country: DE
                  status: active
                  code: TRUP
                  created_at: '2024-08-30T10:42:34.309Z'
                  updated_at: '2024-08-30T10:42:34.309Z'
                  _links:
                    self:
                      href: https://api.1global.com/connect/service-providers/spro_01J6795M195EXEECTPY9Y3QD66
              account:
                type: personal
            rejection:
              reason: wrong_birth_date
              message: Wrong birth date
              rejected_at: '2024-08-31T10:42:34.309Z'
            created_at: '2024-08-30T10:42:34.309Z'
            updated_at: '2024-08-30T10:42:34.309Z'
            _links:
              self:
                href: https://api.1global.com/connect/portings/port_01J6HE2DP5M8GKQ9P8R83VQW3J
              account:
                href: https://api.1global.com/connect/acounts/acc_01J6795M195EXEECTPY9Y3QD66
              subscriber:
                href: https://api.1global.com/connect/subscriber/subr_01J67F1GGCN0ZMGJQ17NTYV3WV
              subscription:
                href: https://api.1global.com/connect/subscriptions/subs_01J67SMMCM050XM1C1ABQNFD9K
              phone_number:
                href: https://api.1global.com/connect/phone-numbers/pn_01J6795M195EXEECTPY9Y3QD66
    PortingInCancelationRequestedNotificationExample:
      summary: Porting Port-In Cancelation Requested Example
      value:
        id: evt_01J494G6WZAR2E2808Z8M07K4Z
        type: porting.cancelation_requested
        created_at: '2021-02-01T14:28:17.967Z'
        data:
          porting:
            id: port_01J6HE2DP5M8GKQ9P8R83VQW3J
            direction: in
            preferred_schedule:
              type: specific_date
              preferred_porting_at: '2024-08-30T10:42:34.309Z'
            country: DE
            status: cancelation_requested
            msisdn: '+4912341234123'
            donor_details:
              _embedded:
                network_operator:
                  id: nopr_01J6795M195EXEECTPY9Y3QD66
                  name: Operator Name
                  trade_name: Trade Operator Name
                  country: DE
                  status: active
                  code: TP
                  created_at: '2024-08-30T10:42:34.309Z'
                  updated_at: '2024-08-30T10:42:34.309Z'
                  _links:
                    self:
                      href: https://api.1global.com/connect/network-operators/nopr_01J6795M195EXEECTPY9Y3QD66
                service_provider:
                  id: spro_01J6795M195EXEECTPY9Y3QD66
                  name: Provider Name
                  country: DE
                  status: active
                  code: TRUP
                  created_at: '2024-08-30T10:42:34.309Z'
                  updated_at: '2024-08-30T10:42:34.309Z'
                  _links:
                    self:
                      href: https://api.1global.com/connect/service-providers/spro_01J6795M195EXEECTPY9Y3QD66
              account:
                type: personal
            cancelation_deadline_at: '2024-10-01T14:28:17.456Z'
            scheduled_at: '2024-10-01T14:28:17.456Z'
            created_at: '2024-08-30T10:42:34.309Z'
            updated_at: '2024-08-30T10:42:34.309Z'
            _links:
              self:
                href: https://api.1global.com/connect/portings/port_01J6HE2DP5M8GKQ9P8R83VQW3J
              account:
                href: https://api.1global.com/connect/acounts/acc_01J6795M195EXEECTPY9Y3QD66
              subscriber:
                href: https://api.1global.com/connect/subscriber/subr_01J67F1GGCN0ZMGJQ17NTYV3WV
              subscription:
                href: https://api.1global.com/connect/subscriptions/subs_01J67SMMCM050XM1C1ABQNFD9K
              phone_number:
                href: https://api.1global.com/connect/phone-numbers/pn_01J6795M195EXEECTPY9Y3QD66
    PortingInCanceledNotificationExample:
      summary: Porting Port-In Canceled Example
      value:
        id: evt_01J494G6WZAR2E2808Z8M07K4Z
        type: porting.canceled
        created_at: '2021-02-01T14:28:17.967Z'
        data:
          porting:
            id: port_01J6HE2DP5M8GKQ9P8R83VQW3J
            direction: in
            preferred_schedule:
              type: specific_date
              preferred_porting_at: '2024-08-30T10:42:34.309Z'
            country: DE
            status: canceled
            msisdn: '+4912341234123'
            donor_details:
              _embedded:
                network_operator:
                  id: nopr_01J6795M195EXEECTPY9Y3QD66
                  name: Operator Name
                  trade_name: Trade Operator Name
                  country: DE
                  status: active
                  code: TP
                  created_at: '2024-08-30T10:42:34.309Z'
                  updated_at: '2024-08-30T10:42:34.309Z'
                  _links:
                    self:
                      href: https://api.1global.com/connect/network-operators/nopr_01J6795M195EXEECTPY9Y3QD66
                service_provider:
                  id: spro_01J6795M195EXEECTPY9Y3QD66
                  name: Provider Name
                  country: DE
                  status: active
                  code: TRUP
                  created_at: '2024-08-30T10:42:34.309Z'
                  updated_at: '2024-08-30T10:42:34.309Z'
                  _links:
                    self:
                      href: https://api.1global.com/connect/service-providers/spro_01J6795M195EXEECTPY9Y3QD66
              account:
                type: personal
            canceled_at: '2024-10-01T14:28:17.456Z'
            created_at: '2024-08-30T10:42:34.309Z'
            updated_at: '2024-08-30T10:42:34.309Z'
            _links:
              self:
                href: https://api.1global.com/connect/portings/port_01J6HE2DP5M8GKQ9P8R83VQW3J
              account:
                href: https://api.1global.com/connect/acounts/acc_01J6795M195EXEECTPY9Y3QD66
              subscriber:
                href: https://api.1global.com/connect/subscriber/subr_01J67F1GGCN0ZMGJQ17NTYV3WV
              subscription:
                href: https://api.1global.com/connect/subscriptions/subs_01J67SMMCM050XM1C1ABQNFD9K
              phone_number:
                href: https://api.1global.com/connect/phone-numbers/pn_01J6795M195EXEECTPY9Y3QD66
    PortingOutPendingNotificationExample:
      summary: Porting Port-Out Pending Example
      value:
        id: evt_01J494G6WZAR2E2808Z8M07K4Z
        type: porting.pending
        created_at: '2021-02-01T14:28:17.967Z'
        data:
          porting:
            id: port_01J6HE2DP5M8GKQ9P8R83VQW3J
            direction: out
            termination_action: terminate
            preferred_schedule:
              type: first_available_date
              preferred_porting_at: '2024-08-30T10:42:34.309Z'
            country: DE
            status: pending
            recipient_details:
              _embedded:
                network_operator:
                  id: nopr_01J6795M195EXEECTPY9Y3QD66
                  name: Operator Name
                  trade_name: Trade Operator Name
                  country: DE
                  status: active
                  code: TP
                  created_at: '2024-08-30T10:42:34.309Z'
                  updated_at: '2024-08-30T10:42:34.309Z'
                  _links:
                    self:
                      href: https://api.1global.com/connect/network-operators/nopr_01J6795M195EXEECTPY9Y3QD66
                service_provider:
                  id: spro_01J6795M195EXEECTPY9Y3QD66
                  name: Provider Name
                  country: DE
                  status: active
                  code: TRUP
                  created_at: '2024-08-30T10:42:34.309Z'
                  updated_at: '2024-08-30T10:42:34.309Z'
                  _links:
                    self:
                      href: https://api.1global.com/connect/service-providers/spro_01J6795M195EXEECTPY9Y3QD66
            created_at: '2024-08-30T10:42:34.309Z'
            updated_at: '2024-08-30T10:42:34.309Z'
            _links:
              self:
                href: https://api.1global.com/connect/portings/port_01J6HE2DP5M8GKQ9P8R83VQW3J
              account:
                href: https://api.1global.com/connect/acounts/acc_01J6795M195EXEECTPY9Y3QD66
              subscriber:
                href: https://api.1global.com/connect/subscriber/subr_01J67F1GGCN0ZMGJQ17NTYV3WV
              subscription:
                href: https://api.1global.com/connect/subscriptions/subs_01J67SMMCM050XM1C1ABQNFD9K
              phone_number:
                href: https://api.1global.com/connect/phone-numbers/pn_01J6795M195EXEECTPY9Y3QD66
    PortingOutScheduledNotificationExample:
      summary: Porting Port-Out Scheduled Example
      value:
        id: evt_01J494G6WZAR2E2808Z8M07K4Z
        type: porting.scheduled
        created_at: '2021-02-01T14:28:17.967Z'
        data:
          porting:
            id: port_01J6HE2DP5M8GKQ9P8R83VQW3J
            direction: out
            termination_action: terminate
            preferred_schedule:
              type: first_available_date
              preferred_porting_at: '2024-08-30T10:42:34.309Z'
            country: DE
            status: scheduled
            recipient_details:
              _embedded:
                network_operator:
                  id: nopr_01J6795M195EXEECTPY9Y3QD66
                  name: Operator Name
                  trade_name: Trade Operator Name
                  country: DE
                  status: active
                  code: TP
                  created_at: '2024-08-30T10:42:34.309Z'
                  updated_at: '2024-08-30T10:42:34.309Z'
                  _links:
                    self:
                      href: https://api.1global.com/connect/network-operators/nopr_01J6795M195EXEECTPY9Y3QD66
                service_provider:
                  id: spro_01J6795M195EXEECTPY9Y3QD66
                  name: Provider Name
                  country: DE
                  status: active
                  code: TRUP
                  created_at: '2024-08-30T10:42:34.309Z'
                  updated_at: '2024-08-30T10:42:34.309Z'
                  _links:
                    self:
                      href: https://api.1global.com/connect/service-providers/spro_01J6795M195EXEECTPY9Y3QD66
            cancelation_deadline_at: '2024-10-01T14:28:17.456Z'
            scheduled_at: '2024-10-01T14:28:17.456Z'
            created_at: '2024-08-30T10:42:34.309Z'
            updated_at: '2024-08-30T10:42:34.309Z'
            _links:
              self:
                href: https://api.1global.com/connect/portings/port_01J6HE2DP5M8GKQ9P8R83VQW3J
              account:
                href: https://api.1global.com/connect/acounts/acc_01J6795M195EXEECTPY9Y3QD66
              subscriber:
                href: https://api.1global.com/connect/subscriber/subr_01J67F1GGCN0ZMGJQ17NTYV3WV
    PortingOutProcessingNotificationExample:
      summary: Porting Port-Out Processing Example
      value:
        id: evt_01J494G6WZAR2E2808Z8M07K4Z
        type: porting.processing
        created_at: '2021-02-01T14:28:17.967Z'
        data:
          porting:
            id: port_01J6HE2DP5M8GKQ9P8R83VQW3J
            direction: out
            termination_action: terminate
            preferred_schedule:
              type: first_available_date
              preferred_porting_at: '2024-08-30T10:42:34.309Z'
            country: DE
            status: processing
            recipient_details:
              _embedded:
                network_operator:
                  id: nopr_01J6795M195EXEECTPY9Y3QD66
                  name: Operator Name
                  trade_name: Trade Operator Name
                  country: DE
                  status: active
                  code: TP
                  created_at: '2024-08-30T10:42:34.309Z'
                  updated_at: '2024-08-30T10:42:34.309Z'
                  _links:
                    self:
                      href: https://api.1global.com/connect/network-operators/nopr_01J6795M195EXEECTPY9Y3QD66
                service_provider:
                  id: spro_01J6795M195EXEECTPY9Y3QD66
                  name: Provider Name
                  country: DE
                  status: active
                  code: TRUP
                  created_at: '2024-08-30T10:42:34.309Z'
                  updated_at: '2024-08-30T10:42:34.309Z'
                  _links:
                    self:
                      href: https://api.1global.com/connect/service-providers/spro_01J6795M195EXEECTPY9Y3QD66
            scheduled_at: '2024-10-01T14:28:17.456Z'
            created_at: '2024-08-30T10:42:34.309Z'
            updated_at: '2024-08-30T10:42:34.309Z'
            _links:
              self:
                href: https://api.1global.com/connect/portings/port_01J6HE2DP5M8GKQ9P8R83VQW3J
              account:
                href: https://api.1global.com/connect/acounts/acc_01J6795M195EXEECTPY9Y3QD66
              subscriber:
                href: https://api.1global.com/connect/subscriber/subr_01J67F1GGCN0ZMGJQ17NTYV3WV
              subscription:
                href: https://api.1global.com/connect/subscriptions/subs_01J67SMMCM050XM1C1ABQNFD9K
              phone_number:
                href: https://api.1global.com/connect/phone-numbers/pn_01J6795M195EXEECTPY9Y3QD66
    PortingOutCompletedNotificationExample:
      summary: Porting Port-Out Completed Example
      value:
        id: evt_01J494G6WZAR2E2808Z8M07K4Z
        type: porting.completed
        created_at: '2021-02-01T14:28:17.967Z'
        data:
          porting:
            id: port_01J6HE2DP5M8GKQ9P8R83VQW3J
            direction: out
            termination_action: terminate
            preferred_schedule:
              type: first_available_date
              preferred_porting_at: '2024-08-30T10:42:34.309Z'
            country: DE
            status: completed
            recipient_details:
              _embedded:
                network_operator:
                  id: nopr_01J6795M195EXEECTPY9Y3QD66
                  name: Operator Name
                  trade_name: Trade Operator Name
                  country: DE
                  status: active
                  code: TP
                  created_at: '2024-08-30T10:42:34.309Z'
                  updated_at: '2024-08-30T10:42:34.309Z'
                  _links:
                    self:
                      href: https://api.1global.com/connect/network-operators/nopr_01J6795M195EXEECTPY9Y3QD66
                service_provider:
                  id: spro_01J6795M195EXEECTPY9Y3QD66
                  name: Provider Name
                  country: DE
                  status: active
                  code: TRUP
                  created_at: '2024-08-30T10:42:34.309Z'
                  updated_at: '2024-08-30T10:42:34.309Z'
                  _links:
                    self:
                      href: https://api.1global.com/connect/service-providers/spro_01J6795M195EXEECTPY9Y3QD66
            completed_at: '2024-10-01T14:28:17.456Z'
            created_at: '2024-08-30T10:42:34.309Z'
            updated_at: '2024-08-30T10:42:34.309Z'
            _links:
              self:
                href: https://api.1global.com/connect/portings/port_01J6HE2DP5M8GKQ9P8R83VQW3J
              account:
                href: https://api.1global.com/connect/acounts/acc_01J6795M195EXEECTPY9Y3QD66
              subscriber:
                href: https://api.1global.com/connect/subscriber/subr_01J67F1GGCN0ZMGJQ17NTYV3WV
              subscription:
                href: https://api.1global.com/connect/subscriptions/subs_01J67SMMCM050XM1C1ABQNFD9K
              phone_number:
                href: https://api.1global.com/connect/phone-numbers/pn_01J6795M195EXEECTPY9Y3QD66
    PortingOutRejectedNotificationExample:
      summary: Porting Port-Out Rejected Example
      value:
        id: evt_01J494G6WZAR2E2808Z8M07K4Z
        type: porting.rejected
        created_at: '2021-02-01T14:28:17.967Z'
        data:
          porting:
            id: port_01J6HE2DP5M8GKQ9P8R83VQW3J
            direction: out
            termination_action: terminate
            preferred_schedule:
              type: first_available_date
              preferred_porting_at: '2024-08-30T10:42:34.309Z'
            country: DE
            status: rejected
            recipient_details:
              _embedded:
                network_operator:
                  id: nopr_01J6795M195EXEECTPY9Y3QD66
                  name: Operator Name
                  trade_name: Trade Operator Name
                  country: DE
                  status: active
                  code: TP
                  created_at: '2024-08-30T10:42:34.309Z'
                  updated_at: '2024-08-30T10:42:34.309Z'
                  _links:
                    self:
                      href: https://api.1global.com/connect/network-operators/nopr_01J6795M195EXEECTPY9Y3QD66
                service_provider:
                  id: spro_01J6795M195EXEECTPY9Y3QD66
                  name: Provider Name
                  country: DE
                  status: active
                  code: TRUP
                  created_at: '2024-08-30T10:42:34.309Z'
                  updated_at: '2024-08-30T10:42:34.309Z'
                  _links:
                    self:
                      href: https://api.1global.com/connect/service-providers/spro_01J6795M195EXEECTPY9Y3QD66
            rejection:
              reason: wrong_name
              message: Wrong name
              rejected_at: '2024-08-30T10:42:34.309Z'
            created_at: '2024-08-30T10:42:34.309Z'
            updated_at: '2024-08-30T10:42:34.309Z'
            _links:
              self:
                href: https://api.1global.com/connect/portings/port_01J6HE2DP5M8GKQ9P8R83VQW3J
              account:
                href: https://api.1global.com/connect/acounts/acc_01J6795M195EXEECTPY9Y3QD66
              subscriber:
                href: https://api.1global.com/connect/subscriber/subr_01J67F1GGCN0ZMGJQ17NTYV3WV
              subscription:
                href: https://api.1global.com/connect/subscriptions/subs_01J67SMMCM050XM1C1ABQNFD9K
              phone_number:
                href: https://api.1global.com/connect/phone-numbers/pn_01J6795M195EXEECTPY9Y3QD66
    PortingOutCancelationRequestedNotificationExample:
      summary: Porting Port-Out Cancelation Requested Example
      value:
        id: evt_01J494G6WZAR2E2808Z8M07K4Z
        type: porting.cancelation_requested
        created_at: '2021-02-01T14:28:17.967Z'
        data:
          porting:
            id: port_01J6HE2DP5M8GKQ9P8R83VQW3J
            direction: out
            termination_action: terminate
            preferred_schedule:
              type: first_available_date
              preferred_porting_at: '2024-08-30T10:42:34.309Z'
            country: DE
            status: cancelation_requested
            recipient_details:
              _embedded:
                network_operator:
                  id: nopr_01J6795M195EXEECTPY9Y3QD66
                  name: Operator Name
                  trade_name: Trade Operator Name
                  country: DE
                  status: active
                  code: TP
                  created_at: '2024-08-30T10:42:34.309Z'
                  updated_at: '2024-08-30T10:42:34.309Z'
                  _links:
                    self:
                      href: https://api.1global.com/connect/network-operators/nopr_01J6795M195EXEECTPY9Y3QD66
                service_provider:
                  id: spro_01J6795M195EXEECTPY9Y3QD66
                  name: Provider Name
                  country: DE
                  status: active
                  code: TRUP
                  created_at: '2024-08-30T10:42:34.309Z'
                  updated_at: '2024-08-30T10:42:34.309Z'
                  _links:
                    self:
                      href: https://api.1global.com/connect/service-providers/spro_01J6795M195EXEECTPY9Y3QD66
            cancelation_deadline_at: '2024-10-01T14:28:17.456Z'
            scheduled_at: '2024-10-01T14:28:17.456Z'
            created_at: '2024-08-30T10:42:34.309Z'
            updated_at: '2024-08-30T10:42:34.309Z'
            _links:
              self:
                href: https://api.1global.com/connect/portings/port_01J6HE2DP5M8GKQ9P8R83VQW3J
              account:
                href: https://api.1global.com/connect/acounts/acc_01J6795M195EXEECTPY9Y3QD66
              subscriber:
                href: https://api.1global.com/connect/subscriber/subr_01J67F1GGCN0ZMGJQ17NTYV3WV
              subscription:
                href: https://api.1global.com/connect/subscriptions/subs_01J67SMMCM050XM1C1ABQNFD9K
              phone_number:
                href: https://api.1global.com/connect/phone-numbers/pn_01J6795M195EXEECTPY9Y3QD66
              accept-cancelation:
                href: https://api.1global.com/connect/portings/port_01J67F1GGCN0ZMGJQ17NTYV3WV/accept-cancelation
              reject-cancelation:
                href: https://api.1global.com/connect/portings/port_01J67SMMCM050XM1C1ABQNFD9K/reject-cancelation
    PortingOutCanceledNotificationExample:
      summary: Porting Port-Out Canceled Example
      value:
        id: evt_01J494G6WZAR2E2808Z8M07K4Z
        type: porting.canceled
        created_at: '2021-02-01T14:28:17.967Z'
        data:
          porting:
            id: port_01J6HE2DP5M8GKQ9P8R83VQW3J
            direction: out
            termination_action: terminate
            preferred_schedule:
              type: first_available_date
              preferred_porting_at: '2024-08-30T10:42:34.309Z'
            country: DE
            status: canceled
            recipient_details:
              _embedded:
                network_operator:
                  id: nopr_01J6795M195EXEECTPY9Y3QD66
                  name: Operator Name
                  trade_name: Trade Operator Name
                  country: DE
                  status: active
                  code: TP
                  created_at: '2024-08-30T10:42:34.309Z'
                  updated_at: '2024-08-30T10:42:34.309Z'
                  _links:
                    self:
                      href: https://api.1global.com/connect/network-operators/nopr_01J6795M195EXEECTPY9Y3QD66
                service_provider:
                  id: spro_01J6795M195EXEECTPY9Y3QD66
                  name: Provider Name
                  country: DE
                  status: active
                  code: TRUP
                  created_at: '2024-08-30T10:42:34.309Z'
                  updated_at: '2024-08-30T10:42:34.309Z'
                  _links:
                    self:
                      href: https://api.1global.com/connect/service-providers/spro_01J6795M195EXEECTPY9Y3QD66
            canceled_at: '2024-10-01T14:28:17.456Z'
            created_at: '2024-08-30T10:42:34.309Z'
            updated_at: '2024-08-30T10:42:34.309Z'
            _links:
              self:
                href: https://api.1global.com/connect/portings/port_01J6HE2DP5M8GKQ9P8R83VQW3J
              account:
                href: https://api.1global.com/connect/acounts/acc_01J6795M195EXEECTPY9Y3QD66
              subscriber:
                href: https://api.1global.com/connect/subscriber/subr_01J67F1GGCN0ZMGJQ17NTYV3WV
              subscription:
                href: https://api.1global.com/connect/subscriptions/subs_01J67SMMCM050XM1C1ABQNFD9K
              phone_number:
                href: https://api.1global.com/connect/phone-numbers/pn_01J6795M195EXEECTPY9Y3QD66
    PortingOutRescheduleRequestedPLNotificationExample:
      summary: Porting Port-Out Reschedule Requested Example
      value:
        id: evt_01J494G6WZAR2E2808Z8M07K4Z
        type: porting.reschedule_requested
        created_at: '2021-02-01T14:28:17.967Z'
        data:
          porting:
            id: port_01J6HE2DP5M8GKQ9P8R83VQW3J
            direction: out
            termination_action: terminate
            preferred_schedule:
              type: specific_date
              preferred_porting_at: '2024-08-30T10:42:34.309Z'
            country: PL
            status: reschedule_requested
            recipient_details:
              _embedded:
                network_operator:
                  id: nopr_01J6795M195EXEECTPY9Y3QD66
                  name: Operator Name
                  trade_name: Trade Operator Name
                  country: DE
                  status: active
                  created_at: '2024-08-30T10:42:34.309Z'
                  updated_at: '2024-08-30T10:42:34.309Z'
                  _links:
                    self:
                      href: https://api.1global.com/connect/network-operators/nopr_01J6795M195EXEECTPY9Y3QD66
                service_provider:
                  id: spro_01J6795M195EXEECTPY9Y3QD66
                  name: Provider Name
                  country: DE
                  status: active
                  created_at: '2024-08-30T10:42:34.309Z'
                  updated_at: '2024-08-30T10:42:34.309Z'
                  _links:
                    self:
                      href: https://api.1global.com/connect/service-providers/spro_01J6795M195EXEECTPY9Y3QD66
            consents:
              power_of_attorney: true
              awareness_financial_consequences: true
            cancelation_deadline_at: '2024-09-29T14:28:17.456Z'
            scheduled_at: '2024-10-01T14:28:17.456Z'
            reschedule_requested_at: '2024-10-01T14:28:17.456Z'
            created_at: '2024-08-30T10:42:34.309Z'
            updated_at: '2024-08-30T10:42:34.309Z'
            _links:
              self:
                href: https://api.1global.com/connect/portings/port_01J6HE2DP5M8GKQ9P8R83VQW3J
              account:
                href: https://api.1global.com/connect/acounts/acc_01J6795M195EXEECTPY9Y3QD66
              subscriber:
                href: https://api.1global.com/connect/subscriber/subr_01J67F1GGCN0ZMGJQ17NTYV3WV
              subscription:
                href: https://api.1global.com/connect/subscriptions/subs_01J67SMMCM050XM1C1ABQNFD9K
              phone_number:
                href: https://api.1global.com/connect/phone-numbers/pn_01J6795M195EXEECTPY9Y3QD66

    PortingOutPendingDE:
      summary: Pending Port-Out DE
      value:
        id: port_01J6HE2DP5M8GKQ9P8R83VQW3J
        direction: out
        termination_action: terminate
        preferred_schedule:
          type: first_available_date
          preferred_porting_at: '2024-08-30T10:42:34.309Z'
        country: DE
        status: pending
        recipient_details:
          _embedded:
            network_operator:
              id: nopr_01J6795M195EXEECTPY9Y3QD66
              name: Operator Name
              trade_name: Trade Operator Name
              country: DE
              status: active
              created_at: '2024-08-30T10:42:34.309Z'
              updated_at: '2024-08-30T10:42:34.309Z'
              _links:
                self:
                  href: https://api.1global.com/connect/network-operators/nopr_01J6795M195EXEECTPY9Y3QD66
            service_provider:
              id: spro_01J6795M195EXEECTPY9Y3QD66
              name: Provider Name
              country: DE
              status: active
              created_at: '2024-08-30T10:42:34.309Z'
              updated_at: '2024-08-30T10:42:34.309Z'
              _links:
                self:
                  href: https://api.1global.com/connect/service-providers/spro_01J6795M195EXEECTPY9Y3QD66

        created_at: '2024-08-30T10:42:34.309Z'
        updated_at: '2024-08-30T10:42:34.309Z'

        _links:
          self:
            href: https://api.1global.com/connect/portings/port_01J6HE2DP5M8GKQ9P8R83VQW3J
          account:
            href: https://api.1global.com/connect/acounts/acc_01J6795M195EXEECTPY9Y3QD66
          subscriber:
            href: https://api.1global.com/connect/subscriber/subr_01J67F1GGCN0ZMGJQ17NTYV3WV
          subscription:
            href: https://api.1global.com/connect/subscriptions/subs_01J67SMMCM050XM1C1ABQNFD9K
          phone_number:
            href: https://api.1global.com/connect/phone-numbers/pn_01J6795M195EXEECTPY9Y3QD66
    PortingOutScheduledDE:
      summary: Scheduled Port-Out DE
      value:
        id: port_01J6HE2DP5M8GKQ9P8R83VQW3J
        direction: out
        termination_action: terminate
        preferred_schedule:
          type: first_available_date
          preferred_porting_at: '2024-08-30T10:42:34.309Z'
        country: DE
        status: scheduled
        recipient_details:
          _embedded:
            network_operator:
              id: nopr_01J6795M195EXEECTPY9Y3QD66
              name: Operator Name
              trade_name: Trade Operator Name
              country: DE
              status: active
              created_at: '2024-08-30T10:42:34.309Z'
              updated_at: '2024-08-30T10:42:34.309Z'
              _links:
                self:
                  href: https://api.1global.com/connect/network-operators/nopr_01J6795M195EXEECTPY9Y3QD66
            service_provider:
              id: spro_01J6795M195EXEECTPY9Y3QD66
              name: Provider Name
              country: DE
              status: active
              created_at: '2024-08-30T10:42:34.309Z'
              updated_at: '2024-08-30T10:42:34.309Z'
              _links:
                self:
                  href: https://api.1global.com/connect/service-providers/spro_01J6795M195EXEECTPY9Y3QD66

        cancelation_deadline_at: '2024-10-01T14:28:17.456Z'
        scheduled_at: '2024-10-01T14:28:17.456Z'
        created_at: '2024-08-30T10:42:34.309Z'
        updated_at: '2024-08-30T10:42:34.309Z'
        _links:
          self:
            href: https://api.1global.com/connect/portings/port_01J6HE2DP5M8GKQ9P8R83VQW3J
          account:
            href: https://api.1global.com/connect/acounts/acc_01J6795M195EXEECTPY9Y3QD66
          subscriber:
            href: https://api.1global.com/connect/subscriber/subr_01J67F1GGCN0ZMGJQ17NTYV3WV
          subscription:
            href: https://api.1global.com/connect/subscriptions/subs_01J67SMMCM050XM1C1ABQNFD9K
          phone_number:
            href: https://api.1global.com/connect/phone-numbers/pn_01J6795M195EXEECTPY9Y3QD66
    PortingOutCancelationRequestedDE:
      summary: Cancelation Requested Port-Out DE
      value:
        id: port_01J6HE2DP5M8GKQ9P8R83VQW3J
        direction: out
        termination_action: terminate
        preferred_schedule:
          type: first_available_date
          preferred_porting_at: '2024-08-30T10:42:34.309Z'
        country: DE
        status: cancelation_requested
        recipient_details:
          _embedded:
            network_operator:
              id: nopr_01J6795M195EXEECTPY9Y3QD66
              name: Operator Name
              trade_name: Trade Operator Name
              country: DE
              status: active
              created_at: '2024-08-30T10:42:34.309Z'
              updated_at: '2024-08-30T10:42:34.309Z'
              _links:
                self:
                  href: https://api.1global.com/connect/network-operators/nopr_01J6795M195EXEECTPY9Y3QD66
            service_provider:
              id: spro_01J6795M195EXEECTPY9Y3QD66
              name: Provider Name
              country: DE
              status: active
              created_at: '2024-08-30T10:42:34.309Z'
              updated_at: '2024-08-30T10:42:34.309Z'
              _links:
                self:
                  href: https://api.1global.com/connect/service-providers/spro_01J6795M195EXEECTPY9Y3QD66

        cancelation_deadline_at: '2024-10-01T14:28:17.456Z'
        scheduled_at: '2024-10-01T14:28:17.456Z'
        created_at: '2024-08-30T10:42:34.309Z'
        updated_at: '2024-08-30T10:42:34.309Z'

        _links:
          self:
            href: https://api.1global.com/connect/portings/port_01J6HE2DP5M8GKQ9P8R83VQW3J
          account:
            href: https://api.1global.com/connect/acounts/acc_01J6795M195EXEECTPY9Y3QD66
          subscriber:
            href: https://api.1global.com/connect/subscriber/subr_01J67F1GGCN0ZMGJQ17NTYV3WV
          subscription:
            href: https://api.1global.com/connect/subscriptions/subs_01J67SMMCM050XM1C1ABQNFD9K
          phone_number:
            href: https://api.1global.com/connect/phone-numbers/pn_01J6795M195EXEECTPY9Y3QD66
          accept-cancelation:
            href: https://api.1global.com/connect/portings/port_01J67F1GGCN0ZMGJQ17NTYV3WV/accept-cancelation
          reject-cancelation:
            href: https://api.1global.com/connect/portings/port_01J67SMMCM050XM1C1ABQNFD9K/reject-cancelation
    PortingOutCanceledDE:
      summary: Canceled Port-Out DE
      value:
        id: port_01J6HE2DP5M8GKQ9P8R83VQW3J
        direction: out
        termination_action: terminate
        preferred_schedule:
          type: first_available_date
          preferred_porting_at: '2024-08-30T10:42:34.309Z'
        country: DE
        status: canceled
        recipient_details:
          _embedded:
            network_operator:
              id: nopr_01J6795M195EXEECTPY9Y3QD66
              name: Operator Name
              trade_name: Trade Operator Name
              country: DE
              status: active
              created_at: '2024-08-30T10:42:34.309Z'
              updated_at: '2024-08-30T10:42:34.309Z'
              _links:
                self:
                  href: https://api.1global.com/connect/network-operators/nopr_01J6795M195EXEECTPY9Y3QD66
            service_provider:
              id: spro_01J6795M195EXEECTPY9Y3QD66
              name: Provider Name
              country: DE
              status: active
              created_at: '2024-08-30T10:42:34.309Z'
              updated_at: '2024-08-30T10:42:34.309Z'
              _links:
                self:
                  href: https://api.1global.com/connect/service-providers/spro_01J6795M195EXEECTPY9Y3QD66

        canceled_at: '2024-10-01T14:28:17.456Z'
        created_at: '2024-08-30T10:42:34.309Z'
        updated_at: '2024-08-30T10:42:34.309Z'
        _links:
          self:
            href: https://api.1global.com/connect/portings/port_01J6HE2DP5M8GKQ9P8R83VQW3J
          account:
            href: https://api.1global.com/connect/acounts/acc_01J6795M195EXEECTPY9Y3QD66
          subscriber:
            href: https://api.1global.com/connect/subscriber/subr_01J67F1GGCN0ZMGJQ17NTYV3WV
          subscription:
            href: https://api.1global.com/connect/subscriptions/subs_01J67SMMCM050XM1C1ABQNFD9K
          phone_number:
            href: https://api.1global.com/connect/phone-numbers/pn_01J6795M195EXEECTPY9Y3QD66
    PortingOutScheduledDeclinedCancelationDE:
      summary: Scheduled after Declined Cancelation Port-Out DE
      value:
        id: port_01J6HE2DP5M8GKQ9P8R83VQW3J
        direction: out
        termination_action: terminate
        preferred_schedule:
          type: first_available_date
          preferred_porting_at: '2024-08-30T10:42:34.309Z'
        country: DE
        status: scheduled
        recipient_details:
          _embedded:
            network_operator:
              id: nopr_01J6795M195EXEECTPY9Y3QD66
              name: Operator Name
              trade_name: Trade Operator Name
              country: DE
              status: active
              created_at: '2024-08-30T10:42:34.309Z'
              updated_at: '2024-08-30T10:42:34.309Z'
              _links:
                self:
                  href: https://api.1global.com/connect/network-operators/nopr_01J6795M195EXEECTPY9Y3QD66
            service_provider:
              id: spro_01J6795M195EXEECTPY9Y3QD66
              name: Provider Name
              country: DE
              status: active
              created_at: '2024-08-30T10:42:34.309Z'
              updated_at: '2024-08-30T10:42:34.309Z'
              _links:
                self:
                  href: https://api.1global.com/connect/service-providers/spro_01J6795M195EXEECTPY9Y3QD66
        cancelation_deadline_at: '2024-10-01T14:28:17.456Z'
        scheduled_at: '2024-10-01T14:28:17.456Z'
        declined_cancelation:
          declined_attempts: 2
          reason: cancelation_too_late
          message: 'It was too late'
          declined_at: '2024-08-30T10:42:34.309Z'
        created_at: '2024-08-30T10:42:34.309Z'
        updated_at: '2024-08-30T10:42:34.309Z'
        _links:
          self:
            href: https://api.1global.com/connect/portings/port_01J6HE2DP5M8GKQ9P8R83VQW3J
          account:
            href: https://api.1global.com/connect/acounts/acc_01J6795M195EXEECTPY9Y3QD66
          subscriber:
            href: https://api.1global.com/connect/subscriber/subr_01J67F1GGCN0ZMGJQ17NTYV3WV
          subscription:
            href: https://api.1global.com/connect/subscriptions/subs_01J67SMMCM050XM1C1ABQNFD9K
          phone_number:
            href: https://api.1global.com/connect/phone-numbers/pn_01J6795M195EXEECTPY9Y3QD66
    PortingOutProcessingDE:
      summary: Processing Port-Out DE
      value:
        id: port_01J6HE2DP5M8GKQ9P8R83VQW3J
        direction: out
        termination_action: terminate
        preferred_schedule:
          type: first_available_date
          preferred_porting_at: '2024-08-30T10:42:34.309Z'
        country: DE
        status: processing
        recipient_details:
          _embedded:
            network_operator:
              id: nopr_01J6795M195EXEECTPY9Y3QD66
              name: Operator Name
              trade_name: Trade Operator Name
              country: DE
              status: active
              created_at: '2024-08-30T10:42:34.309Z'
              updated_at: '2024-08-30T10:42:34.309Z'
              _links:
                self:
                  href: https://api.1global.com/connect/network-operators/nopr_01J6795M195EXEECTPY9Y3QD66
            service_provider:
              id: spro_01J6795M195EXEECTPY9Y3QD66
              name: Provider Name
              country: DE
              status: active
              created_at: '2024-08-30T10:42:34.309Z'
              updated_at: '2024-08-30T10:42:34.309Z'
              _links:
                self:
                  href: https://api.1global.com/connect/service-providers/spro_01J6795M195EXEECTPY9Y3QD66

        scheduled_at: '2024-10-01T14:28:17.456Z'
        created_at: '2024-08-30T10:42:34.309Z'
        updated_at: '2024-08-30T10:42:34.309Z'
        _links:
          self:
            href: https://api.1global.com/connect/portings/port_01J6HE2DP5M8GKQ9P8R83VQW3J
          account:
            href: https://api.1global.com/connect/acounts/acc_01J6795M195EXEECTPY9Y3QD66
          subscriber:
            href: https://api.1global.com/connect/subscriber/subr_01J67F1GGCN0ZMGJQ17NTYV3WV
          subscription:
            href: https://api.1global.com/connect/subscriptions/subs_01J67SMMCM050XM1C1ABQNFD9K
          phone_number:
            href: https://api.1global.com/connect/phone-numbers/pn_01J6795M195EXEECTPY9Y3QD66
    PortingOutCompletedDE:
      summary: Completed Port-Out DE
      value:
        id: port_01J6HE2DP5M8GKQ9P8R83VQW3J
        direction: out
        termination_action: terminate
        preferred_schedule:
          type: first_available_date
          preferred_porting_at: '2024-08-30T10:42:34.309Z'
        country: DE
        status: completed
        recipient_details:
          _embedded:
            network_operator:
              id: nopr_01J6795M195EXEECTPY9Y3QD66
              name: Operator Name
              trade_name: Trade Operator Name
              country: DE
              status: active
              created_at: '2024-08-30T10:42:34.309Z'
              updated_at: '2024-08-30T10:42:34.309Z'
              _links:
                self:
                  href: https://api.1global.com/connect/network-operators/nopr_01J6795M195EXEECTPY9Y3QD66
            service_provider:
              id: spro_01J6795M195EXEECTPY9Y3QD66
              name: Provider Name
              country: DE
              status: active
              created_at: '2024-08-30T10:42:34.309Z'
              updated_at: '2024-08-30T10:42:34.309Z'
              _links:
                self:
                  href: https://api.1global.com/connect/service-providers/spro_01J6795M195EXEECTPY9Y3QD66

        completed_at: '2024-10-01T14:28:17.456Z'
        created_at: '2024-08-30T10:42:34.309Z'
        updated_at: '2024-08-30T10:42:34.309Z'
        _links:
          self:
            href: https://api.1global.com/connect/portings/port_01J6HE2DP5M8GKQ9P8R83VQW3J
          account:
            href: https://api.1global.com/connect/acounts/acc_01J6795M195EXEECTPY9Y3QD66
          subscriber:
            href: https://api.1global.com/connect/subscriber/subr_01J67F1GGCN0ZMGJQ17NTYV3WV
          subscription:
            href: https://api.1global.com/connect/subscriptions/subs_01J67SMMCM050XM1C1ABQNFD9K
          phone_number:
            href: https://api.1global.com/connect/phone-numbers/pn_01J6795M195EXEECTPY9Y3QD66
    PortingInDraftDE:
      summary: Draft Port-In DE
      value:
        id: port_01J6HE2DP5M8GKQ9P8R83VQW3J
        direction: in
        preferred_schedule:
          type: first_available_date
          preferred_porting_at: '2024-08-30T10:42:34.309Z'
        country: DE
        status: draft
        msisdn: '+4912341234123'
        donor_details:
          _embedded:
            network_operator:
              id: nopr_01J6795M195EXEECTPY9Y3QD66
              name: Operator Name
              trade_name: Trade Operator Name
              country: DE
              status: active
              created_at: '2024-08-30T10:42:34.309Z'
              updated_at: '2024-08-30T10:42:34.309Z'
              _links:
                self:
                  href: https://api.1global.com/connect/network-operators/nopr_01J6795M195EXEECTPY9Y3QD66
            service_provider:
              id: spro_01J6795M195EXEECTPY9Y3QD66
              name: Provider Name
              country: DE
              status: active
              created_at: '2024-08-30T10:42:34.309Z'
              updated_at: '2024-08-30T10:42:34.309Z'
              _links:
                self:
                  href: https://api.1global.com/connect/service-providers/spro_01J6795M195EXEECTPY9Y3QD66
          account:
            type: personal
        created_at: '2024-08-30T10:42:34.309Z'
        updated_at: '2024-08-30T10:42:34.309Z'

        _links:
          self:
            href: https://api.1global.com/connect/portings/port_01J6HE2DP5M8GKQ9P8R83VQW3J
          account:
            href: https://api.1global.com/connect/acounts/acc_01J6795M195EXEECTPY9Y3QD66
          subscriber:
            href: https://api.1global.com/connect/subscriber/subr_01J67F1GGCN0ZMGJQ17NTYV3WV
          subscription:
            href: https://api.1global.com/connect/subscriptions/subs_01J67SMMCM050XM1C1ABQNFD9K
          phone_number:
            href: https://api.1global.com/connect/phone-numbers/pn_01J6795M195EXEECTPY9Y3QD66
    PortingInPendingDE:
      summary: Pending Port-In DE
      value:
        id: port_01J6HE2DP5M8GKQ9P8R83VQW3J
        direction: in
        preferred_schedule:
          type: first_available_date
          preferred_porting_at: '2024-08-30T10:42:34.309Z'
        country: DE
        status: pending
        msisdn: '+4912341234123'
        donor_details:
          _embedded:
            network_operator:
              id: nopr_01J6795M195EXEECTPY9Y3QD66
              name: Operator Name
              trade_name: Trade Operator Name
              country: DE
              status: active
              created_at: '2024-08-30T10:42:34.309Z'
              updated_at: '2024-08-30T10:42:34.309Z'
              _links:
                self:
                  href: https://api.1global.com/connect/network-operators/nopr_01J6795M195EXEECTPY9Y3QD66
            service_provider:
              id: spro_01J6795M195EXEECTPY9Y3QD66
              name: Provider Name
              country: DE
              status: active
              created_at: '2024-08-30T10:42:34.309Z'
              updated_at: '2024-08-30T10:42:34.309Z'
              _links:
                self:
                  href: https://api.1global.com/connect/service-providers/spro_01J6795M195EXEECTPY9Y3QD66
          account:
            type: personal
        created_at: '2024-08-30T10:42:34.309Z'
        updated_at: '2024-08-30T10:42:34.309Z'

        _links:
          self:
            href: https://api.1global.com/connect/portings/port_01J6HE2DP5M8GKQ9P8R83VQW3J
          account:
            href: https://api.1global.com/connect/acounts/acc_01J6795M195EXEECTPY9Y3QD66
          subscriber:
            href: https://api.1global.com/connect/subscriber/subr_01J67F1GGCN0ZMGJQ17NTYV3WV
          subscription:
            href: https://api.1global.com/connect/subscriptions/subs_01J67SMMCM050XM1C1ABQNFD9K
          phone_number:
            href: https://api.1global.com/connect/phone-numbers/pn_01J6795M195EXEECTPY9Y3QD66
    PortingInRejectedDE:
      summary: Rejected Port-In DE
      value:
        id: port_01J6HE2DP5M8GKQ9P8R83VQW3J
        direction: in
        preferred_schedule:
          type: first_available_date
          preferred_porting_at: '2024-08-30T10:42:34.309Z'
        country: DE
        status: rejected
        msisdn: '+4912341234123'
        donor_details:
          _embedded:
            network_operator:
              id: nopr_01J6795M195EXEECTPY9Y3QD66
              name: Operator Name
              trade_name: Trade Operator Name
              country: DE
              status: active
              created_at: '2024-08-30T10:42:34.309Z'
              updated_at: '2024-08-30T10:42:34.309Z'
              _links:
                self:
                  href: https://api.1global.com/connect/network-operators/nopr_01J6795M195EXEECTPY9Y3QD66
            service_provider:
              id: spro_01J6795M195EXEECTPY9Y3QD66
              name: Provider Name
              country: DE
              status: active
              created_at: '2024-08-30T10:42:34.309Z'
              updated_at: '2024-08-30T10:42:34.309Z'
              _links:
                self:
                  href: https://api.1global.com/connect/service-providers/spro_01J6795M195EXEECTPY9Y3QD66
          account:
            type: personal
        rejection:
          reason: wrong_birth_date
          message: 'Wrong birth date'
          rejected_at: '2024-08-31T10:42:34.309Z'
        created_at: '2024-08-30T10:42:34.309Z'
        updated_at: '2024-08-30T10:42:34.309Z'

        _links:
          self:
            href: https://api.1global.com/connect/portings/port_01J6HE2DP5M8GKQ9P8R83VQW3J
          account:
            href: https://api.1global.com/connect/acounts/acc_01J6795M195EXEECTPY9Y3QD66
          subscriber:
            href: https://api.1global.com/connect/subscriber/subr_01J67F1GGCN0ZMGJQ17NTYV3WV
          subscription:
            href: https://api.1global.com/connect/subscriptions/subs_01J67SMMCM050XM1C1ABQNFD9K
          phone_number:
            href: https://api.1global.com/connect/phone-numbers/pn_01J6795M195EXEECTPY9Y3QD66
    PortingInScheduledDE:
      summary: Scheduled Port-In DE
      value:
        id: port_01J6HE2DP5M8GKQ9P8R83VQW3J
        direction: in
        preferred_schedule:
          type: first_available_date
          preferred_porting_at: '2024-08-30T10:42:34.309Z'
        country: DE
        status: scheduled
        msisdn: '+4912341234123'
        donor_details:
          _embedded:
            network_operator:
              id: nopr_01J6795M195EXEECTPY9Y3QD66
              name: Operator Name
              trade_name: Trade Operator Name
              country: DE
              status: active
              created_at: '2024-08-30T10:42:34.309Z'
              updated_at: '2024-08-30T10:42:34.309Z'
              _links:
                self:
                  href: https://api.1global.com/connect/network-operators/nopr_01J6795M195EXEECTPY9Y3QD66
            service_provider:
              id: spro_01J6795M195EXEECTPY9Y3QD66
              name: Provider Name
              country: DE
              status: active
              created_at: '2024-08-30T10:42:34.309Z'
              updated_at: '2024-08-30T10:42:34.309Z'
              _links:
                self:
                  href: https://api.1global.com/connect/service-providers/spro_01J6795M195EXEECTPY9Y3QD66
          account:
            type: personal
        cancelation_deadline_at: '2024-10-01T14:28:17.456Z'
        scheduled_at: '2024-10-01T14:28:17.456Z'
        created_at: '2024-08-30T10:42:34.309Z'
        updated_at: '2024-08-30T10:42:34.309Z'

        _links:
          self:
            href: https://api.1global.com/connect/portings/port_01J6HE2DP5M8GKQ9P8R83VQW3J
          account:
            href: https://api.1global.com/connect/acounts/acc_01J6795M195EXEECTPY9Y3QD66
          subscriber:
            href: https://api.1global.com/connect/subscriber/subr_01J67F1GGCN0ZMGJQ17NTYV3WV
          subscription:
            href: https://api.1global.com/connect/subscriptions/subs_01J67SMMCM050XM1C1ABQNFD9K
          phone_number:
            href: https://api.1global.com/connect/phone-numbers/pn_01J6795M195EXEECTPY9Y3QD66
          request-cancelation:
            href: https://api.1global.com/connect/portings/port_01J67SMMCM050XM1C1ABQNFD9K/request-cancelation
    PortingInCancelationRequestedDE:
      summary: Requested Cancelation Port-In DE
      value:
        id: port_01J6HE2DP5M8GKQ9P8R83VQW3J
        direction: in
        preferred_schedule:
          type: first_available_date
          preferred_porting_at: '2024-08-30T10:42:34.309Z'
        country: DE
        status: cancelation_requested
        msisdn: '+4912341234123'
        donor_details:
          _embedded:
            network_operator:
              id: nopr_01J6795M195EXEECTPY9Y3QD66
              name: Operator Name
              trade_name: Trade Operator Name
              country: DE
              status: active
              created_at: '2024-08-30T10:42:34.309Z'
              updated_at: '2024-08-30T10:42:34.309Z'
              _links:
                self:
                  href: https://api.1global.com/connect/network-operators/nopr_01J6795M195EXEECTPY9Y3QD66
            service_provider:
              id: spro_01J6795M195EXEECTPY9Y3QD66
              name: Provider Name
              country: DE
              status: active
              created_at: '2024-08-30T10:42:34.309Z'
              updated_at: '2024-08-30T10:42:34.309Z'
              _links:
                self:
                  href: https://api.1global.com/connect/service-providers/spro_01J6795M195EXEECTPY9Y3QD66
          account:
            type: personal
        cancelation_deadline_at: '2024-10-01T14:28:17.456Z'
        scheduled_at: '2024-10-01T14:28:17.456Z'
        created_at: '2024-08-30T10:42:34.309Z'
        updated_at: '2024-08-30T10:42:34.309Z'

        _links:
          self:
            href: https://api.1global.com/connect/portings/port_01J6HE2DP5M8GKQ9P8R83VQW3J
          account:
            href: https://api.1global.com/connect/acounts/acc_01J6795M195EXEECTPY9Y3QD66
          subscriber:
            href: https://api.1global.com/connect/subscriber/subr_01J67F1GGCN0ZMGJQ17NTYV3WV
          subscription:
            href: https://api.1global.com/connect/subscriptions/subs_01J67SMMCM050XM1C1ABQNFD9K
          phone_number:
            href: https://api.1global.com/connect/phone-numbers/pn_01J6795M195EXEECTPY9Y3QD66
    PortingInCanceledDE:
      summary: Canceled Port-In DE
      value:
        id: port_01J6HE2DP5M8GKQ9P8R83VQW3J
        direction: in
        preferred_schedule:
          type: first_available_date
          preferred_porting_at: '2024-08-30T10:42:34.309Z'
        country: DE
        status: canceled
        msisdn: '+4912341234123'
        donor_details:
          _embedded:
            network_operator:
              id: nopr_01J6795M195EXEECTPY9Y3QD66
              name: Operator Name
              trade_name: Trade Operator Name
              country: DE
              status: active
              created_at: '2024-08-30T10:42:34.309Z'
              updated_at: '2024-08-30T10:42:34.309Z'
              _links:
                self:
                  href: https://api.1global.com/connect/network-operators/nopr_01J6795M195EXEECTPY9Y3QD66
            service_provider:
              id: spro_01J6795M195EXEECTPY9Y3QD66
              name: Provider Name
              country: DE
              status: active
              created_at: '2024-08-30T10:42:34.309Z'
              updated_at: '2024-08-30T10:42:34.309Z'
              _links:
                self:
                  href: https://api.1global.com/connect/service-providers/spro_01J6795M195EXEECTPY9Y3QD66
          account:
            type: personal
        canceled_at: '2024-10-01T14:28:17.456Z'
        created_at: '2024-08-30T10:42:34.309Z'
        updated_at: '2024-08-30T10:42:34.309Z'
        _links:
          self:
            href: https://api.1global.com/connect/portings/port_01J6HE2DP5M8GKQ9P8R83VQW3J
          account:
            href: https://api.1global.com/connect/acounts/acc_01J6795M195EXEECTPY9Y3QD66
          subscriber:
            href: https://api.1global.com/connect/subscriber/subr_01J67F1GGCN0ZMGJQ17NTYV3WV
          subscription:
            href: https://api.1global.com/connect/subscriptions/subs_01J67SMMCM050XM1C1ABQNFD9K
          phone_number:
            href: https://api.1global.com/connect/phone-numbers/pn_01J6795M195EXEECTPY9Y3QD66
    PortingInScheduledDeclinedCancelationDE:
      summary: Scheduled after Declined Cancelation Port-In DE
      value:
        id: port_01J6HE2DP5M8GKQ9P8R83VQW3J
        direction: in
        preferred_schedule:
          type: first_available_date
          preferred_porting_at: '2024-08-30T10:42:34.309Z'
        country: DE
        status: scheduled
        msisdn: '+4912341234123'
        donor_details:
          _embedded:
            network_operator:
              id: nopr_01J6795M195EXEECTPY9Y3QD66
              name: Operator Name
              trade_name: Trade Operator Name
              country: DE
              status: active
              created_at: '2024-08-30T10:42:34.309Z'
              updated_at: '2024-08-30T10:42:34.309Z'
              _links:
                self:
                  href: https://api.1global.com/connect/network-operators/nopr_01J6795M195EXEECTPY9Y3QD66
            service_provider:
              id: spro_01J6795M195EXEECTPY9Y3QD66
              name: Provider Name
              country: DE
              status: active
              created_at: '2024-08-30T10:42:34.309Z'
              updated_at: '2024-08-30T10:42:34.309Z'
              _links:
                self:
                  href: https://api.1global.com/connect/service-providers/spro_01J6795M195EXEECTPY9Y3QD66
          account:
            type: personal
        cancelation_deadline_at: '2024-10-01T14:28:17.456Z'
        scheduled_at: '2024-10-01T14:28:17.456Z'
        declined_cancelation:
          declined_attempts: 2
          reason: cancelation_too_late
          message: 'It was too late'
          declined_at: '2024-08-30T10:42:34.309Z'
        created_at: '2024-08-30T10:42:34.309Z'
        updated_at: '2024-08-30T10:42:34.309Z'
        _links:
          self:
            href: https://api.1global.com/connect/portings/port_01J6HE2DP5M8GKQ9P8R83VQW3J
          account:
            href: https://api.1global.com/connect/acounts/acc_01J6795M195EXEECTPY9Y3QD66
          subscriber:
            href: https://api.1global.com/connect/subscriber/subr_01J67F1GGCN0ZMGJQ17NTYV3WV
          subscription:
            href: https://api.1global.com/connect/subscriptions/subs_01J67SMMCM050XM1C1ABQNFD9K
          phone_number:
            href: https://api.1global.com/connect/phone-numbers/pn_01J6795M195EXEECTPY9Y3QD66
    PortingInProcessingDE:
      summary: Processing Port-In DE
      value:
        id: port_01J6HE2DP5M8GKQ9P8R83VQW3J
        direction: in
        cancelation_deadline_at: '2024-09-29T10:42:34.309Z'
        preferred_schedule:
          type: first_available_date
          preferred_porting_at: '2024-08-30T10:42:34.309Z'
        country: DE
        status: processing
        msisdn: '+4912341234123'
        donor_details:
          _embedded:
            network_operator:
              id: nopr_01J6795M195EXEECTPY9Y3QD66
              name: Operator Name
              trade_name: Trade Operator Name
              country: DE
              status: active
              created_at: '2024-08-30T10:42:34.309Z'
              updated_at: '2024-08-30T10:42:34.309Z'
              _links:
                self:
                  href: https://api.1global.com/connect/network-operators/nopr_01J6795M195EXEECTPY9Y3QD66
            service_provider:
              id: spro_01J6795M195EXEECTPY9Y3QD66
              name: Provider Name
              country: DE
              status: active
              created_at: '2024-08-30T10:42:34.309Z'
              updated_at: '2024-08-30T10:42:34.309Z'
              _links:
                self:
                  href: https://api.1global.com/connect/service-providers/spro_01J6795M195EXEECTPY9Y3QD66
          account:
            type: personal
        scheduled_at: '2024-10-01T14:28:17.456Z'
        created_at: '2024-08-30T10:42:34.309Z'
        updated_at: '2024-08-30T10:42:34.309Z'
        _links:
          self:
            href: https://api.1global.com/connect/portings/port_01J6HE2DP5M8GKQ9P8R83VQW3J
          account:
            href: https://api.1global.com/connect/acounts/acc_01J6795M195EXEECTPY9Y3QD66
          subscriber:
            href: https://api.1global.com/connect/subscriber/subr_01J67F1GGCN0ZMGJQ17NTYV3WV
          subscription:
            href: https://api.1global.com/connect/subscriptions/subs_01J67SMMCM050XM1C1ABQNFD9K
          phone_number:
            href: https://api.1global.com/connect/phone-numbers/pn_01J6795M195EXEECTPY9Y3QD66
    PortingInCompletedDE:
      summary: Completed Port-In DE
      value:
        id: port_01J6HE2DP5M8GKQ9P8R83VQW3J
        direction: in
        preferred_schedule:
          type: first_available_date
          preferred_porting_at: '2024-08-30T10:42:34.309Z'
        country: DE
        status: completed
        msisdn: '+4912341234123'
        donor_details:
          _embedded:
            network_operator:
              id: nopr_01J6795M195EXEECTPY9Y3QD66
              name: Operator Name
              trade_name: Trade Operator Name
              country: DE
              status: active
              created_at: '2024-08-30T10:42:34.309Z'
              updated_at: '2024-08-30T10:42:34.309Z'
              _links:
                self:
                  href: https://api.1global.com/connect/network-operators/nopr_01J6795M195EXEECTPY9Y3QD66
            service_provider:
              id: spro_01J6795M195EXEECTPY9Y3QD66
              name: Provider Name
              country: DE
              status: active
              created_at: '2024-08-30T10:42:34.309Z'
              updated_at: '2024-08-30T10:42:34.309Z'
              _links:
                self:
                  href: https://api.1global.com/connect/service-providers/spro_01J6795M195EXEECTPY9Y3QD66
          account:
            type: personal
        completed_at: '2024-10-01T14:28:17.456Z'
        created_at: '2024-08-30T10:42:34.309Z'
        updated_at: '2024-08-30T10:42:34.309Z'
        _links:
          self:
            href: https://api.1global.com/connect/portings/port_01J6HE2DP5M8GKQ9P8R83VQW3J
          account:
            href: https://api.1global.com/connect/acounts/acc_01J6795M195EXEECTPY9Y3QD66
          subscriber:
            href: https://api.1global.com/connect/subscriber/subr_01J67F1GGCN0ZMGJQ17NTYV3WV
          subscription:
            href: https://api.1global.com/connect/subscriptions/subs_01J67SMMCM050XM1C1ABQNFD9K
          phone_number:
            href: https://api.1global.com/connect/phone-numbers/pn_01J6795M195EXEECTPY9Y3QD66
    
    PortingOutPendingPL:
      summary: Pending Port-Out PL
      value:
        id: port_01J6HE2DP5M8GKQ9P8R83VQW3J
        direction: out
        termination_action: terminate
        preferred_schedule:
          type: specific_date
          preferred_porting_at: '2024-08-30T10:42:34.309Z'
        country: PL
        status: pending
        recipient_details:
          _embedded:
            network_operator:
              id: nopr_01J6795M195EXEECTPY9Y3QD66
              name: Operator Name
              trade_name: Trade Operator Name
              country: PL
              status: active
              created_at: '2024-08-30T10:42:34.309Z'
              updated_at: '2024-08-30T10:42:34.309Z'
              _links:
                self:
                  href: https://api.1global.com/connect/network-operators/nopr_01J6795M195EXEECTPY9Y3QD66
            service_provider:
              id: spro_01J6795M195EXEECTPY9Y3QD66
              name: Provider Name
              country: PL
              status: active
              created_at: '2024-08-30T10:42:34.309Z'
              updated_at: '2024-08-30T10:42:34.309Z'
              _links:
                self:
                  href: https://api.1global.com/connect/service-providers/spro_01J6795M195EXEECTPY9Y3QD66
        consents:
          power_of_attorney: true
        created_at: '2024-08-30T10:42:34.309Z'
        updated_at: '2024-08-30T10:42:34.309Z'
        _links:
          self:
            href: https://api.1global.com/connect/portings/port_01J6HE2DP5M8GKQ9P8R83VQW3J
          account:
            href: https://api.1global.com/connect/acounts/acc_01J6795M195EXEECTPY9Y3QD66
          subscriber:
            href: https://api.1global.com/connect/subscriber/subr_01J67F1GGCN0ZMGJQ17NTYV3WV
          subscription:
            href: https://api.1global.com/connect/subscriptions/subs_01J67SMMCM050XM1C1ABQNFD9K
          phone_number:
            href: https://api.1global.com/connect/phone-numbers/pn_01J6795M195EXEECTPY9Y3QD66
    PortingOutScheduledPL:
      summary: Scheduled Port-Out PL
      value:
        id: port_01J6HE2DP5M8GKQ9P8R83VQW3J
        direction: out
        termination_action: terminate
        preferred_schedule:
          type: specific_date
          preferred_porting_at: '2024-08-30T10:42:34.309Z'
        country: PL
        status: scheduled
        recipient_details:
          _embedded:
            network_operator:
              id: nopr_01J6795M195EXEECTPY9Y3QD66
              name: Operator Name
              trade_name: Trade Operator Name
              country: PL
              status: active
              created_at: '2024-08-30T10:42:34.309Z'
              updated_at: '2024-08-30T10:42:34.309Z'
              _links:
                self:
                  href: https://api.1global.com/connect/network-operators/nopr_01J6795M195EXEECTPY9Y3QD66
            service_provider:
              id: spro_01J6795M195EXEECTPY9Y3QD66
              name: Provider Name
              country: PL
              status: active
              created_at: '2024-08-30T10:42:34.309Z'
              updated_at: '2024-08-30T10:42:34.309Z'
              _links:
                self:
                  href: https://api.1global.com/connect/service-providers/spro_01J6795M195EXEECTPY9Y3QD66
        consents:
          power_of_attorney: true
        cancelation_deadline_at: '2024-10-01T14:28:17.456Z'
        scheduled_at: '2024-10-01T14:28:17.456Z'
        previous_scheduled_at: '2024-09-15T14:28:17.456Z'
        created_at: '2024-08-30T10:42:34.309Z'
        updated_at: '2024-08-30T10:42:34.309Z'
        _links:
          self:
            href: https://api.1global.com/connect/portings/port_01J6HE2DP5M8GKQ9P8R83VQW3J
          account:
            href: https://api.1global.com/connect/acounts/acc_01J6795M195EXEECTPY9Y3QD66
          subscriber:
            href: https://api.1global.com/connect/subscriber/subr_01J67F1GGCN0ZMGJQ17NTYV3WV
          subscription:
            href: https://api.1global.com/connect/subscriptions/subs_01J67SMMCM050XM1C1ABQNFD9K
          phone_number:
            href: https://api.1global.com/connect/phone-numbers/pn_01J6795M195EXEECTPY9Y3QD66
    PortingOutCancelationRequestedPL:
      summary: Cancelation Requested Port-Out PL
      value:
        id: port_01J6HE2DP5M8GKQ9P8R83VQW3J
        direction: out
        termination_action: terminate
        preferred_schedule:
          type: specific_date
          preferred_porting_at: '2024-08-30T10:42:34.309Z'
        country: PL
        status: cancelation_requested
        recipient_details:
          _embedded:
            network_operator:
              id: nopr_01J6795M195EXEECTPY9Y3QD66
              name: Operator Name
              trade_name: Trade Operator Name
              country: PL
              status: active
              created_at: '2024-08-30T10:42:34.309Z'
              updated_at: '2024-08-30T10:42:34.309Z'
              _links:
                self:
                  href: https://api.1global.com/connect/network-operators/nopr_01J6795M195EXEECTPY9Y3QD66
            service_provider:
              id: spro_01J6795M195EXEECTPY9Y3QD66
              name: Provider Name
              country: PL
              status: active
              created_at: '2024-08-30T10:42:34.309Z'
              updated_at: '2024-08-30T10:42:34.309Z'
              _links:
                self:
                  href: https://api.1global.com/connect/service-providers/spro_01J6795M195EXEECTPY9Y3QD66
        consents:
          power_of_attorney: true
        cancelation_deadline_at: '2024-10-01T14:28:17.456Z'
        scheduled_at: '2024-10-01T14:28:17.456Z'
        previous_scheduled_at: '2024-09-15T14:28:17.456Z'
        created_at: '2024-08-30T10:42:34.309Z'
        updated_at: '2024-08-30T10:42:34.309Z'
        _links:
          self:
            href: https://api.1global.com/connect/portings/port_01J6HE2DP5M8GKQ9P8R83VQW3J
          account:
            href: https://api.1global.com/connect/acounts/acc_01J6795M195EXEECTPY9Y3QD66
          subscriber:
            href: https://api.1global.com/connect/subscriber/subr_01J67F1GGCN0ZMGJQ17NTYV3WV
          subscription:
            href: https://api.1global.com/connect/subscriptions/subs_01J67SMMCM050XM1C1ABQNFD9K
          phone_number:
            href: https://api.1global.com/connect/phone-numbers/pn_01J6795M195EXEECTPY9Y3QD66
          accept-cancelation:
            href: https://api.1global.com/connect/portings/port_01J67F1GGCN0ZMGJQ17NTYV3WV/accept-cancelation
          reject-cancelation:
            href: https://api.1global.com/connect/portings/port_01J67SMMCM050XM1C1ABQNFD9K/reject-cancelation
    PortingOutCanceledPL:
      summary: Canceled Port-Out PL
      value:
        id: port_01J6HE2DP5M8GKQ9P8R83VQW3J
        direction: out
        termination_action: terminate
        preferred_schedule:
          type: specific_date
          preferred_porting_at: '2024-08-30T10:42:34.309Z'
        country: PL
        status: canceled
        recipient_details:
          _embedded:
            network_operator:
              id: nopr_01J6795M195EXEECTPY9Y3QD66
              name: Operator Name
              trade_name: Trade Operator Name
              country: PL
              status: active
              created_at: '2024-08-30T10:42:34.309Z'
              updated_at: '2024-08-30T10:42:34.309Z'
              _links:
                self:
                  href: https://api.1global.com/connect/network-operators/nopr_01J6795M195EXEECTPY9Y3QD66
            service_provider:
              id: spro_01J6795M195EXEECTPY9Y3QD66
              name: Provider Name
              country: PL
              status: active
              created_at: '2024-08-30T10:42:34.309Z'
              updated_at: '2024-08-30T10:42:34.309Z'
              _links:
                self:
                  href: https://api.1global.com/connect/service-providers/spro_01J6795M195EXEECTPY9Y3QD66
        consents:
          power_of_attorney: true
        canceled_at: '2024-10-01T14:28:17.456Z'
        created_at: '2024-08-30T10:42:34.309Z'
        updated_at: '2024-08-30T10:42:34.309Z'
        _links:
          self:
            href: https://api.1global.com/connect/portings/port_01J6HE2DP5M8GKQ9P8R83VQW3J
          account:
            href: https://api.1global.com/connect/acounts/acc_01J6795M195EXEECTPY9Y3QD66
          subscriber:
            href: https://api.1global.com/connect/subscriber/subr_01J67F1GGCN0ZMGJQ17NTYV3WV
          subscription:
            href: https://api.1global.com/connect/subscriptions/subs_01J67SMMCM050XM1C1ABQNFD9K
          phone_number:
            href: https://api.1global.com/connect/phone-numbers/pn_01J6795M195EXEECTPY9Y3QD66
    PortingOutRescheduledRequestedPL:
      summary: Rescheduled requested Port-Out PL
      value:
        id: port_01J6HE2DP5M8GKQ9P8R83VQW3J
        direction: out
        termination_action: terminate
        preferred_schedule:
          type: specific_date
          preferred_porting_at: '2024-08-30T10:42:34.309Z'
        country: PL
        status: rescheduled_requested
        recipient_details:
          _embedded:
            network_operator:
              id: nopr_01J6795M195EXEECTPY9Y3QD66
              name: Operator Name
              trade_name: Trade Operator Name
              country: PL
              status: active
              created_at: '2024-08-30T10:42:34.309Z'
              updated_at: '2024-08-30T10:42:34.309Z'
              _links:
                self:
                  href: https://api.1global.com/connect/network-operators/nopr_01J6795M195EXEECTPY9Y3QD66
            service_provider:
              id: spro_01J6795M195EXEECTPY9Y3QD66
              name: Provider Name
              country: PL
              status: active
              created_at: '2024-08-30T10:42:34.309Z'
              updated_at: '2024-08-30T10:42:34.309Z'
              _links:
                self:
                  href: https://api.1global.com/connect/service-providers/spro_01J6795M195EXEECTPY9Y3QD66
        consents:
          power_of_attorney: true
        cancelation_deadline_at: '2024-10-01T14:28:17.456Z'
        scheduled_at: '2024-10-01T14:28:17.456Z'
        previous_scheduled_at: '2024-10-01T14:28:17.456Z'
        reschedule_requested_at: '2024-10-02T14:28:17.456Z'
        created_at: '2024-08-30T10:42:34.309Z'
        updated_at: '2024-08-30T10:42:34.309Z'
        _links:
          self:
            href: https://api.1global.com/connect/portings/port_01J6HE2DP5M8GKQ9P8R83VQW3J
          account:
            href: https://api.1global.com/connect/acounts/acc_01J6795M195EXEECTPY9Y3QD66
          subscriber:
            href: https://api.1global.com/connect/subscriber/subr_01J67F1GGCN0ZMGJQ17NTYV3WV
          subscription:
            href: https://api.1global.com/connect/subscriptions/subs_01J67SMMCM050XM1C1ABQNFD9K
          phone_number:
            href: https://api.1global.com/connect/phone-numbers/pn_01J6795M195EXEECTPY9Y3QD66
    PortingOutProcessingPL:
      summary: Processing Port-Out PL
      value:
        id: port_01J6HE2DP5M8GKQ9P8R83VQW3J
        direction: out
        termination_action: terminate
        preferred_schedule:
          type: specific_date
          preferred_porting_at: '2024-08-30T10:42:34.309Z'
        country: PL
        status: processing
        recipient_details:
          _embedded:
            network_operator:
              id: nopr_01J6795M195EXEECTPY9Y3QD66
              name: Operator Name
              trade_name: Trade Operator Name
              country: PL
              status: active
              created_at: '2024-08-30T10:42:34.309Z'
              updated_at: '2024-08-30T10:42:34.309Z'
              _links:
                self:
                  href: https://api.1global.com/connect/network-operators/nopr_01J6795M195EXEECTPY9Y3QD66
            service_provider:
              id: spro_01J6795M195EXEECTPY9Y3QD66
              name: Provider Name
              country: PL
              status: active
              created_at: '2024-08-30T10:42:34.309Z'
              updated_at: '2024-08-30T10:42:34.309Z'
              _links:
                self:
                  href: https://api.1global.com/connect/service-providers/spro_01J6795M195EXEECTPY9Y3QD66
        consents:
          power_of_attorney: true
        scheduled_at: '2024-10-01T14:28:17.456Z'
        created_at: '2024-08-30T10:42:34.309Z'
        updated_at: '2024-08-30T10:42:34.309Z'
        _links:
          self:
            href: https://api.1global.com/connect/portings/port_01J6HE2DP5M8GKQ9P8R83VQW3J
          account:
            href: https://api.1global.com/connect/acounts/acc_01J6795M195EXEECTPY9Y3QD66
          subscriber:
            href: https://api.1global.com/connect/subscriber/subr_01J67F1GGCN0ZMGJQ17NTYV3WV
          subscription:
            href: https://api.1global.com/connect/subscriptions/subs_01J67SMMCM050XM1C1ABQNFD9K
          phone_number:
            href: https://api.1global.com/connect/phone-numbers/pn_01J6795M195EXEECTPY9Y3QD66
    PortingOutCompletedPL:
      summary: Completed Port-Out PL
      value:
        id: port_01J6HE2DP5M8GKQ9P8R83VQW3J
        direction: out
        termination_action: terminate
        preferred_schedule:
          type: specific_date
          preferred_porting_at: '2024-08-30T10:42:34.309Z'
        country: PL
        status: completed
        recipient_details:
          _embedded:
            network_operator:
              id: nopr_01J6795M195EXEECTPY9Y3QD66
              name: Operator Name
              trade_name: Trade Operator Name
              country: PL
              status: active
              created_at: '2024-08-30T10:42:34.309Z'
              updated_at: '2024-08-30T10:42:34.309Z'
              _links:
                self:
                  href: https://api.1global.com/connect/network-operators/nopr_01J6795M195EXEECTPY9Y3QD66
            service_provider:
              id: spro_01J6795M195EXEECTPY9Y3QD66
              name: Provider Name
              country: PL
              status: active
              created_at: '2024-08-30T10:42:34.309Z'
              updated_at: '2024-08-30T10:42:34.309Z'
              _links:
                self:
                  href: https://api.1global.com/connect/service-providers/spro_01J6795M195EXEECTPY9Y3QD66
        consents:
          power_of_attorney: true
        completed_at: '2024-10-01T14:28:17.456Z'
        created_at: '2024-08-30T10:42:34.309Z'
        updated_at: '2024-08-30T10:42:34.309Z'
        _links:
          self:
            href: https://api.1global.com/connect/portings/port_01J6HE2DP5M8GKQ9P8R83VQW3J
          account:
            href: https://api.1global.com/connect/acounts/acc_01J6795M195EXEECTPY9Y3QD66
          subscriber:
            href: https://api.1global.com/connect/subscriber/subr_01J67F1GGCN0ZMGJQ17NTYV3WV
          subscription:
            href: https://api.1global.com/connect/subscriptions/subs_01J67SMMCM050XM1C1ABQNFD9K
          phone_number:
            href: https://api.1global.com/connect/phone-numbers/pn_01J6795M195EXEECTPY9Y3QD66
    PortingInDraftPL:
      summary: Draft Port-In PL
      value:
        id: port_01J6HE2DP5M8GKQ9P8R83VQW3J
        direction: in
        preferred_schedule:
          type: specific_date
          preferred_porting_at: '2024-08-30T10:42:34.309Z'
        country: PL
        status: draft
        msisdn: '+4812341234123'
        donor_details:
          _embedded:
            network_operator:
              id: nopr_01J6795M195EXEECTPY9Y3QD66
              name: Operator Name
              trade_name: Trade Operator Name
              country: PL
              status: active
              created_at: '2024-08-30T10:42:34.309Z'
              updated_at: '2024-08-30T10:42:34.309Z'
              _links:
                self:
                  href: https://api.1global.com/connect/network-operators/nopr_01J6795M195EXEECTPY9Y3QD66
            service_provider:
              id: spro_01J6795M195EXEECTPY9Y3QD66
              name: Provider Name
              country: PL
              status: active
              created_at: '2024-08-30T10:42:34.309Z'
              updated_at: '2024-08-30T10:42:34.309Z'
              _links:
                self:
                  href: https://api.1global.com/connect/service-providers/spro_01J6795M195EXEECTPY9Y3QD66
          account:
            type: personal
            service_type: prepaid
        supported_documents:
          - purpose: power_of_attorney
            _embedded:
              file:
                id: file_01J6795M195EXEECTPY9Y3QD66
                _links:
                  self: 
                    href: https://api.1global.com/connect/files/file_01J6795M195EXEECTPY9Y3QD66
                  download:
                    href: https://mybucket.s3.amazonaws.com/myfile.pdf?AWSAccessKeyId=AKIAIOSFODNN7EXAMPLE&Expires=1617178582&Signature=LZ%2Fjz9Xj%2FgWfg0%2FhHe91Tw4c1J5Exm1XsfFhdqTTcp0U%3D
        consents:
          power_of_attorney: true
          awareness_financial_consequences: true
        created_at: '2024-08-30T10:42:34.309Z'
        updated_at: '2024-08-30T10:42:34.309Z'

        _links:
          self:
            href: https://api.1global.com/connect/portings/port_01J6HE2DP5M8GKQ9P8R83VQW3J
          account:
            href: https://api.1global.com/connect/acounts/acc_01J6795M195EXEECTPY9Y3QD66
          subscriber:
            href: https://api.1global.com/connect/subscriber/subr_01J67F1GGCN0ZMGJQ17NTYV3WV
          subscription:
            href: https://api.1global.com/connect/subscriptions/subs_01J67SMMCM050XM1C1ABQNFD9K
          phone_number:
            href: https://api.1global.com/connect/phone-numbers/pn_01J6795M195EXEECTPY9Y3QD66
    PortingInPendingPL:
      summary: Pending Port-In PL
      value:
        id: port_01J6HE2DP5M8GKQ9P8R83VQW3J
        direction: in
        preferred_schedule:
          type: specific_date
          preferred_porting_at: '2024-08-30T10:42:34.309Z'
        country: PL
        status: pending
        msisdn: '+4812341234123'
        donor_details:
          _embedded:
            network_operator:
              id: nopr_01J6795M195EXEECTPY9Y3QD66
              name: Operator Name
              trade_name: Trade Operator Name
              country: PL
              status: active
              created_at: '2024-08-30T10:42:34.309Z'
              updated_at: '2024-08-30T10:42:34.309Z'
              _links:
                self:
                  href: https://api.1global.com/connect/network-operators/nopr_01J6795M195EXEECTPY9Y3QD66
            service_provider:
              id: spro_01J6795M195EXEECTPY9Y3QD66
              name: Provider Name
              country: PL
              status: active
              created_at: '2024-08-30T10:42:34.309Z'
              updated_at: '2024-08-30T10:42:34.309Z'
              _links:
                self:
                  href: https://api.1global.com/connect/service-providers/spro_01J6795M195EXEECTPY9Y3QD66
          account:
            type: personal
            service_type: prepaid
        supported_documents:
          - purpose: power_of_attorney
            _embedded:
              file:
                id: file_01J6795M195EXEECTPY9Y3QD66
                _links:
                  self: 
                    href: https://api.1global.com/connect/files/file_01J6795M195EXEECTPY9Y3QD66
                  download:
                    href: https://mybucket.s3.amazonaws.com/myfile.pdf?AWSAccessKeyId=AKIAIOSFODNN7EXAMPLE&Expires=1617178582&Signature=LZ%2Fjz9Xj%2FgWfg0%2FhHe91Tw4c1J5Exm1XsfFhdqTTcp0U%3D
        consents:
          power_of_attorney: true
          awareness_financial_consequences: true
        created_at: '2024-08-30T10:42:34.309Z'
        updated_at: '2024-08-30T10:42:34.309Z'

        _links:
          self:
            href: https://api.1global.com/connect/portings/port_01J6HE2DP5M8GKQ9P8R83VQW3J
          account:
            href: https://api.1global.com/connect/acounts/acc_01J6795M195EXEECTPY9Y3QD66
          subscriber:
            href: https://api.1global.com/connect/subscriber/subr_01J67F1GGCN0ZMGJQ17NTYV3WV
          subscription:
            href: https://api.1global.com/connect/subscriptions/subs_01J67SMMCM050XM1C1ABQNFD9K
          phone_number:
            href: https://api.1global.com/connect/phone-numbers/pn_01J6795M195EXEECTPY9Y3QD66
    PortingInRejectedPL:
      summary: Rejected Port-In PL
      value:
        id: port_01J6HE2DP5M8GKQ9P8R83VQW3J
        direction: in
        preferred_schedule:
          type: specific_date
          preferred_porting_at: '2024-08-30T10:42:34.309Z'
        country: PL
        status: rejected
        msisdn: '+4812341234123'
        donor_details:
          _embedded:
            network_operator:
              id: nopr_01J6795M195EXEECTPY9Y3QD66
              name: Operator Name
              trade_name: Trade Operator Name
              country: PL
              status: active
              created_at: '2024-08-30T10:42:34.309Z'
              updated_at: '2024-08-30T10:42:34.309Z'
              _links:
                self:
                  href: https://api.1global.com/connect/network-operators/nopr_01J6795M195EXEECTPY9Y3QD66
            service_provider:
              id: spro_01J6795M195EXEECTPY9Y3QD66
              name: Provider Name
              country: PL
              status: active
              created_at: '2024-08-30T10:42:34.309Z'
              updated_at: '2024-08-30T10:42:34.309Z'
              _links:
                self:
                  href: https://api.1global.com/connect/service-providers/spro_01J6795M195EXEECTPY9Y3QD66
          account:
            type: personal
            service_type: prepaid
        supported_documents:
          - purpose: power_of_attorney
            _embedded:
              file:
                id: file_01J6795M195EXEECTPY9Y3QD66
                _links:
                  self: 
                    href: https://api.1global.com/connect/files/file_01J6795M195EXEECTPY9Y3QD66
                  download:
                    href: https://mybucket.s3.amazonaws.com/myfile.pdf?AWSAccessKeyId=AKIAIOSFODNN7EXAMPLE&Expires=1617178582&Signature=LZ%2Fjz9Xj%2FgWfg0%2FhHe91Tw4c1J5Exm1XsfFhdqTTcp0U%3D
        consents:
          power_of_attorney: true
          awareness_financial_consequences: true
        rejection:
          reason: incorrect_registration_data
          message: 'Incorrect registration data'
          rejected_at: '2024-08-31T10:42:34.309Z'
        created_at: '2024-08-30T10:42:34.309Z'
        updated_at: '2024-08-30T10:42:34.309Z'

        _links:
          self:
            href: https://api.1global.com/connect/portings/port_01J6HE2DP5M8GKQ9P8R83VQW3J
          account:
            href: https://api.1global.com/connect/acounts/acc_01J6795M195EXEECTPY9Y3QD66
          subscriber:
            href: https://api.1global.com/connect/subscriber/subr_01J67F1GGCN0ZMGJQ17NTYV3WV
          subscription:
            href: https://api.1global.com/connect/subscriptions/subs_01J67SMMCM050XM1C1ABQNFD9K
          phone_number:
            href: https://api.1global.com/connect/phone-numbers/pn_01J6795M195EXEECTPY9Y3QD66
    PortingInScheduledPL:
      summary: Scheduled Port-In PL
      value:
        id: port_01J6HE2DP5M8GKQ9P8R83VQW3J
        direction: in
        preferred_schedule:
          type: specific_date
          preferred_porting_at: '2024-08-30T10:42:34.309Z'
        country: PL
        status: scheduled
        msisdn: '+4812341234123'
        donor_details:
          _embedded:
            network_operator:
              id: nopr_01J6795M195EXEECTPY9Y3QD66
              name: Operator Name
              trade_name: Trade Operator Name
              country: PL
              status: active
              created_at: '2024-08-30T10:42:34.309Z'
              updated_at: '2024-08-30T10:42:34.309Z'
              _links:
                self:
                  href: https://api.1global.com/connect/network-operators/nopr_01J6795M195EXEECTPY9Y3QD66
            service_provider:
              id: spro_01J6795M195EXEECTPY9Y3QD66
              name: Provider Name
              country: PL
              status: active
              created_at: '2024-08-30T10:42:34.309Z'
              updated_at: '2024-08-30T10:42:34.309Z'
              _links:
                self:
                  href: https://api.1global.com/connect/service-providers/spro_01J6795M195EXEECTPY9Y3QD66
          account:
            type: personal
            service_type: prepaid
        supported_documents:
          - purpose: power_of_attorney
            _embedded:
              file:
                id: file_01J6795M195EXEECTPY9Y3QD66
                _links:
                  self: 
                    href: https://api.1global.com/connect/files/file_01J6795M195EXEECTPY9Y3QD66
                  download:
                    href: https://mybucket.s3.amazonaws.com/myfile.pdf?AWSAccessKeyId=AKIAIOSFODNN7EXAMPLE&Expires=1617178582&Signature=LZ%2Fjz9Xj%2FgWfg0%2FhHe91Tw4c1J5Exm1XsfFhdqTTcp0U%3D
        consents:
          power_of_attorney: true
          awareness_financial_consequences: true
        cancelation_deadline_at: '2024-10-01T14:28:17.456Z'
        scheduled_at: '2024-10-01T14:28:17.456Z'
        previous_scheduled_at: '2024-09-15T14:28:17.456Z'
        created_at: '2024-08-30T10:42:34.309Z'
        updated_at: '2024-08-30T10:42:34.309Z'

        _links:
          self:
            href: https://api.1global.com/connect/portings/port_01J6HE2DP5M8GKQ9P8R83VQW3J
          account:
            href: https://api.1global.com/connect/acounts/acc_01J6795M195EXEECTPY9Y3QD66
          subscriber:
            href: https://api.1global.com/connect/subscriber/subr_01J67F1GGCN0ZMGJQ17NTYV3WV
          subscription:
            href: https://api.1global.com/connect/subscriptions/subs_01J67SMMCM050XM1C1ABQNFD9K
          phone_number:
            href: https://api.1global.com/connect/phone-numbers/pn_01J6795M195EXEECTPY9Y3QD66
          request-cancelation:
            href: https://api.1global.com/connect/portings/port_01J67SMMCM050XM1C1ABQNFD9K/request-cancelation
    PortingInCancelationRequestedPL:
      summary: Requested Cancelation Port-In PL
      value:
        id: port_01J6HE2DP5M8GKQ9P8R83VQW3J
        direction: in
        preferred_schedule:
          type: specific_date
          preferred_porting_at: '2024-08-30T10:42:34.309Z'
        country: PL
        status: cancelation_requested
        msisdn: '+4812341234123'
        donor_details:
          _embedded:
            network_operator:
              id: nopr_01J6795M195EXEECTPY9Y3QD66
              name: Operator Name
              trade_name: Trade Operator Name
              country: PL
              status: active
              created_at: '2024-08-30T10:42:34.309Z'
              updated_at: '2024-08-30T10:42:34.309Z'
              _links:
                self:
                  href: https://api.1global.com/connect/network-operators/nopr_01J6795M195EXEECTPY9Y3QD66
            service_provider:
              id: spro_01J6795M195EXEECTPY9Y3QD66
              name: Provider Name
              country: PL
              status: active
              created_at: '2024-08-30T10:42:34.309Z'
              updated_at: '2024-08-30T10:42:34.309Z'
              _links:
                self:
                  href: https://api.1global.com/connect/service-providers/spro_01J6795M195EXEECTPY9Y3QD66
          account:
            type: personal
            service_type: prepaid
        supported_documents:
          - purpose: power_of_attorney
            _embedded:
              file:
                id: file_01J6795M195EXEECTPY9Y3QD66
                _links:
                  self: 
                    href: https://api.1global.com/connect/files/file_01J6795M195EXEECTPY9Y3QD66
                  download:
                    href: https://mybucket.s3.amazonaws.com/myfile.pdf?AWSAccessKeyId=AKIAIOSFODNN7EXAMPLE&Expires=1617178582&Signature=LZ%2Fjz9Xj%2FgWfg0%2FhHe91Tw4c1J5Exm1XsfFhdqTTcp0U%3D
        consents:
          power_of_attorney: true
          awareness_financial_consequences: true
        cancelation_deadline_at: '2024-10-01T14:28:17.456Z'
        scheduled_at: '2024-10-01T14:28:17.456Z'
        created_at: '2024-08-30T10:42:34.309Z'
        updated_at: '2024-08-30T10:42:34.309Z'

        _links:
          self:
            href: https://api.1global.com/connect/portings/port_01J6HE2DP5M8GKQ9P8R83VQW3J
          account:
            href: https://api.1global.com/connect/acounts/acc_01J6795M195EXEECTPY9Y3QD66
          subscriber:
            href: https://api.1global.com/connect/subscriber/subr_01J67F1GGCN0ZMGJQ17NTYV3WV
          subscription:
            href: https://api.1global.com/connect/subscriptions/subs_01J67SMMCM050XM1C1ABQNFD9K
          phone_number:
            href: https://api.1global.com/connect/phone-numbers/pn_01J6795M195EXEECTPY9Y3QD66
    PortingInCanceledPL:
      summary: Canceled Port-In PL
      value:
        id: port_01J6HE2DP5M8GKQ9P8R83VQW3J
        direction: in
        preferred_schedule:
          type: specific_date
          preferred_porting_at: '2024-08-30T10:42:34.309Z'
        country: PL
        status: canceled
        msisdn: '+4812341234123'
        donor_details:
          _embedded:
            network_operator:
              id: nopr_01J6795M195EXEECTPY9Y3QD66
              name: Operator Name
              trade_name: Trade Operator Name
              country: PL
              status: active
              created_at: '2024-08-30T10:42:34.309Z'
              updated_at: '2024-08-30T10:42:34.309Z'
              _links:
                self:
                  href: https://api.1global.com/connect/network-operators/nopr_01J6795M195EXEECTPY9Y3QD66
            service_provider:
              id: spro_01J6795M195EXEECTPY9Y3QD66
              name: Provider Name
              country: PL
              status: active
              created_at: '2024-08-30T10:42:34.309Z'
              updated_at: '2024-08-30T10:42:34.309Z'
              _links:
                self:
                  href: https://api.1global.com/connect/service-providers/spro_01J6795M195EXEECTPY9Y3QD66
          account:
            type: personal
            service_type: prepaid
        supported_documents:
          - purpose: power_of_attorney
            _embedded:
              file:
                id: file_01J6795M195EXEECTPY9Y3QD66
                _links:
                  self: 
                    href: https://api.1global.com/connect/files/file_01J6795M195EXEECTPY9Y3QD66
                  download:
                    href: https://mybucket.s3.amazonaws.com/myfile.pdf?AWSAccessKeyId=AKIAIOSFODNN7EXAMPLE&Expires=1617178582&Signature=LZ%2Fjz9Xj%2FgWfg0%2FhHe91Tw4c1J5Exm1XsfFhdqTTcp0U%3D
        consents:
          power_of_attorney: true
          awareness_financial_consequences: true
        canceled_at: '2024-10-01T14:28:17.456Z'
        created_at: '2024-08-30T10:42:34.309Z'
        updated_at: '2024-08-30T10:42:34.309Z'
        _links:
          self:
            href: https://api.1global.com/connect/portings/port_01J6HE2DP5M8GKQ9P8R83VQW3J
          account:
            href: https://api.1global.com/connect/acounts/acc_01J6795M195EXEECTPY9Y3QD66
          subscriber:
            href: https://api.1global.com/connect/subscriber/subr_01J67F1GGCN0ZMGJQ17NTYV3WV
          subscription:
            href: https://api.1global.com/connect/subscriptions/subs_01J67SMMCM050XM1C1ABQNFD9K
          phone_number:
            href: https://api.1global.com/connect/phone-numbers/pn_01J6795M195EXEECTPY9Y3QD66
    PortingInProcessingPL:
      summary: Processing Port-In PL
      value:
        id: port_01J6HE2DP5M8GKQ9P8R83VQW3J
        direction: in
        cancelation_deadline_at: '2024-09-29T10:42:34.309Z'
        preferred_schedule:
          type: specific_date
          preferred_porting_at: '2024-08-30T10:42:34.309Z'
        country: PL
        status: processing
        msisdn: '+4812341234123'
        donor_details:
          _embedded:
            network_operator:
              id: nopr_01J6795M195EXEECTPY9Y3QD66
              name: Operator Name
              trade_name: Trade Operator Name
              country: PL
              status: active
              created_at: '2024-08-30T10:42:34.309Z'
              updated_at: '2024-08-30T10:42:34.309Z'
              _links:
                self:
                  href: https://api.1global.com/connect/network-operators/nopr_01J6795M195EXEECTPY9Y3QD66
            service_provider:
              id: spro_01J6795M195EXEECTPY9Y3QD66
              name: Provider Name
              country: PL
              status: active
              created_at: '2024-08-30T10:42:34.309Z'
              updated_at: '2024-08-30T10:42:34.309Z'
              _links:
                self:
                  href: https://api.1global.com/connect/service-providers/spro_01J6795M195EXEECTPY9Y3QD66
          account:
            type: personal
            service_type: prepaid
        supported_documents:
          - purpose: power_of_attorney
            _embedded:
              file:
                id: file_01J6795M195EXEECTPY9Y3QD66
                _links:
                  self: 
                    href: https://api.1global.com/connect/files/file_01J6795M195EXEECTPY9Y3QD66
                  download:
                    href: https://mybucket.s3.amazonaws.com/myfile.pdf?AWSAccessKeyId=AKIAIOSFODNN7EXAMPLE&Expires=1617178582&Signature=LZ%2Fjz9Xj%2FgWfg0%2FhHe91Tw4c1J5Exm1XsfFhdqTTcp0U%3D
        consents:
          power_of_attorney: true
          awareness_financial_consequences: true
        scheduled_at: '2024-10-01T14:28:17.456Z'
        created_at: '2024-08-30T10:42:34.309Z'
        updated_at: '2024-08-30T10:42:34.309Z'
        _links:
          self:
            href: https://api.1global.com/connect/portings/port_01J6HE2DP5M8GKQ9P8R83VQW3J
          account:
            href: https://api.1global.com/connect/acounts/acc_01J6795M195EXEECTPY9Y3QD66
          subscriber:
            href: https://api.1global.com/connect/subscriber/subr_01J67F1GGCN0ZMGJQ17NTYV3WV
          subscription:
            href: https://api.1global.com/connect/subscriptions/subs_01J67SMMCM050XM1C1ABQNFD9K
          phone_number:
            href: https://api.1global.com/connect/phone-numbers/pn_01J6795M195EXEECTPY9Y3QD66
    PortingInCompletedPL:
      summary: Completed Port-In PL
      value:
        id: port_01J6HE2DP5M8GKQ9P8R83VQW3J
        direction: in
        preferred_schedule:
          type: specific_date
          preferred_porting_at: '2024-08-30T10:42:34.309Z'
        country: PL
        status: completed
        msisdn: '+4812341234123'
        donor_details:
          _embedded:
            network_operator:
              id: nopr_01J6795M195EXEECTPY9Y3QD66
              name: Operator Name
              trade_name: Trade Operator Name
              country: PL
              status: active
              created_at: '2024-08-30T10:42:34.309Z'
              updated_at: '2024-08-30T10:42:34.309Z'
              _links:
                self:
                  href: https://api.1global.com/connect/network-operators/nopr_01J6795M195EXEECTPY9Y3QD66
            service_provider:
              id: spro_01J6795M195EXEECTPY9Y3QD66
              name: Provider Name
              country: PL
              status: active
              created_at: '2024-08-30T10:42:34.309Z'
              updated_at: '2024-08-30T10:42:34.309Z'
              _links:
                self:
                  href: https://api.1global.com/connect/service-providers/spro_01J6795M195EXEECTPY9Y3QD66
          account:
            type: personal
            service_type: prepaid
        supported_documents:
          - purpose: power_of_attorney
            _embedded:
              file:
                id: file_01J6795M195EXEECTPY9Y3QD66
                _links:
                  self: 
                    href: https://api.1global.com/connect/files/file_01J6795M195EXEECTPY9Y3QD66
                  download:
                    href: https://mybucket.s3.amazonaws.com/myfile.pdf?AWSAccessKeyId=AKIAIOSFODNN7EXAMPLE&Expires=1617178582&Signature=LZ%2Fjz9Xj%2FgWfg0%2FhHe91Tw4c1J5Exm1XsfFhdqTTcp0U%3D
        consents:
          power_of_attorney: true
          awareness_financial_consequences: true
        completed_at: '2024-10-01T14:28:17.456Z'
        created_at: '2024-08-30T10:42:34.309Z'
        updated_at: '2024-08-30T10:42:34.309Z'
        _links:
          self:
            href: https://api.1global.com/connect/portings/port_01J6HE2DP5M8GKQ9P8R83VQW3J
          account:
            href: https://api.1global.com/connect/acounts/acc_01J6795M195EXEECTPY9Y3QD66
          subscriber:
            href: https://api.1global.com/connect/subscriber/subr_01J67F1GGCN0ZMGJQ17NTYV3WV
          subscription:
            href: https://api.1global.com/connect/subscriptions/subs_01J67SMMCM050XM1C1ABQNFD9K
          phone_number:
            href: https://api.1global.com/connect/phone-numbers/pn_01J6795M195EXEECTPY9Y3QD66
    
    NetworkOperatorListExample:
      summary: Network Operator List
      value:
        _embedded:
          network_operators:
            - id: nopr_01J6795M195EXEECTPY9Y3QD66
              name: Truphone
              trade_name: Truphone
              country: DE
              status: active
              code: TP
              created_at: '2024-08-30T10:42:34.309Z'
              updated_at: '2024-08-30T10:42:34.309Z'
              _links:
                self:
                  href: https://api.1global.com/connect/network-operators/nopr_01J6795M195EXEECTPY9Y3QD66
            - id: nopr_01JGYX8WRXYFT2GX3MVAKG8NPZ
              name: T-Mobile Deutschland GmbH
              trade_name: Telekom
              country: DE
              status: active
              code: D1
              created_at: '2024-08-30T10:42:34.309Z'
              updated_at: '2024-08-30T10:42:34.309Z'
              _links:
                self:
                  href: https://api.1global.com/connect/network-operators/nopr_01J6795M195EXEECTPY9Y3QD66
        _links:
          self:
            href: https://api.1global.com/connect/network-operators
          next:
            href: https://api.1global.com/connect/network-operators?cursor=nextCursor&limit=2
          prev:
            href: https://api.1global.com/connect/network-operators?cursor=prevCursor&limit=2
    ServiceProviderListExample:
      summary: Network Operator List
      value:
        _embedded:
          service_providers:
            - id: spro_01J6795M195EXEECTPY9Y3QD66
              name: Truphone
              country: DE
              status: active
              code: TRUP
              brands:
                - 1Global
              created_at: '2024-08-30T10:42:34.309Z'
              updated_at: '2024-08-30T10:42:34.309Z'
              _links:
                self:
                  href: https://api.1global.com/connect/service-providers/spro_01J6795M195EXEECTPY9Y3QD66
            - id: spro_01JGYX8WRXYFT2GX3MVAKG8NPZ
              name: 1&1
              country: DE
              status: active
              code: 1UN1
              brands:
                - 1&1
                - Freephone
              created_at: '2024-08-30T10:42:34.309Z'
              updated_at: '2024-08-30T10:42:34.309Z'
              _links:
                self:
                  href: https://api.1global.com/connect/service-providers/spro_01J6795M195EXEECTPY9Y3QD66
        _links:
          self:
            href: https://api.1global.com/connect/service-providers
          next:
            href: https://api.1global.com/connect/service-providers?cursor=nextCursor&limit=2
          prev:
            href: https://api.1global.com/connect/service-providers??cursor=prevCursor&limit=2
    ContractExample:
      summary: Example of a contract
      value:
        id: con_1234
        type: contract_summary
        created_at: '2024-08-30T10:42:34.309Z'
        _embedded:
          account:
            id: acc_01HRC2T6WK4CMVGFXA2RESTQ97
            _links:
              self:
                href: https://api.1global.com/connect/accounts/acc_01HRC2T6WK4CMVGFXA2RESTQ97
          order:
            id: ord_01HRC2T6WK4CMVGFXA2RESTQ97
            _links:
              self:
                href: https://api.1global.com/connect/orders/ord_01HRC2T6WK4CMVGFXA2RESTQ97
        _links:
          self:
            href: https://api.1global.com/connect/contracts/con_1234
          download:
            href: https://api.1global.com/a-resource/con_01HRC2T6WK4CMVGFXA2RESTQ97

    ContractNotificationExample:
      summary: Contract created
      value:
        id: evt_01J494G6WZAR2E2808Z8M07K4Z
        type: contract.created
        created_at: '2021-02-01T14:28:17.967Z'
        data:
          contract:
            id: con_1234
            type: contract_summary
            created_at: '2024-08-30T10:42:34.309Z'
            _embedded:
              account:
                id: acc_01HRC2T6WK4CMVGFXA2RESTQ97
                _links:
                  self:
                    href: https://api.1global.com/connect/accounts/acc_01HRC2T6WK4CMVGFXA2RESTQ97
              order:
                id: ord_01HRC2T6WK4CMVGFXA2RESTQ97
                _links:
                  self:
                    href: https://api.1global.com/connect/orders/ord_01HRC2T6WK4CMVGFXA2RESTQ97
            _links:
              self:
                href: https://api.1global.com/connect/contracts/con_1234
              download:
                href: https://api.1global.com/a-resource/con_01HRC2T6WK4CMVGFXA2RESTQ97
    ListContracts_200:
      summary: Example list of contracts
      value:
        _embedded:
          contracts:
            - id: con_1234
              type: contract_summary
              created_at: '2024-08-30T10:42:34.309Z'
              _embedded:
                account:
                  id: acc_01HRC2T6WK4CMVGFXA2RESTQ97
                  _links:
                    self:
                      href: https://api.1global.com/connect/accounts/acc_01HRC2T6WK4CMVGFXA2RESTQ97
                order:
                  id: ord_01HRC2T6WK4CMVGFXA2RESTQ97
                  _links:
                    self:
                      href: https://api.1global.com/connect/orders/ord_01HRC2T6WK4CMVGFXA2RESTQ97
              _links:
                self:
                  href: https://api.1global.com/connect/contracts/con_1234
        _links:
          self:
            href: https://api.1global.com/connect/contracts
          next:
            href: https://api.1global.com/connect/contracts?cursor=nextCursor
          prev:
            href: https://api.1global.com/connect/contracts?cursor=prevCursor
    InvoiceMonthlyRecurringRegular:
      summary: Example of a monthly recurring regular invoice
      value:
        id: inv_1234
        status: paid
        created_at: '2024-10-01T14:28:17.456Z'
        number: INV-2025-001
        period: 2025-02-10T00:00:00Z/2025-02-15T23:59:59Z
        total:
          amount: 5400
          currency: EUR
        amount_breakdown:
          - type: recurring
            total:
              amount: 2400
              currency: EUR
          - type: sms_oob
            total:
              amount: 600
              currency: EUR
          - type: voice_oob
            total:
              amount: 1200
              currency: EUR
          - type: one_off
            total:
              amount: 1200
              currency: EUR
        _embedded:
          account:
            id: acc_01BX5ZZKBKACTAV9WEVGEMMVRY
            _links:
              self:
                href: https://api.1global.com/connect/accounts/acc_01BX5ZZKBKACTAV9WEVGEMMVRY
        _links:
          self:
            href: https://api.1global.com/connect/invoices/inv_1234
          download:
            href: http://api.1global.com/a-resource/inv_01HRC2T6WK4CMVGFXA2RESTQ97
    InvoiceMonthlyRecurringRegularNotificationExample:
      summary: Invoice open
      value:
        id: evt_01J494G6WZAR2E2808Z8M07K4Z
        type: invoice.open
        created_at: '2021-02-01T14:28:17.967Z'
        data:
          invoice:
            id: inv_1234
            status: paid
            created_at: '2024-10-01T14:28:17.456Z'
            number: INV-2025-001
            period: 2025-02-10T00:00:00Z/2025-02-15T23:59:59Z
            total:
              amount: 5400
              currency: EUR
            amount_breakdown:
              - type: recurring
                total:
                  amount: 2400
                  currency: EUR
              - type: sms_oob
                total:
                  amount: 600
                  currency: EUR
              - type: voice_oob
                total:
                  amount: 1200
                  currency: EUR
              - type: one_off
                total:
                  amount: 1200
                  currency: EUR
            _embedded:
              account:
                id: acc_01BX5ZZKBKACTAV9WEVGEMMVRY
                _links:
                  self:
                    href: https://api.1global.com/connect/accounts/acc_01BX5ZZKBKACTAV9WEVGEMMVRY
            _links:
              self:
                href: https://api.1global.com/connect/invoices/inv_1234
              download:
                href: http://api.1global.com/a-resource/inv_01HRC2T6WK4CMVGFXA2RESTQ97
    ListInvoices_200:
      summary: Example list of invoices
      value:
        _embedded:
          invoices:
            - id: inv_1234
              number: INV-2025-001
              total:
                amount: 5400
                currency: EUR
              period: 2025-02-10T00:00:00Z/2025-02-15T23:59:59Z
              _embedded:
                account:
                  id: acc_01BX5ZZKBKACTAV9WEVGEMMVRY
                  _links:
                    self:
                      href: https://api.1global.com/connect/accounts/acc_01BX5ZZKBKACTAV9WEVGEMMVRY
              _links:
                self:
                  href: https://api.1global.com/connect/invoices/inv_1234
        _links:
          self:
            href: https://api.1global.com/connect/invoices
          next:
            href: https://api.1global.com/connect/invoices?cursor=nextCursor
          prev:
            href: https://api.1global.com/connect/invoices?cursor=prevCursor
    ListInvoiceItems_200:
      summary: Example list of invoice Items
      value:
        _embedded:
          items:
            - type: recurring
              total:
                amount: 2400
                currency: EUR
              period: 2025-02-10T00:00:00Z/2025-02-15T23:59:59Z
              subtotal:
                amount: 2000
                currency: EUR
              tax:
                amount: 400
                currency: EUR
              _embedded:
                subscription:
                  id: sub_41BX5ZZKBKACTAV9WEVGEMMVRZ
                  _links:
                    self:
                      href: https://api.1global.com/connect/subscriptions/sub_41BX5ZZKBKACTAV9WEVGEMMVRZ
                product:
                  id: prod_01BX5ZZKBKACTAV9WEVGEMMVRY
                  _links:
                    self:
                      href: https://api.1global.com/connect/products/prod_01BX5ZZKBKACTAV9WEVGEMMVRY
            - type: sms_oob
              total:
                amount: 1200
                currency: EUR
              period: 2025-02-10T00:00:00Z/2025-02-15T23:59:59Z
              subtotal:
                amount: 1000
                currency: EUR
              tax:
                amount: 200
                currency: EUR
              _embedded:
                subscription:
                  id: sub_41BX5ZZKBKACTAV9WEVGEMMVRZ
                  _links:
                    self:
                      href: https://api.1global.com/connect/subscriptions/sub_41BX5ZZKBKACTAV9WEVGEMMVRZ
        _links:
          self:
            href: https://api.1global.com/connect/invoices/inv_1234/items
          next:
            href: https://api.1global.com/connect/invoices/inv_1234/items?cursor=nextCursor
          prev:
            href: https://api.1global.com/connect/invoices/inv_1234/items?cursor=prevCursor
  parameters:
    PathAccountId:
      name: account-id
      in: path
      required: true
      schema:
        $ref: '#/components/schemas/AccountId'
    PathOrderId:
      name: order-id
      in: path
      description: An identifier of the order.
      required: true
      schema:
        $ref: '#/components/schemas/OrderId'
    OrderId:
      name: order-id
      in: query
      description: An identifier of the order.
      required: false
      schema:
        $ref: '#/components/schemas/OrderId'
    ProductOfferingId:
      name: product-offering-id
      description: An identifier of the product offering.
      in: path
      required: true
      schema:
        $ref: '#/components/schemas/ProductOfferingId'
    ProductId:
      name: product-id
      description: An identifier of the product.
      in: path
      required: true
      schema:
        $ref: '#/components/schemas/ProductId'
    CoverageAreaId:
      name: coverage-area-id
      description: An identifier of the coverage area.
      in: path
      required: true
      schema:
        $ref: '#/components/schemas/CoverageAreaId'
    ProductCatalogId:
      name: product-catalog-id
      description: An identifier of the product catalog.
      in: path
      required: true
      schema:
        $ref: '#/components/schemas/ProductCatalogId'
    ProductCatalogName:
      name: name
      description: The product catalog name
      in: query
      required: false
      schema:
        type: string
    Countries:
      name: countries
      description: Countries filter.
      in: query
      required: false
      schema:
        type: array
        items:
          $ref: '#/components/schemas/Country'
    AllowancesCountries:
      name: allowances[coverage-area][countries]
      in: query
      description: The Allowance Countries.
      required: false
      style: form
      explode: false
      schema:
        $ref: '#/components/schemas/AllowancesCountries'
      example: GB,FR
    ProductOfferingStatus:
      name: status
      in: query
      required: false
      schema:
        $ref: '#/components/schemas/ProductOfferingStatus'
    ProductOfferingType:
      name: type
      in: query
      required: false
      schema:
        $ref: '#/components/schemas/ProductOfferingType'
    SubscriptionStatus:
      name: status
      in: query
      required: false
      schema:
        $ref: '#/components/schemas/SubscriptionStatus'
    AccountId:
      name: account-id
      in: query
      required: false
      schema:
        $ref: '#/components/schemas/AccountId'
    Limit:
      name: limit
      in: query
      required: false
      schema:
        $ref: '#/components/schemas/Limit'
    Cursor:
      name: cursor
      in: query
      required: false
      schema:
        $ref: '#/components/schemas/Cursor'
    PathPhoneNumberId:
      name: phone-number-id
      in: path
      required: true
      schema:
        $ref: '#/components/schemas/PhoneNumberId'
    PhoneNumberId:
      name: phone-number-id
      in: query
      required: false
      schema:
        $ref: '#/components/schemas/PhoneNumberId'
    SubscriptionId:
      name: subscription-id
      in: query
      required: false
      schema:
        $ref: '#/components/schemas/SubscriptionId'
    PathSubscriptionId:
      name: subscription-id
      in: path
      required: true
      schema:
        $ref: '#/components/schemas/SubscriptionId'
    SubscriberId:
      name: subscriber-id
      required: false
      description: An identifier of the subscriber that owns the subscription.
      in: query
      schema:
        $ref: '#/components/schemas/SubscriberId'
    PathSubscriberId:
      name: subscriber-id
      required: true
      description: An identifier of the subscriber.
      in: path
      schema:
        $ref: '#/components/schemas/SubscriberId'
    OrderStatus:
      name: status
      in: query
      required: false
      schema:
        $ref: '#/components/schemas/OrderStatus'
    ProductStatus:
      name: status
      in: query
      required: false
      schema:
        $ref: '#/components/schemas/ProductStatus'
    PathNetworkOperatorId:
      name: network-operator-id
      in: path
      description: The resource identifier.
      required: true
      schema:
        $ref: '#/components/schemas/NetworkOperatorId'
    PathServiceProviderId:
      name: service-provider-id
      in: path
      description: The resource identifier.
      required: true
      schema:
        $ref: '#/components/schemas/ServiceProviderId'
    PathPortingId:
      name: porting-id
      in: path
      description: The resource identifier.
      required: true
      schema:
        $ref: '#/components/schemas/PortingId'
    PathContractId:
      name: contract-id
      in: path
      description: The resource identifier.
      required: true
      schema:
        $ref: '#/components/schemas/ContractId'
    PathInvoiceId:
      name: invoice-id
      description: The resource identifier.
      in: path
      required: true
      schema:
        $ref: '#/components/schemas/InvoiceId'
    PortingStatus:
      name: status
      in: query
      required: false
      schema:
        $ref: '#/components/schemas/PortingStatus'
    QueryPortingCountry:
      name: country
      in: query
      required: false
      schema:
        $ref: '#/components/schemas/PortingCountry'
    QueryNetworkOperatorStatus:
      name: status
      in: query
      required: false
      schema:
        $ref: '#/components/schemas/NetworkOperatorStatus'
    QueryServiceProviderStatus:
      name: status
      in: query
      required: false
      schema:
        $ref: '#/components/schemas/ServiceProviderStatus'
    ApiVersionHeader:
      name: Api-Version
      description: This header is used to specify the version of the API being requested. If not specied, the latest version would be used.
      in: header
      required: false
      schema:
        $ref: '#/components/schemas/ApiVersion'
    CorrelationId:
      name: Correlation-Id
      description: An unique identifier provided by the client that allows the request to be traced through the system.
      in: header
      required: false
      schema:
        type: string
  securitySchemes:
    oAuth2:
      type: oauth2
      description: The 1GLOBAL Connect API uses OAuth2 Client Credentials type to authenticate its requests. Please be aware that these tokens have a limited duration so you need to include refresh logic in the client code, so that the token gets refreshed automatically without breaking the user experience.
      flows:
        clientCredentials:
          tokenUrl: https://api.1global.com/auth/realms/1global-connect/protocol/openid-connect/token
          refreshUrl: https://api.1global.com/auth/realms/1global-connect/protocol/openid-connect/token
          scopes: {}
    basicAuth:
      type: http
      scheme: basic
      description: Basic authentication for webhooks
  schemas:
    CreateAccountPersonal:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 100
        type:
          $ref: '#/components/schemas/AccountType'
        owner:
          $ref: '#/components/schemas/CreateAccountOwner'
      required:
        - type
        - owner
    CreateAccountOwner:
      type: object
      properties:
        first_name:
          type: string
          minLength: 1
          maxLength: 100
        last_name:
          type: string
          minLength: 1
          maxLength: 100
        address:
          $ref: '#/components/schemas/CreateAccountAddress'
      required:
        - first_name
        - last_name
        - address
    CreateAccountBusiness:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 100
        type:
          $ref: '#/components/schemas/AccountType'
        company_name:
          type: string
          minLength: 1
          maxLength: 200
        tax_id:
          type: string
          minLength: 1
          maxLength: 100
        address:
          $ref: '#/components/schemas/CreateAccountAddress'
      required:
        - type
        - company_name
        - tax_id
        - address
    CreateAccountAddress:
      oneOf:
        - $ref: '#/components/schemas/GlobalAddress'
        - $ref: '#/components/schemas/NAAddress'
    PatchAccountPersonal:
      type: object
      properties:
        name:
          type: string
        owner:
          $ref: '#/components/schemas/PatchAccountOwner'
    PatchAccountOwner:
      type: object
      properties:
        first_name:
          type: string
        last_name:
          type: string
        address:
          $ref: '#/components/schemas/PatchAccountAddress'
    PatchAccountBusiness:
      type: object
      properties:
        name:
          type: string
        company_name:
          type: string
        tax_id:
          type: string
        address:
          $ref: '#/components/schemas/PatchAccountAddress'
    PatchAccountAddress:
      oneOf:
        - $ref: '#/components/schemas/GlobalAddress'
        - $ref: '#/components/schemas/NAAddress'
    OneOfAccount:
      oneOf:
        - $ref: '#/components/schemas/AccountBusiness'
        - $ref: '#/components/schemas/AccountPersonal'
      discriminator:
        propertyName: type
        mapping:
          personal: '#/components/schemas/AccountPersonal'
          business: '#/components/schemas/AccountBusiness'
    AccountBusiness:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/AccountId'
        name:
          type: string
        type:
          $ref: '#/components/schemas/AccountType'
        number:
          type: string
        company_name:
          type: string
        tax_id:
          type: string
        address:
          $ref: '#/components/schemas/AccountAddress'
        created_at:
          $ref: '#/components/schemas/CreatedAt'
        updated_at:
          $ref: '#/components/schemas/UpdatedAt'
        _links:
          $ref: '#/components/schemas/AccountLinks'
      required:
        - id
        - type
        - number
        - company_name
        - tax_id
        - address
        - created_at
        - updated_at
        - _links
    AccountPersonal:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/AccountId'
        name:
          type: string
        type:
          $ref: '#/components/schemas/AccountType'
        number:
          type: string
        owner:
          $ref: '#/components/schemas/AccountOwner'
        created_at:
          $ref: '#/components/schemas/CreatedAt'
        updated_at:
          $ref: '#/components/schemas/UpdatedAt'
        _links:
          $ref: '#/components/schemas/AccountLinks'
      required:
        - id
        - type
        - number
        - owner
        - created_at
        - updated_at
        - _links
    AccountLinks:
      type: object
      description: The links related to the Account
      properties:
        self:
          description: The Account URL URI
          $ref: '#/components/schemas/Link'
      required:
        - self
    AccountOwner:
      type: object
      properties:
        first_name:
          type: string
        last_name:
          type: string
        address:
          $ref: '#/components/schemas/AccountAddress'
      required:
        - first_name
        - last_name
        - address
    AccountAddress:
      oneOf:
        - $ref: '#/components/schemas/GlobalAddress'
        - $ref: '#/components/schemas/NAAddress'
    AccountType:
      type: string
      description: The account type
      enum:
        - personal
        - business
    AccountList:
      type: object
      description: List of accounts
      properties:
        _embedded:
          type: object
          description: The embedded resources
          properties:
            accounts:
              type: array
              description: The list of accounts
              maxItems: 40
              items:
                oneOf:
                  - $ref: '#/components/schemas/AccountBusiness'
                  - $ref: '#/components/schemas/AccountPersonal'
                discriminator:
                  propertyName: type
                  mapping:
                    personal: '#/components/schemas/AccountPersonal'
                    business: '#/components/schemas/AccountBusiness'
          required:
            - accounts
        _links:
          $ref: '#/components/schemas/Pagination'
      required:
        - _embedded
        - _links
    CreateOrder:
      oneOf:
        - $ref: '#/components/schemas/CreateActivateSubscriptionOrder'
        - $ref: '#/components/schemas/CreateTopUpSubscriptionOrder'
        - $ref: '#/components/schemas/CreateCancelSubscriptionOrder'
        - $ref: '#/components/schemas/CreateSwapSubscriptionSimOrder'
        - $ref: '#/components/schemas/CreateChangeSubscriptionPlanOrder'
    CreateActivateSubscriptionOrder:
      type: object
      properties:
        type:
          type: string
          description: The Order type
          enum:
            - activate_subscription
        subscriber_id:
          description: The Subscriber Id
          $ref: '#/components/schemas/SubscriberId'
        purchase_location:
          $ref: '#/components/schemas/Country'
        sim_profile:
          description: The SIM Profile of this Subscription
          properties:
            sim_type:
              $ref: '#/components/schemas/SimType'
          required:
            - sim_type
        device:
          $ref: '#/components/schemas/Device'
        products:
          $ref: '#/components/schemas/OrderProductsActivation'
      required:
        - type
        - subscriber_id
        - purchase_location
        - sim_profile
        - products
    CreateTopUpSubscriptionOrder:
      type: object
      properties:
        type:
          type: string
          description: The Order type
          enum:
            - topup_subscription
        subscription_id:
          description: The Subscription Id
          $ref: '#/components/schemas/SubscriptionId'
        purchase_location:
          $ref: '#/components/schemas/Country'
        products:
          $ref: '#/components/schemas/OrderProductsTopup'
      required:
        - type
        - subscription_id
        - purchase_location
        - products
    CreateCancelSubscriptionOrder:
      type: object
      properties:
        type:
          type: string
          description: The Order type
          enum:
            - cancel_subscription
        subscription_id:
          description: The Subscription Id
          $ref: '#/components/schemas/SubscriptionId'
      required:
        - type
        - subscription_id
    CreateSwapSubscriptionSimOrder:
      type: object
      properties:
        type:
          type: string
          description: The Order type
          enum:
            - swap_subscription_sim
        subscription_id:
          description: The Subscription Id
          $ref: '#/components/schemas/SubscriptionId'
        device:
          $ref: '#/components/schemas/Device'
      required:
        - type
        - subscription_id
    CreateChangeSubscriptionPlanOrder:
      type: object
      properties:
        type:
          type: string
          description: The Order type
          enum:
            - change_subscription_plan
        subscription_id:
          description: The Subscription Id
          $ref: '#/components/schemas/SubscriptionId'
        purchase_location:
          $ref: '#/components/schemas/Country'
        products:
          $ref: '#/components/schemas/OrderProductsActivation'
        schedule:
          $ref: '#/components/schemas/OrderScheduleRequest'
      required:
        - type
        - subscription_id
        - purchase_location
        - products
    PriceAlteration:
      type: object
      properties:
        currency:
          $ref: '#/components/schemas/CurrencyCode'
        unit_amount:
          $ref: '#/components/schemas/UnitAmount'
      required:
        - currency
        - unit_amount
    OrderProductsActivation:
      type: object
      description: The products to buy with this order.
      properties:
        plan:
          $ref: '#/components/schemas/OrderPlan'
        addons:
          $ref: '#/components/schemas/OrderAddons'
        non_services:
          $ref: '#/components/schemas/OrderNonServices'
      required:
        - plan
    OrderProductsTopup:
      type: object
      description: The products to buy with this order.
      properties:
        plan:
          $ref: '#/components/schemas/OrderPlan'
        addons:
          $ref: '#/components/schemas/OrderAddons'
    OrderPlan:
      type: object
      description: The plan to buy with this order. Note that a plan activation mode is always immediate
      properties:
        product_offering_id:
          description: The Product Offering Id
          $ref: '#/components/schemas/ProductOfferingId'
        price_alterations:
          description: A list of Price Alterations
          type: array
          items:
            $ref: '#/components/schemas/PriceAlteration'
        phone_number:
          $ref: '#/components/schemas/OrderPlanPhoneNumber'
      required:
        - product_offering_id
    OrderPlanPhoneNumber:
      type: object
      properties:
        reservation_id:
          $ref: '#/components/schemas/OrderPlanPhoneNumberReservationId'
    OrderPlanPhoneNumberReservationId:
      description: The Phone Number Reservation Id
      type: string
    OrderAddons:
      type: array
      maxItems: 15
      description: The add-ons to buy with this order. Up to 15 data add-ons, and up to 1 voice add-on of each type.
      items:
        $ref: '#/components/schemas/ActivationMode'
    OrderScheduleRequest:
      type: object
      oneOf:
        - $ref: '#/components/schemas/OrderScheduleRequestEndOfCycle'
        - $ref: '#/components/schemas/OrderScheduleRequestFixed'
      discriminator:
        propertyName: mode
        mapping:
          end_of_cycle: '#/components/schemas/OrderScheduleRequestEndOfCycle'
          specific_date: '#/components/schemas/OrderScheduleRequestFixed'
    OrderScheduleRequestEndOfCycle:
      properties:
        mode:
          type: string
          enum:
            - end_of_cycle
      required:
        - mode
    OrderScheduleRequestFixed:
      properties:
        mode:
          type: string
          enum:
            - specific_date
        effective_at:
          $ref: '#/components/schemas/OrderScheduledAt'
      required:
        - mode
        - effective_at
    OrderSchedule:
      properties:
        mode:
          $ref: '#/components/schemas/OrderScheduleMode'
        effective_at:
          $ref: '#/components/schemas/OrderScheduledAt'
      required:
        - mode
        - effective_at
    OrderScheduleMode:
      type: string
      description: The Order Schedule Mode
      enum:
        - specific_date
        - end_of_cycle
    ActivationMode:
      type: object
      anyOf:
        - $ref: '#/components/schemas/ActivationModeFirstUsage'
        - $ref: '#/components/schemas/ActivationModeImmediate'
        - $ref: '#/components/schemas/ActivationModeScheduled'
      discriminator:
        propertyName: activation_mode
        mapping:
          first_usage: '#/components/schemas/ActivationModeFirstUsage'
          immediate: '#/components/schemas/ActivationModeImmediate'
          scheduled: '#/components/schemas/ActivationModeScheduled'
    ActivationModeFirstUsage:
      allOf:
        - type: object
          properties:
            activation_mode:
              type: string
              enum:
                - first_usage
          required:
            - activation_mode
        - $ref: '#/components/schemas/ActivationModeBase'
    ActivationModeImmediate:
      allOf:
        - type: object
          properties:
            activation_mode:
              type: string
              enum:
                - immediate
          required:
            - activation_mode
        - $ref: '#/components/schemas/ActivationModeBase'
    ActivationModeScheduled:
      allOf:
        - type: object
          properties:
            activation_mode:
              type: string
              enum:
                - scheduled
          required:
            - activation_mode
        - $ref: '#/components/schemas/ActivationModeBase'
        - type: object
          properties:
            start_at:
              $ref: '#/components/schemas/ProductStartAt'
          required:
            - start_at
    ActivationModeBase:
      type: object
      properties:
        product_offering_id:
          description: The Product Offering Id
          $ref: '#/components/schemas/ProductOfferingId'
        price_alterations:
          description: A list of Price Alterations
          type: array
          items:
            $ref: '#/components/schemas/PriceAlteration'
      required:
        - product_offering_id
    OrderNonServices:
      type: array
      description: Additional non-service products to buy with this order.
      items:
        $ref: '#/components/schemas/OrderNonService'
    OrderNonService:
      type: object
      properties:
        product_offering_id:
          description: The Product Offering Id
          $ref: '#/components/schemas/ProductOfferingId'
        price_alterations:
          description: A list of Price Alterations
          type: array
          items:
            $ref: '#/components/schemas/PriceAlteration'
      required:
        - product_offering_id
    OrderType:
      type: string
      description: The Order type
      enum:
        - activate_subscription
        - topup_subscription
        - cancel_subscription
        - terminate_subscription
        - change_subscription_phone_number
        - swap_subscription_sim
        - change_subscription_plan
      example: activate_subscription
    SimType:
      type: string
      description: The SIM Type
      enum:
        - esim
    OrderList:
      type: object
      description: List of Orders
      properties:
        _embedded:
          type: object
          description: The embedded resources
          properties:
            orders:
              type: array
              description: The list of Orders
              maxItems: 40
              items:
                $ref: '#/components/schemas/OrderSummary'
          required:
            - orders
        _links:
          $ref: '#/components/schemas/Pagination'
      required:
        - _embedded
        - _links
    OrderSummary:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/OrderId'
        status:
          $ref: '#/components/schemas/OrderStatus'
        type:
          $ref: '#/components/schemas/OrderType'
        created_at:
          $ref: '#/components/schemas/CreatedAt'
        updated_at:
          $ref: '#/components/schemas/UpdatedAt'
        completed_at:
          $ref: '#/components/schemas/OrderCompletedAt'
        _links:
          $ref: '#/components/schemas/OrderLinks'
      required:
        - id
        - status
        - type
        - created_at
        - _links
    Order:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/OrderId'
        status:
          $ref: '#/components/schemas/OrderStatus'
        type:
          $ref: '#/components/schemas/OrderType'
        created_at:
          $ref: '#/components/schemas/CreatedAt'
        updated_at:
          $ref: '#/components/schemas/UpdatedAt'
        completed_at:
          $ref: '#/components/schemas/OrderCompletedAt'
        canceled_at:
          $ref: '#/components/schemas/OrderCanceledAt'
        schedule:
          $ref: "#/components/schemas/OrderSchedule"
        _embedded:
          type: object
          description: The resources related to Order
          properties:
            subscription:
              $ref: '#/components/schemas/OrderSubscription'
          required:
            - subscription
        _links:
          $ref: '#/components/schemas/OrderLinks'
      required:
        - id
        - status
        - type
        - created_at
        - _links
    MinimalOrderInfo:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/OrderId'
        _links:
          type: object
          properties:
            self:
              description: The Order URI
              $ref: '#/components/schemas/Link'
      required:
        - id
        - _links
    OrderCompletedAt:
      $ref: '#/components/schemas/Iso8601DateTime'
      description: When the Order was completed. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
    OrderCanceledAt:
      $ref: '#/components/schemas/Iso8601DateTime'
      description: When the Order was canceled. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
    OrderScheduledAt:
      type: string
      format: date
      example: '2024-10-01'
    Pagination:
      type: object
      description: The pagination links
      properties:
        self:
          $ref: '#/components/schemas/Link'
          description: This page URI
        next:
          $ref: '#/components/schemas/Link'
          description: This next page URI
        prev:
          $ref: '#/components/schemas/Link'
          description: This previous page URI
      required:
        - self
    Subscriber:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/SubscriberId'
        created_at:
          $ref: '#/components/schemas/CreatedAt'
        updated_at:
          $ref: '#/components/schemas/UpdatedAt'
        first_name:
          type: string
          description: The Subscriber's first name
          example: John
        last_name:
          type: string
          description: The Subscriber's last name
          example: Doe
        email:
          type: string
          description: The Subscriber's email
          example: john.doe@dummy.com
        address:
          $ref: '#/components/schemas/Address'
        birth_date:
          $ref: '#/components/schemas/SubscriberBirthDate'
        locale:
          type: string
          description: The Subscriber's preferred locale
          example: en-GB
        _embedded:
          $ref: '#/components/schemas/EmbeddedSubscriberDetails'
        _links:
          $ref: '#/components/schemas/SubscriberLinks'
      required:
        - id
        - created_at
        - first_name
        - last_name
        - email
        - address
        - _links
    EmbeddedSubscriberDetails:
      type: object
      description: The resources related to the Subscriber
      properties:
        account:
          $ref: '#/components/schemas/EmbeddedAccount'
    EmbeddedAccount:
      type: object
      description: The resources related to the Subscriber
      properties:
        id:
          $ref: '#/components/schemas/AccountId'
        _links:
          $ref: '#/components/schemas/AccountLinks'
      required:
        - id
        - _links
    SubscriberSummary:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/SubscriberId'
        created_at:
          $ref: '#/components/schemas/CreatedAt'
        updated_at:
          $ref: '#/components/schemas/UpdatedAt'
        first_name:
          type: string
          description: The Subscriber's first name
          example: John
        last_name:
          type: string
          description: The Subscriber's last name
          example: Doe
        email:
          type: string
          description: The Subscriber's email
          example: john.doe@dummy.com
        address:
          $ref: '#/components/schemas/Address'
        birth_date:
          $ref: '#/components/schemas/SubscriberBirthDate'
        locale:
          type: string
          description: The locale to be associated on the subscriber, if no value is passed it sets the default one 'en-GB'
        _embedded:
          $ref: '#/components/schemas/EmbeddedSubscriberDetails'
        _links:
          $ref: '#/components/schemas/SubscriberLinks'
      required:
        - id 
        - created_at
        - first_name
        - last_name
        - email
        - address
        - _links
    SubscriberLinks:
      type: object
      description: The links related to Subscriber
      properties:
        self:
          $ref: '#/components/schemas/Link'
          description: The Subscriber URI
        subscriptions:
          $ref: '#/components/schemas/Link'
          description: The Account URI
      required:
        - self
    SubscribersSummaryList:
      type: object
      description: List of Subscribers
      properties:
        _embedded:
          description: The embedded resources
          type: object
          properties:
            subscribers:
              description: The list of Subscribers
              type: array
              maxItems: 40
              items:
                $ref: '#/components/schemas/SubscriberSummary'
          required:
            - subscribers
        _links:
          description: The pagination links
          $ref: '#/components/schemas/Pagination'
      required:
        - _embedded
        - _links
    Address:
      type: object
      oneOf:
        - $ref: '#/components/schemas/GlobalAddress'
        - $ref: '#/components/schemas/NAAddress'
    AddressNonRequired:
      description: The Address
      additionalProperties: false
      properties:
        line1:
          maxLength: 200
          type: string
        line2:
          maxLength: 200
          type: string
        city:
          description: The address city
          maxLength: 200
          type: string
        state:
          $ref: '#/components/schemas/State'
        country:
          $ref: '#/components/schemas/Country'
    CreateSubscriber:
      type: object
      description: The Subscriber information
      allOf:
        - type: object
          properties:
            account_id:
              $ref: '#/components/schemas/AccountId'
          required:
            - account_id
        - $ref: '#/components/schemas/CreateOrUpdateSubscriberBase'
    CreateOrUpdateSubscriberBase:
      type: object
      description: The Subscriber information
      properties:
        locale:
          type: string
          description: The locale to be associated on the subscriber, if no value is passed it sets the default one 'en-GB'
        first_name:
          type: string
          description: The Subscriber's first name
        last_name:
          type: string
          description: The Subscriber's last name
        email:
          type: string
          description: The Subscriber's email
        address:
          description: The Subscriber's address
          $ref: '#/components/schemas/Address'
        birth_date:
          description: The Subscriber's birthdate. Depending on the country the field might be required.
          $ref: '#/components/schemas/SubscriberBirthDate'
      required:
        - first_name
        - last_name
        - email
        - address
    PatchSubscriber:
      type: object
      description: The Subscriber information
      properties:
        locale:
          type: string
          description: The locale to be associated on the subscriber, if no value is passed it sets the default one 'en-GB'
        first_name:
          type: string
          description: The Subscriber's first name
        last_name:
          type: string
          description: The Subscriber's last name
        email:
          type: string
          description: The Subscriber's email
        address:
          description: The Subscriber's address
          $ref: '#/components/schemas/AddressNonRequired'
        birth_date:
          description: The Subscriber's birthdate. Depending on the country the field might be required.
          $ref: '#/components/schemas/SubscriberBirthDate'
    SubscriberBirthDate:
      description: The birth date of the Subscriber
      type: string
      format: date
      example: '1999-12-31'
    CurrencyCode:
      type: string
      description: The supported currency codes according to [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html).
      enum:
        - AED
        - ALL
        - AMD
        - ARS
        - AUD
        - BBD
        - BDT
        - BGN
        - BHD
        - BND
        - BOB
        - BRL
        - CAD
        - CHF
        - CLP
        - CNY
        - COP
        - CRC
        - CZK
        - DKK
        - DOP
        - DZD
        - EGP
        - EUR
        - FJD
        - GBP
        - GEL
        - HKD
        - HUF
        - IDR
        - ILS
        - INR
        - ISK
        - JMD
        - JOD
        - JPY
        - KES
        - KGS
        - KHR
        - KRW
        - KWD
        - KZT
        - LBP
        - LKR
        - MAD
        - MDL
        - MKD
        - MUR
        - MXN
        - MYR
        - NGN
        - NOK
        - NPR
        - NZD
        - OMR
        - PEN
        - PHP
        - PLN
        - PKR
        - QAR
        - RON
        - RSD
        - RUB
        - SAR
        - SEK
        - SGD
        - TJS
        - TND
        - THB
        - TRY
        - TTD
        - TWD
        - UAH
        - UGX
        - USD
        - UYU
        - UZS
        - VND
        - XAF
        - XDR
        - XOF
        - ZAR
    DurationUnit:
      type: string
      description: The Duration Unit
      enum:
        - day
        - week
        - month
        - year
    Availability:
      type: object
      description: The Product Offering availability
      properties:
        start_at:
          $ref: '#/components/schemas/AvailabilityStartAt'
        end_at:
          $ref: '#/components/schemas/AvailabilityEndAt'
      required:
        - start_at
        - end_at
    AvailabilityStartAt:
      $ref: '#/components/schemas/Iso8601DateTime'
      description: When the Product Offering becomes available. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
    AvailabilityEndAt:
      $ref: '#/components/schemas/Iso8601DateTime'
      description: When the Product Offering stops being available. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
    AllowancesCountries:
      type: string
      description: The country code according to [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)
    OneGlobalCountry:
      type: string
      description: The supported country codes according to [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)
      enum:
        - AU
        - DE
        - ES
        - FR
        - GB
        - HK 
        - NL
        - US
        - PL
    Country:
      type: string
      description: The supported country codes according to [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)
      enum:
        - AD
        - AE
        - AF
        - AG
        - AI
        - AL
        - AM
        - AO
        - AQ
        - AR
        - AS
        - AT
        - AU
        - AW
        - AX
        - AZ
        - BA
        - BB
        - BD
        - BE
        - BF
        - BG
        - BH
        - BI
        - BJ
        - BL
        - BM
        - BN
        - BO
        - BQ
        - BR
        - BS
        - BT
        - BV
        - BW
        - BY
        - BZ
        - CA
        - CC
        - CD
        - CF
        - CG
        - CH
        - CK
        - CL
        - CM
        - CN
        - CO
        - CR
        - CU
        - CV
        - CW
        - CX
        - CY
        - CZ
        - DE
        - DJ
        - DK
        - DM
        - DO
        - DZ
        - EC
        - EE
        - EG
        - EH
        - ER
        - ES
        - ET
        - FI
        - FJ
        - FK
        - FM
        - FO
        - FR
        - GA
        - GB
        - GD
        - GE
        - GF
        - GG
        - GH
        - GI
        - GL
        - GM
        - GN
        - GP
        - GQ
        - GR
        - GS
        - GT
        - GU
        - GW
        - GY
        - HK
        - HM
        - HN
        - HR
        - HT
        - HU
        - ID
        - IE
        - IL
        - IM
        - IN
        - IO
        - IQ
        - IR
        - IS
        - IT
        - JE
        - JM
        - JO
        - JP
        - KE
        - KG
        - KH
        - KI
        - KM
        - KN
        - KP
        - KR
        - KW
        - KY
        - KZ
        - LA
        - LB
        - LC
        - LI
        - LK
        - LR
        - LS
        - LT
        - LU
        - LV
        - LY
        - MA
        - MC
        - MD
        - ME
        - MF
        - MG
        - MH
        - MK
        - ML
        - MM
        - MN
        - MO
        - MP
        - MQ
        - MR
        - MS
        - MT
        - MU
        - MV
        - MW
        - MX
        - MY
        - MZ
        - NA
        - NC
        - NE
        - NF
        - NG
        - NI
        - NL
        - 'NO'
        - NP
        - NR
        - NU
        - NZ
        - OM
        - PA
        - PE
        - PF
        - PG
        - PH
        - PK
        - PL
        - PM
        - PN
        - PR
        - PS
        - PT
        - PW
        - PY
        - QA
        - RE
        - RO
        - RS
        - RU
        - RW
        - SA
        - SB
        - SC
        - SD
        - SE
        - SG
        - SH
        - SI
        - SJ
        - SK
        - SL
        - SM
        - SN
        - SO
        - SR
        - SS
        - ST
        - SV
        - SX
        - SY
        - SZ
        - TC
        - TD
        - TF
        - TG
        - TH
        - TJ
        - TK
        - TL
        - TM
        - TN
        - TO
        - TR
        - TT
        - TV
        - TW
        - TZ
        - UA
        - UG
        - UM
        - US
        - UY
        - UZ
        - VC
        - VE
        - VG
        - VI
        - VN
        - VU
        - WF
        - WS
        - XK
        - YE
        - YT
        - ZA
        - ZM
        - ZW
    PostalCode:
      type: string
      pattern: ^[0-9A-Za-z-_ ]+$
      description: The postal code or Zip Code
      example: 12345
    State:
      type: string
      enum:
        - AL
        - AK
        - AZ
        - AR
        - CA
        - CO
        - CT
        - DE
        - FL
        - GA
        - HI
        - ID
        - IL
        - IN
        - IA
        - KS
        - KY
        - LA
        - ME
        - MD
        - MA
        - MI
        - MN
        - MS
        - MO
        - MT
        - NE
        - NV
        - NH
        - NJ
        - NM
        - NY
        - NC
        - ND
        - OH
        - OK
        - OR
        - PA
        - RI
        - SC
        - SD
        - TN
        - TX
        - UT
        - VT
        - VA
        - WA
        - WV
        - WI
        - WY
        - AS
        - DC
        - GU
        - MP
        - PR
        - VI
        - AB
        - BC
        - MB
        - NB
        - NL
        - NS
        - NT
        - NU
        - 'ON'
        - PE
        - QC
        - SK
        - YT
      description: Required for US and CA countries
    OrderStatus:
      type: string
      description: The Order status
      enum:
        - accepted
        - fulfilling
        - completed
        - failed
        - scheduled
        - canceled
      example: completed
    CancelProduct:
      type: object
      properties:
        cancellation_mode:
          type: string
          description: The mode of cancellation
          enum:
            - immediate
            - end_of_cycle
      required:
        - cancellation_mode
    ProductsSummaryList:
      type: object
      properties:
        _embedded:
          description: The embedded resources
          type: object
          properties:
            products:
              description: The list of Products
              type: array
              maxItems: 40
              items:
                $ref: '#/components/schemas/ProductResponseOneOf'
          required:
            - products
        _links:
          description: The pagination links
          $ref: '#/components/schemas/Pagination'
      required:
        - _embedded
        - _links
    ProductResponseOneOf:
      anyOf:
        - $ref: '#/components/schemas/ProductResponseAcquired'
        - $ref: '#/components/schemas/ProductResponseActive'
        - $ref: '#/components/schemas/ProductResponseScheduled'
        - $ref: '#/components/schemas/ProductResponsePendingFirstUsage'
        - $ref: '#/components/schemas/ProductResponseTerminatedDepleted'
        - $ref: '#/components/schemas/ProductResponseCanceled'
        - $ref: '#/components/schemas/ProductResponseExpired'
      discriminator:
        propertyName: status
        mapping:
          acquired: '#/components/schemas/ProductResponseAcquired'
          active: '#/components/schemas/ProductResponseActive'
          scheduled: '#/components/schemas/ProductResponseScheduled'
          pending_first_usage: '#/components/schemas/ProductResponsePendingFirstUsage'
          canceled: '#/components/schemas/ProductResponseCanceled'
          depleted: '#/components/schemas/ProductResponseTerminatedDepleted'
          terminated: '#/components/schemas/ProductResponseTerminatedDepleted'
          expired: '#/components/schemas/ProductResponseExpired'
    ProductCreatedAcquired:
      allOf:
        - type: object
          properties:
            id:
              $ref: "#/components/schemas/ProductId"
            status:
              type: string
              enum:
                - active
            created_at:
              $ref: "#/components/schemas/CreatedAt"
            acquired_at:
              $ref: "#/components/schemas/ProductAcquiredAt"
        - type: object
          properties:
            _links:
              description: The links related to the Product
              allOf:
                - $ref: '#/components/schemas/ProductLinks'
          required:
            - id
            - status
            - created_at
            - acquired_at
            - _links

    ProductResponseAcquired:
      allOf:
        - type: object
          properties:
            id:
              $ref: "#/components/schemas/ProductId"
            status:
              type: string
              enum:
                - active
            created_at:
              $ref: "#/components/schemas/CreatedAt"
            acquired_at:
              $ref: "#/components/schemas/ProductAcquiredAt"
        - $ref: "#/components/schemas/ProductResponseBase"
        - type: object
          properties:
            _links:
              description: The links related to the Product
              allOf:
                - $ref: '#/components/schemas/ProductLinks'
          required:
            - id
            - status
            - created_at
            - acquired_at
            - _links
    ProductCanceledOneOf:
      oneOf:
        - $ref: '#/components/schemas/ProductResponseActive'
        - $ref: '#/components/schemas/ProductResponseCanceled'
    ProductResponseActive:
      allOf:
        - type: object
          properties:
            id:
              $ref: '#/components/schemas/ProductId'
            status:
              type: string
              enum:
                - active
            created_at:
              $ref: '#/components/schemas/CreatedAt'
            start_at:
              $ref: '#/components/schemas/ProductStartAt'
            started_at:
              $ref: '#/components/schemas/ProductStartedAt'
            end_at:
              $ref: '#/components/schemas/ProductEndAt'
            expire_at:
              $ref: '#/components/schemas/ProductExpireAt'
            cycle_end_at:
              $ref: '#/components/schemas/ProductCycleEndAt'
        - $ref: '#/components/schemas/ProductResponseBase'
        - type: object
          properties:
            _links:
              description: The links related to the Product
              allOf:
                - $ref: '#/components/schemas/ProductLinks'
                - $ref: '#/components/schemas/ProductCancelLink'
                  required:
                    - cancel
          required:
            - id
            - status
            - created_at
            - started_at
            - _links
    ProductResponseScheduled:
      allOf:
        - type: object
          properties:
            id:
              $ref: '#/components/schemas/ProductId'
            status:
              type: string
              enum:
                - scheduled
            created_at:
              $ref: '#/components/schemas/CreatedAt'
            start_at:
              $ref: '#/components/schemas/ProductStartAt'
            end_at:
              $ref: '#/components/schemas/ProductEndAt'
        - $ref: '#/components/schemas/ProductResponseBase'
        - type: object
          properties:
            _links:
              description: The links related to the Product
              allOf:
                - $ref: '#/components/schemas/ProductLinks'
                - $ref: '#/components/schemas/ProductActivateLink'
                - $ref: '#/components/schemas/ProductCancelLink'
                  required:
                    - activate
                    - cancel
          required:
            - id
            - status
            - created_at
            - start_at
            - end_at
            - _links
    ProductResponsePendingFirstUsage:
      allOf:
        - type: object
          properties:
            id:
              $ref: '#/components/schemas/ProductId'
            status:
              type: string
              enum:
                - pending_first_usage
            created_at:
              $ref: '#/components/schemas/CreatedAt'
            expire_at:
              $ref: '#/components/schemas/ProductExpireAt'
        - $ref: '#/components/schemas/ProductResponseBase'
        - type: object
          properties:
            _links:
              description: The links related to the Product
              allOf:
                - $ref: '#/components/schemas/ProductLinks'
                - $ref: '#/components/schemas/ProductActivateLink'
                - $ref: '#/components/schemas/ProductCancelLink'
                  required:
                    - activate
                    - cancel
          required:
            - id
            - status
            - created_at
            - expire_at
            - _links
    ProductResponseCanceled:
      allOf:
        - type: object
          properties:
            id:
              $ref: '#/components/schemas/ProductId'
            status:
              type: string
              enum:
                - canceled
            created_at:
              $ref: '#/components/schemas/CreatedAt'
            start_at:
              $ref: '#/components/schemas/ProductStartAt'
            started_at:
              $ref: '#/components/schemas/ProductStartedAt'
            end_at:
              $ref: '#/components/schemas/ProductEndAt'
            ended_at:
              $ref: '#/components/schemas/ProductEndedAt'
            expire_at:
              $ref: '#/components/schemas/ProductExpireAt'
        - $ref: '#/components/schemas/ProductResponseBase'
        - type: object
          properties:
            _links:
              description: The links related to the Product
              allOf:
                - $ref: '#/components/schemas/ProductLinks'
          required:
            - id
            - status
            - created_at
            - ended_at
            - _links
    ProductResponseTerminated:
      allOf:
        - type: object
          properties:
            id:
              $ref: '#/components/schemas/ProductId'
            status:
              type: string
              enum:
                - terminated
            created_at:
              $ref: '#/components/schemas/CreatedAt'
            start_at:
              $ref: '#/components/schemas/ProductStartAt'
            started_at:
              $ref: '#/components/schemas/ProductStartedAt'
            end_at:
              $ref: '#/components/schemas/ProductEndAt'
            ended_at:
              $ref: '#/components/schemas/ProductEndedAt'
            expire_at:
              $ref: '#/components/schemas/ProductExpireAt'
        - $ref: '#/components/schemas/ProductResponseBase'
        - type: object
          properties:
            _links:
              description: The links related to the Product
              allOf:
                - $ref: '#/components/schemas/ProductLinks'
          required:
            - id
            - status
            - created_at
            - started_at
            - ended_at
            - _links
    ProductResponseDepleted:
      allOf:
        - type: object
          properties:
            id:
              $ref: '#/components/schemas/ProductId'
            status:
              type: string
              enum:
                - depleted
            created_at:
              $ref: '#/components/schemas/CreatedAt'
            start_at:
              $ref: '#/components/schemas/ProductStartAt'
            started_at:
              $ref: '#/components/schemas/ProductStartedAt'
            end_at:
              $ref: '#/components/schemas/ProductEndAt'
            ended_at:
              $ref: '#/components/schemas/ProductEndedAt'
            expire_at:
              $ref: '#/components/schemas/ProductExpireAt'
        - $ref: '#/components/schemas/ProductResponseBase'
        - type: object
          properties:
            _links:
              description: The links related to the Product
              allOf:
                - $ref: '#/components/schemas/ProductLinks'
          required:
            - id
            - status
            - created_at
            - started_at
            - ended_at
            - _links
    ProductResponseTerminatedDepleted:
      allOf:
        - type: object
          properties:
            id:
              $ref: '#/components/schemas/ProductId'
            status:
              type: string
              enum:
                - depleted
                - terminated
            created_at:
              $ref: '#/components/schemas/CreatedAt'
            start_at:
              $ref: '#/components/schemas/ProductStartAt'
            started_at:
              $ref: '#/components/schemas/ProductStartedAt'
            end_at:
              $ref: '#/components/schemas/ProductEndAt'
            ended_at:
              $ref: '#/components/schemas/ProductEndedAt'
            expire_at:
              $ref: '#/components/schemas/ProductExpireAt'
        - $ref: '#/components/schemas/ProductResponseBase'
        - type: object
          properties:
            _links:
              description: The links related to the Product
              allOf:
                - $ref: '#/components/schemas/ProductLinks'
          required:
            - id
            - status
            - created_at
            - started_at
            - ended_at
            - _links
    ProductResponseExpired:
      allOf:
        - type: object
          properties:
            id:
              $ref: '#/components/schemas/ProductId'
            status:
              type: string
              enum:
                - expired
            created_at:
              $ref: '#/components/schemas/CreatedAt'
            expire_at:
              $ref: '#/components/schemas/ProductExpireAt'
            expired_at:
              $ref: '#/components/schemas/ProductExpiredAt'
        - $ref: '#/components/schemas/ProductResponseBase'
        - type: object
          properties:
            _links:
              description: The links related to the Product
              allOf:
                - $ref: '#/components/schemas/ProductLinks'
          required:
            - id
            - status
            - created_at
            - expire_at
            - expired_at
            - _links
    ProductAcquiredAt:
      $ref: '#/components/schemas/Iso8601DateTime'
      description: When the Product was acquired. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
    ProductStartAt:
      $ref: '#/components/schemas/Iso8601DateTime'
      description: When the Product should start. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
    ProductStartedAt:
      $ref: '#/components/schemas/Iso8601DateTime'
      description: When the Product actually started. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
    ProductEndAt:
      $ref: '#/components/schemas/Iso8601DateTime'
      description: When the Product should end. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
    ProductEndedAt:
      $ref: '#/components/schemas/Iso8601DateTime'
      description: When the Product actually ended. The reason should be given by the status (`depleted`, `terminated` or `canceled`). Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
    ProductExpireAt:
      $ref: '#/components/schemas/Iso8601DateTime'
      description: When the Product should expired. This is the maximum date when the Product can be activated when the Activation Mode is `first_usage`. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
    ProductExpiredAt:
      $ref: '#/components/schemas/Iso8601DateTime'
      description: When the Product actually expired. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
    ProductCycleEndAt:
      $ref: '#/components/schemas/Iso8601DateTime'
      description: When the Product charging cycle will end and be renewed. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
    ProductResponseBase:
      type: object
      properties:
        _embedded:
          type: object
          description: The resources related to the Product
          properties:
            product_offering:
              type: object
              description: The Product Offering from which this Product was created
              properties:
                id:
                  $ref: '#/components/schemas/ProductOfferingId'
                name:
                  $ref: '#/components/schemas/ProductOfferingName'
                type:
                  $ref: '#/components/schemas/ProductOfferingType'
                validity:
                  $ref: '#/components/schemas/Validity'
                _embedded:
                  type: object
                  properties:
                    allowances:
                      $ref: '#/components/schemas/AllowancesDetailed'
                _links:
                  type: object
                  properties:
                    self:
                      $ref: '#/components/schemas/Link'
                  required:
                    - self
              required:
                - id
                - name
                - type
                - _links
            balances:
              type: array
              items:
                $ref: '#/components/schemas/Balance'
            prices:
              type: array
              description: The Prices for this Product which override the Product Offering ones.
              items:
                $ref: '#/components/schemas/Price'
          required:
            - product_offering
            - prices
      required:
        - _embedded
    ProductLinks:
      type: object
      properties:
        self:
          $ref: '#/components/schemas/Link'
          description: The Product URI
        order:
          $ref: '#/components/schemas/Link'
          description: The Order URI
        subscription:
          $ref: '#/components/schemas/Link'
          description: The Subscription URI
      required:
        - self
    InvoiceProductLinks:
      type: object
      properties:
        self:
          $ref: '#/components/schemas/Link'
          description: The Product URI
      required:
        - self
    InvoiceSubscriptionLinks:
      type: object
      properties:
        self:
          $ref: '#/components/schemas/Link'
          description: The Subscription URI
      required:
        - self
    ProductActivateLink:
      type: object
      properties:
        activate:
          $ref: '#/components/schemas/Link'
          description: The URI to activate this Product
    ProductCancelLink:
      type: object
      properties:
        cancel:
          $ref: '#/components/schemas/Link'
          description: The URI to cancel this Product
    QRCodeLink:
      type: object
      properties:
        href:
          type: string
          format: url
          example: https://api.1global.com/qrcode/v1/esim/LPA:1$rsp.truphone.com$5C-ZYXZZ-1R54O94
      required:
        - href
    NAAddress:
      allOf:
        - type: object
          description: Address format for US, requiring state.
          additionalProperties: false
          properties:
            line1:
              maxLength: 200
              type: string
            line2:
              maxLength: 200
              type: string
            city:
              maxLength: 200
              type: string
            state:
              $ref: '#/components/schemas/State'
            country:
              $ref: '#/components/schemas/Country'
            postal_code:
              $ref: '#/components/schemas/PostalCode'
          required:
            - country
            - state
    GlobalAddress:
      allOf:
        - type: object
          description: Address format for countries other than US, state is not required.
          additionalProperties: false
          properties:
            line1:
              maxLength: 200
              type: string
            line2:
              maxLength: 200
              type: string
            city:
              maxLength: 200
              type: string
            country:
              $ref: '#/components/schemas/Country'
            postal_code:
              $ref: '#/components/schemas/PostalCode'
          required:
            - country
    Iso8601DateTime:
      type: string
      format: date-time
      description: The Date Time format according to the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
      example: '2024-10-01T14:28:17.456Z'
    UnitAmount:
      type: integer
      minimum: 0
      example: 30
      description: The unit amount for the product, positive integer in cents (or 0 for a free price). This should be a whole number and represent the smallest unit of the currency.
    ProblemDetails:
      type: object
      properties:
        title:
          type: string
        detail:
          type: string
        correlation_id:
          type: string
        status:
          type: integer
        errors:
          $ref: '#/components/schemas/Errors'
      required:
        - title
    Errors:
      type: array
      description: An array of error details to accompany a problem details response.
      maxItems: 100
      items:
        $ref: '#/components/schemas/ErrorDetail'
    ErrorDetail:
      type: object
      properties:
        code:
          type: string
        detail:
          type: string
        pointer:
          type: string
      required:
        - code
        - detail
    BalanceThresholdData:
      type: object
      properties:
        allowance_type:
          $ref: '#/components/schemas/ThresholdAllowanceType'
        percentage:
          type: integer
          description: The balance threshold percentage reached
      required:
        - allowance_type
        - percentage
    ThresholdAllowanceType:
      type: string
      enum:
        - data
      description: The type of the allowance
    AllowanceType:
      type: string
      enum:
        - data
        - voice
        - sms
      description: The type of the allowance
    AllowanceUnlimited:
      type: boolean
      description: Whether or not this allowance is unlimited. Unlimited allowances don't have `unit` and `unit_count` properties
    AllowanceUnit:
      type: string
      description: The Product Offering allowance unit
      enum:
        - bytes
        - megabytes
        - gigabytes
        - seconds
        - count
    Balance:
      oneOf:
        - $ref: '#/components/schemas/BalanceLimited'
        - $ref: '#/components/schemas/BalanceUnlimited'
    BalanceLimited:
      type: object
      properties:
        type:
          type: string
          enum:
            - limited
        allowance_type:
          $ref: '#/components/schemas/AllowanceType'
        unit:
          type: string
          description: The balance unit
          enum:
            - bytes
            - minutes
            - count
        initial:
          type: integer
          format: int64
          description: The initial balance
        spent:
          type: integer
          format: int64
          description: The balance spent so far
        remaining:
          type: integer
          format: int64
          description: The remaining balance
        policies:
          $ref: '#/components/schemas/BalancePolicies'
      required:
        - type
        - allowance_type
        - unit
        - initial
        - spent
        - remaining
    BalanceUnlimited:
      type: object
      additionalProperties: false
      properties:
        type:
          type: string
          enum:
            - unlimited
        allowance_type:
          $ref: '#/components/schemas/AllowanceType'
        unit:
          type: string
          description: The balance unit
          enum:
            - bytes
            - minutes
            - count
      required:
        - type
        - allowance_type
        - unit
    BalancePolicies:
      type: array
      description: The Policies of the Allowance
      minItems: 0
      items:
        $ref: "#/components/schemas/BalancePolicy"
    BalancePolicy:
      type: object
      oneOf:
        - $ref: "#/components/schemas/RoamLikeHomeBalancePolicy"
    RoamLikeHomeBalancePolicy:
      type: object
      properties:
        type:
          type: string
          description: The type of Policy
          enum:
            - roam_like_home
        unit:
          type: string
          description: The balance unit
          enum:
            - bytes
        max_unit_count:
          type: integer
          description: The maximum count of the allowance unit could be spend under the policy
        remaining:
          type: integer
          format: int64
          description: The remaining balance
    ProductStatus:
      type: string
      enum:
        - acquired
        - active
        - scheduled
        - pending_first_usage
        - expired
        - terminated
        - depleted
        - canceled
      description: The product status
    SubscriptionStatus:
      type: string
      description: The Subscription's status
      enum:
        - created
        - active
        - grace
        - suspended
        - deactivated
        - terminated
        - canceled
      example: active
    Link:
      type: object
      description: The link URL
      properties:
        href:
          type: string
          format: uri
      required:
        - href
    SubscriptionSummaryList:
      type: object
      description: List of Subscriptions
      properties:
        _embedded:
          description: The embedded resources
          type: object
          properties:
            subscriptions:
              description: The list of Products
              type: array
              maxItems: 40
              items:
                $ref: '#/components/schemas/SubscriptionSummary'
          required:
            - subscriptions
        _links:
          description: The pagination links
          $ref: '#/components/schemas/Pagination'
      required:
        - _embedded
        - _links
    OrderSubscription:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/SubscriptionId'
        status:
          $ref: '#/components/schemas/SubscriptionStatus'
        created_at:
          $ref: '#/components/schemas/CreatedAt'
        updated_at:
          $ref: '#/components/schemas/UpdatedAt'
        _embedded:
          $ref: '#/components/schemas/EmbeddedOrderSubscription'
        _links:
          $ref: '#/components/schemas/OrderSubscriptionLinks'
      required:
        - id
        - status
        - created_at
        - _embedded
        - _links
    Subscription:
      anyOf:
        - $ref: '#/components/schemas/SubscriptionCreated'
        - $ref: '#/components/schemas/SubscriptionActive'
        - $ref: '#/components/schemas/SubscriptionGrace'
        - $ref: '#/components/schemas/SubscriptionSuspended'
        - $ref: '#/components/schemas/SubscriptionTerminated'
        - $ref: '#/components/schemas/SubscriptionDeactivated'
        - $ref: '#/components/schemas/SubscriptionCancelled'
      discriminator:
        propertyName: status
        mapping:
          created: '#/components/schemas/SubscriptionCreated'
          active: '#/components/schemas/SubscriptionActive'
          grace: '#/components/schemas/SubscriptionGrace'
          suspended: '#/components/schemas/SubscriptionSuspended'
          terminated: '#/components/schemas/SubscriptionTerminated'
          deactivated: '#/components/schemas/SubscriptionDeactivated'
          canceled: '#/components/schemas/SubscriptionCancelled'
    SubscriptionCreated:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/SubscriptionId'
        status:
          type: string
          description: The status of Subscription
          enum:
            - created
        created_at:
          $ref: '#/components/schemas/CreatedAt'
        updated_at:
          $ref: '#/components/schemas/UpdatedAt'
        _embedded:
          $ref: '#/components/schemas/EmbeddedSubscription'
        _links:
          allOf:
            - $ref: '#/components/schemas/SubscriptionLinks'
      required:
        - id
        - status
        - created_at
        - _embedded
        - _links
    SubscriptionActive:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/SubscriptionId'
        status:
          type: string
          description: The status of Subscription
          enum:
            - active
        created_at:
          $ref: '#/components/schemas/CreatedAt'
        updated_at:
          $ref: '#/components/schemas/UpdatedAt'
        _embedded:
          $ref: '#/components/schemas/EmbeddedSubscription'
        _links:
          allOf:
            - $ref: '#/components/schemas/SubscriptionLinks'
            - $ref: '#/components/schemas/SubscriptionLinkGrace'
            - $ref: '#/components/schemas/SubscriptionLinkSuspend'
            - $ref: '#/components/schemas/SubscriptionLinkDeactivate'
      required:
        - id
        - status
        - created_at
        - _embedded
        - _links
    SubscriptionGrace:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/SubscriptionId'
        status:
          type: string
          description: The status of Subscription
          enum:
            - grace
        created_at:
          $ref: '#/components/schemas/CreatedAt'
        updated_at:
          $ref: '#/components/schemas/UpdatedAt'
        _embedded:
          $ref: '#/components/schemas/EmbeddedSubscription'
        _links:
          allOf:
            - $ref: '#/components/schemas/SubscriptionLinks'
            - $ref: '#/components/schemas/SubscriptionLinkSuspend'
      required:
        - id
        - status
        - created_at
        - _embedded
        - _links
    SubscriptionSuspended:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/SubscriptionId'
        status:
          type: string
          description: The status of Subscription
          enum:
            - suspended
        created_at:
          $ref: '#/components/schemas/CreatedAt'
        updated_at:
          $ref: '#/components/schemas/UpdatedAt'
        _embedded:
          $ref: '#/components/schemas/EmbeddedSubscription'
        _links:
          allOf:
            - $ref: '#/components/schemas/SubscriptionLinks'
      required:
        - id
        - status
        - created_at
        - _embedded
        - _links
    SubscriptionDeactivated:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/SubscriptionId'
        status:
          type: string
          description: The status of Subscription
          enum:
            - deactivated
        created_at:
          $ref: '#/components/schemas/CreatedAt'
        updated_at:
          $ref: '#/components/schemas/UpdatedAt'
        _embedded:
          $ref: '#/components/schemas/EmbeddedSubscription'
        _links:
          allOf:
            - $ref: '#/components/schemas/SubscriptionLinks'
            - $ref: '#/components/schemas/SubscriptionLinkResume'
      required:
        - id
        - status
        - created_at
        - _embedded
        - _links
    SubscriptionTerminated:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/SubscriptionId'
        status:
          type: string
          description: The status of Subscription
          enum:
            - terminated
        created_at:
          $ref: '#/components/schemas/CreatedAt'
        updated_at:
          $ref: '#/components/schemas/UpdatedAt'
        _embedded:
          $ref: '#/components/schemas/EmbeddedSubscription'
        _links:
          allOf:
            - $ref: '#/components/schemas/SubscriptionLinksBase'
            - $ref: '#/components/schemas/SubscriptionLinkProducts'
      required:
        - id
        - status
        - created_at
        - _embedded
        - _links
    SubscriptionCancelled:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/SubscriptionId'
        status:
          type: string
          description: The status of Subscription
          enum:
            - canceled
        created_at:
          $ref: '#/components/schemas/CreatedAt'
        updated_at:
          $ref: '#/components/schemas/UpdatedAt'
        _embedded:
          $ref: '#/components/schemas/EmbeddedSubscription'
        _links:
          allOf:
            - $ref: '#/components/schemas/SubscriptionLinksBase'
            - $ref: '#/components/schemas/SubscriptionLinkProducts'
      required:
        - id
        - status
        - created_at
        - _embedded
        - _links
    SubscriptionSummary:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/SubscriptionId'
        status:
          $ref: '#/components/schemas/SubscriptionStatus'
        created_at:
          $ref: '#/components/schemas/CreatedAt'
        updated_at:
          $ref: '#/components/schemas/UpdatedAt'
        _embedded:
          type: object
          properties:
            sim_profile:
              $ref: '#/components/schemas/SimProfileSummary'
            active_phone_numbers:
              $ref: '#/components/schemas/ActivePhoneNumbers'
            account:
              $ref: '#/components/schemas/EmbeddedAccount'
          required:
            - sim_profile
            - account
        _links:
          $ref: '#/components/schemas/SubscriptionSummaryLinks'
      required:
        - id
        - status
        - created_at
        - _embedded
        - _links
    CreatedAt:
      $ref: '#/components/schemas/Iso8601DateTime'
      description: When the resource was created. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
    UpdatedAt:
      $ref: '#/components/schemas/Iso8601DateTime'
      description: When the resource was updated. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
    ProductCatalogs:
      type: object
      description: List of product catalogs
      properties:
        _embedded:
          type: object
          properties:
            product_catalogs:
              type: array
              maxItems: 40
              items:
                $ref: '#/components/schemas/ProductCatalogSummary'
          required:
            - product_catalogs
        _links:
          $ref: '#/components/schemas/Pagination'
      required:
        - _embedded
        - _links
    ProductCatalogBase:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/ProductCatalogId'
        name:
          type: string
          description: The Product Catalog name
        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
        updated_at:
          $ref: '#/components/schemas/Iso8601DateTime'
        _links:
          $ref: '#/components/schemas/ProductCatalogLinks'
    ProductCatalog:
      allOf:
        - $ref: '#/components/schemas/ProductCatalogBase'
      required:
        - id
        - name
        - created_at
        - _links
    ProductCatalogSummary:
      allOf:
        - $ref: '#/components/schemas/ProductCatalogBase'
    ProductOfferings:
      type: object
      properties:
        _embedded:
          type: object
          description: The embedded resources
          properties:
            product_offerings:
              type: array
              description: The list of product offerings
              maxItems: 40
              items:
                $ref: '#/components/schemas/ProductOffering'
          required:
            - product_offerings
        _links:
          $ref: '#/components/schemas/Pagination'
      required:
        - _embedded
        - _links
    ProductOffering:
      type: object
      oneOf:
        - $ref: '#/components/schemas/ProductOfferingPlan'
        - $ref: '#/components/schemas/ProductOfferingAddon'
        - $ref: '#/components/schemas/ProductOfferingNonService'
      discriminator:
        propertyName: type
        mapping:
          plan: '#/components/schemas/ProductOfferingPlan'
          addon: '#/components/schemas/ProductOfferingAddon'
          non_service: '#/components/schemas/ProductOfferingNonService'
    ProductOfferingPlan:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/ProductOfferingId'
        name:
          $ref: '#/components/schemas/ProductOfferingName'
        status:
          $ref: '#/components/schemas/ProductOfferingStatus'
        type:
          $ref: '#/components/schemas/ProductOfferingTypePlan'
        created_at:
          $ref: '#/components/schemas/CreatedAt'
        updated_at:
          $ref: '#/components/schemas/UpdatedAt'
        availability:
          $ref: '#/components/schemas/Availability'
        validity:
          $ref: '#/components/schemas/ValidityDurationRecurrentResponse'
        phone_number_country:
          $ref: '#/components/schemas/Country'
        _embedded:
          $ref: '#/components/schemas/ProductOfferingEmbedded'
        _links:
          $ref: '#/components/schemas/ProductOfferingLinks'
      required:
        - id
        - name
        - status
        - type
        - created_at
        - validity
        - _embedded
        - _links
    ProductOfferingAddon:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/ProductOfferingId'
        name:
          $ref: '#/components/schemas/ProductOfferingName'
        status:
          $ref: '#/components/schemas/ProductOfferingStatus'
        type:
          $ref: '#/components/schemas/ProductOfferingTypeAddon'
        created_at:
          $ref: '#/components/schemas/CreatedAt'
        updated_at:
          $ref: '#/components/schemas/UpdatedAt'
        availability:
          $ref: '#/components/schemas/Availability'
        validity:
          $ref: '#/components/schemas/Validity'
        _embedded:
          $ref: '#/components/schemas/ProductOfferingEmbedded'
        _links:
          $ref: '#/components/schemas/ProductOfferingLinks'
      required:
        - id
        - name
        - status
        - type
        - created_at
        - validity
        - _embedded
        - _links
    ProductOfferingNonService:
      type: object
      properties:
        id:
          $ref: "#/components/schemas/ProductOfferingId"
        name:
          $ref: "#/components/schemas/ProductOfferingName"
        status:
          $ref: "#/components/schemas/ProductOfferingStatus"
        type:
          $ref: "#/components/schemas/ProductOfferingTypeNonService"
        created_at:
          $ref: "#/components/schemas/CreatedAt"
        updated_at:
          $ref: "#/components/schemas/UpdatedAt"
        availability:
          $ref: "#/components/schemas/Availability"
        _embedded:
          $ref: "#/components/schemas/ProductOfferingTypeNonServiceEmbedded"
        _links:
          $ref: '#/components/schemas/ProductOfferingLinks'
      required:
        - id
        - name
        - status
        - type
        - created_at
        - _embedded
        - _links
    ProductOfferingTypeNonServiceEmbedded:
      type: object
      description: The resources related with the Product Offering
      properties:
        prices:
          $ref: "#/components/schemas/ProductOfferingPrices"
      required:
        - prices
    ProductOfferingEmbedded:
      type: object
      description: The resources related with the Product Offering
      properties:
        allowances:
          $ref: '#/components/schemas/AllowancesDetailed'
        prices:
          $ref: '#/components/schemas/ProductOfferingPrices'
      required:
        - prices
    ProductOfferingName:
      type: string
      description: The Product Offering name
    ProductOfferingStatus:
      type: string
      description: The Product Offering status
      enum:
        - active
        - inactive
    ProductOfferingType:
      type: string
      description: The Product Offering type
      enum:
        - plan
        - addon
        - non_service
    ProductOfferingTypePlan:
      type: string
      description: The Product Offering Plan type
      enum:
        - plan
    ProductOfferingTypeAddon:
      type: string
      description: The Product Offering Add-on type
      enum:
        - addon
    ProductOfferingTypeNonService:
      type: string
      description: The Product Offering non_service type
      enum:
        - non_service
    ProductOfferingPrices:
      type: array
      description: The Prices of the Product Offering
      minItems: 1
      items:
        $ref: '#/components/schemas/Price'
    Price:
      type: object
      oneOf:
        - $ref: '#/components/schemas/PriceOneTime'
        - $ref: '#/components/schemas/PriceRecurring'
    PriceOneTime:
      type: object
      properties:
        type:
          $ref: '#/components/schemas/PriceOneTimeType'
        unit_amount:
          $ref: '#/components/schemas/UnitAmount'
        currency:
          $ref: '#/components/schemas/CurrencyCode'
      required:
        - type
        - unit_amount
        - currency
    PriceOneTimeType:
      type: string
      description: The One Time Price type
      enum:
        - one_time
    PriceRecurring:
      type: object
      properties:
        type:
          $ref: '#/components/schemas/PriceRecurringType'
        unit_amount:
          $ref: '#/components/schemas/UnitAmount'
        currency:
          $ref: '#/components/schemas/CurrencyCode'
        recurrence:
          type: object
          description: The recurrence of a Price
          properties:
            unit:
              $ref: '#/components/schemas/DurationUnit'
              description: The unit used as the duration of the recurrence
            unit_count:
              type: integer
              description: The count of the duration of the recurrence
          required:
            - unit
            - unit_count
      required:
        - type
        - unit_amount
        - currency
        - recurrence
    PriceRecurringType:
      type: string
      description: The Recurring Price type
      enum:
        - recurring
    AllowancesDetailed:
      type: array
      description: The Allowances of the Product Offering
      minItems: 1
      items:
        $ref: '#/components/schemas/AllowanceDetailed'
    AllowanceDetailed:
      type: object
      properties:
        type:
          $ref: '#/components/schemas/AllowanceType'
        is_unlimited:
          $ref: '#/components/schemas/AllowanceUnlimited'
        unit:
          $ref: '#/components/schemas/AllowanceUnit'
        unit_count:
          type: integer
        policies:
          $ref: '#/components/schemas/AllowancePolicies'
        _embedded:
          type: object
          properties:
            coverage_area:
              $ref: '#/components/schemas/CoverageArea'
          required:
            - coverage_area
      required:
        - type
        - is_unlimited
        - _embedded
    AllowancePolicies:
      type: array
      description: The Policies of the Allowance
      minItems: 0
      items:
        $ref: "#/components/schemas/AllowancePolicy"
    AllowancePolicy:
      type: object
      oneOf:
        - $ref: "#/components/schemas/RoamLikeHomeAllowancePolicy"
    RoamLikeHomeAllowancePolicy:
      type: object
      properties:
        type:
          type: string
          description: The type of Policy
          enum:
            - roam_like_home
        unit:
          $ref: "#/components/schemas/AllowanceUnit"
        max_unit_count:
          type: integer
          description: The maximum count of the allowance unit could be spend under the policy
    ProductOfferingLinks:
      type: object
      description: The links related to the Product Offering
      properties:
        self:
          $ref: '#/components/schemas/Link'
          description: The Product Offering URI
        update:
          $ref: '#/components/schemas/Link'
          description: The Product Offering update URI
      required:
        - self
    ProductCatalogLinks:
      type: object
      description: The links related to the Product Catalog
      properties:
        self:
          $ref: '#/components/schemas/Link'
          description: The Product Catalog URI
        update:
          $ref: '#/components/schemas/Link'
          description: The Product Catalog update URI
        delete:
          $ref: '#/components/schemas/Link'
          description: The Product Catalog delete URI
        associate-product-offerings:
          $ref: '#/components/schemas/Link'
          description: The URI to associate Product Offerings to this Product Catalog
        disassociate-product-offerings:
          $ref: '#/components/schemas/Link'
          description: The URI to disassociate Product Offerings to this Product Catalog
        product-offerings:
          $ref: '#/components/schemas/Link'
          description: The Product Offerings of this Product Catalog URI
      required:
        - self
    OrderLinks:
      type: object
      description: The links related to Order
      properties:
        self:
          description: The Order URI
          $ref: '#/components/schemas/Link'
        cancel:
          description: The Cancel Order URI
          $ref: '#/components/schemas/Link'
        subscriber:
          description: The Subscriber URI
          $ref: '#/components/schemas/Link'
      required:
        - self
    SubscriptionLinks:
      type: object
      description: The links related to the Subscription
      allOf:
        - $ref: '#/components/schemas/SubscriptionLinksBase'
        - $ref: '#/components/schemas/SubscriptionLinkProducts'
        - type: object
          properties:
            qrcode:
              $ref: '#/components/schemas/QRCodeLink'
              description: The QR Code URI
        - type: object
        - properties:
            phone-numbers:
              $ref: '#/components/schemas/Link'
              description: The Phone Numbers URI
      required:
        - self
    SubscriptionLinksBase:
      type: object
      description: The links related to the Subscription
      properties:
        self:
          $ref: '#/components/schemas/Link'
          description: The Subscription URI
        subscriber:
          $ref: '#/components/schemas/Link'
          description: The Subscriber URI
      required:
        - self
    OrderSubscriptionLinks:
      type: object
      description: The links related to Order Subscription
      properties:
        self:
          description: The Order Subscription URI
          $ref: '#/components/schemas/Link'
        qrcode:
          $ref: '#/components/schemas/QRCodeLink'
          description: The QR Code URI
      required:
        - self
    SubscriptionLinkProducts:
      type: object
      properties:
        products:
          $ref: '#/components/schemas/Link'
          description: The Products URI
    SubscriptionLinkGrace:
      type: object
      properties:
        grace:
          $ref: '#/components/schemas/Link'
          description: The Subscription grace URI
    SubscriptionLinkSuspend:
      type: object
      properties:
        suspend:
          $ref: '#/components/schemas/Link'
          description: The Subscription suspend URI
    SubscriptionLinkDeactivate:
      type: object
      properties:
        deactivate:
          $ref: '#/components/schemas/Link'
          description: The Subscription deactivate URI
    SubscriptionLinkResume:
      type: object
      properties:
        resume:
          $ref: '#/components/schemas/Link'
          description: The Subscription resume URI
    SubscriptionSummaryLinks:
      type: object
      allOf:
        - $ref: '#/components/schemas/SubscriptionLinks'
        - $ref: '#/components/schemas/SubscriptionLinkGrace'
        - $ref: '#/components/schemas/SubscriptionLinkSuspend'
        - $ref: '#/components/schemas/SubscriptionLinkResume'
        - $ref: '#/components/schemas/SubscriptionLinkDeactivate'
      required:
        - self
    Validity:
      type: object
      description: Establishes the rules for the Product Offering validity
      oneOf:
        - $ref: '#/components/schemas/ValidityInterval'
        - $ref: '#/components/schemas/ValidityDuration'
      discriminator:
        propertyName: type
        mapping:
          interval: '#/components/schemas/ValidityInterval'
          duration: '#/components/schemas/ValidityDuration'
    ValidityInterval:
      allOf:
        - type: object
          properties:
            type:
              type: string
              description: Validity Interval type
              enum:
                - interval
            start_at:
              $ref: '#/components/schemas/ValidityStartAt'
            end_at:
              $ref: '#/components/schemas/ValidityEndAt'
          required:
            - type
            - start_at
            - end_at
    ValidityStartAt:
      $ref: '#/components/schemas/Iso8601DateTime'
      description: From when the Product Offering is valid. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
    ValidityEndAt:
      $ref: '#/components/schemas/Iso8601DateTime'
      description: Until when the Product Offering is valid. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
    ValidityDuration:
      allOf:
        - type: object
          properties:
            type:
              type: string
              description: Validity Duration type
              enum:
                - duration
            unit:
              $ref: '#/components/schemas/DurationUnit'
            unit_count:
              type: integer
            is_recurrent:
              type: boolean
              description: Whether or not this validity applies recurrency
              example: false
          required:
            - type
            - unit
            - unit_count
            - is_recurrent
    ValidityDurationRecurrent:
      description: The validity of a Plan is always recurrent
      allOf:
        - type: object
          properties:
            type:
              type: string
              description: Validity Duration type
              enum:
                - duration
            unit:
              $ref: '#/components/schemas/DurationUnit'
            unit_count:
              type: integer
          required:
            - type
            - unit
            - unit_count
    ValidityDurationRecurrentResponse:
      description: The validity of a Plan is always recurrent
      allOf:
        - type: object
          properties:
            type:
              type: string
              description: Validity Duration type
              enum:
                - duration
            unit:
              $ref: '#/components/schemas/DurationUnit'
            unit_count:
              type: integer
            is_recurrent:
              type: boolean
              description: Whether or not this validity applies recurrency
              enum:
                - true
          required:
            - type
            - unit
            - unit_count
    CoverageAreas:
      type: object
      description: List of Coverage Areas
      properties:
        _embedded:
          type: object
          description: The embedded resources
          properties:
            coverage_areas:
              type: array
              maxItems: 40
              description: The list of Coverage Areas
              items:
                $ref: '#/components/schemas/CoverageAreaSummary'
          required:
            - coverage_areas
        _links:
          $ref: '#/components/schemas/Pagination'
          description: The pagination links
      required:
        - _embedded
        - _links
    CoverageAreaBase:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/CoverageAreaId'
        name:
          type: string
          description: The Coverage Area name
        type:
          $ref: '#/components/schemas/CoverageAreaType'
        created_at:
          $ref: '#/components/schemas/CreatedAt'
        updated_at:
          $ref: '#/components/schemas/UpdatedAt'
        countries:
          $ref: '#/components/schemas/CoverageAreaCountries'
        _links:
          $ref: '#/components/schemas/CoverageAreaLinks'
      required:
        - id
        - name
        - type
        - created_at
        - countries
        - _links

    CoverageArea:
      allOf:
        - $ref: '#/components/schemas/CoverageAreaBase'
      required:
        - id
        - name
        - created_at
        - type
        - countries
        - _links
    CoverageAreaSummary:
      allOf:
        - $ref: '#/components/schemas/CoverageAreaBase'
    CoverageAreaLinks:
      type: object
      description: The links related to Coverage Area
      properties:
        self:
          $ref: '#/components/schemas/Link'
          description: The Coverage Area URI
      required:
        - self
    CoverageAreaType:
      type: string
      description: Coverage Area type
      enum:
        - local
        - regional
        - global
    CoverageAreaCountries:
      type: array
      description: The countries where the Coverage Area is valid according to [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)
      minItems: 1
      items:
        $ref: '#/components/schemas/Country'
    Iccid:
      type: string
      description: The ICCID of the profile
      pattern: ^89\d{17}$
      minLength: 19
      maxLength: 20
      example: '8988211234567890023'
    EmbeddedSubscription:
      type: object
      description: The resources related to the Subscription
      properties:
        sim_profile:
          $ref: '#/components/schemas/SimProfile'
        active_phone_numbers:
          $ref: '#/components/schemas/ActivePhoneNumbers'
        account:
          $ref: '#/components/schemas/EmbeddedAccount'
      required:
        - sim_profile
        - account
    EmbeddedOrderSubscription:
      type: object
      description: The resources related to the Subscription
      properties:
        sim_profile:
          $ref: '#/components/schemas/SimProfile'
        account:
          $ref: '#/components/schemas/EmbeddedAccount'
      required:
        - sim_profile
        - account
    SimProfile:
      description: The SIM Profile of the Subscription
      type: object
      properties:
        iccid:
          $ref: '#/components/schemas/Iccid'
        sim_type:
          type: string
          description: The Profile type
          example:
            - esim
        profile_status:
          type: string
          description: The Profile status
          example:
            - ready_for_installation
        matching_id:
          type: string
          description: The matching id associated with the Profile
          example:
            - 5C-ZYXZZ-1R54O94
        smdp_address:
          type: string
          description: The URL where the Profile can be downloaded
          example:
            - rsp.truphone.com
        _embedded:
          $ref: '#/components/schemas/EmbeddedSimProfile'
      required:
        - iccid
        - sim_type
        - profile_status
    SimProfileSummary:
      type: object
      properties:
        iccid:
          $ref: '#/components/schemas/Iccid'
        sim_type:
          type: string
          example: esim
      required:
        - iccid
        - sim_type
    EmbeddedSimProfile:
      type: object
      description: The resources related to the SIM Profile
      properties:
        device:
          $ref: '#/components/schemas/Device'
    Device:
      type: object
      description: The Device where the SIM Profile is installed
      properties:
        uicc:
          $ref: '#/components/schemas/UICC'
    UICC:
      type: object
      description: The Universal Integrated Circuit Card
      properties:
        eid:
          $ref: '#/components/schemas/EID'
    PhoneNumbersPaginated:
      type: object
      description: The phone numbers list
      properties:
        _embedded:
          type: object
          properties:
            phone_numbers:
              type: array
              maxItems: 40
              items:
                $ref: '#/components/schemas/PhoneNumber'
          required:
            -  phone_numbers
        _links:
          $ref: '#/components/schemas/Pagination'
      required:
        - _embedded
        - _links

    PhoneNumber:
      description: The phone number
      type: object
      properties:
        id:
          $ref: '#/components/schemas/PhoneNumberId'
        status:
          $ref: '#/components/schemas/PhoneNumberStatus'
        created_at:
          $ref: '#/components/schemas/CreatedAt'
        updated_at:
          $ref: '#/components/schemas/UpdatedAt'
        porting_opt_in:
          $ref: '#/components/schemas/PortingOptIn'
        port_out_expires_at:
          $ref: '#/components/schemas/PhoneNumberPortOutExpiryAt'
        msisdn:
          $ref: '#/components/schemas/Msisdn'
        country:
          $ref: '#/components/schemas/PhoneNumberCountry'
        is_primary:
          $ref: '#/components/schemas/PhoneNumberPrimary'
        _links:
          $ref: '#/components/schemas/PhoneNumberLinks'
      required:
        - id
        - status
        - created_at
        - msisdn
        - country
        - is_primary
        - _links
    ActivePhoneNumbers:
      type: array
      description: The active phone numbers of this Subscription
      items:
        $ref: '#/components/schemas/ActivePhoneNumber'
    ActivePhoneNumber:
      description: An active phone number
      type: object
      properties:
        id:
          $ref: '#/components/schemas/PhoneNumberId'
        status:
          description: The Phone Number status
          type: string
          enum:
            - active
        created_at:
          $ref: '#/components/schemas/CreatedAt'
        updated_at:
          $ref: '#/components/schemas/UpdatedAt'
        porting_opt_in:
          $ref: '#/components/schemas/PortingOptIn'
        port_out_expires_at:
          $ref: '#/components/schemas/PhoneNumberPortOutExpiryAt'
        msisdn:
          $ref: '#/components/schemas/Msisdn'
        country:
          $ref: '#/components/schemas/PhoneNumberCountry'
        is_primary:
          $ref: '#/components/schemas/PhoneNumberPrimary'
        _links:
          $ref: '#/components/schemas/PhoneNumberLinks'
      required:
        - id
        - status
        - created_at
        - msisdn
        - country
        - is_primary
        - _links
    PhoneNumberDetailedOptIn:
      description: The phone number
      oneOf:
        - $ref: '#/components/schemas/PhoneNumberActive'
        - $ref: '#/components/schemas/PhoneNumberTerminated'
      discriminator:
        propertyName: status
        mapping:
          active: '#/components/schemas/PhoneNumberActive'
          terminated: '#/components/schemas/PhoneNumberTerminated'
    PhoneNumberDetailed:
      description: The phone number
      anyOf:
        - $ref: '#/components/schemas/PhoneNumberActive'
        - $ref: '#/components/schemas/PhoneNumberTerminated'
        - $ref: '#/components/schemas/PhoneNumberActivePortedOut'
      discriminator:
        propertyName: status
        mapping:
          active: '#/components/schemas/PhoneNumberActive'
          terminated: '#/components/schemas/PhoneNumberTerminated'
          ported_out: '#/components/schemas/PhoneNumberActivePortedOut'
    PhoneNumberActive:
      type: object
      additionalProperties: false
      properties:
        id:
          $ref: '#/components/schemas/PhoneNumberId'
        status:
          type: string
          description: The Phone Number status
          enum:
            - active
        created_at:
          $ref: '#/components/schemas/CreatedAt'
        updated_at:
          $ref: '#/components/schemas/UpdatedAt'
        msisdn:
          $ref: '#/components/schemas/Msisdn'
        country:
          $ref: '#/components/schemas/PhoneNumberCountry'
        is_primary:
          $ref: '#/components/schemas/PhoneNumberPrimary'
        porting_opt_in:
          $ref: '#/components/schemas/PortingOptIn'
        _links:
          $ref: '#/components/schemas/PhoneNumberLinks'
      required:
        - id
        - status
        - created_at
        - msisdn
        - country
        - is_primary
        - _links
    PhoneNumberTerminated:
      type: object
      additionalProperties: false
      properties:
        id:
          $ref: '#/components/schemas/PhoneNumberId'
        status:
          type: string
          description: The Phone Number status
          enum:
            - terminated
        created_at:
          $ref: '#/components/schemas/CreatedAt'
        updated_at:
          $ref: '#/components/schemas/UpdatedAt'
        port_out_expires_at:
          $ref: '#/components/schemas/PhoneNumberPortOutExpiryAt'
        msisdn:
          $ref: '#/components/schemas/Msisdn'
        country:
          $ref: '#/components/schemas/PhoneNumberCountry'
        is_primary:
          $ref: '#/components/schemas/PhoneNumberPrimary'
        porting_opt_in:
          $ref: '#/components/schemas/PortingOptIn'
        _links:
          $ref: '#/components/schemas/PhoneNumberLinks'
      required:
        - id
        - status
        - created_at
        - port_out_expires_at
        - msisdn
        - country
        - is_primary
        - _links
    PhoneNumberActivePortedOut:
      type: object
      additionalProperties: false
      properties:
        id:
          $ref: '#/components/schemas/PhoneNumberId'
        status:
          type: string
          description: The Phone Number status
          enum:
            - ported_out
        created_at:
          $ref: '#/components/schemas/CreatedAt'
        updated_at:
          $ref: '#/components/schemas/UpdatedAt'
        msisdn:
          $ref: '#/components/schemas/Msisdn'
        country:
          $ref: '#/components/schemas/PhoneNumberCountry'
        is_primary:
          $ref: '#/components/schemas/PhoneNumberPrimary'
        _links:
          $ref: '#/components/schemas/PhoneNumberLinksPortedOut'
      required:
        - id
        - status
        - created_at
        - msisdn
        - country
        - is_primary
        - _links
    PortingOptIn:
      type: object
      properties:
        enabled:
          type: boolean
          example: true
        expires_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Opt In will expire
          example: '2024-10-01T14:28:17.456Z'
      required:
        - enabled
    PhoneNumberLinks:
      type: object
      description: The links related to Phone Number
      properties:
        self:
          $ref: '#/components/schemas/Link'
          description: The Phone Number URI
        enable-porting-opt-in:
          $ref: '#/components/schemas/Link'
          description: The Phone Number URI to enable porting opt-in
        disable-porting-opt-in:
          $ref: '#/components/schemas/Link'
          description: The Phone Number URI to disable porting opt-in
        subscription:
          $ref: '#/components/schemas/Link'
          description: The Phone Number subscription URI
      required:
        - self
    PhoneNumberLinksPortedOut:
      type: object
      description: The links related to Phone Number
      properties:
        self:
          $ref: '#/components/schemas/Link'
          description: The Phone Number URI
        subscription:
          $ref: '#/components/schemas/Link'
          description: The Phone Number subscription URI
      required:
        - self
    PhoneNumberPortOutExpiryAt:
      $ref: '#/components/schemas/Iso8601DateTime'
      description: Until when the Phone Number can be ported out. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
    Msisdn:
      type: string
      description: The MSISDN of the Phone Number in E.164 format
      maxLength: 15
      example: '+447559451000017'
    PhoneNumberCountry:
      $ref: '#/components/schemas/OneGlobalCountry'
    PhoneNumberStatus:
      type: string
      description: The Phone Number status
      enum:
        - active
        - terminated
        - ported_out
    PhoneNumberPrimary:
      type: boolean
      description: Whether or not this phone number is primary
    AccountId:
      type: string
      description: A string that uniquely identifies an Account
      maxLength: 100
      example: acc_01BX5ZZKBKACTAV9WEVGEMMVRY
    ApiVersion:
      type: string
      description: A string that identifies an api version.
      enum:
        - 'TBD'
    SubscriberId:
      type: string
      description: A string that uniquely identifies a Subscriber
      maxLength: 100
      example: subr_01HRC2T6WK4CMVGFXA2RESTQ97
    ProductCatalogId:
      type: string
      description: A string that uniquely identifies a Product Catalog
      maxLength: 100
      example: prdcat_01BX5ZZKBKACTAV9WEVGEMMVRY
    ProductOfferingId:
      type: string
      description: A string that uniquely identifies a Product Offering
      maxLength: 100
      example: prdoff_01HV483CD6YFTW68D18V23Y8NJ
    CoverageAreaId:
      type: string
      description: A string that uniquely identifies a Coverage Area
      maxLength: 100
      example: cov_01BX5ZZKBKACTAV9WEVGEMMVRY
    SubscriptionId:
      type: string
      description: A string that uniquely identifies a Subscription
      maxLength: 100
      example: subs_01J9XJ11WTYFWFH5JD2YM1S18S
    PhoneNumberId:
      type: string
      description: A string that uniquely identifies a Phone Number
      maxLength: 100
      example: pn_01BX5ZZKBKACTAV9WEVGEMMVL6
    ProductId:
      type: string
      description: A string that uniquely identifies a Product
      maxLength: 100
      example: prd_01BX5ZZKBKACTAV9WEVGEMMVRY
    OrderId:
      type: string
      description: A string that uniquely identifies an Order
      maxLength: 100
      example: ord_01HV3KWPNRCT870WV3XG41CAT3
    EventId:
      type: string
      description: A string that uniquely identifies an Event
      maxLength: 100
      example: evt_01J494G6WZAR2E2808Z8M07K4Z
    EID:
      type: string
      minLength: 32
      maxLength: 32
      description: The eUICC Identifier
      example: '89049032004118882600018948798950'
    Cursor:
      type: string
      description: A base64 encoded string that uniquely identifies the first entry of a query result.
    Limit:
      type: integer
      format: int32
      default: 10
      minimum: 1
      maximum: 40
      description: The page size filter
    OrderNotificationCompleted:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        type:
          type: string
          description: The type of notification
          enum:
            - order.completed
        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
        data:
          type: object
          properties:
            order:
              $ref: '#/components/schemas/Order'
          required:
            - order
      required:
        - id
        - type
        - created_at
        - data
    OrderNotificationFailed:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        type:
          type: string
          description: The type of notification
          enum:
            - order.failed
        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
        data:
          type: object
          properties:
            order:
              $ref: '#/components/schemas/Order'
          required:
            - order
      required:
        - id
        - type
        - created_at
        - data
    OrderNotificationCanceled:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        type:
          type: string
          description: The type of notification
          enum:
            - order.canceled
        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
        data:
          type: object
          properties:
            order:
              $ref: '#/components/schemas/Order'
          required:
            - order
      required:
        - id
        - type
        - created_at
        - data
    BalanceThresholdNotification:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        type:
          type: string
          description: The type of notification
          enum:
            - balance.threshold.exceeded
        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
        data:
          type: object
          properties:
            threshold:
              $ref: '#/components/schemas/BalanceThresholdData'
            product:
              $ref: '#/components/schemas/ProductResponseActive'
          required:
            - threshold
            - product
      required:
        - id
        - type
        - created_at
        - data
    ProductNotificationTerminated:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        type:
          type: string
          description: The type of notification
          enum:
            - product.terminated
        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
        data:
          type: object
          properties:
            product:
              $ref: '#/components/schemas/ProductResponseTerminated'
          required:
            - product
      required:
        - id
        - type
        - created_at
        - data
    ProductNotificationDepleted:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        type:
          type: string
          description: The type of notification
          enum:
            - product.depleted
        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
        data:
          type: object
          properties:
            product:
              $ref: '#/components/schemas/ProductResponseDepleted'
          required:
            - product
      required:
        - id
        - type
        - created_at
        - data
    ProductNotificationActive:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        type:
          type: string
          description: The type of notification
          enum:
            - product.active
        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
        data:
          type: object
          properties:
            product:
              $ref: '#/components/schemas/ProductResponseActive'
          required:
            - product
      required:
        - id
        - type
        - created_at
        - data
    ProductNotificationCanceled:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        type:
          type: string
          description: The type of notification
          enum:
            - product.canceled
        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
        data:
          type: object
          properties:
            product:
              $ref: '#/components/schemas/ProductResponseCanceled'
          required:
            - product
      required:
        - id
        - type
        - created_at
        - data
    ProductThrottlingAppliedNotification:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        type:
          type: string
          description: The type of notification
          enum:
            - product.throttling.applied
        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
        data:
          type: object
          properties:
            throttling:
              $ref: '#/components/schemas/ThrottlingData'
            product:
              $ref: '#/components/schemas/ProductResponseActive'
          required:
            - throttling
            - product
      required:
        - id
        - type
        - created_at
        - data
    ThrottlingData:
      type: object
      properties:
        bandwidth:
          type: string
        period:
          type: string
        reset_at:
          $ref: '#/components/schemas/Iso8601DateTime'
      required:
        - bandwidth
        - period
        - reset_at
    SubscriptionNotificationActive:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        type:
          type: string
          description: The type of notification
          enum:
            - subscription.active
        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
        data:
          type: object
          properties:
            subscription:
              $ref: '#/components/schemas/SubscriptionActive'
          required:
            - subscription
      required:
        - id
        - type
        - created_at
        - data
    SubscriptionNotificationGrace:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        type:
          type: string
          description: The type of notification
          enum:
            - subscription.grace
        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
        data:
          type: object
          properties:
            subscription:
              $ref: '#/components/schemas/SubscriptionGrace'
          required:
            - subscription
      required:
        - id
        - type
        - created_at
        - data
    SubscriptionNotificationSuspended:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        type:
          type: string
          description: The type of notification
          enum:
            - subscription.suspended
        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
        data:
          type: object
          properties:
            subscription:
              $ref: '#/components/schemas/SubscriptionSuspended'
          required:
            - subscription
      required:
        - id
        - type
        - created_at
        - data
    SubscriptionNotificationTerminated:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        type:
          type: string
          description: The type of notification
          enum:
            - subscription.terminated
        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
        data:
          type: object
          properties:
            subscription:
              $ref: '#/components/schemas/SubscriptionTerminated'
          required:
            - subscription
      required:
        - id
        - type
        - created_at
        - data
    SubscriptionNotificationDeactivated:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        type:
          type: string
          description: The type of notification
          enum:
            - subscription.deactivated
        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
        data:
          type: object
          properties:
            subscription:
              $ref: '#/components/schemas/SubscriptionDeactivated'
          required:
            - subscription
      required:
        - id
        - type
        - created_at
        - data
    SubscriptionNotificationCanceled:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        type:
          type: string
          description: The type of notification
          enum:
            - subscription.canceled
        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
        data:
          type: object
          properties:
            subscription:
              $ref: '#/components/schemas/SubscriptionCancelled'
          required:
            - subscription
      required:
        - id
        - type
        - created_at
        - data
    SubscriptionProfileNotificationInstalled:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        type:
          type: string
          description: The type of notification
          enum:
            - subscription.sim_profile.installed
        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
        data:
          type: object
          properties:
            subscription:
              $ref: '#/components/schemas/Subscription'
          required:
            - subscription
      required:
        - id
        - type
        - created_at
        - data
    SubscriptionProfileNotificationDeleted:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        type:
          type: string
          description: The type of notification
          enum:
            - subscription.sim_profile.deleted
        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
        data:
          type: object
          properties:
            subscription:
              $ref: '#/components/schemas/Subscription'
          required:
            - subscription
      required:
        - id
        - type
        - created_at
        - data
    SubscriptionProfileNotificationReadyForInstallation:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        type:
          type: string
          description: The type of notification
          enum:
            - subscription.sim_profile.ready_for_installation
        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
        data:
          type: object
          properties:
            subscription:
              $ref: '#/components/schemas/Subscription'
            order:
              $ref: '#/components/schemas/MinimalOrderInfo'
          required:
            - subscription
            - order
      required:
        - id
        - type
        - created_at
        - data
    PortingCountry:
      type: string
      description: The supported country codes according to [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)
      enum:
        - DE
        - PL
    PortingId:
      type: string
      description: A string that uniquely identifies an Porting
      maxLength: 100
      example: port_01HV3KWPNRCT870WV3XG41CAT3
    ContractId:
      type: string
      description: A string that uniquely identifies an Contract
      maxLength: 100
      example: con_02HV3KWPNICT800WV3XG41CAT5
    InvoiceId:
      type: string
      description: A string that uniquely identifies an Invoice
      maxLength: 100
      example: inv_02HV3KWPNICT800WV3XG41CAT5
    PortingList:
      type: object
      description: List of Porting
      properties:
        _embedded:
          type: object
          description: The embedded resources
          properties:
            portings:
              type: array
              description: The list of Porting
              maxItems: 40
              items:
                $ref: '#/components/schemas/Porting'
          required:
            - portings
        _links:
          $ref: '#/components/schemas/Pagination'
      required:
        - _embedded
        - _links
    PortingStatus:
      type: string
      description: The Porting status
      enum:
        - draft
        - pending
        - rejected
        - scheduled
        - processing
        - cancelation_requested
        - canceled
        - completed
        - reschedule_requested
      example: completed
    CreatePorting:
      oneOf: 
        -  $ref: '#/components/schemas/CreatePortingDE'
        -  $ref: '#/components/schemas/CreatePortingPL'
      discriminator: 
        propertyName: country
        mapping: 
          DE: '#/components/schemas/CreatePortingDE'
          PL: '#/components/schemas/CreatePortingPL'
    CreatePortingDirection:
      type: string
      enum:
        - in
      example: in
      description: Porting direction
    CreatePortingDE:
      type: object
      properties:
        direction:
          $ref: '#/components/schemas/CreatePortingDirection'
        country:
          type: string
          enum: [ DE ]
          example: 'DE'
          description: 'Porting country'
        subscription_id:
          $ref: '#/components/schemas/SubscriptionId'
        phone_number_id:
          $ref: '#/components/schemas/PhoneNumberId'
        msisdn:
          $ref: '#/components/schemas/Msisdn'
        donor_details:
          $ref: '#/components/schemas/DonorDetailsDE'
        preferred_schedule:
          $ref: '#/components/schemas/CreatePortingPreferredScheduleDE'

      required:
        - direction
        - country
        - subscription_id
        - phone_number_id
        - msisdn
        - donor_details
        - preferred_schedule

    CreatePortingPreferredScheduleDE:
      type: object
      properties:
        type:
          type: string
          enum: [ specific_date,contract_end ]
          example: "specific_date"
          description: "Porting scheduled type"
        preferred_porting_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: The preferred porting datetime. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
      required:
        - type

    DonorDetailsDE:
      type: object
      properties:
        network_operator_id:
          $ref: '#/components/schemas/NetworkOperatorId'
        service_provider_id:
          $ref: '#/components/schemas/ServiceProviderId'
        account:
          oneOf:
            - $ref: '#/components/schemas/DonorDetailsAccountCustomerDE'
            - $ref: '#/components/schemas/DonorDetailsAccountBusinessDE'
          discriminator:
            propertyName: type
            mapping:
              personal: '#/components/schemas/DonorDetailsAccountCustomerDE'
              business: '#/components/schemas/DonorDetailsAccountBusinessDE'
      required:
        - service_provider_id
        - account

    DonorDetailsAccountCustomerDE:
      type: object
      properties:
        type:
          type: string
          enum: [ personal ]
          example: "personal"
          description: "The type of account"
      required:
        - type

    DonorDetailsAccountBusinessDE:
      type: object
      properties:
        type:
          type: string
          enum: [ business ]
          example: "business"
          description: "The type of account"
        company_name:
          type: string
        account_number:
          type: string
      required:
        - type
        - company_name
        - account_number

    CreatePortingPL:
      type: object
      properties:
        direction:
          $ref: '#/components/schemas/CreatePortingDirection'
        country:
          type: string
          enum: [ PL ]
          example: 'PL'
          description: 'Porting country'
        subscription_id:
          $ref: '#/components/schemas/SubscriptionId'
        phone_number_id:
          $ref: '#/components/schemas/PhoneNumberId'
        msisdn:
          $ref: '#/components/schemas/Msisdn'
        donor_details:
          $ref: '#/components/schemas/DonorDetailsPL'
        preferred_schedule:
          $ref: '#/components/schemas/CreatePortingPreferredSchedulePL'        
        supported_documents:
          type: array
          items: 
            $ref: '#/components/schemas/CreatePortabilitySuportedDocument'
        consents:
          $ref: '#/components/schemas/ConsentsInPL'  
        

      required:
        - direction
        - country
        - subscription_id
        - phone_number_id
        - msisdn
        - donor_details
        - preferred_schedule
        - consents
    
    ConsentsInPL:
      type: object
      properties:
        power_of_attorney:
          type: boolean
        awareness_financial_consequences:
          type: boolean
      required:
        - power_of_attorney
        - awareness_financial_consequences

    ConsentsOutPL:
      type: object
      properties:
        power_of_attorney:
          type: boolean
      required:
        - power_of_attorney


    CreatePortingPreferredSchedulePL:
      type: object
      properties:
        type:
          type: string
          enum: [ specific_date, notice_period_end_date, contract_end ]
          example: "specific_date"
          description: "Porting scheduled type"
        preferred_porting_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: The preferred porting datetime. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
      required:
        - type

    DonorDetailsPL:
      type: object
      properties:
        network_operator_id:
          $ref: '#/components/schemas/NetworkOperatorId'
        service_provider_id:
          $ref: '#/components/schemas/ServiceProviderId'
        account:
          oneOf:
            - $ref: '#/components/schemas/DonorDetailsAccountCustomerPL'
            - $ref: '#/components/schemas/DonorDetailsAccountBusinessPL'
      required:
        - service_provider_id
        - account

    DonorDetailsAccountCustomerPL:
      type: object
      properties:
        type:
          type: string
          enum: [ personal ]
          example: "personal"
          description: "The type of account"        
        service_type:
          type: string
          enum: [ prepaid, postpaid ]
          example: "prepaid"
          description: "The type of service in the donor"
      required:
        - type
        - service_type

    DonorDetailsAccountBusinessBasedPL:
      type: object
      properties:
        type:
          type: string
          enum: [ business ]
          example: "business"
          description: "The type of account"
        company_name:
          type: string
        account_number:
          type: string
        service_type:
          type: string
          enum: [ prepaid, postpaid ]
          example: "prepaid"
          description: "The type of service in the donor"
      required:
        - type
        - company_name
        - account_number
        - service_type

    DonorDetailsAccountBusinessPL:
      oneOf: 
        -  $ref: "#/components/schemas/DonorDetailsAccountBusinessRegonPL"
        -  $ref: "#/components/schemas/DonorDetailsAccountBusinessNIPPL"

    DonorDetailsAccountBusinessRegonPL:
      allOf: 
        - $ref: "#/components/schemas/DonorDetailsAccountBusinessBasedPL"
        - type: object
          properties:
            regon:
              type: string
          required:
            -  regon

    DonorDetailsAccountBusinessNIPPL:
      allOf: 
        -  $ref: "#/components/schemas/DonorDetailsAccountBusinessBasedPL"
        - type: object
          properties:
            nip:
              type: string
          required:
            -  nip
 
    CreatePortabilitySuportedDocument:
      type: object
      properties:
        file_id:
          $ref: '#/components/schemas/FileId'
        purpose: 
          type: string
          enum: [ 'power_of_attorney', 'awareness_financial_consequences', 'other']
        note: 
          type: string
      required:
        - file_id
        - purpose

    PortabilitySuportedDocumentSummary:
      type: object
      properties:
        purpose: 
          type: string
          enum: [ 'power_of_attorney', 'awareness_financial_consequences', 'other']
        note: 
          type: string
        _embedded:
          $ref: '#/components/schemas/PortabilitySuportedDocumentEmbeddedSummary'
      required:
        - purpose
        - _embedded
    
    PortabilitySuportedDocumentEmbeddedSummary:
      type: object
      properties:
        file:
          $ref: '#/components/schemas/PortabilitySuportedDocumentEmbeddedFileSummary'
      required:
        - file

    PortabilitySuportedDocumentEmbeddedFileSummary:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/FileId'
        _links:
          $ref: '#/components/schemas/FileLinksSummary'
      required:
        - id
        - _links

    PortabilitySuportedDocument:
      type: object
      properties:
        purpose: 
          type: string
          enum: [ 'power_of_attorney', 'awareness_financial_consequences', 'other']
        note: 
          type: string
        _embedded:
          $ref: '#/components/schemas/PortabilitySuportedDocumentEmbedded'
      required:
        - purpose
        - _embedded
    
    PortabilitySuportedDocumentEmbedded:
      type: object
      properties:
        file:
          $ref: '#/components/schemas/PortabilitySuportedDocumentEmbeddedFile'
      required:
        - file
    
    PortabilitySuportedDocumentEmbeddedFile:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/FileId'
        _links:
          $ref: '#/components/schemas/FileLinks'
      required:
        - id
        - _links
    PortingTerminationAction:
      type: string
      enum:
        - terminate
      example: terminate
      description: The porting termination action when porting-out
    Porting:
      anyOf:
        - $ref: '#/components/schemas/PortingInDraftOrPending'
        - $ref: '#/components/schemas/PortingInScheduledOrCancelationRequestedOrProcessing'
        - $ref: '#/components/schemas/PortingInCanceled'
        - $ref: '#/components/schemas/PortingInCompleted'
        - $ref: '#/components/schemas/PortingInRejected'
        - $ref: '#/components/schemas/PortingOutPending'
        - $ref: '#/components/schemas/PortingOutScheduledOrCancelationRequested'
        - $ref: '#/components/schemas/PortingOutProcessing'
        - $ref: '#/components/schemas/PortingOutCanceled'
        - $ref: '#/components/schemas/PortingOutCompleted'
        - $ref: '#/components/schemas/PortingOutRejected'
        - $ref: '#/components/schemas/PortingOutRescheduleRequested'    
    PortingSummary:
      anyOf:
        - $ref: '#/components/schemas/PortingInDraftOrPendingSummary'
        - $ref: '#/components/schemas/PortingInScheduledOrCancelationRequestedOrProcessingSummary'
        - $ref: '#/components/schemas/PortingInCanceledSummary'
        - $ref: '#/components/schemas/PortingInCompletedSummary'
        - $ref: '#/components/schemas/PortingInRejectedSummary'
        - $ref: '#/components/schemas/PortingOutPending'
        - $ref: '#/components/schemas/PortingOutScheduledOrCancelationRequested'
        - $ref: '#/components/schemas/PortingOutProcessing'
        - $ref: '#/components/schemas/PortingOutCanceled'
        - $ref: '#/components/schemas/PortingOutCompleted'
        - $ref: '#/components/schemas/PortingOutRejected'
        - $ref: '#/components/schemas/PortingOutRescheduleRequested'
    
    PortingInDraftOrPendingSummary:
      anyOf: 
        - $ref: '#/components/schemas/PortingInDraftOrPendingDE'
        - $ref: '#/components/schemas/PortingInDraftOrPendingPLSummary'
      discriminator: 
        propertyName: country
        mapping: 
          DE:  '#/components/schemas/PortingInDraftOrPendingDE'
          PL:  '#/components/schemas/PortingInDraftOrPendingPLSummary'
    
    PortingInScheduledOrCancelationRequestedOrProcessingSummary:
      anyOf:
        - $ref: '#/components/schemas/PortingInScheduledOrCancelationRequestedOrProcessingDE'
        - $ref: '#/components/schemas/PortingInScheduledOrCancelationRequestedOrProcessingPLSummary'
      discriminator: 
        propertyName: country
        mapping: 
          DE:  '#/components/schemas/PortingInScheduledOrCancelationRequestedOrProcessingDE'
          PL:  '#/components/schemas/PortingInScheduledOrCancelationRequestedOrProcessingPLSummary'

    PortingInCanceledSummary:
      anyOf:
        - $ref: '#/components/schemas/PortingInCanceledDE'
        - $ref: '#/components/schemas/PortingInCanceledPLSummary'
      discriminator: 
        propertyName: country
        mapping: 
          DE:  '#/components/schemas/PortingInCanceledDE'
          PL:  '#/components/schemas/PortingInCanceledPLSummary'

    PortingInCompletedSummary:
      anyOf:
        - $ref: '#/components/schemas/PortingInCompletedDE'
        - $ref: '#/components/schemas/PortingInCompletedPLSummary'
      discriminator: 
        propertyName: country
        mapping: 
          DE:  '#/components/schemas/PortingInCompletedDE'
          PL:  '#/components/schemas/PortingInCompletedPLSummary'

    PortingInRejectedSummary:
      anyOf:
        - $ref: '#/components/schemas/PortingInRejectedDE'
        - $ref: '#/components/schemas/PortingInRejectedPLSummary'
      discriminator: 
        propertyName: country
        mapping: 
          DE:  '#/components/schemas/PortingInRejectedDE' 
          PL:  '#/components/schemas/PortingInRejectedPLSummary'

    
    
    PortingInDraftOrPending:
      anyOf: 
        - $ref: '#/components/schemas/PortingInDraftOrPendingDE'
        - $ref: '#/components/schemas/PortingInDraftOrPendingPL'
      discriminator: 
        propertyName: country
        mapping: 
          DE:  '#/components/schemas/PortingInDraftOrPendingDE'
          PL:  '#/components/schemas/PortingInDraftOrPendingPL'

    PortingInDraft:
      anyOf: 
        - $ref: '#/components/schemas/PortingInDraftDE'
        - $ref: '#/components/schemas/PortingInDraftPL'
      discriminator: 
        propertyName: country
        mapping: 
          DE:  '#/components/schemas/PortingInDraftDE'
          PL:  '#/components/schemas/PortingInDraftPL'

    PortingInPending:
      anyOf:
        - $ref: '#/components/schemas/PortingInPendingDE'
        - $ref: '#/components/schemas/PortingInPendingPL'
      discriminator: 
        propertyName: country
        mapping: 
          DE:  '#/components/schemas/PortingInPendingDE'
          PL:  '#/components/schemas/PortingInPendingPL'
    
    PortingInScheduledOrCancelationRequestedOrProcessing:
      anyOf:
        - $ref: '#/components/schemas/PortingInScheduledOrCancelationRequestedOrProcessingDE'
        - $ref: '#/components/schemas/PortingInScheduledOrCancelationRequestedOrProcessingPL'
      discriminator: 
        propertyName: country
        mapping: 
          DE:  '#/components/schemas/PortingInScheduledOrCancelationRequestedOrProcessingDE'
          PL:  '#/components/schemas/PortingInScheduledOrCancelationRequestedOrProcessingPL'

    PortingInScheduled:
      anyOf:
        - $ref: '#/components/schemas/PortingInScheduledDE'
        - $ref: '#/components/schemas/PortingInScheduledPL'
      discriminator: 
        propertyName: country
        mapping: 
          DE:  '#/components/schemas/PortingInScheduledDE'
          PL:  '#/components/schemas/PortingInScheduledPL'

    PortingInProcessing:
      anyOf:
        - $ref: '#/components/schemas/PortingInProcessingDE'
        - $ref: '#/components/schemas/PortingInProcessingPL'
      discriminator: 
        propertyName: country
        mapping: 
          DE:  '#/components/schemas/PortingInProcessingDE'
          PL:  '#/components/schemas/PortingInProcessingPL'

    PortingInCancelationRequested:
      anyOf:
        - $ref: '#/components/schemas/PortingInCancelationRequestedDE'
        - $ref: '#/components/schemas/PortingInCancelationRequestedPL'
      discriminator: 
        propertyName: country
        mapping: 
          DE:  '#/components/schemas/PortingInCancelationRequestedDE'
          PL:  '#/components/schemas/PortingInCancelationRequestedPL'

    PortingInCanceled:
      anyOf:
        - $ref: '#/components/schemas/PortingInCanceledDE'
        - $ref: '#/components/schemas/PortingInCanceledPL'
      discriminator: 
        propertyName: country
        mapping: 
          DE:  '#/components/schemas/PortingInCanceledDE'
          PL:  '#/components/schemas/PortingInCanceledPL'

    PortingInCompleted:
      anyOf:
        - $ref: '#/components/schemas/PortingInCompletedDE'
        - $ref: '#/components/schemas/PortingInCompletedPL'
      discriminator: 
        propertyName: country
        mapping: 
          DE:  '#/components/schemas/PortingInCompletedDE'
          PL:  '#/components/schemas/PortingInCompletedPL'

    PortingInRejected:
      anyOf:
        - $ref: '#/components/schemas/PortingInRejectedDE'
        - $ref: '#/components/schemas/PortingInRejectedPL'
      discriminator: 
        propertyName: country
        mapping: 
          DE:  '#/components/schemas/PortingInRejectedDE' 
          PL:  '#/components/schemas/PortingInRejectedPL'

    PortingOutPending:
      anyOf: 
        - $ref: '#/components/schemas/PortingOutPendingDE'
        - $ref: '#/components/schemas/PortingOutPendingPL'
      discriminator: 
        propertyName: country
        mapping: 
          DE:  '#/components/schemas/PortingOutPendingDE'
          PL:  '#/components/schemas/PortingOutPendingPL'
    
    PortingOutScheduledOrCancelationRequested:
      anyOf:
        - $ref: '#/components/schemas/PortingOutScheduledOrCancelationRequestedDE'
        - $ref: '#/components/schemas/PortingOutScheduledOrCancelationRequestedPL'
      discriminator: 
        propertyName: country
        mapping: 
          DE:  '#/components/schemas/PortingOutScheduledOrCancelationRequestedDE'
          PL:  '#/components/schemas/PortingOutScheduledOrCancelationRequestedPL'
  
    PortingOutScheduled:
      anyOf:
        - $ref: '#/components/schemas/PortingOutScheduledDE'
        - $ref: '#/components/schemas/PortingOutScheduledPL'
      discriminator: 
        propertyName: country
        mapping: 
          DE:  '#/components/schemas/PortingOutScheduledDE'
          PL:  '#/components/schemas/PortingOutScheduledPL'

    PortingOutProcessing:
      anyOf:
        - $ref: '#/components/schemas/PortingOutProcessingDE'
        - $ref: '#/components/schemas/PortingOutProcessingPL'
      discriminator: 
        propertyName: country
        mapping: 
          DE:  '#/components/schemas/PortingOutProcessingDE'
          PL:  '#/components/schemas/PortingOutProcessingPL'

    PortingOutCancelationRequested:
      anyOf:
        - $ref: '#/components/schemas/PortingOutCancelationRequestedDE'
        - $ref: '#/components/schemas/PortingOutCancelationRequestedPL'
      discriminator: 
        propertyName: country
        mapping: 
          DE:  '#/components/schemas/PortingOutCancelationRequestedDE'
          PL:  '#/components/schemas/PortingOutCancelationRequestedPL'

    PortingOutCanceled:
      anyOf:
        - $ref: '#/components/schemas/PortingOutCanceledDE'
        - $ref: '#/components/schemas/PortingOutCanceledPL'
      discriminator: 
        propertyName: country
        mapping: 
          DE:  '#/components/schemas/PortingOutCanceledDE'
          PL:  '#/components/schemas/PortingOutCanceledPL'

    PortingOutCompleted:
      anyOf:
        - $ref: '#/components/schemas/PortingOutCompletedDE'
        - $ref: '#/components/schemas/PortingOutCompletedPL'
      discriminator: 
        propertyName: country
        mapping: 
          DE:  '#/components/schemas/PortingOutCompletedDE'
          PL:  '#/components/schemas/PortingOutCompletedPL'

    PortingOutRejected:
      anyOf:
        - $ref: '#/components/schemas/PortingOutRejectedDE'
        - $ref: '#/components/schemas/PortingOutRejectedPL'
      discriminator: 
        propertyName: country
        mapping: 
          DE:  '#/components/schemas/PortingOutRejectedDE'
          PL:  '#/components/schemas/PortingOutRejectedPL'
    
    PortingOutRescheduleRequested:
      anyOf:
        - $ref: '#/components/schemas/PortingOutRescheduleRequestedPL'
      discriminator: 
        propertyName: country
        mapping:
          PL:  '#/components/schemas/PortingOutRescheduleRequestedPL'
    
    PortingInDraftOrPendingDE:
      type: object
      additionalProperties: false
      properties:
        id:
          $ref: '#/components/schemas/PortingId'
        direction:
          type: string
          enum: [ in ]
          example: 'in'
          description: 'Porting direction'
        preferred_schedule:
          $ref: '#/components/schemas/PortingPreferredScheduledDE'
        country:
          type: string
          enum: [ DE ]
          example: 'DE'
          description: 'Porting country'
        status:
          type: string
          enum: [ draft, pending ]
          example: 'draft'
          description: 'Porting status'
        msisdn:
          $ref: '#/components/schemas/Msisdn'
        donor_details:
          $ref: '#/components/schemas/PortingDonorDetailsDE'
        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was created. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        updated_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was updated. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        _links:
          $ref: '#/components/schemas/PortingLinksBase'
      required:
        - id
        - direction
        - preferred_schedule
        - country
        - status
        - created_at
        - updated_at
        - msisdn
        - donor_details
        - _links

    PortingInScheduledOrCancelationRequestedOrProcessingDE:
      type: object
      additionalProperties: false
      properties:
        id:
          $ref: '#/components/schemas/PortingId'
        direction:
          type: string
          enum: [ in ]
          example: 'in'
          description: 'Porting direction'
        preferred_schedule:
          $ref: '#/components/schemas/PortingPreferredScheduledDE'
        country:
          type: string
          enum: [ DE ]
          example: 'DE'
          description: 'Porting country'

        status:
          type: string
          enum: [ scheduled, cancelation_requested, processing ]
          example: 'scheduled'
          description: 'Porting status'

        msisdn:
          $ref: '#/components/schemas/Msisdn'

        donor_details:
          $ref: '#/components/schemas/PortingDonorDetailsDE'

        scheduled_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was scheduled. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)

        cancelation_deadline_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting will be lock and no cancelation is allowed. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)

        declined_cancelation:
          $ref: '#/components/schemas/PortingDeclinedCancelation'

        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was created. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        updated_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was updated. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        _links:
          allOf:
            - $ref: '#/components/schemas/PortingLinksBase'
            - $ref: '#/components/schemas/PortingInScheduledLinksDE'
      required:
        - id
        - direction
        - preferred_schedule
        - country
        - status
        - scheduled_at
        - created_at
        - updated_at
        - msisdn
        - cancelation_deadline_at
        - donor_details
        - _links  

    PortingInDraftDE:
      type: object
      additionalProperties: false
      properties:
        id:
          $ref: '#/components/schemas/PortingId'
        direction:
          type: string
          enum: [ in ]
          example: 'in'
          description: 'Porting direction'
        preferred_schedule:
          $ref: '#/components/schemas/PortingPreferredScheduledDE'
        country:
          type: string
          enum: [ DE ]
          example: 'DE'
          description: 'Porting country'
        status:
          type: string
          enum: [ draft ]
          example: 'draft'
          description: 'Porting status'
        msisdn:
          $ref: '#/components/schemas/Msisdn'
        donor_details:
          $ref: '#/components/schemas/PortingDonorDetailsDE'
        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was created. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        updated_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was updated. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        _links:
          $ref: '#/components/schemas/PortingLinksBase'
      required:
        - id
        - direction
        - preferred_schedule
        - country
        - status
        - created_at
        - updated_at
        - msisdn
        - donor_details
        - _links

    PortingInPendingDE:
      type: object
      additionalProperties: false
      properties:
        id:
          $ref: '#/components/schemas/PortingId'
        direction:
          type: string
          enum: [ in ]
          example: 'in'
          description: 'Porting direction'
        preferred_schedule:
          $ref: '#/components/schemas/PortingPreferredScheduledDE'
        country:
          type: string
          enum: [ DE ]
          example: 'DE'
          description: 'Porting country'
        status:
          type: string
          enum: [ pending ]
          example: 'pending'
          description: 'Porting status'
        msisdn:
          $ref: '#/components/schemas/Msisdn'
        donor_details:
          $ref: '#/components/schemas/PortingDonorDetailsDE'
        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was created. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        updated_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was updated. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        _links:
          allOf:
            - $ref: '#/components/schemas/PortingLinksBase'

      required:
        - id
        - direction
        - preferred_schedule
        - country
        - status
        - created_at
        - updated_at
        - msisdn
        - donor_details
        - _links

    PortingInScheduledDE:
      type: object
      additionalProperties: false
      properties:
        id:
          $ref: '#/components/schemas/PortingId'
        direction:
          type: string
          enum: [ in ]
          example: 'in'
          description: 'Porting direction'
        preferred_schedule:
          $ref: '#/components/schemas/PortingPreferredScheduledDE'

        country:
          type: string
          enum: [ DE ]
          example: 'DE'
          description: 'Porting country'

        status:
          type: string
          enum: [ scheduled ]
          example: 'scheduled'
          description: 'Porting status'

        msisdn:
          $ref: '#/components/schemas/Msisdn'

        donor_details:
          $ref: '#/components/schemas/PortingDonorDetailsDE'

        scheduled_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was scheduled. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)

        cancelation_deadline_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting will be lock and no cancelation is allowed. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)

        declined_cancelation:
          $ref: '#/components/schemas/PortingDeclinedCancelation'

        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was created. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        updated_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was updated. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        _links:
          allOf:
            - $ref: '#/components/schemas/PortingLinksBase'
            - $ref: '#/components/schemas/PortingInScheduledLinksDE'

      required:
        - id
        - direction
        - preferred_schedule
        - country
        - status
        - scheduled_at
        - created_at
        - updated_at
        - msisdn
        - cancelation_deadline_at
        - donor_details
        - _links

    PortingInCancelationRequestedDE:
      type: object
      additionalProperties: false
      properties:
        id:
          $ref: '#/components/schemas/PortingId'
        direction:
          type: string
          enum: [ in ]
          example: 'in'
          description: 'Porting direction'
        preferred_schedule:
          $ref: '#/components/schemas/PortingPreferredScheduledDE'

        country:
          type: string
          enum: [ DE ]
          example: 'DE'
          description: 'Porting country'

        status:
          type: string
          enum: [ cancelation_requested ]
          example: 'cancelation_requested'
          description: 'Porting status'

        msisdn:
          $ref: '#/components/schemas/Msisdn'

        donor_details:
          $ref: '#/components/schemas/PortingDonorDetailsDE'

        scheduled_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was scheduled. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)

        cancelation_deadline_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting will be lock and no cancelation is allowed. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)

        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was created. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        updated_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was updated. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        _links:
          allOf:
            - $ref: '#/components/schemas/PortingLinksBase'

      required:
        - id
        - direction
        - preferred_schedule
        - country
        - status
        - created_at
        - updated_at
        - msisdn
        - scheduled_at
        - cancelation_deadline_at
        - donor_details
        - _links

    PortingInCanceledDE:
      type: object
      additionalProperties: false
      properties:
        id:
          $ref: '#/components/schemas/PortingId'
        direction:
          type: string
          enum: [ in ]
          example: 'in'
          description: 'Porting direction'
        preferred_schedule:
          $ref: '#/components/schemas/PortingPreferredScheduledDE'

        country:
          type: string
          enum: [ DE ]
          example: 'DE'
          description: 'Porting country'

        status:
          type: string
          enum: [ canceled ]
          example: 'canceled'
          description: 'Porting status'

        msisdn:
          $ref: '#/components/schemas/Msisdn'

        donor_details:
          $ref: '#/components/schemas/PortingDonorDetailsDE'

        canceled_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was canceled. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)

        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was created. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        updated_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was updated. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        _links:
          allOf:
            - $ref: '#/components/schemas/PortingLinksBase'

      required:
        - id
        - direction
        - preferred_schedule
        - country
        - status
        - canceled_at
        - created_at
        - updated_at
        - msisdn
        - donor_details
        - _links

    PortingInProcessingDE:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/PortingId'
        direction:
          type: string
          enum: [ in ]
          example: 'in'
          description: 'Porting direction'
        preferred_schedule:
          $ref: '#/components/schemas/PortingPreferredScheduledDE'

        country:
          type: string
          enum: [ DE ]
          example: 'DE'
          description: 'Porting country'

        status:
          type: string
          enum: [ processing ]
          example: 'processing'
          description: 'Porting status'

        msisdn:
          $ref: '#/components/schemas/Msisdn'

        donor_details:
          $ref: '#/components/schemas/PortingDonorDetailsDE'

        scheduled_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was scheduled. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)

        cancelation_deadline_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting will be lock and no cancelation is allowed. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)

        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was created. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        updated_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was updated. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        _links:
          allOf:
            - $ref: '#/components/schemas/PortingLinksBase'

      required:
        - id
        - direction
        - preferred_schedule
        - country
        - status
        - created_at
        - updated_at
        - msisdn
        - scheduled_at
        - cancelation_deadline_at
        - donor_details
        - _links

    PortingInCompletedDE:
      type: object
      additionalProperties: false
      properties:
        id:
          $ref: '#/components/schemas/PortingId'
        direction:
          type: string
          enum: [ in ]
          example: 'in'
          description: 'Porting direction'
        preferred_schedule:
          $ref: '#/components/schemas/PortingPreferredScheduledDE'

        country:
          type: string
          enum: [ DE ]
          example: 'DE'
          description: 'Porting country'

        status:
          type: string
          enum: [ completed ]
          example: 'completed'
          description: 'Porting status'

        msisdn:
          $ref: '#/components/schemas/Msisdn'

        donor_details:
          $ref: '#/components/schemas/PortingDonorDetailsDE'

        completed_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the porting was completed. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)

        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was created. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        updated_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was updated. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        _links:
          allOf:
            - $ref: '#/components/schemas/PortingLinksBase'

      required:
        - id
        - direction
        - preferred_schedule
        - country
        - status
        - completed_at
        - created_at
        - updated_at
        - msisdn
        - donor_details
        - _links

    PortingInRejectedDE:
      type: object
      additionalProperties: false
      properties:
        id:
          $ref: '#/components/schemas/PortingId'
        direction:
          type: string
          enum: [ in ]
          example: 'in'
          description: 'Porting direction'
        preferred_schedule:
          $ref: '#/components/schemas/PortingPreferredScheduledDE'

        country:
          type: string
          enum: [ DE ]
          example: 'DE'
          description: 'Porting country'

        status:
          type: string
          enum: [ rejected ]
          example: 'rejected'
          description: 'Porting status'

        msisdn:
          $ref: '#/components/schemas/Msisdn'

        donor_details:
          $ref: '#/components/schemas/PortingDonorDetailsDE'

        rejection:
          $ref: '#/components/schemas/PortingRejectionDE'

        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was created. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        updated_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was updated. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        _links:
          allOf:
            - $ref: '#/components/schemas/PortingLinksBase'

      required:
        - id
        - direction
        - preferred_schedule
        - country
        - status
        - rejection
        - created_at
        - updated_at
        - msisdn
        - donor_details
        - _links
    
    PortingInDraftOrPendingPLSummary:
      type: object
      additionalProperties: false
      properties:
        id:
          $ref: '#/components/schemas/PortingId'
        direction:
          type: string
          enum: [ in ]
          example: 'in'
          description: 'Porting direction'
        preferred_schedule:
          $ref: '#/components/schemas/PortingPreferredScheduledPL'
        country:
          type: string
          enum: [ PL ]
          example: 'PL'
          description: 'Porting country'
        status:
          type: string
          enum: [ draft, pending ]
          example: 'draft'
          description: 'Porting status'
        msisdn:
          $ref: '#/components/schemas/Msisdn'
        donor_details:
          $ref: '#/components/schemas/PortingDonorDetailsPL'
        supported_documents:
          type: array
          items: 
            $ref: '#/components/schemas/PortabilitySuportedDocumentSummary'
        consents:
          $ref: '#/components/schemas/ConsentsInPL' 
        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was created. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        updated_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was updated. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        _links:
          allOf:
          - $ref: '#/components/schemas/PortingLinksBase'
          - $ref: '#/components/schemas/PortingInPendingLinksPL'
      required:
        - id
        - direction
        - preferred_schedule
        - country
        - status
        - created_at
        - updated_at
        - msisdn
        - donor_details
        - _links
        - consents

    PortingInScheduledOrCancelationRequestedOrProcessingPLSummary:
      type: object
      additionalProperties: false
      properties:
        id:
          $ref: '#/components/schemas/PortingId'
        direction:
          type: string
          enum: [ in ]
          example: 'in'
          description: 'Porting direction'
        preferred_schedule:
          $ref: '#/components/schemas/PortingPreferredScheduledPL'
        country:
          type: string
          enum: [ PL ]
          example: 'PL'
          description: 'Porting country'
        status:
          type: string
          enum: [ scheduled, cancelation_requested, processing ]
          example: 'scheduled'
          description: 'Porting status'
        msisdn:
          $ref: '#/components/schemas/Msisdn'
        donor_details:
          $ref: '#/components/schemas/PortingDonorDetailsPL'
        scheduled_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was scheduled. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        previous_scheduled_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: The previous scheduled date if scheduled has changed. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        cancelation_deadline_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting will be lock and no cancelation is allowed. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        supported_documents:
          type: array
          items: 
            $ref: '#/components/schemas/PortabilitySuportedDocumentSummary'
        consents:
          $ref: '#/components/schemas/ConsentsInPL' 

        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was created. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        updated_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was updated. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        _links:
          allOf:
            - $ref: '#/components/schemas/PortingLinksBase'
            - $ref: '#/components/schemas/PortingInScheduledLinksPL'
      required:
        - id
        - direction
        - preferred_schedule
        - country
        - status
        - scheduled_at
        - created_at
        - updated_at
        - msisdn
        - cancelation_deadline_at
        - donor_details
        - _links
        - consents
    
    PortingInCanceledPLSummary:
      type: object
      additionalProperties: false
      properties:
        id:
          $ref: '#/components/schemas/PortingId'
        direction:
          type: string
          enum: [ in ]
          example: 'in'
          description: 'Porting direction'
        preferred_schedule:
          $ref: '#/components/schemas/PortingPreferredScheduledPL'

        country:
          type: string
          enum: [ PL ]
          example: 'PL'
          description: 'Porting country'

        status:
          type: string
          enum: [ canceled ]
          example: 'canceled'
          description: 'Porting status'

        msisdn:
          $ref: '#/components/schemas/Msisdn'

        donor_details:
          $ref: '#/components/schemas/PortingDonorDetailsPL'

        canceled_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was canceled. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        supported_documents:
          type: array
          items: 
            $ref: '#/components/schemas/PortabilitySuportedDocumentSummary'
        consents:
          $ref: '#/components/schemas/ConsentsInPL'
        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was created. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        updated_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was updated. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        _links:
          allOf:
            - $ref: '#/components/schemas/PortingLinksBase'

      required:
        - id
        - direction
        - preferred_schedule
        - country
        - status
        - canceled_at
        - created_at
        - updated_at
        - msisdn
        - donor_details
        - _links
        - consents

    PortingInCompletedPLSummary:
      type: object
      additionalProperties: false
      properties:
        id:
          $ref: '#/components/schemas/PortingId'
        direction:
          type: string
          enum: [ in ]
          example: 'in'
          description: 'Porting direction'
        preferred_schedule:
          $ref: '#/components/schemas/PortingPreferredScheduledPL'

        country:
          type: string
          enum: [ PL ]
          example: 'PL'
          description: 'Porting country'

        status:
          type: string
          enum: [ completed ]
          example: 'completed'
          description: 'Porting status'

        msisdn:
          $ref: '#/components/schemas/Msisdn'

        donor_details:
          $ref: '#/components/schemas/PortingDonorDetailsPL'

        completed_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the porting was completed. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        supported_documents:
          type: array
          items: 
            $ref: '#/components/schemas/PortabilitySuportedDocumentSummary'
        consents:
          $ref: '#/components/schemas/ConsentsInPL' 
        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was created. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        updated_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was updated. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        _links:
          allOf:
            - $ref: '#/components/schemas/PortingLinksBase'

      required:
        - id
        - direction
        - preferred_schedule
        - country
        - status
        - completed_at
        - created_at
        - updated_at
        - msisdn
        - donor_details
        - _links
        - consents

    PortingInRejectedPLSummary:
      type: object
      additionalProperties: false
      properties:
        id:
          $ref: '#/components/schemas/PortingId'
        direction:
          type: string
          enum: [ in ]
          example: 'in'
          description: 'Porting direction'
        preferred_schedule:
          $ref: '#/components/schemas/PortingPreferredScheduledPL'

        country:
          type: string
          enum: [ PL ]
          example: 'PL'
          description: 'Porting country'

        status:
          type: string
          enum: [ rejected ]
          example: 'rejected'
          description: 'Porting status'

        msisdn:
          $ref: '#/components/schemas/Msisdn'

        donor_details:
          $ref: '#/components/schemas/PortingDonorDetailsPL'

        rejection:
          $ref: '#/components/schemas/PortingRejectionPL'
        supported_documents:
          type: array
          items: 
            $ref: '#/components/schemas/PortabilitySuportedDocumentSummary'
        consents:
          $ref: '#/components/schemas/ConsentsInPL'
        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was created. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        updated_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was updated. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        _links:
          allOf:
            - $ref: '#/components/schemas/PortingLinksBase'

      required:
        - id
        - direction
        - preferred_schedule
        - country
        - status
        - rejection
        - created_at
        - updated_at
        - msisdn
        - donor_details
        - _links
        - consents
    
    PortingInDraftOrPendingPL:
      type: object
      additionalProperties: false
      properties:
        id:
          $ref: '#/components/schemas/PortingId'
        direction:
          type: string
          enum: [ in ]
          example: 'in'
          description: 'Porting direction'
        preferred_schedule:
          $ref: '#/components/schemas/PortingPreferredScheduledPL'
        country:
          type: string
          enum: [ PL ]
          example: 'PL'
          description: 'Porting country'
        status:
          type: string
          enum: [ draft, pending ]
          example: 'draft'
          description: 'Porting status'
        msisdn:
          $ref: '#/components/schemas/Msisdn'
        donor_details:
          $ref: '#/components/schemas/PortingDonorDetailsPL'
        supported_documents:
          type: array
          items: 
            $ref: '#/components/schemas/PortabilitySuportedDocument'
        consents:
          $ref: '#/components/schemas/ConsentsInPL' 
        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was created. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        updated_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was updated. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        _links:
          allOf:
          - $ref: '#/components/schemas/PortingLinksBase'
          - $ref: '#/components/schemas/PortingInPendingLinksPL'
      required:
        - id
        - direction
        - preferred_schedule
        - country
        - status
        - created_at
        - updated_at
        - msisdn
        - donor_details
        - _links
        - consents

    PortingInScheduledOrCancelationRequestedOrProcessingPL:
      type: object
      additionalProperties: false
      properties:
        id:
          $ref: '#/components/schemas/PortingId'
        direction:
          type: string
          enum: [ in ]
          example: 'in'
          description: 'Porting direction'
        preferred_schedule:
          $ref: '#/components/schemas/PortingPreferredScheduledPL'
        country:
          type: string
          enum: [ PL ]
          example: 'PL'
          description: 'Porting country'
        status:
          type: string
          enum: [ scheduled, cancelation_requested, processing ]
          example: 'scheduled'
          description: 'Porting status'
        msisdn:
          $ref: '#/components/schemas/Msisdn'
        donor_details:
          $ref: '#/components/schemas/PortingDonorDetailsPL'
        scheduled_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was scheduled. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        previous_scheduled_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: The previous scheduled date if scheduled has changed. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        cancelation_deadline_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting will be lock and no cancelation is allowed. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        supported_documents:
          type: array
          items: 
            $ref: '#/components/schemas/PortabilitySuportedDocument'
        consents:
          $ref: '#/components/schemas/ConsentsInPL' 
        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was created. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        updated_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was updated. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        _links:
          allOf:
            - $ref: '#/components/schemas/PortingLinksBase'
            - $ref: '#/components/schemas/PortingInScheduledLinksPL'
      required:
        - id
        - direction
        - preferred_schedule
        - country
        - status
        - scheduled_at
        - created_at
        - updated_at
        - msisdn
        - cancelation_deadline_at
        - donor_details
        - _links
        - consents
    
    PortingInDraftPL:
      type: object
      additionalProperties: false
      properties:
        id:
          $ref: '#/components/schemas/PortingId'
        direction:
          type: string
          enum: [ in ]
          example: 'in'
          description: 'Porting direction'
        preferred_schedule:
          $ref: '#/components/schemas/PortingPreferredScheduledPL'
        country:
          type: string
          enum: [ PL ]
          example: 'PL'
          description: 'Porting country'
        status:
          type: string
          enum: [ draft ]
          example: 'draft'
          description: 'Porting status'
        msisdn:
          $ref: '#/components/schemas/Msisdn'
        donor_details:
          $ref: '#/components/schemas/PortingDonorDetailsPL'
        supported_documents:
          type: array
          items: 
            $ref: '#/components/schemas/PortabilitySuportedDocument'
        consents:
          $ref: '#/components/schemas/ConsentsInPL' 
        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was created. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        updated_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was updated. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        _links:
          $ref: '#/components/schemas/PortingLinksBase'
      required:
        - id
        - direction
        - preferred_schedule
        - country
        - status
        - created_at
        - updated_at
        - msisdn
        - donor_details
        - _links
        - consents

    PortingInPendingPL:
      type: object
      additionalProperties: false
      properties:
        id:
          $ref: '#/components/schemas/PortingId'
        direction:
          type: string
          enum: [ in ]
          example: 'in'
          description: 'Porting direction'
        preferred_schedule:
          $ref: '#/components/schemas/PortingPreferredScheduledPL'
        country:
          type: string
          enum: [ PL ]
          example: 'PL'
          description: 'Porting country'
        status:
          type: string
          enum: [ pending ]
          example: 'pending'
          description: 'Porting status'
        msisdn:
          $ref: '#/components/schemas/Msisdn'
        donor_details:
          $ref: '#/components/schemas/PortingDonorDetailsPL'
        supported_documents:
          type: array
          items: 
            $ref: '#/components/schemas/PortabilitySuportedDocument'
        consents:
          $ref: '#/components/schemas/ConsentsInPL' 
        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was created. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        updated_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was updated. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        _links:
          allOf:
            - $ref: '#/components/schemas/PortingLinksBase'
            - $ref: '#/components/schemas/PortingInPendingLinksPL'

      required:
        - id
        - direction
        - preferred_schedule
        - country
        - status
        - created_at
        - updated_at
        - msisdn
        - donor_details
        - _links
        - consents

    PortingInScheduledPL:
      type: object
      additionalProperties: false
      properties:
        id:
          $ref: '#/components/schemas/PortingId'
        direction:
          type: string
          enum: [ in ]
          example: 'in'
          description: 'Porting direction'
        preferred_schedule:
          $ref: '#/components/schemas/PortingPreferredScheduledPL'
        country:
          type: string
          enum: [ PL ]
          example: 'PL'
          description: 'Porting country'
        status:
          type: string
          enum: [ scheduled ]
          example: 'scheduled'
          description: 'Porting status'
        msisdn:
          $ref: '#/components/schemas/Msisdn'
        donor_details:
          $ref: '#/components/schemas/PortingDonorDetailsPL'
        scheduled_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was scheduled. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        previous_scheduled_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: The previous scheduled date if scheduled has cahnged. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        cancelation_deadline_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting will be lock and no cancelation is allowed. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        supported_documents:
          type: array
          items: 
            $ref: '#/components/schemas/PortabilitySuportedDocument'
        consents:
          $ref: '#/components/schemas/ConsentsInPL' 
        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was created. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        updated_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was updated. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        _links:
          allOf:
            - $ref: '#/components/schemas/PortingLinksBase'
            - $ref: '#/components/schemas/PortingInScheduledLinksPL'
      required:
        - id
        - direction
        - preferred_schedule
        - country
        - status
        - scheduled_at
        - created_at
        - updated_at
        - msisdn
        - cancelation_deadline_at
        - donor_details
        - _links
        - consents

    PortingInCancelationRequestedPL:
      type: object
      additionalProperties: false
      properties:
        id:
          $ref: '#/components/schemas/PortingId'
        direction:
          type: string
          enum: [ in ]
          example: 'in'
          description: 'Porting direction'
        preferred_schedule:
          $ref: '#/components/schemas/PortingPreferredScheduledPL'

        country:
          type: string
          enum: [ PL ]
          example: 'PL'
          description: 'Porting country'

        status:
          type: string
          enum: [ cancelation_requested ]
          example: 'cancelation_requested'
          description: 'Porting status'

        msisdn:
          $ref: '#/components/schemas/Msisdn'

        donor_details:
          $ref: '#/components/schemas/PortingDonorDetailsPL'

        scheduled_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was scheduled. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)

        cancelation_deadline_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting will be lock and no cancelation is allowed. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        supported_documents:
          type: array
          items: 
            $ref: '#/components/schemas/PortabilitySuportedDocument'
        consents:
          $ref: '#/components/schemas/ConsentsInPL' 
        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was created. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        updated_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was updated. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        _links:
          allOf:
            - $ref: '#/components/schemas/PortingLinksBase'

      required:
        - id
        - direction
        - preferred_schedule
        - country
        - status
        - created_at
        - updated_at
        - msisdn
        - scheduled_at
        - cancelation_deadline_at
        - donor_details
        - _links
        - consents

    PortingInCanceledPL:
      type: object
      additionalProperties: false
      properties:
        id:
          $ref: '#/components/schemas/PortingId'
        direction:
          type: string
          enum: [ in ]
          example: 'in'
          description: 'Porting direction'
        preferred_schedule:
          $ref: '#/components/schemas/PortingPreferredScheduledPL'

        country:
          type: string
          enum: [ PL ]
          example: 'PL'
          description: 'Porting country'

        status:
          type: string
          enum: [ canceled ]
          example: 'canceled'
          description: 'Porting status'

        msisdn:
          $ref: '#/components/schemas/Msisdn'

        donor_details:
          $ref: '#/components/schemas/PortingDonorDetailsPL'

        canceled_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was canceled. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        supported_documents:
          type: array
          items: 
            $ref: '#/components/schemas/PortabilitySuportedDocument'
        consents:
          $ref: '#/components/schemas/ConsentsInPL'
        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was created. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        updated_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was updated. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        _links:
          allOf:
            - $ref: '#/components/schemas/PortingLinksBase'

      required:
        - id
        - direction
        - preferred_schedule
        - country
        - status
        - canceled_at
        - created_at
        - updated_at
        - msisdn
        - donor_details
        - _links
        - consents

    PortingInProcessingPL:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/PortingId'
        direction:
          type: string
          enum: [ in ]
          example: 'in'
          description: 'Porting direction'
        preferred_schedule:
          $ref: '#/components/schemas/PortingPreferredScheduledPL'

        country:
          type: string
          enum: [ PL ]
          example: 'PL'
          description: 'Porting country'

        status:
          type: string
          enum: [ processing ]
          example: 'processing'
          description: 'Porting status'

        msisdn:
          $ref: '#/components/schemas/Msisdn'

        donor_details:
          $ref: '#/components/schemas/PortingDonorDetailsPL'

        scheduled_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was scheduled. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)

        cancelation_deadline_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting will be lock and no cancelation is allowed. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        supported_documents:
          type: array
          items: 
            $ref: '#/components/schemas/PortabilitySuportedDocument'
        consents:
          $ref: '#/components/schemas/ConsentsInPL' 

        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was created. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        updated_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was updated. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        _links:
          allOf:
            - $ref: '#/components/schemas/PortingLinksBase'

      required:
        - id
        - direction
        - preferred_schedule
        - country
        - status
        - created_at
        - updated_at
        - msisdn
        - scheduled_at
        - cancelation_deadline_at
        - donor_details
        - _links
        - consents

    PortingInCompletedPL:
      type: object
      additionalProperties: false
      properties:
        id:
          $ref: '#/components/schemas/PortingId'
        direction:
          type: string
          enum: [ in ]
          example: 'in'
          description: 'Porting direction'
        preferred_schedule:
          $ref: '#/components/schemas/PortingPreferredScheduledPL'

        country:
          type: string
          enum: [ PL ]
          example: 'PL'
          description: 'Porting country'

        status:
          type: string
          enum: [ completed ]
          example: 'completed'
          description: 'Porting status'

        msisdn:
          $ref: '#/components/schemas/Msisdn'

        donor_details:
          $ref: '#/components/schemas/PortingDonorDetailsPL'

        completed_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the porting was completed. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        supported_documents:
          type: array
          items: 
            $ref: '#/components/schemas/PortabilitySuportedDocument'
        consents:
          $ref: '#/components/schemas/ConsentsInPL' 
        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was created. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        updated_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was updated. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        _links:
          allOf:
            - $ref: '#/components/schemas/PortingLinksBase'

      required:
        - id
        - direction
        - preferred_schedule
        - country
        - status
        - completed_at
        - created_at
        - updated_at
        - msisdn
        - donor_details
        - _links
        - consents

    PortingInRejectedPL:
      type: object
      additionalProperties: false
      properties:
        id:
          $ref: '#/components/schemas/PortingId'
        direction:
          type: string
          enum: [ in ]
          example: 'in'
          description: 'Porting direction'
        preferred_schedule:
          $ref: '#/components/schemas/PortingPreferredScheduledPL'

        country:
          type: string
          enum: [ PL ]
          example: 'PL'
          description: 'Porting country'

        status:
          type: string
          enum: [ rejected ]
          example: 'rejected'
          description: 'Porting status'

        msisdn:
          $ref: '#/components/schemas/Msisdn'

        donor_details:
          $ref: '#/components/schemas/PortingDonorDetailsPL'

        rejection:
          $ref: '#/components/schemas/PortingRejectionPL'
        supported_documents:
          type: array
          items: 
            $ref: '#/components/schemas/PortabilitySuportedDocument'
        consents:
          $ref: '#/components/schemas/ConsentsInPL'
        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was created. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        updated_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was updated. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        _links:
          allOf:
            - $ref: '#/components/schemas/PortingLinksBase'

      required:
        - id
        - direction
        - preferred_schedule
        - country
        - status
        - rejection
        - created_at
        - updated_at
        - msisdn
        - donor_details
        - _links
        - consents

    PortingOutPendingDE:
      type: object
      additionalProperties: false
      properties:
        id:
          $ref: '#/components/schemas/PortingId'
        direction:
          type: string
          enum: [ out ]
          example: 'out'
          description: 'Porting direction'

        preferred_schedule:
          $ref: '#/components/schemas/PortingPreferredScheduledDE'

        termination_action:
          $ref: '#/components/schemas/PortingTerminationAction'

        country:
          type: string
          enum: [ DE ]
          example: 'DE'
          description: 'Porting country'

        status:
          type: string
          enum: [ pending ]
          example: 'pending'
          description: 'Porting status'

        recipient_details:
          $ref: '#/components/schemas/PortingRecipientDetails'

        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was created. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        updated_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was updated. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        _links:
          allOf:
            - $ref: '#/components/schemas/PortingLinksBase'
            - $ref: '#/components/schemas/PortingOutPendingLinksDE'
      required:
        - id
        - direction
        - preferred_schedule
        - country
        - status
        - recipient_details
        - created_at
        - updated_at
        - _links

    PortingOutScheduledOrCancelationRequestedDE:
      type: object
      additionalProperties: false
      properties:
        id:
          $ref: '#/components/schemas/PortingId'
        direction:
          type: string
          enum: [ out ]
          example: 'out'
          description: 'Porting direction'

        preferred_schedule:
          $ref: '#/components/schemas/PortingPreferredScheduledDE'

        termination_action:
          $ref: '#/components/schemas/PortingTerminationAction'

        country:
          type: string
          enum: [ DE ]
          example: 'DE'
          description: 'Porting country'

        status:
          type: string
          enum: [ scheduled, cancelation_requested ]
          example: 'scheduled'
          description: 'Porting status'

        recipient_details:
          $ref: '#/components/schemas/PortingRecipientDetails'

        scheduled_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was scheduled. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)

        cancelation_deadline_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting will be lock and no cancelation is allowed. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)

        declined_cancelation:
          $ref: '#/components/schemas/PortingDeclinedCancelation'

        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was created. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        updated_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was updated. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        _links:
          allOf:
            - $ref: '#/components/schemas/PortingLinksBase'
            - $ref: '#/components/schemas/PortingOutCancelationRequestedLinksDE'
      required:
        - id
        - direction
        - preferred_schedule
        - termination_action
        - country
        - status
        - recipient_details
        - created_at
        - updated_at
        - scheduled_at
        - cancelation_deadline_at
        - _links

    PortingOutScheduledDE:
      type: object
      additionalProperties: false
      properties:
        id:
          $ref: '#/components/schemas/PortingId'
        direction:
          type: string
          enum: [ out ]
          example: 'out'
          description: 'Porting direction'

        preferred_schedule:
          $ref: '#/components/schemas/PortingPreferredScheduledDE'

        termination_action:
          $ref: '#/components/schemas/PortingTerminationAction'

        country:
          type: string
          enum: [ DE ]
          example: 'DE'
          description: 'Porting country'

        status:
          type: string
          enum: [ scheduled ]
          example: 'scheduled'
          description: 'Porting status'

        recipient_details:
          $ref: '#/components/schemas/PortingRecipientDetails'

        scheduled_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was scheduled. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)

        cancelation_deadline_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting will be lock and no cancelation is allowed. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)

        declined_cancelation:
          $ref: '#/components/schemas/PortingDeclinedCancelation'

        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was created. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        updated_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was updated. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        _links:
          allOf:
            - $ref: '#/components/schemas/PortingLinksBase'
      required:
        - id
        - direction
        - preferred_schedule
        - termination_action
        - country
        - status
        - recipient_details
        - created_at
        - updated_at
        - scheduled_at
        - cancelation_deadline_at
        - _links

    PortingOutCancelationRequestedDE:
      type: object
      additionalProperties: false
      properties:
        id:
          $ref: '#/components/schemas/PortingId'
        direction:
          type: string
          enum: [ out ]
          example: 'out'
          description: 'Porting direction'

        preferred_schedule:
          $ref: '#/components/schemas/PortingPreferredScheduledDE'

        termination_action:
          $ref: '#/components/schemas/PortingTerminationAction'

        country:
          type: string
          enum: [ DE ]
          example: 'DE'
          description: 'Porting country'

        status:
          type: string
          enum: [ cancelation_requested ]
          example: 'pending'
          description: 'Porting status'

        recipient_details:
          $ref: '#/components/schemas/PortingRecipientDetails'

        scheduled_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was scheduled. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)

        cancelation_deadline_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting will be lock and no cancelation is allowed. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)

        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was created. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        updated_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was updated. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        _links:
          allOf:
            - $ref: '#/components/schemas/PortingLinksBase'
            - $ref: '#/components/schemas/PortingOutCancelationRequestedLinksDE'
      required:
        - id
        - direction
        - preferred_schedule
        - termination_action
        - country
        - status
        - recipient_details
        - created_at
        - updated_at
        - scheduled_at
        - cancelation_deadline_at
        - _links

    PortingOutCanceledDE:
      type: object
      additionalProperties: false
      properties:
        id:
          $ref: '#/components/schemas/PortingId'
        direction:
          type: string
          enum: [ out ]
          example: 'out'
          description: 'Porting direction'

        preferred_schedule:
          $ref: '#/components/schemas/PortingPreferredScheduledDE'

        termination_action:
          $ref: '#/components/schemas/PortingTerminationAction'

        country:
          type: string
          enum: [ DE ]
          example: 'DE'
          description: 'Porting country'

        status:
          type: string
          enum: [ canceled ]
          example: 'canceled'
          description: 'Porting status'

        recipient_details:
          $ref: '#/components/schemas/PortingRecipientDetails'

        canceled_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was canceled. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)

        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was created. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        updated_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was updated. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        _links:
          allOf:
            - $ref: '#/components/schemas/PortingLinksBase'
      required:
        - id
        - direction
        - preferred_schedule
        - country
        - status
        - recipient_details
        - canceled_at
        - created_at
        - updated_at
        - _links

    PortingOutProcessingDE:
      type: object
      additionalProperties: false
      properties:
        id:
          $ref: '#/components/schemas/PortingId'
        direction:
          type: string
          enum: [ out ]
          example: 'out'
          description: 'Porting direction'

        preferred_schedule:
          $ref: '#/components/schemas/PortingPreferredScheduledDE'

        termination_action:
          $ref: '#/components/schemas/PortingTerminationAction'

        country:
          type: string
          enum: [ DE ]
          example: 'DE'
          description: 'Porting country'

        status:
          type: string
          enum: [ processing ]
          example: 'processing'
          description: 'Porting status'

        recipient_details:
          $ref: '#/components/schemas/PortingRecipientDetails'

        scheduled_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was scheduled. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)

        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was created. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        updated_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was updated. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        _links:
          allOf:
            - $ref: '#/components/schemas/PortingLinksBase'
      required:
        - id
        - direction
        - preferred_schedule
        - termination_action
        - country
        - status
        - recipient_details
        - created_at
        - updated_at
        - scheduled_at
        - _links

    PortingOutCompletedDE:
      type: object
      additionalProperties: false
      properties:
        id:
          $ref: '#/components/schemas/PortingId'
        direction:
          type: string
          enum: [ out ]
          example: 'out'
          description: 'Porting direction'

        preferred_schedule:
          $ref: '#/components/schemas/PortingPreferredScheduledDE'

        termination_action:
          $ref: '#/components/schemas/PortingTerminationAction'

        country:
          type: string
          enum: [ DE ]
          example: 'DE'
          description: 'Porting country'

        status:
          type: string
          enum: [ completed ]
          example: 'completed'
          description: 'Porting status'

        recipient_details:
          $ref: '#/components/schemas/PortingRecipientDetails'

        completed_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the porting was completed. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)

        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was created. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        updated_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was updated. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        _links:
          allOf:
            - $ref: '#/components/schemas/PortingLinksBase'
      required:
        - id
        - direction
        - preferred_schedule
        - termination_action
        - country
        - status
        - recipient_details
        - created_at
        - updated_at
        - completed_at
        - _links

    PortingOutRejectedDE:
      type: object
      additionalProperties: false
      properties:
        id:
          $ref: '#/components/schemas/PortingId'
        direction:
          type: string
          enum: [ out ]
          example: 'out'
          description: 'Porting direction'

        preferred_schedule:
          $ref: '#/components/schemas/PortingPreferredScheduledDE'

        termination_action:
          $ref: '#/components/schemas/PortingTerminationAction'

        country:
          type: string
          enum: [ DE ]
          example: 'DE'
          description: 'Porting country'

        status:
          type: string
          enum: [ rejected ]
          example: 'rejected'
          description: 'Porting status'

        recipient_details:
          $ref: '#/components/schemas/PortingRecipientDetails'

        rejection:
          $ref: '#/components/schemas/PortingRejectionDE'

        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was created. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        updated_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was updated. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        _links:
          allOf:
            - $ref: '#/components/schemas/PortingLinksBase'
      required:
        - id
        - direction
        - preferred_schedule
        - country
        - status
        - rejection
        - recipient_details
        - created_at
        - updated_at
        - _links

    PortingOutPendingPL:
      type: object
      additionalProperties: false
      properties:
        id:
          $ref: '#/components/schemas/PortingId'
        direction:
          type: string
          enum: [ out ]
          example: 'out'
          description: 'Porting direction'

        preferred_schedule:
          $ref: '#/components/schemas/PortingPreferredScheduledPL'

        termination_action:
          $ref: '#/components/schemas/PortingTerminationAction'

        country:
          type: string
          enum: [ PL ]
          example: 'PL'
          description: 'Porting country'

        status:
          type: string
          enum: [ pending ]
          example: 'pending'
          description: 'Porting status'

        recipient_details:
          $ref: '#/components/schemas/PortingRecipientDetails'
        consents:
          $ref: '#/components/schemas/ConsentsOutPL'
        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was created. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        updated_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was updated. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        _links:
          allOf:
            - $ref: '#/components/schemas/PortingLinksBase'
            - $ref: '#/components/schemas/PortingOutPendingLinksPL'
      required:
        - id
        - direction
        - preferred_schedule
        - country
        - status
        - recipient_details
        - created_at
        - updated_at
        - _links
        - consents

    PortingOutScheduledOrCancelationRequestedPL:
      type: object
      additionalProperties: false
      properties:
        id:
          $ref: '#/components/schemas/PortingId'
        direction:
          type: string
          enum: [ out ]
          example: 'out'
          description: 'Porting direction'
        preferred_schedule:
          $ref: '#/components/schemas/PortingPreferredScheduledPL'
        termination_action:
          $ref: '#/components/schemas/PortingTerminationAction'
        country:
          type: string
          enum: [ PL ]
          example: 'PL'
          description: 'Porting country'
        status:
          type: string
          enum: [ scheduled, cancelation_requested ]
          example: 'scheduled'
          description: 'Porting status'
        recipient_details:
          $ref: '#/components/schemas/PortingRecipientDetails'
        scheduled_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was scheduled. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        previous_scheduled_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: The previous scheduled date if scheduled has cahnged. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        cancelation_deadline_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting will be lock and no cancelation is allowed. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        consents:
          $ref: '#/components/schemas/ConsentsOutPL'
        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was created. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        updated_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was updated. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        _links:
          allOf:
            - $ref: '#/components/schemas/PortingLinksBase'
            - $ref: '#/components/schemas/PortingOutScheduledLinksPL'
      required:
        - id
        - direction
        - preferred_schedule
        - termination_action
        - country
        - status
        - recipient_details
        - created_at
        - updated_at
        - scheduled_at
        - cancelation_deadline_at
        - _links
        - consents

    PortingOutScheduledPL:
      type: object
      additionalProperties: false
      properties:
        id:
          $ref: '#/components/schemas/PortingId'
        direction:
          type: string
          enum: [ out ]
          example: 'out'
          description: 'Porting direction'

        preferred_schedule:
          $ref: '#/components/schemas/PortingPreferredScheduledPL'

        termination_action:
          $ref: '#/components/schemas/PortingTerminationAction'

        country:
          type: string
          enum: [ PL ]
          example: 'PL'
          description: 'Porting country'

        status:
          type: string
          enum: [ scheduled ]
          example: 'scheduled'
          description: 'Porting status'

        recipient_details:
          $ref: '#/components/schemas/PortingRecipientDetails'

        scheduled_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was scheduled. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        
        previous_scheduled_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: The previous scheduled date if scheduled has cahnged. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)

        cancelation_deadline_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting will be lock and no cancelation is allowed. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)

        consents:
          $ref: '#/components/schemas/ConsentsOutPL'
        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was created. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        updated_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was updated. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        _links:
          allOf:
            - $ref: '#/components/schemas/PortingLinksBase'
            - $ref: '#/components/schemas/PortingInScheduledLinksPL'
      required:
        - id
        - direction
        - preferred_schedule
        - termination_action
        - country
        - status
        - recipient_details
        - created_at
        - updated_at
        - scheduled_at
        - cancelation_deadline_at
        - _links
        - consents

    PortingOutCancelationRequestedPL:
      type: object
      additionalProperties: false
      properties:
        id:
          $ref: '#/components/schemas/PortingId'
        direction:
          type: string
          enum: [ out ]
          example: 'out'
          description: 'Porting direction'

        preferred_schedule:
          $ref: '#/components/schemas/PortingPreferredScheduledPL'

        termination_action:
          $ref: '#/components/schemas/PortingTerminationAction'

        country:
          type: string
          enum: [ PL ]
          example: 'PL'
          description: 'Porting country'

        status:
          type: string
          enum: [ cancelation_requested ]
          example: 'pending'
          description: 'Porting status'

        recipient_details:
          $ref: '#/components/schemas/PortingRecipientDetails'

        scheduled_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was scheduled. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)

        cancelation_deadline_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting will be lock and no cancelation is allowed. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        
        consents:
          $ref: '#/components/schemas/ConsentsOutPL'

        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was created. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        updated_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was updated. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        _links:
          allOf:
            - $ref: '#/components/schemas/PortingLinksBase'
            - $ref: '#/components/schemas/PortingOutCancelationRequestedLinksDE'
      required:
        - id
        - direction
        - preferred_schedule
        - termination_action
        - country
        - status
        - recipient_details
        - created_at
        - updated_at
        - scheduled_at
        - cancelation_deadline_at
        - _links
        - consents

    PortingOutCanceledPL:
      type: object
      additionalProperties: false
      properties:
        id:
          $ref: '#/components/schemas/PortingId'
        direction:
          type: string
          enum: [ out ]
          example: 'out'
          description: 'Porting direction'

        preferred_schedule:
          $ref: '#/components/schemas/PortingPreferredScheduledPL'

        termination_action:
          $ref: '#/components/schemas/PortingTerminationAction'

        country:
          type: string
          enum: [ PL ]
          example: 'PL'
          description: 'Porting country'

        status:
          type: string
          enum: [ canceled ]
          example: 'canceled'
          description: 'Porting status'

        recipient_details:
          $ref: '#/components/schemas/PortingRecipientDetails'

        canceled_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was canceled. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
    
        consents:
          $ref: '#/components/schemas/ConsentsOutPL'

        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was created. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        updated_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was updated. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        _links:
          allOf:
            - $ref: '#/components/schemas/PortingLinksBase'
      required:
        - id
        - direction
        - preferred_schedule
        - country
        - status
        - recipient_details
        - canceled_at
        - created_at
        - updated_at
        - _links
        - consents

    PortingOutProcessingPL:
      type: object
      additionalProperties: false
      properties:
        id:
          $ref: '#/components/schemas/PortingId'
        direction:
          type: string
          enum: [ out ]
          example: 'out'
          description: 'Porting direction'

        preferred_schedule:
          $ref: '#/components/schemas/PortingPreferredScheduledPL'

        termination_action:
          $ref: '#/components/schemas/PortingTerminationAction'

        country:
          type: string
          enum: [ PL ]
          example: 'PL'
          description: 'Porting country'

        status:
          type: string
          enum: [ processing ]
          example: 'processing'
          description: 'Porting status'

        recipient_details:
          $ref: '#/components/schemas/PortingRecipientDetails'

        scheduled_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was scheduled. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        consents:
          $ref: '#/components/schemas/ConsentsOutPL'

        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was created. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        updated_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was updated. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        _links:
          allOf:
            - $ref: '#/components/schemas/PortingLinksBase'
      required:
        - id
        - direction
        - preferred_schedule
        - termination_action
        - country
        - status
        - recipient_details
        - created_at
        - updated_at
        - scheduled_at
        - _links
        - consents

    PortingOutCompletedPL:
      type: object
      additionalProperties: false
      properties:
        id:
          $ref: '#/components/schemas/PortingId'
        direction:
          type: string
          enum: [ out ]
          example: 'out'
          description: 'Porting direction'

        preferred_schedule:
          $ref: '#/components/schemas/PortingPreferredScheduledPL'

        termination_action:
          $ref: '#/components/schemas/PortingTerminationAction'

        country:
          type: string
          enum: [ PL ]
          example: 'PL'
          description: 'Porting country'

        status:
          type: string
          enum: [ completed ]
          example: 'completed'
          description: 'Porting status'

        recipient_details:
          $ref: '#/components/schemas/PortingRecipientDetails'

        completed_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the porting was completed. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        consents:
          $ref: '#/components/schemas/ConsentsOutPL'
        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was created. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        updated_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was updated. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        _links:
          allOf:
            - $ref: '#/components/schemas/PortingLinksBase'
      required:
        - id
        - direction
        - preferred_schedule
        - termination_action
        - country
        - status
        - recipient_details
        - created_at
        - updated_at
        - completed_at
        - _links
        - consents

    PortingOutRejectedPL:
      type: object
      additionalProperties: false
      properties:
        id:
          $ref: '#/components/schemas/PortingId'
        direction:
          type: string
          enum: [ out ]
          example: 'out'
          description: 'Porting direction'

        preferred_schedule:
          $ref: '#/components/schemas/PortingPreferredScheduledPL'

        termination_action:
          $ref: '#/components/schemas/PortingTerminationAction'

        country:
          type: string
          enum: [ PL ]
          example: 'PL'
          description: 'Porting country'

        status:
          type: string
          enum: [ rejected ]
          example: 'rejected'
          description: 'Porting status'

        recipient_details:
          $ref: '#/components/schemas/PortingRecipientDetails'

        rejection:
          $ref: '#/components/schemas/PortingRejectionPL'
        consents:
          $ref: '#/components/schemas/ConsentsOutPL'

        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was created. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        updated_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was updated. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        _links:
          allOf:
            - $ref: '#/components/schemas/PortingLinksBase'
      required:
        - id
        - direction
        - preferred_schedule
        - country
        - status
        - rejection
        - recipient_details
        - created_at
        - updated_at
        - _links
        - consents
  
    PortingDonorDetailsDE:
      type: object
      properties:
        _embedded:
          $ref: '#/components/schemas/PortingEmbeddedDetails'
        account:
          oneOf:
            - $ref: '#/components/schemas/PortingAccountPersonalDE'
            - $ref: '#/components/schemas/PortingAccountBusinessDE'
          discriminator:
            propertyName: type
            mapping:
              personal: '#/components/schemas/PortingAccountPersonalDE'
              business: '#/components/schemas/PortingAccountBusinessDE'
      required:
        - _embedded
        - account

    PortingOutRescheduleRequestedPL:
      type: object
      additionalProperties: false
      properties:
        id:
          $ref: '#/components/schemas/PortingId'
        direction:
          type: string
          enum: [ out ]
          example: 'out'
          description: 'Porting direction'
        preferred_schedule:
          $ref: '#/components/schemas/PortingPreferredScheduledPL'
        termination_action:
          $ref: '#/components/schemas/PortingTerminationAction'
        country:
          type: string
          enum: [ PL ]
          example: 'PL'
          description: 'Porting country'
        status:
          type: string
          enum: [ reschedule_requested ]
          example: 'reschedule_requested'
          description: 'Porting status'
        recipient_details:
          $ref: '#/components/schemas/PortingRecipientDetails'
        scheduled_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was scheduled. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        previous_scheduled_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: The previous scheduled date if scheduled has cahnged. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        cancelation_deadline_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting will be lock and no cancelation is allowed. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        consents:
          $ref: '#/components/schemas/ConsentsOutPL'
        reschedule_requested_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was requested to be rescheduled. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was created. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        updated_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was updated. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
        _links:
          allOf:
            - $ref: '#/components/schemas/PortingLinksBase'
            - $ref: '#/components/schemas/PortingInScheduledLinksPL'
      required:
        - id
        - direction
        - preferred_schedule
        - termination_action
        - country
        - status
        - recipient_details
        - created_at
        - updated_at
        - scheduled_at
        - cancelation_deadline_at
        - _links
        - consents
        - reschedule_requested_at
    
    PortingDonorDetailsPL:
      type: object
      properties:
        _embedded:
          $ref: '#/components/schemas/PortingEmbeddedDetails'
        account:
          oneOf:
            - $ref: '#/components/schemas/PortingAccountPersonalPL'
            - $ref: '#/components/schemas/PortingAccountBusinessPL'
      required:
        - _embedded
        - account

    PortingEmbeddedDetails:
      type: object
      properties:
        network_operator:
          $ref: '#/components/schemas/PortingEmbeddedNetworkOperator'
        service_provider:
          $ref: '#/components/schemas/PortingEmbeddedServiceProvider'

    PortingRecipientDetails:
      type: object
      properties:
        _embedded:
          $ref: '#/components/schemas/PortingEmbeddedDetails'
      required:
        - _embedded


    PortingAccountPersonalDE:
      type: object
      additionalProperties: false
      properties:
        type:
          type: string
          enum: [ personal ]
          example: 'personal'
          description: 'The type of account'
      required:
        - type

    PortingAccountBusinessDE:
      type: object
      additionalProperties: false
      properties:
        type:
          type: string
          enum: [ business ]
          example: 'business'
          description: 'The type of account'
        company_name:
          type: string
        account_number:
          type: string
      required:
        - type
        - company_name
        - account_number
    
    PortingAccountPersonalPL:
      type: object
      additionalProperties: false
      properties:
        type:
          type: string
          enum: [ personal ]
          example: 'personal'
          description: 'The type of account'
        service_type:
          type: string
          enum: [ prepaid, postpaid ]
          example: "prepaid"
          description: "The type of service in the donor"
      required:
        - type
        - service_type

    PortingAccountBusinessBasedPL:
      type: object
      properties:
        type:
          type: string
          enum: [ business ]
          example: "business"
          description: "The type of account"
        company_name:
          type: string
        account_number:
          type: string
        service_type:
          type: string
          enum: [ prepaid, postpaid ]
          example: "prepaid"
          description: "The type of service in the donor"
      required:
        - type
        - company_name
        - account_number
        - service_type

    PortingAccountBusinessPL:
      oneOf: 
        -  $ref: "#/components/schemas/PortingAccountBusinessRegonPL"
        -  $ref: "#/components/schemas/PortingAccountBusinessNIPPL"

    PortingAccountBusinessRegonPL:
      allOf: 
        - $ref: "#/components/schemas/PortingAccountBusinessBasedPL"
        - type: object
          properties:
            regon:
              type: string
          required:
            -  regon

    PortingAccountBusinessNIPPL:
      allOf: 
        -  $ref: "#/components/schemas/PortingAccountBusinessBasedPL"
        - type: object
          properties:
            nip:
              type: string
          required:
            -  nip

    PortingPreferredScheduledDE:
      type: object
      properties:
        type:
          type: string
          enum: [ first_available_date, specific_date,contract_end ]
          example: 'first_available_date'
          description: 'Porting scheduled type'
        preferred_porting_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: The preferred porting datetime. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
          
    PortingPreferredScheduledPL:
      type: object
      properties:
        type:
          type: string
          enum: [ specific_date, notice_period_end_date, contract_end ]
          example: 'specific_date'
          description: 'Porting scheduled type'
        preferred_porting_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: The preferred porting datetime. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)

    PortingEmbeddedNetworkOperator:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        status:
          $ref: '#/components/schemas/NetworkOperatorStatus'
        trade_name:
          type: string
        country:
          $ref: '#/components/schemas/PortingCountry'
        created_at:
          $ref: '#/components/schemas/CreatedAt'
        updated_at:
          $ref: '#/components/schemas/UpdatedAt'
        _links:
          $ref: '#/components/schemas/PortingEmbeddedNetworkOperatorLinks'
      required:
        - id
        - name
        - status
        - trade_name
        - country
        - created_at
        - updated_at
        - _links
    PortingEmbeddedNetworkOperatorLinks:
      type: object
      properties:
        self:
          description: The Network Operator URL URI
          $ref: '#/components/schemas/Link'


    PortingEmbeddedServiceProvider:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        status:
          $ref: '#/components/schemas/ServiceProviderStatus'
        country:
          $ref: '#/components/schemas/PortingCountry'
        created_at:
          $ref: '#/components/schemas/CreatedAt'
        updated_at:
          $ref: '#/components/schemas/UpdatedAt'
        _links:
          $ref: '#/components/schemas/PortingEmbeddedServiceProviderLinks'
      required:
        - id
        - name
        - status
        - country
        - created_at
        - updated_at
        - _links

    PortingEmbeddedServiceProviderLinks:
      type: object
      properties:
        self:
          description: The Service Provider URL URI
          $ref: '#/components/schemas/Link'


    PortingRejectionDE:
      type: object
      properties:
        reason:
          $ref: '#/components/schemas/PortingRejectionReasonDE'

        message:
          type: string
        rejected_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was rejected. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)

    PortingRejectionReasonDE:
      type: string
      enum:
        - request_not_readable
        - wrong_customer_type
        - wrong_name
        - wrong_birth_date
        - unkown_mobile_number
        - wrong_customer_number
        - pre_requirements_not_fulfilled
        - duplicate_portation_request
        - portation_already_in_progress
        - portation_request_too_early
        - portation_request_too_late
        - requested_portation_date_too_early
        - requested_portation_date_too_late
        - requested_portation_date_unrealizable
        - no_portation_available
        - portation_origin_different_sp
        - wrong_name_and_birth_date
        - wrong_name_and_customer_number
        - missing_opt_in
        - other

    PortingRejectionPL:
      type: object
      properties:
        reason:
          $ref: '#/components/schemas/PortingRejectionReasonPL'
        message:
          type: string
        rejected_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting was rejected. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
    
    PortingRejectionReasonPL:
      type: string
      enum:
        - incorrect_registration_data
        - catalogue_number_inactive
        - incorrect_number_group
        - porting date_later_than_porting_date_in_end_mode
        - number_does_not_belong_to_the_donor
        - porting_date_is_more_than_120_day
        - customer_resigned_from_portation
        - error_in_registration_data
        - error_in_information_system
        - other

    PortingDeclinedCancelation:
      type: object
      properties:
        declined_attempts:
          type: number
        reason:
          $ref: '#/components/schemas/PortingDeclinedCancelationReason'
        message:
          type: string
        declined_at:
          $ref: '#/components/schemas/Iso8601DateTime'
          description: When the Porting cancelection request was decilned. Formated as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)

    PortingDeclinedCancelationReason:
      type: string
      enum:
        - cancelation_too_late
        - other

    PortingLinksBase:
      type: object
      description: The links related to the Porting
      properties:
        self:
          description: The Porting URL URI
          $ref: '#/components/schemas/Link'
        account:
          description: The account link URI
          $ref: '#/components/schemas/Link'
        subscriber:
          description: The subscriber link URI
          $ref: '#/components/schemas/Link'
        subscription:
          description: The subscription link URI
          $ref: '#/components/schemas/Link'
        phone_number:
          description: The subscription link URI
          $ref: '#/components/schemas/Link'

      required:
        - self
        - account
        - subscription
        - subscriber
        - phone_number
    
    PortingInPendingLinksDE:
      type: object
      description: The links related to the Porting
      properties:
        request-cancelation:
          description: The request cancelation porting link URI
          $ref: '#/components/schemas/Link'
    
    PortingInScheduledLinksDE:
      type: object
      description: The links related to the Porting
      properties:
        request-cancelation:
          description: The request cancelation porting link URI
          $ref: '#/components/schemas/Link'

    PortingOutPendingLinksDE:
      type: object
      description: The links related to the Porting
      properties:
        accept:
          description: The accept porting link URI
          $ref: '#/components/schemas/Link'
        reject:
          description: The accept porting link URI
          $ref: '#/components/schemas/Link'

    PortingOutCancelationRequestedLinksDE:
      type: object
      description: The links related to the Porting
      properties:
        accept-cancelation:
          description: The accept cancelation porting link URI
          $ref: '#/components/schemas/Link'
        reject-cancelation:
          description: The accept porting link URI
          $ref: '#/components/schemas/Link'

    PortingInPendingLinksPL:
      type: object
      description: The links related to the Porting
      properties:
        request-cancelation:
          description: The request cancelation porting link URI
          $ref: '#/components/schemas/Link'

    PortingInScheduledLinksPL:
      type: object
      description: The links related to the Porting
      properties:
        request-cancelation:
          description: The request cancelation porting link URI
          $ref: '#/components/schemas/Link'
    
    PortingOutPendingLinksPL:
      type: object
      description: The links related to the Porting
      properties:
        accept:
          description: The accept porting link URI
          $ref: '#/components/schemas/Link'
        reject:
          description: The accept porting link URI
          $ref: '#/components/schemas/Link'
        request-reschedule:
          description: The accept reschedule porting link URI
          $ref: '#/components/schemas/Link'
        request-cancelation:
          description: The accept reschedule porting link URI
          $ref: '#/components/schemas/Link'
    
    PortingOutScheduledLinksPL:
      type: object
      description: The links related to the Porting
      properties:       
        request-reschedule:
          description: The accept reschedule porting link URI
          $ref: '#/components/schemas/Link'
        request-cancelation:
          description: The accept reschedule porting link URI
          $ref: '#/components/schemas/Link'
    
    AcceptPorting:
      type: object
      properties:
        termination_action:
          type: string
          description: The termination action when porting out the number
          enum:
            - terminate
          example: terminate
    RejectPorting:
      type: object
      properties:
        reason:
          type: string
          description: The rejection reason code
          enum:
            - pre_requirements_not_fulfilled
        message:
          type: string
          description: Additional message explaining the rejection
    RequestCancelationPorting:
      type: object
      properties:
        reason:
          type: string
          description: The request cancelation reason
          enum:
            - user_requested
        message:
          type: string
      required:
        - reason
    RejectCancelationPorting:
      anyOf: 
        -  $ref: '#/components/schemas/RejectCancelationPortingDE'

    RejectCancelationPortingDE:
      type: object
      properties:
        reason:
          type: string
          description: The reject cancelation reason
          enum:
            - cancelation_too_late
        message:
          type: string

    AcceptCancelationPorting:
      type: object
      properties:
        message:
          type: string
    
    RequestReschedulePorting:
      type: object
      properties:
        reason:
          type: string
          description: The request cancelation reason
          enum:
            - user_requested
        message:
          type: string
        schedule_at:
          $ref: '#/components/schemas/Iso8601DateTime'
      required:
        - reason
    NetworkOperatorId:
      type: string
      description: A string that uniquely identifies an NetworkOperator
      maxLength: 100
      example: nopr_01HV3KWPNRCT870WV3XG41CAT3
    ServiceProviderId:
      type: string
      description: A string that uniquely identifies an ServiceProvider
      maxLength: 100
      example: spro_01HV3KWPNRCT870WV3XG41CAT3
    NetworkOperator:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/NetworkOperatorId'
        name:
          type: string
        trade_name:
          type: string
        country:
          $ref: '#/components/schemas/PortingCountry'
        status:
          $ref: '#/components/schemas/NetworkOperatorStatus'
        code:
          $ref: '#/components/schemas/NetworkOperatorCode'
        created_at:
          $ref: '#/components/schemas/CreatedAt'
        updated_at:
          $ref: '#/components/schemas/UpdatedAt'
        _links:
          $ref: '#/components/schemas/NetworkOperatorLinks'
      required:
        - id
        - name
        - trade_name
        - country
        - status
        - code
        - created_at
        - updated_at
        - _links
    NetworkOperatorStatus:
      type: string
      enum:
        - active
        - inactive
    NetworkOperatorCode:
      type: string
      description: Network Operator code
    NetworkOperatorLinks:
      type: object
      properties:
        self:
          $ref: '#/components/schemas/Link'
    ServiceProvider:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/ServiceProviderId'
        name:
          type: string
        country:
          $ref: '#/components/schemas/PortingCountry'
        status:
          $ref: '#/components/schemas/ServiceProviderStatus'
        code:
          $ref: '#/components/schemas/ServiceProviderCode'
        brands:
          type: array
          description: List of brands
          items:
            $ref: '#/components/schemas/ServiceProviderBrand'
        created_at:
          $ref: '#/components/schemas/CreatedAt'
        updated_at:
          $ref: '#/components/schemas/UpdatedAt'
        _links:
          $ref: '#/components/schemas/ServiceProviderLinks'
      required:
        - id
        - name
        - country
        - status
        - code
        - created_at
        - updated_at
        - _links
    ServiceProviderStatus:
      type: string
      enum:
        - active
        - inactive
    ServiceProviderCode:
      type: string
      description: Service provider code
    ServiceProviderBrand:
      type: string
      description: Service provider brand
    ServiceProviderLinks:
      type: object
      properties:
        self:
          $ref: '#/components/schemas/Link'
    NetworkOperatorList:
      type: object
      description: List of Network Operators
      properties:
        _embedded:
          type: object
          description: The embedded resources
          properties:
            network_operators:
              type: array
              description: The list of Network Operators
              maxItems: 40
              items:
                $ref: '#/components/schemas/NetworkOperator'
          required:
            - network_operators
        _links:
          $ref: '#/components/schemas/Pagination'
      required:
        - _embedded
        - _links
    ServiceProviderList:
      type: object
      description: List of Service Providers
      properties:
        _embedded:
          type: object
          description: The embedded resources
          properties:
            service_providers:
              type: array
              description: The list of Service Providers
              maxItems: 40
              items:
                $ref: '#/components/schemas/ServiceProvider'
          required:
            - service_providers
        _links:
          $ref: '#/components/schemas/Pagination'
      required:
        - _embedded
        - _links
    PortingDraftNotification:
      $ref: '#/components/schemas/PortingInDraftNotification'

    PortingPendingNotification:
      oneOf:
        - $ref: '#/components/schemas/PortingInPendingNotification'
        - $ref: '#/components/schemas/PortingOutPendingNotification'
      discriminator: 
        propertyName: direction
        mapping: 
          in: '#/components/schemas/PortingInPendingNotification'
          out: '#/components/schemas/PortingOutPendingNotification'

    PortingScheduledNotification:
      oneOf:
        - $ref: '#/components/schemas/PortingInScheduledNotification'
        - $ref: '#/components/schemas/PortingOutScheduledNotification'
      discriminator: 
        propertyName: direction
        mapping: 
          in: '#/components/schemas/PortingInScheduledNotification'
          out: '#/components/schemas/PortingOutScheduledNotification'

    PortingProcessingNotification:
      oneOf:
        - $ref: '#/components/schemas/PortingInProcessingNotification'
        - $ref: '#/components/schemas/PortingOutProcessingNotification'
      discriminator: 
        propertyName: direction
        mapping: 
          in: '#/components/schemas/PortingInProcessingNotification'
          out: '#/components/schemas/PortingOutProcessingNotification'
        

    PortingCompletedNotification:
      oneOf:
        - $ref: '#/components/schemas/PortingInCompletedNotification'
        - $ref: '#/components/schemas/PortingOutCompletedNotification'

    PortingRejectedNotification:
      oneOf:
        - $ref: '#/components/schemas/PortingInRejectedNotification'
        - $ref: '#/components/schemas/PortingOutRejectedNotification'

    PortingCancelationRequestedNotification:
      oneOf:
        - $ref: '#/components/schemas/PortingInCancelationRequestedNotification'
        - $ref: '#/components/schemas/PortingOutCancelationRequestedNotification'

    PortingCanceledNotification:
      oneOf:
        - $ref: '#/components/schemas/PortingInCanceledNotification'
        - $ref: '#/components/schemas/PortingOutCanceledNotification'

    PortingRescheduleRequestedNotification:
      $ref: '#/components/schemas/PortingOutRescheduleRequestedNotification'

    PortingInDraftNotification:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        type:
          type: string
          description: The type of notification
          enum:
            - porting.draft
        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
        data:
          type: object
          properties:
            porting:
              $ref: '#/components/schemas/PortingInDraft'
          required:
            - porting
      required:
        - id
        - type
        - created_at
        - data

    PortingInPendingNotification:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        type:
          type: string
          description: The type of notification
          enum:
            - porting.pending
        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
        data:
          type: object
          properties:
            porting:
              $ref: '#/components/schemas/PortingInPending'
          required:
            - porting
      required:
        - id
        - type
        - created_at
        - data

    PortingInScheduledNotification:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        type:
          type: string
          description: The type of notification
          enum:
            - porting.scheduled
        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
        data:
          type: object
          properties:
            porting:
              $ref: '#/components/schemas/PortingInScheduled'
          required:
            - porting
      required:
        - id
        - type
        - created_at
        - data

    PortingInProcessingNotification:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        type:
          type: string
          description: The type of notification
          enum:
            - porting.processing
        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
        data:
          type: object
          properties:
            porting:
              $ref: '#/components/schemas/PortingInProcessing'
          required:
            - porting
      required:
        - id
        - type
        - created_at
        - data

    PortingInCompletedNotification:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        type:
          type: string
          description: The type of notification
          enum:
            - porting.completed
        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
        data:
          type: object
          properties:
            porting:
              $ref: '#/components/schemas/PortingInCompleted'
          required:
            - porting
      required:
        - id
        - type
        - created_at
        - data

    PortingInRejectedNotification:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        type:
          type: string
          description: The type of notification
          enum:
            - porting.rejected
        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
        data:
          type: object
          properties:
            porting:
              $ref: '#/components/schemas/PortingInRejected'
          required:
            - porting
      required:
        - id
        - type
        - created_at
        - data

    PortingInCancelationRequestedNotification:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        type:
          type: string
          description: The type of notification
          enum:
            - porting.cancelation_requested
        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
        data:
          type: object
          properties:
            porting:
              $ref: '#/components/schemas/PortingInCancelationRequested'
          required:
            - porting
      required:
        - id
        - type
        - created_at
        - data

    PortingInCanceledNotification:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        type:
          type: string
          description: The type of notification
          enum:
            - porting.canceled
        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
        data:
          type: object
          properties:
            porting:
              $ref: '#/components/schemas/PortingInCanceled'
          required:
            - porting
      required:
        - id
        - type
        - created_at
        - data
    
    PortingOutPendingNotification:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        type:
          type: string
          description: The type of notification
          enum:
            - porting.pending
        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
        data:
          type: object
          properties:
            porting:
              $ref: '#/components/schemas/PortingOutPending'
          required:
            - porting
      required:
        - id
        - type
        - created_at
        - data

    PortingOutScheduledNotification:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        type:
          type: string
          description: The type of notification
          enum:
            - porting.scheduled
        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
        data:
          type: object
          properties:
            porting:
              $ref: '#/components/schemas/PortingOutScheduled'
          required:
            - porting
      required:
        - id
        - type
        - created_at
        - data

    PortingOutProcessingNotification:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        type:
          type: string
          description: The type of notification
          enum:
            - porting.processing
        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
        data:
          type: object
          properties:
            porting:
              $ref: '#/components/schemas/PortingOutProcessing'
          required:
            - porting
      required:
        - id
        - type
        - created_at
        - data

    PortingOutCompletedNotification:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        type:
          type: string
          description: The type of notification
          enum:
            - porting.completed
        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
        data:
          type: object
          properties:
            porting:
              $ref: '#/components/schemas/PortingOutCompleted'
          required:
            - porting
      required:
        - id
        - type
        - created_at
        - data

    PortingOutRejectedNotification:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        type:
          type: string
          description: The type of notification
          enum:
            - porting.rejected
        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
        data:
          type: object
          properties:
            porting:
              $ref: '#/components/schemas/PortingOutRejected'
          required:
            - porting
      required:
        - id
        - type
        - created_at
        - data

    PortingOutCancelationRequestedNotification:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        type:
          type: string
          description: The type of notification
          enum:
            - porting.cancelation_requested
        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
        data:
          type: object
          properties:
            porting:
              $ref: '#/components/schemas/PortingOutCancelationRequested'
          required:
            - porting
      required:
        - id
        - type
        - created_at
        - data

    PortingOutCanceledNotification:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        type:
          type: string
          description: The type of notification
          enum:
            - porting.canceled
        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
        data:
          type: object
          properties:
            porting:
              $ref: '#/components/schemas/PortingOutCanceled'
          required:
            - porting
      required:
        - id
        - type
        - created_at
        - data
    
    PortingOutRescheduleRequestedNotification:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        type:
          type: string
          description: The type of notification
          enum:
            - porting.reschedule_requested
        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
        data:
          type: object
          properties:
            porting:
              $ref: '#/components/schemas/PortingOutRescheduleRequested'
          required:
            - porting
      required:
        - id
        - type
        - created_at
        - data
    ContractType:
      type: string
      description: type of contract
      enum:
        - contract_summary
    ContractLinks:
      type: object
      description: The links related to the Contract
      properties:
        self:
          $ref: '#/components/schemas/Link'
        download:
          $ref: '#/components/schemas/Link'
      required:
        - self
    ContractSummaryLinks:
      type: object
      description: The links related to the Contract
      properties:
        self:
          $ref: '#/components/schemas/Link'
      required:
        - self
    EmbeddedOrder:
      type: object
      description: The embedded order
      properties:
        id:
          $ref: '#/components/schemas/OrderId'
        _links:
          $ref: '#/components/schemas/OrderLinks'
      required:
        - id
        - _links
    Contract:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/ContractId'
        type:
          $ref: '#/components/schemas/ContractType'
        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
        _embedded:
          type: object
          description: The embedded resources
          properties:
            account:
              $ref: '#/components/schemas/EmbeddedAccount'
            order:
              $ref: '#/components/schemas/EmbeddedOrder'
          required:
            - account
        _links:
          $ref: '#/components/schemas/ContractLinks'
      required:
        - id
        - type
        - created_at
        - _links
    ContractSummary:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/ContractId'
        type:
          $ref: '#/components/schemas/ContractType'
        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
        _embedded:
          type: object
          description: The embedded resources
          properties:
            account:
              $ref: '#/components/schemas/EmbeddedAccount'
            order:
              $ref: '#/components/schemas/EmbeddedOrder'
          required:
            - account
        _links:
          $ref: '#/components/schemas/ContractSummaryLinks'
      required:
        - id
        - type
        - created_at
        - _links
    ContractList:
      type: object
      description: List of contracts
      properties:
        _embedded:
          type: object
          description: The embedded resources
          properties:
            contracts:
              type: array
              description: The list of contracts
              maxItems: 40
              items:
                $ref: '#/components/schemas/ContractSummary'
          required:
            - contracts
        _links:
          $ref: '#/components/schemas/Pagination'
      required:
        - _embedded
        - _links
    ContractNotification:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        type:
          type: string
          description: The type of notification
          enum:
            - contract.created
        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
        data:
          type: object
          properties:
            contract:
              $ref: '#/components/schemas/Contract'
          required:
            - contract
      required:
        - id
        - type
        - created_at
        - data
    InvoiceNumber:
      type: string
      description: A string that uniquely number an Invoice
      maxLength: 100
      example: INV-2025-001
    BillingPeriod:
      type: string
      format: interval
      description: The Time interval according to the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
      example: P1Y2M10DT2H30M/2008-05-11T15:30:00Z
    BillingPrice:
      type: object
      properties:
        amount:
          type: number
        currency:
          type: string
      required:
        - amount
        - currency
    InvoiceStatus:
      type: string
      description: The invoice status
      enum:
        - open
        - paid
    ChargesType:
      type: string
      description: The charges type
      enum:
        - one_off
        - recurring
        - sms_oob
        - voice_oob
    InvoiceLinks:
      type: object
      description: The links related to the Account
      properties:
        self:
          $ref: '#/components/schemas/Link'
        download:
          $ref: '#/components/schemas/Link'
      required:
        - self
    InvoiceSummaryLinks:
      type: object
      description: The links related to the Account
      properties:
        self:
          $ref: '#/components/schemas/Link'
      required:
        - self
    EmbeddedProduct:
      type: object
      description: The embedded Product
      properties:
        id:
          $ref: '#/components/schemas/ProductId'
        _links:
          $ref: '#/components/schemas/InvoiceProductLinks'
    EmbeddedSubscriptionOnly:
      type: object
      description: The embedded Subscription
      properties:
        id:
          $ref: '#/components/schemas/SubscriptionId'
        _links:
          $ref: '#/components/schemas/InvoiceSubscriptionLinks'
    InvoiceItemSummary:
      type: object
      properties:
        type:
          $ref: '#/components/schemas/ChargesType'
        total:
          $ref: '#/components/schemas/BillingPrice'
      required:
        - type
        - total
    InvoiceItemLine:
      type: object
      properties:
        period:
          $ref: '#/components/schemas/BillingPeriod'
        total:
          $ref: '#/components/schemas/BillingPrice'
        subtotal:
          $ref: '#/components/schemas/BillingPrice'
        tax:
          $ref: '#/components/schemas/BillingPrice'
    InvoiceItemLineObb:
      allOf:
        - $ref: '#/components/schemas/InvoiceItemLine'
        - type: object
          properties:
            type:
              type: string
              enum:
                - one_off
                - sms_oob
                - voice_oob
            _embedded:
              type: object
              description: The embedded resources
              properties:
                subscription:
                  $ref: '#/components/schemas/EmbeddedSubscriptionOnly'
              required:
                - subscription
          required:
            - _embedded
    InvoiceItemLineInBunble:
      allOf:
        - $ref: '#/components/schemas/InvoiceItemLine'
        - type: object
          properties:
            type:
              type: string
              enum:
                - recurring
            _embedded:
              type: object
              description: The embedded resources
              properties:
                subscription:
                  $ref: '#/components/schemas/EmbeddedSubscriptionOnly'
                product:
                  $ref: '#/components/schemas/EmbeddedProduct'
              required:
                - subscription
                - product
          required:
            - _embedded
    Invoice:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/InvoiceId'
        status:
          $ref: '#/components/schemas/InvoiceStatus'
        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
        number:
          $ref: '#/components/schemas/InvoiceNumber'
        period:
          $ref: '#/components/schemas/BillingPeriod'
        total:
          $ref: '#/components/schemas/BillingPrice'
        amount_breakdown:
          type: array
          items:
            $ref: '#/components/schemas/InvoiceItemSummary'
        _embedded:
          type: object
          description: The embedded resources
          properties:
            account:
              $ref: '#/components/schemas/EmbeddedAccount'
          required:
            - account
        _links:
          $ref: '#/components/schemas/InvoiceLinks'
      required:
        - id
        - status
        - created_at
        - number
        - period
        - total
        - amount_breakdown
        - _embedded
        - _links
    InvoiceSummary:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/InvoiceId'
        number:
          $ref: '#/components/schemas/InvoiceNumber'
        period:
          $ref: '#/components/schemas/BillingPeriod'
        total:
          $ref: '#/components/schemas/BillingPrice'
        _embedded:
          type: object
          description: The embedded resources
          properties:
            account:
              $ref: '#/components/schemas/EmbeddedAccount'
          required:
            - account
        _links:
          $ref: '#/components/schemas/InvoiceSummaryLinks'
      required:
        - id
        - number
        - period
        - total
        - _embedded
        - _links
    InvoiceList:
      type: object
      description: List of invoices
      properties:
        _embedded:
          type: object
          description: The embedded resources
          properties:
            invoices:
              type: array
              description: The list of invoices
              maxItems: 40
              items:
                $ref: '#/components/schemas/InvoiceSummary'
          required:
            - invoices
        _links:
          $ref: '#/components/schemas/Pagination'
      required:
        - _embedded
        - _links
    InvoiceItemList:
      type: object
      description: List of invoice items
      properties:
        _embedded:
          type: object
          description: The embedded resources
          properties:
            items:
              type: array
              description: The list of invoice items
              maxItems: 40
              items:
                anyOf:
                  - $ref: '#/components/schemas/InvoiceItemLineObb'
                  - $ref: '#/components/schemas/InvoiceItemLineInBunble'
          required:
            - invoices
        _links:
          $ref: '#/components/schemas/Pagination'
      required:
        - _embedded
        - _links
    InvoiceNotification:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        type:
          type: string
          description: The type of notification
          enum:
            - invoice.open
        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
        data:
          type: object
          properties:
            invoice:
              $ref: '#/components/schemas/Invoice'
          required:
            - invoice
      required:
        - id
        - type
        - created_at
        - data
    FileId:
      type: string
      description: A string that uniquely identifies a file
      maxLength: 100
      example: file_01HV3KWPNRCT870WV3XG41CAT3
    File:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/FileId'
        name:
          type: string
          example: "example.txt"
        created_at:
          $ref: '#/components/schemas/Iso8601DateTime'
        _links:
          $ref: '#/components/schemas/FileLinks'
      required:
        - id
        - name
        - created_at
        - updated_at
        - _links
    FileLinks:
      type: object
      description: The links related to the file
      properties:
        self:
          description: The file URL URI
          $ref: '#/components/schemas/Link'
        download:
          description: The link to download the file
          $ref: '#/components/schemas/Link'
      required:
        - self
        - download
    
    FileLinksSummary:
      type: object
      description: The links related to the file
      properties:
        self:
          description: The file URL URI
          $ref: '#/components/schemas/Link'
      required:
        - self
