All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Timeout updated to 60s
- SKU Not Found validation added
- Order client reversed to checkout
- Order Discount value being used
- Comission Percentual is now being divided by 100
- Order Date to the export sheet
- Commission Percentual sheet column name changed
- Discount value validation
- affiliate name and email to export orders table
- Format
date-time
to orderDate on affiliatesOrders schema
- Formatting commission and price values to be exported
- status to spreadsheet of Orders
- Checkout orders client to masterdata orders
- Status input type on affiliateOrders is now an enum
- Verification to
ongoing
andcancel
status onaffiliatesOrders
filter
affiliates-commission-service
typings version onpackage.json
- VTEX Setup -i environment adjustments
- Added a new layer of data that will return specific order values based on three different status
cancelled
,invoiced
andpayment-approved
- Fix refId not being saved on setCommissionEventHandler
- Add payment-pending topic to order status change event handler
- Update export method to use the MD scroll function
- Update dependencies
- Remove userEmail from the return of affiliateOrders for an external source
- Fix vbase response status code variable name
- Fix the file import logic for the first file upload
- New totalizers field to the affiliateOrders query
- Get last imported commission file service route
- Commission importing now saves file to VBase
- Commission importing now validates file columns before notifying broadcaster
- Masterdata aggregations client
- Endpoint to consult affiliate orders aggregations
- Sender validation for commissions importing event handler
- GraphQL mutation and resolver for importing commissions by SKU sheet
- GraphQL mutation and resolver for exporting affiliate orders sheet
- GraphQL mutation and resolver for exporting commisions by SKU sheet
- Exporting service for both masterdata entities
- updateCommission mutation
- GraphQL Schema, typings and resolvers for Affiliate Orders and Commissions By SKU
- Function to get default commission from affiliates app settings
- Endpoint to be used by external sources to get the affiliates orders
- Bumps follow-redirects from 1.14.6 to 1.14.7
- Auth client
- Get the variable sku commission in the validateChangedItems middleware
- Get the variable sku commission in the parseData middleware
- Update order types
- CommissionBySKU service route
- New order typings
- New constants
- Event handler for the invoiced order from orderBroadcast
- Required attrs to the affiliatesOrders MD entity
- Update the updateOrderStatus middleware to consider the new required attrs
- CommissionBySKU MD entity and client
- CommissionBySKUService
- updateOrderStatus event handler
- Change setAffiliatesOrders event topic to order-created
- Checkout client
- Order payment approved event handler
- AffiliatesOrders MD entity and client