MobilePayOnlineInitialization:
  description: |
    A representation of a payment initialization made using MobilePay Online.  
    Please note that initializations for MobilePay Online requires the consumer to be redirected to MobilePay.
  type: object
  required:
  properties:
    mobile:
      description: The consumer's mobile number
      $ref: '../../common/phone-number/phone-number_v1.yaml#/PhoneNumber'
    return_url:
      description: |
        The absolute URL where the consumer is redirected to upon completing the payment in MobilePay.  
        The following parameters will be appended to the provided URL to provide the necessary details to retrieve the status of the Payment Transaction upon completion of the payment in the MobilePay app:
        * session_id: Transpayrent's unique ID for the payment session
        * transaction_id: Transpayrent's unique ID for the payment transaction
        * access_token: Temporary access token for authenticating the request to the Transpayrent Payment Gateway
        
        The URL will default to `https://api-gateway.transpayrent.cloud/payment-gateway/v1/[MERCHANT ID]/session/[SESSION ID]/transaction/[TRANSACTION ID]/mobilepay-online` if not set.
      $ref: '../../common/url/url_v1.yaml#/URL'
    save:
      description: |
        Boolean flag indicating whether the payment card retrieved from MobilePay Online should be tokenized and saved in Transpayrent's secure vault.
      type: boolean
      default: false
      example: true
  allOf:
    - $ref: './initialization-details_v1.yaml#/InitializationDetails'