RCG POS Event Listener - Implementation Template

Data mappings

This document provides information generated from the DataWeave scripts included in the project, such as function definitions, variable definitions, and data mapping tables.

ModuleDescription
map-PredictSpring-orders-to-cimPredictSpring to Orders CIM mapping
map-PredictSpring-loyalty-customer-to-cimPredictSpring to Loyalty Customer CIM mapping

map-PredictSpring-orders-to-cim

PredictSpring to Orders CIM mapping

Source: ./src/main/resources/dwl/map-PredictSpring-orders-to-cim.dwl

Mapping Tables

CIMPredictSpringDescription
id""""
name"SalesOrder-" ++ payload.orderIdName of the order.
descriptionproductList.imageURLImageURL.
orderNumberorderIdorderId.
requestedStartDateorderDateorderDate.
orderSourceorderSourceorderSource.
lastDateToReturnTimeStamplastDateToReturnTimeStamplast Date To Return TimeStamp.
salesOrderTypeINITIALHardcoded to INITIAL.
grandTotalAmounttotalAmountTotal Amount.
totalDeliveryFeeAmountshippingSubTotalShipping SubTotal.
totalTaxAmounttaxSubTotalTaxSubTotal.
taxExemptiontaxExemptionTax Exemption.
totalProductTaxAmountorderSubTotalorderSubTotal.
orderLineItems.orderProductNumberproductIdproductId.
orderLineItems.allocationGroupNamevariantGroupIdVariant GroupId.
orderLineItems.descriptionnameName.
orderLineItems.totalPriceAmountpricePrice.
orderLineItems.orderedQuantityquantityquantity.
orderLineItems.unitTaxAmountperUnitTaxAmountperUnitTaxAmount.
orderLineItems.unitPriceAmountproductPriceAdjustments.basePriceunitPriceAmount.
orderLineItems.quantityOrderedUOMUNITHardcoded to Unit.
orderLineItems.orderProductNumberproductList.productIdorderProductNumber.
orderLineItems.sizesizesize.
orderLineItems.colorcolorcolor.
orderLineItems.itemStatusitemStatus
orderLineItems.unitTaxAmountperUnitTaxAmountperUnitTaxAmount.
orderLineItems.discountAmountdiscountdiscount.
orderLineItems.totalUnitPriceAmountproductList.totaltotal.
orderLineItems.lineAdjustmentSubTotalAmountadjustedPriceadjustedPrice.
orderLineItems.productgtingtin.
orderLineItems.fulfillmentTypefulfillmentTypefulfillmentType.
orderLineItems.fulfillmentSubTypefulfillmentSubTypefulfillmentSubType.
orderLineItems.salesAssociateIdsalesAssociateIdsalesAssociateId.
orderLineItems.salesAssociateAttribution.orderItemIdorderItemIdorderItemId.
orderLineItems.salesAssociateAttribution.storeIdstoreIdstoreId.
orderLineItems.salesAssociateAttribution.storeAssociateIdstoreAssociateIdstoreAssociateId.
orderLineItems.salesAssociateAttribution.contributionPercentagecontributionPercentagecontributionPercentage.
orderLineItems.salesAssociateAttribution.orderIdorderIdorderId.
orderLineItems.salesAssociateAttribution.expiryDateexpiryDateexpiryDate.
orderProductTax.countrycountryCodecountryCode.
orderProductTax.nametaxTypeType of tax.
orderProductTax.taxRatePercenttaxRatetaxRate.
orderProductTax.taxClasstaxClasstaxClass.
orderProductTax.taxCodetaxCodetaxCode.
orderProductTax.salesOrderTaxAmounttaxAmounttaxAmount.
orderProductTax.taxAmountperUnitTaxAmountperUnitTaxAmount.
orderProductTax.nametaxNameName of the tax.
orderProductTax.descriptiondisplayTaxNamedisplayTaxName.
orderProductTax.returnedTaxAmountreturnedTaxAmountreturnedTaxAmount.
orderAddress.id""""
orderAddress.personNamebillingAddress.firstName + payload.billingAddress.lastNamePersonName
orderAddress.firstNamebillingAddress.firstNamefirstName
orderAddress.lastNamebillingAddress.lastNamelastName
orderAddress.addressLine1billingAddress.addressLine1addressLine1
orderAddress.addressLine2billingAddress.addressLine2addressLine2
orderAddress.cityNamebillingAddress.citycity
orderAddress.stateProvinceNamebillingAddress.statestate
orderAddress.postalCodeTextbillingAddress.postalCodepostalCode
orderAddress.countryNamebillingAddress.countryCodecountryCode
orderAddress.personNameshippingAddress.firstName +payload.shippingAddress.lastNamePersonName
orderAddress.firstNameshippingAddress.firstNamefirstName
orderAddress.lastNameshippingAddress.lastNamelastName
orderAddress.addressLine1shippingAddress.addressLine1addressLine1
orderAddress.addressLine2shippingAddress.addressLine2addressLine2
orderAddress.cityNameshippingAddress.citycity
orderAddress.stateProvinceNameshippingAddress.statestate
orderAddress.postalCodeTextshippingAddress.postalCodepostalCode
orderAddress.countryNameshippingAddress.countryCodecountryCode
orderAddress.contactPointType[BillToAddress]or[ShipToAddress]Type of contact
fullFillmentLocation.idpayload.productList.fulfillmentLocation.storeIdstoreId
fullFillmentLocation.namepayload.productList.fulfillmentLocation.namename
fullFillmentLocation.addressLine1payload.productList.fulfillmentLocation.addressLine1addressLine1
fullFillmentLocation.cityNamepayload.productList.fulfillmentLocation.citycity
fullFillmentLocation.stateProvinceNamepayload.productList.fulfillmentLocation.statestate
fullFillmentLocation.countryNamepayload.productList.fulfillmentLocation.countryCodecountryCode
fullFillmentLocation.geoLatitudepayload.productList.fulfillmentLocation.latitudelatitude
fullFillmentLocation.geoLongitudepayload.productList.fulfillmentLocation.longitudelongitude
fullFillmentLocation.allowTryAtStorepayload.productList.fulfillmentLocation.allowTryAtStoreallowTryAtStore
fullFillmentLocation.scanCodeTypepayload.productList.fulfillmentLocation.productScanCodeTypeproductScanCodeType
fullFillmentLocation.timeZonepayload.productList.fulfillmentLocation.timeZoneIdtimeZoneId
fullFillmentLocation.storeTypepayload.productList.fulfillmentLocation.storeTypestoreType
fullFillmentLocation.contactPointType[fullFillmentLocation]Type of contact
store.idpayload.productList.store.storeIdstoreId
store.namepayload.productList.store.namename
store.addressLine1payload.productList.store.addressLine1addressLine1
store.cityNamepayload.productList.store.citycity
store.stateProvinceNamepayload.productList.store.statestate
store.countryNamepayload.productList.store.countryCodecountryCode
store.geoLatitudepayload.productList.store.latitudelatitude
store.geoLongitudepayload.productList.store.longitudelongitude
store.allowTryAtStorepayload.productList.store.allowTryAtStoreallowTryAtStore
store.scanCodeTypepayload.productList.store.productScanCodeTypeproductScanCodeType
store.timeZonepayload.productList.store.timeZoneIdtimeZoneId
store.storeTypepayload.productList.store.storeTypestoreType
store.contactPointType[fullFillmentLocation]Type of contact
party.contactPoints.contactPointTypeContactPointAddress or ContactPointEmail or ContactPointPhoneType of contactPoint.
party.contactpoints.id""null
activeFromDatenow timestampActive from Date.
party.contactPoints.addressLine1profile.address.addressLine1AddressLine1.
party.contactPoints.cityNameprofile.address.cityCityName
party.contactPoints.postalCodeTextprofile.address.postalCodePostalCode.
party.contactPoints.stateProvinceNameprofile.address.stateState.
party.contactPoints.countryNameprofile.address.countryCodeCountryCode.
party.contactPoints.emailAddressprofile.emailEmail.
party.contactPoints.telephoneNumberprofile.phoneMobilePhoneMobile.
orderPayment. idnullnull
orderPayment.transactionIdpayload.paymentDetails.transactionIdtransactionId
orderPayment.paymentIdpayload.paymentDetails.paymentIdpaymentId
orderPayment.paymentStatuspayload.paymentDetails.paymentStatuspaymentStatus
orderPayment.paymentMethodpayload.paymentDetails.paymentMethodpaymentMethod
orderPayment.paymentDevicepayload.paymentDetails.paymentDevicepaymentDevice
orderPayment.paymentDatepayload.paymentDetails.captureDatecaptureDate
orderPayment.refundedAmountpayload.paymentDetails.totalRefundedAmounttotalRefundedAmount
orderPayment.carriedOverForExchangepayload.paymentDetails.totalAmountCarriedOverForExchangetotalAmountCarriedOverForExchange
orderPayment.paymentSequenceNumberpayload.paymentDetails.paymentSequenceNumberpaymentSequenceNumber
orderPayment.authStatuspayload.paymentDetails.authStatusauthStatus
orderPayment.captureStatuspayload.paymentDetails.captureStatuscaptureStatus
orderPayment.cardPresentpayload.paymentDetails.cardPresentcardPresent
orderPayment.expiryDatepayload.paymentDetails.expiryDateexpiryDate
productPriceAdjustment.idprcAdj.idid
productPriceAdjustment.descriptionprcAdj.descriptiondescription
productPriceAdjustment.adjustmentprcAdj.adjustmentadjustment
productPriceAdjustment.priceprcAdj.priceprice
productPriceAdjustment.priceAdjustmentTypeprcAdj.priceAdjustmentTypepriceAdjustmentType
productPriceAdjustment.fulfillmentTypeprcAdj.fulfillmentTypefulfillmentType
productPriceAdjustment.promoCodeprcAdj.promoCodepromoCode
productPriceAdjustment.autoAdjustmentprcAdj.autoauto
productPriceAdjustment.quantityprcAdj.quantityquantity
productPriceAdjustment.discountValueprcAdj.discountValuediscountValue
productPriceAdjustment.discountTypeprcAdj.discountTypediscountType
productPriceAdjustment.priceAfterItemDiscountpayload.productPriceAdjustments.priceAfterItemDiscountpriceAfterItemDiscount
productPriceAdjustment.totalAdjustedPricepayload.productPriceAdjustments.totalAdjustedPricetotalAdjustedPrice
productPriceAdjustment.totalTaxablePricepayload.productPriceAdjustments.totalTaxablePricetotalTaxablePrice
productPriceAdjustment.totalAddtionalChargepayload.productPriceAdjustments.totalAddtionalChargetotalAddtionalCharge
externalIds.externalIdTypeNAset to ["POS"]
externalIds.externalIdprofile.customerIdCustomerId.
externalIds.statusLastChangedDatenow""
externalIds.statusNAset to "VALID"

