From 32313e473c81da55a6209d68001931e2bfd5ee4b Mon Sep 17 00:00:00 2001 From: Kimmo Puputti Date: Mon, 15 Jan 2018 14:51:44 +0200 Subject: [PATCH 1/2] Rename transition label values --- src/util/types.js | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/util/types.js b/src/util/types.js index f08978a4..727f08e6 100644 --- a/src/util/types.js +++ b/src/util/types.js @@ -162,12 +162,12 @@ propTypes.booking = shape({ // When a customer makes a booking to a listing, a transaction is // created with the initial request transition. -export const TRANSITION_REQUEST = 'transition/preauthorize'; +export const TRANSITION_REQUEST = 'transition/request'; // A customer can also initiate a transaction with an enquiry, and // then transition that with a request. export const TRANSITION_ENQUIRE = 'transition/enquire'; -export const TRANSITION_REQUEST_AFTER_ENQUIRY = 'transition/preauthorize-enquiry'; +export const TRANSITION_REQUEST_AFTER_ENQUIRY = 'transition/request-after-enquiry'; // When the provider accepts or declines a transaction from the // SalePage, it is transitioned with the accept or decline transition. @@ -175,24 +175,24 @@ export const TRANSITION_ACCEPT = 'transition/accept'; export const TRANSITION_DECLINE = 'transition/decline'; // The backend automatically expire the transaction. -export const TRANSITION_EXPIRE = 'transition/auto-decline'; +export const TRANSITION_EXPIRE = 'transition/expire'; // Admin can also cancel the transition. export const TRANSITION_CANCEL = 'transition/cancel'; // The backend will mark the transaction completed. -export const TRANSITION_COMPLETE = 'transition/mark-delivered'; +export const TRANSITION_COMPLETE = 'transition/complete'; // Reviews are given through transaction transitions. Review 1 can be // by provider or customer, and review 2 will be the other party of // the transaction. -export const TRANSITION_REVIEW_1_BY_PROVIDER = 'transition/review-by-provider-first'; -export const TRANSITION_REVIEW_2_BY_PROVIDER = 'transition/review-by-provider-second'; -export const TRANSITION_REVIEW_1_BY_CUSTOMER = 'transition/review-by-customer-first'; -export const TRANSITION_REVIEW_2_BY_CUSTOMER = 'transition/review-by-customer-second'; -export const TRANSITION_EXPIRE_CUSTOMER_REVIEW_PERIOD = 'transition/mark-reviewed-by-customer'; -export const TRANSITION_EXPIRE_PROVIDER_REVIEW_PERIOD = 'transition/mark-reviewed-by-provider'; -export const TRANSITION_EXPIRE_REVIEW_PERIOD = 'transition/auto-complete-without-reviews'; +export const TRANSITION_REVIEW_1_BY_PROVIDER = 'transition/review-1_by-provider'; +export const TRANSITION_REVIEW_2_BY_PROVIDER = 'transition/review-2-by-provider'; +export const TRANSITION_REVIEW_1_BY_CUSTOMER = 'transition/review-1-by-customer'; +export const TRANSITION_REVIEW_2_BY_CUSTOMER = 'transition/review-2-by-customer'; +export const TRANSITION_EXPIRE_CUSTOMER_REVIEW_PERIOD = 'transition/expire-customer-review-period'; +export const TRANSITION_EXPIRE_PROVIDER_REVIEW_PERIOD = 'transition/expire-provider-review-period'; +export const TRANSITION_EXPIRE_REVIEW_PERIOD = 'transition/expire-review-period'; export const TRANSITIONS = [ TRANSITION_ACCEPT, From bdd9c18bc3206ddd13d34d607911bbe6050c8172 Mon Sep 17 00:00:00 2001 From: Kimmo Puputti Date: Mon, 15 Jan 2018 14:53:13 +0200 Subject: [PATCH 2/2] Update snapshots with the new transition label values --- .../TransactionPanel.test.js.snap | 200 +++++++++--------- .../__snapshots__/InboxPage.test.js.snap | 16 +- .../TransactionPage.test.js.snap | 8 +- 3 files changed, 112 insertions(+), 112 deletions(-) diff --git a/src/components/TransactionPanel/__snapshots__/TransactionPanel.test.js.snap b/src/components/TransactionPanel/__snapshots__/TransactionPanel.test.js.snap index 98bf9e7b..c46c4d10 100644 --- a/src/components/TransactionPanel/__snapshots__/TransactionPanel.test.js.snap +++ b/src/components/TransactionPanel/__snapshots__/TransactionPanel.test.js.snap @@ -131,7 +131,7 @@ exports[`TransactionPanel - Order accepted matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -263,7 +263,7 @@ exports[`TransactionPanel - Order accepted matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -392,7 +392,7 @@ exports[`TransactionPanel - Order accepted matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -521,7 +521,7 @@ exports[`TransactionPanel - Order accepted matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -768,7 +768,7 @@ exports[`TransactionPanel - Order accepted matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -943,7 +943,7 @@ exports[`TransactionPanel - Order autodeclined matches snapshot 1`] = ` Object { "attributes": Object { "createdAt": 2017-05-01T00:00:00.000Z, - "lastTransition": "transition/auto-decline", + "lastTransition": "transition/expire", "lastTransitionedAt": 2017-06-01T00:00:00.000Z, "lineItems": Array [ Object { @@ -991,7 +991,7 @@ exports[`TransactionPanel - Order autodeclined matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -1075,7 +1075,7 @@ exports[`TransactionPanel - Order autodeclined matches snapshot 1`] = ` Object { "attributes": Object { "createdAt": 2017-05-01T00:00:00.000Z, - "lastTransition": "transition/auto-decline", + "lastTransition": "transition/expire", "lastTransitionedAt": 2017-06-01T00:00:00.000Z, "lineItems": Array [ Object { @@ -1123,7 +1123,7 @@ exports[`TransactionPanel - Order autodeclined matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -1204,7 +1204,7 @@ exports[`TransactionPanel - Order autodeclined matches snapshot 1`] = ` Object { "attributes": Object { "createdAt": 2017-05-01T00:00:00.000Z, - "lastTransition": "transition/auto-decline", + "lastTransition": "transition/expire", "lastTransitionedAt": 2017-06-01T00:00:00.000Z, "lineItems": Array [ Object { @@ -1252,7 +1252,7 @@ exports[`TransactionPanel - Order autodeclined matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -1333,7 +1333,7 @@ exports[`TransactionPanel - Order autodeclined matches snapshot 1`] = ` Object { "attributes": Object { "createdAt": 2017-05-01T00:00:00.000Z, - "lastTransition": "transition/auto-decline", + "lastTransition": "transition/expire", "lastTransitionedAt": 2017-06-01T00:00:00.000Z, "lineItems": Array [ Object { @@ -1381,7 +1381,7 @@ exports[`TransactionPanel - Order autodeclined matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -1580,7 +1580,7 @@ exports[`TransactionPanel - Order autodeclined matches snapshot 1`] = ` Object { "attributes": Object { "createdAt": 2017-05-01T00:00:00.000Z, - "lastTransition": "transition/auto-decline", + "lastTransition": "transition/expire", "lastTransitionedAt": 2017-06-01T00:00:00.000Z, "lineItems": Array [ Object { @@ -1628,7 +1628,7 @@ exports[`TransactionPanel - Order autodeclined matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -1851,7 +1851,7 @@ exports[`TransactionPanel - Order canceled matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -1983,7 +1983,7 @@ exports[`TransactionPanel - Order canceled matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -2112,7 +2112,7 @@ exports[`TransactionPanel - Order canceled matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -2241,7 +2241,7 @@ exports[`TransactionPanel - Order canceled matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -2488,7 +2488,7 @@ exports[`TransactionPanel - Order canceled matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -2711,7 +2711,7 @@ exports[`TransactionPanel - Order declined matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -2843,7 +2843,7 @@ exports[`TransactionPanel - Order declined matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -2972,7 +2972,7 @@ exports[`TransactionPanel - Order declined matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -3101,7 +3101,7 @@ exports[`TransactionPanel - Order declined matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -3348,7 +3348,7 @@ exports[`TransactionPanel - Order declined matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -3523,7 +3523,7 @@ exports[`TransactionPanel - Order delivered matches snapshot 1`] = ` Object { "attributes": Object { "createdAt": 2017-05-01T00:00:00.000Z, - "lastTransition": "transition/mark-delivered", + "lastTransition": "transition/complete", "lastTransitionedAt": 2017-06-01T00:00:00.000Z, "lineItems": Array [ Object { @@ -3571,7 +3571,7 @@ exports[`TransactionPanel - Order delivered matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -3655,7 +3655,7 @@ exports[`TransactionPanel - Order delivered matches snapshot 1`] = ` Object { "attributes": Object { "createdAt": 2017-05-01T00:00:00.000Z, - "lastTransition": "transition/mark-delivered", + "lastTransition": "transition/complete", "lastTransitionedAt": 2017-06-01T00:00:00.000Z, "lineItems": Array [ Object { @@ -3703,7 +3703,7 @@ exports[`TransactionPanel - Order delivered matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -3784,7 +3784,7 @@ exports[`TransactionPanel - Order delivered matches snapshot 1`] = ` Object { "attributes": Object { "createdAt": 2017-05-01T00:00:00.000Z, - "lastTransition": "transition/mark-delivered", + "lastTransition": "transition/complete", "lastTransitionedAt": 2017-06-01T00:00:00.000Z, "lineItems": Array [ Object { @@ -3832,7 +3832,7 @@ exports[`TransactionPanel - Order delivered matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -3913,7 +3913,7 @@ exports[`TransactionPanel - Order delivered matches snapshot 1`] = ` Object { "attributes": Object { "createdAt": 2017-05-01T00:00:00.000Z, - "lastTransition": "transition/mark-delivered", + "lastTransition": "transition/complete", "lastTransitionedAt": 2017-06-01T00:00:00.000Z, "lineItems": Array [ Object { @@ -3961,7 +3961,7 @@ exports[`TransactionPanel - Order delivered matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -4160,7 +4160,7 @@ exports[`TransactionPanel - Order delivered matches snapshot 1`] = ` Object { "attributes": Object { "createdAt": 2017-05-01T00:00:00.000Z, - "lastTransition": "transition/mark-delivered", + "lastTransition": "transition/complete", "lastTransitionedAt": 2017-06-01T00:00:00.000Z, "lineItems": Array [ Object { @@ -4208,7 +4208,7 @@ exports[`TransactionPanel - Order delivered matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -4431,7 +4431,7 @@ exports[`TransactionPanel - Order enquired matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -4563,7 +4563,7 @@ exports[`TransactionPanel - Order enquired matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -4692,7 +4692,7 @@ exports[`TransactionPanel - Order enquired matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -4821,7 +4821,7 @@ exports[`TransactionPanel - Order enquired matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -5068,7 +5068,7 @@ exports[`TransactionPanel - Order enquired matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -5243,7 +5243,7 @@ exports[`TransactionPanel - Order preauthorized matches snapshot 1`] = ` Object { "attributes": Object { "createdAt": 2017-05-01T00:00:00.000Z, - "lastTransition": "transition/preauthorize", + "lastTransition": "transition/request", "lastTransitionedAt": 2017-06-01T00:00:00.000Z, "lineItems": Array [ Object { @@ -5291,7 +5291,7 @@ exports[`TransactionPanel - Order preauthorized matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -5375,7 +5375,7 @@ exports[`TransactionPanel - Order preauthorized matches snapshot 1`] = ` Object { "attributes": Object { "createdAt": 2017-05-01T00:00:00.000Z, - "lastTransition": "transition/preauthorize", + "lastTransition": "transition/request", "lastTransitionedAt": 2017-06-01T00:00:00.000Z, "lineItems": Array [ Object { @@ -5423,7 +5423,7 @@ exports[`TransactionPanel - Order preauthorized matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -5504,7 +5504,7 @@ exports[`TransactionPanel - Order preauthorized matches snapshot 1`] = ` Object { "attributes": Object { "createdAt": 2017-05-01T00:00:00.000Z, - "lastTransition": "transition/preauthorize", + "lastTransition": "transition/request", "lastTransitionedAt": 2017-06-01T00:00:00.000Z, "lineItems": Array [ Object { @@ -5552,7 +5552,7 @@ exports[`TransactionPanel - Order preauthorized matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -5633,7 +5633,7 @@ exports[`TransactionPanel - Order preauthorized matches snapshot 1`] = ` Object { "attributes": Object { "createdAt": 2017-05-01T00:00:00.000Z, - "lastTransition": "transition/preauthorize", + "lastTransition": "transition/request", "lastTransitionedAt": 2017-06-01T00:00:00.000Z, "lineItems": Array [ Object { @@ -5681,7 +5681,7 @@ exports[`TransactionPanel - Order preauthorized matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -5880,7 +5880,7 @@ exports[`TransactionPanel - Order preauthorized matches snapshot 1`] = ` Object { "attributes": Object { "createdAt": 2017-05-01T00:00:00.000Z, - "lastTransition": "transition/preauthorize", + "lastTransition": "transition/request", "lastTransitionedAt": 2017-06-01T00:00:00.000Z, "lineItems": Array [ Object { @@ -5928,7 +5928,7 @@ exports[`TransactionPanel - Order preauthorized matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -6145,7 +6145,7 @@ exports[`TransactionPanel - Sale accepted matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -6264,7 +6264,7 @@ exports[`TransactionPanel - Sale accepted matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -6381,7 +6381,7 @@ exports[`TransactionPanel - Sale accepted matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -6498,7 +6498,7 @@ exports[`TransactionPanel - Sale accepted matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -6733,7 +6733,7 @@ exports[`TransactionPanel - Sale accepted matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -6889,7 +6889,7 @@ exports[`TransactionPanel - Sale autodeclined matches snapshot 1`] = ` Object { "attributes": Object { "createdAt": 2017-05-01T00:00:00.000Z, - "lastTransition": "transition/auto-decline", + "lastTransition": "transition/expire", "lastTransitionedAt": 2017-06-10T00:00:00.000Z, "lineItems": Array [ Object { @@ -6937,7 +6937,7 @@ exports[`TransactionPanel - Sale autodeclined matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -7008,7 +7008,7 @@ exports[`TransactionPanel - Sale autodeclined matches snapshot 1`] = ` Object { "attributes": Object { "createdAt": 2017-05-01T00:00:00.000Z, - "lastTransition": "transition/auto-decline", + "lastTransition": "transition/expire", "lastTransitionedAt": 2017-06-10T00:00:00.000Z, "lineItems": Array [ Object { @@ -7056,7 +7056,7 @@ exports[`TransactionPanel - Sale autodeclined matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -7125,7 +7125,7 @@ exports[`TransactionPanel - Sale autodeclined matches snapshot 1`] = ` Object { "attributes": Object { "createdAt": 2017-05-01T00:00:00.000Z, - "lastTransition": "transition/auto-decline", + "lastTransition": "transition/expire", "lastTransitionedAt": 2017-06-10T00:00:00.000Z, "lineItems": Array [ Object { @@ -7173,7 +7173,7 @@ exports[`TransactionPanel - Sale autodeclined matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -7242,7 +7242,7 @@ exports[`TransactionPanel - Sale autodeclined matches snapshot 1`] = ` Object { "attributes": Object { "createdAt": 2017-05-01T00:00:00.000Z, - "lastTransition": "transition/auto-decline", + "lastTransition": "transition/expire", "lastTransitionedAt": 2017-06-10T00:00:00.000Z, "lineItems": Array [ Object { @@ -7290,7 +7290,7 @@ exports[`TransactionPanel - Sale autodeclined matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -7477,7 +7477,7 @@ exports[`TransactionPanel - Sale autodeclined matches snapshot 1`] = ` Object { "attributes": Object { "createdAt": 2017-05-01T00:00:00.000Z, - "lastTransition": "transition/auto-decline", + "lastTransition": "transition/expire", "lastTransitionedAt": 2017-06-10T00:00:00.000Z, "lineItems": Array [ Object { @@ -7525,7 +7525,7 @@ exports[`TransactionPanel - Sale autodeclined matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -7729,7 +7729,7 @@ exports[`TransactionPanel - Sale canceled matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -7848,7 +7848,7 @@ exports[`TransactionPanel - Sale canceled matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -7965,7 +7965,7 @@ exports[`TransactionPanel - Sale canceled matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -8082,7 +8082,7 @@ exports[`TransactionPanel - Sale canceled matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -8317,7 +8317,7 @@ exports[`TransactionPanel - Sale canceled matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -8521,7 +8521,7 @@ exports[`TransactionPanel - Sale declined matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -8640,7 +8640,7 @@ exports[`TransactionPanel - Sale declined matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -8757,7 +8757,7 @@ exports[`TransactionPanel - Sale declined matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -8874,7 +8874,7 @@ exports[`TransactionPanel - Sale declined matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -9109,7 +9109,7 @@ exports[`TransactionPanel - Sale declined matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -9265,7 +9265,7 @@ exports[`TransactionPanel - Sale delivered matches snapshot 1`] = ` Object { "attributes": Object { "createdAt": 2017-05-01T00:00:00.000Z, - "lastTransition": "transition/mark-delivered", + "lastTransition": "transition/complete", "lastTransitionedAt": 2017-06-10T00:00:00.000Z, "lineItems": Array [ Object { @@ -9313,7 +9313,7 @@ exports[`TransactionPanel - Sale delivered matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -9384,7 +9384,7 @@ exports[`TransactionPanel - Sale delivered matches snapshot 1`] = ` Object { "attributes": Object { "createdAt": 2017-05-01T00:00:00.000Z, - "lastTransition": "transition/mark-delivered", + "lastTransition": "transition/complete", "lastTransitionedAt": 2017-06-10T00:00:00.000Z, "lineItems": Array [ Object { @@ -9432,7 +9432,7 @@ exports[`TransactionPanel - Sale delivered matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -9501,7 +9501,7 @@ exports[`TransactionPanel - Sale delivered matches snapshot 1`] = ` Object { "attributes": Object { "createdAt": 2017-05-01T00:00:00.000Z, - "lastTransition": "transition/mark-delivered", + "lastTransition": "transition/complete", "lastTransitionedAt": 2017-06-10T00:00:00.000Z, "lineItems": Array [ Object { @@ -9549,7 +9549,7 @@ exports[`TransactionPanel - Sale delivered matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -9618,7 +9618,7 @@ exports[`TransactionPanel - Sale delivered matches snapshot 1`] = ` Object { "attributes": Object { "createdAt": 2017-05-01T00:00:00.000Z, - "lastTransition": "transition/mark-delivered", + "lastTransition": "transition/complete", "lastTransitionedAt": 2017-06-10T00:00:00.000Z, "lineItems": Array [ Object { @@ -9666,7 +9666,7 @@ exports[`TransactionPanel - Sale delivered matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -9853,7 +9853,7 @@ exports[`TransactionPanel - Sale delivered matches snapshot 1`] = ` Object { "attributes": Object { "createdAt": 2017-05-01T00:00:00.000Z, - "lastTransition": "transition/mark-delivered", + "lastTransition": "transition/complete", "lastTransitionedAt": 2017-06-10T00:00:00.000Z, "lineItems": Array [ Object { @@ -9901,7 +9901,7 @@ exports[`TransactionPanel - Sale delivered matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -10105,7 +10105,7 @@ exports[`TransactionPanel - Sale enquired matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -10224,7 +10224,7 @@ exports[`TransactionPanel - Sale enquired matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -10341,7 +10341,7 @@ exports[`TransactionPanel - Sale enquired matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -10458,7 +10458,7 @@ exports[`TransactionPanel - Sale enquired matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -10693,7 +10693,7 @@ exports[`TransactionPanel - Sale enquired matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -10849,7 +10849,7 @@ exports[`TransactionPanel - Sale preauthorized matches snapshot 1`] = ` Object { "attributes": Object { "createdAt": 2017-05-01T00:00:00.000Z, - "lastTransition": "transition/preauthorize", + "lastTransition": "transition/request", "lastTransitionedAt": 2017-06-10T00:00:00.000Z, "lineItems": Array [ Object { @@ -10897,7 +10897,7 @@ exports[`TransactionPanel - Sale preauthorized matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -10968,7 +10968,7 @@ exports[`TransactionPanel - Sale preauthorized matches snapshot 1`] = ` Object { "attributes": Object { "createdAt": 2017-05-01T00:00:00.000Z, - "lastTransition": "transition/preauthorize", + "lastTransition": "transition/request", "lastTransitionedAt": 2017-06-10T00:00:00.000Z, "lineItems": Array [ Object { @@ -11016,7 +11016,7 @@ exports[`TransactionPanel - Sale preauthorized matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -11085,7 +11085,7 @@ exports[`TransactionPanel - Sale preauthorized matches snapshot 1`] = ` Object { "attributes": Object { "createdAt": 2017-05-01T00:00:00.000Z, - "lastTransition": "transition/preauthorize", + "lastTransition": "transition/request", "lastTransitionedAt": 2017-06-10T00:00:00.000Z, "lineItems": Array [ Object { @@ -11133,7 +11133,7 @@ exports[`TransactionPanel - Sale preauthorized matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -11202,7 +11202,7 @@ exports[`TransactionPanel - Sale preauthorized matches snapshot 1`] = ` Object { "attributes": Object { "createdAt": 2017-05-01T00:00:00.000Z, - "lastTransition": "transition/preauthorize", + "lastTransition": "transition/request", "lastTransitionedAt": 2017-06-10T00:00:00.000Z, "lineItems": Array [ Object { @@ -11250,7 +11250,7 @@ exports[`TransactionPanel - Sale preauthorized matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -11437,7 +11437,7 @@ exports[`TransactionPanel - Sale preauthorized matches snapshot 1`] = ` Object { "attributes": Object { "createdAt": 2017-05-01T00:00:00.000Z, - "lastTransition": "transition/preauthorize", + "lastTransition": "transition/request", "lastTransitionedAt": 2017-06-10T00:00:00.000Z, "lineItems": Array [ Object { @@ -11485,7 +11485,7 @@ exports[`TransactionPanel - Sale preauthorized matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, diff --git a/src/containers/InboxPage/__snapshots__/InboxPage.test.js.snap b/src/containers/InboxPage/__snapshots__/InboxPage.test.js.snap index 55f06600..bd1b35c3 100644 --- a/src/containers/InboxPage/__snapshots__/InboxPage.test.js.snap +++ b/src/containers/InboxPage/__snapshots__/InboxPage.test.js.snap @@ -93,7 +93,7 @@ exports[`InboxPage matches snapshot 1`] = ` Object { "attributes": Object { "createdAt": 2017-05-01T00:00:00.000Z, - "lastTransition": "transition/preauthorize", + "lastTransition": "transition/request", "lastTransitionedAt": 2017-01-15T00:00:00.000Z, "lineItems": Array [ Object { @@ -141,7 +141,7 @@ exports[`InboxPage matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -216,7 +216,7 @@ exports[`InboxPage matches snapshot 1`] = ` Object { "attributes": Object { "createdAt": 2017-05-01T00:00:00.000Z, - "lastTransition": "transition/preauthorize", + "lastTransition": "transition/request", "lastTransitionedAt": 2016-01-15T00:00:00.000Z, "lineItems": Array [ Object { @@ -264,7 +264,7 @@ exports[`InboxPage matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -495,7 +495,7 @@ exports[`InboxPage matches snapshot 3`] = ` Object { "attributes": Object { "createdAt": 2017-05-01T00:00:00.000Z, - "lastTransition": "transition/preauthorize", + "lastTransition": "transition/request", "lastTransitionedAt": 2017-01-15T00:00:00.000Z, "lineItems": Array [ Object { @@ -543,7 +543,7 @@ exports[`InboxPage matches snapshot 3`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -618,7 +618,7 @@ exports[`InboxPage matches snapshot 3`] = ` Object { "attributes": Object { "createdAt": 2017-05-01T00:00:00.000Z, - "lastTransition": "transition/preauthorize", + "lastTransition": "transition/request", "lastTransitionedAt": 2016-01-15T00:00:00.000Z, "lineItems": Array [ Object { @@ -666,7 +666,7 @@ exports[`InboxPage matches snapshot 3`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, diff --git a/src/containers/TransactionPage/__snapshots__/TransactionPage.test.js.snap b/src/containers/TransactionPage/__snapshots__/TransactionPage.test.js.snap index 108f07e0..814f4f11 100644 --- a/src/containers/TransactionPage/__snapshots__/TransactionPage.test.js.snap +++ b/src/containers/TransactionPage/__snapshots__/TransactionPage.test.js.snap @@ -63,7 +63,7 @@ exports[`TransactionPage - Order matches snapshot 1`] = ` Object { "attributes": Object { "createdAt": 2017-05-01T00:00:00.000Z, - "lastTransition": "transition/preauthorize", + "lastTransition": "transition/request", "lastTransitionedAt": 2017-06-01T00:00:00.000Z, "lineItems": Array [ Object { @@ -111,7 +111,7 @@ exports[`TransactionPage - Order matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z, @@ -261,7 +261,7 @@ exports[`TransactionPage - Sale matches snapshot 1`] = ` Object { "attributes": Object { "createdAt": 2017-05-01T00:00:00.000Z, - "lastTransition": "transition/preauthorize", + "lastTransition": "transition/request", "lastTransitionedAt": 2017-06-01T00:00:00.000Z, "lineItems": Array [ Object { @@ -309,7 +309,7 @@ exports[`TransactionPage - Sale matches snapshot 1`] = ` Object { "at": 2017-05-01T00:00:00.000Z, "by": "customer", - "transition": "transition/preauthorize", + "transition": "transition/request", }, Object { "at": 2017-06-01T00:00:00.000Z,