Skip to content

Instantly share code, notes, and snippets.

@trungly1
Created January 29, 2025 14:46
Show Gist options
  • Save trungly1/fbd8f1b5230838793bc10b50044012d6 to your computer and use it in GitHub Desktop.
Save trungly1/fbd8f1b5230838793bc10b50044012d6 to your computer and use it in GitHub Desktop.
{
"notificationType": "UPDATE",
"account": {
"id": 1835587417931946,
"uuid": null,
"businessLocationId": 1256733200613378,
"name": "Table 5",
"accountNumber": "A106845.13",
"currencyCode": "CAD",
"deviceId": 106845,
"deviceName": "iPad1",
"deviceIp": null,
"staffId": 210970,
"staffName": "Manager",
"staffEmail": null,
"openDate": 1738090864286,
"closeDate": null,
"paidAmount": 0,
"totalAmount": 2.56,
"coverCount": 2,
"gratuityAmount": 0,
"receiptNumber": null,
"cancelled": false,
"accountProfileCode": "dinein",
"transactionLines": [
{
"id": 1835587417931947,
"parentLineId": null,
"accountId": 1835587417931946,
"currencyCode": null,
"amount": 3.5,
"unitAmount": 3.5,
"quantity": 1,
"staffId": 210970,
"staffName": "Manager",
"staffEmail": null,
"nameOverride": "",
"itemDescription": "Cola",
"accountingGroupId": "1256733200613661",
"accountingGroupName": "Sugar",
"itemId": 1256733200613670,
"itemSku": "50",
"date": 1738090864313,
"active": true,
"deviceId": 106845,
"deviceName": "iPad1",
"deviceIp": null,
"activeTax": {
"code": "SugarTax",
"description": "Sugar Tax",
"rate": 1.1,
"taxIncluded": false
},
"subLines": [],
"discounts": [],
"modifiers": [],
"tags": "",
"phase": 0,
"categories": [
{
"category": "default",
"value": "Sugar"
}
],
"amountWithTax": 3.85,
"amountLessTax": 3.5,
"discountedAmount": 0,
"grossUnitAmount": 3.5
},
{
"id": 1835587417931955,
"parentLineId": null,
"accountId": 1835587417931946,
"currencyCode": null,
"amount": -1.17,
"unitAmount": 3.5,
"quantity": -0.3342,
"staffId": 210970,
"staffName": "Manager",
"staffEmail": null,
"nameOverride": "",
"itemDescription": "Cola",
"accountingGroupId": "1256733200613661",
"accountingGroupName": "Sugar",
"itemId": 1256733200613670,
"itemSku": "50",
"date": 1738091014513,
"active": true,
"deviceId": 106845,
"deviceName": "iPad1",
"deviceIp": null,
"activeTax": {
"code": "SugarTax",
"description": "Sugar Tax",
"rate": 1.1,
"taxIncluded": false
},
"subLines": [],
"discounts": [],
"modifiers": [],
"tags": "",
"phase": 0,
"categories": [
{
"category": "default",
"value": "Sugar"
}
],
"amountWithTax": -1.29,
"amountLessTax": -1.17,
"discountedAmount": 0,
"grossUnitAmount": 3.5
}
],
"paymentLines": [],
"discounts": [],
"externalReferences": [],
"deliveryInformation": {
"id": null,
"enabled": false,
"deliveryMode": null,
"deliveryState": null,
"collectionCode": null,
"deliveryInfo": null,
"deliveryComment": null,
"deliveryDueTime": null,
"deliveryTime": null,
"deliveredTime": null,
"productionDueTime": null,
"prepaid": false,
"deliveryOrigin": null,
"deviceName": null
},
"consumerRecord": null,
"currentProductionPhase": 0,
"currentInsertionPhase": 0,
"accountObjectId": null,
"paymentInProgress": false,
"latestExternalReferences": [],
"taxAmount": 0.23,
"preTaxAmount": 2.33,
"serviceCharge": 0,
"orderMode": "DIRECT",
"tableName": null,
"accountProfileName": "Dine-in",
"accountProfileId": "1256733200613382",
"originAccountId": null,
"originAccountNumber": null,
"type": "SALE",
"updateDate": 1738090864340,
"offset": -300,
"totalDiscount": 0,
"status": "open"
},
"event": null,
"retryCounter": 0,
"businessLocationId": 1256733200613378
}
@trungly1
Copy link
Author