(back to top)

map-PredictSpring-loyalty-customer-to-cim

PredictSpring to Loyalty Customer CIM mapping

Source: ./src/main/resources/dwl/map-PredictSpring-loyalty-customer-to-cim.dwl

Mapping Tables

CIMPredictSpringDescription
id""null
partyRoleTypePartyset to Party.
party.personNamecustomers.firstName + customers.lastNameCustomer Name.
party.firstNameloyaltyProfile.address.firstNameCustomer firstName.
party.lastNameloyaltyProfile.address.lastNameCustomer lastName.
party.partyTypeIndividualHardcoded to Individual.
party.contactPoints.contactPointTypeContactPointAddress or ContactPointEmail or ContactPointPhoneType of contactPoint.
party.contactpoints.id""null
activeFromDatenow timestampActive from Date.
party.contactPoints.addressLine1profile.address.addressLine1AddressLine1.
party.contactPoints.cityNameprofile.address.cityCityName
party.contactPoints.postalCodeTextprofile.address.postalCodePostalCode.
party.contactPoints.stateProvinceNameprofile.address.stateState.
party.contactPoints.countryNameprofile.address.countryCodeCountryCode.
party.contactPoints.emailAddressprofile.emailEmail.
party.contactPoints.telephoneNumberprofile.phoneMobilePhoneMobile.
loyaltyProgramMember.accountIdprofile.customerIdCustomerId.
loyaltyProgramMember.storeIdloyaltyProfile.address.storeIdStoreId.
loyaltyProgramMember.loyaltyProgramIdloyaltyProfile.accountNumberAccountNumber.
loyaltyMemberTier.nameloyaltyProfile.currentTier.nameCurrentTier Name.
loyaltyMemberTier.displayloyaltyProfile.currentTier.displayDisplay Name.
loyaltyMemberTier.imageURLloyaltyProfile.currentTier.imageURLImageURL.
communicationSubscriptionConsent.ownerIdloyaltyProfile.customerIdCustomerId.
communicationSubscriptionConsent.namename"agreeToTC".
communicationSubscriptionConsent.ownerIdloyaltyProfile.customerIdCustomerId.
externalIds.externalIdTypeNAset to ["POS"]
externalIds.externalIdprofile.customerIdCustomerId.
externalIds.statusLastChangedDatenow""
externalIds.statusNAset to "VALID"

(back to top)

TypeTemplate
OrganizationMuleSoft
Published by
MuleSoft Solutions
Published onJan 24, 2024
Asset overview

Asset versions for 1.0.x

Asset versions
VersionActions
1.0.0