mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-29 05:00:43 +10:00
9493 lines
292 KiB
Text
9493 lines
292 KiB
Text
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`TransactionPanel - Order accepted matches snapshot 1`] = `
|
|
<div
|
|
className=""
|
|
>
|
|
<div>
|
|
<div>
|
|
<div>
|
|
<div>
|
|
<ResponsiveImage
|
|
alt="listing1 title"
|
|
className={null}
|
|
image={null}
|
|
nameSet={
|
|
Array [
|
|
Object {
|
|
"name": "landscape-crop",
|
|
"size": "400w",
|
|
},
|
|
Object {
|
|
"name": "landscape-crop2x",
|
|
"size": "800w",
|
|
},
|
|
]
|
|
}
|
|
noImageMessage={null}
|
|
rootClassName={null}
|
|
sizes="100vw"
|
|
/>
|
|
</div>
|
|
</div>
|
|
<div
|
|
className=""
|
|
>
|
|
<AvatarMedium
|
|
user={
|
|
Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "provider display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "provider",
|
|
},
|
|
"type": "user",
|
|
}
|
|
}
|
|
/>
|
|
</div>
|
|
<Component
|
|
currentListing={
|
|
Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"images": Array [],
|
|
"type": "listing",
|
|
}
|
|
}
|
|
customerDisplayName="customer display name"
|
|
listingTitle="listing1 title"
|
|
transaction={
|
|
Object {
|
|
"attributes": Object {
|
|
"createdAt": 2017-05-01T00:00:00.000Z,
|
|
"lastTransition": "transition/accept",
|
|
"lastTransitionedAt": 2017-06-01T00:00:00.000Z,
|
|
"lineItems": Array [
|
|
Object {
|
|
"code": "line-item/night",
|
|
"lineTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"quantity": "3",
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
Object {
|
|
"code": "line-item/provider-commission",
|
|
"lineTotal": Money {
|
|
"amount": -100,
|
|
"currency": "USD",
|
|
},
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": -100,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
],
|
|
"payinTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"payoutTotal": Money {
|
|
"amount": 16400,
|
|
"currency": "USD",
|
|
},
|
|
"transitions": Array [
|
|
Object {
|
|
"at": 2017-05-01T00:00:00.000Z,
|
|
"by": "customer",
|
|
"transition": "transition/preauthorize",
|
|
},
|
|
Object {
|
|
"at": 2017-06-01T00:00:00.000Z,
|
|
"by": "provider",
|
|
"transition": "transition/accept",
|
|
},
|
|
],
|
|
},
|
|
"booking": Object {
|
|
"attributes": Object {
|
|
"end": 2017-06-13T00:00:00.000Z,
|
|
"start": 2017-06-10T00:00:00.000Z,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "booking1",
|
|
},
|
|
"type": "booking",
|
|
},
|
|
"customer": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "customer display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "customer",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "order-accepted",
|
|
},
|
|
"listing": Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"type": "listing",
|
|
},
|
|
"provider": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "provider display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "provider",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"reviews": Array [],
|
|
"type": "transaction",
|
|
}
|
|
}
|
|
/>
|
|
<Component
|
|
authorDisplayName="provider display name"
|
|
customerDisplayName="customer display name"
|
|
isCustomerBanned={false}
|
|
listingDeleted={false}
|
|
transaction={
|
|
Object {
|
|
"attributes": Object {
|
|
"createdAt": 2017-05-01T00:00:00.000Z,
|
|
"lastTransition": "transition/accept",
|
|
"lastTransitionedAt": 2017-06-01T00:00:00.000Z,
|
|
"lineItems": Array [
|
|
Object {
|
|
"code": "line-item/night",
|
|
"lineTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"quantity": "3",
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
Object {
|
|
"code": "line-item/provider-commission",
|
|
"lineTotal": Money {
|
|
"amount": -100,
|
|
"currency": "USD",
|
|
},
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": -100,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
],
|
|
"payinTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"payoutTotal": Money {
|
|
"amount": 16400,
|
|
"currency": "USD",
|
|
},
|
|
"transitions": Array [
|
|
Object {
|
|
"at": 2017-05-01T00:00:00.000Z,
|
|
"by": "customer",
|
|
"transition": "transition/preauthorize",
|
|
},
|
|
Object {
|
|
"at": 2017-06-01T00:00:00.000Z,
|
|
"by": "provider",
|
|
"transition": "transition/accept",
|
|
},
|
|
],
|
|
},
|
|
"booking": Object {
|
|
"attributes": Object {
|
|
"end": 2017-06-13T00:00:00.000Z,
|
|
"start": 2017-06-10T00:00:00.000Z,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "booking1",
|
|
},
|
|
"type": "booking",
|
|
},
|
|
"customer": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "customer display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "customer",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "order-accepted",
|
|
},
|
|
"listing": Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"type": "listing",
|
|
},
|
|
"provider": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "provider display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "provider",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"reviews": Array [],
|
|
"type": "transaction",
|
|
}
|
|
}
|
|
/>
|
|
<div>
|
|
<Component
|
|
transaction={
|
|
Object {
|
|
"attributes": Object {
|
|
"createdAt": 2017-05-01T00:00:00.000Z,
|
|
"lastTransition": "transition/accept",
|
|
"lastTransitionedAt": 2017-06-01T00:00:00.000Z,
|
|
"lineItems": Array [
|
|
Object {
|
|
"code": "line-item/night",
|
|
"lineTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"quantity": "3",
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
Object {
|
|
"code": "line-item/provider-commission",
|
|
"lineTotal": Money {
|
|
"amount": -100,
|
|
"currency": "USD",
|
|
},
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": -100,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
],
|
|
"payinTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"payoutTotal": Money {
|
|
"amount": 16400,
|
|
"currency": "USD",
|
|
},
|
|
"transitions": Array [
|
|
Object {
|
|
"at": 2017-05-01T00:00:00.000Z,
|
|
"by": "customer",
|
|
"transition": "transition/preauthorize",
|
|
},
|
|
Object {
|
|
"at": 2017-06-01T00:00:00.000Z,
|
|
"by": "provider",
|
|
"transition": "transition/accept",
|
|
},
|
|
],
|
|
},
|
|
"booking": Object {
|
|
"attributes": Object {
|
|
"end": 2017-06-13T00:00:00.000Z,
|
|
"start": 2017-06-10T00:00:00.000Z,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "booking1",
|
|
},
|
|
"type": "booking",
|
|
},
|
|
"customer": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "customer display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "customer",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "order-accepted",
|
|
},
|
|
"listing": Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"type": "listing",
|
|
},
|
|
"provider": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "provider display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "provider",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"reviews": Array [],
|
|
"type": "transaction",
|
|
}
|
|
}
|
|
/>
|
|
</div>
|
|
<Component
|
|
currentTransaction={
|
|
Object {
|
|
"attributes": Object {
|
|
"createdAt": 2017-05-01T00:00:00.000Z,
|
|
"lastTransition": "transition/accept",
|
|
"lastTransitionedAt": 2017-06-01T00:00:00.000Z,
|
|
"lineItems": Array [
|
|
Object {
|
|
"code": "line-item/night",
|
|
"lineTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"quantity": "3",
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
Object {
|
|
"code": "line-item/provider-commission",
|
|
"lineTotal": Money {
|
|
"amount": -100,
|
|
"currency": "USD",
|
|
},
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": -100,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
],
|
|
"payinTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"payoutTotal": Money {
|
|
"amount": 16400,
|
|
"currency": "USD",
|
|
},
|
|
"transitions": Array [
|
|
Object {
|
|
"at": 2017-05-01T00:00:00.000Z,
|
|
"by": "customer",
|
|
"transition": "transition/preauthorize",
|
|
},
|
|
Object {
|
|
"at": 2017-06-01T00:00:00.000Z,
|
|
"by": "provider",
|
|
"transition": "transition/accept",
|
|
},
|
|
],
|
|
},
|
|
"booking": Object {
|
|
"attributes": Object {
|
|
"end": 2017-06-13T00:00:00.000Z,
|
|
"start": 2017-06-10T00:00:00.000Z,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "booking1",
|
|
},
|
|
"type": "booking",
|
|
},
|
|
"customer": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "customer display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "customer",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "order-accepted",
|
|
},
|
|
"listing": Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"type": "listing",
|
|
},
|
|
"provider": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "provider display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "provider",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"reviews": Array [],
|
|
"type": "transaction",
|
|
}
|
|
}
|
|
currentUser={
|
|
Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"email": "user2@example.com",
|
|
"emailVerified": true,
|
|
"profile": Object {
|
|
"abbreviatedName": "user2 abbreviated name",
|
|
"displayName": "user2 display name",
|
|
"firstName": "user2 first name",
|
|
"lastName": "user2 last name",
|
|
},
|
|
"stripeConnected": true,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "user2",
|
|
},
|
|
"type": "currentUser",
|
|
}
|
|
}
|
|
fetchMessagesError={null}
|
|
fetchMessagesInProgress={false}
|
|
initialMessageFailed={false}
|
|
messages={
|
|
Array [
|
|
Object {
|
|
"attributes": Object {
|
|
"at": 2017-11-09T08:12:00.000Z,
|
|
"content": "Message msg1
|
|
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "msg1",
|
|
},
|
|
"sender": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "user1 display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "user1",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"type": "message",
|
|
},
|
|
Object {
|
|
"attributes": Object {
|
|
"at": 2017-11-09T08:12:00.000Z,
|
|
"content": "Message msg2
|
|
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "msg2",
|
|
},
|
|
"sender": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "user2 display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "user2",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"type": "message",
|
|
},
|
|
]
|
|
}
|
|
oldestMessagePageFetched={1}
|
|
onOpenReviewModal={[Function]}
|
|
onShowMoreMessages={[Function]}
|
|
rootClassName=""
|
|
totalMessagePages={1}
|
|
/>
|
|
<SendMessageForm
|
|
form="TransactionPanel.SendMessageForm"
|
|
inProgress={false}
|
|
messagePlaceholder="TransactionPanel.sendMessagePlaceholder"
|
|
onBlur={[Function]}
|
|
onFocus={[Function]}
|
|
onSubmit={[Function]}
|
|
rootClassName=""
|
|
sendMessageError={null}
|
|
/>
|
|
</div>
|
|
<div>
|
|
<div>
|
|
<div>
|
|
<div>
|
|
<ResponsiveImage
|
|
alt="listing1 title"
|
|
className={null}
|
|
image={null}
|
|
nameSet={
|
|
Array [
|
|
Object {
|
|
"name": "landscape-crop",
|
|
"size": "400w",
|
|
},
|
|
Object {
|
|
"name": "landscape-crop2x",
|
|
"size": "800w",
|
|
},
|
|
]
|
|
}
|
|
noImageMessage={null}
|
|
rootClassName={null}
|
|
sizes="100%"
|
|
/>
|
|
</div>
|
|
</div>
|
|
<Component
|
|
transaction={
|
|
Object {
|
|
"attributes": Object {
|
|
"createdAt": 2017-05-01T00:00:00.000Z,
|
|
"lastTransition": "transition/accept",
|
|
"lastTransitionedAt": 2017-06-01T00:00:00.000Z,
|
|
"lineItems": Array [
|
|
Object {
|
|
"code": "line-item/night",
|
|
"lineTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"quantity": "3",
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
Object {
|
|
"code": "line-item/provider-commission",
|
|
"lineTotal": Money {
|
|
"amount": -100,
|
|
"currency": "USD",
|
|
},
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": -100,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
],
|
|
"payinTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"payoutTotal": Money {
|
|
"amount": 16400,
|
|
"currency": "USD",
|
|
},
|
|
"transitions": Array [
|
|
Object {
|
|
"at": 2017-05-01T00:00:00.000Z,
|
|
"by": "customer",
|
|
"transition": "transition/preauthorize",
|
|
},
|
|
Object {
|
|
"at": 2017-06-01T00:00:00.000Z,
|
|
"by": "provider",
|
|
"transition": "transition/accept",
|
|
},
|
|
],
|
|
},
|
|
"booking": Object {
|
|
"attributes": Object {
|
|
"end": 2017-06-13T00:00:00.000Z,
|
|
"start": 2017-06-10T00:00:00.000Z,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "booking1",
|
|
},
|
|
"type": "booking",
|
|
},
|
|
"customer": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "customer display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "customer",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "order-accepted",
|
|
},
|
|
"listing": Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"type": "listing",
|
|
},
|
|
"provider": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "provider display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "provider",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"reviews": Array [],
|
|
"type": "transaction",
|
|
}
|
|
}
|
|
/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<InjectIntl(ReviewModal)
|
|
id="ReviewOrderModal"
|
|
isOpen={false}
|
|
onCloseModal={[Function]}
|
|
onManageDisableScrolling={[Function]}
|
|
onSubmitReview={[Function]}
|
|
reviewSent={false}
|
|
revieweeName="provider display name"
|
|
sendReviewError={null}
|
|
sendReviewInProgress={false}
|
|
/>
|
|
</div>
|
|
`;
|
|
|
|
exports[`TransactionPanel - Order autodeclined matches snapshot 1`] = `
|
|
<div
|
|
className=""
|
|
>
|
|
<div>
|
|
<div>
|
|
<div>
|
|
<div>
|
|
<ResponsiveImage
|
|
alt="listing1 title"
|
|
className={null}
|
|
image={null}
|
|
nameSet={
|
|
Array [
|
|
Object {
|
|
"name": "landscape-crop",
|
|
"size": "400w",
|
|
},
|
|
Object {
|
|
"name": "landscape-crop2x",
|
|
"size": "800w",
|
|
},
|
|
]
|
|
}
|
|
noImageMessage={null}
|
|
rootClassName={null}
|
|
sizes="100vw"
|
|
/>
|
|
</div>
|
|
</div>
|
|
<div
|
|
className=""
|
|
>
|
|
<AvatarMedium
|
|
user={
|
|
Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "provider display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "provider",
|
|
},
|
|
"type": "user",
|
|
}
|
|
}
|
|
/>
|
|
</div>
|
|
<Component
|
|
currentListing={
|
|
Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"images": Array [],
|
|
"type": "listing",
|
|
}
|
|
}
|
|
customerDisplayName="customer display name"
|
|
listingTitle="listing1 title"
|
|
transaction={
|
|
Object {
|
|
"attributes": Object {
|
|
"createdAt": 2017-05-01T00:00:00.000Z,
|
|
"lastTransition": "transition/auto-decline",
|
|
"lastTransitionedAt": 2017-06-01T00:00:00.000Z,
|
|
"lineItems": Array [
|
|
Object {
|
|
"code": "line-item/night",
|
|
"lineTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"quantity": "3",
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
Object {
|
|
"code": "line-item/provider-commission",
|
|
"lineTotal": Money {
|
|
"amount": -100,
|
|
"currency": "USD",
|
|
},
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": -100,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
],
|
|
"payinTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"payoutTotal": Money {
|
|
"amount": 16400,
|
|
"currency": "USD",
|
|
},
|
|
"transitions": Array [
|
|
Object {
|
|
"at": 2017-05-01T00:00:00.000Z,
|
|
"by": "customer",
|
|
"transition": "transition/preauthorize",
|
|
},
|
|
Object {
|
|
"at": 2017-06-01T00:00:00.000Z,
|
|
"by": "provider",
|
|
"transition": "transition/accept",
|
|
},
|
|
],
|
|
},
|
|
"booking": Object {
|
|
"attributes": Object {
|
|
"end": 2017-06-13T00:00:00.000Z,
|
|
"start": 2017-06-10T00:00:00.000Z,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "booking1",
|
|
},
|
|
"type": "booking",
|
|
},
|
|
"customer": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "customer display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "customer",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "order-autodeclined",
|
|
},
|
|
"listing": Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"type": "listing",
|
|
},
|
|
"provider": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "provider display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "provider",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"reviews": Array [],
|
|
"type": "transaction",
|
|
}
|
|
}
|
|
/>
|
|
<Component
|
|
authorDisplayName="provider display name"
|
|
customerDisplayName="customer display name"
|
|
isCustomerBanned={false}
|
|
listingDeleted={false}
|
|
transaction={
|
|
Object {
|
|
"attributes": Object {
|
|
"createdAt": 2017-05-01T00:00:00.000Z,
|
|
"lastTransition": "transition/auto-decline",
|
|
"lastTransitionedAt": 2017-06-01T00:00:00.000Z,
|
|
"lineItems": Array [
|
|
Object {
|
|
"code": "line-item/night",
|
|
"lineTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"quantity": "3",
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
Object {
|
|
"code": "line-item/provider-commission",
|
|
"lineTotal": Money {
|
|
"amount": -100,
|
|
"currency": "USD",
|
|
},
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": -100,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
],
|
|
"payinTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"payoutTotal": Money {
|
|
"amount": 16400,
|
|
"currency": "USD",
|
|
},
|
|
"transitions": Array [
|
|
Object {
|
|
"at": 2017-05-01T00:00:00.000Z,
|
|
"by": "customer",
|
|
"transition": "transition/preauthorize",
|
|
},
|
|
Object {
|
|
"at": 2017-06-01T00:00:00.000Z,
|
|
"by": "provider",
|
|
"transition": "transition/accept",
|
|
},
|
|
],
|
|
},
|
|
"booking": Object {
|
|
"attributes": Object {
|
|
"end": 2017-06-13T00:00:00.000Z,
|
|
"start": 2017-06-10T00:00:00.000Z,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "booking1",
|
|
},
|
|
"type": "booking",
|
|
},
|
|
"customer": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "customer display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "customer",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "order-autodeclined",
|
|
},
|
|
"listing": Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"type": "listing",
|
|
},
|
|
"provider": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "provider display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "provider",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"reviews": Array [],
|
|
"type": "transaction",
|
|
}
|
|
}
|
|
/>
|
|
<div>
|
|
<Component
|
|
transaction={
|
|
Object {
|
|
"attributes": Object {
|
|
"createdAt": 2017-05-01T00:00:00.000Z,
|
|
"lastTransition": "transition/auto-decline",
|
|
"lastTransitionedAt": 2017-06-01T00:00:00.000Z,
|
|
"lineItems": Array [
|
|
Object {
|
|
"code": "line-item/night",
|
|
"lineTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"quantity": "3",
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
Object {
|
|
"code": "line-item/provider-commission",
|
|
"lineTotal": Money {
|
|
"amount": -100,
|
|
"currency": "USD",
|
|
},
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": -100,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
],
|
|
"payinTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"payoutTotal": Money {
|
|
"amount": 16400,
|
|
"currency": "USD",
|
|
},
|
|
"transitions": Array [
|
|
Object {
|
|
"at": 2017-05-01T00:00:00.000Z,
|
|
"by": "customer",
|
|
"transition": "transition/preauthorize",
|
|
},
|
|
Object {
|
|
"at": 2017-06-01T00:00:00.000Z,
|
|
"by": "provider",
|
|
"transition": "transition/accept",
|
|
},
|
|
],
|
|
},
|
|
"booking": Object {
|
|
"attributes": Object {
|
|
"end": 2017-06-13T00:00:00.000Z,
|
|
"start": 2017-06-10T00:00:00.000Z,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "booking1",
|
|
},
|
|
"type": "booking",
|
|
},
|
|
"customer": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "customer display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "customer",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "order-autodeclined",
|
|
},
|
|
"listing": Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"type": "listing",
|
|
},
|
|
"provider": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "provider display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "provider",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"reviews": Array [],
|
|
"type": "transaction",
|
|
}
|
|
}
|
|
/>
|
|
</div>
|
|
<Component
|
|
currentTransaction={
|
|
Object {
|
|
"attributes": Object {
|
|
"createdAt": 2017-05-01T00:00:00.000Z,
|
|
"lastTransition": "transition/auto-decline",
|
|
"lastTransitionedAt": 2017-06-01T00:00:00.000Z,
|
|
"lineItems": Array [
|
|
Object {
|
|
"code": "line-item/night",
|
|
"lineTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"quantity": "3",
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
Object {
|
|
"code": "line-item/provider-commission",
|
|
"lineTotal": Money {
|
|
"amount": -100,
|
|
"currency": "USD",
|
|
},
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": -100,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
],
|
|
"payinTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"payoutTotal": Money {
|
|
"amount": 16400,
|
|
"currency": "USD",
|
|
},
|
|
"transitions": Array [
|
|
Object {
|
|
"at": 2017-05-01T00:00:00.000Z,
|
|
"by": "customer",
|
|
"transition": "transition/preauthorize",
|
|
},
|
|
Object {
|
|
"at": 2017-06-01T00:00:00.000Z,
|
|
"by": "provider",
|
|
"transition": "transition/accept",
|
|
},
|
|
],
|
|
},
|
|
"booking": Object {
|
|
"attributes": Object {
|
|
"end": 2017-06-13T00:00:00.000Z,
|
|
"start": 2017-06-10T00:00:00.000Z,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "booking1",
|
|
},
|
|
"type": "booking",
|
|
},
|
|
"customer": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "customer display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "customer",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "order-autodeclined",
|
|
},
|
|
"listing": Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"type": "listing",
|
|
},
|
|
"provider": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "provider display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "provider",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"reviews": Array [],
|
|
"type": "transaction",
|
|
}
|
|
}
|
|
currentUser={
|
|
Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"email": "user2@example.com",
|
|
"emailVerified": true,
|
|
"profile": Object {
|
|
"abbreviatedName": "user2 abbreviated name",
|
|
"displayName": "user2 display name",
|
|
"firstName": "user2 first name",
|
|
"lastName": "user2 last name",
|
|
},
|
|
"stripeConnected": true,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "user2",
|
|
},
|
|
"type": "currentUser",
|
|
}
|
|
}
|
|
fetchMessagesError={null}
|
|
fetchMessagesInProgress={false}
|
|
initialMessageFailed={false}
|
|
messages={
|
|
Array [
|
|
Object {
|
|
"attributes": Object {
|
|
"at": 2017-11-09T08:12:00.000Z,
|
|
"content": "Message msg1
|
|
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "msg1",
|
|
},
|
|
"sender": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "user1 display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "user1",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"type": "message",
|
|
},
|
|
Object {
|
|
"attributes": Object {
|
|
"at": 2017-11-09T08:12:00.000Z,
|
|
"content": "Message msg2
|
|
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "msg2",
|
|
},
|
|
"sender": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "user2 display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "user2",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"type": "message",
|
|
},
|
|
]
|
|
}
|
|
oldestMessagePageFetched={1}
|
|
onOpenReviewModal={[Function]}
|
|
onShowMoreMessages={[Function]}
|
|
rootClassName=""
|
|
totalMessagePages={1}
|
|
/>
|
|
<SendMessageForm
|
|
form="TransactionPanel.SendMessageForm"
|
|
inProgress={false}
|
|
messagePlaceholder="TransactionPanel.sendMessagePlaceholder"
|
|
onBlur={[Function]}
|
|
onFocus={[Function]}
|
|
onSubmit={[Function]}
|
|
rootClassName=""
|
|
sendMessageError={null}
|
|
/>
|
|
</div>
|
|
<div>
|
|
<div>
|
|
<div>
|
|
<div>
|
|
<ResponsiveImage
|
|
alt="listing1 title"
|
|
className={null}
|
|
image={null}
|
|
nameSet={
|
|
Array [
|
|
Object {
|
|
"name": "landscape-crop",
|
|
"size": "400w",
|
|
},
|
|
Object {
|
|
"name": "landscape-crop2x",
|
|
"size": "800w",
|
|
},
|
|
]
|
|
}
|
|
noImageMessage={null}
|
|
rootClassName={null}
|
|
sizes="100%"
|
|
/>
|
|
</div>
|
|
</div>
|
|
<Component
|
|
transaction={
|
|
Object {
|
|
"attributes": Object {
|
|
"createdAt": 2017-05-01T00:00:00.000Z,
|
|
"lastTransition": "transition/auto-decline",
|
|
"lastTransitionedAt": 2017-06-01T00:00:00.000Z,
|
|
"lineItems": Array [
|
|
Object {
|
|
"code": "line-item/night",
|
|
"lineTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"quantity": "3",
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
Object {
|
|
"code": "line-item/provider-commission",
|
|
"lineTotal": Money {
|
|
"amount": -100,
|
|
"currency": "USD",
|
|
},
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": -100,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
],
|
|
"payinTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"payoutTotal": Money {
|
|
"amount": 16400,
|
|
"currency": "USD",
|
|
},
|
|
"transitions": Array [
|
|
Object {
|
|
"at": 2017-05-01T00:00:00.000Z,
|
|
"by": "customer",
|
|
"transition": "transition/preauthorize",
|
|
},
|
|
Object {
|
|
"at": 2017-06-01T00:00:00.000Z,
|
|
"by": "provider",
|
|
"transition": "transition/accept",
|
|
},
|
|
],
|
|
},
|
|
"booking": Object {
|
|
"attributes": Object {
|
|
"end": 2017-06-13T00:00:00.000Z,
|
|
"start": 2017-06-10T00:00:00.000Z,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "booking1",
|
|
},
|
|
"type": "booking",
|
|
},
|
|
"customer": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "customer display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "customer",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "order-autodeclined",
|
|
},
|
|
"listing": Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"type": "listing",
|
|
},
|
|
"provider": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "provider display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "provider",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"reviews": Array [],
|
|
"type": "transaction",
|
|
}
|
|
}
|
|
/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<InjectIntl(ReviewModal)
|
|
id="ReviewOrderModal"
|
|
isOpen={false}
|
|
onCloseModal={[Function]}
|
|
onManageDisableScrolling={[Function]}
|
|
onSubmitReview={[Function]}
|
|
reviewSent={false}
|
|
revieweeName="provider display name"
|
|
sendReviewError={null}
|
|
sendReviewInProgress={false}
|
|
/>
|
|
</div>
|
|
`;
|
|
|
|
exports[`TransactionPanel - Order canceled matches snapshot 1`] = `
|
|
<div
|
|
className=""
|
|
>
|
|
<div>
|
|
<div>
|
|
<div>
|
|
<div>
|
|
<ResponsiveImage
|
|
alt="listing1 title"
|
|
className={null}
|
|
image={null}
|
|
nameSet={
|
|
Array [
|
|
Object {
|
|
"name": "landscape-crop",
|
|
"size": "400w",
|
|
},
|
|
Object {
|
|
"name": "landscape-crop2x",
|
|
"size": "800w",
|
|
},
|
|
]
|
|
}
|
|
noImageMessage={null}
|
|
rootClassName={null}
|
|
sizes="100vw"
|
|
/>
|
|
</div>
|
|
</div>
|
|
<div
|
|
className=""
|
|
>
|
|
<AvatarMedium
|
|
user={
|
|
Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "provider display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "provider",
|
|
},
|
|
"type": "user",
|
|
}
|
|
}
|
|
/>
|
|
</div>
|
|
<Component
|
|
currentListing={
|
|
Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"images": Array [],
|
|
"type": "listing",
|
|
}
|
|
}
|
|
customerDisplayName="customer display name"
|
|
listingTitle="listing1 title"
|
|
transaction={
|
|
Object {
|
|
"attributes": Object {
|
|
"createdAt": 2017-05-01T00:00:00.000Z,
|
|
"lastTransition": "transition/accept",
|
|
"lastTransitionedAt": 2017-06-01T00:00:00.000Z,
|
|
"lineItems": Array [
|
|
Object {
|
|
"code": "line-item/night",
|
|
"lineTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"quantity": "3",
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
Object {
|
|
"code": "line-item/provider-commission",
|
|
"lineTotal": Money {
|
|
"amount": -100,
|
|
"currency": "USD",
|
|
},
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": -100,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
],
|
|
"payinTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"payoutTotal": Money {
|
|
"amount": 16400,
|
|
"currency": "USD",
|
|
},
|
|
"transitions": Array [
|
|
Object {
|
|
"at": 2017-05-01T00:00:00.000Z,
|
|
"by": "customer",
|
|
"transition": "transition/preauthorize",
|
|
},
|
|
Object {
|
|
"at": 2017-06-01T00:00:00.000Z,
|
|
"by": "provider",
|
|
"transition": "transition/accept",
|
|
},
|
|
],
|
|
},
|
|
"booking": Object {
|
|
"attributes": Object {
|
|
"end": 2017-06-13T00:00:00.000Z,
|
|
"start": 2017-06-10T00:00:00.000Z,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "booking1",
|
|
},
|
|
"type": "booking",
|
|
},
|
|
"customer": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "customer display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "customer",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "order-canceled",
|
|
},
|
|
"listing": Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"type": "listing",
|
|
},
|
|
"provider": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "provider display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "provider",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"reviews": Array [],
|
|
"type": "transaction",
|
|
}
|
|
}
|
|
/>
|
|
<Component
|
|
authorDisplayName="provider display name"
|
|
customerDisplayName="customer display name"
|
|
isCustomerBanned={false}
|
|
listingDeleted={false}
|
|
transaction={
|
|
Object {
|
|
"attributes": Object {
|
|
"createdAt": 2017-05-01T00:00:00.000Z,
|
|
"lastTransition": "transition/accept",
|
|
"lastTransitionedAt": 2017-06-01T00:00:00.000Z,
|
|
"lineItems": Array [
|
|
Object {
|
|
"code": "line-item/night",
|
|
"lineTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"quantity": "3",
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
Object {
|
|
"code": "line-item/provider-commission",
|
|
"lineTotal": Money {
|
|
"amount": -100,
|
|
"currency": "USD",
|
|
},
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": -100,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
],
|
|
"payinTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"payoutTotal": Money {
|
|
"amount": 16400,
|
|
"currency": "USD",
|
|
},
|
|
"transitions": Array [
|
|
Object {
|
|
"at": 2017-05-01T00:00:00.000Z,
|
|
"by": "customer",
|
|
"transition": "transition/preauthorize",
|
|
},
|
|
Object {
|
|
"at": 2017-06-01T00:00:00.000Z,
|
|
"by": "provider",
|
|
"transition": "transition/accept",
|
|
},
|
|
],
|
|
},
|
|
"booking": Object {
|
|
"attributes": Object {
|
|
"end": 2017-06-13T00:00:00.000Z,
|
|
"start": 2017-06-10T00:00:00.000Z,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "booking1",
|
|
},
|
|
"type": "booking",
|
|
},
|
|
"customer": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "customer display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "customer",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "order-canceled",
|
|
},
|
|
"listing": Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"type": "listing",
|
|
},
|
|
"provider": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "provider display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "provider",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"reviews": Array [],
|
|
"type": "transaction",
|
|
}
|
|
}
|
|
/>
|
|
<div>
|
|
<Component
|
|
transaction={
|
|
Object {
|
|
"attributes": Object {
|
|
"createdAt": 2017-05-01T00:00:00.000Z,
|
|
"lastTransition": "transition/accept",
|
|
"lastTransitionedAt": 2017-06-01T00:00:00.000Z,
|
|
"lineItems": Array [
|
|
Object {
|
|
"code": "line-item/night",
|
|
"lineTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"quantity": "3",
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
Object {
|
|
"code": "line-item/provider-commission",
|
|
"lineTotal": Money {
|
|
"amount": -100,
|
|
"currency": "USD",
|
|
},
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": -100,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
],
|
|
"payinTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"payoutTotal": Money {
|
|
"amount": 16400,
|
|
"currency": "USD",
|
|
},
|
|
"transitions": Array [
|
|
Object {
|
|
"at": 2017-05-01T00:00:00.000Z,
|
|
"by": "customer",
|
|
"transition": "transition/preauthorize",
|
|
},
|
|
Object {
|
|
"at": 2017-06-01T00:00:00.000Z,
|
|
"by": "provider",
|
|
"transition": "transition/accept",
|
|
},
|
|
],
|
|
},
|
|
"booking": Object {
|
|
"attributes": Object {
|
|
"end": 2017-06-13T00:00:00.000Z,
|
|
"start": 2017-06-10T00:00:00.000Z,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "booking1",
|
|
},
|
|
"type": "booking",
|
|
},
|
|
"customer": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "customer display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "customer",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "order-canceled",
|
|
},
|
|
"listing": Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"type": "listing",
|
|
},
|
|
"provider": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "provider display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "provider",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"reviews": Array [],
|
|
"type": "transaction",
|
|
}
|
|
}
|
|
/>
|
|
</div>
|
|
<Component
|
|
currentTransaction={
|
|
Object {
|
|
"attributes": Object {
|
|
"createdAt": 2017-05-01T00:00:00.000Z,
|
|
"lastTransition": "transition/accept",
|
|
"lastTransitionedAt": 2017-06-01T00:00:00.000Z,
|
|
"lineItems": Array [
|
|
Object {
|
|
"code": "line-item/night",
|
|
"lineTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"quantity": "3",
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
Object {
|
|
"code": "line-item/provider-commission",
|
|
"lineTotal": Money {
|
|
"amount": -100,
|
|
"currency": "USD",
|
|
},
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": -100,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
],
|
|
"payinTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"payoutTotal": Money {
|
|
"amount": 16400,
|
|
"currency": "USD",
|
|
},
|
|
"transitions": Array [
|
|
Object {
|
|
"at": 2017-05-01T00:00:00.000Z,
|
|
"by": "customer",
|
|
"transition": "transition/preauthorize",
|
|
},
|
|
Object {
|
|
"at": 2017-06-01T00:00:00.000Z,
|
|
"by": "provider",
|
|
"transition": "transition/accept",
|
|
},
|
|
],
|
|
},
|
|
"booking": Object {
|
|
"attributes": Object {
|
|
"end": 2017-06-13T00:00:00.000Z,
|
|
"start": 2017-06-10T00:00:00.000Z,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "booking1",
|
|
},
|
|
"type": "booking",
|
|
},
|
|
"customer": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "customer display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "customer",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "order-canceled",
|
|
},
|
|
"listing": Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"type": "listing",
|
|
},
|
|
"provider": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "provider display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "provider",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"reviews": Array [],
|
|
"type": "transaction",
|
|
}
|
|
}
|
|
currentUser={
|
|
Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"email": "user2@example.com",
|
|
"emailVerified": true,
|
|
"profile": Object {
|
|
"abbreviatedName": "user2 abbreviated name",
|
|
"displayName": "user2 display name",
|
|
"firstName": "user2 first name",
|
|
"lastName": "user2 last name",
|
|
},
|
|
"stripeConnected": true,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "user2",
|
|
},
|
|
"type": "currentUser",
|
|
}
|
|
}
|
|
fetchMessagesError={null}
|
|
fetchMessagesInProgress={false}
|
|
initialMessageFailed={false}
|
|
messages={
|
|
Array [
|
|
Object {
|
|
"attributes": Object {
|
|
"at": 2017-11-09T08:12:00.000Z,
|
|
"content": "Message msg1
|
|
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "msg1",
|
|
},
|
|
"sender": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "user1 display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "user1",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"type": "message",
|
|
},
|
|
Object {
|
|
"attributes": Object {
|
|
"at": 2017-11-09T08:12:00.000Z,
|
|
"content": "Message msg2
|
|
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "msg2",
|
|
},
|
|
"sender": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "user2 display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "user2",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"type": "message",
|
|
},
|
|
]
|
|
}
|
|
oldestMessagePageFetched={1}
|
|
onOpenReviewModal={[Function]}
|
|
onShowMoreMessages={[Function]}
|
|
rootClassName=""
|
|
totalMessagePages={1}
|
|
/>
|
|
<SendMessageForm
|
|
form="TransactionPanel.SendMessageForm"
|
|
inProgress={false}
|
|
messagePlaceholder="TransactionPanel.sendMessagePlaceholder"
|
|
onBlur={[Function]}
|
|
onFocus={[Function]}
|
|
onSubmit={[Function]}
|
|
rootClassName=""
|
|
sendMessageError={null}
|
|
/>
|
|
</div>
|
|
<div>
|
|
<div>
|
|
<div>
|
|
<div>
|
|
<ResponsiveImage
|
|
alt="listing1 title"
|
|
className={null}
|
|
image={null}
|
|
nameSet={
|
|
Array [
|
|
Object {
|
|
"name": "landscape-crop",
|
|
"size": "400w",
|
|
},
|
|
Object {
|
|
"name": "landscape-crop2x",
|
|
"size": "800w",
|
|
},
|
|
]
|
|
}
|
|
noImageMessage={null}
|
|
rootClassName={null}
|
|
sizes="100%"
|
|
/>
|
|
</div>
|
|
</div>
|
|
<Component
|
|
transaction={
|
|
Object {
|
|
"attributes": Object {
|
|
"createdAt": 2017-05-01T00:00:00.000Z,
|
|
"lastTransition": "transition/accept",
|
|
"lastTransitionedAt": 2017-06-01T00:00:00.000Z,
|
|
"lineItems": Array [
|
|
Object {
|
|
"code": "line-item/night",
|
|
"lineTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"quantity": "3",
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
Object {
|
|
"code": "line-item/provider-commission",
|
|
"lineTotal": Money {
|
|
"amount": -100,
|
|
"currency": "USD",
|
|
},
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": -100,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
],
|
|
"payinTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"payoutTotal": Money {
|
|
"amount": 16400,
|
|
"currency": "USD",
|
|
},
|
|
"transitions": Array [
|
|
Object {
|
|
"at": 2017-05-01T00:00:00.000Z,
|
|
"by": "customer",
|
|
"transition": "transition/preauthorize",
|
|
},
|
|
Object {
|
|
"at": 2017-06-01T00:00:00.000Z,
|
|
"by": "provider",
|
|
"transition": "transition/accept",
|
|
},
|
|
],
|
|
},
|
|
"booking": Object {
|
|
"attributes": Object {
|
|
"end": 2017-06-13T00:00:00.000Z,
|
|
"start": 2017-06-10T00:00:00.000Z,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "booking1",
|
|
},
|
|
"type": "booking",
|
|
},
|
|
"customer": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "customer display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "customer",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "order-canceled",
|
|
},
|
|
"listing": Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"type": "listing",
|
|
},
|
|
"provider": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "provider display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "provider",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"reviews": Array [],
|
|
"type": "transaction",
|
|
}
|
|
}
|
|
/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<InjectIntl(ReviewModal)
|
|
id="ReviewOrderModal"
|
|
isOpen={false}
|
|
onCloseModal={[Function]}
|
|
onManageDisableScrolling={[Function]}
|
|
onSubmitReview={[Function]}
|
|
reviewSent={false}
|
|
revieweeName="provider display name"
|
|
sendReviewError={null}
|
|
sendReviewInProgress={false}
|
|
/>
|
|
</div>
|
|
`;
|
|
|
|
exports[`TransactionPanel - Order declined matches snapshot 1`] = `
|
|
<div
|
|
className=""
|
|
>
|
|
<div>
|
|
<div>
|
|
<div>
|
|
<div>
|
|
<ResponsiveImage
|
|
alt="listing1 title"
|
|
className={null}
|
|
image={null}
|
|
nameSet={
|
|
Array [
|
|
Object {
|
|
"name": "landscape-crop",
|
|
"size": "400w",
|
|
},
|
|
Object {
|
|
"name": "landscape-crop2x",
|
|
"size": "800w",
|
|
},
|
|
]
|
|
}
|
|
noImageMessage={null}
|
|
rootClassName={null}
|
|
sizes="100vw"
|
|
/>
|
|
</div>
|
|
</div>
|
|
<div
|
|
className=""
|
|
>
|
|
<AvatarMedium
|
|
user={
|
|
Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "provider display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "provider",
|
|
},
|
|
"type": "user",
|
|
}
|
|
}
|
|
/>
|
|
</div>
|
|
<Component
|
|
currentListing={
|
|
Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"images": Array [],
|
|
"type": "listing",
|
|
}
|
|
}
|
|
customerDisplayName="customer display name"
|
|
listingTitle="listing1 title"
|
|
transaction={
|
|
Object {
|
|
"attributes": Object {
|
|
"createdAt": 2017-05-01T00:00:00.000Z,
|
|
"lastTransition": "transition/decline",
|
|
"lastTransitionedAt": 2017-06-01T00:00:00.000Z,
|
|
"lineItems": Array [
|
|
Object {
|
|
"code": "line-item/night",
|
|
"lineTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"quantity": "3",
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
Object {
|
|
"code": "line-item/provider-commission",
|
|
"lineTotal": Money {
|
|
"amount": -100,
|
|
"currency": "USD",
|
|
},
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": -100,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
],
|
|
"payinTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"payoutTotal": Money {
|
|
"amount": 16400,
|
|
"currency": "USD",
|
|
},
|
|
"transitions": Array [
|
|
Object {
|
|
"at": 2017-05-01T00:00:00.000Z,
|
|
"by": "customer",
|
|
"transition": "transition/preauthorize",
|
|
},
|
|
Object {
|
|
"at": 2017-06-01T00:00:00.000Z,
|
|
"by": "provider",
|
|
"transition": "transition/accept",
|
|
},
|
|
],
|
|
},
|
|
"booking": Object {
|
|
"attributes": Object {
|
|
"end": 2017-06-13T00:00:00.000Z,
|
|
"start": 2017-06-10T00:00:00.000Z,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "booking1",
|
|
},
|
|
"type": "booking",
|
|
},
|
|
"customer": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "customer display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "customer",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "order-declined",
|
|
},
|
|
"listing": Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"type": "listing",
|
|
},
|
|
"provider": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "provider display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "provider",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"reviews": Array [],
|
|
"type": "transaction",
|
|
}
|
|
}
|
|
/>
|
|
<Component
|
|
authorDisplayName="provider display name"
|
|
customerDisplayName="customer display name"
|
|
isCustomerBanned={false}
|
|
listingDeleted={false}
|
|
transaction={
|
|
Object {
|
|
"attributes": Object {
|
|
"createdAt": 2017-05-01T00:00:00.000Z,
|
|
"lastTransition": "transition/decline",
|
|
"lastTransitionedAt": 2017-06-01T00:00:00.000Z,
|
|
"lineItems": Array [
|
|
Object {
|
|
"code": "line-item/night",
|
|
"lineTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"quantity": "3",
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
Object {
|
|
"code": "line-item/provider-commission",
|
|
"lineTotal": Money {
|
|
"amount": -100,
|
|
"currency": "USD",
|
|
},
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": -100,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
],
|
|
"payinTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"payoutTotal": Money {
|
|
"amount": 16400,
|
|
"currency": "USD",
|
|
},
|
|
"transitions": Array [
|
|
Object {
|
|
"at": 2017-05-01T00:00:00.000Z,
|
|
"by": "customer",
|
|
"transition": "transition/preauthorize",
|
|
},
|
|
Object {
|
|
"at": 2017-06-01T00:00:00.000Z,
|
|
"by": "provider",
|
|
"transition": "transition/accept",
|
|
},
|
|
],
|
|
},
|
|
"booking": Object {
|
|
"attributes": Object {
|
|
"end": 2017-06-13T00:00:00.000Z,
|
|
"start": 2017-06-10T00:00:00.000Z,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "booking1",
|
|
},
|
|
"type": "booking",
|
|
},
|
|
"customer": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "customer display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "customer",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "order-declined",
|
|
},
|
|
"listing": Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"type": "listing",
|
|
},
|
|
"provider": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "provider display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "provider",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"reviews": Array [],
|
|
"type": "transaction",
|
|
}
|
|
}
|
|
/>
|
|
<div>
|
|
<Component
|
|
transaction={
|
|
Object {
|
|
"attributes": Object {
|
|
"createdAt": 2017-05-01T00:00:00.000Z,
|
|
"lastTransition": "transition/decline",
|
|
"lastTransitionedAt": 2017-06-01T00:00:00.000Z,
|
|
"lineItems": Array [
|
|
Object {
|
|
"code": "line-item/night",
|
|
"lineTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"quantity": "3",
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
Object {
|
|
"code": "line-item/provider-commission",
|
|
"lineTotal": Money {
|
|
"amount": -100,
|
|
"currency": "USD",
|
|
},
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": -100,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
],
|
|
"payinTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"payoutTotal": Money {
|
|
"amount": 16400,
|
|
"currency": "USD",
|
|
},
|
|
"transitions": Array [
|
|
Object {
|
|
"at": 2017-05-01T00:00:00.000Z,
|
|
"by": "customer",
|
|
"transition": "transition/preauthorize",
|
|
},
|
|
Object {
|
|
"at": 2017-06-01T00:00:00.000Z,
|
|
"by": "provider",
|
|
"transition": "transition/accept",
|
|
},
|
|
],
|
|
},
|
|
"booking": Object {
|
|
"attributes": Object {
|
|
"end": 2017-06-13T00:00:00.000Z,
|
|
"start": 2017-06-10T00:00:00.000Z,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "booking1",
|
|
},
|
|
"type": "booking",
|
|
},
|
|
"customer": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "customer display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "customer",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "order-declined",
|
|
},
|
|
"listing": Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"type": "listing",
|
|
},
|
|
"provider": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "provider display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "provider",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"reviews": Array [],
|
|
"type": "transaction",
|
|
}
|
|
}
|
|
/>
|
|
</div>
|
|
<Component
|
|
currentTransaction={
|
|
Object {
|
|
"attributes": Object {
|
|
"createdAt": 2017-05-01T00:00:00.000Z,
|
|
"lastTransition": "transition/decline",
|
|
"lastTransitionedAt": 2017-06-01T00:00:00.000Z,
|
|
"lineItems": Array [
|
|
Object {
|
|
"code": "line-item/night",
|
|
"lineTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"quantity": "3",
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
Object {
|
|
"code": "line-item/provider-commission",
|
|
"lineTotal": Money {
|
|
"amount": -100,
|
|
"currency": "USD",
|
|
},
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": -100,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
],
|
|
"payinTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"payoutTotal": Money {
|
|
"amount": 16400,
|
|
"currency": "USD",
|
|
},
|
|
"transitions": Array [
|
|
Object {
|
|
"at": 2017-05-01T00:00:00.000Z,
|
|
"by": "customer",
|
|
"transition": "transition/preauthorize",
|
|
},
|
|
Object {
|
|
"at": 2017-06-01T00:00:00.000Z,
|
|
"by": "provider",
|
|
"transition": "transition/accept",
|
|
},
|
|
],
|
|
},
|
|
"booking": Object {
|
|
"attributes": Object {
|
|
"end": 2017-06-13T00:00:00.000Z,
|
|
"start": 2017-06-10T00:00:00.000Z,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "booking1",
|
|
},
|
|
"type": "booking",
|
|
},
|
|
"customer": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "customer display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "customer",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "order-declined",
|
|
},
|
|
"listing": Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"type": "listing",
|
|
},
|
|
"provider": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "provider display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "provider",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"reviews": Array [],
|
|
"type": "transaction",
|
|
}
|
|
}
|
|
currentUser={
|
|
Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"email": "user2@example.com",
|
|
"emailVerified": true,
|
|
"profile": Object {
|
|
"abbreviatedName": "user2 abbreviated name",
|
|
"displayName": "user2 display name",
|
|
"firstName": "user2 first name",
|
|
"lastName": "user2 last name",
|
|
},
|
|
"stripeConnected": true,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "user2",
|
|
},
|
|
"type": "currentUser",
|
|
}
|
|
}
|
|
fetchMessagesError={null}
|
|
fetchMessagesInProgress={false}
|
|
initialMessageFailed={false}
|
|
messages={
|
|
Array [
|
|
Object {
|
|
"attributes": Object {
|
|
"at": 2017-11-09T08:12:00.000Z,
|
|
"content": "Message msg1
|
|
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "msg1",
|
|
},
|
|
"sender": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "user1 display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "user1",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"type": "message",
|
|
},
|
|
Object {
|
|
"attributes": Object {
|
|
"at": 2017-11-09T08:12:00.000Z,
|
|
"content": "Message msg2
|
|
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "msg2",
|
|
},
|
|
"sender": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "user2 display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "user2",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"type": "message",
|
|
},
|
|
]
|
|
}
|
|
oldestMessagePageFetched={1}
|
|
onOpenReviewModal={[Function]}
|
|
onShowMoreMessages={[Function]}
|
|
rootClassName=""
|
|
totalMessagePages={1}
|
|
/>
|
|
<SendMessageForm
|
|
form="TransactionPanel.SendMessageForm"
|
|
inProgress={false}
|
|
messagePlaceholder="TransactionPanel.sendMessagePlaceholder"
|
|
onBlur={[Function]}
|
|
onFocus={[Function]}
|
|
onSubmit={[Function]}
|
|
rootClassName=""
|
|
sendMessageError={null}
|
|
/>
|
|
</div>
|
|
<div>
|
|
<div>
|
|
<div>
|
|
<div>
|
|
<ResponsiveImage
|
|
alt="listing1 title"
|
|
className={null}
|
|
image={null}
|
|
nameSet={
|
|
Array [
|
|
Object {
|
|
"name": "landscape-crop",
|
|
"size": "400w",
|
|
},
|
|
Object {
|
|
"name": "landscape-crop2x",
|
|
"size": "800w",
|
|
},
|
|
]
|
|
}
|
|
noImageMessage={null}
|
|
rootClassName={null}
|
|
sizes="100%"
|
|
/>
|
|
</div>
|
|
</div>
|
|
<Component
|
|
transaction={
|
|
Object {
|
|
"attributes": Object {
|
|
"createdAt": 2017-05-01T00:00:00.000Z,
|
|
"lastTransition": "transition/decline",
|
|
"lastTransitionedAt": 2017-06-01T00:00:00.000Z,
|
|
"lineItems": Array [
|
|
Object {
|
|
"code": "line-item/night",
|
|
"lineTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"quantity": "3",
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
Object {
|
|
"code": "line-item/provider-commission",
|
|
"lineTotal": Money {
|
|
"amount": -100,
|
|
"currency": "USD",
|
|
},
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": -100,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
],
|
|
"payinTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"payoutTotal": Money {
|
|
"amount": 16400,
|
|
"currency": "USD",
|
|
},
|
|
"transitions": Array [
|
|
Object {
|
|
"at": 2017-05-01T00:00:00.000Z,
|
|
"by": "customer",
|
|
"transition": "transition/preauthorize",
|
|
},
|
|
Object {
|
|
"at": 2017-06-01T00:00:00.000Z,
|
|
"by": "provider",
|
|
"transition": "transition/accept",
|
|
},
|
|
],
|
|
},
|
|
"booking": Object {
|
|
"attributes": Object {
|
|
"end": 2017-06-13T00:00:00.000Z,
|
|
"start": 2017-06-10T00:00:00.000Z,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "booking1",
|
|
},
|
|
"type": "booking",
|
|
},
|
|
"customer": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "customer display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "customer",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "order-declined",
|
|
},
|
|
"listing": Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"type": "listing",
|
|
},
|
|
"provider": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "provider display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "provider",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"reviews": Array [],
|
|
"type": "transaction",
|
|
}
|
|
}
|
|
/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<InjectIntl(ReviewModal)
|
|
id="ReviewOrderModal"
|
|
isOpen={false}
|
|
onCloseModal={[Function]}
|
|
onManageDisableScrolling={[Function]}
|
|
onSubmitReview={[Function]}
|
|
reviewSent={false}
|
|
revieweeName="provider display name"
|
|
sendReviewError={null}
|
|
sendReviewInProgress={false}
|
|
/>
|
|
</div>
|
|
`;
|
|
|
|
exports[`TransactionPanel - Order delivered matches snapshot 1`] = `
|
|
<div
|
|
className=""
|
|
>
|
|
<div>
|
|
<div>
|
|
<div>
|
|
<div>
|
|
<ResponsiveImage
|
|
alt="listing1 title"
|
|
className={null}
|
|
image={null}
|
|
nameSet={
|
|
Array [
|
|
Object {
|
|
"name": "landscape-crop",
|
|
"size": "400w",
|
|
},
|
|
Object {
|
|
"name": "landscape-crop2x",
|
|
"size": "800w",
|
|
},
|
|
]
|
|
}
|
|
noImageMessage={null}
|
|
rootClassName={null}
|
|
sizes="100vw"
|
|
/>
|
|
</div>
|
|
</div>
|
|
<div
|
|
className=""
|
|
>
|
|
<AvatarMedium
|
|
user={
|
|
Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "provider display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "provider",
|
|
},
|
|
"type": "user",
|
|
}
|
|
}
|
|
/>
|
|
</div>
|
|
<Component
|
|
currentListing={
|
|
Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"images": Array [],
|
|
"type": "listing",
|
|
}
|
|
}
|
|
customerDisplayName="customer display name"
|
|
listingTitle="listing1 title"
|
|
transaction={
|
|
Object {
|
|
"attributes": Object {
|
|
"createdAt": 2017-05-01T00:00:00.000Z,
|
|
"lastTransition": "transition/mark-delivered",
|
|
"lastTransitionedAt": 2017-06-01T00:00:00.000Z,
|
|
"lineItems": Array [
|
|
Object {
|
|
"code": "line-item/night",
|
|
"lineTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"quantity": "3",
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
Object {
|
|
"code": "line-item/provider-commission",
|
|
"lineTotal": Money {
|
|
"amount": -100,
|
|
"currency": "USD",
|
|
},
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": -100,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
],
|
|
"payinTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"payoutTotal": Money {
|
|
"amount": 16400,
|
|
"currency": "USD",
|
|
},
|
|
"transitions": Array [
|
|
Object {
|
|
"at": 2017-05-01T00:00:00.000Z,
|
|
"by": "customer",
|
|
"transition": "transition/preauthorize",
|
|
},
|
|
Object {
|
|
"at": 2017-06-01T00:00:00.000Z,
|
|
"by": "provider",
|
|
"transition": "transition/accept",
|
|
},
|
|
],
|
|
},
|
|
"booking": Object {
|
|
"attributes": Object {
|
|
"end": 2017-06-13T00:00:00.000Z,
|
|
"start": 2017-06-10T00:00:00.000Z,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "booking1",
|
|
},
|
|
"type": "booking",
|
|
},
|
|
"customer": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "customer display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "customer",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "order-delivered",
|
|
},
|
|
"listing": Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"type": "listing",
|
|
},
|
|
"provider": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "provider display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "provider",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"reviews": Array [],
|
|
"type": "transaction",
|
|
}
|
|
}
|
|
/>
|
|
<Component
|
|
authorDisplayName="provider display name"
|
|
customerDisplayName="customer display name"
|
|
isCustomerBanned={false}
|
|
listingDeleted={false}
|
|
transaction={
|
|
Object {
|
|
"attributes": Object {
|
|
"createdAt": 2017-05-01T00:00:00.000Z,
|
|
"lastTransition": "transition/mark-delivered",
|
|
"lastTransitionedAt": 2017-06-01T00:00:00.000Z,
|
|
"lineItems": Array [
|
|
Object {
|
|
"code": "line-item/night",
|
|
"lineTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"quantity": "3",
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
Object {
|
|
"code": "line-item/provider-commission",
|
|
"lineTotal": Money {
|
|
"amount": -100,
|
|
"currency": "USD",
|
|
},
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": -100,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
],
|
|
"payinTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"payoutTotal": Money {
|
|
"amount": 16400,
|
|
"currency": "USD",
|
|
},
|
|
"transitions": Array [
|
|
Object {
|
|
"at": 2017-05-01T00:00:00.000Z,
|
|
"by": "customer",
|
|
"transition": "transition/preauthorize",
|
|
},
|
|
Object {
|
|
"at": 2017-06-01T00:00:00.000Z,
|
|
"by": "provider",
|
|
"transition": "transition/accept",
|
|
},
|
|
],
|
|
},
|
|
"booking": Object {
|
|
"attributes": Object {
|
|
"end": 2017-06-13T00:00:00.000Z,
|
|
"start": 2017-06-10T00:00:00.000Z,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "booking1",
|
|
},
|
|
"type": "booking",
|
|
},
|
|
"customer": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "customer display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "customer",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "order-delivered",
|
|
},
|
|
"listing": Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"type": "listing",
|
|
},
|
|
"provider": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "provider display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "provider",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"reviews": Array [],
|
|
"type": "transaction",
|
|
}
|
|
}
|
|
/>
|
|
<div>
|
|
<Component
|
|
transaction={
|
|
Object {
|
|
"attributes": Object {
|
|
"createdAt": 2017-05-01T00:00:00.000Z,
|
|
"lastTransition": "transition/mark-delivered",
|
|
"lastTransitionedAt": 2017-06-01T00:00:00.000Z,
|
|
"lineItems": Array [
|
|
Object {
|
|
"code": "line-item/night",
|
|
"lineTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"quantity": "3",
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
Object {
|
|
"code": "line-item/provider-commission",
|
|
"lineTotal": Money {
|
|
"amount": -100,
|
|
"currency": "USD",
|
|
},
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": -100,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
],
|
|
"payinTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"payoutTotal": Money {
|
|
"amount": 16400,
|
|
"currency": "USD",
|
|
},
|
|
"transitions": Array [
|
|
Object {
|
|
"at": 2017-05-01T00:00:00.000Z,
|
|
"by": "customer",
|
|
"transition": "transition/preauthorize",
|
|
},
|
|
Object {
|
|
"at": 2017-06-01T00:00:00.000Z,
|
|
"by": "provider",
|
|
"transition": "transition/accept",
|
|
},
|
|
],
|
|
},
|
|
"booking": Object {
|
|
"attributes": Object {
|
|
"end": 2017-06-13T00:00:00.000Z,
|
|
"start": 2017-06-10T00:00:00.000Z,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "booking1",
|
|
},
|
|
"type": "booking",
|
|
},
|
|
"customer": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "customer display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "customer",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "order-delivered",
|
|
},
|
|
"listing": Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"type": "listing",
|
|
},
|
|
"provider": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "provider display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "provider",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"reviews": Array [],
|
|
"type": "transaction",
|
|
}
|
|
}
|
|
/>
|
|
</div>
|
|
<Component
|
|
currentTransaction={
|
|
Object {
|
|
"attributes": Object {
|
|
"createdAt": 2017-05-01T00:00:00.000Z,
|
|
"lastTransition": "transition/mark-delivered",
|
|
"lastTransitionedAt": 2017-06-01T00:00:00.000Z,
|
|
"lineItems": Array [
|
|
Object {
|
|
"code": "line-item/night",
|
|
"lineTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"quantity": "3",
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
Object {
|
|
"code": "line-item/provider-commission",
|
|
"lineTotal": Money {
|
|
"amount": -100,
|
|
"currency": "USD",
|
|
},
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": -100,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
],
|
|
"payinTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"payoutTotal": Money {
|
|
"amount": 16400,
|
|
"currency": "USD",
|
|
},
|
|
"transitions": Array [
|
|
Object {
|
|
"at": 2017-05-01T00:00:00.000Z,
|
|
"by": "customer",
|
|
"transition": "transition/preauthorize",
|
|
},
|
|
Object {
|
|
"at": 2017-06-01T00:00:00.000Z,
|
|
"by": "provider",
|
|
"transition": "transition/accept",
|
|
},
|
|
],
|
|
},
|
|
"booking": Object {
|
|
"attributes": Object {
|
|
"end": 2017-06-13T00:00:00.000Z,
|
|
"start": 2017-06-10T00:00:00.000Z,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "booking1",
|
|
},
|
|
"type": "booking",
|
|
},
|
|
"customer": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "customer display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "customer",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "order-delivered",
|
|
},
|
|
"listing": Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"type": "listing",
|
|
},
|
|
"provider": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "provider display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "provider",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"reviews": Array [],
|
|
"type": "transaction",
|
|
}
|
|
}
|
|
currentUser={
|
|
Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"email": "user2@example.com",
|
|
"emailVerified": true,
|
|
"profile": Object {
|
|
"abbreviatedName": "user2 abbreviated name",
|
|
"displayName": "user2 display name",
|
|
"firstName": "user2 first name",
|
|
"lastName": "user2 last name",
|
|
},
|
|
"stripeConnected": true,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "user2",
|
|
},
|
|
"type": "currentUser",
|
|
}
|
|
}
|
|
fetchMessagesError={null}
|
|
fetchMessagesInProgress={false}
|
|
initialMessageFailed={false}
|
|
messages={
|
|
Array [
|
|
Object {
|
|
"attributes": Object {
|
|
"at": 2017-11-09T08:12:00.000Z,
|
|
"content": "Message msg1
|
|
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "msg1",
|
|
},
|
|
"sender": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "user1 display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "user1",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"type": "message",
|
|
},
|
|
Object {
|
|
"attributes": Object {
|
|
"at": 2017-11-09T08:12:00.000Z,
|
|
"content": "Message msg2
|
|
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "msg2",
|
|
},
|
|
"sender": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "user2 display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "user2",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"type": "message",
|
|
},
|
|
]
|
|
}
|
|
oldestMessagePageFetched={1}
|
|
onOpenReviewModal={[Function]}
|
|
onShowMoreMessages={[Function]}
|
|
rootClassName=""
|
|
totalMessagePages={1}
|
|
/>
|
|
<SendMessageForm
|
|
form="TransactionPanel.SendMessageForm"
|
|
inProgress={false}
|
|
messagePlaceholder="TransactionPanel.sendMessagePlaceholder"
|
|
onBlur={[Function]}
|
|
onFocus={[Function]}
|
|
onSubmit={[Function]}
|
|
rootClassName=""
|
|
sendMessageError={null}
|
|
/>
|
|
</div>
|
|
<div>
|
|
<div>
|
|
<div>
|
|
<div>
|
|
<ResponsiveImage
|
|
alt="listing1 title"
|
|
className={null}
|
|
image={null}
|
|
nameSet={
|
|
Array [
|
|
Object {
|
|
"name": "landscape-crop",
|
|
"size": "400w",
|
|
},
|
|
Object {
|
|
"name": "landscape-crop2x",
|
|
"size": "800w",
|
|
},
|
|
]
|
|
}
|
|
noImageMessage={null}
|
|
rootClassName={null}
|
|
sizes="100%"
|
|
/>
|
|
</div>
|
|
</div>
|
|
<Component
|
|
transaction={
|
|
Object {
|
|
"attributes": Object {
|
|
"createdAt": 2017-05-01T00:00:00.000Z,
|
|
"lastTransition": "transition/mark-delivered",
|
|
"lastTransitionedAt": 2017-06-01T00:00:00.000Z,
|
|
"lineItems": Array [
|
|
Object {
|
|
"code": "line-item/night",
|
|
"lineTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"quantity": "3",
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
Object {
|
|
"code": "line-item/provider-commission",
|
|
"lineTotal": Money {
|
|
"amount": -100,
|
|
"currency": "USD",
|
|
},
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": -100,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
],
|
|
"payinTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"payoutTotal": Money {
|
|
"amount": 16400,
|
|
"currency": "USD",
|
|
},
|
|
"transitions": Array [
|
|
Object {
|
|
"at": 2017-05-01T00:00:00.000Z,
|
|
"by": "customer",
|
|
"transition": "transition/preauthorize",
|
|
},
|
|
Object {
|
|
"at": 2017-06-01T00:00:00.000Z,
|
|
"by": "provider",
|
|
"transition": "transition/accept",
|
|
},
|
|
],
|
|
},
|
|
"booking": Object {
|
|
"attributes": Object {
|
|
"end": 2017-06-13T00:00:00.000Z,
|
|
"start": 2017-06-10T00:00:00.000Z,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "booking1",
|
|
},
|
|
"type": "booking",
|
|
},
|
|
"customer": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "customer display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "customer",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "order-delivered",
|
|
},
|
|
"listing": Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"type": "listing",
|
|
},
|
|
"provider": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "provider display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "provider",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"reviews": Array [],
|
|
"type": "transaction",
|
|
}
|
|
}
|
|
/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<InjectIntl(ReviewModal)
|
|
id="ReviewOrderModal"
|
|
isOpen={false}
|
|
onCloseModal={[Function]}
|
|
onManageDisableScrolling={[Function]}
|
|
onSubmitReview={[Function]}
|
|
reviewSent={false}
|
|
revieweeName="provider display name"
|
|
sendReviewError={null}
|
|
sendReviewInProgress={false}
|
|
/>
|
|
</div>
|
|
`;
|
|
|
|
exports[`TransactionPanel - Order preauthorized matches snapshot 1`] = `
|
|
<div
|
|
className=""
|
|
>
|
|
<div>
|
|
<div>
|
|
<div>
|
|
<div>
|
|
<ResponsiveImage
|
|
alt="listing1 title"
|
|
className={null}
|
|
image={null}
|
|
nameSet={
|
|
Array [
|
|
Object {
|
|
"name": "landscape-crop",
|
|
"size": "400w",
|
|
},
|
|
Object {
|
|
"name": "landscape-crop2x",
|
|
"size": "800w",
|
|
},
|
|
]
|
|
}
|
|
noImageMessage={null}
|
|
rootClassName={null}
|
|
sizes="100vw"
|
|
/>
|
|
</div>
|
|
</div>
|
|
<div
|
|
className=""
|
|
>
|
|
<AvatarMedium
|
|
user={
|
|
Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "provider display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "provider",
|
|
},
|
|
"type": "user",
|
|
}
|
|
}
|
|
/>
|
|
</div>
|
|
<Component
|
|
currentListing={
|
|
Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"images": Array [],
|
|
"type": "listing",
|
|
}
|
|
}
|
|
customerDisplayName="customer display name"
|
|
listingTitle="listing1 title"
|
|
transaction={
|
|
Object {
|
|
"attributes": Object {
|
|
"createdAt": 2017-05-01T00:00:00.000Z,
|
|
"lastTransition": "transition/preauthorize",
|
|
"lastTransitionedAt": 2017-06-01T00:00:00.000Z,
|
|
"lineItems": Array [
|
|
Object {
|
|
"code": "line-item/night",
|
|
"lineTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"quantity": "3",
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
Object {
|
|
"code": "line-item/provider-commission",
|
|
"lineTotal": Money {
|
|
"amount": -100,
|
|
"currency": "USD",
|
|
},
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": -100,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
],
|
|
"payinTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"payoutTotal": Money {
|
|
"amount": 16400,
|
|
"currency": "USD",
|
|
},
|
|
"transitions": Array [
|
|
Object {
|
|
"at": 2017-05-01T00:00:00.000Z,
|
|
"by": "customer",
|
|
"transition": "transition/preauthorize",
|
|
},
|
|
Object {
|
|
"at": 2017-06-01T00:00:00.000Z,
|
|
"by": "provider",
|
|
"transition": "transition/accept",
|
|
},
|
|
],
|
|
},
|
|
"booking": Object {
|
|
"attributes": Object {
|
|
"end": 2017-06-13T00:00:00.000Z,
|
|
"start": 2017-06-10T00:00:00.000Z,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "booking1",
|
|
},
|
|
"type": "booking",
|
|
},
|
|
"customer": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "customer display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "customer",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "order-preauthorized",
|
|
},
|
|
"listing": Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"type": "listing",
|
|
},
|
|
"provider": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "provider display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "provider",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"reviews": Array [],
|
|
"type": "transaction",
|
|
}
|
|
}
|
|
/>
|
|
<Component
|
|
authorDisplayName="provider display name"
|
|
customerDisplayName="customer display name"
|
|
isCustomerBanned={false}
|
|
listingDeleted={false}
|
|
transaction={
|
|
Object {
|
|
"attributes": Object {
|
|
"createdAt": 2017-05-01T00:00:00.000Z,
|
|
"lastTransition": "transition/preauthorize",
|
|
"lastTransitionedAt": 2017-06-01T00:00:00.000Z,
|
|
"lineItems": Array [
|
|
Object {
|
|
"code": "line-item/night",
|
|
"lineTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"quantity": "3",
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
Object {
|
|
"code": "line-item/provider-commission",
|
|
"lineTotal": Money {
|
|
"amount": -100,
|
|
"currency": "USD",
|
|
},
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": -100,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
],
|
|
"payinTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"payoutTotal": Money {
|
|
"amount": 16400,
|
|
"currency": "USD",
|
|
},
|
|
"transitions": Array [
|
|
Object {
|
|
"at": 2017-05-01T00:00:00.000Z,
|
|
"by": "customer",
|
|
"transition": "transition/preauthorize",
|
|
},
|
|
Object {
|
|
"at": 2017-06-01T00:00:00.000Z,
|
|
"by": "provider",
|
|
"transition": "transition/accept",
|
|
},
|
|
],
|
|
},
|
|
"booking": Object {
|
|
"attributes": Object {
|
|
"end": 2017-06-13T00:00:00.000Z,
|
|
"start": 2017-06-10T00:00:00.000Z,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "booking1",
|
|
},
|
|
"type": "booking",
|
|
},
|
|
"customer": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "customer display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "customer",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "order-preauthorized",
|
|
},
|
|
"listing": Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"type": "listing",
|
|
},
|
|
"provider": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "provider display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "provider",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"reviews": Array [],
|
|
"type": "transaction",
|
|
}
|
|
}
|
|
/>
|
|
<div>
|
|
<Component
|
|
transaction={
|
|
Object {
|
|
"attributes": Object {
|
|
"createdAt": 2017-05-01T00:00:00.000Z,
|
|
"lastTransition": "transition/preauthorize",
|
|
"lastTransitionedAt": 2017-06-01T00:00:00.000Z,
|
|
"lineItems": Array [
|
|
Object {
|
|
"code": "line-item/night",
|
|
"lineTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"quantity": "3",
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
Object {
|
|
"code": "line-item/provider-commission",
|
|
"lineTotal": Money {
|
|
"amount": -100,
|
|
"currency": "USD",
|
|
},
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": -100,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
],
|
|
"payinTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"payoutTotal": Money {
|
|
"amount": 16400,
|
|
"currency": "USD",
|
|
},
|
|
"transitions": Array [
|
|
Object {
|
|
"at": 2017-05-01T00:00:00.000Z,
|
|
"by": "customer",
|
|
"transition": "transition/preauthorize",
|
|
},
|
|
Object {
|
|
"at": 2017-06-01T00:00:00.000Z,
|
|
"by": "provider",
|
|
"transition": "transition/accept",
|
|
},
|
|
],
|
|
},
|
|
"booking": Object {
|
|
"attributes": Object {
|
|
"end": 2017-06-13T00:00:00.000Z,
|
|
"start": 2017-06-10T00:00:00.000Z,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "booking1",
|
|
},
|
|
"type": "booking",
|
|
},
|
|
"customer": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "customer display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "customer",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "order-preauthorized",
|
|
},
|
|
"listing": Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"type": "listing",
|
|
},
|
|
"provider": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "provider display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "provider",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"reviews": Array [],
|
|
"type": "transaction",
|
|
}
|
|
}
|
|
/>
|
|
</div>
|
|
<Component
|
|
currentTransaction={
|
|
Object {
|
|
"attributes": Object {
|
|
"createdAt": 2017-05-01T00:00:00.000Z,
|
|
"lastTransition": "transition/preauthorize",
|
|
"lastTransitionedAt": 2017-06-01T00:00:00.000Z,
|
|
"lineItems": Array [
|
|
Object {
|
|
"code": "line-item/night",
|
|
"lineTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"quantity": "3",
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
Object {
|
|
"code": "line-item/provider-commission",
|
|
"lineTotal": Money {
|
|
"amount": -100,
|
|
"currency": "USD",
|
|
},
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": -100,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
],
|
|
"payinTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"payoutTotal": Money {
|
|
"amount": 16400,
|
|
"currency": "USD",
|
|
},
|
|
"transitions": Array [
|
|
Object {
|
|
"at": 2017-05-01T00:00:00.000Z,
|
|
"by": "customer",
|
|
"transition": "transition/preauthorize",
|
|
},
|
|
Object {
|
|
"at": 2017-06-01T00:00:00.000Z,
|
|
"by": "provider",
|
|
"transition": "transition/accept",
|
|
},
|
|
],
|
|
},
|
|
"booking": Object {
|
|
"attributes": Object {
|
|
"end": 2017-06-13T00:00:00.000Z,
|
|
"start": 2017-06-10T00:00:00.000Z,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "booking1",
|
|
},
|
|
"type": "booking",
|
|
},
|
|
"customer": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "customer display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "customer",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "order-preauthorized",
|
|
},
|
|
"listing": Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"type": "listing",
|
|
},
|
|
"provider": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "provider display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "provider",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"reviews": Array [],
|
|
"type": "transaction",
|
|
}
|
|
}
|
|
currentUser={
|
|
Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"email": "user2@example.com",
|
|
"emailVerified": true,
|
|
"profile": Object {
|
|
"abbreviatedName": "user2 abbreviated name",
|
|
"displayName": "user2 display name",
|
|
"firstName": "user2 first name",
|
|
"lastName": "user2 last name",
|
|
},
|
|
"stripeConnected": true,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "user2",
|
|
},
|
|
"type": "currentUser",
|
|
}
|
|
}
|
|
fetchMessagesError={null}
|
|
fetchMessagesInProgress={false}
|
|
initialMessageFailed={false}
|
|
messages={
|
|
Array [
|
|
Object {
|
|
"attributes": Object {
|
|
"at": 2017-11-09T08:12:00.000Z,
|
|
"content": "Message msg1
|
|
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "msg1",
|
|
},
|
|
"sender": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "user1 display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "user1",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"type": "message",
|
|
},
|
|
Object {
|
|
"attributes": Object {
|
|
"at": 2017-11-09T08:12:00.000Z,
|
|
"content": "Message msg2
|
|
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "msg2",
|
|
},
|
|
"sender": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "user2 display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "user2",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"type": "message",
|
|
},
|
|
]
|
|
}
|
|
oldestMessagePageFetched={1}
|
|
onOpenReviewModal={[Function]}
|
|
onShowMoreMessages={[Function]}
|
|
rootClassName="undefined"
|
|
totalMessagePages={1}
|
|
/>
|
|
<SendMessageForm
|
|
form="TransactionPanel.SendMessageForm"
|
|
inProgress={false}
|
|
messagePlaceholder="TransactionPanel.sendMessagePlaceholder"
|
|
onBlur={[Function]}
|
|
onFocus={[Function]}
|
|
onSubmit={[Function]}
|
|
rootClassName=""
|
|
sendMessageError={null}
|
|
/>
|
|
</div>
|
|
<div>
|
|
<div>
|
|
<div>
|
|
<div>
|
|
<ResponsiveImage
|
|
alt="listing1 title"
|
|
className={null}
|
|
image={null}
|
|
nameSet={
|
|
Array [
|
|
Object {
|
|
"name": "landscape-crop",
|
|
"size": "400w",
|
|
},
|
|
Object {
|
|
"name": "landscape-crop2x",
|
|
"size": "800w",
|
|
},
|
|
]
|
|
}
|
|
noImageMessage={null}
|
|
rootClassName={null}
|
|
sizes="100%"
|
|
/>
|
|
</div>
|
|
</div>
|
|
<Component
|
|
transaction={
|
|
Object {
|
|
"attributes": Object {
|
|
"createdAt": 2017-05-01T00:00:00.000Z,
|
|
"lastTransition": "transition/preauthorize",
|
|
"lastTransitionedAt": 2017-06-01T00:00:00.000Z,
|
|
"lineItems": Array [
|
|
Object {
|
|
"code": "line-item/night",
|
|
"lineTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"quantity": "3",
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
Object {
|
|
"code": "line-item/provider-commission",
|
|
"lineTotal": Money {
|
|
"amount": -100,
|
|
"currency": "USD",
|
|
},
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": -100,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
],
|
|
"payinTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"payoutTotal": Money {
|
|
"amount": 16400,
|
|
"currency": "USD",
|
|
},
|
|
"transitions": Array [
|
|
Object {
|
|
"at": 2017-05-01T00:00:00.000Z,
|
|
"by": "customer",
|
|
"transition": "transition/preauthorize",
|
|
},
|
|
Object {
|
|
"at": 2017-06-01T00:00:00.000Z,
|
|
"by": "provider",
|
|
"transition": "transition/accept",
|
|
},
|
|
],
|
|
},
|
|
"booking": Object {
|
|
"attributes": Object {
|
|
"end": 2017-06-13T00:00:00.000Z,
|
|
"start": 2017-06-10T00:00:00.000Z,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "booking1",
|
|
},
|
|
"type": "booking",
|
|
},
|
|
"customer": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "customer display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "customer",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "order-preauthorized",
|
|
},
|
|
"listing": Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"type": "listing",
|
|
},
|
|
"provider": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "provider display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "provider",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"reviews": Array [],
|
|
"type": "transaction",
|
|
}
|
|
}
|
|
/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<InjectIntl(ReviewModal)
|
|
id="ReviewOrderModal"
|
|
isOpen={false}
|
|
onCloseModal={[Function]}
|
|
onManageDisableScrolling={[Function]}
|
|
onSubmitReview={[Function]}
|
|
reviewSent={false}
|
|
revieweeName="provider display name"
|
|
sendReviewError={null}
|
|
sendReviewInProgress={false}
|
|
/>
|
|
</div>
|
|
`;
|
|
|
|
exports[`TransactionPanel - Sale accepted matches snapshot 1`] = `
|
|
<div
|
|
className=""
|
|
>
|
|
<div>
|
|
<div>
|
|
<div>
|
|
<div>
|
|
<ResponsiveImage
|
|
alt="listing1 title"
|
|
className={null}
|
|
image={null}
|
|
nameSet={
|
|
Array [
|
|
Object {
|
|
"name": "landscape-crop",
|
|
"size": "400w",
|
|
},
|
|
Object {
|
|
"name": "landscape-crop2x",
|
|
"size": "800w",
|
|
},
|
|
]
|
|
}
|
|
noImageMessage={null}
|
|
rootClassName={null}
|
|
sizes="100vw"
|
|
/>
|
|
</div>
|
|
</div>
|
|
<div
|
|
className=""
|
|
>
|
|
<AvatarMedium
|
|
user={
|
|
Object {
|
|
"attributes": Object {
|
|
"profile": Object {},
|
|
},
|
|
"id": null,
|
|
"type": "user",
|
|
}
|
|
}
|
|
/>
|
|
</div>
|
|
<Component
|
|
currentListing={
|
|
Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"images": Array [],
|
|
"type": "listing",
|
|
}
|
|
}
|
|
customerDisplayName="customer1 display name"
|
|
listingTitle="listing1 title"
|
|
transaction={
|
|
Object {
|
|
"attributes": Object {
|
|
"createdAt": 2017-05-01T00:00:00.000Z,
|
|
"lastTransition": "transition/accept",
|
|
"lastTransitionedAt": 2017-06-10T00:00:00.000Z,
|
|
"lineItems": Array [
|
|
Object {
|
|
"code": "line-item/night",
|
|
"lineTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"quantity": "3",
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
Object {
|
|
"code": "line-item/provider-commission",
|
|
"lineTotal": Money {
|
|
"amount": -1000,
|
|
"currency": "USD",
|
|
},
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": -1000,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
],
|
|
"payinTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"payoutTotal": Money {
|
|
"amount": 15500,
|
|
"currency": "USD",
|
|
},
|
|
"transitions": Array [
|
|
Object {
|
|
"at": 2017-05-01T00:00:00.000Z,
|
|
"by": "customer",
|
|
"transition": "transition/preauthorize",
|
|
},
|
|
Object {
|
|
"at": 2017-06-01T00:00:00.000Z,
|
|
"by": "provider",
|
|
"transition": "transition/accept",
|
|
},
|
|
],
|
|
},
|
|
"booking": Object {
|
|
"attributes": Object {
|
|
"end": 2017-06-13T00:00:00.000Z,
|
|
"start": 2017-06-10T00:00:00.000Z,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "booking1",
|
|
},
|
|
"type": "booking",
|
|
},
|
|
"customer": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "customer1 display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "customer1",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "sale-accepted",
|
|
},
|
|
"listing": Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"type": "listing",
|
|
},
|
|
"provider": null,
|
|
"reviews": Array [],
|
|
"type": "transaction",
|
|
}
|
|
}
|
|
/>
|
|
<Component
|
|
customerDisplayName="customer1 display name"
|
|
isCustomerBanned={false}
|
|
listingDeleted={false}
|
|
transaction={
|
|
Object {
|
|
"attributes": Object {
|
|
"createdAt": 2017-05-01T00:00:00.000Z,
|
|
"lastTransition": "transition/accept",
|
|
"lastTransitionedAt": 2017-06-10T00:00:00.000Z,
|
|
"lineItems": Array [
|
|
Object {
|
|
"code": "line-item/night",
|
|
"lineTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"quantity": "3",
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
Object {
|
|
"code": "line-item/provider-commission",
|
|
"lineTotal": Money {
|
|
"amount": -1000,
|
|
"currency": "USD",
|
|
},
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": -1000,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
],
|
|
"payinTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"payoutTotal": Money {
|
|
"amount": 15500,
|
|
"currency": "USD",
|
|
},
|
|
"transitions": Array [
|
|
Object {
|
|
"at": 2017-05-01T00:00:00.000Z,
|
|
"by": "customer",
|
|
"transition": "transition/preauthorize",
|
|
},
|
|
Object {
|
|
"at": 2017-06-01T00:00:00.000Z,
|
|
"by": "provider",
|
|
"transition": "transition/accept",
|
|
},
|
|
],
|
|
},
|
|
"booking": Object {
|
|
"attributes": Object {
|
|
"end": 2017-06-13T00:00:00.000Z,
|
|
"start": 2017-06-10T00:00:00.000Z,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "booking1",
|
|
},
|
|
"type": "booking",
|
|
},
|
|
"customer": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "customer1 display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "customer1",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "sale-accepted",
|
|
},
|
|
"listing": Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"type": "listing",
|
|
},
|
|
"provider": null,
|
|
"reviews": Array [],
|
|
"type": "transaction",
|
|
}
|
|
}
|
|
/>
|
|
<div>
|
|
<Component
|
|
transaction={
|
|
Object {
|
|
"attributes": Object {
|
|
"createdAt": 2017-05-01T00:00:00.000Z,
|
|
"lastTransition": "transition/accept",
|
|
"lastTransitionedAt": 2017-06-10T00:00:00.000Z,
|
|
"lineItems": Array [
|
|
Object {
|
|
"code": "line-item/night",
|
|
"lineTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"quantity": "3",
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
Object {
|
|
"code": "line-item/provider-commission",
|
|
"lineTotal": Money {
|
|
"amount": -1000,
|
|
"currency": "USD",
|
|
},
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": -1000,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
],
|
|
"payinTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"payoutTotal": Money {
|
|
"amount": 15500,
|
|
"currency": "USD",
|
|
},
|
|
"transitions": Array [
|
|
Object {
|
|
"at": 2017-05-01T00:00:00.000Z,
|
|
"by": "customer",
|
|
"transition": "transition/preauthorize",
|
|
},
|
|
Object {
|
|
"at": 2017-06-01T00:00:00.000Z,
|
|
"by": "provider",
|
|
"transition": "transition/accept",
|
|
},
|
|
],
|
|
},
|
|
"booking": Object {
|
|
"attributes": Object {
|
|
"end": 2017-06-13T00:00:00.000Z,
|
|
"start": 2017-06-10T00:00:00.000Z,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "booking1",
|
|
},
|
|
"type": "booking",
|
|
},
|
|
"customer": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "customer1 display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "customer1",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "sale-accepted",
|
|
},
|
|
"listing": Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"type": "listing",
|
|
},
|
|
"provider": null,
|
|
"reviews": Array [],
|
|
"type": "transaction",
|
|
}
|
|
}
|
|
/>
|
|
</div>
|
|
<Component
|
|
currentTransaction={
|
|
Object {
|
|
"attributes": Object {
|
|
"createdAt": 2017-05-01T00:00:00.000Z,
|
|
"lastTransition": "transition/accept",
|
|
"lastTransitionedAt": 2017-06-10T00:00:00.000Z,
|
|
"lineItems": Array [
|
|
Object {
|
|
"code": "line-item/night",
|
|
"lineTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"quantity": "3",
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
Object {
|
|
"code": "line-item/provider-commission",
|
|
"lineTotal": Money {
|
|
"amount": -1000,
|
|
"currency": "USD",
|
|
},
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": -1000,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
],
|
|
"payinTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"payoutTotal": Money {
|
|
"amount": 15500,
|
|
"currency": "USD",
|
|
},
|
|
"transitions": Array [
|
|
Object {
|
|
"at": 2017-05-01T00:00:00.000Z,
|
|
"by": "customer",
|
|
"transition": "transition/preauthorize",
|
|
},
|
|
Object {
|
|
"at": 2017-06-01T00:00:00.000Z,
|
|
"by": "provider",
|
|
"transition": "transition/accept",
|
|
},
|
|
],
|
|
},
|
|
"booking": Object {
|
|
"attributes": Object {
|
|
"end": 2017-06-13T00:00:00.000Z,
|
|
"start": 2017-06-10T00:00:00.000Z,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "booking1",
|
|
},
|
|
"type": "booking",
|
|
},
|
|
"customer": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "customer1 display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "customer1",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "sale-accepted",
|
|
},
|
|
"listing": Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"type": "listing",
|
|
},
|
|
"provider": null,
|
|
"reviews": Array [],
|
|
"type": "transaction",
|
|
}
|
|
}
|
|
currentUser={
|
|
Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"email": "user1@example.com",
|
|
"emailVerified": true,
|
|
"profile": Object {
|
|
"abbreviatedName": "user1 abbreviated name",
|
|
"displayName": "user1 display name",
|
|
"firstName": "user1 first name",
|
|
"lastName": "user1 last name",
|
|
},
|
|
"stripeConnected": true,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "user1",
|
|
},
|
|
"type": "currentUser",
|
|
}
|
|
}
|
|
fetchMessagesError={null}
|
|
fetchMessagesInProgress={false}
|
|
initialMessageFailed={false}
|
|
messages={
|
|
Array [
|
|
Object {
|
|
"attributes": Object {
|
|
"at": 2017-11-09T08:12:00.000Z,
|
|
"content": "Message msg1
|
|
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "msg1",
|
|
},
|
|
"sender": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "user1 display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "user1",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"type": "message",
|
|
},
|
|
Object {
|
|
"attributes": Object {
|
|
"at": 2017-11-09T08:12:00.000Z,
|
|
"content": "Message msg2
|
|
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "msg2",
|
|
},
|
|
"sender": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "user2 display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "user2",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"type": "message",
|
|
},
|
|
]
|
|
}
|
|
oldestMessagePageFetched={1}
|
|
onOpenReviewModal={[Function]}
|
|
onShowMoreMessages={[Function]}
|
|
rootClassName=""
|
|
totalMessagePages={1}
|
|
/>
|
|
<SendMessageForm
|
|
form="TransactionPanel.SendMessageForm"
|
|
inProgress={false}
|
|
messagePlaceholder="TransactionPanel.sendMessagePlaceholder"
|
|
onBlur={[Function]}
|
|
onFocus={[Function]}
|
|
onSubmit={[Function]}
|
|
rootClassName=""
|
|
sendMessageError={null}
|
|
/>
|
|
</div>
|
|
<div>
|
|
<div>
|
|
<div>
|
|
<div>
|
|
<ResponsiveImage
|
|
alt="listing1 title"
|
|
className={null}
|
|
image={null}
|
|
nameSet={
|
|
Array [
|
|
Object {
|
|
"name": "landscape-crop",
|
|
"size": "400w",
|
|
},
|
|
Object {
|
|
"name": "landscape-crop2x",
|
|
"size": "800w",
|
|
},
|
|
]
|
|
}
|
|
noImageMessage={null}
|
|
rootClassName={null}
|
|
sizes="100%"
|
|
/>
|
|
</div>
|
|
</div>
|
|
<Component
|
|
transaction={
|
|
Object {
|
|
"attributes": Object {
|
|
"createdAt": 2017-05-01T00:00:00.000Z,
|
|
"lastTransition": "transition/accept",
|
|
"lastTransitionedAt": 2017-06-10T00:00:00.000Z,
|
|
"lineItems": Array [
|
|
Object {
|
|
"code": "line-item/night",
|
|
"lineTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"quantity": "3",
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
Object {
|
|
"code": "line-item/provider-commission",
|
|
"lineTotal": Money {
|
|
"amount": -1000,
|
|
"currency": "USD",
|
|
},
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": -1000,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
],
|
|
"payinTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"payoutTotal": Money {
|
|
"amount": 15500,
|
|
"currency": "USD",
|
|
},
|
|
"transitions": Array [
|
|
Object {
|
|
"at": 2017-05-01T00:00:00.000Z,
|
|
"by": "customer",
|
|
"transition": "transition/preauthorize",
|
|
},
|
|
Object {
|
|
"at": 2017-06-01T00:00:00.000Z,
|
|
"by": "provider",
|
|
"transition": "transition/accept",
|
|
},
|
|
],
|
|
},
|
|
"booking": Object {
|
|
"attributes": Object {
|
|
"end": 2017-06-13T00:00:00.000Z,
|
|
"start": 2017-06-10T00:00:00.000Z,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "booking1",
|
|
},
|
|
"type": "booking",
|
|
},
|
|
"customer": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "customer1 display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "customer1",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "sale-accepted",
|
|
},
|
|
"listing": Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"type": "listing",
|
|
},
|
|
"provider": null,
|
|
"reviews": Array [],
|
|
"type": "transaction",
|
|
}
|
|
}
|
|
/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<InjectIntl(ReviewModal)
|
|
id="ReviewOrderModal"
|
|
isOpen={false}
|
|
onCloseModal={[Function]}
|
|
onManageDisableScrolling={[Function]}
|
|
onSubmitReview={[Function]}
|
|
reviewSent={false}
|
|
sendReviewError={null}
|
|
sendReviewInProgress={false}
|
|
/>
|
|
</div>
|
|
`;
|
|
|
|
exports[`TransactionPanel - Sale autodeclined matches snapshot 1`] = `
|
|
<div
|
|
className=""
|
|
>
|
|
<div>
|
|
<div>
|
|
<div>
|
|
<div>
|
|
<ResponsiveImage
|
|
alt="listing1 title"
|
|
className={null}
|
|
image={null}
|
|
nameSet={
|
|
Array [
|
|
Object {
|
|
"name": "landscape-crop",
|
|
"size": "400w",
|
|
},
|
|
Object {
|
|
"name": "landscape-crop2x",
|
|
"size": "800w",
|
|
},
|
|
]
|
|
}
|
|
noImageMessage={null}
|
|
rootClassName={null}
|
|
sizes="100vw"
|
|
/>
|
|
</div>
|
|
</div>
|
|
<div
|
|
className=""
|
|
>
|
|
<AvatarMedium
|
|
user={
|
|
Object {
|
|
"attributes": Object {
|
|
"profile": Object {},
|
|
},
|
|
"id": null,
|
|
"type": "user",
|
|
}
|
|
}
|
|
/>
|
|
</div>
|
|
<Component
|
|
currentListing={
|
|
Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"images": Array [],
|
|
"type": "listing",
|
|
}
|
|
}
|
|
customerDisplayName="customer1 display name"
|
|
listingTitle="listing1 title"
|
|
transaction={
|
|
Object {
|
|
"attributes": Object {
|
|
"createdAt": 2017-05-01T00:00:00.000Z,
|
|
"lastTransition": "transition/auto-decline",
|
|
"lastTransitionedAt": 2017-06-10T00:00:00.000Z,
|
|
"lineItems": Array [
|
|
Object {
|
|
"code": "line-item/night",
|
|
"lineTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"quantity": "3",
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
Object {
|
|
"code": "line-item/provider-commission",
|
|
"lineTotal": Money {
|
|
"amount": -1000,
|
|
"currency": "USD",
|
|
},
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": -1000,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
],
|
|
"payinTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"payoutTotal": Money {
|
|
"amount": 15500,
|
|
"currency": "USD",
|
|
},
|
|
"transitions": Array [
|
|
Object {
|
|
"at": 2017-05-01T00:00:00.000Z,
|
|
"by": "customer",
|
|
"transition": "transition/preauthorize",
|
|
},
|
|
Object {
|
|
"at": 2017-06-01T00:00:00.000Z,
|
|
"by": "provider",
|
|
"transition": "transition/accept",
|
|
},
|
|
],
|
|
},
|
|
"booking": Object {
|
|
"attributes": Object {
|
|
"end": 2017-06-13T00:00:00.000Z,
|
|
"start": 2017-06-10T00:00:00.000Z,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "booking1",
|
|
},
|
|
"type": "booking",
|
|
},
|
|
"customer": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "customer1 display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "customer1",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "sale-autodeclined",
|
|
},
|
|
"listing": Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"type": "listing",
|
|
},
|
|
"provider": null,
|
|
"reviews": Array [],
|
|
"type": "transaction",
|
|
}
|
|
}
|
|
/>
|
|
<Component
|
|
customerDisplayName="customer1 display name"
|
|
isCustomerBanned={false}
|
|
listingDeleted={false}
|
|
transaction={
|
|
Object {
|
|
"attributes": Object {
|
|
"createdAt": 2017-05-01T00:00:00.000Z,
|
|
"lastTransition": "transition/auto-decline",
|
|
"lastTransitionedAt": 2017-06-10T00:00:00.000Z,
|
|
"lineItems": Array [
|
|
Object {
|
|
"code": "line-item/night",
|
|
"lineTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"quantity": "3",
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
Object {
|
|
"code": "line-item/provider-commission",
|
|
"lineTotal": Money {
|
|
"amount": -1000,
|
|
"currency": "USD",
|
|
},
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": -1000,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
],
|
|
"payinTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"payoutTotal": Money {
|
|
"amount": 15500,
|
|
"currency": "USD",
|
|
},
|
|
"transitions": Array [
|
|
Object {
|
|
"at": 2017-05-01T00:00:00.000Z,
|
|
"by": "customer",
|
|
"transition": "transition/preauthorize",
|
|
},
|
|
Object {
|
|
"at": 2017-06-01T00:00:00.000Z,
|
|
"by": "provider",
|
|
"transition": "transition/accept",
|
|
},
|
|
],
|
|
},
|
|
"booking": Object {
|
|
"attributes": Object {
|
|
"end": 2017-06-13T00:00:00.000Z,
|
|
"start": 2017-06-10T00:00:00.000Z,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "booking1",
|
|
},
|
|
"type": "booking",
|
|
},
|
|
"customer": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "customer1 display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "customer1",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "sale-autodeclined",
|
|
},
|
|
"listing": Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"type": "listing",
|
|
},
|
|
"provider": null,
|
|
"reviews": Array [],
|
|
"type": "transaction",
|
|
}
|
|
}
|
|
/>
|
|
<div>
|
|
<Component
|
|
transaction={
|
|
Object {
|
|
"attributes": Object {
|
|
"createdAt": 2017-05-01T00:00:00.000Z,
|
|
"lastTransition": "transition/auto-decline",
|
|
"lastTransitionedAt": 2017-06-10T00:00:00.000Z,
|
|
"lineItems": Array [
|
|
Object {
|
|
"code": "line-item/night",
|
|
"lineTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"quantity": "3",
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
Object {
|
|
"code": "line-item/provider-commission",
|
|
"lineTotal": Money {
|
|
"amount": -1000,
|
|
"currency": "USD",
|
|
},
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": -1000,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
],
|
|
"payinTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"payoutTotal": Money {
|
|
"amount": 15500,
|
|
"currency": "USD",
|
|
},
|
|
"transitions": Array [
|
|
Object {
|
|
"at": 2017-05-01T00:00:00.000Z,
|
|
"by": "customer",
|
|
"transition": "transition/preauthorize",
|
|
},
|
|
Object {
|
|
"at": 2017-06-01T00:00:00.000Z,
|
|
"by": "provider",
|
|
"transition": "transition/accept",
|
|
},
|
|
],
|
|
},
|
|
"booking": Object {
|
|
"attributes": Object {
|
|
"end": 2017-06-13T00:00:00.000Z,
|
|
"start": 2017-06-10T00:00:00.000Z,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "booking1",
|
|
},
|
|
"type": "booking",
|
|
},
|
|
"customer": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "customer1 display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "customer1",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "sale-autodeclined",
|
|
},
|
|
"listing": Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"type": "listing",
|
|
},
|
|
"provider": null,
|
|
"reviews": Array [],
|
|
"type": "transaction",
|
|
}
|
|
}
|
|
/>
|
|
</div>
|
|
<Component
|
|
currentTransaction={
|
|
Object {
|
|
"attributes": Object {
|
|
"createdAt": 2017-05-01T00:00:00.000Z,
|
|
"lastTransition": "transition/auto-decline",
|
|
"lastTransitionedAt": 2017-06-10T00:00:00.000Z,
|
|
"lineItems": Array [
|
|
Object {
|
|
"code": "line-item/night",
|
|
"lineTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"quantity": "3",
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
Object {
|
|
"code": "line-item/provider-commission",
|
|
"lineTotal": Money {
|
|
"amount": -1000,
|
|
"currency": "USD",
|
|
},
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": -1000,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
],
|
|
"payinTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"payoutTotal": Money {
|
|
"amount": 15500,
|
|
"currency": "USD",
|
|
},
|
|
"transitions": Array [
|
|
Object {
|
|
"at": 2017-05-01T00:00:00.000Z,
|
|
"by": "customer",
|
|
"transition": "transition/preauthorize",
|
|
},
|
|
Object {
|
|
"at": 2017-06-01T00:00:00.000Z,
|
|
"by": "provider",
|
|
"transition": "transition/accept",
|
|
},
|
|
],
|
|
},
|
|
"booking": Object {
|
|
"attributes": Object {
|
|
"end": 2017-06-13T00:00:00.000Z,
|
|
"start": 2017-06-10T00:00:00.000Z,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "booking1",
|
|
},
|
|
"type": "booking",
|
|
},
|
|
"customer": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "customer1 display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "customer1",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "sale-autodeclined",
|
|
},
|
|
"listing": Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"type": "listing",
|
|
},
|
|
"provider": null,
|
|
"reviews": Array [],
|
|
"type": "transaction",
|
|
}
|
|
}
|
|
currentUser={
|
|
Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"email": "user1@example.com",
|
|
"emailVerified": true,
|
|
"profile": Object {
|
|
"abbreviatedName": "user1 abbreviated name",
|
|
"displayName": "user1 display name",
|
|
"firstName": "user1 first name",
|
|
"lastName": "user1 last name",
|
|
},
|
|
"stripeConnected": true,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "user1",
|
|
},
|
|
"type": "currentUser",
|
|
}
|
|
}
|
|
fetchMessagesError={null}
|
|
fetchMessagesInProgress={false}
|
|
initialMessageFailed={false}
|
|
messages={
|
|
Array [
|
|
Object {
|
|
"attributes": Object {
|
|
"at": 2017-11-09T08:12:00.000Z,
|
|
"content": "Message msg1
|
|
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "msg1",
|
|
},
|
|
"sender": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "user1 display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "user1",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"type": "message",
|
|
},
|
|
Object {
|
|
"attributes": Object {
|
|
"at": 2017-11-09T08:12:00.000Z,
|
|
"content": "Message msg2
|
|
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "msg2",
|
|
},
|
|
"sender": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "user2 display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "user2",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"type": "message",
|
|
},
|
|
]
|
|
}
|
|
oldestMessagePageFetched={1}
|
|
onOpenReviewModal={[Function]}
|
|
onShowMoreMessages={[Function]}
|
|
rootClassName=""
|
|
totalMessagePages={1}
|
|
/>
|
|
<SendMessageForm
|
|
form="TransactionPanel.SendMessageForm"
|
|
inProgress={false}
|
|
messagePlaceholder="TransactionPanel.sendMessagePlaceholder"
|
|
onBlur={[Function]}
|
|
onFocus={[Function]}
|
|
onSubmit={[Function]}
|
|
rootClassName=""
|
|
sendMessageError={null}
|
|
/>
|
|
</div>
|
|
<div>
|
|
<div>
|
|
<div>
|
|
<div>
|
|
<ResponsiveImage
|
|
alt="listing1 title"
|
|
className={null}
|
|
image={null}
|
|
nameSet={
|
|
Array [
|
|
Object {
|
|
"name": "landscape-crop",
|
|
"size": "400w",
|
|
},
|
|
Object {
|
|
"name": "landscape-crop2x",
|
|
"size": "800w",
|
|
},
|
|
]
|
|
}
|
|
noImageMessage={null}
|
|
rootClassName={null}
|
|
sizes="100%"
|
|
/>
|
|
</div>
|
|
</div>
|
|
<Component
|
|
transaction={
|
|
Object {
|
|
"attributes": Object {
|
|
"createdAt": 2017-05-01T00:00:00.000Z,
|
|
"lastTransition": "transition/auto-decline",
|
|
"lastTransitionedAt": 2017-06-10T00:00:00.000Z,
|
|
"lineItems": Array [
|
|
Object {
|
|
"code": "line-item/night",
|
|
"lineTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"quantity": "3",
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
Object {
|
|
"code": "line-item/provider-commission",
|
|
"lineTotal": Money {
|
|
"amount": -1000,
|
|
"currency": "USD",
|
|
},
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": -1000,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
],
|
|
"payinTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"payoutTotal": Money {
|
|
"amount": 15500,
|
|
"currency": "USD",
|
|
},
|
|
"transitions": Array [
|
|
Object {
|
|
"at": 2017-05-01T00:00:00.000Z,
|
|
"by": "customer",
|
|
"transition": "transition/preauthorize",
|
|
},
|
|
Object {
|
|
"at": 2017-06-01T00:00:00.000Z,
|
|
"by": "provider",
|
|
"transition": "transition/accept",
|
|
},
|
|
],
|
|
},
|
|
"booking": Object {
|
|
"attributes": Object {
|
|
"end": 2017-06-13T00:00:00.000Z,
|
|
"start": 2017-06-10T00:00:00.000Z,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "booking1",
|
|
},
|
|
"type": "booking",
|
|
},
|
|
"customer": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "customer1 display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "customer1",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "sale-autodeclined",
|
|
},
|
|
"listing": Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"type": "listing",
|
|
},
|
|
"provider": null,
|
|
"reviews": Array [],
|
|
"type": "transaction",
|
|
}
|
|
}
|
|
/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<InjectIntl(ReviewModal)
|
|
id="ReviewOrderModal"
|
|
isOpen={false}
|
|
onCloseModal={[Function]}
|
|
onManageDisableScrolling={[Function]}
|
|
onSubmitReview={[Function]}
|
|
reviewSent={false}
|
|
sendReviewError={null}
|
|
sendReviewInProgress={false}
|
|
/>
|
|
</div>
|
|
`;
|
|
|
|
exports[`TransactionPanel - Sale canceled matches snapshot 1`] = `
|
|
<div
|
|
className=""
|
|
>
|
|
<div>
|
|
<div>
|
|
<div>
|
|
<div>
|
|
<ResponsiveImage
|
|
alt="listing1 title"
|
|
className={null}
|
|
image={null}
|
|
nameSet={
|
|
Array [
|
|
Object {
|
|
"name": "landscape-crop",
|
|
"size": "400w",
|
|
},
|
|
Object {
|
|
"name": "landscape-crop2x",
|
|
"size": "800w",
|
|
},
|
|
]
|
|
}
|
|
noImageMessage={null}
|
|
rootClassName={null}
|
|
sizes="100vw"
|
|
/>
|
|
</div>
|
|
</div>
|
|
<div
|
|
className=""
|
|
>
|
|
<AvatarMedium
|
|
user={
|
|
Object {
|
|
"attributes": Object {
|
|
"profile": Object {},
|
|
},
|
|
"id": null,
|
|
"type": "user",
|
|
}
|
|
}
|
|
/>
|
|
</div>
|
|
<Component
|
|
currentListing={
|
|
Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"images": Array [],
|
|
"type": "listing",
|
|
}
|
|
}
|
|
customerDisplayName="customer1 display name"
|
|
listingTitle="listing1 title"
|
|
transaction={
|
|
Object {
|
|
"attributes": Object {
|
|
"createdAt": 2017-05-01T00:00:00.000Z,
|
|
"lastTransition": "transition/accept",
|
|
"lastTransitionedAt": 2017-06-10T00:00:00.000Z,
|
|
"lineItems": Array [
|
|
Object {
|
|
"code": "line-item/night",
|
|
"lineTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"quantity": "3",
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
Object {
|
|
"code": "line-item/provider-commission",
|
|
"lineTotal": Money {
|
|
"amount": -1000,
|
|
"currency": "USD",
|
|
},
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": -1000,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
],
|
|
"payinTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"payoutTotal": Money {
|
|
"amount": 15500,
|
|
"currency": "USD",
|
|
},
|
|
"transitions": Array [
|
|
Object {
|
|
"at": 2017-05-01T00:00:00.000Z,
|
|
"by": "customer",
|
|
"transition": "transition/preauthorize",
|
|
},
|
|
Object {
|
|
"at": 2017-06-01T00:00:00.000Z,
|
|
"by": "provider",
|
|
"transition": "transition/accept",
|
|
},
|
|
],
|
|
},
|
|
"booking": Object {
|
|
"attributes": Object {
|
|
"end": 2017-06-13T00:00:00.000Z,
|
|
"start": 2017-06-10T00:00:00.000Z,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "booking1",
|
|
},
|
|
"type": "booking",
|
|
},
|
|
"customer": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "customer1 display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "customer1",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "sale-canceled",
|
|
},
|
|
"listing": Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"type": "listing",
|
|
},
|
|
"provider": null,
|
|
"reviews": Array [],
|
|
"type": "transaction",
|
|
}
|
|
}
|
|
/>
|
|
<Component
|
|
customerDisplayName="customer1 display name"
|
|
isCustomerBanned={false}
|
|
listingDeleted={false}
|
|
transaction={
|
|
Object {
|
|
"attributes": Object {
|
|
"createdAt": 2017-05-01T00:00:00.000Z,
|
|
"lastTransition": "transition/accept",
|
|
"lastTransitionedAt": 2017-06-10T00:00:00.000Z,
|
|
"lineItems": Array [
|
|
Object {
|
|
"code": "line-item/night",
|
|
"lineTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"quantity": "3",
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
Object {
|
|
"code": "line-item/provider-commission",
|
|
"lineTotal": Money {
|
|
"amount": -1000,
|
|
"currency": "USD",
|
|
},
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": -1000,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
],
|
|
"payinTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"payoutTotal": Money {
|
|
"amount": 15500,
|
|
"currency": "USD",
|
|
},
|
|
"transitions": Array [
|
|
Object {
|
|
"at": 2017-05-01T00:00:00.000Z,
|
|
"by": "customer",
|
|
"transition": "transition/preauthorize",
|
|
},
|
|
Object {
|
|
"at": 2017-06-01T00:00:00.000Z,
|
|
"by": "provider",
|
|
"transition": "transition/accept",
|
|
},
|
|
],
|
|
},
|
|
"booking": Object {
|
|
"attributes": Object {
|
|
"end": 2017-06-13T00:00:00.000Z,
|
|
"start": 2017-06-10T00:00:00.000Z,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "booking1",
|
|
},
|
|
"type": "booking",
|
|
},
|
|
"customer": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "customer1 display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "customer1",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "sale-canceled",
|
|
},
|
|
"listing": Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"type": "listing",
|
|
},
|
|
"provider": null,
|
|
"reviews": Array [],
|
|
"type": "transaction",
|
|
}
|
|
}
|
|
/>
|
|
<div>
|
|
<Component
|
|
transaction={
|
|
Object {
|
|
"attributes": Object {
|
|
"createdAt": 2017-05-01T00:00:00.000Z,
|
|
"lastTransition": "transition/accept",
|
|
"lastTransitionedAt": 2017-06-10T00:00:00.000Z,
|
|
"lineItems": Array [
|
|
Object {
|
|
"code": "line-item/night",
|
|
"lineTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"quantity": "3",
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
Object {
|
|
"code": "line-item/provider-commission",
|
|
"lineTotal": Money {
|
|
"amount": -1000,
|
|
"currency": "USD",
|
|
},
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": -1000,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
],
|
|
"payinTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"payoutTotal": Money {
|
|
"amount": 15500,
|
|
"currency": "USD",
|
|
},
|
|
"transitions": Array [
|
|
Object {
|
|
"at": 2017-05-01T00:00:00.000Z,
|
|
"by": "customer",
|
|
"transition": "transition/preauthorize",
|
|
},
|
|
Object {
|
|
"at": 2017-06-01T00:00:00.000Z,
|
|
"by": "provider",
|
|
"transition": "transition/accept",
|
|
},
|
|
],
|
|
},
|
|
"booking": Object {
|
|
"attributes": Object {
|
|
"end": 2017-06-13T00:00:00.000Z,
|
|
"start": 2017-06-10T00:00:00.000Z,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "booking1",
|
|
},
|
|
"type": "booking",
|
|
},
|
|
"customer": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "customer1 display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "customer1",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "sale-canceled",
|
|
},
|
|
"listing": Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"type": "listing",
|
|
},
|
|
"provider": null,
|
|
"reviews": Array [],
|
|
"type": "transaction",
|
|
}
|
|
}
|
|
/>
|
|
</div>
|
|
<Component
|
|
currentTransaction={
|
|
Object {
|
|
"attributes": Object {
|
|
"createdAt": 2017-05-01T00:00:00.000Z,
|
|
"lastTransition": "transition/accept",
|
|
"lastTransitionedAt": 2017-06-10T00:00:00.000Z,
|
|
"lineItems": Array [
|
|
Object {
|
|
"code": "line-item/night",
|
|
"lineTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"quantity": "3",
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
Object {
|
|
"code": "line-item/provider-commission",
|
|
"lineTotal": Money {
|
|
"amount": -1000,
|
|
"currency": "USD",
|
|
},
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": -1000,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
],
|
|
"payinTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"payoutTotal": Money {
|
|
"amount": 15500,
|
|
"currency": "USD",
|
|
},
|
|
"transitions": Array [
|
|
Object {
|
|
"at": 2017-05-01T00:00:00.000Z,
|
|
"by": "customer",
|
|
"transition": "transition/preauthorize",
|
|
},
|
|
Object {
|
|
"at": 2017-06-01T00:00:00.000Z,
|
|
"by": "provider",
|
|
"transition": "transition/accept",
|
|
},
|
|
],
|
|
},
|
|
"booking": Object {
|
|
"attributes": Object {
|
|
"end": 2017-06-13T00:00:00.000Z,
|
|
"start": 2017-06-10T00:00:00.000Z,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "booking1",
|
|
},
|
|
"type": "booking",
|
|
},
|
|
"customer": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "customer1 display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "customer1",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "sale-canceled",
|
|
},
|
|
"listing": Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"type": "listing",
|
|
},
|
|
"provider": null,
|
|
"reviews": Array [],
|
|
"type": "transaction",
|
|
}
|
|
}
|
|
currentUser={
|
|
Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"email": "user1@example.com",
|
|
"emailVerified": true,
|
|
"profile": Object {
|
|
"abbreviatedName": "user1 abbreviated name",
|
|
"displayName": "user1 display name",
|
|
"firstName": "user1 first name",
|
|
"lastName": "user1 last name",
|
|
},
|
|
"stripeConnected": true,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "user1",
|
|
},
|
|
"type": "currentUser",
|
|
}
|
|
}
|
|
fetchMessagesError={null}
|
|
fetchMessagesInProgress={false}
|
|
initialMessageFailed={false}
|
|
messages={
|
|
Array [
|
|
Object {
|
|
"attributes": Object {
|
|
"at": 2017-11-09T08:12:00.000Z,
|
|
"content": "Message msg1
|
|
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "msg1",
|
|
},
|
|
"sender": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "user1 display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "user1",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"type": "message",
|
|
},
|
|
Object {
|
|
"attributes": Object {
|
|
"at": 2017-11-09T08:12:00.000Z,
|
|
"content": "Message msg2
|
|
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "msg2",
|
|
},
|
|
"sender": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "user2 display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "user2",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"type": "message",
|
|
},
|
|
]
|
|
}
|
|
oldestMessagePageFetched={1}
|
|
onOpenReviewModal={[Function]}
|
|
onShowMoreMessages={[Function]}
|
|
rootClassName=""
|
|
totalMessagePages={1}
|
|
/>
|
|
<SendMessageForm
|
|
form="TransactionPanel.SendMessageForm"
|
|
inProgress={false}
|
|
messagePlaceholder="TransactionPanel.sendMessagePlaceholder"
|
|
onBlur={[Function]}
|
|
onFocus={[Function]}
|
|
onSubmit={[Function]}
|
|
rootClassName=""
|
|
sendMessageError={null}
|
|
/>
|
|
</div>
|
|
<div>
|
|
<div>
|
|
<div>
|
|
<div>
|
|
<ResponsiveImage
|
|
alt="listing1 title"
|
|
className={null}
|
|
image={null}
|
|
nameSet={
|
|
Array [
|
|
Object {
|
|
"name": "landscape-crop",
|
|
"size": "400w",
|
|
},
|
|
Object {
|
|
"name": "landscape-crop2x",
|
|
"size": "800w",
|
|
},
|
|
]
|
|
}
|
|
noImageMessage={null}
|
|
rootClassName={null}
|
|
sizes="100%"
|
|
/>
|
|
</div>
|
|
</div>
|
|
<Component
|
|
transaction={
|
|
Object {
|
|
"attributes": Object {
|
|
"createdAt": 2017-05-01T00:00:00.000Z,
|
|
"lastTransition": "transition/accept",
|
|
"lastTransitionedAt": 2017-06-10T00:00:00.000Z,
|
|
"lineItems": Array [
|
|
Object {
|
|
"code": "line-item/night",
|
|
"lineTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"quantity": "3",
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
Object {
|
|
"code": "line-item/provider-commission",
|
|
"lineTotal": Money {
|
|
"amount": -1000,
|
|
"currency": "USD",
|
|
},
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": -1000,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
],
|
|
"payinTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"payoutTotal": Money {
|
|
"amount": 15500,
|
|
"currency": "USD",
|
|
},
|
|
"transitions": Array [
|
|
Object {
|
|
"at": 2017-05-01T00:00:00.000Z,
|
|
"by": "customer",
|
|
"transition": "transition/preauthorize",
|
|
},
|
|
Object {
|
|
"at": 2017-06-01T00:00:00.000Z,
|
|
"by": "provider",
|
|
"transition": "transition/accept",
|
|
},
|
|
],
|
|
},
|
|
"booking": Object {
|
|
"attributes": Object {
|
|
"end": 2017-06-13T00:00:00.000Z,
|
|
"start": 2017-06-10T00:00:00.000Z,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "booking1",
|
|
},
|
|
"type": "booking",
|
|
},
|
|
"customer": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "customer1 display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "customer1",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "sale-canceled",
|
|
},
|
|
"listing": Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"type": "listing",
|
|
},
|
|
"provider": null,
|
|
"reviews": Array [],
|
|
"type": "transaction",
|
|
}
|
|
}
|
|
/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<InjectIntl(ReviewModal)
|
|
id="ReviewOrderModal"
|
|
isOpen={false}
|
|
onCloseModal={[Function]}
|
|
onManageDisableScrolling={[Function]}
|
|
onSubmitReview={[Function]}
|
|
reviewSent={false}
|
|
sendReviewError={null}
|
|
sendReviewInProgress={false}
|
|
/>
|
|
</div>
|
|
`;
|
|
|
|
exports[`TransactionPanel - Sale declined matches snapshot 1`] = `
|
|
<div
|
|
className=""
|
|
>
|
|
<div>
|
|
<div>
|
|
<div>
|
|
<div>
|
|
<ResponsiveImage
|
|
alt="listing1 title"
|
|
className={null}
|
|
image={null}
|
|
nameSet={
|
|
Array [
|
|
Object {
|
|
"name": "landscape-crop",
|
|
"size": "400w",
|
|
},
|
|
Object {
|
|
"name": "landscape-crop2x",
|
|
"size": "800w",
|
|
},
|
|
]
|
|
}
|
|
noImageMessage={null}
|
|
rootClassName={null}
|
|
sizes="100vw"
|
|
/>
|
|
</div>
|
|
</div>
|
|
<div
|
|
className=""
|
|
>
|
|
<AvatarMedium
|
|
user={
|
|
Object {
|
|
"attributes": Object {
|
|
"profile": Object {},
|
|
},
|
|
"id": null,
|
|
"type": "user",
|
|
}
|
|
}
|
|
/>
|
|
</div>
|
|
<Component
|
|
currentListing={
|
|
Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"images": Array [],
|
|
"type": "listing",
|
|
}
|
|
}
|
|
customerDisplayName="customer1 display name"
|
|
listingTitle="listing1 title"
|
|
transaction={
|
|
Object {
|
|
"attributes": Object {
|
|
"createdAt": 2017-05-01T00:00:00.000Z,
|
|
"lastTransition": "transition/decline",
|
|
"lastTransitionedAt": 2017-06-10T00:00:00.000Z,
|
|
"lineItems": Array [
|
|
Object {
|
|
"code": "line-item/night",
|
|
"lineTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"quantity": "3",
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
Object {
|
|
"code": "line-item/provider-commission",
|
|
"lineTotal": Money {
|
|
"amount": -1000,
|
|
"currency": "USD",
|
|
},
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": -1000,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
],
|
|
"payinTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"payoutTotal": Money {
|
|
"amount": 15500,
|
|
"currency": "USD",
|
|
},
|
|
"transitions": Array [
|
|
Object {
|
|
"at": 2017-05-01T00:00:00.000Z,
|
|
"by": "customer",
|
|
"transition": "transition/preauthorize",
|
|
},
|
|
Object {
|
|
"at": 2017-06-01T00:00:00.000Z,
|
|
"by": "provider",
|
|
"transition": "transition/accept",
|
|
},
|
|
],
|
|
},
|
|
"booking": Object {
|
|
"attributes": Object {
|
|
"end": 2017-06-13T00:00:00.000Z,
|
|
"start": 2017-06-10T00:00:00.000Z,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "booking1",
|
|
},
|
|
"type": "booking",
|
|
},
|
|
"customer": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "customer1 display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "customer1",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "sale-declined",
|
|
},
|
|
"listing": Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"type": "listing",
|
|
},
|
|
"provider": null,
|
|
"reviews": Array [],
|
|
"type": "transaction",
|
|
}
|
|
}
|
|
/>
|
|
<Component
|
|
customerDisplayName="customer1 display name"
|
|
isCustomerBanned={false}
|
|
listingDeleted={false}
|
|
transaction={
|
|
Object {
|
|
"attributes": Object {
|
|
"createdAt": 2017-05-01T00:00:00.000Z,
|
|
"lastTransition": "transition/decline",
|
|
"lastTransitionedAt": 2017-06-10T00:00:00.000Z,
|
|
"lineItems": Array [
|
|
Object {
|
|
"code": "line-item/night",
|
|
"lineTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"quantity": "3",
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
Object {
|
|
"code": "line-item/provider-commission",
|
|
"lineTotal": Money {
|
|
"amount": -1000,
|
|
"currency": "USD",
|
|
},
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": -1000,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
],
|
|
"payinTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"payoutTotal": Money {
|
|
"amount": 15500,
|
|
"currency": "USD",
|
|
},
|
|
"transitions": Array [
|
|
Object {
|
|
"at": 2017-05-01T00:00:00.000Z,
|
|
"by": "customer",
|
|
"transition": "transition/preauthorize",
|
|
},
|
|
Object {
|
|
"at": 2017-06-01T00:00:00.000Z,
|
|
"by": "provider",
|
|
"transition": "transition/accept",
|
|
},
|
|
],
|
|
},
|
|
"booking": Object {
|
|
"attributes": Object {
|
|
"end": 2017-06-13T00:00:00.000Z,
|
|
"start": 2017-06-10T00:00:00.000Z,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "booking1",
|
|
},
|
|
"type": "booking",
|
|
},
|
|
"customer": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "customer1 display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "customer1",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "sale-declined",
|
|
},
|
|
"listing": Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"type": "listing",
|
|
},
|
|
"provider": null,
|
|
"reviews": Array [],
|
|
"type": "transaction",
|
|
}
|
|
}
|
|
/>
|
|
<div>
|
|
<Component
|
|
transaction={
|
|
Object {
|
|
"attributes": Object {
|
|
"createdAt": 2017-05-01T00:00:00.000Z,
|
|
"lastTransition": "transition/decline",
|
|
"lastTransitionedAt": 2017-06-10T00:00:00.000Z,
|
|
"lineItems": Array [
|
|
Object {
|
|
"code": "line-item/night",
|
|
"lineTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"quantity": "3",
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
Object {
|
|
"code": "line-item/provider-commission",
|
|
"lineTotal": Money {
|
|
"amount": -1000,
|
|
"currency": "USD",
|
|
},
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": -1000,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
],
|
|
"payinTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"payoutTotal": Money {
|
|
"amount": 15500,
|
|
"currency": "USD",
|
|
},
|
|
"transitions": Array [
|
|
Object {
|
|
"at": 2017-05-01T00:00:00.000Z,
|
|
"by": "customer",
|
|
"transition": "transition/preauthorize",
|
|
},
|
|
Object {
|
|
"at": 2017-06-01T00:00:00.000Z,
|
|
"by": "provider",
|
|
"transition": "transition/accept",
|
|
},
|
|
],
|
|
},
|
|
"booking": Object {
|
|
"attributes": Object {
|
|
"end": 2017-06-13T00:00:00.000Z,
|
|
"start": 2017-06-10T00:00:00.000Z,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "booking1",
|
|
},
|
|
"type": "booking",
|
|
},
|
|
"customer": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "customer1 display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "customer1",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "sale-declined",
|
|
},
|
|
"listing": Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"type": "listing",
|
|
},
|
|
"provider": null,
|
|
"reviews": Array [],
|
|
"type": "transaction",
|
|
}
|
|
}
|
|
/>
|
|
</div>
|
|
<Component
|
|
currentTransaction={
|
|
Object {
|
|
"attributes": Object {
|
|
"createdAt": 2017-05-01T00:00:00.000Z,
|
|
"lastTransition": "transition/decline",
|
|
"lastTransitionedAt": 2017-06-10T00:00:00.000Z,
|
|
"lineItems": Array [
|
|
Object {
|
|
"code": "line-item/night",
|
|
"lineTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"quantity": "3",
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
Object {
|
|
"code": "line-item/provider-commission",
|
|
"lineTotal": Money {
|
|
"amount": -1000,
|
|
"currency": "USD",
|
|
},
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": -1000,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
],
|
|
"payinTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"payoutTotal": Money {
|
|
"amount": 15500,
|
|
"currency": "USD",
|
|
},
|
|
"transitions": Array [
|
|
Object {
|
|
"at": 2017-05-01T00:00:00.000Z,
|
|
"by": "customer",
|
|
"transition": "transition/preauthorize",
|
|
},
|
|
Object {
|
|
"at": 2017-06-01T00:00:00.000Z,
|
|
"by": "provider",
|
|
"transition": "transition/accept",
|
|
},
|
|
],
|
|
},
|
|
"booking": Object {
|
|
"attributes": Object {
|
|
"end": 2017-06-13T00:00:00.000Z,
|
|
"start": 2017-06-10T00:00:00.000Z,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "booking1",
|
|
},
|
|
"type": "booking",
|
|
},
|
|
"customer": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "customer1 display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "customer1",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "sale-declined",
|
|
},
|
|
"listing": Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"type": "listing",
|
|
},
|
|
"provider": null,
|
|
"reviews": Array [],
|
|
"type": "transaction",
|
|
}
|
|
}
|
|
currentUser={
|
|
Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"email": "user1@example.com",
|
|
"emailVerified": true,
|
|
"profile": Object {
|
|
"abbreviatedName": "user1 abbreviated name",
|
|
"displayName": "user1 display name",
|
|
"firstName": "user1 first name",
|
|
"lastName": "user1 last name",
|
|
},
|
|
"stripeConnected": true,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "user1",
|
|
},
|
|
"type": "currentUser",
|
|
}
|
|
}
|
|
fetchMessagesError={null}
|
|
fetchMessagesInProgress={false}
|
|
initialMessageFailed={false}
|
|
messages={
|
|
Array [
|
|
Object {
|
|
"attributes": Object {
|
|
"at": 2017-11-09T08:12:00.000Z,
|
|
"content": "Message msg1
|
|
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "msg1",
|
|
},
|
|
"sender": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "user1 display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "user1",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"type": "message",
|
|
},
|
|
Object {
|
|
"attributes": Object {
|
|
"at": 2017-11-09T08:12:00.000Z,
|
|
"content": "Message msg2
|
|
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "msg2",
|
|
},
|
|
"sender": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "user2 display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "user2",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"type": "message",
|
|
},
|
|
]
|
|
}
|
|
oldestMessagePageFetched={1}
|
|
onOpenReviewModal={[Function]}
|
|
onShowMoreMessages={[Function]}
|
|
rootClassName=""
|
|
totalMessagePages={1}
|
|
/>
|
|
<SendMessageForm
|
|
form="TransactionPanel.SendMessageForm"
|
|
inProgress={false}
|
|
messagePlaceholder="TransactionPanel.sendMessagePlaceholder"
|
|
onBlur={[Function]}
|
|
onFocus={[Function]}
|
|
onSubmit={[Function]}
|
|
rootClassName=""
|
|
sendMessageError={null}
|
|
/>
|
|
</div>
|
|
<div>
|
|
<div>
|
|
<div>
|
|
<div>
|
|
<ResponsiveImage
|
|
alt="listing1 title"
|
|
className={null}
|
|
image={null}
|
|
nameSet={
|
|
Array [
|
|
Object {
|
|
"name": "landscape-crop",
|
|
"size": "400w",
|
|
},
|
|
Object {
|
|
"name": "landscape-crop2x",
|
|
"size": "800w",
|
|
},
|
|
]
|
|
}
|
|
noImageMessage={null}
|
|
rootClassName={null}
|
|
sizes="100%"
|
|
/>
|
|
</div>
|
|
</div>
|
|
<Component
|
|
transaction={
|
|
Object {
|
|
"attributes": Object {
|
|
"createdAt": 2017-05-01T00:00:00.000Z,
|
|
"lastTransition": "transition/decline",
|
|
"lastTransitionedAt": 2017-06-10T00:00:00.000Z,
|
|
"lineItems": Array [
|
|
Object {
|
|
"code": "line-item/night",
|
|
"lineTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"quantity": "3",
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
Object {
|
|
"code": "line-item/provider-commission",
|
|
"lineTotal": Money {
|
|
"amount": -1000,
|
|
"currency": "USD",
|
|
},
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": -1000,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
],
|
|
"payinTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"payoutTotal": Money {
|
|
"amount": 15500,
|
|
"currency": "USD",
|
|
},
|
|
"transitions": Array [
|
|
Object {
|
|
"at": 2017-05-01T00:00:00.000Z,
|
|
"by": "customer",
|
|
"transition": "transition/preauthorize",
|
|
},
|
|
Object {
|
|
"at": 2017-06-01T00:00:00.000Z,
|
|
"by": "provider",
|
|
"transition": "transition/accept",
|
|
},
|
|
],
|
|
},
|
|
"booking": Object {
|
|
"attributes": Object {
|
|
"end": 2017-06-13T00:00:00.000Z,
|
|
"start": 2017-06-10T00:00:00.000Z,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "booking1",
|
|
},
|
|
"type": "booking",
|
|
},
|
|
"customer": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "customer1 display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "customer1",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "sale-declined",
|
|
},
|
|
"listing": Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"type": "listing",
|
|
},
|
|
"provider": null,
|
|
"reviews": Array [],
|
|
"type": "transaction",
|
|
}
|
|
}
|
|
/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<InjectIntl(ReviewModal)
|
|
id="ReviewOrderModal"
|
|
isOpen={false}
|
|
onCloseModal={[Function]}
|
|
onManageDisableScrolling={[Function]}
|
|
onSubmitReview={[Function]}
|
|
reviewSent={false}
|
|
sendReviewError={null}
|
|
sendReviewInProgress={false}
|
|
/>
|
|
</div>
|
|
`;
|
|
|
|
exports[`TransactionPanel - Sale delivered matches snapshot 1`] = `
|
|
<div
|
|
className=""
|
|
>
|
|
<div>
|
|
<div>
|
|
<div>
|
|
<div>
|
|
<ResponsiveImage
|
|
alt="listing1 title"
|
|
className={null}
|
|
image={null}
|
|
nameSet={
|
|
Array [
|
|
Object {
|
|
"name": "landscape-crop",
|
|
"size": "400w",
|
|
},
|
|
Object {
|
|
"name": "landscape-crop2x",
|
|
"size": "800w",
|
|
},
|
|
]
|
|
}
|
|
noImageMessage={null}
|
|
rootClassName={null}
|
|
sizes="100vw"
|
|
/>
|
|
</div>
|
|
</div>
|
|
<div
|
|
className=""
|
|
>
|
|
<AvatarMedium
|
|
user={
|
|
Object {
|
|
"attributes": Object {
|
|
"profile": Object {},
|
|
},
|
|
"id": null,
|
|
"type": "user",
|
|
}
|
|
}
|
|
/>
|
|
</div>
|
|
<Component
|
|
currentListing={
|
|
Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"images": Array [],
|
|
"type": "listing",
|
|
}
|
|
}
|
|
customerDisplayName="customer1 display name"
|
|
listingTitle="listing1 title"
|
|
transaction={
|
|
Object {
|
|
"attributes": Object {
|
|
"createdAt": 2017-05-01T00:00:00.000Z,
|
|
"lastTransition": "transition/mark-delivered",
|
|
"lastTransitionedAt": 2017-06-10T00:00:00.000Z,
|
|
"lineItems": Array [
|
|
Object {
|
|
"code": "line-item/night",
|
|
"lineTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"quantity": "3",
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
Object {
|
|
"code": "line-item/provider-commission",
|
|
"lineTotal": Money {
|
|
"amount": -1000,
|
|
"currency": "USD",
|
|
},
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": -1000,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
],
|
|
"payinTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"payoutTotal": Money {
|
|
"amount": 15500,
|
|
"currency": "USD",
|
|
},
|
|
"transitions": Array [
|
|
Object {
|
|
"at": 2017-05-01T00:00:00.000Z,
|
|
"by": "customer",
|
|
"transition": "transition/preauthorize",
|
|
},
|
|
Object {
|
|
"at": 2017-06-01T00:00:00.000Z,
|
|
"by": "provider",
|
|
"transition": "transition/accept",
|
|
},
|
|
],
|
|
},
|
|
"booking": Object {
|
|
"attributes": Object {
|
|
"end": 2017-06-13T00:00:00.000Z,
|
|
"start": 2017-06-10T00:00:00.000Z,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "booking1",
|
|
},
|
|
"type": "booking",
|
|
},
|
|
"customer": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "customer1 display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "customer1",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "sale-delivered",
|
|
},
|
|
"listing": Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"type": "listing",
|
|
},
|
|
"provider": null,
|
|
"reviews": Array [],
|
|
"type": "transaction",
|
|
}
|
|
}
|
|
/>
|
|
<Component
|
|
customerDisplayName="customer1 display name"
|
|
isCustomerBanned={false}
|
|
listingDeleted={false}
|
|
transaction={
|
|
Object {
|
|
"attributes": Object {
|
|
"createdAt": 2017-05-01T00:00:00.000Z,
|
|
"lastTransition": "transition/mark-delivered",
|
|
"lastTransitionedAt": 2017-06-10T00:00:00.000Z,
|
|
"lineItems": Array [
|
|
Object {
|
|
"code": "line-item/night",
|
|
"lineTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"quantity": "3",
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
Object {
|
|
"code": "line-item/provider-commission",
|
|
"lineTotal": Money {
|
|
"amount": -1000,
|
|
"currency": "USD",
|
|
},
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": -1000,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
],
|
|
"payinTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"payoutTotal": Money {
|
|
"amount": 15500,
|
|
"currency": "USD",
|
|
},
|
|
"transitions": Array [
|
|
Object {
|
|
"at": 2017-05-01T00:00:00.000Z,
|
|
"by": "customer",
|
|
"transition": "transition/preauthorize",
|
|
},
|
|
Object {
|
|
"at": 2017-06-01T00:00:00.000Z,
|
|
"by": "provider",
|
|
"transition": "transition/accept",
|
|
},
|
|
],
|
|
},
|
|
"booking": Object {
|
|
"attributes": Object {
|
|
"end": 2017-06-13T00:00:00.000Z,
|
|
"start": 2017-06-10T00:00:00.000Z,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "booking1",
|
|
},
|
|
"type": "booking",
|
|
},
|
|
"customer": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "customer1 display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "customer1",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "sale-delivered",
|
|
},
|
|
"listing": Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"type": "listing",
|
|
},
|
|
"provider": null,
|
|
"reviews": Array [],
|
|
"type": "transaction",
|
|
}
|
|
}
|
|
/>
|
|
<div>
|
|
<Component
|
|
transaction={
|
|
Object {
|
|
"attributes": Object {
|
|
"createdAt": 2017-05-01T00:00:00.000Z,
|
|
"lastTransition": "transition/mark-delivered",
|
|
"lastTransitionedAt": 2017-06-10T00:00:00.000Z,
|
|
"lineItems": Array [
|
|
Object {
|
|
"code": "line-item/night",
|
|
"lineTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"quantity": "3",
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
Object {
|
|
"code": "line-item/provider-commission",
|
|
"lineTotal": Money {
|
|
"amount": -1000,
|
|
"currency": "USD",
|
|
},
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": -1000,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
],
|
|
"payinTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"payoutTotal": Money {
|
|
"amount": 15500,
|
|
"currency": "USD",
|
|
},
|
|
"transitions": Array [
|
|
Object {
|
|
"at": 2017-05-01T00:00:00.000Z,
|
|
"by": "customer",
|
|
"transition": "transition/preauthorize",
|
|
},
|
|
Object {
|
|
"at": 2017-06-01T00:00:00.000Z,
|
|
"by": "provider",
|
|
"transition": "transition/accept",
|
|
},
|
|
],
|
|
},
|
|
"booking": Object {
|
|
"attributes": Object {
|
|
"end": 2017-06-13T00:00:00.000Z,
|
|
"start": 2017-06-10T00:00:00.000Z,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "booking1",
|
|
},
|
|
"type": "booking",
|
|
},
|
|
"customer": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "customer1 display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "customer1",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "sale-delivered",
|
|
},
|
|
"listing": Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"type": "listing",
|
|
},
|
|
"provider": null,
|
|
"reviews": Array [],
|
|
"type": "transaction",
|
|
}
|
|
}
|
|
/>
|
|
</div>
|
|
<Component
|
|
currentTransaction={
|
|
Object {
|
|
"attributes": Object {
|
|
"createdAt": 2017-05-01T00:00:00.000Z,
|
|
"lastTransition": "transition/mark-delivered",
|
|
"lastTransitionedAt": 2017-06-10T00:00:00.000Z,
|
|
"lineItems": Array [
|
|
Object {
|
|
"code": "line-item/night",
|
|
"lineTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"quantity": "3",
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
Object {
|
|
"code": "line-item/provider-commission",
|
|
"lineTotal": Money {
|
|
"amount": -1000,
|
|
"currency": "USD",
|
|
},
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": -1000,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
],
|
|
"payinTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"payoutTotal": Money {
|
|
"amount": 15500,
|
|
"currency": "USD",
|
|
},
|
|
"transitions": Array [
|
|
Object {
|
|
"at": 2017-05-01T00:00:00.000Z,
|
|
"by": "customer",
|
|
"transition": "transition/preauthorize",
|
|
},
|
|
Object {
|
|
"at": 2017-06-01T00:00:00.000Z,
|
|
"by": "provider",
|
|
"transition": "transition/accept",
|
|
},
|
|
],
|
|
},
|
|
"booking": Object {
|
|
"attributes": Object {
|
|
"end": 2017-06-13T00:00:00.000Z,
|
|
"start": 2017-06-10T00:00:00.000Z,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "booking1",
|
|
},
|
|
"type": "booking",
|
|
},
|
|
"customer": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "customer1 display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "customer1",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "sale-delivered",
|
|
},
|
|
"listing": Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"type": "listing",
|
|
},
|
|
"provider": null,
|
|
"reviews": Array [],
|
|
"type": "transaction",
|
|
}
|
|
}
|
|
currentUser={
|
|
Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"email": "user1@example.com",
|
|
"emailVerified": true,
|
|
"profile": Object {
|
|
"abbreviatedName": "user1 abbreviated name",
|
|
"displayName": "user1 display name",
|
|
"firstName": "user1 first name",
|
|
"lastName": "user1 last name",
|
|
},
|
|
"stripeConnected": true,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "user1",
|
|
},
|
|
"type": "currentUser",
|
|
}
|
|
}
|
|
fetchMessagesError={null}
|
|
fetchMessagesInProgress={false}
|
|
initialMessageFailed={false}
|
|
messages={
|
|
Array [
|
|
Object {
|
|
"attributes": Object {
|
|
"at": 2017-11-09T08:12:00.000Z,
|
|
"content": "Message msg1
|
|
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "msg1",
|
|
},
|
|
"sender": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "user1 display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "user1",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"type": "message",
|
|
},
|
|
Object {
|
|
"attributes": Object {
|
|
"at": 2017-11-09T08:12:00.000Z,
|
|
"content": "Message msg2
|
|
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "msg2",
|
|
},
|
|
"sender": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "user2 display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "user2",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"type": "message",
|
|
},
|
|
]
|
|
}
|
|
oldestMessagePageFetched={1}
|
|
onOpenReviewModal={[Function]}
|
|
onShowMoreMessages={[Function]}
|
|
rootClassName=""
|
|
totalMessagePages={1}
|
|
/>
|
|
<SendMessageForm
|
|
form="TransactionPanel.SendMessageForm"
|
|
inProgress={false}
|
|
messagePlaceholder="TransactionPanel.sendMessagePlaceholder"
|
|
onBlur={[Function]}
|
|
onFocus={[Function]}
|
|
onSubmit={[Function]}
|
|
rootClassName=""
|
|
sendMessageError={null}
|
|
/>
|
|
</div>
|
|
<div>
|
|
<div>
|
|
<div>
|
|
<div>
|
|
<ResponsiveImage
|
|
alt="listing1 title"
|
|
className={null}
|
|
image={null}
|
|
nameSet={
|
|
Array [
|
|
Object {
|
|
"name": "landscape-crop",
|
|
"size": "400w",
|
|
},
|
|
Object {
|
|
"name": "landscape-crop2x",
|
|
"size": "800w",
|
|
},
|
|
]
|
|
}
|
|
noImageMessage={null}
|
|
rootClassName={null}
|
|
sizes="100%"
|
|
/>
|
|
</div>
|
|
</div>
|
|
<Component
|
|
transaction={
|
|
Object {
|
|
"attributes": Object {
|
|
"createdAt": 2017-05-01T00:00:00.000Z,
|
|
"lastTransition": "transition/mark-delivered",
|
|
"lastTransitionedAt": 2017-06-10T00:00:00.000Z,
|
|
"lineItems": Array [
|
|
Object {
|
|
"code": "line-item/night",
|
|
"lineTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"quantity": "3",
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
Object {
|
|
"code": "line-item/provider-commission",
|
|
"lineTotal": Money {
|
|
"amount": -1000,
|
|
"currency": "USD",
|
|
},
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": -1000,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
],
|
|
"payinTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"payoutTotal": Money {
|
|
"amount": 15500,
|
|
"currency": "USD",
|
|
},
|
|
"transitions": Array [
|
|
Object {
|
|
"at": 2017-05-01T00:00:00.000Z,
|
|
"by": "customer",
|
|
"transition": "transition/preauthorize",
|
|
},
|
|
Object {
|
|
"at": 2017-06-01T00:00:00.000Z,
|
|
"by": "provider",
|
|
"transition": "transition/accept",
|
|
},
|
|
],
|
|
},
|
|
"booking": Object {
|
|
"attributes": Object {
|
|
"end": 2017-06-13T00:00:00.000Z,
|
|
"start": 2017-06-10T00:00:00.000Z,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "booking1",
|
|
},
|
|
"type": "booking",
|
|
},
|
|
"customer": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "customer1 display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "customer1",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "sale-delivered",
|
|
},
|
|
"listing": Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"type": "listing",
|
|
},
|
|
"provider": null,
|
|
"reviews": Array [],
|
|
"type": "transaction",
|
|
}
|
|
}
|
|
/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<InjectIntl(ReviewModal)
|
|
id="ReviewOrderModal"
|
|
isOpen={false}
|
|
onCloseModal={[Function]}
|
|
onManageDisableScrolling={[Function]}
|
|
onSubmitReview={[Function]}
|
|
reviewSent={false}
|
|
sendReviewError={null}
|
|
sendReviewInProgress={false}
|
|
/>
|
|
</div>
|
|
`;
|
|
|
|
exports[`TransactionPanel - Sale preauthorized matches snapshot 1`] = `
|
|
<div
|
|
className=""
|
|
>
|
|
<div>
|
|
<div>
|
|
<div>
|
|
<div>
|
|
<ResponsiveImage
|
|
alt="listing1 title"
|
|
className={null}
|
|
image={null}
|
|
nameSet={
|
|
Array [
|
|
Object {
|
|
"name": "landscape-crop",
|
|
"size": "400w",
|
|
},
|
|
Object {
|
|
"name": "landscape-crop2x",
|
|
"size": "800w",
|
|
},
|
|
]
|
|
}
|
|
noImageMessage={null}
|
|
rootClassName={null}
|
|
sizes="100vw"
|
|
/>
|
|
</div>
|
|
</div>
|
|
<div
|
|
className=""
|
|
>
|
|
<AvatarMedium
|
|
user={
|
|
Object {
|
|
"attributes": Object {
|
|
"profile": Object {},
|
|
},
|
|
"id": null,
|
|
"type": "user",
|
|
}
|
|
}
|
|
/>
|
|
</div>
|
|
<Component
|
|
currentListing={
|
|
Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"images": Array [],
|
|
"type": "listing",
|
|
}
|
|
}
|
|
customerDisplayName="customer1 display name"
|
|
listingTitle="listing1 title"
|
|
transaction={
|
|
Object {
|
|
"attributes": Object {
|
|
"createdAt": 2017-05-01T00:00:00.000Z,
|
|
"lastTransition": "transition/preauthorize",
|
|
"lastTransitionedAt": 2017-06-10T00:00:00.000Z,
|
|
"lineItems": Array [
|
|
Object {
|
|
"code": "line-item/night",
|
|
"lineTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"quantity": "3",
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
Object {
|
|
"code": "line-item/provider-commission",
|
|
"lineTotal": Money {
|
|
"amount": -1000,
|
|
"currency": "USD",
|
|
},
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": -1000,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
],
|
|
"payinTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"payoutTotal": Money {
|
|
"amount": 15500,
|
|
"currency": "USD",
|
|
},
|
|
"transitions": Array [
|
|
Object {
|
|
"at": 2017-05-01T00:00:00.000Z,
|
|
"by": "customer",
|
|
"transition": "transition/preauthorize",
|
|
},
|
|
Object {
|
|
"at": 2017-06-01T00:00:00.000Z,
|
|
"by": "provider",
|
|
"transition": "transition/accept",
|
|
},
|
|
],
|
|
},
|
|
"booking": Object {
|
|
"attributes": Object {
|
|
"end": 2017-06-13T00:00:00.000Z,
|
|
"start": 2017-06-10T00:00:00.000Z,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "booking1",
|
|
},
|
|
"type": "booking",
|
|
},
|
|
"customer": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "customer1 display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "customer1",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "sale-preauthorized",
|
|
},
|
|
"listing": Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"type": "listing",
|
|
},
|
|
"provider": null,
|
|
"reviews": Array [],
|
|
"type": "transaction",
|
|
}
|
|
}
|
|
/>
|
|
<Component
|
|
customerDisplayName="customer1 display name"
|
|
isCustomerBanned={false}
|
|
listingDeleted={false}
|
|
transaction={
|
|
Object {
|
|
"attributes": Object {
|
|
"createdAt": 2017-05-01T00:00:00.000Z,
|
|
"lastTransition": "transition/preauthorize",
|
|
"lastTransitionedAt": 2017-06-10T00:00:00.000Z,
|
|
"lineItems": Array [
|
|
Object {
|
|
"code": "line-item/night",
|
|
"lineTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"quantity": "3",
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
Object {
|
|
"code": "line-item/provider-commission",
|
|
"lineTotal": Money {
|
|
"amount": -1000,
|
|
"currency": "USD",
|
|
},
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": -1000,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
],
|
|
"payinTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"payoutTotal": Money {
|
|
"amount": 15500,
|
|
"currency": "USD",
|
|
},
|
|
"transitions": Array [
|
|
Object {
|
|
"at": 2017-05-01T00:00:00.000Z,
|
|
"by": "customer",
|
|
"transition": "transition/preauthorize",
|
|
},
|
|
Object {
|
|
"at": 2017-06-01T00:00:00.000Z,
|
|
"by": "provider",
|
|
"transition": "transition/accept",
|
|
},
|
|
],
|
|
},
|
|
"booking": Object {
|
|
"attributes": Object {
|
|
"end": 2017-06-13T00:00:00.000Z,
|
|
"start": 2017-06-10T00:00:00.000Z,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "booking1",
|
|
},
|
|
"type": "booking",
|
|
},
|
|
"customer": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "customer1 display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "customer1",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "sale-preauthorized",
|
|
},
|
|
"listing": Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"type": "listing",
|
|
},
|
|
"provider": null,
|
|
"reviews": Array [],
|
|
"type": "transaction",
|
|
}
|
|
}
|
|
/>
|
|
<div>
|
|
<Component
|
|
transaction={
|
|
Object {
|
|
"attributes": Object {
|
|
"createdAt": 2017-05-01T00:00:00.000Z,
|
|
"lastTransition": "transition/preauthorize",
|
|
"lastTransitionedAt": 2017-06-10T00:00:00.000Z,
|
|
"lineItems": Array [
|
|
Object {
|
|
"code": "line-item/night",
|
|
"lineTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"quantity": "3",
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
Object {
|
|
"code": "line-item/provider-commission",
|
|
"lineTotal": Money {
|
|
"amount": -1000,
|
|
"currency": "USD",
|
|
},
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": -1000,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
],
|
|
"payinTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"payoutTotal": Money {
|
|
"amount": 15500,
|
|
"currency": "USD",
|
|
},
|
|
"transitions": Array [
|
|
Object {
|
|
"at": 2017-05-01T00:00:00.000Z,
|
|
"by": "customer",
|
|
"transition": "transition/preauthorize",
|
|
},
|
|
Object {
|
|
"at": 2017-06-01T00:00:00.000Z,
|
|
"by": "provider",
|
|
"transition": "transition/accept",
|
|
},
|
|
],
|
|
},
|
|
"booking": Object {
|
|
"attributes": Object {
|
|
"end": 2017-06-13T00:00:00.000Z,
|
|
"start": 2017-06-10T00:00:00.000Z,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "booking1",
|
|
},
|
|
"type": "booking",
|
|
},
|
|
"customer": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "customer1 display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "customer1",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "sale-preauthorized",
|
|
},
|
|
"listing": Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"type": "listing",
|
|
},
|
|
"provider": null,
|
|
"reviews": Array [],
|
|
"type": "transaction",
|
|
}
|
|
}
|
|
/>
|
|
</div>
|
|
<Component
|
|
currentTransaction={
|
|
Object {
|
|
"attributes": Object {
|
|
"createdAt": 2017-05-01T00:00:00.000Z,
|
|
"lastTransition": "transition/preauthorize",
|
|
"lastTransitionedAt": 2017-06-10T00:00:00.000Z,
|
|
"lineItems": Array [
|
|
Object {
|
|
"code": "line-item/night",
|
|
"lineTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"quantity": "3",
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
Object {
|
|
"code": "line-item/provider-commission",
|
|
"lineTotal": Money {
|
|
"amount": -1000,
|
|
"currency": "USD",
|
|
},
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": -1000,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
],
|
|
"payinTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"payoutTotal": Money {
|
|
"amount": 15500,
|
|
"currency": "USD",
|
|
},
|
|
"transitions": Array [
|
|
Object {
|
|
"at": 2017-05-01T00:00:00.000Z,
|
|
"by": "customer",
|
|
"transition": "transition/preauthorize",
|
|
},
|
|
Object {
|
|
"at": 2017-06-01T00:00:00.000Z,
|
|
"by": "provider",
|
|
"transition": "transition/accept",
|
|
},
|
|
],
|
|
},
|
|
"booking": Object {
|
|
"attributes": Object {
|
|
"end": 2017-06-13T00:00:00.000Z,
|
|
"start": 2017-06-10T00:00:00.000Z,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "booking1",
|
|
},
|
|
"type": "booking",
|
|
},
|
|
"customer": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "customer1 display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "customer1",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "sale-preauthorized",
|
|
},
|
|
"listing": Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"type": "listing",
|
|
},
|
|
"provider": null,
|
|
"reviews": Array [],
|
|
"type": "transaction",
|
|
}
|
|
}
|
|
currentUser={
|
|
Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"email": "user1@example.com",
|
|
"emailVerified": true,
|
|
"profile": Object {
|
|
"abbreviatedName": "user1 abbreviated name",
|
|
"displayName": "user1 display name",
|
|
"firstName": "user1 first name",
|
|
"lastName": "user1 last name",
|
|
},
|
|
"stripeConnected": true,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "user1",
|
|
},
|
|
"type": "currentUser",
|
|
}
|
|
}
|
|
fetchMessagesError={null}
|
|
fetchMessagesInProgress={false}
|
|
initialMessageFailed={false}
|
|
messages={
|
|
Array [
|
|
Object {
|
|
"attributes": Object {
|
|
"at": 2017-11-09T08:12:00.000Z,
|
|
"content": "Message msg1
|
|
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "msg1",
|
|
},
|
|
"sender": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "user1 display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "user1",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"type": "message",
|
|
},
|
|
Object {
|
|
"attributes": Object {
|
|
"at": 2017-11-09T08:12:00.000Z,
|
|
"content": "Message msg2
|
|
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "msg2",
|
|
},
|
|
"sender": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "user2 display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "user2",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"type": "message",
|
|
},
|
|
]
|
|
}
|
|
oldestMessagePageFetched={1}
|
|
onOpenReviewModal={[Function]}
|
|
onShowMoreMessages={[Function]}
|
|
rootClassName="undefined"
|
|
totalMessagePages={1}
|
|
/>
|
|
<SendMessageForm
|
|
form="TransactionPanel.SendMessageForm"
|
|
inProgress={false}
|
|
messagePlaceholder="TransactionPanel.sendMessagePlaceholder"
|
|
onBlur={[Function]}
|
|
onFocus={[Function]}
|
|
onSubmit={[Function]}
|
|
rootClassName=""
|
|
sendMessageError={null}
|
|
/>
|
|
</div>
|
|
<div>
|
|
<div>
|
|
<div>
|
|
<div>
|
|
<ResponsiveImage
|
|
alt="listing1 title"
|
|
className={null}
|
|
image={null}
|
|
nameSet={
|
|
Array [
|
|
Object {
|
|
"name": "landscape-crop",
|
|
"size": "400w",
|
|
},
|
|
Object {
|
|
"name": "landscape-crop2x",
|
|
"size": "800w",
|
|
},
|
|
]
|
|
}
|
|
noImageMessage={null}
|
|
rootClassName={null}
|
|
sizes="100%"
|
|
/>
|
|
</div>
|
|
</div>
|
|
<Component
|
|
transaction={
|
|
Object {
|
|
"attributes": Object {
|
|
"createdAt": 2017-05-01T00:00:00.000Z,
|
|
"lastTransition": "transition/preauthorize",
|
|
"lastTransitionedAt": 2017-06-10T00:00:00.000Z,
|
|
"lineItems": Array [
|
|
Object {
|
|
"code": "line-item/night",
|
|
"lineTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"quantity": "3",
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
Object {
|
|
"code": "line-item/provider-commission",
|
|
"lineTotal": Money {
|
|
"amount": -1000,
|
|
"currency": "USD",
|
|
},
|
|
"reversal": false,
|
|
"unitPrice": Money {
|
|
"amount": -1000,
|
|
"currency": "USD",
|
|
},
|
|
},
|
|
],
|
|
"payinTotal": Money {
|
|
"amount": 16500,
|
|
"currency": "USD",
|
|
},
|
|
"payoutTotal": Money {
|
|
"amount": 15500,
|
|
"currency": "USD",
|
|
},
|
|
"transitions": Array [
|
|
Object {
|
|
"at": 2017-05-01T00:00:00.000Z,
|
|
"by": "customer",
|
|
"transition": "transition/preauthorize",
|
|
},
|
|
Object {
|
|
"at": 2017-06-01T00:00:00.000Z,
|
|
"by": "provider",
|
|
"transition": "transition/accept",
|
|
},
|
|
],
|
|
},
|
|
"booking": Object {
|
|
"attributes": Object {
|
|
"end": 2017-06-13T00:00:00.000Z,
|
|
"start": 2017-06-10T00:00:00.000Z,
|
|
},
|
|
"id": UUID {
|
|
"uuid": "booking1",
|
|
},
|
|
"type": "booking",
|
|
},
|
|
"customer": Object {
|
|
"attributes": Object {
|
|
"banned": false,
|
|
"profile": Object {
|
|
"abbreviatedName": "TT",
|
|
"displayName": "customer1 display name",
|
|
},
|
|
},
|
|
"id": UUID {
|
|
"uuid": "customer1",
|
|
},
|
|
"type": "user",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "sale-preauthorized",
|
|
},
|
|
"listing": Object {
|
|
"attributes": Object {
|
|
"address": "listing1 address",
|
|
"closed": false,
|
|
"customAttributes": Object {},
|
|
"deleted": false,
|
|
"description": "listing1 description",
|
|
"geolocation": LatLng {
|
|
"lat": 40,
|
|
"lng": 60,
|
|
},
|
|
"price": Money {
|
|
"amount": 5500,
|
|
"currency": "USD",
|
|
},
|
|
"title": "listing1 title",
|
|
},
|
|
"id": UUID {
|
|
"uuid": "listing1",
|
|
},
|
|
"type": "listing",
|
|
},
|
|
"provider": null,
|
|
"reviews": Array [],
|
|
"type": "transaction",
|
|
}
|
|
}
|
|
/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<InjectIntl(ReviewModal)
|
|
id="ReviewOrderModal"
|
|
isOpen={false}
|
|
onCloseModal={[Function]}
|
|
onManageDisableScrolling={[Function]}
|
|
onSubmitReview={[Function]}
|
|
reviewSent={false}
|
|
sendReviewError={null}
|
|
sendReviewInProgress={false}
|
|
/>
|
|
</div>
|
|
`;
|