Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SMSLink integration #37

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
288 changes: 144 additions & 144 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
@@ -1,144 +1,144 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Fixed
- The card refund method is valid only if the customer has paid for the order with the card.
- Fix shipping value available in frontend
- Fix shipping value refunded in frontend
- Email fixes
- The total value of the products was multiplied by 100 in frontend
- The value of the product available for refund is displayed as "NAN" if the product did not have the tax set
- "Submitted by" was blank in history timeline because of a prop.
- Check to prevent users from viewing other users' return requests.


### Fixed
- Profile request for production environment
- Fix requests schema for older requests

### Fixed
- Access for telesales user
- GetProfile request from FE switched back to fetch instead of axios.
- Quantity and availability of a product if there is already a return request placed for that product.

### Fixed
- totalPrice for partial requests

### Changes
- Get requests method has been changed to `searchDocumentsWithPaginationInfo`

### Added
- Cache-control: no-cache on middlewares
- Navigation has been added in admin area to keep users on the same page when they open a request

### Fixed

- Update the refundedShippingValue in the front if it was declared via API.
- Filter correctly the available orders to request on MyReturnsPageAdd.

### Fixed

- Fixed orders available to show.
- Fixed API for verify package.

### Added

- API to verify package setting restock fee and shipping value to refund
### Fixed
- Fix build errors

### Added

- I18n It

- Add validation to remove orders that have already been returned through the OMS

### Added

- Add the posibility of refund a partial amount for each product (Restock Fee)
- Add the posibility of refund the total or partial value of the order shipping

### Fixed

- Denied items does not show up in the OMS as returned anymore

### Added

- Update return labels to be saved as part of request
- Add ability to view shipping labels on both customer and admin sides

### Added

- Update status history timeline to be adaptive

### Added

- Add tax logic to credit card returns

### Removed

- Removed label creation button from customer side

### Added

- Added dropdown for customers to specify condition of the product they are returning

## [2.1.0] - 2021-08-27

### Added

- Added ability to deny a return request in the request status dropdown

### Fixed

- Fix return requests being automatically denied
- Fix inability to save max days in settings
- Fix missing Beneficiary Name on request page
- Changed zip and state fields to be optional for international returns
- Fix re-rendering on initial install

## [2.0.0] - 2021-08-25

### Added

- Add Easypost integration to create shipping labels
- Add refund method with credit cards

## [1.1.0] - 2017-07-02

### Added

- New custom return options
- New extra request comment
- New scroll to top when navigating My account section
- Fixed 'null' user's address number
- Fixed admin settings layout
- Fixed outstanding requests with missing products
- Fixed cross checking outstanding requests with eligible orders

## [1.0.11] - 2021-06-12

### Added

- New CSS Handles for the My account section

## [1.0.10] - 2017-06-20

### Added

- Fix messages warn
- Code improvement
- Improve loading time
- Different client for masterdata
- Fix products schema for older versions

### Added