{
  "notificationType": "CLOSE",
  "account": {
    "id": 1835587417931957,
    "uuid": null,
    "businessLocationId": 1256733200613378,
    "name": "Table 5.2",
    "accountNumber": "A106845.15",
    "currencyCode": "CAD",
    "deviceId": 106845,
    "deviceName": "iPad1",
    "deviceIp": null,
    "staffId": 210970,
    "staffName": "Manager",
    "staffEmail": null,
    "openDate": 1738091014561,
    "closeDate": 1738091018984,
    "paidAmount": 1.29,
    "totalAmount": 1.29,
    "coverCount": 1,
    "gratuityAmount": 0,
    "receiptNumber": "R106845.12",
    "cancelled": false,
    "accountProfileCode": "dinein",
    "transactionLines": [
      {
        "id": 1835587417931958,
        "parentLineId": null,
        "accountId": 1835587417931957,
        "currencyCode": null,
        "amount": 1.17,
        "unitAmount": 3.5,
        "quantity": 0.3343,
        "staffId": 210970,
        "staffName": "Manager",
        "staffEmail": null,
        "nameOverride": "",
        "itemDescription": "Cola",
        "accountingGroupId": "1256733200613661",
        "accountingGroupName": "Sugar",
        "itemId": 1256733200613670,
        "itemSku": "50",
        "date": 1738091014562,
        "active": true,
        "deviceId": 106845,
        "deviceName": "iPad1",
        "deviceIp": null,
        "activeTax": {
          "code": "SugarTax",
          "description": "Sugar Tax",
          "rate": 1.1,
          "taxIncluded": false
        },
        "subLines": [],
        "discounts": [],
        "modifiers": [],
        "tags": "",
        "phase": 0,
        "categories": [
          {
            "category": "default",
            "value": "Sugar"
          }
        ],
        "amountWithTax": 1.29,
        "amountLessTax": 1.17,
        "discountedAmount": 0,
        "grossUnitAmount": 3.5
      }
    ],
    "paymentLines": [
      {
        "id": 1835587417931960,
        "accountId": 1835587417931957,
        "currencyCode": "CAD",
        "gratuityAmount": 0,
        "amount": 1.29,
        "staffId": 210970,
        "staffName": "Manager",
        "staffEmail": null,
        "date": 1738091018981,
        "active": true,
        "paymentMethod": "CASH",
        "paymentMethodDescription": "Cash",
        "deviceId": 106845,
        "deviceName": "iPad1",
        "deviceIp": null,
        "externalReference": null
      }
    ],
    "discounts": [],
    "externalReferences": [],
    "deliveryInformation": {
      "id": null,
      "enabled": false,
      "deliveryMode": null,
      "deliveryState": null,
      "collectionCode": null,
      "deliveryInfo": null,
      "deliveryComment": null,
      "deliveryDueTime": null,
      "deliveryTime": null,
      "deliveredTime": null,
      "productionDueTime": null,
      "prepaid": false,
      "deliveryOrigin": null,
      "deviceName": null
    },
    "consumerRecord": null,
    "currentProductionPhase": 0,
    "currentInsertionPhase": 0,
    "accountObjectId": null,
    "paymentInProgress": false,
    "latestExternalReferences": [],
    "taxAmount": 0.12,
    "preTaxAmount": 1.17,
    "serviceCharge": 0,
    "orderMode": "DIRECT",
    "tableName": null,
    "accountProfileName": "Dine-in",
    "accountProfileId": "1256733200613382",
    "originAccountId": 1835587417931946,
    "originAccountNumber": "A106845.13",
    "type": "SPLIT",
    "updateDate": 1738091014563,
    "offset": -300,
    "totalDiscount": 0,
    "status": "closed"
  },
  "event": null,
  "retryCounter": 0,
  "businessLocationId": 1256733200613378
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment