---
updatedAt: 2026-10-27T08:50:38.000Z
---

# Generate a primary transaction

Use this to originate a financial transaction like a sale, preauthorization, or credit.

# OpenAPI definition

```json
{
  "openapi": "3.0.2",
  "info": {
    "version": "23.2.0",
    "title": "Payments API Reference",
    "description": "The documentation here is designed to provide all of the technical guidance required to consume and integrate with our APIs for payment processing. To learn more about our APIs please visit https://docs.fiserv.dev/public/docs/payments-getting-started.",
    "termsOfService": "https://docs.fiserv.dev",
    "contact": {
      "name": "Fiserv Developer Portal",
      "url": "https://fiserv.dev/support",
      "email": "ipg-online@fiserv.com"
    },
    "license": {
      "name": "License under Apache 2.0",
      "url": "http://www.apache.org/licenses/LICENSE-2.0.html"
    }
  },
  "servers": [
    {
      "url": "https://cert.api.firstdata.com/gateway/v2",
      "description": "Sandbox Environment"
    },
    {
      "url": "https://prod.api.firstdata.com/gateway/v2",
      "description": "Production Environment"
    }
  ],
  "tags": [
    {
      "name": "Payment",
      "description": "Payment"
    }
  ],
  "paths": {
    "/payments": {
      "post": {
        "tags": [
          "Payment"
        ],
        "security": [
          {
            "Api-Key": []
          }
        ],
        "x-proxy-name": "Create Primary Transaction",
        "summary": "Generate a primary transaction",
        "description": "Use this to originate a financial transaction like a sale, preauthorization, or credit.",
        "operationId": "submitPrimaryTransaction",
        "parameters": [
          {
            "$ref": "#/components/parameters/ContentTypeParam"
          },
          {
            "$ref": "#/components/parameters/ClientRequestIdParam"
          },
          {
            "$ref": "#/components/parameters/ApiKeyParam"
          },
          {
            "$ref": "#/components/parameters/TimestampParam"
          },
          {
            "$ref": "#/components/parameters/MessageSignatureParam"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PrimaryTransactionGroup"
              },
              "examples": {
                "PaymentCardSaleTransaction": {
                  "summary": "PaymentCardSaleTransaction",
                  "value": {
                    "requestType": "PaymentCardSaleTransaction",
                    "transactionAmount": {
                      "total": 12.04,
                      "currency": "EUR"
                    },
                    "paymentMethod": {
                      "paymentCard": {
                        "number": "5424180279791732",
                        "securityCode": "977",
                        "expiryDate": {
                          "month": "12",
                          "year": "24"
                        }
                      }
                    },
                    "storedCredentials": {
                      "sequence": "FIRST",
                      "scheduled": true
                    }
                  }
                },
                "PaymentCardPreAuthTransaction": {
                  "summary": "PaymentCardPreAuthTransaction",
                  "value": {
                    "requestType": "PaymentCardPreAuthTransaction",
                    "transactionAmount": {
                      "total": 12.04,
                      "currency": "EUR"
                    },
                    "paymentMethod": {
                      "paymentCard": {
                        "number": "5424180279791732",
                        "securityCode": "977",
                        "expiryDate": {
                          "month": "12",
                          "year": "24"
                        }
                      }
                    },
                    "splitShipment": {
                      "totalCount": 1,
                      "finalShipment": true
                    },
                    "incrementalFlag": false
                  }
                },
                "PaymentCardPayerAuthTransaction": {
                  "summary": "PaymentCardPayerAuthTransaction",
                  "value": {
                    "transactionAmount": {
                      "total": 12.04,
                      "currency": "EUR"
                    },
                    "requestType": "PaymentCardPayerAuthTransaction",
                    "paymentMethod": {
                      "paymentCard": {
                        "number": "5424180279791732",
                        "securityCode": "977",
                        "expiryDate": {
                          "month": "12",
                          "year": "24"
                        }
                      }
                    }
                  }
                },
                "PaymentTokenCreditTransaction": {
                  "summary": "PaymentTokenCreditTransaction",
                  "value": {
                    "transactionAmount": {
                      "total": 12.04,
                      "currency": "EUR"
                    },
                    "requestType": "PaymentTokenCreditTransaction",
                    "paymentMethod": {
                      "paymentToken": {
                        "value": "1235325235236",
                        "function": "DEBIT",
                        "securityCode": "977"
                      }
                    }
                  }
                },
                "PaymentTokenPreAuthTransaction": {
                  "summary": "PaymentTokenPreAuthTransaction",
                  "value": {
                    "transactionAmount": {
                      "total": 12.04,
                      "currency": "EUR"
                    },
                    "requestType": "PaymentTokenPreAuthTransaction",
                    "paymentMethod": {
                      "paymentToken": {
                        "value": "1235325235236",
                        "function": "DEBIT",
                        "securityCode": "977"
                      }
                    },
                    "splitShipment": {
                      "totalCount": 1,
                      "finalShipment": true
                    }
                  }
                },
                "PaymentTokenSaleTransaction": {
                  "summary": "PaymentTokenSaleTransaction",
                  "value": {
                    "transactionAmount": {
                      "total": 12.04,
                      "currency": "EUR"
                    },
                    "requestType": "PaymentTokenSaleTransaction",
                    "paymentMethod": {
                      "paymentToken": {
                        "value": "1235325235236",
                        "function": "DEBIT",
                        "securityCode": "977"
                      }
                    },
                    "storedCredentials": {
                      "sequence": "FIRST",
                      "scheduled": true
                    }
                  }
                }
              }
            }
          },
          "description": "Accepted request types: PaymentCardSaleTransaction, PaymentCardPreAuthTransaction, PaymentCardPayerAuthTransaction, PaymentTokenCreditTransaction, PaymentTokenPreAuthTransaction, PaymentTokenSaleTransaction, PaypalCreditTransaction.",
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TransactionResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/TransactionGatewayDeclined"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "422": {
            "$ref": "#/components/responses/TransactionEndpointDeclined"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "502": {
            "$ref": "#/components/responses/EndpointCommunicationError"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "Api-Key": {
        "name": "Api-Key",
        "type": "apiKey",
        "in": "header",
        "description": "Authorization value in header (obtain from developer portal)"
      }
    },
    "parameters": {
      "ContentTypeParam": {
        "name": "Content-Type",
        "schema": {
          "type": "string",
          "enum": [
            "application/json"
          ],
          "default": "application/json"
        },
        "in": "header",
        "required": true,
        "description": "Content type."
      },
      "ClientRequestIdParam": {
        "name": "Client-Request-Id",
        "schema": {
          "type": "string"
        },
        "in": "header",
        "required": true,
        "description": "A client-generated ID for request tracking and signature creation, unique per request.  This is also used for idempotency control. We recommend 128-bit UUID format."
      },
      "ApiKeyParam": {
        "name": "Api-Key",
        "schema": {
          "type": "string"
        },
        "in": "header",
        "required": true,
        "description": "Key given to merchant after boarding associating their requests with the appropriate app in Apigee."
      },
      "TimestampParam": {
        "name": "Timestamp",
        "schema": {
          "type": "integer",
          "format": "int64"
        },
        "in": "header",
        "required": true,
        "description": "Epoch timestamp in milliseconds in the request from a client system. Used for Message Signature generation and time limit (5 mins)."
      },
      "MessageSignatureParam": {
        "name": "Message-Signature",
        "schema": {
          "type": "string"
        },
        "in": "header",
        "required": true,
        "description": "Used to ensure the request has not been tampered with during transmission. The Message-Signature is the Base64 encoded HMAC hash (SHA256 algorithm with the API Secret as the key.) For more information, refer to the supporting documentation on the Developer Portal.",
        "x-link": {
          "name": "How to Create Message Signature",
          "link": "https://docs.firstdata.com/org/gateway/node/394"
        }
      }
    },
    "responses": {
      "BadRequest": {
        "description": "The request cannot be validated.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            }
          }
        }
      },
      "Unauthenticated": {
        "description": "The request cannot be authenticated or was submitted with the wrong credentials.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            }
          }
        }
      },
      "Unauthorized": {
        "description": "The request was unauthorized.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            }
          }
        }
      },
      "UnsupportedMediaType": {
        "description": "Format that is not supported by the server for the HTTP method.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            }
          }
        }
      },
      "NotFound": {
        "description": "The requested resource doesn't exist.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            }
          }
        }
      },
      "ServerError": {
        "description": "An unexpected internal server error occurred.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            }
          }
        }
      },
      "EndpointCommunicationError": {
        "description": "There was a problem communicating with the endpoint.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            }
          }
        }
      },
      "TransactionGatewayDeclined": {
        "description": "The attempted action is not valid according to gateway rules. For example, the merchant is not set-up or the order already exists.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/TransactionErrorResponse"
            }
          }
        }
      },
      "TransactionEndpointDeclined": {
        "description": "The processor declined the transaction.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/TransactionErrorResponse"
            }
          }
        }
      }
    },
    "schemas": {
      "PrimaryTransactionGroup": {
        "x-hide-model": true,
        "type": "object",
        "anyOf": [
          {
            "$ref": "#/components/schemas/PaymentCardForcedTicketTransaction"
          },
          {
            "$ref": "#/components/schemas/PaymentCardSaleTransaction"
          },
          {
            "$ref": "#/components/schemas/PaymentCardPreAuthTransaction"
          },
          {
            "$ref": "#/components/schemas/PaymentCardPayerAuthTransaction"
          },
          {
            "$ref": "#/components/schemas/PaymentTokenCreditTransaction"
          },
          {
            "$ref": "#/components/schemas/PaymentTokenPreAuthTransaction"
          },
          {
            "$ref": "#/components/schemas/PaymentTokenSaleTransaction"
          }
        ],
        "discriminator": {
          "propertyName": "requestType",
          "mapping": {
            "PaymentCardSaleTransaction": "#/components/schemas/PaymentCardSaleTransaction",
            "PaymentCardPreAuthTransaction": "#/components/schemas/PaymentCardPreAuthTransaction",
            "PaymentTokenCreditTransaction": "#/components/schemas/PaymentTokenCreditTransaction",
            "PaymentTokenPreAuthTransaction": "#/components/schemas/PaymentTokenPreAuthTransaction",
            "PaymentTokenSaleTransaction": "#/components/schemas/PaymentTokenSaleTransaction"
          }
        }
      },
      "BasicResponse": {
        "description": "Contains apiTraceId and clientRequestId shared in all response types.",
        "properties": {
          "clientRequestId": {
            "description": "Echoes back the value in the request header for tracking.",
            "type": "string",
            "example": "30dd879c-ee2f-11db-8314-0800200c9a66"
          },
          "apiTraceId": {
            "description": "Request identifier in API, can be used to request logs from the support team.",
            "type": "string",
            "example": "rrt-0bd552c12342d3448-b-ea-1142-12938318-7"
          },
          "responseType": {
            "$ref": "#/components/schemas/ResponseType"
          }
        }
      },
      "ErrorResponse": {
        "description": "Response containing an error object.",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicResponse"
          },
          {
            "properties": {
              "error": {
                "$ref": "#/components/schemas/Error"
              }
            }
          }
        ]
      },
      "TransactionErrorResponse": {
        "description": "Transaction response with error field included.",
        "allOf": [
          {
            "$ref": "#/components/schemas/TransactionResponse"
          },
          {
            "properties": {
              "error": {
                "$ref": "#/components/schemas/Error"
              }
            }
          }
        ]
      },
      "TransactionResponse": {
        "description": "Common object for primary and secondary payment request responses.",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicResponse"
          },
          {
            "properties": {
              "ipgTransactionId": {
                "description": "The response transaction ID.",
                "type": "string",
                "example": "838916029301"
              },
              "orderId": {
                "description": "Note - Client Order ID if supplied by client. If not supplied by client, IPG will generate. The first 12 alphanumeric digits are passed down to Fiserv Enterprise reporting tool, Clientline and Data File Manager (DFM).",
                "type": "string",
                "example": "123456"
              },
              "transactionType": {
                "$ref": "#/components/schemas/TransactionType"
              },
              "paymentToken": {
                "$ref": "#/components/schemas/PaymentTokenDetails"
              },
              "transactionOrigin": {
                "$ref": "#/components/schemas/TransactionOrigin"
              },
              "paymentMethodDetails": {
                "$ref": "#/components/schemas/PaymentMethodDetails"
              },
              "country": {
                "description": "Country of the card issuer.",
                "type": "string",
                "example": "USA"
              },
              "terminalId": {
                "description": "The terminal that is processing the transaction.",
                "type": "string",
                "example": "123456"
              },
              "merchantId": {
                "description": "The unique (on Acquirer level) mechant ID. Usually this value has been chosen from the merchant itself and will be used in communication with the endpoint.",
                "type": "string",
                "maxLength": 30,
                "example": "199950008"
              },
              "merchantTransactionId": {
                "description": "The unique merchant transaction ID from the request header, if supplied.",
                "type": "string",
                "maxLength": 40,
                "example": "lsk23532djljff3"
              },
              "transactionTime": {
                "description": "The transaction time in seconds since epoch.",
                "type": "integer",
                "format": "int64",
                "example": 1518811817
              },
              "approvedAmount": {
                "$ref": "#/components/schemas/Amount"
              },
              "transactionAmount": {
                "$ref": "#/components/schemas/TransactionAmount"
              },
              "transactionStatus": {
                "description": "This field is Deprecated. Point to 'transactionResult'.",
                "type": "string",
                "enum": [
                  "APPROVED",
                  "WAITING",
                  "PARTIAL",
                  "VALIDATION_FAILED",
                  "PROCESSING_FAILED",
                  "DECLINED"
                ],
                "example": "APPROVED"
              },
              "transactionResult": {
                "description": "This is the result of the operation, unless transaction status that represent financial status of the transaction, this fields helps us to understand if the operation is successfully executed",
                "type": "string",
                "enum": [
                  "APPROVED",
                  "DECLINED",
                  "FAILED",
                  "WAITING",
                  "PARTIAL",
                  "FRAUD"
                ],
                "example": "APPROVED"
              },
              "approvalCode": {
                "description": "Shows the transaction approvalcode.",
                "type": "string",
                "example": "N:-30031:No terminal setup"
              },
              "errorMessage": {
                "description": "Shows the transaction errorMessage.",
                "type": "string",
                "example": "000100: Tx was processed but response was not stored correctly"
              },
              "transactionState": {
                "description": "Shows the state of the current transaction.",
                "type": "string",
                "enum": [
                  "AUTHORIZED",
                  "CAPTURED",
                  "DECLINED",
                  "CHECKED",
                  "COMPLETED_GET",
                  "INITIALIZED",
                  "PENDING",
                  "READY",
                  "TEMPLATE",
                  "SETTLED",
                  "VOIDED",
                  "WAITING"
                ],
                "example": "AUTHORIZED"
              },
              "paymentAccountReferenceNumber": {
                "description": "Payment Account Reference Number from response, if supplied.",
                "type": "string",
                "maxLength": 30,
                "example": "1234001AB101112131415161718CV"
              },
              "secure3dResponse": {
                "$ref": "#/components/schemas/Secure3dResponse"
              },
              "standinResponseDetails": {
                "$ref": "#/components/schemas/StandinResponseDetails"
              },
              "redirectURL": {
                "description": "The endpoint redirection URL.",
                "type": "string",
                "example": "http://pay.issuer-bank.com/sessionID=123&sharedKey=456"
              },
              "authenticationResponse": {
                "$ref": "#/components/schemas/Secure3DAuthenticationResponse"
              },
              "schemeTransactionId": {
                "description": "The transaction ID received from schemes for the initial transaction of card on file flows.",
                "type": "string",
                "maxLength": 40,
                "example": "019078743804756"
              },
              "processor": {
                "$ref": "#/components/schemas/ProcessorData"
              },
              "additionalDetails": {
                "$ref": "#/components/schemas/AdditionalTransactionDetails"
              },
              "accountUpdaterResponse": {
                "$ref": "#/components/schemas/AccountUpdaterResponse"
              },
              "currencyConversionResponse": {
                "$ref": "#/components/schemas/CurrencyConversionResponse"
              },
              "requiredActions": {
                "$ref": "#/components/schemas/RequiredActions"
              },
              "networkToken": {
                "$ref": "#/components/schemas/NetworkToken"
              }
            }
          }
        ],
        "example": {
          "clientRequestId": "30dd879c-ee2f-11db-8314-0800200c9a66",
          "apiTraceId": "rrt-0c80a3403e2c2def0-d-ea-28805-6810951-2",
          "ipgTransactionId": "838916029301",
          "transactionType": "SALE",
          "transactionTime": 1518811817,
          "approvedAmount": {
            "total": 10.24,
            "currency": "EUR"
          },
          "transactionAmount": {
            "total": 10.24,
            "currency": "EUR",
            "components": {
              "subtotal": 8,
              "localTax": 1,
              "shipping": 1.24
            }
          },
          "transactionStatus": "APPROVED",
          "transactionResult": "APPROVED",
          "schemeTransactionId": "019078743804756",
          "processor": {
            "responseCode": "00",
            "responseMessage": "APPROVED",
            "authorizationCode": "OK7118"
          },
          "plannedDueDate": "2022-03-03",
          "requiredActions": {
            "requiredRedirectionData": {
              "url": "https://payment.thirdparty.com",
              "headerParameters": {
                "headerParam1": "value1",
                "headerParam2": "value2"
              },
              "method": "GET"
            },
            "requiredConsumerData": [
              {
                "hint": "Your 6-digit Code will be provided in your mobile application",
                "validationExpression": "^\\\\d{6}$",
                "key": "BLIK_CODE"
              }
            ],
            "requiredIntegrationData": [
              {
                "hint": "Payment requires the user agent information on the browser/device.",
                "key": "USER_AGENT"
              }
            ]
          }
        }
      },
      "UsePaymentToken": {
        "description": "Payment token usage details.",
        "required": [
          "value"
        ],
        "properties": {
          "value": {
            "description": "Client-supplied payment token value.",
            "type": "string",
            "pattern": "^(?!\\s*$).+",
            "example": "1235325235236"
          },
          "tokenOriginStoreId": {
            "description": "The ID of a same store (or) sibling store in a hierarchy for which the token was originally created.",
            "type": "string",
            "maxLength": 20,
            "example": "12345500001"
          },
          "function": {
            "$ref": "#/components/schemas/CardFunction"
          },
          "securityCode": {
            "description": "Card verification value/number.",
            "type": "string",
            "minLength": 3,
            "maxLength": 4,
            "example": "977"
          },
          "expiryDate": {
            "$ref": "#/components/schemas/Expiration"
          }
        },
        "example": {
          "value": "1235325235236",
          "tokenOriginStoreId": "12345500001",
          "function": "DEBIT",
          "securityCode": "977",
          "expiryDate": {
            "month": "12",
            "year": "24"
          }
        }
      },
      "PaymentTokenDetails": {
        "description": "Response details for payment token creation.",
        "allOf": [
          {
            "$ref": "#/components/schemas/CreatePaymentToken"
          },
          {
            "type": "object",
            "properties": {
              "last4": {
                "description": "The last 4 numbers of a payment card.",
                "type": "string",
                "example": "4997"
              },
              "brand": {
                "description": "Card brand, only for tokenization with payment.",
                "type": "string",
                "example": "VISA"
              },
              "accountVerification": {
                "description": "If the account the token was created from has been verified.",
                "type": "boolean",
                "example": true
              },
              "type": {
                "description": "Indicates the type of tokenization source.",
                "type": "string",
                "example": "PAYMENT_CARD"
              },
              "error": {
                "$ref": "#/components/schemas/Error"
              }
            }
          }
        ],
        "example": {
          "value": "234ljl124l12",
          "reusable": true,
          "declineDuplicates": false,
          "last4": "4997",
          "brand": "VISA",
          "accountVerification": true,
          "type": "PAYMENT_CARD"
        }
      },
      "CreatePaymentToken": {
        "description": "Use this model to create a payment token.",
        "properties": {
          "value": {
            "description": "Client-supplied payment token value. Only applicable for DataVault tokenization scheme.",
            "type": "string",
            "example": "234ljl124l12"
          },
          "reusable": {
            "description": "If the token is reusable.",
            "type": "boolean",
            "default": true,
            "example": true
          },
          "declineDuplicates": {
            "description": "Decline duplicate payment info if client token is supplied.",
            "type": "boolean",
            "default": false,
            "example": false
          }
        },
        "example": {
          "value": "234ljl124l12",
          "reusable": true,
          "declineDuplicates": false
        }
      },
      "CardFunction": {
        "description": "Card function. This field is required when performing transactions for Brazil merchants.",
        "type": "string",
        "enum": [
          "CREDIT",
          "DEBIT",
          "PREPAID",
          "VOUCHER",
          "UNDEFINED"
        ],
        "example": "DEBIT"
      },
      "ResponseType": {
        "description": "The type of the response.",
        "type": "string",
        "enum": [
          "BadRequest",
          "Unauthenticated",
          "Unauthorized",
          "NotFound",
          "GatewayDeclined",
          "EndpointDeclined",
          "ServerError",
          "EndpointCommunicationError",
          "UnsupportedMediaType"
        ],
        "example": "Unauthenticated"
      },
      "ProcessorData": {
        "description": "Model for processor data.",
        "properties": {
          "referenceNumber": {
            "description": "Reference transaction ID.",
            "type": "string",
            "example": "811720726601"
          },
          "authorizationCode": {
            "description": "Code returned to confirm transaction.",
            "type": "string",
            "example": "OK7118"
          },
          "responseCode": {
            "description": "Response code from endpoints.",
            "type": "string",
            "example": "00"
          },
          "network": {
            "description": "Network used for transaction.",
            "type": "string",
            "example": "NYCE"
          },
          "associationResponseCode": {
            "description": "Raw response code from issuer.",
            "type": "string",
            "example": "000"
          },
          "responseMessage": {
            "description": "Message returned from endpoints.",
            "type": "string",
            "example": "Amount specified exceeds allowable limit."
          },
          "avsResponse": {
            "$ref": "#/components/schemas/AVSResponse"
          },
          "cardholderInfoResponse": {
            "$ref": "#/components/schemas/CardholderInfoResponse"
          },
          "securityCodeResponse": {
            "description": "Code returned for CVV.",
            "type": "string",
            "enum": [
              "MATCHED",
              "NOT_MATCHED",
              "NOT_PROCESSED",
              "NOT_PRESENT",
              "NOT_CERTIFIED",
              "NOT_CHECKED"
            ],
            "example": "NOT_MATCHED"
          },
          "merchantAdviceCodeIndicator": {
            "description": "Code to map merchant advice code to ISO specification.",
            "type": "string",
            "pattern": "[0-9]{2}",
            "example": "01"
          },
          "responseIndicator": {
            "description": "Indicates whether the transaction was routed through the payment card's own network or through a different network.",
            "type": "string",
            "example": "0100"
          },
          "debitReceiptNumber": {
            "description": "Receipt number from debit network provider.",
            "type": "string",
            "example": "123456"
          },
          "transactionIntegrityClass": {
            "description": "MasterCard provided Transaction Integrity Class for Point of Sale (POS) Purchase and Purchase with Cash Back transactions initiated on the Authorization Platform.",
            "type": "string",
            "example": "A1"
          }
        },
        "example": {
          "responseCode": "00",
          "responseMessage": "APPROVED",
          "authorizationCode": "OK7118",
          "network": "NYCE"
        }
      },
      "Error": {
        "description": "Error information.",
        "properties": {
          "code": {
            "description": "Uniquely identifies an error condition. Client applications need to read and handle errors based on this.",
            "type": "string",
            "example": "2303"
          },
          "message": {
            "description": "A generic description of the error condition.",
            "type": "string",
            "example": "Invalid credit card number"
          },
          "details": {
            "description": "Detailed information about message format errors.",
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "field": {
                  "description": "The property or attribute associated with the error.",
                  "type": "string",
                  "example": "PaymentCard.number"
                },
                "message": {
                  "description": "Information specific to a property or attribute.",
                  "type": "string",
                  "example": "may not be null"
                }
              }
            }
          },
          "declineReasonCode": {
            "description": "Information about the decline reason.",
            "type": "string",
            "example": "Do not try again"
          }
        },
        "example": {
          "code": "2303",
          "message": "Invalid credit card number"
        }
      },
      "PaymentCardForcedTicketTransaction": {
        "title": "PaymentCardForcedTicketTransaction",
        "description": "Request to create forced ticket primary transaction.",
        "allOf": [
          {
            "$ref": "#/components/schemas/PrimaryTransaction"
          },
          {
            "type": "object",
            "required": [
              "paymentMethod",
              "referenceNumber"
            ],
            "properties": {
              "paymentMethod": {
                "$ref": "#/components/schemas/PaymentCardPaymentMethod"
              },
              "referenceNumber": {
                "description": "Stores the six-digit reference number you have received as the result of a successful external authorization (e.g. by phone). The gateway needs this number for uniquely mapping a ForcedTicket transaction to a previously performed external authorization.",
                "type": "string",
                "maxLength": 8,
                "pattern": "^(?!\\s*$).+",
                "example": "123455"
              }
            }
          }
        ],
        "example": {
          "transactionAmount": {
            "total": 12.04,
            "currency": "EUR"
          },
          "requestType": "PaymentCardForcedTicketTransaction",
          "paymentMethod": {
            "paymentCard": {
              "number": "5424180279791732",
              "securityCode": "977",
              "expiryDate": {
                "month": "12",
                "year": "24"
              }
            }
          },
          "referenceNumber": "123455"
        }
      },
      "PaymentCardPayerAuthTransaction": {
        "title": "PaymentCardPayerAuthTransaction",
        "description": "Request to create payer auth primary transaction.",
        "allOf": [
          {
            "$ref": "#/components/schemas/PrimaryTransaction"
          },
          {
            "type": "object",
            "required": [
              "paymentMethod"
            ],
            "properties": {
              "paymentMethod": {
                "$ref": "#/components/schemas/PaymentCardPaymentMethod"
              },
              "currencyConversion": {
                "$ref": "#/components/schemas/CurrencyConversion"
              },
              "authenticationRequest": {
                "$ref": "#/components/schemas/AuthenticationRequest"
              },
              "authenticationResult": {
                "$ref": "#/components/schemas/AuthenticationResult"
              }
            }
          }
        ],
        "example": {
          "transactionAmount": {
            "total": 12.04,
            "currency": "EUR"
          },
          "requestType": "PaymentCardPayerAuthTransaction",
          "paymentMethod": {
            "paymentCard": {
              "number": "5424180279791732",
              "securityCode": "977",
              "expiryDate": {
                "month": "12",
                "year": "24"
              }
            }
          }
        }
      },
      "PaymentTokenCreditTransaction": {
        "title": "PaymentTokenCreditTransaction",
        "description": "Request to create credit transaction using payment token.",
        "allOf": [
          {
            "$ref": "#/components/schemas/PrimaryTransaction"
          },
          {
            "type": "object",
            "required": [
              "paymentMethod"
            ],
            "properties": {
              "paymentMethod": {
                "$ref": "#/components/schemas/PaymentTokenPaymentMethod"
              },
              "currencyConversion": {
                "$ref": "#/components/schemas/CurrencyConversion"
              }
            }
          }
        ],
        "example": {
          "transactionAmount": {
            "total": 12.04,
            "currency": "EUR"
          },
          "requestType": "PaymentTokenCreditTransaction",
          "paymentMethod": {
            "paymentToken": {
              "value": "1235325235236",
              "function": "DEBIT",
              "securityCode": "977"
            }
          }
        }
      },
      "PaymentTokenPreAuthTransaction": {
        "title": "PaymentTokenPreAuthTransaction",
        "description": "Request to create pre-auth transaction using payment token.",
        "allOf": [
          {
            "$ref": "#/components/schemas/PrimaryTransaction"
          },
          {
            "type": "object",
            "required": [
              "paymentMethod"
            ],
            "properties": {
              "paymentMethod": {
                "$ref": "#/components/schemas/PaymentTokenPaymentMethod"
              },
              "storedCredentials": {
                "$ref": "#/components/schemas/StoredCredential"
              },
              "splitShipment": {
                "$ref": "#/components/schemas/SplitShipment"
              },
              "settlementSplit": {
                "$ref": "#/components/schemas/SettlementSplit"
              },
              "authenticationRequest": {
                "$ref": "#/components/schemas/AuthenticationRequest"
              },
              "authenticationResult": {
                "$ref": "#/components/schemas/AuthenticationResult"
              },
              "decrementalFlag": {
                "$ref": "#/components/schemas/DecrementalPreAuthFlag"
              },
              "incrementalFlag": {
                "$ref": "#/components/schemas/IncrementalPreAuthFlag"
              },
              "authOptimization": {
                "$ref": "#/components/schemas/AuthOptimization"
              }
            }
          }
        ],
        "example": {
          "transactionAmount": {
            "total": 12.04,
            "currency": "EUR"
          },
          "requestType": "PaymentTokenPreAuthTransaction",
          "paymentMethod": {
            "paymentToken": {
              "value": "1235325235236",
              "function": "DEBIT",
              "securityCode": "977"
            }
          },
          "splitShipment": {
            "totalCount": 1,
            "finalShipment": true
          },
          "incrementalFlag": false,
          "authOptimizationOverride": "Override"
        }
      },
      "PaymentTokenSaleTransaction": {
        "title": "PaymentTokenSaleTransaction",
        "description": "Request to create sale transaction using payment token.",
        "allOf": [
          {
            "$ref": "#/components/schemas/PrimaryTransaction"
          },
          {
            "type": "object",
            "required": [
              "paymentMethod"
            ],
            "properties": {
              "paymentMethod": {
                "$ref": "#/components/schemas/PaymentTokenPaymentMethod"
              },
              "storedCredentials": {
                "$ref": "#/components/schemas/StoredCredential"
              },
              "settlementSplit": {
                "$ref": "#/components/schemas/SettlementSplit"
              },
              "currencyConversion": {
                "$ref": "#/components/schemas/CurrencyConversion"
              },
              "authenticationRequest": {
                "$ref": "#/components/schemas/AuthenticationRequest"
              },
              "authenticationResult": {
                "$ref": "#/components/schemas/AuthenticationResult"
              },
              "authOptimization": {
                "$ref": "#/components/schemas/AuthOptimization"
              }
            }
          }
        ],
        "example": {
          "transactionAmount": {
            "total": 12.04,
            "currency": "EUR"
          },
          "requestType": "PaymentTokenSaleTransaction",
          "paymentMethod": {
            "paymentToken": {
              "value": "1235325235236",
              "function": "DEBIT",
              "securityCode": "977"
            }
          },
          "storedCredentials": {
            "sequence": "FIRST",
            "scheduled": true
          },
          "authOptimizationOverride": "Override"
        }
      },
      "PaymentCardPreAuthTransaction": {
        "title": "PaymentCardPreAuthTransaction",
        "description": "Request to create pre-auth transaction using credit card.",
        "allOf": [
          {
            "$ref": "#/components/schemas/PrimaryTransaction"
          },
          {
            "type": "object",
            "properties": {
              "paymentMethod": {
                "$ref": "#/components/schemas/PaymentCardPaymentMethod"
              },
              "storedCredentials": {
                "$ref": "#/components/schemas/StoredCredential"
              },
              "createToken": {
                "$ref": "#/components/schemas/CreatePaymentToken"
              },
              "splitShipment": {
                "$ref": "#/components/schemas/SplitShipment"
              },
              "settlementSplit": {
                "$ref": "#/components/schemas/SettlementSplit"
              },
              "currencyConversion": {
                "$ref": "#/components/schemas/CurrencyConversion"
              },
              "authenticationRequest": {
                "$ref": "#/components/schemas/AuthenticationRequest"
              },
              "authenticationResult": {
                "$ref": "#/components/schemas/AuthenticationResult"
              },
              "decrementalFlag": {
                "$ref": "#/components/schemas/DecrementalPreAuthFlag"
              },
              "incrementalFlag": {
                "$ref": "#/components/schemas/IncrementalPreAuthFlag"
              },
              "authOptimization": {
                "$ref": "#/components/schemas/AuthOptimization"
              },
              "parDataRequested": {
                "$ref": "#/components/schemas/PaymentAccountReferenceFlag"
              }
            }
          }
        ],
        "example": {
          "transactionAmount": {
            "total": 12.04,
            "currency": "EUR"
          },
          "requestType": "PaymentCardPreAuthTransaction",
          "paymentMethod": {
            "paymentCard": {
              "number": "5424180279791732",
              "securityCode": "977",
              "expiryDate": {
                "month": "12",
                "year": "24"
              }
            }
          },
          "splitShipment": {
            "totalCount": 1,
            "finalShipment": true
          },
          "incrementalFlag": false,
          "authOptimizationOverride": "Override"
        }
      },
      "PaymentCardSaleTransaction": {
        "title": "PaymentCardSaleTransaction",
        "description": "Request to create sale transaction using payment card.",
        "allOf": [
          {
            "$ref": "#/components/schemas/PrimaryTransaction"
          },
          {
            "type": "object",
            "properties": {
              "paymentMethod": {
                "$ref": "#/components/schemas/PaymentCardPaymentMethod"
              },
              "storedCredentials": {
                "$ref": "#/components/schemas/StoredCredential"
              },
              "settlementSplit": {
                "$ref": "#/components/schemas/SettlementSplit"
              },
              "createToken": {
                "$ref": "#/components/schemas/CreatePaymentToken"
              },
              "currencyConversion": {
                "$ref": "#/components/schemas/CurrencyConversion"
              },
              "authenticationRequest": {
                "$ref": "#/components/schemas/AuthenticationRequest"
              },
              "authenticationResult": {
                "$ref": "#/components/schemas/AuthenticationResult"
              },
              "authOptimization": {
                "$ref": "#/components/schemas/AuthOptimization"
              },
              "parDataRequested": {
                "$ref": "#/components/schemas/PaymentAccountReferenceFlag"
              }
            }
          }
        ],
        "example": {
          "transactionAmount": {
            "total": 12.04,
            "currency": "EUR"
          },
          "requestType": "PaymentCardSaleTransaction",
          "paymentMethod": {
            "paymentCard": {
              "number": "5424180279791732",
              "securityCode": "977",
              "expiryDate": {
                "month": "12",
                "year": "24"
              }
            }
          },
          "storedCredentials": {
            "sequence": "FIRST",
            "scheduled": true
          },
          "authOptimizationOverride": "Override"
        }
      },
      "PaymentDevicePreAuthTransaction": {
        "title": "PaymentDevicePreAuthTransaction",
        "description": "Request to create pre-auth transaction using decrypted card details from payment device. The transaction origin will be fixed as PHONE when data is manually entered into the device and as RETAIL when data is entered into the device via swipe.",
        "allOf": [
          {
            "$ref": "#/components/schemas/PrimaryTransaction"
          },
          {
            "type": "object",
            "required": [
              "paymentMethod"
            ],
            "properties": {
              "paymentMethod": {
                "$ref": "#/components/schemas/PaymentDevicePaymentMethod"
              },
              "createToken": {
                "$ref": "#/components/schemas/CreatePaymentToken"
              },
              "settlementSplit": {
                "$ref": "#/components/schemas/SettlementSplit"
              },
              "storedCredentials": {
                "$ref": "#/components/schemas/StoredCredential"
              },
              "splitShipment": {
                "$ref": "#/components/schemas/SplitShipment"
              },
              "decrementalFlag": {
                "$ref": "#/components/schemas/DecrementalPreAuthFlag"
              },
              "incrementalFlag": {
                "$ref": "#/components/schemas/IncrementalPreAuthFlag"
              }
            }
          }
        ],
        "example": {
          "requestType": "PaymentDevicePreAuthTransaction",
          "transactionAmount": {
            "total": 12.04,
            "currency": "EUR"
          },
          "paymentMethod": {
            "paymentDevice": {
              "deviceType": "SWIPE",
              "data": "02A600C0170018008292;5424********1732=1810?*B73CD8C26233D4FFEC5500ED394439D97DDA5F530942D21D0000000000000000000000000000000000000000363434543035353734326299492410027300000260DC03",
              "securityCode": "977",
              "cardholderName": "First Cardholder",
              "cardFunction": "CREDIT",
              "brand": "VISA"
            }
          },
          "incrementalFlag": false
        }
      },
      "PaymentDeviceSaleTransaction": {
        "title": "PaymentDeviceSaleTransaction",
        "description": "Request to create sale transaction using decrypted card details from payment device. The transaction origin will be fixed as PHONE when data is manually entered into the device and as RETAIL when data is entered into the device via swipe.",
        "allOf": [
          {
            "$ref": "#/components/schemas/PrimaryTransaction"
          },
          {
            "type": "object",
            "required": [
              "paymentMethod"
            ],
            "properties": {
              "paymentMethod": {
                "$ref": "#/components/schemas/PaymentDevicePaymentMethod"
              },
              "createToken": {
                "$ref": "#/components/schemas/CreatePaymentToken"
              },
              "storedCredentials": {
                "$ref": "#/components/schemas/StoredCredential"
              }
            }
          }
        ],
        "example": {
          "requestType": "PaymentDeviceSaleTransaction",
          "transactionAmount": {
            "total": 12.04,
            "currency": "EUR"
          },
          "paymentMethod": {
            "paymentDevice": {
              "deviceType": "SWIPE",
              "data": "02A600C0170018008292;5424********1732=1810?*B73CD8C26233D4FFEC5500ED394439D97DDA5F530942D21D0000000000000000000000000000000000000000363434543035353734326299492410027300000260DC03",
              "securityCode": "977",
              "cardholderName": "First Cardholder",
              "cardFunction": "CREDIT",
              "brand": "VISA"
            }
          }
        }
      },
      "PaymentDeviceCreditTransaction": {
        "title": "PaymentDeviceCreditTransaction",
        "description": "Request to create credit transaction using decrypted card details from payment device. The transaction origin will be fixed as PHONE when data is manually entered into the device and as RETAIL when data is entered into the device via swipe.",
        "allOf": [
          {
            "$ref": "#/components/schemas/PrimaryTransaction"
          },
          {
            "type": "object",
            "required": [
              "paymentMethod"
            ],
            "properties": {
              "paymentMethod": {
                "$ref": "#/components/schemas/PaymentDevicePaymentMethod"
              }
            }
          }
        ],
        "example": {
          "requestType": "PaymentDeviceCreditTransaction",
          "transactionAmount": {
            "total": 12.04,
            "currency": "EUR"
          },
          "paymentMethod": {
            "paymentDevice": {
              "deviceType": "SWIPE",
              "data": "02A600C0170018008292;5424********1732=1810?*B73CD8C26233D4FFEC5500ED394439D97DDA5F530942D21D0000000000000000000000000000000000000000363434543035353734326299492410027300000260DC03",
              "securityCode": "977",
              "cardholderName": "First Cardholder",
              "cardFunction": "CREDIT",
              "brand": "VISA"
            }
          }
        }
      },
      "PrimaryTransaction": {
        "description": "Provides shared fields for all PrimaryTransaction request types. Abstract class, do not use this class directly, use one of its children.",
        "required": [
          "requestType",
          "transactionAmount"
        ],
        "discriminator": {
          "propertyName": "requestType"
        },
        "example": {
          "requestType": "PaymentCardSaleTransaction",
          "transactionAmount": {
            "total": 12.04,
            "currency": "EUR"
          },
          "paymentMethod": {
            "paymentCard": {
              "number": "5424180279791732",
              "securityCode": "977",
              "expiryDate": {
                "month": "12",
                "year": "24"
              }
            }
          }
        }
      },
      "SplitShipment": {
        "description": "Split-shipment related information, in order to reuse the same authorization.",
        "properties": {
          "totalCount": {
            "description": "Total count of the shipment, can be set at preauth or the first postauth.",
            "type": "integer",
            "format": "int32",
            "example": 5
          },
          "finalShipment": {
            "description": "Indicates whether the transaction is the final shipment.",
            "type": "boolean",
            "default": false
          }
        },
        "example": {
          "totalCount": 1,
          "finalShipment": true
        }
      },
      "SubMerchantSplit": {
        "description": "Sub-merchant split object for SettlementSplit.",
        "required": [
          "merchantID",
          "amount"
        ],
        "properties": {
          "merchantID": {
            "description": "ID of merchant for tracking.",
            "type": "string",
            "maxLength": 15,
            "pattern": "[0-9]{1,15}",
            "example": "100000001"
          },
          "amount": {
            "description": "The amount each sub-merchant receives.",
            "type": "number",
            "example": 25.06
          }
        },
        "example": {
          "merchantID": "100000001",
          "amount": 25.06
        }
      },
      "SettlementSplit": {
        "description": "Settle with multiple sub-merchants, sale and preAuth only.",
        "type": "array",
        "minItems": 1,
        "maxItems": 5,
        "items": {
          "$ref": "#/components/schemas/SubMerchantSplit"
        },
        "example": [
          {
            "merchantID": "100000001",
            "amount": 25.06
          },
          {
            "merchantID": "100000002",
            "amount": 15.07
          }
        ]
      },
      "AdditionalTransactionDetails": {
        "description": "Additional transaction details for transaction response.",
        "properties": {
          "comments": {
            "description": "Comment for the payment.",
            "type": "string",
            "maxLength": 1024,
            "example": "This is a comment"
          },
          "invoiceNumber": {
            "description": "Invoice number.",
            "type": "string",
            "maxLength": 48,
            "example": "551294633441"
          },
          "purchaseOrderNumber": {
            "description": "Purchase order number.",
            "type": "string",
            "maxLength": 128,
            "example": "1223456"
          },
          "receipts": {
            "description": "Provides receipt response data, if it has been requested.",
            "type": "array",
            "minItems": 1,
            "maxItems": 2,
            "items": {
              "$ref": "#/components/schemas/Receipt"
            },
            "example": [
              {
                "type": "cardholder",
                "data": [
                  {
                    "endOfLine": true,
                    "text": "--------------------------------"
                  },
                  {
                    "endOfLine": true,
                    "text": "              SALE              "
                  }
                ]
              },
              {
                "type": "merchant",
                "data": [
                  {
                    "endOfLine": true,
                    "text": "        Example Merchant        "
                  },
                  {
                    "endOfLine": true,
                    "text": "--------------------------------"
                  }
                ]
              }
            ]
          },
          "additionalResponseData": {
            "$ref": "#/components/schemas/AdditionalResponseData"
          }
        },
        "example": {
          "comments": "This is a comment",
          "invoiceNumber": "551294633441",
          "purchaseOrderNumber": "1223456"
        }
      },
      "AdditionalResponseData": {
        "description": "Additional Response Data.",
        "properties": {
          "issuingBankName": {
            "description": "Issuing Bank Name.",
            "type": "string",
            "maxLength": 18,
            "example": "USA Bank"
          },
          "countryOfIssuance": {
            "description": "Country of Issuance.",
            "type": "string",
            "maxLength": 3,
            "example": "USA"
          },
          "cardProductID": {
            "description": "Card Product ID.",
            "type": "string",
            "maxLength": 1,
            "example": "H"
          },
          "detailedProductID": {
            "description": "Detailed Product ID.",
            "type": "string",
            "maxLength": 3,
            "example": "C"
          },
          "associationResponseCodeAdtl": {
            "description": "Association Response Code.",
            "type": "string",
            "maxLength": 3,
            "example": "00"
          },
          "cardBrand": {
            "description": "Card Brand.",
            "type": "string",
            "maxLength": 1,
            "example": "M"
          },
          "deferredAuthTransactionID": {
            "description": "Deferred Auth Transaction ID for re-authorized (Optimized) transaction",
            "type": "string",
            "maxLength": 16,
            "example": "3561032059730219"
          }
        }
      },
      "AccountUpdaterResponse": {
        "description": "Details related to updated account information.",
        "properties": {
          "updatedCard": {
            "description": "Account updater replacement PAN or TransArmor token.",
            "type": "string",
            "example": "4012000066660018"
          },
          "updatedToken": {
            "description": "Updated value of token.",
            "type": "string",
            "example": "1235325235236"
          },
          "updatedExpirationDate": {
            "description": "New account number expiration date in MMYY format.",
            "type": "string",
            "example": "1220"
          },
          "updatedAccountStatus": {
            "description": "Status of the updated account. An account may have closed (ACCOUNT_CLOSED), the expiry date may have changed (EXPIRY_CHANGED), the account may have changed (ACCOUNT_CHANGED), or the cardholder should be contacted (CONTACT_CARDHOLDER).",
            "type": "string",
            "example": "ACCOUNT_CHANGED"
          },
          "updatedAccountErrorCode": {
            "description": "Code for the error encountered when updating account.",
            "type": "string",
            "example": "VAU002"
          },
          "originalResponseCode": {
            "description": "Original Response Code for re-authorized (Optimized) transaction",
            "type": "string",
            "example": "00"
          }
        },
        "example": {
          "updatedCard": "4012000066660018",
          "updatedExpirationDate": "1220",
          "updatedAccountStatus": "ACCOUNT_CHANGED",
          "updatedAccountErrorCode": "VAU002",
          "originalResponseCode": "00"
        }
      },
      "TransactionType": {
        "description": "Type of transaction to perform. Primary transaction types in requests include 'SALE', 'PREAUTH', 'CREDIT' and 'FORCED_TICKET'.",
        "type": "string",
        "enum": [
          "SALE",
          "PREAUTH",
          "CREDIT",
          "FORCED_TICKET",
          "VOID",
          "RETURN",
          "POSTAUTH",
          "PAYER_AUTH"
        ],
        "example": "SALE"
      },
      "TransactionOrigin": {
        "description": "The source of the transaction. The possible values are ECOM (if the order was received via email or Internet), MOTO (mail order, telephone order), MAIL, PHONE and RETAIL (face to face).",
        "type": "string",
        "enum": [
          "ECOM",
          "MOTO",
          "MAIL",
          "PHONE",
          "RETAIL"
        ],
        "example": "ECOM"
      },
      "DecrementalPreAuthFlag": {
        "description": "This flag can only be used in a preAuth transaction that updates the amount of a previous preAuth transaction to either increase the preAuth amount (DecrementalPreAuthFlag = false) or decrease the preAuth amount (DecrementalPreAuthFlag = true).",
        "type": "boolean",
        "default": false,
        "example": false
      },
      "IncrementalPreAuthFlag": {
        "description": "This flag can only be used in a preAuth transaction that updates the amount of a previous preAuth transaction to increase the preAuth amount (IncrementalPreAuthFlag = true).",
        "type": "boolean",
        "default": false,
        "example": false
      },
      "PaymentAccountReferenceFlag": {
        "description": "Indicates if the merchant wants payment account reference number from the network token using endpoint(PaymentAccountReferenceFlag = true).",
        "type": "boolean",
        "default": false,
        "example": false
      },
      "Amount": {
        "description": "Amount of the transaction.",
        "required": [
          "total",
          "currency"
        ],
        "properties": {
          "total": {
            "description": "Sub component values must add up to total amount.",
            "type": "number",
            "minimum": 0,
            "example": 10.24
          },
          "currency": {
            "description": "ISO 4217 currency code.",
            "type": "string",
            "pattern": "([A-Z]{3})|([0-9]{3})",
            "example": "EUR"
          },
          "components": {
            "$ref": "#/components/schemas/AmountComponents"
          }
        },
        "example": {
          "total": 10.24,
          "currency": "EUR",
          "components": {
            "subtotal": 8,
            "localTax": 1,
            "shipping": 1.24
          }
        }
      },
      "TransactionAmount": {
        "description": "Amount of the transaction.",
        "properties": {
          "total": {
            "description": "Sub component values must add up to total amount.",
            "type": "number",
            "minimum": 0,
            "example": 10.24
          },
          "currency": {
            "description": "ISO 4217 currency code.",
            "type": "string",
            "pattern": "([A-Z]{3})|([0-9]{3})",
            "example": "EUR"
          },
          "components": {
            "$ref": "#/components/schemas/AmountComponents"
          }
        },
        "example": {
          "total": 10.24,
          "currency": "EUR",
          "components": {
            "subtotal": 8,
            "localTax": 1,
            "shipping": 1.24
          }
        }
      },
      "AmountComponents": {
        "description": "Transaction amounts with multiple components.",
        "properties": {
          "subtotal": {
            "description": "Subtotal amount.",
            "type": "number",
            "example": 8
          },
          "vatAmount": {
            "description": "Value-added tax amount.",
            "type": "number",
            "example": 0
          },
          "localTax": {
            "description": "Local tax amount.",
            "type": "number",
            "example": 1
          },
          "shipping": {
            "description": "Shipping amount.",
            "type": "number",
            "example": 1.24
          },
          "cashback": {
            "description": "Cashback amount.",
            "type": "number",
            "example": 2
          },
          "tip": {
            "description": "Tip amount.",
            "type": "number",
            "example": 6
          },
          "surcharge": {
            "description": "Surcharge amount.",
            "type": "number",
            "example": 2.5
          }
        },
        "example": {
          "subtotal": 8,
          "vatAmount": 0,
          "localTax": 1,
          "shipping": 1.24,
          "cashback": 2,
          "tip": 6,
          "surcharge": 2.5
        }
      },
      "RequiredActions": {
        "description": "Provides details which actions need to be performed to fulfill requirements of integration data.",
        "properties": {
          "requiredConsumerData": {
            "description": "Consumer data details which need to be provided by the payer.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RequiredConsumerData"
            }
          },
          "requiredIntegrationData": {
            "description": "Provides details for data requested from the application.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RequiredIntegrationData"
            }
          },
          "requiredRedirectionData": {
            "$ref": "#/components/schemas/RequiredRedirectionData"
          }
        }
      },
      "RequiredConsumerData": {
        "description": "Provides details for data requested from the payer.",
        "type": "object",
        "properties": {
          "hint": {
            "description": "Description of required data that need to be provided.",
            "type": "string",
            "maxLength": 2048
          },
          "validationExpression": {
            "description": "Regexp validation expression for requested data.",
            "type": "string",
            "maxLength": 2048
          },
          "key": {
            "description": "Key for required data item.",
            "type": "string",
            "maxLength": 2048
          }
        },
        "example": {
          "hint": "Your 6-digit Code will be provided in your mobile application",
          "validationExpression": "^\\\\d{6}$",
          "key": "BLIK_CODE"
        }
      },
      "RequiredIntegrationData": {
        "description": "Provides details for data requested from the application.",
        "type": "object",
        "properties": {
          "hint": {
            "description": "Description of required integration data that need to be provided.",
            "type": "string",
            "maxLength": 2048
          },
          "key": {
            "description": "Key for required data item.",
            "type": "string",
            "maxLength": 2048
          }
        },
        "example": {
          "hint": "Payment requires the user agent information on the browser/device.",
          "key": "USER_AGENT"
        }
      },
      "RequiredRedirectionData": {
        "description": "Redirection details provided to the payer e.g. an external URL to complete processing on the web page of the authorisation system.",
        "type": "object",
        "required": [
          "target"
        ],
        "properties": {
          "target": {
            "description": "Redirection URL or just \"SDK\".",
            "type": "string",
            "maxLength": 2048
          },
          "parameters": {
            "description": "Redirection header parameters details.",
            "$ref": "#/components/schemas/AdditionalParameters"
          },
          "method": {
            "description": "HTTP method type.",
            "type": "string",
            "enum": [
              "GET",
              "POST"
            ],
            "example": "GET"
          }
        }
      },
      "AdditionalParameters": {
        "description": "Map representation for additional parameters.",
        "type": "object",
        "additionalProperties": {
          "type": "string",
          "maxLength": 2048
        }
      },
      "PaymentTokenPaymentMethod": {
        "description": "Payment method containing payment tokenization information.",
        "allOf": [
          {
            "$ref": "#/components/schemas/PaymentMethod"
          },
          {
            "type": "object",
            "required": [
              "paymentToken"
            ],
            "properties": {
              "paymentToken": {
                "$ref": "#/components/schemas/UsePaymentToken"
              },
              "paymentFacilitator": {
                "$ref": "#/components/schemas/PaymentFacilitator"
              }
            }
          }
        ],
        "example": {
          "paymentToken": {
            "value": "1235325235236",
            "function": "DEBIT",
            "securityCode": "977"
          }
        }
      },
      "PaymentCardPaymentMethod": {
        "description": "Payment method containing payment card information.",
        "allOf": [
          {
            "$ref": "#/components/schemas/PaymentMethod"
          },
          {
            "type": "object",
            "required": [
              "paymentCard"
            ],
            "properties": {
              "paymentCard": {
                "$ref": "#/components/schemas/PaymentCard"
              },
              "paymentFacilitator": {
                "$ref": "#/components/schemas/PaymentFacilitator"
              }
            }
          }
        ],
        "example": {
          "paymentCard": {
            "number": "5424180279791732",
            "expiryDate": {
              "month": "12",
              "year": "25"
            },
            "securityCode": "977"
          },
          "paymentFacilitator": {
            "externalMerchantId": "12345",
            "paymentFacilitatorId": "123123123",
            "saleOrganizationId": "123124214",
            "name": "First Reseller",
            "subMerchantData": {
              "mcc": "1432",
              "legalName": "First Merchant",
              "timezone": "Europe/London",
              "address": {
                "address1": "123 Main St.",
                "city": "Sandy Springs",
                "region": "Georgia",
                "postalCode": "30303",
                "country": "USA"
              },
              "document": {
                "type": "NATIONAL_IDENTITY",
                "number": "12345666544"
              },
              "merchantId": "12435325235"
            }
          }
        }
      },
      "AuthOptimization": {
        "description": "Object for sending Card Account Updater.",
        "properties": {
          "authOptimizationOverride": {
            "description": "Indicates the Card Account Updater value. Valid value is 'Override'.",
            "type": "string",
            "enum": [
              "Override"
            ],
            "example": "Override"
          }
        },
        "example": {
          "authOptimizationOverride": "Override"
        }
      },
      "PaymentDevicePaymentMethod": {
        "description": "Payment method containing payment device information.",
        "allOf": [
          {
            "$ref": "#/components/schemas/PaymentMethod"
          },
          {
            "type": "object",
            "required": [
              "paymentDevice"
            ],
            "properties": {
              "paymentDevice": {
                "$ref": "#/components/schemas/PaymentDevice"
              },
              "paymentFacilitator": {
                "$ref": "#/components/schemas/PaymentFacilitator"
              }
            }
          }
        ],
        "example": {
          "paymentDevice": {
            "deviceType": "SWIPE",
            "data": "02A600C0170018008292;5424********1732=1810?*B73CD8C26233D4FFEC5500ED394439D97DDA5F530942D21D0000000000000000000000000000000000000000363434543035353734326299492410027300000260DC03",
            "securityCode": "977",
            "cardholderName": "First Cardholder",
            "cardFunction": "CREDIT",
            "brand": "VISA"
          },
          "paymentFacilitator": {
            "externalMerchantId": "12345",
            "paymentFacilitatorId": "123123123",
            "saleOrganizationId": "123124214",
            "name": "First Reseller",
            "subMerchantData": {
              "mcc": "1432",
              "legalName": "First Merchant",
              "timezone": "Europe/London",
              "address": {
                "address1": "123 Main St.",
                "city": "Sandy Springs",
                "region": "Georgia",
                "postalCode": "30303",
                "country": "USA"
              },
              "document": {
                "type": "NATIONAL_IDENTITY",
                "number": "12345666544"
              },
              "merchantId": "12435325235"
            }
          }
        }
      },
      "PaymentMethod": {
        "description": "Various payment methods the Gateway supports. Abstract class, do not use this class directly, use one of its children.",
        "type": "object"
      },
      "PaymentMethodDetails": {
        "description": "Provides details of the payment method used.",
        "properties": {
          "paymentCard": {
            "$ref": "#/components/schemas/PaymentCard"
          },
          "paymentMethodType": {
            "$ref": "#/components/schemas/PaymentMethodType"
          },
          "paymentMethodBrand": {
            "$ref": "#/components/schemas/PaymentMethodBrand"
          }
        },
        "example": {
          "paymentCard": {
            "number": "5424180279791732",
            "expiryDate": {
              "month": "12",
              "year": "25"
            },
            "securityCode": "977"
          },
          "paymentMethodType": "PAYMENT_CARD",
          "paymentMethodBrand": "APPLEPAY"
        }
      },
      "PaymentMethodType": {
        "description": "Type of payment method.",
        "type": "string",
        "enum": [
          "BCMC",
          "BITPAY",
          "BLIK",
          "BOLETO",
          "CASH",
          "CONEKTA",
          "CUP_DOMESTIC",
          "DEBITDE",
          "EMI",
          "EPS",
          "E-TRANSFER",
          "GIROPAY",
          "IDEAL",
          "INDIAWALLET",
          "KLARNA",
          "KPS",
          "MYBANK",
          "NATWEST_PAYIT",
          "NETBANKING",
          "PAYMENT_CARD",
          "PAYMENT_TOKEN",
          "PAYPAL",
          "PAYSAFECARD",
          "POLI",
          "POSTFINANCE_CARD",
          "POSTFINANCE_EF",
          "PRZELEWY24",
          "SAMSUNG_PAY",
          "SAFETYPAY",
          "TRUSTLY",
          "TRUSTPAY",
          "WALLET",
          "WECHAT",
          "WECHAT_DOMESTIC"
        ],
        "example": "DEBITDE"
      },
      "PaymentMethodBrand": {
        "description": "A list of all Payment Method Brands.",
        "type": "string",
        "enum": [
          "AB_BANK_RMS",
          "ACB_RMS",
          "ADANCARD",
          "AFFIN_BANK_RMS",
          "AGRI_BANK_RMS",
          "AGRO_BANK_RMS",
          "WECHATPAY_SG_QFPAY",
          "GRABPAY_SG_QFPAY",
          "PAYNOW_SG_QFPAY",
          "ALLIANCE_BANK_RMS",
          "AMEX",
          "AM_ONLINE_RMS",
          "APAC_DIGITALPAYMENTS",
          "APLA",
          "ARGENCARD",
          "ASTROPAY_CARD",
          "ASTROPAY_DIRECT",
          "ATMVA_RMS",
          "AUTOMATICA",
          "AXIS",
          "AXS_KIOSK_RMS",
          "BACA_BANK_RMS",
          "BANAMEX",
          "BANCAT",
          "BANCODOBRASIL",
          "BANCOLOMBIA",
          "BANCOMER",
          "BANGKOK_BANK_RMS",
          "BANKTRANSFER",
          "BANK_ISLAM_RMS",
          "BANK_MUAMALAT_RMS",
          "BANK_OF_AYUDHYA_RMS",
          "BANK_RAKYAT_RMS",
          "BAOVIET_BANK_RMS",
          "BBPS",
          "BBVA_CUPON",
          "BCMC",
          "BENEFICIOS",
          "BIDV_RMS",
          "BITPAY",
          "BLIK",
          "BOLETO",
          "BOLETO_PAYMENT",
          "BOOST_RMS",
          "BRADESCO",
          "BTF_SOCIAL",
          "BUERGEL",
          "CABAL",
          "CABAL_ARGENTINA",
          "CABAL_C_L",
          "CABLEVISION",
          "CALDEN_AGR",
          "CALDEN_MC",
          "CARD",
          "CARDCRED",
          "CARDLESSEMI",
          "CARDRED",
          "CARTE_BANCAIRE",
          "CASH",
          "CENCOSUD_MAS",
          "CENTROCARD",
          "CETELEM",
          "CFSA",
          "CIMB_CLICKS_RMS",
          "CLARIN_365",
          "CLIPER",
          "CLUB_DEL_ESTE",
          "CLUB_ESTE",
          "CLUB_LA_NACION",
          "CLUB_L_G",
          "COBROEXPRESS",
          "COMAHUE",
          "COMPRAS_NQN",
          "CONECS",
          "CONFIABLE",
          "CONSUMAX",
          "COOPEPLUS",
          "CREDENCIAL",
          "CREDICASH",
          "CREDIFE",
          "CREDIGUIA",
          "CREDIMAS",
          "CREDIMAZ",
          "CREDIQUEN",
          "CREDISI",
          "CREDI_AL",
          "CRED_MOVIL",
          "CTCILS_GC",
          "CUENTA_DNI",
          "CUP",
          "CUPON",
          "CUPONSTAR",
          "CUP_CHINAPNR",
          "C_REGALO",
          "DANSKEBANK",
          "DATA",
          "DATA2000",
          "DEBITDE",
          "DEBITDE_EAPS",
          "DEBITDE_ELV",
          "DEBITDE_GIRO",
          "DINACARD",
          "DINERSCLUB",
          "DIRECTA",
          "DIREKT",
          "DONGA_BANK_RMS",
          "DPAY",
          "DRAGONPAY_RMS",
          "DUITNOW",
          "DUMBDUMMY",
          "EDENRED",
          "EFECTIVA_M",
          "EFECTY",
          "EFTPOS",
          "ELEBAR",
          "ELO",
          "EME",
          "ENETS_DBS_RMS",
          "ENETS_OCBC_RMS",
          "ENETS_SCB_RMS",
          "ENETS_UOB_RMS",
          "ENTERCASH",
          "EPS",
          "ESUN_ATM_RMS",
          "EXCL_CARD",
          "EXIM_BANK_RMS",
          "FALABELLA_CMR",
          "FAVACARD",
          "FIEL",
          "FINANYA",
          "FINLANDONLINEBANKING",
          "FPS",
          "FULLCARD",
          "GC_CENCOSUD",
          "GENIAL",
          "GIFT_CARD",
          "GIROPAY",
          "GLOBAL_BLUE",
          "GLOBAL_RED",
          "GP_BANK_RMS",
          "GRABPAY",
          "GRABPAY_RMS",
          "GROUPON",
          "GRUPAR",
          "GRUPARCTDO",
          "G_PASEOS",
          "HANDELSBANKEN",
          "HD_BANK_RMS",
          "HELM",
          "HIPERCARD",
          "HLB_CONNECT_RMS",
          "HOGARNET",
          "HSBC_BANK_RMS",
          "HUILEN",
          "IDEAL",
          "IKEA",
          "INDIAWALLET",
          "INSTANTTRANSFER",
          "INTERNATIONALPAYOUT",
          "IRED",
          "ISLA_CARD",
          "ITALCRED",
          "ITAU_BRAZIL",
          "ITAU_CHILE",
          "JCB",
          "JERARQUICOS",
          "KADICARD",
          "KASIKORN_PAYPLUS_RMS",
          "KLARNA",
          "KPS",
          "KRUNG_THAI_BANK_RMS",
          "KUWAIT_FINANACE_RMS",
          "LASER",
          "LA_RED",
          "LA_VOZ",
          "LA_ZONAL",
          "LIDER",
          "LOS_ANDES",
          "LVPB_BANK_RMS",
          "MAESTRO",
          "MAGENTA",
          "MARITIME_BANK_RMS",
          "MASTERCARD",
          "MASTERPASS",
          "MAT_VOUCHER",
          "MAXIULTRA",
          "MAYBANK_QRPAY_RMS",
          "MAYBANK_RMS",
          "MB_BANK_RMS",
          "MC_BANCOR",
          "MEBNA",
          "MENDOZA_PS",
          "MEXICOLOCAL",
          "MILENIA",
          "MIRA",
          "MI_RENAULT",
          "MOBILETOPUP",
          "MUDON",
          "MULTIBANCO",
          "MUSICRED",
          "MUTUAL_TAIS",
          "MYBANK",
          "NAMA_BANK_RMS",
          "NARANJA",
          "NATIVA",
          "NATIVA_MC",
          "NAVI_BANK_RMS",
          "NETBANKING",
          "NEVADA",
          "NEWRED",
          "NOA_EXPRESS",
          "NORDEA",
          "NSCARD",
          "OCBC_BANK_RMS",
          "OCEAN_BANK_RMS",
          "OHGIFTCARD",
          "OPENCARD",
          "OSUUSPANKKI",
          "OXXO",
          "OXXO_CASH",
          "PAGOFACIL",
          "PATAGONIA365",
          "PAYBYBANK",
          "PAYLATER",
          "PAYNOW",
          "PAYNOW_RMS",
          "PAYPAL",
          "PAYSAFECARD",
          "PB_EBANK_RMS",
          "PERSONALPIN",
          "PG_BANK_RMS",
          "PHUONGDONG_RMS",
          "PIX_PAYMENT",
          "PLATINO",
          "PLAYP_CARD",
          "POLI",
          "PREMIER",
          "PRIMICIA",
          "PRISMA_VALE",
          "PROCAMPO",
          "PRZELEWY24",
          "PUGGLEPAY",
          "PYME_NACION",
          "QIDA",
          "QIWI",
          "RAPICLUB",
          "RAPIPAGO",
          "RED_BENEF",
          "RED_IN",
          "RHB_NOW_RMS",
          "RIO_NEGRO",
          "RIPSA",
          "RUPAY",
          "SACOM_BANK_RMS",
          "SAFETYPAY",
          "SAIGON_BANK_RMS",
          "SAIGON_HANOI_RMS",
          "SAMSUNG_PAY",
          "SAM_KIOSK_RMS",
          "SANTANDER",
          "SANTANDER_CASH",
          "SAN_JUAN",
          "SAPUCAY",
          "SBPS_OTHER_PAYMENTS",
          "SEAA_BANK_RMS",
          "SERVFINANC",
          "SERVICLUB",
          "SHELL_LATAM",
          "SHOPEEPAY_RMS",
          "SIAM_COMMERCIAL_RMS",
          "SIDECREER",
          "SIMPANANNASIONAL_RMS",
          "SKRILL",
          "SOFORT",
          "SOMOS_RIVER",
          "SOROCRED",
          "SOYRECOLETA",
          "SOY_NORTE",
          "SOY_SOLAR",
          "SOY_TIGRE",
          "STAND_CHART_BANK_RMS",
          "SU_CREDITO",
          "TARJETA_SHOPPING",
          "TARJETA_SOL",
          "TARJ_LOCAL",
          "TARJ_PRIVAD",
          "TCI",
          "TC_GRUPO",
          "TECHCOM_BANK_RMS",
          "TELEINGRESO",
          "TERRICLUB",
          "TIENPHONG_BANK_RMS",
          "TITANIO",
          "TJ_VERDE",
          "TKT_NACION",
          "TNG_EWALLET_RMS",
          "TRUSTLY",
          "TRUSTPAY",
          "TUYA",
          "T_CENCOSUD",
          "T_CIUDADANA",
          "T_FARO",
          "ULTRA",
          "UNICA",
          "UNIRED",
          "UOB_BANK_RMS",
          "UPO_PAYMENT_RMS",
          "VIB_RMS",
          "VIETA_BANK_RMS",
          "VIETCOM_BANK_RMS",
          "VIETIN_BANK_RMS",
          "VIP",
          "VISA",
          "VOUCHER",
          "VOUCHER_TUR",
          "VP_BANK_RMS",
          "VYCARD",
          "WECHATPAY_QFPAY",
          "WECHATPAY_RMS",
          "WECHAT_CHINAPNR",
          "WECHAT_OCEAN",
          "ZIMPLER"
        ],
        "example": "GOOGLEPAY"
      },
      "PaymentCard": {
        "description": "Payment card model.",
        "required": [
          "number"
        ],
        "properties": {
          "number": {
            "description": "Payment card number.",
            "type": "string",
            "pattern": "[0-9]{13,19}",
            "example": "5424180279791732"
          },
          "expiryDate": {
            "$ref": "#/components/schemas/Expiration"
          },
          "securityCode": {
            "description": "Card verification value/number.",
            "type": "string",
            "minLength": 3,
            "maxLength": 4,
            "example": "977"
          },
          "cardFunction": {
            "$ref": "#/components/schemas/CardFunction"
          },
          "cardholderName": {
            "description": "Name of the cardholder. Note - Only supported with request payload.",
            "type": "string",
            "maxLength": 96,
            "example": "John Doe"
          },
          "bin": {
            "description": "The payment card BIN.",
            "type": "string",
            "example": "403587"
          },
          "last4": {
            "description": "The last 4 numbers of a payment card.",
            "type": "string",
            "example": "4977"
          },
          "brand": {
            "type": "string",
            "example": "VISA",
            "description": "Required only if using dual branded card."
          }
        },
        "example": {
          "number": "5424180279791732",
          "expiryDate": {
            "month": "12",
            "year": "25"
          },
          "securityCode": "977"
        }
      },
      "NetworkToken": {
        "description": "Network Token Model",
        "required": [
          "value",
          "expiryMonth",
          "expiryYear"
        ],
        "properties": {
          "value": {
            "description": "Token value",
            "type": "string",
            "pattern": "[0-9]{13,19}",
            "example": "2343446334644554"
          },
          "expiryMonth": {
            "description": "Month of the token expiration date in MM format.",
            "type": "string",
            "pattern": "^(0[1-9]|1[012])$",
            "example": "03"
          },
          "expiryYear": {
            "description": "Year of the card expiration date in YY format.",
            "type": "string",
            "pattern": "^([0-9]{2})$",
            "example": "24"
          },
          "cardLast4": {
            "description": "Last four digits of Card number.",
            "maxLength": 4,
            "type": "string",
            "example": "1234"
          },
          "brand": {
            "description": "Card brand.",
            "type": "string",
            "enum": [
              "AMEX",
              "DINERS/DISCOVER",
              "EFTPOS",
              "JCB",
              "MAESTRO",
              "MASTERCARD",
              "RUPAY",
              "VISA"
            ],
            "example": "VISA"
          },
          "cryptogram": {
            "description": "Cryptogram value.",
            "type": "string",
            "example": "AgAAAAADo8FZTI0AmJbMgyUAAAA="
          },
          "authIndicator": {
            "description": "Authorization Indicator.",
            "type": "string",
            "enum": [
              "P",
              "T"
            ],
            "example": "P"
          },
          "tokenEligible": {
            "description": "Token Assurance Method Value determines the confidence level of the payment token to PAN/cardholder binding and it will be provided by the token service provider.",
            "type": "string",
            "example": "AY"
          }
        }
      },
      "AuthenticationResult": {
        "description": "Submit the result of 3DS authentication managed outside of the gateway. An AuthenticationResult should not be submitted within the same request as an AuthenticationRequest. Abstract class, do not use this class directly, use one of its children.",
        "required": [
          "authenticationType"
        ],
        "discriminator": {
          "propertyName": "authenticationType"
        },
        "properties": {
          "authenticationType": {
            "description": "Specifies the version of 3DS to be used where authentication was managed outside of the gateway.",
            "type": "string",
            "example": "Secure3DAuthenticationResult"
          }
        },
        "example": {
          "authenticationType": "Secure3DAuthenticationResult"
        }
      },
      "Secure3D21AuthenticationResult": {
        "description": "Submit the result of the authentication managed outside of the gateway for a 3-D Secure 2.x scheme. For more convenient usage without implementing 3-D Secure yourself see \"authenticationRequest\" section. DEPRECATED - use Secure3DAuthenticationResult instead",
        "allOf": [
          {
            "$ref": "#/components/schemas/AuthenticationResult"
          },
          {
            "type": "object",
            "properties": {
              "cavv": {
                "description": "The Cardholder Authentication Verification Value (CAVV) is a cryptographic value derived by the issuer during payment authentication that can provide evidence of the results of payment authentication during an online purchase.",
                "type": "string",
                "minLength": 20,
                "maxLength": 32,
                "example": "AAABCZIhcQAAAABZlyFxAAAAAAA"
              },
              "xid": {
                "description": "The transaction identifier (XID) is a unique tracking number set by the merchant.",
                "type": "string",
                "minLength": 20,
                "maxLength": 32,
                "example": "MfhxI43NrkuWQYLCoRWitYRDMYo"
              },
              "transactionId": {
                "description": "The response transaction UUID. Only applicable to MasterCard.",
                "type": "string",
                "example": "f38e6948-5388-41a6-bca4-b49723c19437"
              },
              "authenticationResponse": {
                "description": "The result of authentication attempt returned by the 3D Secure authentication process (PaRes).",
                "type": "string",
                "enum": [
                  "A",
                  "N",
                  "U",
                  "Y",
                  "C",
                  "R"
                ],
                "default": "Y",
                "example": "A"
              },
              "transactionStatus": {
                "description": "The transaction status as returned by the 3D Secure authentication process.",
                "type": "string",
                "enum": [
                  "A",
                  "N",
                  "U",
                  "Y",
                  "C",
                  "R"
                ],
                "example": "A"
              }
            }
          }
        ],
        "example": {
          "requestType": "Secure3D21AuthenticationResult",
          "cavv": "AAABCZIhcQAAAABZlyFxAAAAAAA",
          "xid": "MfhxI43NrkuWQYLCoRWitYRDMYo",
          "transactionId": "f38e6948-5388-41a6-bca4-b49723c19437",
          "authenticationResponse": "Y",
          "transactionStatus": "Y"
        },
        "deprecated": true
      },
      "Secure3DAuthenticationResult": {
        "description": "Submit the result of the authentication managed outside of the gateway for a 3-D Secure 2.x scheme. For more convenient usage without implementing 3-D Secure yourself see \"authenticationRequest\" section.",
        "allOf": [
          {
            "$ref": "#/components/schemas/AuthenticationResult"
          },
          {
            "type": "object",
            "properties": {
              "cavv": {
                "description": "The Cardholder Authentication Verification Value (CAVV) is a cryptographic value derived by the issuer during payment authentication that can provide evidence of the results of payment authentication during an online purchase.",
                "type": "string",
                "minLength": 20,
                "maxLength": 32,
                "example": "AAABCZIhcQAAAABZlyFxAAAAAAA"
              },
              "xid": {
                "description": "The transaction identifier (XID) is a unique tracking number set by the merchant.",
                "type": "string",
                "minLength": 20,
                "maxLength": 32,
                "example": "MfhxI43NrkuWQYLCoRWitYRDMYo"
              },
              "dsTransactionId": {
                "description": "The response transaction UUID from the DS (directory server)",
                "type": "string",
                "example": "f38e6948-5388-41a6-bca4-b49723c19437"
              },
              "authenticationResponse": {
                "description": "The result of authentication attempt returned by the 3D Secure authentication process (ARes).",
                "type": "string",
                "enum": [
                  "A",
                  "N",
                  "U",
                  "Y",
                  "C",
                  "R"
                ],
                "example": "A"
              },
              "transactionStatus": {
                "description": "The transaction status as returned by the 3D Secure authentication process. (CRes)",
                "type": "string",
                "enum": [
                  "A",
                  "N",
                  "U",
                  "Y",
                  "C",
                  "R"
                ],
                "example": "A"
              },
              "messageCategory": {
                "description": "Indicates the message category of 3d secure authentication version 2.X. 01 = Payment Authentication 02 = Non-Payment Authentication 80 = Mastercard Data Only\n",
                "type": "string",
                "enum": [
                  "01",
                  "02",
                  "80"
                ],
                "example": "01"
              }
            }
          }
        ],
        "example": {
          "requestType": "Secure3DAuthenticationResult",
          "cavv": "AAABCZIhcQAAAABZlyFxAAAAAAA",
          "xid": "MfhxI43NrkuWQYLCoRWitYRDMYo",
          "dsTransactionId": "f38e6948-5388-41a6-bca4-b49723c19437",
          "transactionStatus": "Y",
          "messageCategory": "01"
        }
      },
      "Secure3D21AuthenticationRequest": {
        "description": "Request authentication of the payment card using the 3DS 2.x URL redirect scheme. DEPRECATED - use Secure3DAuthenticationRequest instead",
        "allOf": [
          {
            "$ref": "#/components/schemas/AuthenticationRequest"
          },
          {
            "type": "object",
            "properties": {
              "termURL": {
                "description": "The result of the authentication will be sent to this URL. If not provided, a term URL will be dynamically generated. Note this must be a valid URL (special characters should be URL-encoded).",
                "type": "string",
                "maxLength": 2048,
                "example": "https://www.mywebshop.com/process3dSecure"
              },
              "methodNotificationURL": {
                "description": "The 3DS method iframe and transaction ID will be sent here. Note this must be a valid URL (special characters should be URL-encoded).",
                "type": "string",
                "maxLength": 2048,
                "example": "https://www.mywebshop.com/process3dSecureMethodNotification?transactionReferenceNumber=ffffffff-ba0b-539f-8000-016b2343ad7e"
              },
              "challengeIndicator": {
                "description": "Indicates whether or not a challenge should be performed. 01 = No preference (You have no preference whether a challenge should be performed. This is the default value) 02 = No challenge requested (You prefer that no challenge should be performed) 03 = Challenge requested: 3DS Requestor Preference (You prefer that a challenge should be performed) 04 = Challenge requested: Mandate (There are local or regional mandates that mean that a challenge must be performed) The following are applicable only for 3DS 2.2 protocol. 05 = No challenge requested (transactional risk analysis is already performed) 06 = No challenge requested (Data share only) 07 = No challenge requested (strong consumer authentication is already performed) 08 = No challenge requested (utilise whitelist exemption if no challenge required) 09 = Challenge requested (whitelist prompt requested if challenge required)\n",
                "type": "string",
                "enum": [
                  "01",
                  "02",
                  "03",
                  "04",
                  "05",
                  "06",
                  "07",
                  "08",
                  "09"
                ],
                "default": "01",
                "example": "01"
              },
              "challengeWindowSize": {
                "description": "Defines the size of the challenge window displayed to customers during authentication. 01 = 250 x 400 02 = 390 x 400 03 = 500 x 600 04 = 600 x 400 05 = Full screen\n",
                "type": "string",
                "enum": [
                  "01",
                  "02",
                  "03",
                  "04",
                  "05"
                ],
                "example": "01"
              },
              "browserJavaScriptEnabled": {
                "description": "Indicates if the browser issuing the request is capable of performing JavaScript.",
                "type": "boolean",
                "nullable": true,
                "example": true
              },
              "browserJavaEnabled": {
                "type": "boolean",
                "nullable": true,
                "example": false,
                "description": "Boolean that represents the ability of the cardholder browser to execute Java (required for 2.1, mandatory for 2.2 when browserjavaScriptEnabled=true)> ATTENTION - it is stronly recommended to be set (but optional at the moment for backward compatibility)"
              },
              "authenticationIndicator": {
                "description": "Provides additional information to the ACS to determine the best approach for handling an authentication request. 01 = Payment transaction 02 = Recurring transaction 03 = Installment transaction 04 = Add card 05 = Maintain card 06 = Card holder verification as part of EMV token ID and Value\n",
                "type": "string",
                "enum": [
                  "01",
                  "02",
                  "03",
                  "04",
                  "05",
                  "06"
                ],
                "default": "01",
                "example": "01"
              },
              "secure3DDeviceChannel": {
                "description": "02 = BRW 03 = 3RI\n",
                "type": "string",
                "enum": [
                  "02",
                  "03"
                ],
                "nullable": true,
                "example": "02"
              },
              "secure3DThreeRIIndicator": {
                "description": "01 = Recurring transaction 02 = Instalment transaction 03 = Add card 04 = Maintain card information 05 = Account verification 06 = Split/delayed shipment 07 = Top-up 08 = Mail Order 09 = Telephone Order 10 = Whitelist status check 11 = Other payment\n",
                "type": "string",
                "enum": [
                  "01",
                  "02",
                  "03",
                  "04",
                  "05",
                  "06",
                  "07",
                  "08",
                  "09",
                  "10",
                  "11"
                ],
                "nullable": true,
                "example": "01"
              },
              "recurringExpiry": {
                "description": "Date after which no further authorisations shall be performed.",
                "pattern": "^([0-9]{4})(1[0-2]|0[1-9])(3[01]|0[1-9]|[12][0-9])$",
                "type": "string",
                "nullable": true,
                "example": "20210819"
              },
              "recurringFrequency": {
                "description": "Indicates the minimum number of days between authorisations.",
                "type": "integer",
                "format": "int32",
                "minimum": 1,
                "maximum": 9999,
                "nullable": true,
                "example": 30
              },
              "cardHolderBrowserParams": {
                "description": "The browser parameters of the cardholder",
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/CardholderBrowserParameters"
                  },
                  {
                    "type": "object"
                  }
                ]
              }
            }
          }
        ],
        "example": {
          "authenticationType": "Secure3D21AuthenticationRequest",
          "termURL": "https://www.mywebshop.com/process3dSecure",
          "methodNotificationURL": "https://www.mywebshop.com/process3dSecureMethodNotification?transactionReferenceNumber=ffffffff-ba0b-539f-8000-016b2343ad7e",
          "challengeIndicator": "01",
          "challengeWindowSize": "01",
          "browserJavaScriptEnabled": "true",
          "browserJavaEnabled": "false",
          "secure3DDeviceChannel": "02",
          "secure3DThreeRIIndicator": "01",
          "authenticationIndicator": "01",
          "recurringExpiry": "20210804",
          "recurringFrequency": 30,
          "cardHolderBrowserParams": {
            "browserAcceptHeaders": "Accept: text/html, application/xhtml+xml, application/xml;q=0.9, image/webp, */*;q=0.8",
            "browserIP": "127.0.0.1",
            "browserLanguage": "es-419",
            "browserUserAgent": "Lynx/2.8.4rel.1 libwww-FM/2.14 SSL-MM/1.4.1 OpenSSL/0.9.6c"
          }
        },
        "deprecated": true
      },
      "Secure3DAuthenticationRequest": {
        "description": "Request authentication of the payment card using the 3DS 2.x URL redirect scheme.",
        "allOf": [
          {
            "$ref": "#/components/schemas/AuthenticationRequest"
          },
          {
            "type": "object",
            "required": [
              "termURL",
              "methodNotificationURL"
            ],
            "properties": {
              "termURL": {
                "description": "The result of the authentication will be sent to this URL. If not provided, a term URL will be dynamically generated. Note this must be a valid URL (special characters should be URL-encoded).",
                "type": "string",
                "maxLength": 2048,
                "example": "https://www.mywebshop.com/process3dSecure"
              },
              "methodNotificationURL": {
                "description": "The 3DS method iframe and transaction ID will be sent here. Note this must be a valid URL (special characters should be URL-encoded).",
                "type": "string",
                "maxLength": 2048,
                "example": "https://www.mywebshop.com/process3dSecureMethodNotification?transactionReferenceNumber=ffffffff-ba0b-539f-8000-016b2343ad7e"
              },
              "challengeIndicator": {
                "description": "Indicates whether or not a challenge should be performed. 01 = No preference (You have no preference whether a challenge should be performed. This is the default value) 02 = No challenge requested (You prefer that no challenge should be performed) 03 = Challenge requested: 3DS Requestor Preference (You prefer that a challenge should be performed) 04 = Challenge requested: Mandate (There are local or regional mandates that mean that a challenge must be performed) The following are applicable only for 3DS 2.2 protocol. 05 = No challenge requested (transactional risk analysis is already performed) 06 = No challenge requested (Data share only) 07 = No challenge requested (strong consumer authentication is already performed) 08 = No challenge requested (utilise whitelist exemption if no challenge required) 09 = Challenge requested (whitelist prompt requested if challenge required)\n",
                "type": "string",
                "enum": [
                  "01",
                  "02",
                  "03",
                  "04",
                  "05",
                  "06",
                  "07",
                  "08",
                  "09"
                ],
                "default": "01",
                "example": "01"
              },
              "messageCategory": {
                "description": "Indicates the message category of 3d secure authentication version 2.X. 01 = Payment Authentication 02 = Non-Payment Authentication 80 = Mastercard Data Only\n",
                "type": "string",
                "enum": [
                  "01",
                  "02",
                  "80"
                ],
                "example": "01"
              },
              "challengeWindowSize": {
                "description": "Defines the size of the challenge window displayed to customers during authentication. 01 = 250 x 400 02 = 390 x 400 03 = 500 x 600 04 = 600 x 400 05 = Full screen\n",
                "type": "string",
                "enum": [
                  "01",
                  "02",
                  "03",
                  "04",
                  "05"
                ],
                "example": "01"
              },
              "browserJavaScriptEnabled": {
                "description": "Indicates if the browser issuing the request is capable of performing JavaScript.",
                "type": "boolean",
                "nullable": true,
                "example": true
              },
              "browserJavaEnabled": {
                "type": "boolean",
                "nullable": true,
                "example": false,
                "description": "Boolean that represents the ability of the cardholder browser to execute Java (required for 2.1, mandatory for 2.2 when browserjavaScriptEnabled=true)> ATTENTION - it is stronly recommended to be set (but optional at the moment for backward compatibility)"
              },
              "secure3DDeviceChannel": {
                "description": "02 = BRW 03 = 3RI\n",
                "type": "string",
                "enum": [
                  "02",
                  "03"
                ],
                "nullable": true,
                "example": "02"
              },
              "secure3DThreeRIIndicator": {
                "description": "01 = Recurring transaction 02 = Instalment transaction 03 = Add card 04 = Maintain card information 05 = Account verification 06 = Split/delayed shipment 07 = Top-up 08 = Mail Order 09 = Telephone Order 10 = Whitelist status check 11 = Other payment\n",
                "type": "string",
                "enum": [
                  "01",
                  "02",
                  "03",
                  "04",
                  "05",
                  "06",
                  "07",
                  "08",
                  "09",
                  "10",
                  "11"
                ],
                "nullable": true,
                "example": "01"
              },
              "authenticationIndicator": {
                "description": "Provides additional information to the ACS to determine the best approach for handling an authentication request. 01 = Payment transaction 02 = Recurring transaction 03 = Installment transaction 04 = Add card 05 = Maintain card 06 = Card holder verification as part of EMV token ID and Value\n",
                "type": "string",
                "enum": [
                  "01",
                  "02",
                  "03",
                  "04",
                  "05",
                  "06"
                ],
                "default": "01",
                "example": "01"
              },
              "recurringExpiry": {
                "description": "Date after which no further authorisations shall be performed.",
                "pattern": "^([0-9]{4})(1[0-2]|0[1-9])(3[01]|0[1-9]|[12][0-9])$",
                "type": "string",
                "nullable": true,
                "example": "20210819"
              },
              "recurringFrequency": {
                "description": "Indicates the minimum number of days between authorisations.",
                "type": "integer",
                "format": "int32",
                "minimum": 1,
                "maximum": 9999,
                "nullable": true,
                "example": 30
              },
              "cardHolderBrowserParams": {
                "description": "The browser parameters of the cardholder",
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/CardholderBrowserParameters"
                  },
                  {
                    "type": "object"
                  }
                ]
              },
              "decoupledAuthenticationParams": {
                "description": "Parameters needed for Decoupled Authentication",
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/DecoupledAuthenticationParameters"
                  },
                  {
                    "type": "object"
                  }
                ]
              },
              "skipTRA": {
                "$ref": "#/components/schemas/SkipTRA"
              }
            }
          }
        ],
        "example": {
          "authenticationType": "Secure3DAuthenticationRequest",
          "termURL": "https://www.mywebshop.com/process3dSecure",
          "methodNotificationURL": "https://www.mywebshop.com/process3dSecureMethodNotification?transactionReferenceNumber=ffffffff-ba0b-539f-8000-016b2343ad7e",
          "challengeIndicator": "01",
          "challengeWindowSize": "01",
          "browserJavaScriptEnabled": "true",
          "browserJavaEnabled": "false",
          "secure3DDeviceChannel": "02",
          "secure3DThreeRIIndicator": "01",
          "authenticationIndicator": "01",
          "recurringExpiry": "20210804",
          "recurringFrequency": 30,
          "cardHolderBrowserParams": {
            "browserAcceptHeaders": "Accept: text/html, application/xhtml+xml, application/xml;q=0.9, image/webp, */*;q=0.8",
            "browserIP": "127.0.0.1",
            "browserLanguage": "es-419",
            "browserUserAgent": "Lynx/2.8.4rel.1 libwww-FM/2.14 SSL-MM/1.4.1 OpenSSL/0.9.6c"
          },
          "decoupledAuthenticationParams": {
            "decMaxTime": 10,
            "decReqInd": "Y"
          }
        }
      },
      "AuthenticationRequest": {
        "description": "Request authentication of the payment card to verify the cardholder and be eligible for liability shift. An AuthenticationRequest should not be submitted with in the same request as an AuthenticationResult. Abstract class, do not use this class directly, use one of its children.",
        "required": [
          "authenticationType"
        ],
        "discriminator": {
          "propertyName": "authenticationType"
        },
        "properties": {
          "authenticationType": {
            "description": "Indicates what kind of authentication scheme the merchant wants to use on the card.",
            "type": "string"
          }
        }
      },
      "Secure3DAuthenticationResponse": {
        "description": "Encapsulates 3DS authentication details in transaction responses.",
        "properties": {
          "type": {
            "description": "The type of authentication.",
            "type": "string",
            "enum": [
              "3D_SECURE"
            ],
            "example": "3D_SECURE"
          },
          "version": {
            "description": "The version of 3DS used to authenticate.",
            "type": "string",
            "enum": [
              "2.1",
              "2.2"
            ],
            "example": "2.1"
          },
          "params": {
            "description": "Additional parameters for authentication redirect.",
            "type": "object",
            "properties": {
              "payerAuthenticationRequest": {
                "description": "Message sent from merchant server to authenticate the cardholder.",
                "type": "string",
                "example": "c7fb83b8ag...73t4a827t4af8738a"
              },
              "termURL": {
                "description": "Terminal URL for processing request.",
                "type": "string",
                "maxLength": 2048,
                "example": "https://api.example.com/redirectToAcs"
              },
              "merchantData": {
                "description": "Formatted string encoding transaction time, order ID, and return URL data.",
                "type": "string",
                "example": "MD123...sdfk"
              },
              "acsURL": {
                "description": "The URL for the authentication redirect for the merchant.",
                "type": "string",
                "example": "https://3ds-acs.test.modirum.com/mdpayacs/pareq"
              },
              "cReq": {
                "description": "The CReq message initiates cardholder interaction in a 3DS 2.x challenge flow and carries authentication data from the cardholder.",
                "type": "string",
                "example": "ewogICAiYWNzVHJhbnNJRCIgOiAiMDAwMDAwMDAtMDAwNS01YTVhLTgwMDAtMDE2ZmE1NTYzODMyIiwKICAgImNoYWxsZW5nZVdpbmRvd1NpemUiIDogIjAzIiwKICAgIm1lc3NhZ2VUeXBlIiA6ICJDUmVxIiwKICAgIm1lc3NhZ2VWZXJzaW9uIiA6ICIyLjEuMCIsCiAgICJ0aHJlZURTU2VydmVyVHJhbnNJRCIgOiAiZGVmOWZiZDgtZjkzNS01YzcyLTgwMDAtMDAwMDAwMDgyOWVkIgp9"
              },
              "sessionData": {
                "description": "Customer web browser session data.",
                "type": "string",
                "example": "50F2156E03083CA665BCB4.."
              }
            }
          },
          "secure3dMethod": {
            "description": "Encapsulates the 3DS method form and unique transaction identifier.",
            "type": "object",
            "properties": {
              "methodForm": {
                "description": "An iframe to be hidden in the browser used to collect browser data for the issuers. This information adds to the overall consumer profile and helps in identifying potentially fraudulent transactions.",
                "type": "string",
                "example": "&lt;!DOCTYPE iframe SYSTEM \"about:legacy-compat\"&gt; &lt;iframe id=\"tdsMmethodTgtFrame\" name=\"tdsMmethodTgtFrame\"\n         style=\"width: 1px; height: 1px; display: none;\" src=\"javascript:false;\" xmlns=\"http://www.w3.org/1999/xhtml\"&gt;\n&lt;!--.--&gt; &lt;/iframe&gt;&lt;form id=\"tdsMmethodForm\" name=\"tdsMmethodForm\"\n         action=\"https://localhost.modirum.com:8543/dstests/ACSEmu2\" method=\"post\"\n         target=\"tdsMmethodTgtFrame\" xmlns=\"http://www.w3.org/1999/xhtml\"&gt; &lt;input type=\"hidden\" name=\"3DSMethodData\"\n         value=\"eyAidGhyZWVEU1NlcnZlclRyYW5zSUQiIDogIjAwMDAwMDAwLTU2NzYtNTY2My04MDAwLTAwMDAw\n&amp;#10;MDAwNDFhOSIsICJ0aHJlZURTTWV0aG9kTm90aWZpY2F0aW9uVVJMIiA6ICJodHRwczovL2xvY\n         2Fs&amp;#10;aG9zdC5tb2RpcnVtLmNvbTo4NTQzL21kcGF5bXBpL01lcmNoYW50U2VydmVyP21uPVkmdHhpZD0x\n&amp;#10;NjgwOSZkaWdlc3Q9aSUyQnhhUEF5NWFOcVJRbllqNmozbWFDZlFJbTdFdjJYTmkwNn\n         h6YmZNJTJG&amp;#10;R3MlM0QiIH0\"/&gt; &lt;input type=\"hidden\" name=\"threeDSMethodData\"\n         value=\"eyAidGhyZWVEU1NlcnZlclRyYW5zSUQiIDogIjAwMDAwMDAwLTU2NzYtNTY2My04MDAwLTAwMDA\n         w&amp;#10;MDAwNDFhOSIsICJ0aHJlZURTTWV0aG9kTm90aWZpY2F0aW9uVVJMIiA6ICJodHRwczovL2xvY\n         2Fs&amp;#10;aG9zdC5tb2RpcnVtLmNvbTo4NTQzL21kcGF5bXBpL01lcmNoYW50U2VydmVyP21uPVkmd\n         HhpZD0x&amp;#10;NjgwOSZkaWdlc3Q9aSUyQnhhUEF5NWFOcVJRbllqNmozbWFDZlFJbTdFdjJYTmkwNn\n         h6YmZNJTJG&amp;#10;R3MlM0QiIH0\"/&gt;\n&lt;/form&gt;&lt;script type=\"text/javascript\" xmlns=\"http://www.w3.org/1999/xhtml\"&gt;\n         document.getElementById(\"tdsMmethodForm\").submit(); &lt;/script&gt;"
              },
              "secure3dTransId": {
                "description": "A unique transaction identifier supplied by the ACS.",
                "type": "string",
                "example": "3ac7caa7-aa42-2663-791b-2ac05a542c4a"
              }
            }
          }
        },
        "example": {
          "type": "3D_SECURE",
          "version": "2.1",
          "redirectURL": "http://pay.issuer-bank.com/sessionID=123&sharedKey=456",
          "secure3dMethod": {
            "methodForm": "&lt;!DOCTYPE iframe SYSTEM \"about:legacy-compat\"&gt; &lt;iframe id=\"tdsMmethodTgtFrame\" name=\"tdsMmethodTgtFrame\"\n                         style=\"width: 1px; height: 1px; display: none;\" src=\"javascript:false;\" xmlns=\"http://www.w3.org/1999/xhtml\"&gt;\n                &lt;!--.--&gt; &lt;/iframe&gt;&lt;form id=\"tdsMmethodForm\" name=\"tdsMmethodForm\"\n                         action=\"https://localhost.modirum.com:8543/dstests/ACSEmu2\" method=\"post\"\n                         target=\"tdsMmethodTgtFrame\" xmlns=\"http://www.w3.org/1999/xhtml\"&gt; &lt;input type=\"hidden\" name=\"3DSMethodData\"\n                         value=\"eyAidGhyZWVEU1NlcnZlclRyYW5zSUQiIDogIjAwMDAwMDAwLTU2NzYtNTY2My04MDAwLTAwMDAw\n                &amp;#10;MDAwNDFhOSIsICJ0aHJlZURTTWV0aG9kTm90aWZpY2F0aW9uVVJMIiA6ICJodHRwczovL2xvY\n                         2Fs&amp;#10;aG9zdC5tb2RpcnVtLmNvbTo4NTQzL21kcGF5bXBpL01lcmNoYW50U2VydmVyP21uPVkmdHhpZD0x\n                &amp;#10;NjgwOSZkaWdlc3Q9aSUyQnhhUEF5NWFOcVJRbllqNmozbWFDZlFJbTdFdjJYTmkwNn\n                         h6YmZNJTJG&amp;#10;R3MlM0QiIH0\"/&gt; &lt;input type=\"hidden\" name=\"threeDSMethodData\"\n                         value=\"eyAidGhyZWVEU1NlcnZlclRyYW5zSUQiIDogIjAwMDAwMDAwLTU2NzYtNTY2My04MDAwLTAwMDA\n                         w&amp;#10;MDAwNDFhOSIsICJ0aHJlZURTTWV0aG9kTm90aWZpY2F0aW9uVVJMIiA6ICJodHRwczovL2xvY\n                         2Fs&amp;#10;aG9zdC5tb2RpcnVtLmNvbTo4NTQzL21kcGF5bXBpL01lcmNoYW50U2VydmVyP21uPVkmd\n                         HhpZD0x&amp;#10;NjgwOSZkaWdlc3Q9aSUyQnhhUEF5NWFOcVJRbllqNmozbWFDZlFJbTdFdjJYTmkwNn\n                         h6YmZNJTJG&amp;#10;R3MlM0QiIH0\"/&gt;\n                &lt;/form&gt;&lt;script type=\"text/javascript\" xmlns=\"http://www.w3.org/1999/xhtml\"&gt;\n                         document.getElementById(\"tdsMmethodForm\").submit(); &lt;/script&gt;"
          },
          "secure3dTransId": "3ac7caa7-aa42-2663-791b-2ac05a542c4a"
        }
      },
      "Expiration": {
        "description": "Required for normal transactions except for payment with 'RECURRING' flags.",
        "required": [
          "month",
          "year"
        ],
        "properties": {
          "month": {
            "description": "Month of the card expiration date in MM format.",
            "type": "string",
            "pattern": "^(0[1-9]|1[012])$",
            "example": "03"
          },
          "year": {
            "description": "Year of the card expiration date in YY format.",
            "type": "string",
            "pattern": "^([0-9]{2})$",
            "example": "21"
          }
        },
        "example": {
          "month": "03",
          "year": "22"
        }
      },
      "AVSResponse": {
        "description": "The processor address validation response for compliance.",
        "properties": {
          "streetMatch": {
            "description": "Response if street matches that on file.",
            "type": "string",
            "enum": [
              "Y",
              "N",
              "NO_INPUT_DATA",
              "NOT_CHECKED"
            ],
            "example": "Y"
          },
          "postalCodeMatch": {
            "description": "Response if postal code matches that on file.",
            "type": "string",
            "enum": [
              "Y",
              "N",
              "NO_INPUT_DATA",
              "NOT_CHECKED"
            ],
            "example": "N"
          },
          "associationAvsResponse": {
            "description": "The raw address verification response code returned by issuer. Please refer to response codes section in developer portal for more info.",
            "type": "string",
            "example": "Y"
          }
        },
        "example": {
          "streetMatch": "Y",
          "postalCodeMatch": "N",
          "associationAvsResponse": "Y"
        }
      },
      "CardholderInfoResponse": {
        "description": "The processor Cardholder Info Response.",
        "properties": {
          "postalCodeOrZipMatch": {
            "description": "Response if card holder postal code matches that on file.",
            "type": "string",
            "example": "Y"
          },
          "addressMatch": {
            "description": "Response if card holder address matches that on file.",
            "type": "string",
            "example": "RETRY"
          },
          "nameMatch": {
            "description": "Response if card holder name matches that on file.",
            "type": "string",
            "example": "SERVICE_NOT_ALLOWED"
          },
          "telephoneMatch": {
            "description": "Response if card holder telephone matches that on file.",
            "type": "string",
            "example": "NOT_CHECKED"
          },
          "emailMatch": {
            "description": "Response if card holder email matches that on file.",
            "type": "string",
            "example": "N"
          },
          "associationCardholderInfoResponse": {
            "description": "Raw cardholder info response from AMEX with no mapping.",
            "type": "string",
            "example": "YNUSR"
          }
        }
      },
      "DecoupledAuthenticationParameters": {
        "description": "Contains the decoupled authentication parameters",
        "required": [
          "decMaxTime",
          "decReqInd"
        ],
        "example": {
          "decMaxTime": 10,
          "decReqInd": "Y"
        },
        "properties": {
          "decMaxTime": {
            "description": "Indicates the maximum amount of time that the 3DS Requestor will wait for an ACS to provide the results of a Decoupled Authentication transaction (in minutes).",
            "type": "integer",
            "format": "int32",
            "minimum": 1,
            "maximum": 10080,
            "example": 10
          },
          "decReqInd": {
            "description": "Indicates whether the 3DS Requestor requests the ACS to utilise Decoupled Authentication and agrees to utilise Decoupled Authentication if the ACS confirms its use. 'Y' = Decoupled Authentication is supported and preferred if challenge is necessary. 'N' = Do not use Decoupled Authentication.\n",
            "type": "string",
            "enum": [
              "Y",
              "N"
            ],
            "example": "Y"
          }
        }
      },
      "CardholderBrowserParameters": {
        "description": "Contains the cardholders browser parameters",
        "example": {
          "browserAcceptHeaders": "Accept: text/html, application/xhtml+xml, application/xml;q=0.9, image/webp, */*;q=0.8",
          "browserIP": "85.117.56.12",
          "browserLanguage": "es-419",
          "browserColorDepth": "32",
          "browserScreenHeight": "1080",
          "browserScreenWidth": "1920",
          "browserTimeZone": "-300",
          "browserUserAgent": "Lynx/2.8.4rel.1 libwww-FM/2.14 SSL-MM/1.4.1 OpenSSL/0.9.6c"
        },
        "properties": {
          "browserAcceptHeaders": {
            "description": "Browser accept headers",
            "type": "string",
            "maxLength": 2048,
            "example": "Accept: text/html, application/xhtml+xml, application/xml;q=0.9, image/webp, */*;q=0.8"
          },
          "browserIP": {
            "description": "Browser IP address (IPv4 or IPv6)",
            "type": "string",
            "maxLength": 45,
            "example": "192.168.2.1"
          },
          "browserLanguage": {
            "description": "Value representing the browser language as defined in IETF BCP47",
            "type": "string",
            "maxLength": 8,
            "example": "es-419"
          },
          "browserColorDepth": {
            "description": "Value representing the bit depth of the colour palette for displaying images, in bits per pixel.",
            "type": "string",
            "enum": [
              "1",
              "4",
              "8",
              "15",
              "16",
              "24",
              "32",
              "48"
            ],
            "example": "24"
          },
          "browserScreenHeight": {
            "description": "Total height of the Cardholder’s screen in pixels",
            "type": "string",
            "maxLength": 6,
            "pattern": "^([1-9][0-9]{0,5})$",
            "example": "1080"
          },
          "browserScreenWidth": {
            "description": "Total width of the cardholder’s screen in pixels.",
            "type": "string",
            "maxLength": 6,
            "pattern": "^([1-9][0-9]{0,5})$",
            "example": "1920"
          },
          "browserTimeZone": {
            "description": "Browser time zone (zone offset value in minutes).",
            "type": "string",
            "maxLength": 5,
            "example": "-300"
          },
          "browserUserAgent": {
            "description": "The browsers user agent string",
            "type": "string",
            "maxLength": 2048,
            "example": "Lynx/2.8.4rel.1 libwww-FM/2.14 SSL-MM/1.4.1 OpenSSL/0.9.6c"
          }
        }
      },
      "Address": {
        "description": "Address information that is passed to the issuer (it may appear on the cardholder’s statement) or if merchant wants to pass information that differs from the information stored on our master file.",
        "properties": {
          "company": {
            "description": "Company name associated with the address.",
            "type": "string",
            "maxLength": 50,
            "example": "Test Company"
          },
          "address1": {
            "description": "First line of the street address.",
            "type": "string",
            "maxLength": 50,
            "example": "123 Main St."
          },
          "address2": {
            "description": "Second line of the street address.",
            "type": "string",
            "maxLength": 50,
            "example": "Suite 123"
          },
          "city": {
            "description": "City or locality.",
            "type": "string",
            "maxLength": 50,
            "example": "Sandy Springs"
          },
          "region": {
            "description": "State or province.",
            "type": "string",
            "maxLength": 20,
            "example": "Georgia"
          },
          "postalCode": {
            "description": "ZIP code or postal code.",
            "type": "string",
            "maxLength": 12,
            "example": "30303"
          },
          "country": {
            "description": "ISO-3166-1  ALPHA-2, ALPHA-3, numeric or full country name. In the case of PaySecure endpoints, pass the country code in an ISO format.",
            "type": "string",
            "maxLength": 32,
            "example": "USA"
          }
        },
        "example": {
          "address1": "123 Main St.",
          "city": "Sandy Springs",
          "region": "Georgia",
          "postalCode": "30303",
          "country": "USA"
        }
      },
      "Receipt": {
        "description": "Provides POS receipt data.",
        "type": "object",
        "required": [
          "type",
          "data"
        ],
        "properties": {
          "type": {
            "description": "Defines the consumer of the receipt (e.g. cardholder, merchant).",
            "type": "string",
            "enum": [
              "cardholder",
              "merchant"
            ],
            "example": "merchant"
          },
          "data": {
            "description": "Array of formatted lines that represents the actual receipt data, that can be printed out.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReceiptLine"
            },
            "example": [
              {
                "endOfLine": true,
                "text": "          MerchantName          "
              },
              {
                "endOfLine": true,
                "text": "--------------------------------"
              }
            ]
          }
        },
        "example": {
          "type": "cardholder",
          "data": [
            {
              "endOfLine": true,
              "text": "        Example Merchant        "
            },
            {
              "endOfLine": true,
              "text": "--------------------------------"
            },
            {
              "endOfLine": true,
              "text": "       Amount: 45.00 EURO       "
            }
          ]
        }
      },
      "ReceiptLine": {
        "description": "Represents a line in the receipt response.",
        "type": "object",
        "required": [
          "text"
        ],
        "properties": {
          "endOfLine": {
            "description": "Flag to indicate if the text ends at the end of this receipt line.",
            "type": "boolean",
            "default": true,
            "example": true
          },
          "text": {
            "description": "Text that represents a line of the actual receipt data, that can be printed out.",
            "type": "string",
            "example": "          MerchantName          "
          }
        },
        "example": {
          "endOfLine": true,
          "text": "--------------------------------"
        }
      },
      "StoredCredential": {
        "description": "Object for sending stored credentials.",
        "required": [
          "sequence",
          "scheduled"
        ],
        "properties": {
          "sequence": {
            "description": "Indicates if the transaction is first or subsequent. Valid values are First and 'SUBSEQUENT'.",
            "type": "string",
            "enum": [
              "FIRST",
              "SUBSEQUENT"
            ],
            "example": "FIRST"
          },
          "scheduled": {
            "description": "Indicates if the transaction is scheduled or part of an installment.",
            "type": "boolean",
            "example": true
          },
          "referencedSchemeTransactionId": {
            "description": "The transaction ID received from schemes for the initial transaction. May be required if sequence is 'SUBSEQUENT'.",
            "type": "string",
            "maxLength": 50,
            "example": "019087868716215"
          },
          "initiator": {
            "description": "Indicates whether it is a merchant-initiated or explicitly consented to by card holder. Valid values are 'MERCHANT' and 'CARDHOLDER'.",
            "type": "string",
            "enum": [
              "MERCHANT",
              "CARDHOLDER"
            ],
            "example": "MERCHANT"
          },
          "indicatorSubcategory": {
            "description": "For initiator as CARDHOLDER- CREDENTIAL_ON_FILE_FIRST, CREDENTIAL_ON_FILE_SUBSEQUENT, STANDING_ORDER, SUBSCRIPTION, INSTALLMENT are the valid values of indicatorSubcatogory. |For initiator as MERCHANT- UNSCHEDULED_CREDENTIAL_ON_FILE, STANDING_ORDER, SUBSCRIPTION, INSTALLMENT, PARTIAL_SHIPMENT, DELAYED_CHARGE, NO_SHOW_CHARGE, RESUBMISSION are the valid values as indicatorSubcategory. |Not valid values will be ignored.",
            "type": "string",
            "enum": [
              "CREDENTIAL_ON_FILE_FIRST",
              "CREDENTIAL_ON_FILE_SUBSEQUENT",
              "UNSCHEDULED_CREDENTIAL_ON_FILE",
              "STANDING_ORDER",
              "SUBSCRIPTION",
              "INSTALLMENT",
              "PARTIAL_SHIPMENT",
              "DELAYED_CHARGE",
              "NO_SHOW_CHARGE",
              "RESUBMISSION"
            ],
            "example": "CREDENTIAL_ON_FILE_FIRST"
          }
        },
        "example": {
          "sequence": "SUBSEQUENT",
          "scheduled": false,
          "referencedSchemeTransactionId": "019087868716215",
          "initiator": "CARDHOLDER"
        }
      },
      "PaymentFacilitator": {
        "description": "Payment facilitator details provided by the merchant.",
        "properties": {
          "externalMerchantId": {
            "type": "string",
            "description": "External merchant ID of the payment facilitator.",
            "pattern": "^(?!\\s*$).+",
            "example": "151623999"
          },
          "paymentFacilitatorId": {
            "type": "string",
            "description": "Payment facilitator ID supplied during boarding.",
            "pattern": "[a-zA-Z0-9]{1,11}",
            "example": "\"1234567890\"1"
          },
          "saleOrganizationId": {
            "type": "string",
            "description": "Independent sales organization (ISO) ID provided by Mastercard.",
            "pattern": "\\d{1,11}",
            "example": "13579246801"
          },
          "name": {
            "type": "string",
            "description": "Payment facilitator name.",
            "maxLength": 50,
            "pattern": "^(?!\\s*$).+",
            "example": "First Reseller"
          },
          "subMerchantData": {
            "$ref": "#/components/schemas/SubMerchantData"
          }
        },
        "example": {
          "externalMerchantId": "12345",
          "paymentFacilitatorId": "123123123",
          "saleOrganizationId": "123124214",
          "name": "First Reseller",
          "subMerchantData": {
            "mcc": "1432",
            "legalName": "First Merchant",
            "timezone": "Europe/London",
            "address": {
              "address1": "123 Main St.",
              "city": "Sandy Springs",
              "region": "Georgia",
              "postalCode": "30303",
              "country": "USA"
            },
            "document": {
              "type": "NATIONAL_IDENTITY",
              "number": "12345666544"
            },
            "merchantId": "12435325235"
          }
        }
      },
      "SubMerchantData": {
        "description": "Once sub-merchant element is given, the transaction is considered to be a sub-merchant transaction.",
        "required": [
          "mcc"
        ],
        "properties": {
          "mcc": {
            "type": "string",
            "description": "Merchant category code.",
            "pattern": "[0-9]{4}",
            "example": "7311"
          },
          "legalName": {
            "type": "string",
            "description": "Store legal name.",
            "maxLength": 100,
            "example": "Walmart Inc."
          },
          "email": {
            "type": "string",
            "description": "Sub-merchant email.",
            "maxLength": 254,
            "example": "abcd.1234@fiserv.com"
          },
          "timezone": {
            "type": "string",
            "description": "Timezone.",
            "maxLength": 500,
            "example": "Europe/London"
          },
          "address": {
            "$ref": "#/components/schemas/Address"
          },
          "document": {
            "$ref": "#/components/schemas/Document"
          },
          "merchantId": {
            "type": "string",
            "description": "Sub-merchant ID.",
            "maxLength": 50,
            "example": "987654321"
          }
        },
        "example": {
          "mcc": "7311",
          "legalName": "Walmart Inc.",
          "email": "abcd.1234@fiserv.com",
          "timezone": "Europe/London",
          "address": {
            "address1": "123 Main St.",
            "city": "Sandy Springs",
            "region": "Georgia",
            "postalCode": "30303",
            "country": "USA"
          },
          "document": {
            "type": "NATIONAL_IDENTITY",
            "number": "12345666544"
          },
          "merchantId": "987654321"
        }
      },
      "Document": {
        "description": "Document information.",
        "required": [
          "type",
          "number"
        ],
        "properties": {
          "type": {
            "type": "string",
            "description": "Document type.",
            "enum": [
              "NATIONAL_IDENTITY",
              "SINGLE_TAX_IDENTIFICATION",
              "SINGLE_CODE_OF_LABOR_IDENTIFICATION",
              "BOOK_ENLISTMENT",
              "CIVIC_NOTEBOOK",
              "PASSPORT"
            ],
            "example": "NATIONAL_IDENTITY"
          },
          "number": {
            "type": "string",
            "description": "Document number.",
            "maxLength": 30,
            "pattern": "^(?!\\s*$).+",
            "example": "12345666544"
          }
        },
        "example": {
          "type": "NATIONAL_IDENTITY",
          "number": "12345666544"
        }
      },
      "Dcc": {
        "description": "Request to perform a dynamic pricing exchange rate inquiry.",
        "allOf": [
          {
            "$ref": "#/components/schemas/CurrencyConversion"
          },
          {
            "type": "object",
            "required": [
              "dccApplied"
            ],
            "properties": {
              "dccApplied": {
                "description": "Indicates whether customer agrees with rate to be used.",
                "type": "boolean",
                "example": true
              }
            }
          }
        ],
        "example": {
          "conversionType": "Dcc",
          "inquiryRateId": "123456",
          "dccApplied": true
        }
      },
      "DynamicPricing": {
        "description": "Request to perform a dynamic pricing exchange rate inquiry.",
        "allOf": [
          {
            "$ref": "#/components/schemas/CurrencyConversion"
          },
          {
            "type": "object",
            "required": [
              "foreignCurrency",
              "foreignAmount"
            ],
            "properties": {
              "foreignCurrency": {
                "description": "The currency code to convert for dynamic pricing in ISO 4217 currency code format.",
                "type": "string",
                "pattern": "([A-Z]{3})|([0-9]{3})",
                "example": "978"
              },
              "foreignAmount": {
                "description": "Foreign amount.",
                "type": "string",
                "pattern": "^(?!\\s*$).+",
                "example": "22.52"
              }
            }
          }
        ],
        "example": {
          "conversionType": "DynamicPricing",
          "inquiryRateId": "123456",
          "foreignCurrency": "978",
          "foreignAmount": "22.52"
        }
      },
      "CurrencyConversion": {
        "description": "Currency conversion. Abstract class, do not use this class directly, use one of its children: Dcc, DynamicPricing.",
        "discriminator": {
          "propertyName": "conversionType"
        },
        "required": [
          "conversionType",
          "inquiryRateId"
        ],
        "properties": {
          "conversionType": {
            "description": "Type of currency conversion.",
            "type": "string",
            "example": "Dcc"
          },
          "inquiryRateId": {
            "description": "Inquiry rate id.",
            "type": "string",
            "pattern": "^(?!\\s*$).+",
            "example": "123456"
          }
        },
        "example": {
          "conversionType": "Dcc",
          "inquiryRateId": "123456",
          "dccApplied": true
        }
      },
      "Secure3dResponse": {
        "description": "Contains 3DSecure response code.",
        "properties": {
          "responseCode3dSecure": {
            "description": "Code received after successful payer-auth verification.",
            "type": "string",
            "example": "3"
          },
          "cardholderInfo": {
            "description": "The cardholder's information supplied by the ACS.",
            "type": "string",
            "example": "molestie nunc non blandit massa",
            "maxLength": 128
          }
        },
        "example": {
          "responseCode3dSecure": "3"
        }
      },
      "StandinResponseDetails": {
        "description": "Contains Standin response details.",
        "properties": {
          "secure3DEnrolmentStatus": {
            "description": "Secure 3D Enrolment Status.",
            "type": "string",
            "example": "Y"
          },
          "secure3DECI": {
            "description": "Secure 3D ECI.",
            "type": "string",
            "example": "05"
          },
          "secure3DAuthenticationResponse": {
            "description": "Secure 3D Authentication Response.",
            "type": "string",
            "example": "Y"
          },
          "authenticationValue": {
            "description": "Secure 3D Authentication Value.",
            "type": "string",
            "example": "AAABBgFWUQAAAAEzZ1ZRAAAAAAA="
          },
          "xid": {
            "description": "Secure 3D XID.",
            "type": "string",
            "example": "cb8QZ9mmkTUqreE89RjjjAtpJpg"
          },
          "authenticationAlgorithm": {
            "description": "Secure 3D Authentication Algorithm.",
            "type": "string",
            "example": "2"
          }
        },
        "example": {
          "secure3DEnrolmentStatus": "Y",
          "secure3DECI": "05",
          "secure3DAuthenticationResponse": "Y",
          "authenticationValue": "AAABBgFWUQAAAAEzZ1ZRAAAAAAA=",
          "xID": "cb8QZ9mmkTUqreE89RjjjAtpJpg",
          "authenticationAlgorithm": "2"
        }
      },
      "PaymentDevice": {
        "description": "Information from the payment device including the blob data and its mode of entry.",
        "required": [
          "deviceType",
          "data"
        ],
        "properties": {
          "deviceType": {
            "type": "string",
            "description": "The data format.",
            "enum": [
              "SWIPE"
            ],
            "example": "SWIPE"
          },
          "data": {
            "type": "string",
            "description": "Data from device containing, at a minimum, a transaction-unique key serial number (KSN) and track 2 card data.",
            "pattern": "^(?!\\s*$).+",
            "example": "02A600C0170018008292;5424********1732=1810?*B73CD8C26233D4FFEC5500ED394439D97DDA5F530942D21D0000000000000000000000000000000000000000363434543035353734326299492410027300000260DC03"
          },
          "securityCode": {
            "description": "Card verification value/number.",
            "type": "string",
            "minLength": 3,
            "maxLength": 4,
            "example": "977"
          },
          "cardholderName": {
            "type": "string",
            "description": "Name of cardholder."
          },
          "cardFunction": {
            "$ref": "#/components/schemas/CardFunction"
          },
          "brand": {
            "type": "string",
            "description": "The card brand.",
            "example": "VISA"
          }
        },
        "example": {
          "deviceType": "SWIPE",
          "data": "02A600C0170018008292;5424********1732=1810?*B73CD8C26233D4FFEC5500ED394439D97DDA5F530942D21D0000000000000000000000000000000000000000363434543035353734326299492410027300000260DC03",
          "securityCode": "977"
        }
      },
      "ExchangeRateDetails": {
        "description": "Fields related to Currency Conversion Inquiry.",
        "properties": {
          "inquiryRateId": {
            "description": "Inquiry rate ID.",
            "type": "string",
            "example": "49150"
          },
          "foreignCurrency": {
            "description": "Foreign currency in alphabetic ISO 4217 currency code format.",
            "type": "string",
            "example": "AUD"
          },
          "foreignAmount": {
            "description": "Foreign amount.",
            "type": "string",
            "example": "130.33"
          },
          "exchangeRate": {
            "description": "Exchange rate.",
            "type": "string",
            "example": "1.2968"
          },
          "dccOffered": {
            "description": "Dcc offered.",
            "type": "boolean",
            "example": true
          },
          "exchangeRateSourceTimestamp": {
            "description": "Exchange rate source timestamp. The used format is \"yyyy-MM-dd'T'HH:mm:ss.SSSXXX\"",
            "type": "string",
            "example": "2018-12-05T19:13:00.000Z"
          },
          "expirationTimestamp": {
            "description": "Expiration timestamp. The used format is \"yyyy-MM-dd'T'HH:mm:ss.SSSXXX\"",
            "type": "string",
            "example": "2018-12-05T20:13:00.000Z"
          },
          "marginRatePercentage": {
            "description": "Margin rate percentage.",
            "type": "string",
            "example": "3"
          },
          "exchangeRateSourceName": {
            "description": "Exchange rate source name.",
            "type": "string",
            "example": "REUTERS WHOLESALE INTERBANK"
          }
        }
      },
      "CurrencyConversionResponse": {
        "description": "Currency Conversion Response.",
        "properties": {
          "dccApplied": {
            "description": "Dynamic Currency Conversion Applied.",
            "type": "boolean",
            "example": true
          },
          "exchangeRateDetails": {
            "$ref": "#/components/schemas/ExchangeRateDetails"
          }
        }
      },
      "SkipTRA": {
        "description": "skip TRA exemption for the transaction",
        "type": "boolean",
        "default": false
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```