Skip to content

Commit 2681d4b

Browse files
committed
Add mock response for inbox note without data envelope
1 parent 4082e9d commit 2681d4b

File tree

3 files changed

+115
-0
lines changed

3 files changed

+115
-0
lines changed

Networking/Networking.xcodeproj/project.pbxproj

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -699,6 +699,8 @@
699699
DE42F96B296BC23800D514C2 /* customer-without-data.json in Resources */ = {isa = PBXBuildFile; fileRef = DE42F96A296BC23800D514C2 /* customer-without-data.json */; };
700700
DE42F96D296BC67E00D514C2 /* wc-analytics-customers-without-data.json in Resources */ = {isa = PBXBuildFile; fileRef = DE42F96C296BC67E00D514C2 /* wc-analytics-customers-without-data.json */; };
701701
DE42F96F296BC9A700D514C2 /* countries-without-data.json in Resources */ = {isa = PBXBuildFile; fileRef = DE42F96E296BC9A700D514C2 /* countries-without-data.json */; };
702+
DE4F2A3F29750EF400B0701C /* inbox-note-list-without-data.json in Resources */ = {isa = PBXBuildFile; fileRef = DE4F2A3D29750EF400B0701C /* inbox-note-list-without-data.json */; };
703+
DE4F2A4029750EF400B0701C /* inbox-note-without-data.json in Resources */ = {isa = PBXBuildFile; fileRef = DE4F2A3E29750EF400B0701C /* inbox-note-without-data.json */; };
702704
DE50295928C5BD0200551736 /* JetpackUser.swift in Sources */ = {isa = PBXBuildFile; fileRef = DE50295828C5BD0200551736 /* JetpackUser.swift */; };
703705
DE50295B28C5F99700551736 /* DotcomUser.swift in Sources */ = {isa = PBXBuildFile; fileRef = DE50295A28C5F99700551736 /* DotcomUser.swift */; };
704706
DE50295D28C6068B00551736 /* JetpackUserMapper.swift in Sources */ = {isa = PBXBuildFile; fileRef = DE50295C28C6068B00551736 /* JetpackUserMapper.swift */; };
@@ -1518,6 +1520,8 @@
15181520
DE42F96A296BC23800D514C2 /* customer-without-data.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = "customer-without-data.json"; sourceTree = "<group>"; };
15191521
DE42F96C296BC67E00D514C2 /* wc-analytics-customers-without-data.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = "wc-analytics-customers-without-data.json"; sourceTree = "<group>"; };
15201522
DE42F96E296BC9A700D514C2 /* countries-without-data.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = "countries-without-data.json"; sourceTree = "<group>"; };
1523+
DE4F2A3D29750EF400B0701C /* inbox-note-list-without-data.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = "inbox-note-list-without-data.json"; sourceTree = "<group>"; };
1524+
DE4F2A3E29750EF400B0701C /* inbox-note-without-data.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = "inbox-note-without-data.json"; sourceTree = "<group>"; };
15211525
DE50295828C5BD0200551736 /* JetpackUser.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = JetpackUser.swift; sourceTree = "<group>"; };
15221526
DE50295A28C5F99700551736 /* DotcomUser.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DotcomUser.swift; sourceTree = "<group>"; };
15231527
DE50295C28C6068B00551736 /* JetpackUserMapper.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = JetpackUserMapper.swift; sourceTree = "<group>"; };
@@ -2143,6 +2147,8 @@
21432147
B559EBA820A0B5B100836CD4 /* Responses */ = {
21442148
isa = PBXGroup;
21452149
children = (
2150+
DE4F2A3D29750EF400B0701C /* inbox-note-list-without-data.json */,
2151+
DE4F2A3E29750EF400B0701C /* inbox-note-without-data.json */,
21462152
DEEDA4432975003800F845AB /* settings-general-without-data.json */,
21472153
DEA6B1C8296D0E8A005AA5E9 /* systemStatus-without-data.json */,
21482154
DEA6B1C7296D0E8A005AA5E9 /* systemStatusWithPluginsOnly-without-data.json */,
@@ -2936,6 +2942,7 @@
29362942
09885C8027C3FFD200910A62 /* product-variations-bulk-update.json in Resources */,
29372943
31054734262E36AB00C5C02B /* wcpay-payment-intent-error.json in Resources */,
29382944
02AF07EE27493AE700B2D81E /* media-upload-to-wordpress-site.json in Resources */,
2945+
DE4F2A4029750EF400B0701C /* inbox-note-without-data.json in Resources */,
29392946
45ED4F12239E8C57004F1BE3 /* taxes-classes.json in Resources */,
29402947
B5A2417B217F98FC00595DEF /* broken-notifications.json in Resources */,
29412948
3158A4A32729F42500C3CFA8 /* wcpay-account-dev-test.json in Resources */,
@@ -3150,6 +3157,7 @@
31503157
02698CFA24C188E9005337C4 /* product-variations-load-all-alternative-types.json in Resources */,
31513158
02616F902921336C0095BC00 /* site-creation-success.json in Resources */,
31523159
CC0786632678F79500BA9AC1 /* shipping-label-purchase-success.json in Resources */,
3160+
DE4F2A3F29750EF400B0701C /* inbox-note-list-without-data.json in Resources */,
31533161
7497376A2141F2BE0008C490 /* top-performers-week-alt.json in Resources */,
31543162
DEEDA4442975003800F845AB /* settings-general-without-data.json in Resources */,
31553163
D865CE61278CA1AE002C8520 /* stripe-payment-intent-processing.json in Resources */,
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
[
2+
{
3+
"id": 291,
4+
"name": "wc-admin-launch-checklist",
5+
"type": "info",
6+
"locale": "en_US",
7+
"title": "Ready to launch your store?",
8+
"content": "To make sure you never get that sinking \"what did I forget\" feeling, we've put together the essential pre-launch checklist.",
9+
"status": "unactioned",
10+
"date_created": "2022-01-26T09:02:08",
11+
"actions": [{
12+
"id": 13225,
13+
"name": "learn-more",
14+
"label": "Learn more",
15+
"query": "https:\/\/woocommerce.com\/posts\/pre-launch-checklist-the-essentials\/?utm_source=inbox&utm_medium=product",
16+
"status": "actioned",
17+
"primary": false,
18+
"actioned_text": "",
19+
"nonce_action": null,
20+
"nonce_name": null,
21+
"url": "https:\/\/woocommerce.com\/posts\/pre-launch-checklist-the-essentials\/?utm_source=inbox&utm_medium=product"
22+
}],
23+
"layout": "plain",
24+
"image": "",
25+
"is_deleted": false,
26+
"is_read": false,
27+
"date_created_gmt": "2022-01-26T14:32:08"
28+
}, {
29+
"id": 97,
30+
"name": "wc-admin-optimizing-the-checkout-flow",
31+
"type": "info",
32+
"locale": "en_US",
33+
"title": "Optimizing the checkout flow",
34+
"content": "It's crucial to get your store's checkout as smooth as possible to avoid losing sales. Let's take a look at how you can optimize the checkout experience for your shoppers.",
35+
"status": "unactioned",
36+
"date_created": "2022-01-26T09:02:08",
37+
"actions": [{
38+
"id": 13271,
39+
"name": "optimizing-the-checkout-flow",
40+
"label": "Learn more",
41+
"query": "https:\/\/woocommerce.com\/posts\/optimizing-woocommerce-checkout?utm_source=inbox",
42+
"status": "actioned",
43+
"primary": true,
44+
"actioned_text": "",
45+
"nonce_action": null,
46+
"nonce_name": null,
47+
"url": "https:\/\/woocommerce.com\/posts\/optimizing-woocommerce-checkout?utm_source=inbox"
48+
}],
49+
"layout": "plain",
50+
"image": "",
51+
"is_deleted": false,
52+
"is_read": false,
53+
"date_created_gmt": "2022-01-26T14:32:08"
54+
}
55+
]
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"id": 296,
3+
"name": "wc-admin-wc-helper-subscription",
4+
"type": "warning",
5+
"locale": "en_US",
6+
"title": "WooCommerce Bookings subscription expired",
7+
"content": "Your subscription expired on October 22nd. Get a new subscription to continue receiving updates and access to support.",
8+
"content_data": {
9+
"product_id": 390890,
10+
"product_name": "WooCommerce Bookings",
11+
"expired": true,
12+
"expires": 1634860800,
13+
"expires_date": "October 22nd"
14+
},
15+
"status": "unactioned",
16+
"source": "woocommerce-admin",
17+
"date_created": "2022-01-31T08:55:32",
18+
"date_reminder": null,
19+
"is_snoozable": false,
20+
"actions": [
21+
{
22+
"id": 13329,
23+
"name": "renew-subscription",
24+
"label": "Renew Subscription",
25+
"query": "https://woocommerce.com/products/woocommerce-bookings/",
26+
"status": "actioned",
27+
"primary": false,
28+
"actioned_text": "",
29+
"nonce_action": null,
30+
"nonce_name": null,
31+
"url": "https://woocommerce.com/products/woocommerce-bookings/"
32+
}
33+
],
34+
"layout": "plain",
35+
"image": "",
36+
"is_deleted": true,
37+
"is_read": false,
38+
"date_created_gmt": "2022-01-31T14:25:32",
39+
"date_reminder_gmt": null,
40+
"_links": {
41+
"self": [
42+
{
43+
"href": "https://mywootesting.mystagingwebsite.com/wp-json/wc-analytics/admin/notes/296"
44+
}
45+
],
46+
"collection": [
47+
{
48+
"href": "https://mywootesting.mystagingwebsite.com/wp-json/wc-analytics/admin/notes"
49+
}
50+
]
51+
}
52+
}

0 commit comments

Comments
 (0)