{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/helloasso/json-schema/helloasso-hello-asso-api-v5-common-models-statistics-payment-detail-schema.json",
  "title": "HelloAsso.Api.V5.Common.Models.Statistics.PaymentDetail",
  "x-generated": "2026-11-16",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/helloasso-helloasso-openapi.json#/components/schemas/HelloAsso.Api.V5.Common.Models.Statistics.PaymentDetail",
  "type": "object",
  "properties": {
    "cardExpirationDate": {
      "type": [
        "string",
        "null"
      ],
      "description": "Card expiration date (only for card payments)",
      "format": "date-time"
    },
    "order": {
      "$ref": "#/$defs/HelloAsso.Api.V5.Common.Models.Statistics.OrderLight"
    },
    "payer": {
      "$ref": "#/$defs/HelloAsso.Api.V5.Common.Models.Statistics.Payer"
    },
    "items": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/HelloAsso.Api.V5.Common.Models.Statistics.PaymentItem"
      },
      "description": "Items linked to this payment"
    },
    "displayData": {
      "$ref": "#/$defs/HelloAsso.Api.V5.Common.Models.Statistics.PaymentDisplayData"
    },
    "cashOutDate": {
      "type": [
        "string",
        "null"
      ],
      "description": "The date of the cash out",
      "format": "date-time"
    },
    "idCashOut": {
      "type": [
        "integer",
        "null"
      ],
      "description": "The id of the cash out",
      "format": "int32"
    },
    "cashOutState": {
      "$ref": "#/$defs/HelloAsso.Api.V5.Common.Models.Enums.PaymentCashOutState"
    },
    "paymentReceiptUrl": {
      "type": [
        "string",
        "null"
      ],
      "description": "The Payment Receipt Url"
    },
    "fiscalReceiptUrl": {
      "type": [
        "string",
        "null"
      ],
      "description": "The Fiscal Receipt Url"
    },
    "id": {
      "type": "integer",
      "description": "The ID of the payment",
      "format": "int32"
    },
    "amount": {
      "type": "integer",
      "description": "Total Amount of the payment (in cents)",
      "format": "int32"
    },
    "amountTip": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Tip Amount of the payment (in cents)",
      "format": "int32"
    },
    "date": {
      "type": "string",
      "description": "Date of the payment",
      "format": "date-time"
    },
    "paymentMeans": {
      "$ref": "#/$defs/HelloAsso.Api.V5.Common.Models.Enums.PaymentMeans"
    },
    "installmentNumber": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Indicates the payment number (useful in the case of an order comprising payments with installments)",
      "format": "int32"
    },
    "state": {
      "$ref": "#/$defs/HelloAsso.Api.V5.Common.Models.Enums.PaymentState"
    },
    "type": {
      "$ref": "#/$defs/HelloAsso.Api.V5.Common.Models.Enums.PaymentType"
    },
    "meta": {
      "$ref": "#/$defs/HelloAsso.Api.V5.Common.Models.Common.MetaModel"
    },
    "paymentOffLineMean": {
      "$ref": "#/$defs/HelloAsso.Api.V5.Common.Models.Enums.PaymentMeans"
    },
    "refundOperations": {
      "title": "List<RefundOperationLightModel>",
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/HelloAsso.Api.V5.Common.Models.Statistics.RefundOperationLightModel"
      },
      "description": "The refund operations information for the specific payment."
    }
  },
  "additionalProperties": false,
  "$defs": {
    "HelloAsso.Api.V5.Common.Models.Common.MetaModel": {
      "type": "object",
      "properties": {
        "createdAt": {
          "type": "string",
          "format": "date-time"
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time"
        },
        "authorEmail": {
          "type": [
            "string",
            "null"
          ]
        },
        "expiresAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      },
      "additionalProperties": false
    },
    "HelloAsso.Api.V5.Common.Models.Enums.FormType": {
      "enum": [
        "CrowdFunding",
        "Membership",
        "Event",
        "Donation",
        "PaymentForm",
        "Checkout",
        "Shop"
      ],
      "type": "string"
    },
    "HelloAsso.Api.V5.Common.Models.Enums.ItemState": {
      "enum": [
        "Waiting",
        "Processed",
        "Registered",
        "Deleted",
        "Unknown",
        "Canceled",
        "Refused",
        "Abandoned"
      ],
      "type": "string"
    },
    "HelloAsso.Api.V5.Common.Models.Enums.OperationState": {
      "enum": [
        "Unknown",
        "Init",
        "Processing",
        "Processed",
        "Error",
        "InternalError",
        "Refused",
        "Aborted",
        "Canceled"
      ],
      "type": "string"
    },
    "HelloAsso.Api.V5.Common.Models.Enums.OrganizationType": {
      "enum": [
        "Association1901Rig",
        "Association1901Rup",
        "Association1901",
        "FondationRup",
        "FondDotation",
        "FondationSousEgide",
        "FondationScientifique",
        "FondationPartenariale",
        "FondationUniversitaire",
        "FondationHospitaliere",
        "Association1905",
        "Association1905Rup",
        "Entreprise",
        "Cooperative",
        "Etablissement",
        "Association1908",
        "Association1908Rig",
        "Association1908Rup",
        "AssociationMilitaire",
        "AssociationProprietaire",
        "Collectivités",
        "ComiteEntreprise",
        "CSE",
        "FabriqueEglise",
        "FondsPerenite",
        "GIE",
        "GIP",
        "MenseCuriale",
        "SCIC",
        "SCOP",
        "Autres",
        "EPA"
      ],
      "type": "string"
    },
    "HelloAsso.Api.V5.Common.Models.Enums.PaymentCashOutState": {
      "enum": [
        "MoneyIn",
        "CantTransferReceiverFull",
        "Transfered",
        "Refunded",
        "Refunding",
        "WaitingForCashOutConfirmation",
        "CashedOut",
        "Unknown",
        "Contested",
        "TransferInProgress"
      ],
      "type": "string"
    },
    "HelloAsso.Api.V5.Common.Models.Enums.PaymentMeans": {
      "enum": [
        "None",
        "Card",
        "Sepa",
        "Check",
        "Cash",
        "BankTransfer",
        "Other"
      ],
      "type": "string"
    },
    "HelloAsso.Api.V5.Common.Models.Enums.PaymentState": {
      "enum": [
        "Pending",
        "Authorized",
        "Refused",
        "Unknown",
        "Registered",
        "Error",
        "Refunded",
        "Refunding",
        "Waiting",
        "Canceled",
        "Contested",
        "WaitingBankValidation",
        "WaitingBankWithdraw",
        "Abandoned",
        "WaitingAuthentication",
        "AuthorizedPreprod",
        "Corrected",
        "Deleted",
        "Inconsistent",
        "NoDonation",
        "Init"
      ],
      "type": "string"
    },
    "HelloAsso.Api.V5.Common.Models.Enums.PaymentType": {
      "enum": [
        "Offline",
        "Credit",
        "Debit"
      ],
      "type": "string"
    },
    "HelloAsso.Api.V5.Common.Models.Enums.TierType": {
      "enum": [
        "Donation",
        "Payment",
        "Registration",
        "Membership",
        "MonthlyDonation",
        "MonthlyPayment",
        "OfflineDonation",
        "Contribution",
        "Bonus",
        "Product"
      ],
      "type": "string"
    },
    "HelloAsso.Api.V5.Common.Models.Statistics.FormDisplayType": {
      "enum": [
        "CrowdFunding",
        "Membership",
        "Event",
        "Donation",
        "PaymentForm",
        "Checkout",
        "Shop",
        "Other",
        "Sale"
      ],
      "type": "string",
      "description": "Extended FormType enum for display purpose.\r\nAdds Other and Sale (tap to pay values) to the FormType enum."
    },
    "HelloAsso.Api.V5.Common.Models.Statistics.OrderLight": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "description": "The ID of the Order",
          "format": "int32"
        },
        "date": {
          "type": "string",
          "description": "Order creation date",
          "format": "date-time"
        },
        "formSlug": {
          "type": [
            "string",
            "null"
          ],
          "description": "FormSlug (lowercase name of the form without special characters)"
        },
        "formType": {
          "$ref": "#/$defs/HelloAsso.Api.V5.Common.Models.Enums.FormType"
        },
        "organizationName": {
          "type": [
            "string",
            "null"
          ],
          "description": "The organization name."
        },
        "organizationSlug": {
          "type": [
            "string",
            "null"
          ],
          "description": "OrganizationSlug (lowercase name of the organization without special characters)"
        },
        "organizationType": {
          "$ref": "#/$defs/HelloAsso.Api.V5.Common.Models.Enums.OrganizationType"
        },
        "organizationIsUnderColucheLaw": {
          "type": "boolean",
          "description": "Whether or not the organization is subject to the coluche law"
        },
        "checkoutIntentId": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Checkout intent Id if available",
          "format": "int32"
        },
        "meta": {
          "$ref": "#/$defs/HelloAsso.Api.V5.Common.Models.Common.MetaModel"
        }
      },
      "additionalProperties": false
    },
    "HelloAsso.Api.V5.Common.Models.Statistics.Payer": {
      "type": "object",
      "properties": {
        "email": {
          "type": [
            "string",
            "null"
          ]
        },
        "address": {
          "type": [
            "string",
            "null"
          ],
          "description": "Gets or Sets Address"
        },
        "city": {
          "type": [
            "string",
            "null"
          ],
          "description": "Gets or Sets City"
        },
        "zipCode": {
          "type": [
            "string",
            "null"
          ],
          "description": "Gets or Sets ZipCode"
        },
        "country": {
          "type": [
            "string",
            "null"
          ],
          "description": "Gets or Sets Country"
        },
        "company": {
          "type": [
            "string",
            "null"
          ],
          "description": "Gets or Sets Company"
        },
        "dateOfBirth": {
          "type": [
            "string",
            "null"
          ],
          "description": "Gets or Sets date of birth",
          "format": "date-time"
        },
        "firstName": {
          "type": [
            "string",
            "null"
          ]
        },
        "lastName": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    },
    "HelloAsso.Api.V5.Common.Models.Statistics.PaymentDisplayData": {
      "type": "object",
      "properties": {
        "formDisplayType": {
          "$ref": "#/$defs/HelloAsso.Api.V5.Common.Models.Statistics.FormDisplayType"
        },
        "isTapToPay": {
          "type": "boolean",
          "description": "Whether or not the payment was made using tap to pay."
        }
      },
      "additionalProperties": false
    },
    "HelloAsso.Api.V5.Common.Models.Statistics.PaymentItem": {
      "type": "object",
      "properties": {
        "shareAmount": {
          "type": "integer",
          "description": "Amount of the payment assigned to the item and its options (in cents)",
          "format": "int32"
        },
        "shareItemAmount": {
          "type": "integer",
          "description": "Amount of the item payed on this payment term (in cents)",
          "format": "int32"
        },
        "shareOptionsAmount": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Amount of all extra options linked to this item and payed on this payment (in cents)",
          "format": "int32"
        },
        "id": {
          "type": "integer",
          "description": "ID of the Item",
          "format": "int32"
        },
        "amount": {
          "type": "integer",
          "description": "Total item Price in cents (after discount without extra options)",
          "format": "int32"
        },
        "type": {
          "$ref": "#/$defs/HelloAsso.Api.V5.Common.Models.Enums.TierType"
        },
        "initialAmount": {
          "type": [
            "integer",
            "null"
          ],
          "description": "The raw amount (without reduction)",
          "format": "int32"
        },
        "state": {
          "$ref": "#/$defs/HelloAsso.Api.V5.Common.Models.Enums.ItemState"
        },
        "name": {
          "type": [
            "string",
            "null"
          ],
          "description": "Name of the item paid (relevant for checkout forms)"
        }
      },
      "additionalProperties": false,
      "description": "Item linked to a payment"
    },
    "HelloAsso.Api.V5.Common.Models.Statistics.RefundOperationLightModel": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "description": "The refund operation identifier.",
          "format": "int32"
        },
        "amount": {
          "type": "integer",
          "description": "The amount for this refund.",
          "format": "int32"
        },
        "amountTip": {
          "type": "integer",
          "description": "The amount tip for this refund.",
          "format": "int32"
        },
        "status": {
          "$ref": "#/$defs/HelloAsso.Api.V5.Common.Models.Enums.OperationState"
        },
        "meta": {
          "$ref": "#/$defs/HelloAsso.Api.V5.Common.Models.Common.MetaModel"
        }
      },
      "additionalProperties": false,
      "description": "The refund operation with the Id, amount, amount tip and the status."
    }
  }
}