Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Structure

Excerpt


FieldTypeRequiredDescription
idIntegertrueUnique identifier for the Deposit.
nameStringtrueName of the Deposit.
companyCompanyfalseCompany associated to this Deposit
customerCustomerfalseCustomer associated to this Deposit
travelAgentTravelAgentfalseTravelAgent associated to this Deposit
productProducttrueProduct associated to this Deposit
consumptionDateLocalDatetrueDate when the Deposit was created
priceBigDecimaltrueAmount of this Deposit
spentBigDecimaltrue
remainingBigDecimaltrue
currencyCurrencytrueCurrency associated to this Deposit
depositStatusTypeDepositStatusTypetrue

StatusType of this Deposit:1=Pending Payment
2=Paid
3=Cancelled
4=Consumed
5=Refund
6=Expired
7=Expected

reservationRoomStaySummaryReservationRoomStaySummaryfalse
reservationSummaryReservationSummaryfalse
reservationGroupReservationGroupfalse



JSON representation

Code Block
languagepowershell
themeDJango
{
      "id": 2,
      "name": "dcb58",
      "company": null,
      "customer": {
        "id": 8,
        "name": "Antonio Bérengère Chapman"
      },
      "travelAgent": null,
      "productCONModel": {
		"code":"DEP10",
        "id": 519,
        "name": "Deposit 10"
      },
      "consumptionDate": "2019-02-07",
      "price": 311,
      "spent": 0,
      "remaining": 0,
      "currency": {
		"id": 1,
        "code": "EUR",
        "name": "Euro"
      },
      "depositStatusType": {
		"id": 1,
        "name": "Pending Payment",
        "code": "PENPAY"
      },
	  "reservationRoomStaySummary": null,
	  "reservationSummary": null,
	  "reservationGroup": null
    }