Skip to content

Instantly share code, notes, and snippets.

@Mozu-CS
Last active March 31, 2016 22:10
Show Gist options
  • Save Mozu-CS/7cffac510bdcbc3a0baa3dcaad85fa35 to your computer and use it in GitHub Desktop.
Save Mozu-CS/7cffac510bdcbc3a0baa3dcaad85fa35 to your computer and use it in GitHub Desktop.
Blog Posts -- 3/31/2016
{
"template": "<path>",
"defaults": {},
"internalRoute": "Arcjs",
"functionId": "<Arc function name>",
"mappings": {},
"validators": {}
}
{
/**Unique id for the event */
“eventId”: “System.String”,
/**
* The unique identifier of the API request associated with the event action, which might contain multiple actions. */
“correlationId”: “System.String”,
/**
* The unique identifier of the entity that caused the event. For example, if the event is "product.created", the entity ID value represents the product code of the product that was created. */
“entityId”: “System.String”,
/**
* Indicates if the event is a test request or test entity. If true, the generated and captured event record was generated as a test request for an application. */
“isTest”: “System.Boolean”
/**
* The type of event that was performed, such as "product.created" or "category.deleted".*/
“topic”: “System.String”
/**
* Extended properties. Note: This is purposefully not a CollectionBase type wrapper so consumers start to get used to not having counts returned. */
“extendedProperties”: [
{
“key”: “System.String”,
“value”: “System.String”
}
]
/**
* Status of the event in Event Queue */
“status”: “System.String”,
/** Error or status message */
“message”: “System.String”,
“eventCategory”: “System.String”,
“timestamp”: “System.String”,
}
{
"actionName":"AuthorizePayment",
"currencyCode":"USD",
"checkNumber":null,
"returnUrl":null,
"cancelUrl":null,
"amount":<amount>,
"interactionDate":null,
"newBillingInfo":
{
"paymentType":"<PaymentType>",
"paymentWorkflow":"<PaymentWorkflow>",
"billingContact":
{
"email":"<email from payment provider>"},
"isSameBillingShippingAddress":false,
"card":null,
"auditInfo":
{
"updateDate":"2016-03-29T18:22:28.125Z",
"createDate":"2016-03-29T18:22:28.044Z",
"updateBy":"7e573de395f94602829622c395582ec7",
"createBy":"7e573de395f94602829622c395582ec7"
},
"storeCreditCode":null,
"externalTransactionId":null,
"data":null
},
"referenceSourcePaymentId":null,
"manualGatewayInteraction":null,
"externalTransactionId":"<externalId>",
"data":null
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment