...

Text file src/edge-infra.dev/pkg/edge/edgeencrypt/testdata/tlog.json

Documentation: edge-infra.dev/pkg/edge/edgeencrypt/testdata

     1{
     2  "id": "random",
     3  "transactionNumber": 86,
     4  "siteInfo": {
     5    "name": "Sutton Place",
     6    "id": "jkl-site-4-asdfghjkl",
     7    "siteTimeZone": null
     8  },
     9  "businessDay": {
    10    "dateTime": "2020-01-08T00:00:00Z"
    11  },
    12  "closeDateTimeUtc": {
    13    "dateTime": "2018-03-20T07:29:00-04:00"
    14  },
    15  "openDateTimeUtc": {
    16    "dateTime": "2018-03-20T07:29:00-04:00"
    17  },
    18  "modelVersion": 0,
    19  "documentExpirationDate": {
    20    "dateTime": "2020-01-07T12:56:52Z"
    21  },
    22  "touchPointId": "a3ec7cb4-8067-48c4-93a7-42bbb3646b47",
    23  "configurationDateTimeUtc": null,
    24  "touchPointType": "POS",
    25  "touchPointGroup": "1",
    26  "dataProviderName": "canonical",
    27  "dataProviderVersion": "2.0",
    28  "isTrainingMode": false,
    29  "linkedTransactions": [
    30    "2020-jun-11-sean-2",
    31    "2020-jun-11-sean-4"
    32  ],
    33  "tlog": {
    34    "receiptId": null,
    35    "receiptInfo": null,
    36    "location": null,
    37    "revenueCenter": null,
    38    "isVoided": false,
    39    "voidInfo": null,
    40    "isSuspended": false,
    41    "isResumed": false,
    42    "isRecalled": false,
    43    "isDeleted": false,
    44    "transactionType": "SALES",
    45    "localCurrency": null,
    46    "loyaltyAccount": [
    47      {
    48        "id": null,
    49        "accountId": null,
    50        "accountName": null
    51      }
    52    ],
    53    "employees": [
    54      {
    55        "id": "f6c33ad6-5358-48d2-805b-ae324026eb82",
    56        "name": "Joe Spectacular",
    57        "shiftId": null,
    58        "isTippableEmployee": false,
    59        "roleId": null,
    60        "roleName": null,
    61        "action": null,
    62        "actionLabel": null
    63      }
    64    ],
    65    "totals": {
    66      "taxInclusive": null,
    67      "taxExclusive": {
    68        "amount": 1.76
    69      },
    70      "returnItemsTaxInclusive": null,
    71      "returnItemsTaxExclusive": null,
    72      "taxExemptAmount": null,
    73      "discountAmount": 3.5,
    74      "grossAmount": null,
    75      "grandAmount": {
    76        "amount": 9.82
    77      },
    78      "voidsAmount": {
    79        "amount": 0
    80      },
    81      "grossReturnsAmount": null
    82    },
    83    "customer": {
    84      "id": "111",
    85      "email": "joe.shopper@ncr.com",
    86      "phoneNumber": "00972542541256",
    87      "name": "Joe Shopper",
    88      "birthdate": {
    89        "dateTime": "1981-01-05T00:00:00Z"
    90      },
    91      "infoValidationMeans": "OTHER",
    92      "postalAddress": {
    93        "formattedAddress": "Dafna 9, Raanana",
    94        "countryCode": "IL"
    95      }
    96    },
    97    "totalTaxes": [
    98      {
    99        "id": "41",
   100        "name": "Tax A",
   101        "taxExempt": null,
   102        "taxType": "UNKNOWN",
   103        "taxTypeLabel": "NOT_A_TAX_TYPE",
   104        "taxableAmount": null,
   105        "amount": {
   106          "amount": 0.98
   107        },
   108        "isRefund": false
   109      },
   110      {
   111        "id": "52",
   112        "name": "Tax B",
   113        "taxExempt": null,
   114        "taxType": "UNKNOWN",
   115        "taxableAmount": {
   116          "amount": 5
   117        },
   118        "amount": {
   119          "amount": 0.78
   120        },
   121        "isRefund": true
   122      },
   123      {
   124        "id": "60",
   125        "name": "Tax C",
   126        "taxExempt": null,
   127        "taxType": "UNKNOWN",
   128        "taxableAmount": {
   129          "amount": 7
   130        },
   131        "amount": {
   132          "amount": 0.78
   133        },
   134        "isRefund": false
   135      }
   136    ],
   137    "items": [
   138      {
   139        "id": null,
   140        "parentItemId": null,
   141        "productId": "00000000004430",
   142        "productName": "fanta",
   143        "variations": [],
   144        "departmentId": "1",
   145        "revenueCenter": null,
   146        "isReturn": false,
   147        "isInventoryAffectedByReturn": false,
   148        "isVoided": false,
   149        "voidInfo": null,
   150        "regularUnitPrice": {
   151          "amount": 21.2
   152        },
   153        "extendedUnitPrice": {
   154          "amount": 10
   155        },
   156        "actualUnitPrice": {
   157          "amount": 10
   158        },
   159        "extendedAmount": {
   160          "amount": 9.8
   161        },
   162        "actualAmount": null,
   163        "quantity": {
   164          "quantity": 1,
   165          "unitOfMeasurement": "NOT_KNOWN",
   166          "unitOfMeasurementLabel": "Kg"
   167        },
   168        "isWeighted": true,
   169        "isOverridden": true,
   170        "overrideInfo": {
   171          "overrideMethod": "AUTOMATIC",
   172          "overrideReason": null,
   173          "overrideReasonCustom": null
   174        },
   175        "orderNumber": null,
   176        "itemPromotions": [],
   177        "itemDiscounts": [
   178          {
   179            "id": "thisId",
   180            "discountApprovalInfo": {
   181              "approvalRequestedCount": 350,
   182              "approvedCount": 350
   183            },
   184            "pointsRedeemed": 299
   185          }
   186        ],
   187        "itemTaxes": [
   188          {
   189            "id": "41",
   190            "name": null,
   191            "taxExempt": null,
   192            "taxType": "TAX_INCLUSIVE",
   193            "taxableAmount": {
   194              "amount": 9.8
   195            },
   196            "amount": {
   197              "amount": 0.98
   198            },
   199            "isRefund": false
   200          },
   201          {
   202            "id": "52",
   203            "name": null,
   204            "taxExempt": null,
   205            "taxType": "TAX_INCLUSIVE",
   206            "taxableAmount": {
   207              "amount": 9.8
   208            },
   209            "amount": {
   210              "amount": 0.78
   211            },
   212            "isRefund": false
   213          }
   214        ],
   215        "category": null,
   216        "surcharges": [],
   217        "isNonSaleItem": false,
   218        "conceptId": null,
   219        "beginDateTimeUtc": null,
   220        "endDateTimeUtc": null,
   221        "catalogItemCode": "00000000004430",
   222        "fuelSaleInfo": {
   223          "controllerSequenceNumber": "117",
   224          "startFuelingDateTimeUtc": {
   225            "dateTime": "2020-03-24T20:23:14Z"
   226          },
   227          "endFuelingDateTimeUtc": {
   228            "dateTime": "2020-03-24T20:23:19Z"
   229          },
   230          "fuelShiftId": "4",
   231          "tankId": "1",
   232          "nozzleId": "1",
   233          "fuelingPointId": "1",
   234          "type": "PAY_AT_PUMP"
   235        }
   236      },
   237      {
   238        "id": null,
   239        "parentItemId": null,
   240        "productId": "99900045",
   241        "productName": "Small box",
   242        "variations": [],
   243        "departmentId": "1",
   244        "revenueCenter": null,
   245        "isReturn": false,
   246        "isInventoryAffectedByReturn": false,
   247        "isVoided": false,
   248        "voidInfo": null,
   249        "regularUnitPrice": {
   250          "amount": 0.02
   251        },
   252        "extendedUnitPrice": null,
   253        "actualUnitPrice": {
   254          "amount": 0.02
   255        },
   256        "extendedAmount": {
   257          "amount": 0.02
   258        },
   259        "actualAmount": null,
   260        "quantity": {
   261          "quantity": 1,
   262          "unitOfMeasurement": "NOT_KNOWN",
   263          "unitOfMeasurementLabel": "EA"
   264        },
   265        "isWeighted": false,
   266        "isOverridden": false,
   267        "overrideInfo": null,
   268        "orderNumber": null,
   269        "itemPromotions": [],
   270        "itemDiscounts": [],
   271        "itemTaxes": [],
   272        "category": null,
   273        "surcharges": [],
   274        "isNonSaleItem": false,
   275        "conceptId": null,
   276        "beginDateTimeUtc": null,
   277        "endDateTimeUtc": null,
   278        "catalogItemCode": "99900045",
   279        "fuelSaleInfo": {
   280          "controllerSequenceNumber": "118",
   281          "startFuelingDateTimeUtc": {
   282            "dateTime": "2020-03-24T20:23:14Z"
   283          },
   284          "endFuelingDateTimeUtc": {
   285            "dateTime": "2020-03-24T20:23:19Z"
   286          },
   287          "fuelShiftId": "2",
   288          "tankId": "2",
   289          "nozzleId": "2",
   290          "fuelingPointId": "2",
   291          "type": "PREPAY_END"
   292        }
   293      },
   294      {
   295        "id": null,
   296        "parentItemId": null,
   297        "productId": "99900045",
   298        "productName": "Small box",
   299        "variations": [],
   300        "departmentId": "1",
   301        "revenueCenter": null,
   302        "isReturn": false,
   303        "isInventoryAffectedByReturn": false,
   304        "isVoided": false,
   305        "voidInfo": null,
   306        "regularUnitPrice": {
   307          "amount": 0.02
   308        },
   309        "extendedUnitPrice": null,
   310        "actualUnitPrice": {
   311          "amount": 0.02
   312        },
   313        "extendedAmount": {
   314          "amount": 0.02
   315        },
   316        "actualAmount": null,
   317        "quantity": {
   318          "quantity": 1,
   319          "unitOfMeasurement": "NOT_KNOWN",
   320          "unitOfMeasurementLabel": "EA"
   321        },
   322        "isWeighted": false,
   323        "isOverridden": false,
   324        "overrideInfo": null,
   325        "orderNumber": null,
   326        "itemPromotions": [],
   327        "itemDiscounts": [],
   328        "itemTaxes": [],
   329        "category": null,
   330        "surcharges": [],
   331        "isNonSaleItem": false,
   332        "conceptId": null,
   333        "beginDateTimeUtc": null,
   334        "endDateTimeUtc": null,
   335        "catalogItemCode": "99900045",
   336        "fuelSaleInfo": {
   337          "controllerSequenceNumber": "118",
   338          "startFuelingDateTimeUtc": {
   339            "dateTime": "2020-03-24T20:23:14Z"
   340          },
   341          "endFuelingDateTimeUtc": {
   342            "dateTime": "2020-03-24T20:23:19Z"
   343          },
   344          "fuelShiftId": "2",
   345          "tankId": "2",
   346          "nozzleId": "2",
   347          "fuelingPointId": "2",
   348          "type": "PREPAY_END"
   349        }
   350      }
   351    ],
   352    "orders": [],
   353    "tenders": [
   354      {
   355        "id": "1",
   356        "name": "CashEng",
   357        "type": "CASH",
   358        "tenderAmount": {
   359          "amount": 11.58
   360        },
   361        "currency": {
   362          "code": "USD"
   363        },
   364        "originalCurrency": {
   365          "code": "MXN"
   366        },
   367        "originalAmount": null,
   368        "exchangeRate": null,
   369        "tipAmount": null,
   370        "tipReductionAmount": null,
   371        "overpaymentAmount": null,
   372        "usage": "PAYMENT",
   373        "isVoided": false,
   374        "voidInfo": null,
   375        "cashDrawerId": null,
   376        "surcharges": [],
   377        "cardLastFourDigits": null,
   378        "employee": null,
   379        "authorizationCode": "APPROVE",
   380        "lineNumber": 3,
   381        "tenderLink": null,
   382        "smartWIC": null,
   383        "operatorBypassApprovals": [
   384          {
   385            "sequenceNumber": 1,
   386            "description": "wow"
   387          }
   388        ]
   389      },
   390      {
   391        "id": "1-2",
   392        "name": "CashEng",
   393        "type": "CASH",
   394        "tenderAmount": {
   395          "amount": 11.58
   396        },
   397        "currency": {
   398          "code": "USD"
   399        },
   400        "originalAmount": null,
   401        "exchangeRate": null,
   402        "tipAmount": null,
   403        "tipReductionAmount": null,
   404        "overpaymentAmount": null,
   405        "usage": "PAYMENT",
   406        "isVoided": false,
   407        "voidInfo": null,
   408        "cashDrawerId": null,
   409        "surcharges": [],
   410        "cardLastFourDigits": null,
   411        "employee": null,
   412        "authorizationCode": "APPROVE",
   413        "lineNumber": 3,
   414        "tenderLink": null,
   415        "smartWIC": null,
   416        "operatorBypassApprovals": [
   417          {
   418            "sequenceNumber": 1,
   419            "description": "wow"
   420          }
   421        ]
   422      }
   423    ],
   424    "transactionPromotions": [],
   425    "coupons": [
   426      {
   427        "id": "123",
   428        "description": "wow",
   429        "amount": {
   430          "amount": 9.82
   431        },
   432        "operatorBypassApprovals": [
   433          {
   434            "sequenceNumber": 1,
   435            "description": "wow"
   436          }
   437        ]
   438      }
   439    ],
   440    "surcharges": [],
   441    "customerCount": 0,
   442    "receiptDeliveryInfo": null,
   443    "checkOutType": null
   444  },
   445  "transactionCategory": "SALE_OR_RETURN"
   446}

View as plain text