- Auto-update schemas
- Payment method settings - display or hide payment methods
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
## [Unreleased]
### Fixed
- The card refund method is valid only if the customer has paid for the order with the card.
- Fix shipping value available in frontend
- Fix shipping value refunded in frontend
- Email fixes
- The total value of the products was multiplied by 100 in frontend
- The value of the product available for refund is displayed as "NAN" if the product did not have the tax set
- "Submitted by" was blank in history timeline because of a prop.
- Check to prevent users from viewing other users' return requests.
### Fixed
- Profile request for production environment
- Fix requests schema for older requests
### Fixed
- Access for telesales user
- GetProfile request from FE switched back to fetch instead of axios.
- Quantity and availability of a product if there is already a return request placed for that product.
### Fixed
- totalPrice for partial requests
### Changes
- Get requests method has been changed to `searchDocumentsWithPaginationInfo`
### Added
- Cache-control: no-cache on middlewares
- Navigation has been added in admin area to keep users on the same page when they open a request
### Fixed
- Update the refundedShippingValue in the front if it was declared via API.
- Filter correctly the available orders to request on MyReturnsPageAdd.
### Fixed
- Fixed orders available to show.
- Fixed API for verify package.
### Added
- API to verify package setting restock fee and shipping value to refund
### Fixed
- Fix build errors
### Added
- I18n It
- Add validation to remove orders that have already been returned through the OMS
### Added
- Add the posibility of refund a partial amount for each product (Restock Fee)
- Add the posibility of refund the total or partial value of the order shipping
### Fixed
- Denied items does not show up in the OMS as returned anymore
### Added
- Update return labels to be saved as part of request
- Add ability to view shipping labels on both customer and admin sides
### Added
- Update status history timeline to be adaptive
### Added
- Add tax logic to credit card returns
### Removed
- Removed label creation button from customer side
### Added
- Added dropdown for customers to specify condition of the product they are returning
## [2.1.0] - 2021-08-27
### Added
- Added ability to deny a return request in the request status dropdown
### Fixed
- Fix return requests being automatically denied
- Fix inability to save max days in settings
- Fix missing Beneficiary Name on request page
- Changed zip and state fields to be optional for international returns
- Fix re-rendering on initial install
## [2.0.0] - 2021-08-25
### Added
- Add Easypost integration to create shipping labels
- Add refund method with credit cards
## [1.1.0] - 2017-07-02
### Added
- New custom return options
- New extra request comment
- New scroll to top when navigating My account section
- Fixed 'null' user's address number
- Fixed admin settings layout
- Fixed outstanding requests with missing products
- Fixed cross checking outstanding requests with eligible orders
## [1.0.11] - 2021-06-12
### Added
- New CSS Handles for the My account section
## [1.0.10] - 2017-06-20
### Added
- Fix messages warn
- Code improvement
- Improve loading time
- Different client for masterdata
- Fix products schema for older versions
### Added
- Auto-update schemas
- Payment method settings - display or hide payment methods
4 changes: 4 additions & 0 deletions common/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export const SETTINGS_SCHEMA = {
paymentCard: { type: 'boolean' },
paymentVoucher: { type: 'boolean' },
termsUrl: { type: 'string' },
allowSMSLinkIntegration: { type: 'boolean' },
options: {
type: 'array',
items: { $ref: '#/$defs/options' },
Expand All @@ -29,6 +30,7 @@ export const SETTINGS_SCHEMA = {
'v-security': {
allowGetAll: true,
publicFilter: [
'allowSMSLinkIntegration',
'maxDays',
'excludedCategories',
'paymentBank',
Expand All @@ -44,6 +46,7 @@ export const SETTINGS_SCHEMA = {
'v-default-fields': [
'id',
'createdIn',
'allowSMSLinkIntegration',
'maxDays',
'excludedCategories',
'paymentBank',
Expand All @@ -56,6 +59,7 @@ export const SETTINGS_SCHEMA = {
'v-indexed': [
'id',
'createdIn',
'allowSMSLinkIntegration',
'maxDays',
'excludedCategories',
'paymentBank',
Expand Down
5 changes: 3 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@ VTEX Return App

- Open the VTEX App Store and install this app on your store, or run the following command on VTEX toolbelt:

> vtex install vtex.return-app@1.x
> vtex install vtex.return-app@2.x

- From the left side access the `Returns > Requests` page. The first time you access it, the application creates the masterdata schema and settings it needs automatically.

## Settings

- Go to `Returns > Returns Settings` and fill up the form with the settings you need.
- `Enable SMSLink integration`: Allow SMSLink integration. Customers will receive messages when a new return request is registered or the request reaches the states of: picked up, approved or denied. For this option you also need to install `vtex.smslink`.
- `Max days:` The maximum number of days that customers can request the return of products, from the moment the order was invoiced.
- `Terms and conditions URL:` The URL of the page with the return terms and conditions. The customer can access this URL from the form they fill out to request a return.
- If you have the terms on conditions page on `http://example.com/terms-and-conditions` it's enough for you to type just `/terms-and-conditions`
Expand All @@ -26,7 +27,7 @@ The return application serves the necessary functionalities for requesting retur

#### Installation and configuration

The application can be installed using the following command in VTEX Toolbelt: `vtex install vtex.return-app@0.x`
The application can be installed using the following command in VTEX Toolbelt: `vtex install vtex.return-app@2.x`

After the installation you must access the `Returns > Requests` page from the admin menu. At this point, the application creates the masterdata schema and email templates automatically.

Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"vendor": "vtex",
"name": "return-app",
"version": "2.16.1",
"version": "2.16.2",
"title": "Return app",
"description": "Return app",
"dependencies": {
Expand Down
1 change: 1 addition & 0 deletions messages/context.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"navigation.requestInfo": "Request Info",
"navigation.labelSettings": "Returns Settings",
"settings.updateSchema": "Updating Settings...",
"settings.allowSMSLinkIntegration_label": "Enable SMSLink integration",
"settings.maxDays_label": "Max days:",
"settings.terms_label": "Terms and conditions URL:",
"settings.paymentMethods_label": "Available payment methods:",
Expand Down
1 change: 1 addition & 0 deletions messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"navigation.requestInfo": "Request Info",
"navigation.labelSettings": "Returns Settings",
"settings.updateSchema": "Updating Settings",
"settings.allowSMSLinkIntegration_label": "Enable SMSLink integration",
"settings.maxDays_label": "Max days:",
"settings.terms_label": "Terms and conditions URL:",
"settings.paymentMethods_label": "Available payment methods:",
Expand Down
1 change: 1 addition & 0 deletions messages/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"navigation.requestInfo": "Richiedi informazioni",
"navigation.labelSettings": "Impostazioni di reso",
"settings.updateSchema": "Aggiornamento delle impostazioni in corso",
"settings.allowSMSLinkIntegration_label": "Abilita l'integrazione di SMSLink",
"settings.maxDays_label": "Numero massimo di giorni:",
"settings.terms_label": "URL dei termini e delle condizioni:",
"settings.paymentMethods_label": "Metodi di pagamento disponibili:",
Expand Down
1 change: 1 addition & 0 deletions messages/ro.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"navigation.requestInfo": "Cerere de retur",
"navigation.labelSettings": "Setari",
"settings.updateSchema": "Un moment, facem cateva actualizari pentru tine!",
"settings.allowSMSLinkIntegration_label": "Permite integrarea cu SMSLink",
"settings.maxDays_label": "Numar maxim de zile:",
"settings.terms_label": "URL pentru termeni si conditii:",
"settings.paymentMethods_label": "Metode de plata:",
Expand Down
Loading