{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/lemonway/json-schema/lemonway-money-in-cheque-init-output-schema.json",
  "title": "MoneyInChequeInitOutput",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lemonway-moneyins-cheque-api-openapi.yml#/components/schemas/MoneyInChequeInitOutput",
  "type": "object",
  "properties": {
    "transaction": {
      "$ref": "#/$defs/TransactionIn"
    },
    "error": {
      "$ref": "#/$defs/Error"
    }
  },
  "$defs": {
    "BnplInfo": {
      "type": "object",
      "properties": {
        "paymentPlanId": {
          "format": "int64",
          "description": "Payment Plan ID",
          "type": "integer"
        },
        "type": {
          "description": "Payment plan type.",
          "type": "string"
        },
        "secondInstallmentPaymentDate": {
          "description": "Second installment payment date.\nFormat: yyyy-MM-dd",
          "type": "string"
        },
        "deferredPaymentDate": {
          "description": "Deferred payment date.\nFormat: yyyy-MM-dd",
          "type": "string"
        }
      }
    },
    "Card": {
      "type": "object",
      "properties": {
        "id": {
          "format": "int64",
          "description": "",
          "type": "integer"
        },
        "is3DS": {
          "description": "Card with 3-DS authentication",
          "type": "boolean"
        },
        "country": {
          "description": "Card issuing country",
          "type": "string"
        },
        "authorizationNumber": {
          "description": "Authorization number",
          "type": "string"
        },
        "maskedNumber": {
          "description": "Masked card number",
          "type": "string"
        },
        "expiration": {
          "description": "Expiration date (if available)",
          "type": "string"
        },
        "type": {
          "description": "Card type (example: Visa or Mastercard)",
          "type": "string"
        },
        "isRegistered": {
          "description": "Card is registered",
          "type": "boolean"
        },
        "holderName": {
          "description": "Card's holder name",
          "type": "string"
        }
      }
    },
    "Error": {
      "type": "object",
      "properties": {
        "code": {
          "format": "int32",
          "type": "integer"
        },
        "message": {
          "type": "string"
        },
        "psp": {
          "$ref": "#/$defs/PSP"
        }
      }
    },
    "LemonWayCommission": {
      "type": "object",
      "properties": {
        "idp2p": {
          "type": "string"
        },
        "amount": {
          "format": "int32",
          "description": "Amounts are represented as integer in cents (Euro)\nRepresented as an integer in cents (Euro)",
          "type": "integer"
        }
      }
    },
    "PSP": {
      "type": "object",
      "properties": {
        "message": {
          "description": "Get the Error Message from PSP",
          "type": "string"
        }
      }
    },
    "ThreeDs": {
      "type": "object",
      "properties": {
        "threeDSModeRequested": {
          "description": "3DS Exemption Request  \nPossible value:  \n\nNO_PREFERENCE: The issuing Bank can choose to activate or not 3DS v2.",
          "type": "string"
        },
        "threeDSResult": {
          "description": "3DS Authentication Result  \nPossible values:  \n\n- CHALLENGE: 3DS v2 was activated and the card owner was asked to be strongly authenticated.  \n- FRICTIONLESS: 3DS v2 was not activated.  \n- NONE: We could not get the SCA result.",
          "type": "string"
        }
      }
    },
    "TransactionIn": {
      "type": "object",
      "properties": {
        "receiverAccountId": {
          "description": "Credited Account",
          "type": "string"
        },
        "creditAmount": {
          "format": "int32",
          "description": "Credited Amount\nAmounts represented in integer (cents)",
          "type": "integer"
        },
        "scheduledDate": {
          "description": "",
          "type": "string"
        },
        "scheduledNumber": {
          "description": "",
          "type": "string"
        },
        "maskedLabel": {
          "type": "string"
        },
        "PSP": {
          "$ref": "#/$defs/PSP"
        },
        "card": {
          "$ref": "#/$defs/Card"
        },
        "bankStatus": {
          "type": "string"
        },
        "refundAmount": {
          "format": "double",
          "type": "number"
        },
        "bankReference": {
          "description": "Bank reference",
          "type": "string"
        },
        "ChequeSendingAddress_CorporateName": {
          "description": "A specified postal address for the cheque",
          "type": "string"
        },
        "ChequeSendingAddress_Street": {
          "description": "Cheque sending address street name",
          "type": "string"
        },
        "ChequeSendingAddress_City": {
          "description": "Cheque sending address city name",
          "type": "string"
        },
        "ChequeSendingAddress_PostCode": {
          "description": "Cheque sending address post code",
          "type": "string"
        },
        "threeDS": {
          "$ref": "#/$defs/ThreeDs"
        },
        "buyNowPayLaterInfo": {
          "$ref": "#/$defs/BnplInfo"
        },
        "id": {
          "format": "int64",
          "description": "Transaction ID",
          "type": "integer"
        },
        "method": {
          "format": "int32",
          "description": "Payment Method  \n0 Card    \n1 Bank transfer (MoneyIn)     \n3 Bank transfer (MoneyOut)     \n4 P2P    \n13 iDEAL    \n14 SEPA DirectDebit    \n15 Cheque    \n19 Multibanco    \n21 MBWAY    \n30 BNPL  \n35 PayPal\n\n ---\n **Important:** The following services have been discontinued. \n \n16 Neosurf  \n17 Sofort  \n18 PFS Physical Card  \n20 Payshop  \n22 Polish Instant Transfer  \n23 Pagare  \n24 MobilePay\n25 Paytrail\n26 WeChat  \n27 P24  \n28 MoneyIn by TPE  \n29 Trustly",
          "type": "integer"
        },
        "methodDetails": {
          "format": "int32",
          "description": "Payment Method Details\n0 Standard\n1 Pay By Bank<br/>0 = STANDARD.<br/>1 = PAY_BY_BANK.<br/>",
          "enum": [
            0,
            1
          ],
          "type": "integer"
        },
        "date": {
          "format": "int32",
          "description": "Transaction initialization date, UTC Unix timestamp",
          "type": "integer"
        },
        "commissionAmount": {
          "format": "int32",
          "description": "Your fee\nAmounts are given as integer numbers in cents",
          "type": "integer"
        },
        "comment": {
          "description": "Comment",
          "type": "string"
        },
        "status": {
          "format": "int32",
          "description": "**For the following endpoints uses the below status code**   \n  \n/v2/accounts/{accountId}/transactions\n/v2/moneyins\n/v2/moneyins/card/direct\n/v2/moneyins/card/{cardid}/rebill\n/v2/moneyins/card/{cardid}/subscription\n/v2/moneyins/{transactionid}/validate\n/v2/moneyins/sdd/init\n/v2/moneyins/sdd\n/v2/moneyins/{transactionid}/cancel\n/v2/refund/{transactionid}\n/v2/refundcreate/{transactionId}\n            \n0: Success  \n3: Lemonway Error  \n4: Pending  \n6: PSP error  \n7: Cancelled  \n16: Validation pending  \n\n**For the following endpoints uses the below status code**  \n\n/v2/disputes\n/v2/moneyins/bankwire\n/v2/moneyins/card/direct/3dinit\n/v2/moneyouts\n/v2/p2p\n/v2/p2p/{transactionid?}\n            \n0: Waiting for finalization    \n3: Success    \n4: Lemonway Error",
          "type": "integer"
        },
        "executionDate": {
          "format": "int32",
          "description": "Transaction execution date",
          "type": "integer"
        },
        "lemonWayCommission": {
          "$ref": "#/$defs/LemonWayCommission"
        },
        "reference": {
          "description": "Unique ID generated by your server",
          "type": "string"
        },
        "remainingAmount": {
          "format": "int32",
          "type": "integer"
        },
        "substatus": {
          "description": "Is Payment token consumed?",
          "type": "string"
        }
      }
    }
  }
}