Commit 7133ae94 authored by Jose Hugo Torres's avatar Jose Hugo Torres
Browse files

API swagger pruebas login

parent 17d006dc
...@@ -73,3 +73,11 @@ Carpetas de código asociado con GK Smart POS: ...@@ -73,3 +73,11 @@ Carpetas de código asociado con GK Smart POS:
- `ComandosGkPruebas` y `ComandosGk` contiene los comandos para ambos tipos de ambientes de Gk. - `ComandosGkPruebas` y `ComandosGk` contiene los comandos para ambos tipos de ambientes de Gk.
- `POSGk` contiene código especializado para GK Smart POS. - `POSGk` contiene código especializado para GK Smart POS.
## Pendientes
1. Pasar usuario/clave al archivo de config.
2. Probar respuestas negativas del smart pos y por tanto enviar mensaje excepción al SCO.
## Immplementación comandos GK pruebas
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<HEAD>
<LINK type="text/css" rel="stylesheet" href="/smartpos-service/services/?stylesheet=1">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>CXF - Service list</title>
</head>
<body><span class="heading">Available RESTful services:</span><br />
<table cellpadding="1" cellspacing="1" border="1" width="100%">
<tr>
<td><span class="field">Endpoint address:</span> <span
class="value">http://10.10.117.10:8080/smartpos-service/services/com.gk_software.pos.api.service.payment.PaymentService</span>
</td>
</tr>
<tr>
<td><span class="field">Endpoint address:</span> <span
class="value">http://10.10.117.10:8080/smartpos-service/services/com.gk_software.pos.api.service.crm.CRMService</span>
</td>
</tr>
<tr>
<td><span class="field">Endpoint address:</span> <span
class="value">http://10.10.117.10:8080/smartpos-service/services/com.gk_software.pos.api.service.digital_receipt.DigitalReceiptService</span>
</td>
</tr>
<tr>
<td><span class="field">Endpoint address:</span> <span
class="value">http://10.10.117.10:8080/smartpos-service/services/com.gk_software.pos.api.service.transaction.gift_certificate.GiftCertificateTransactionService</span>
</td>
</tr>
<tr>
<td><span class="field">Endpoint address:</span> <span
class="value">http://10.10.117.10:8080/smartpos-service/services/com.gk_software.pos.api.service.loyalty.LoyaltySystemService</span>
</td>
</tr>
<tr>
<td><span class="field">Endpoint address:</span> <span
class="value">http://10.10.117.10:8080/smartpos-service/services/promotionPricingService</span></td>
</tr>
<tr>
<td><span class="field">Endpoint address:</span> <span
class="value">http://10.10.117.10:8080/smartpos-service/services/com.gk_software.pos.api.service.customer.CustomerCardCodeConverterService</span>
</td>
</tr>
<tr>
<td><span class="field">Endpoint address:</span> <span
class="value">http://10.10.117.10:8080/smartpos-service/services/com.gk_software.pos.api.service.communication.ws.customer_search_by_criteria.CustomerSearchByCriteriaWebService</span>
</td>
</tr>
<tr>
<td><span class="field">Endpoint address:</span> <span
class="value">http://10.10.117.10:8080/smartpos-service/services/com.gk_software.pos.api.service.stored_value_server.StoredValueServerService</span>
</td>
</tr>
<tr>
<td><span class="field">Endpoint address:</span> <span
class="value">http://10.10.117.10:8080/smartpos-service/services/com.gk_software.pos.api.service.communication.ws.valuephone.payment.ValuephonePaymentWebService</span>
</td>
</tr>
<tr>
<td><span class="field">Endpoint address:</span> <span
class="value">http://10.10.117.10:8080/smartpos-service/services/com.gk_software.pos.api.service.external.item.ExternalItemQueryService</span>
</td>
</tr>
<tr>
<td><span class="field">Endpoint address:</span> <span
class="value">http://10.10.117.10:8080/smartpos-service/services/com.gk_software.pos.api.service.till.TillService</span>
</td>
</tr>
<tr>
<td><span class="field">Endpoint address:</span> <span
class="value">http://10.10.117.10:8080/smartpos-service/services/com.gk_software.pos.api.service.promotion.PricingService</span>
</td>
</tr>
<tr>
<td><span class="field">Endpoint address:</span> <span
class="value">http://10.10.117.10:8080/smartpos-service/services/com.gk_software.pos.api.service.transaction.PosTransactionService</span>
</td>
</tr>
<tr>
<td><span class="field">Endpoint address:</span> <span
class="value">http://10.10.117.10:8080/smartpos-service/services/com.gk_software.pos.api.service.communication.ws.customer.CustomerOperationService</span>
</td>
</tr>
<tr>
<td><span class="field">Endpoint address:</span> <span
class="value">http://10.10.117.10:8080/smartpos-service/services/com.gk_software.pos.api.service.smartpos.SmartPOSService</span>
</td>
</tr>
<tr>
<td><span class="field">Endpoint address:</span> <span
class="value">http://10.10.117.10:8080/smartpos-service/services/com.gk_software.pos.api.service.communication.ws.sales_order_change_request_confirmation.SalesOrderChangeRequestConfirmationWebService</span>
</td>
</tr>
<tr>
<td><span class="field">Endpoint address:</span> <span
class="value">http://10.10.117.10:8080/smartpos-service/services/com.gk_software.pos.api.service.order.SalesOrderService</span>
</td>
</tr>
<tr>
<td><span class="field">Endpoint address:</span> <span
class="value">http://10.10.117.10:8080/smartpos-service/services/com.gk_software.pos.api.service.promotion.PromotionTriggerService</span>
</td>
</tr>
<tr>
<td><span class="field">Endpoint address:</span> <span
class="value">http://10.10.117.10:8080/smartpos-service/services/com.gk_software.pos.api.service.rescan.RescanService</span>
</td>
</tr>
<tr>
<td><span class="field">Endpoint address:</span> <span
class="value">http://10.10.117.10:8080/smartpos-service/services/com.gk_software.pos.api.service.tableau.DynamicTableauDataService</span>
</td>
</tr>
<tr>
<td><span class="field">Endpoint address:</span> <span
class="value">http://10.10.117.10:8080/smartpos-service/services/com.gk_software.pos.api.service.communication.ws.payables_account.PayablesAccountWebService</span>
</td>
</tr>
<tr>
<td><span class="field">Endpoint address:</span> <span
class="value">http://10.10.117.10:8080/smartpos-service/services/com.gk_software.pos.api.service.transaction.consolidation.ConsolidationService</span>
</td>
</tr>
<tr>
<td><span class="field">Endpoint address:</span> <span
class="value">http://10.10.117.10:8080/smartpos-service/services/com.gk_software.pos.api.service.security.AuthorizationService</span>
</td>
</tr>
<tr>
<td><span class="field">Endpoint address:</span> <span
class="value">http://10.10.117.10:8080/smartpos-service/services/com.gk_software.pos.api.service.taxengine.TaxEngineService</span>
</td>
</tr>
<tr>
<td><span class="field">Endpoint address:</span> <span
class="value">http://10.10.117.10:8080/smartpos-service/services/com.gk_software.pos.api.service.transaction.prepaid.PrepaidCreditTransactionService</span>
</td>
</tr>
<tr>
<td><span class="field">Endpoint address:</span> <span
class="value">http://10.10.117.10:8080/smartpos-service/services/com.gk_software.pos.api.service.communication.ws.sales_order_basic.SalesOrderBasicWebService</span>
</td>
</tr>
<tr>
<td><span class="field">Endpoint address:</span> <span
class="value">http://10.10.117.10:8080/smartpos-service/services/com.gk_software.pos.api.service.external.customer.ExternalCustomerService</span>
</td>
</tr>
<tr>
<td><span class="field">Endpoint address:</span> <span
class="value">http://10.10.117.10:8080/smartpos-service/services/com.gk_software.pos.api.service.communication.ws.sales_order_sales_doc_read.SalesOrderSalesDocReadWebService</span>
</td>
</tr>
<tr>
<td><span class="field">Endpoint address:</span> <span
class="value">http://10.10.117.10:8080/smartpos-service/services/com.gk_software.pos.api.service.communication.ws.sales_order_create_check.SalesOrderCreateCheckWebService</span>
</td>
</tr>
<tr>
<td><span class="field">Endpoint address:</span> <span
class="value">http://10.10.117.10:8080/smartpos-service/services/com.gk_software.pos.api.service.transaction.LineItemService</span>
</td>
</tr>
<tr>
<td><span class="field">Endpoint address:</span> <span
class="value">http://10.10.117.10:8080/smartpos-service/services/com.gk_software.pos.api.service.communication.ws.sales_order_by_id.SalesOrderByIdV3WebService</span>
</td>
</tr>
<tr>
<td><span class="field">Endpoint address:</span> <span
class="value">http://10.10.117.10:8080/smartpos-service/services/com.gk_software.pos.api.service.masterdata.item.ItemQueryService</span>
</td>
</tr>
<tr>
<td><span class="field">Endpoint address:</span> <span
class="value">http://10.10.117.10:8080/smartpos-service/services/com.gk_software.pos.api.service.hospitality.HospitalityService</span>
</td>
</tr>
<tr>
<td><span class="field">Endpoint address:</span> <span
class="value">http://10.10.117.10:8080/smartpos-service/services/com.gk_software.pos.api.service.data_privacy_log.DataPrivacyLogService</span>
</td>
</tr>
<tr>
<td><span class="field">Endpoint address:</span> <span
class="value">http://10.10.117.10:8080/smartpos-service/services/com.gk_software.pos.api.service.system.SystemService</span>
</td>
</tr>
<tr>
<td><span class="field">Endpoint address:</span> <span
class="value">http://10.10.117.10:8080/smartpos-service/services/com.gk_software.pos.api.service.event_log.EventLogService</span>
</td>
</tr>
<tr>
<td><span class="field">Endpoint address:</span> <span
class="value">http://10.10.117.10:8080/smartpos-service/services/com.gk_software.pos.api.service.session.PosSessionService</span>
</td>
</tr>
<tr>
<td><span class="field">Endpoint address:</span> <span
class="value">http://10.10.117.10:8080/smartpos-service/services/com.gk_software.pos.api.service.communication.ws.customer_by_id.CustomerByIdWebService</span>
</td>
</tr>
<tr>
<td><span class="field">Endpoint address:</span> <span
class="value">http://10.10.117.10:8080/smartpos-service/services/com.gk_software.pos.api.service.prepaid.GkrSvsPrepaidServerService</span>
</td>
</tr>
<tr>
<td><span class="field">Endpoint address:</span> <span
class="value">http://10.10.117.10:8080/smartpos-service/services/com.gk_software.pos.api.service.transaction.customer.CustomerTransactionService</span>
</td>
</tr>
<tr>
<td><span class="field">Endpoint address:</span> <span
class="value">http://10.10.117.10:8080/smartpos-service/services/com.gk_software.pos.api.service.coupon.CouponingService</span>
</td>
</tr>
<tr>
<td><span class="field">Endpoint address:</span> <span
class="value">http://10.10.117.10:8080/smartpos-service/services/com.gk_software.pos.api.service.ewic.EwicItemCategoryService</span>
</td>
</tr>
<tr>
<td><span class="field">Endpoint address:</span> <span
class="value">http://10.10.117.10:8080/smartpos-service/services/com.gk_software.pos.api.service.communication.ws.valuephone.loyalty.ValuephoneLoyaltyWebService</span>
</td>
</tr>
<tr>
<td><span class="field">Endpoint address:</span> <span
class="value">http://10.10.117.10:8080/smartpos-service/services/com.gk_software.pos.api.service.communication.ws.billdoc.BillDocWebService</span>
</td>
</tr>
<tr>
<td><span class="field">Endpoint address:</span> <span
class="value">http://10.10.117.10:8080/smartpos-service/services/com.gk_software.pos.api.service.promotion.LoyaltyRewardService</span>
</td>
</tr>
<tr>
<td><span class="field">Endpoint address:</span> <span
class="value">http://10.10.117.10:8080/smartpos-service/services/com.gk_software.pos.api.service.fuel.FuelService</span>
</td>
</tr>
<tr>
<td><span class="field">Endpoint address:</span> <span
class="value">http://10.10.117.10:8080/smartpos-service/services/com.gk_software.pos.api.service.security.AuthenticationService</span>
</td>
</tr>
<tr>
<td><span class="field">Endpoint address:</span> <span
class="value">http://10.10.117.10:8080/smartpos-service/services/com.gk_software.pos.api.service.stock.StockService</span>
</td>
</tr>
<tr>
<td><span class="field">Endpoint address:</span> <span
class="value">http://10.10.117.10:8080/smartpos-service/services/com.gk_software.pos.api.service.communication.ws.sales_order_create_request_confirmation.SalesOrderCreateRequestConfirmationWebService</span>
</td>
</tr>
<tr>
<td><span class="field">Endpoint address:</span> <span
class="value">http://10.10.117.10:8080/smartpos-service/services/com.gk_software.pos.api.service.masterdata.MasterDataService</span>
</td>
</tr>
<tr>
<td><span class="field">Endpoint address:</span> <span
class="value">http://10.10.117.10:8080/smartpos-service/services/com.gk_software.pos.api.service.subtotal.SubtotalService</span>
</td>
</tr>
<tr>
<td><span class="field">Endpoint address:</span> <span
class="value">http://10.10.117.10:8080/smartpos-service/services/com.gk_software.pos.api.service.smartpos.SmartPOSMDReplicationStateProviderService</span>
</td>
</tr>
<tr>
<td><span class="field">Endpoint address:</span> <span
class="value">http://10.10.117.10:8080/smartpos-service/services/com.gk_software.pos.api.service.layaway.LayawayService</span>
</td>
</tr>
</table>
</body>
</html>
\ No newline at end of file
### Validación
GET http://10.10.117.10:8080/smartpos-service/tenants/001/services/ HTTP/1.1
### prdApplicationInfo
GET https://10.10.117.10:8443/smartpos-service/tenants/001/services/com.gk_software.pos.api.service.system.SystemService/prdApplicationInfo
### Prueba
GET http://10.10.117.10:8080/smartpos-service/services/com.gk_software.pos.api.service.smartpos.SmartPOSService HTTP/1.1
### authentication http://localhost:8080/smartpos-service/ ### authentication http://localhost:8080/smartpos-service/
# url base: com.gk_software.pos.api.service.security. POST https://10.10.117.10:8443/smartpos-service/tenants/001/services/com.gk_software.pos.api.service.security.AuthenticationService/authenticate HTTP/1.1
# /AuthenticationService/authenticate HTTP/1.1
# http://10.10.117.10:8080/smartpos-service/pos-service/tenants/001/services/authenticate HTTP/1.1
# http://10.10.117.10:8080/smartpos-service/pos-server/tenants/001/stores/1/
# http://10.10.117.10:8080/smartpos-service/rest/services/command-channel HTTP/1.1
# # http://10.10.117.10:8080/smartpos-service/pos-server/tenants/001/stores/1/
# Url=http://10.10.117.10:8080/smartpos-service/pos-service/tenants/001/stores/1000/services
POST http://10.10.117.10:8080/smartpos-service/pos-service/tenants/001/stores/1/services/AuthenticationService/authenticate HTTP/1.1
Content-Type: application/json Content-Type: application/json
{ {
"loginName": "1005", "loginName": "1004",
"password": "1", "password": "1",
"businessUnitId": "1000", "businessUnitId": "1000",
"passwordRequired": true, "passwordRequired": false,
"xXCustom08": "string", "xXCustom08": "string",
"xXCustom10": "string", "xXCustom10": "string",
"xXCustom09": "string", "xXCustom09": "string",
...@@ -58,3 +59,8 @@ Content-Type: application/json ...@@ -58,3 +59,8 @@ Content-Type: application/json
"xXCustom01": "string" "xXCustom01": "string"
} }
### smartpos
POST https://10.10.117.10:8443/smartpos-service/tenants/001/services/com.gk_software.pos.api.service.smartpos.SmartPOSService/checkAvailabilityAndCleanup HTTP/1.1
Content-Type: application/json
{}
\ No newline at end of file
{
"primaryEntry": {
"transaction": {
"key": {
"businessUnitGroupID": "100000000000000062",
"transactionID": "6n800bd2da8845c4937b0894d1d7e470"
},
"operatorID": "1004",
"workstationID": "104",
"businessUnitID": "1000",
"businessDayDate": "2023-07-31T00:00:00.000",
"sequenceNumber": 2,
"transactionTypeCode": "RTLTRN",
"beginDateTimestamp": "2023-07-31T10:24:22.322",
"cancelledFlag": false,
"suspendedFlag": false,
"trainingFlag": false,
"keyedOfflineFlag": "BO",
"workerID": "1004",
"workerFirstName": "Adam",
"workerLastName": "Administrator",
"internalSequenceNumber": 1,
"fiscalFlag": false,
"beginDateTimestampUTC0": "2023-07-31T10:24:22.322-0500",
"transactionCategoryList": [],
"transactionExtensionList": [
{
"key": {
"businessUnitGroupID": "100000000000000062",
"transactionID": "6n800bd2da8845c4937b0894d1d7e470",
"extensionKey": "WORKSTATION_TYPE_CODE",
"extensionSequenceNumber": 0
},
"extensionValue": "MOB"
}
],
"endWorkstationID": "104",
"isocurrencyCode": "COP",
"retailTransactionList": [
{
"key": {
"businessUnitGroupID": "100000000000000062",
"transactionID": "6n800bd2da8845c4937b0894d1d7e470"
},
"retailTransactionTypeCode": "SA",
"tillID": "103",
"receiptDateTime": "2023-07-31T10:24:22.322",
"receiptPrintoutFlag": false,
"promotionTimestamp": "2023-07-31T10:24:22.322",
"retailTransactionLineItemList": [],
"retailTransactionTotalList": [
{
"key": {
"businessUnitGroupID": "100000000000000062",
"transactionID": "6n800bd2da8845c4937b0894d1d7e470",
"transactionTotalTypeCode": "TOTAL"
},
"amount": 4950.0
},
{
"key": {
"businessUnitGroupID": "100000000000000062",
"transactionID": "6n800bd2da8845c4937b0894d1d7e470",
"transactionTotalTypeCode": "SUBTOTAL"
},
"amount": 4950.0
},
{
"key": {
"businessUnitGroupID": "100000000000000062",
"transactionID": "6n800bd2da8845c4937b0894d1d7e470",
"transactionTotalTypeCode": "SUBTOTAL_DISCOUNT"
},
"amount": 4950.0
},
{
"key": {
"businessUnitGroupID": "100000000000000062",
"transactionID": "6n800bd2da8845c4937b0894d1d7e470",
"transactionTotalTypeCode": "TOTAL_TIP"
},
"amount": 0.0
}
],
"retailTransactionCustomerList": [
{
"key": {
"businessUnitGroupID": "100000000000000062",
"transactionID": "6n800bd2da8845c4937b0894d1d7e470",
"customerID": "1234567890",
"addressTypeCode": "CO"
},
"genderType": "M",
"birthDayNumber": 12,
"birthMonthNumber": 1,
"birthYearNumber": 1985,
"addressTypeDescription": "loyaltyCard",
"genericFlag": false,
"customerIDEntryMethodCode": "KEY",
"firstName": "David",
"lastName": "Buyer",
"retailTransactionCustomerGroupAssignmentList": [
{
"key": {
"businessUnitGroupID": "100000000000000062",
"transactionID": "6n800bd2da8845c4937b0894d1d7e470",
"customerID": "1234567890",
"addressTypeCode": "CO",
"customerGroupID": "LC"
}
}
],
"retailTransactionCustomerContactMethodList": [
{
"key": {
"businessUnitGroupID": "100000000000000062",
"transactionID": "6n800bd2da8845c4937b0894d1d7e470",
"customerID": "1234567890",
"addressTypeCode": "CO",
"contactPurposeTypeCode": "DEFAULT",
"contactMethodTypeCode": "HOME"
},
"contactTypeCode": "AD",
"addressLine1": "Calle 100 8A-55",
"addressLine5": "Mr",
"city": "Bogota DC",
"postalCode": "111111",
"territoryName": "CUN",
"isocountryCode": "CO"
}
],
"retailTransactionCustomerIdentificationList": []
}
],
"retailTransactionCouponSummaryList": [],
"retailTransactionPromotionPriceDerivationRuleList": [
{
"key": {
"businessUnitGroupID": "100000000000000062",
"transactionID": "6n800bd2da8845c4937b0894d1d7e470",
"promotionID": "100000000000001002",
"priceDerivationRuleID": "100000000000000044",
"priceDerivationRuleEligibilityID": "100000000000000044"
},
"promotionDescription": "Descuento 10%",
"receiptPrinterName": "Descuento 10%",
"promotionPriceDerivationRuleSequence": "0",
"promotionPriceDerivationRuleResolution": "0",
"promotionPriceDerivationRuleTypeCode": "ZRKR",
"transactionControlBreakCode": "PO",
"priceModificationMethodCode": "RP",
"promotionOriginatorTypeCode": "01",
"externalPromotionID": "1",
"triggerQuantity": 0.0,
"discountMethodCode": "00",
"frequentShopperPointsFlag": false,
"customerGroupLoyaltyPointsDefaultQuantity": 0.0,
"prohibitPrintFlag": false,
"promotionTypeName": "TI",
"calculationBase": "00",
"pointsConversionAmount": 0.01,
"noEffectOnSubsequentPriceDerivationRulesFlag": false,
"prohibitTransactionRelatedPriceDerivationRulesFlag": false,
"exclusiveFlag": false,
"requireUserInteractionFlag": false,
"considerPreviousPriceDerivationRulesFlag": false,
"appliedCount": 1.0,
"printoutValidityPeriod": 0.0
}
],
"retailTransactionManufacturerCouponSummaryList": [],
"emailRequestedFlag": false,
"receiptDateTimeUTC0": "2023-07-31T10:24:22.322-0500",
"promotionTimestampUTC0": "2023-07-31T10:24:22.322-0500"
}
]
},
"addedOrModifiedLineItems": [
{
"key": {
"businessUnitGroupID": "100000000000000062",
"transactionID": "6n800bd2da8845c4937b0894d1d7e470",
"retailTransactionLineItemSequenceNumber": 0
},
"beginDateTimestamp": "2023-07-31T10:42:46.042",
"voidFlag": false,
"endDateTimestamp": "2023-07-31T10:42:46.932",
"entryMethodCode": "Keyed",
"retailTransactionLineItemTypeCode": "SR",
"workstationID": "104",
"workstationTypeCode": "MOB",
"keyedOfflineCode": "OL",
"beginDateTimestampUTC0": "2023-07-31T10:42:46.042-0500",
"endDateTimestampUTC0": "2023-07-31T10:42:46.932-0500",
"retailTransactionLineItemI18NTextList": [
{
"key": {
"businessUnitGroupID": "100000000000000062",
"transactionID": "6n800bd2da8845c4937b0894d1d7e470",
"retailTransactionLineItemSequenceNumber": 0,
"textSequenceNumber": 1,
"languageID": "es_ES",
"category": "LABL"
},
"text": "Queso Cheddar",
"pictureFlag": false
},
{
"key": {
"businessUnitGroupID": "100000000000000062",
"transactionID": "6n800bd2da8845c4937b0894d1d7e470",
"retailTransactionLineItemSequenceNumber": 0,
"textSequenceNumber": 1,
"languageID": "es_ES",
"category": "NM_ITM"
},
"text": "Queso Cheddar",
"pictureFlag": false
}
],
"saleReturnLineItemList": [
{
"key": {
"businessUnitGroupID": "100000000000000062",
"transactionID": "6n800bd2da8845c4937b0894d1d7e470",
"retailTransactionLineItemSequenceNumber": 0
},
"itemID": "31100006",
"unitOfMeasureCode": "PCE",
"itemType": "CO",
"regularUnitPrice": 5500.0,
"regularUnitPriceQuantity": 1.0,
"actualUnitPrice": 5500.0,
"actualUnitPriceQuantity": 1.0,
"quantity": 1,
"units": 1.0,
"extendedAmount": 5500.0,
"extendedDiscountAmount": -550.0,
"sellUnitRetailPriceEntryMethodCode": "PRIC",
"actionCode": "SI",
"quantityInputMethod": "01",
"manualWeightInputFlag": false,
"receiptText": "Queso Cheddar",
"receiptDescription": "Queso Cheddar",
"allowFoodStampFlag": false,
"registrationNumber": "31100006",
"negativeLineItemFlag": false,
"discountFlag": true,
"frequentShopperPointsEligibilityFlag": true,
"priceChangeTypeCode": "00",
"priceTypeCode": "01",
"grandExtendedAmount": 4950.0,
"notConsideredByLoyaltyEngineFlag": false,
"merchandiseHierarchyGroupName": "Comida",
"merchandiseHierarchyGroupDescription": "Comida",
"itemClassCode": "HAWA",
"prohibitTaxExemptFlag": false,
"prohibitReturnFlag": false,
"warrantyDuration": 0.0,
"taxExemptCode": "00",
"mainPOSItemID": "3360372018575",
"mainMerchandiseHierarchyGroupIDQualifier": "MAIN",
"mainMerchandiseHierarchyGroupID": "030000",
"taxReductionAmount": 0.0,
"taxGroupID": "A1",
"taxReceiptPrintCode": "B",
"originalTaxGroupID": "A1",
"fixedPriceFlag": false,
"saleReturnLineItemExtensionList": [
{
"key": {
"businessUnitGroupID": "100000000000000062",
"transactionID": "6n800bd2da8845c4937b0894d1d7e470",
"retailTransactionLineItemSequenceNumber": 0,
"extensionKey": "UOM_NAME",
"extensionSequenceNumber": 0
},
"extensionValue": "pieza"
},
{
"key": {
"businessUnitGroupID": "100000000000000062",
"transactionID": "6n800bd2da8845c4937b0894d1d7e470",
"retailTransactionLineItemSequenceNumber": 0,
"extensionKey": "QuantityInputTypeCode",
"extensionSequenceNumber": 0
},
"extensionValue": "00"
}
],
"saleReturnLineItemPriceList": [
{
"key": {
"businessUnitGroupID": "100000000000000062",
"transactionID": "6n800bd2da8845c4937b0894d1d7e470",
"retailTransactionLineItemSequenceNumber": 0,
"priceTypeCode": "01"
},
"priceAmount": 5500.0,
"packagePriceQuantity": 1
}
],
"retailPriceModifierList": [
{
"key": {
"businessUnitGroupID": "100000000000000062",
"transactionID": "6n800bd2da8845c4937b0894d1d7e470",
"retailTransactionLineItemSequenceNumber": 0,
"retailPriceModifierSequenceNumber": 0
},
"promotionID": "100000000000001002",
"priceDerivationRuleID": "100000000000000044",
"priceDerivationRuleEligibilityID": "100000000000000044",
"percent": 10.0,
"amount": -550.0,
"adjustmentMethodCode": "DC",
"eligibilityTypeCode": "MSTR",
"extendedAmountBeforeModification": 5500.0,
"extendedAmountAfterModification": 4950.0,
"appliedQuantity": 1.0,
"extraAmount": 0.0,
"roundingAmount": 0.0,
"externalSystemOriginatorFlag": false,
"calculationBaseAmount": 5500.0
}
],
"frequentShopperPointsModifierList": [],
"saleReturnLineItemModifierCouponList": [],
"saleReturnLineItemModifierReferenceList": [
{
"key": {
"businessUnitGroupID": "100000000000000062",
"transactionID": "6n800bd2da8845c4937b0894d1d7e470",
"promotionID": "100000000000001002",
"priceDerivationRuleID": "100000000000000044",
"priceDerivationRuleEligibilityID": "100000000000000044",
"retailTransactionLineItemSequenceNumber": 0
},
"referenceQuantity": 1.0
}
],
"saleReturnLineItemMerchandiseHierarchyGroupList": [
{
"key": {
"businessUnitGroupID": "100000000000000062",
"transactionID": "6n800bd2da8845c4937b0894d1d7e470",
"retailTransactionLineItemSequenceNumber": 0,
"merchandiseHierarchyGroupIDQualifier": "MAIN",
"merchandiseHierarchyGroupID": "030000"
}
},
{
"key": {
"businessUnitGroupID": "100000000000000062",
"transactionID": "6n800bd2da8845c4937b0894d1d7e470",
"retailTransactionLineItemSequenceNumber": 0,
"merchandiseHierarchyGroupIDQualifier": "VIRT",
"merchandiseHierarchyGroupID": "VE1"
}
}
],
"posdepartmentID": "7",
"wicflag": false,
"positemID": "31100006"
}
]
}
],
"deletedLineItems": [],
"closedLineItems": [
{
"businessUnitGroupID": 100000000000000062,
"transactionID": "6n800bd2da8845c4937b0894d1d7e470",
"retailTransactionLineItemSequenceNumber": 0
}
],
"promotionInputRequests": [],
"addedOrModifiedTransactionExtensions": [],
"addedTransactionAdditionalPrintouts": [],
"addedPriceDerivationRules": [],
"addedOrModifiedSaleReturnLineItemPrices": [],
"deletedTransactionAdditionalPrintouts": []
},
"additionalEntries": [],
"filtered": true,
"statusOk": true,
"mainPOSItemId": "3360372018575",
"posItemId": "31100006",
"itemId": "31100006",
"itemName": "Queso Cheddar",
"itemDescription": "Queso Cheddar",
"forcePriceInput": false,
"forceQuantityInput": false,
"priceInputSignal": false,
"quantityInputSignal": false,
"promotionTriggerSignal": false,
"salesRestrictions": [],
"salesRestrictionList": [],
"prepaidItem": false,
"hasLinkedItems": false,
"forceReturnReasonInput": false,
"forceSerialNumberInput": false,
"variantItemsAvailable": false,
"emptiesReturn": false,
"accumulateExistingQuantity": false,
"price": 0.0,
"itemKey": {
"businessUnitGroupID": 100000000000000062,
"itemID": "31100006",
"uomCode": "PCE"
},
"usedBarcode": "31100006",
"discountIconList": [],
"hasInvalidQuantity": false,
"comboMealItem": false
}
\ No newline at end of file
{
"primaryEntry": {
"transaction": {
"key": {
"businessUnitGroupID": "100000000000000062",
"transactionID": "6n800bd2da8845c4937b0894d1d7e470"
},
"operatorID": "1004",
"workstationID": "104",
"businessUnitID": "1000",
"businessDayDate": "2023-07-31T00:00:00.000",
"sequenceNumber": 2,
"transactionTypeCode": "RTLTRN",
"beginDateTimestamp": "2023-07-31T10:24:22.322",
"cancelledFlag": false,
"suspendedFlag": false,
"trainingFlag": false,
"keyedOfflineFlag": "BO",
"workerID": "1004",
"workerFirstName": "Adam",
"workerLastName": "Administrator",
"internalSequenceNumber": 1,
"fiscalFlag": false,
"beginDateTimestampUTC0": "2023-07-31T10:24:22.322-0500",
"transactionCategoryList": [],
"transactionExtensionList": [
{
"key": {
"businessUnitGroupID": "100000000000000062",
"transactionID": "6n800bd2da8845c4937b0894d1d7e470",
"extensionKey": "WORKSTATION_TYPE_CODE",
"extensionSequenceNumber": 0
},
"extensionValue": "MOB"
}
],
"endWorkstationID": "104",
"isocurrencyCode": "COP",
"retailTransactionList": [
{
"key": {
"businessUnitGroupID": "100000000000000062",
"transactionID": "6n800bd2da8845c4937b0894d1d7e470"
},
"retailTransactionTypeCode": "SA",
"tillID": "103",
"receiptDateTime": "2023-07-31T10:24:22.322",
"receiptPrintoutFlag": false,
"promotionTimestamp": "2023-07-31T10:24:22.322",
"retailTransactionLineItemList": [],
"retailTransactionTotalList": [
{
"key": {
"businessUnitGroupID": "100000000000000062",
"transactionID": "6n800bd2da8845c4937b0894d1d7e470",
"transactionTotalTypeCode": "TOTAL"
},
"amount": 12330.0
},
{
"key": {
"businessUnitGroupID": "100000000000000062",
"transactionID": "6n800bd2da8845c4937b0894d1d7e470",
"transactionTotalTypeCode": "SUBTOTAL"
},
"amount": 12330.0
},
{
"key": {
"businessUnitGroupID": "100000000000000062",
"transactionID": "6n800bd2da8845c4937b0894d1d7e470",
"transactionTotalTypeCode": "SUBTOTAL_DISCOUNT"
},
"amount": 12330.0
},
{
"key": {
"businessUnitGroupID": "100000000000000062",
"transactionID": "6n800bd2da8845c4937b0894d1d7e470",
"transactionTotalTypeCode": "TOTAL_TIP"
},
"amount": 0.0
}
],
"retailTransactionCustomerList": [
{
"key": {
"businessUnitGroupID": "100000000000000062",
"transactionID": "6n800bd2da8845c4937b0894d1d7e470",
"customerID": "1234567890",
"addressTypeCode": "CO"
},
"genderType": "M",
"birthDayNumber": 12,
"birthMonthNumber": 1,
"birthYearNumber": 1985,
"addressTypeDescription": "loyaltyCard",
"genericFlag": false,
"customerIDEntryMethodCode": "KEY",
"firstName": "David",
"lastName": "Buyer",
"retailTransactionCustomerGroupAssignmentList": [
{
"key": {
"businessUnitGroupID": "100000000000000062",
"transactionID": "6n800bd2da8845c4937b0894d1d7e470",
"customerID": "1234567890",
"addressTypeCode": "CO",
"customerGroupID": "LC"
}
}
],
"retailTransactionCustomerContactMethodList": [
{
"key": {
"businessUnitGroupID": "100000000000000062",
"transactionID": "6n800bd2da8845c4937b0894d1d7e470",
"customerID": "1234567890",
"addressTypeCode": "CO",
"contactPurposeTypeCode": "DEFAULT",
"contactMethodTypeCode": "HOME"
},
"contactTypeCode": "AD",
"addressLine1": "Calle 100 8A-55",
"addressLine5": "Mr",
"city": "Bogota DC",
"postalCode": "111111",
"territoryName": "CUN",
"isocountryCode": "CO"
}
],
"retailTransactionCustomerIdentificationList": []
}
],
"retailTransactionCouponSummaryList": [],
"retailTransactionPromotionPriceDerivationRuleList": [
{
"key": {
"businessUnitGroupID": "100000000000000062",
"transactionID": "6n800bd2da8845c4937b0894d1d7e470",
"promotionID": "100000000000001002",
"priceDerivationRuleID": "100000000000000044",
"priceDerivationRuleEligibilityID": "100000000000000044"
},
"promotionDescription": "Descuento 10%",
"receiptPrinterName": "Descuento 10%",
"promotionPriceDerivationRuleSequence": "0",
"promotionPriceDerivationRuleResolution": "0",
"promotionPriceDerivationRuleTypeCode": "ZRKR",
"transactionControlBreakCode": "PO",
"priceModificationMethodCode": "RP",
"promotionOriginatorTypeCode": "01",
"externalPromotionID": "1",
"triggerQuantity": 0.0,
"discountMethodCode": "00",
"frequentShopperPointsFlag": false,
"customerGroupLoyaltyPointsDefaultQuantity": 0.0,
"prohibitPrintFlag": false,
"promotionTypeName": "TI",
"calculationBase": "00",
"pointsConversionAmount": 0.01,
"noEffectOnSubsequentPriceDerivationRulesFlag": false,
"prohibitTransactionRelatedPriceDerivationRulesFlag": false,
"exclusiveFlag": false,
"requireUserInteractionFlag": false,
"considerPreviousPriceDerivationRulesFlag": false,
"appliedCount": 1.0,
"printoutValidityPeriod": 0.0
}
],
"retailTransactionManufacturerCouponSummaryList": [],
"emailRequestedFlag": false,
"receiptDateTimeUTC0": "2023-07-31T10:24:22.322-0500",
"promotionTimestampUTC0": "2023-07-31T10:24:22.322-0500"
}
]
},
"addedOrModifiedLineItems": [
{
"key": {
"businessUnitGroupID": "100000000000000062",
"transactionID": "6n800bd2da8845c4937b0894d1d7e470",
"retailTransactionLineItemSequenceNumber": 1
},
"beginDateTimestamp": "2023-07-31T10:52:41.681",
"voidFlag": false,
"endDateTimestamp": "2023-07-31T10:52:41.712",
"entryMethodCode": "Keyed",
"retailTransactionLineItemTypeCode": "SR",
"workstationID": "104",
"workstationTypeCode": "MOB",
"keyedOfflineCode": "OL",
"beginDateTimestampUTC0": "2023-07-31T10:52:41.681-0500",
"endDateTimestampUTC0": "2023-07-31T10:52:41.712-0500",
"retailTransactionLineItemI18NTextList": [
{
"key": {
"businessUnitGroupID": "100000000000000062",
"transactionID": "6n800bd2da8845c4937b0894d1d7e470",
"retailTransactionLineItemSequenceNumber": 1,
"textSequenceNumber": 1,
"languageID": "es_ES",
"category": "NM_ITM"
},
"text": "Desodorante Spray",
"pictureFlag": false
},
{
"key": {
"businessUnitGroupID": "100000000000000062",
"transactionID": "6n800bd2da8845c4937b0894d1d7e470",
"retailTransactionLineItemSequenceNumber": 1,
"textSequenceNumber": 9,
"languageID": "es_ES",
"category": "STXT"
},
"text": "10% Cupon",
"pictureFlag": false
}
],
"saleReturnLineItemList": [
{
"key": {
"businessUnitGroupID": "100000000000000062",
"transactionID": "6n800bd2da8845c4937b0894d1d7e470",
"retailTransactionLineItemSequenceNumber": 1
},
"itemID": "31100009",
"unitOfMeasureCode": "PCE",
"itemType": "CO",
"regularUnitPrice": 8200.0,
"regularUnitPriceQuantity": 1.0,
"actualUnitPrice": 8200.0,
"actualUnitPriceQuantity": 1.0,
"quantity": 1,
"units": 1.0,
"extendedAmount": 8200.0,
"extendedDiscountAmount": -820.0,
"sellUnitRetailPriceEntryMethodCode": "PRIC",
"actionCode": "SI",
"quantityInputMethod": "01",
"manualWeightInputFlag": false,
"receiptText": "Desodorante Spray",
"receiptDescription": "Desodorante Spray",
"allowFoodStampFlag": false,
"registrationNumber": "31100009",
"negativeLineItemFlag": false,
"discountFlag": true,
"frequentShopperPointsEligibilityFlag": true,
"priceChangeTypeCode": "00",
"priceTypeCode": "00",
"grandExtendedAmount": 7380.0,
"notConsideredByLoyaltyEngineFlag": false,
"merchandiseHierarchyGroupName": "Aseo Personal",
"merchandiseHierarchyGroupDescription": "Aseo Personal",
"itemClassCode": "HAWA",
"prohibitTaxExemptFlag": false,
"prohibitReturnFlag": false,
"warrantyDuration": 0.0,
"taxExemptCode": "00",
"mainPOSItemID": "7123456000677",
"mainMerchandiseHierarchyGroupIDQualifier": "MAIN",
"mainMerchandiseHierarchyGroupID": "040400",
"taxReductionAmount": 0.0,
"taxGroupID": "A2",
"taxReceiptPrintCode": "C",
"originalTaxGroupID": "A2",
"fixedPriceFlag": false,
"saleReturnLineItemExtensionList": [
{
"key": {
"businessUnitGroupID": "100000000000000062",
"transactionID": "6n800bd2da8845c4937b0894d1d7e470",
"retailTransactionLineItemSequenceNumber": 1,
"extensionKey": "UOM_NAME",
"extensionSequenceNumber": 0
},
"extensionValue": "pieza"
},
{
"key": {
"businessUnitGroupID": "100000000000000062",
"transactionID": "6n800bd2da8845c4937b0894d1d7e470",
"retailTransactionLineItemSequenceNumber": 1,
"extensionKey": "QuantityInputTypeCode",
"extensionSequenceNumber": 0
},
"extensionValue": "00"
}
],
"saleReturnLineItemPriceList": [
{
"key": {
"businessUnitGroupID": "100000000000000062",
"transactionID": "6n800bd2da8845c4937b0894d1d7e470",
"retailTransactionLineItemSequenceNumber": 1,
"priceTypeCode": "00"
},
"priceAmount": 8200.0,
"packagePriceQuantity": 1
}
],
"retailPriceModifierList": [
{
"key": {
"businessUnitGroupID": "100000000000000062",
"transactionID": "6n800bd2da8845c4937b0894d1d7e470",
"retailTransactionLineItemSequenceNumber": 1,
"retailPriceModifierSequenceNumber": 0
},
"promotionID": "100000000000001002",
"priceDerivationRuleID": "100000000000000044",
"priceDerivationRuleEligibilityID": "100000000000000044",
"percent": 10.0,
"amount": -820.0,
"adjustmentMethodCode": "DC",
"eligibilityTypeCode": "MSTR",
"extendedAmountBeforeModification": 8200.0,
"extendedAmountAfterModification": 7380.0,
"appliedQuantity": 1.0,
"extraAmount": 0.0,
"roundingAmount": 0.0,
"externalSystemOriginatorFlag": false,
"calculationBaseAmount": 8200.0
}
],
"frequentShopperPointsModifierList": [],
"saleReturnLineItemModifierCouponList": [],
"saleReturnLineItemModifierReferenceList": [
{
"key": {
"businessUnitGroupID": "100000000000000062",
"transactionID": "6n800bd2da8845c4937b0894d1d7e470",
"promotionID": "100000000000001002",
"priceDerivationRuleID": "100000000000000044",
"priceDerivationRuleEligibilityID": "100000000000000044",
"retailTransactionLineItemSequenceNumber": 1
},
"referenceQuantity": 1.0
}
],
"saleReturnLineItemMerchandiseHierarchyGroupList": [
{
"key": {
"businessUnitGroupID": "100000000000000062",
"transactionID": "6n800bd2da8845c4937b0894d1d7e470",
"retailTransactionLineItemSequenceNumber": 1,
"merchandiseHierarchyGroupIDQualifier": "MAIN",
"merchandiseHierarchyGroupID": "040400"
}
},
{
"key": {
"businessUnitGroupID": "100000000000000062",
"transactionID": "6n800bd2da8845c4937b0894d1d7e470",
"retailTransactionLineItemSequenceNumber": 1,
"merchandiseHierarchyGroupIDQualifier": "VIRT",
"merchandiseHierarchyGroupID": "VE1"
}
}
],
"posdepartmentID": "8",
"wicflag": false,
"positemID": "31100009"
}
]
}
],
"deletedLineItems": [],
"closedLineItems": [
{
"businessUnitGroupID": 100000000000000062,
"transactionID": "6n800bd2da8845c4937b0894d1d7e470",
"retailTransactionLineItemSequenceNumber": 1
}
],
"promotionInputRequests": [],
"addedOrModifiedTransactionExtensions": [],
"addedTransactionAdditionalPrintouts": [],
"addedPriceDerivationRules": [],
"addedOrModifiedSaleReturnLineItemPrices": [],
"deletedTransactionAdditionalPrintouts": []
},
"additionalEntries": [],
"filtered": true,
"statusOk": true,
"mainPOSItemId": "7123456000677",
"posItemId": "31100009",
"itemId": "31100009",
"itemName": "Desodorante Spray",
"itemDescription": "Desodorante Spray",
"forcePriceInput": false,
"forceQuantityInput": false,
"priceInputSignal": false,
"quantityInputSignal": false,
"promotionTriggerSignal": false,
"salesRestrictions": [],
"salesRestrictionList": [],
"prepaidItem": false,
"hasLinkedItems": false,
"forceReturnReasonInput": false,
"forceSerialNumberInput": false,
"variantItemsAvailable": false,
"emptiesReturn": false,
"accumulateExistingQuantity": false,
"price": 0.0,
"itemKey": {
"businessUnitGroupID": 100000000000000062,
"itemID": "31100009",
"uomCode": "PCE"
},
"usedBarcode": "31100009",
"discountIconList": [],
"hasInvalidQuantity": false,
"comboMealItem": false
}
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment