Skip to content

Commit 800efb7

Browse files
committed
Add mock response for single setting without data envelope
1 parent 76ea65e commit 800efb7

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

Networking/Networking.xcodeproj/project.pbxproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -699,6 +699,7 @@
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+
DE4F2A4229751EAE00B0701C /* setting-coupon-without-data.json in Resources */ = {isa = PBXBuildFile; fileRef = DE4F2A4129751EAE00B0701C /* setting-coupon-without-data.json */; };
702703
DE50295928C5BD0200551736 /* JetpackUser.swift in Sources */ = {isa = PBXBuildFile; fileRef = DE50295828C5BD0200551736 /* JetpackUser.swift */; };
703704
DE50295B28C5F99700551736 /* DotcomUser.swift in Sources */ = {isa = PBXBuildFile; fileRef = DE50295A28C5F99700551736 /* DotcomUser.swift */; };
704705
DE50295D28C6068B00551736 /* JetpackUserMapper.swift in Sources */ = {isa = PBXBuildFile; fileRef = DE50295C28C6068B00551736 /* JetpackUserMapper.swift */; };
@@ -1518,6 +1519,7 @@
15181519
DE42F96A296BC23800D514C2 /* customer-without-data.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = "customer-without-data.json"; sourceTree = "<group>"; };
15191520
DE42F96C296BC67E00D514C2 /* wc-analytics-customers-without-data.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = "wc-analytics-customers-without-data.json"; sourceTree = "<group>"; };
15201521
DE42F96E296BC9A700D514C2 /* countries-without-data.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = "countries-without-data.json"; sourceTree = "<group>"; };
1522+
DE4F2A4129751EAE00B0701C /* setting-coupon-without-data.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = "setting-coupon-without-data.json"; sourceTree = "<group>"; };
15211523
DE50295828C5BD0200551736 /* JetpackUser.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = JetpackUser.swift; sourceTree = "<group>"; };
15221524
DE50295A28C5F99700551736 /* DotcomUser.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DotcomUser.swift; sourceTree = "<group>"; };
15231525
DE50295C28C6068B00551736 /* JetpackUserMapper.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = JetpackUserMapper.swift; sourceTree = "<group>"; };
@@ -2143,6 +2145,7 @@
21432145
B559EBA820A0B5B100836CD4 /* Responses */ = {
21442146
isa = PBXGroup;
21452147
children = (
2148+
DE4F2A4129751EAE00B0701C /* setting-coupon-without-data.json */,
21462149
DEEDA4432975003800F845AB /* settings-general-without-data.json */,
21472150
DEA6B1C8296D0E8A005AA5E9 /* systemStatus-without-data.json */,
21482151
DEA6B1C7296D0E8A005AA5E9 /* systemStatusWithPluginsOnly-without-data.json */,
@@ -3157,6 +3160,7 @@
31573160
68CB801628D8A39700E169F8 /* customer.json in Resources */,
31583161
EEA658402966C05D00112DF0 /* product-search-sku-without-data.json in Resources */,
31593162
DE42F96D296BC67E00D514C2 /* wc-analytics-customers-without-data.json in Resources */,
3163+
DE4F2A4229751EAE00B0701C /* setting-coupon-without-data.json in Resources */,
31603164
03EB99982907F4AA00F06A39 /* just-in-time-message-list-multiple.json in Resources */,
31613165
EE80A25029556FBD003591E4 /* coupon-reports-without-data.json in Resources */,
31623166
451A97DE260B59870059D135 /* shipping-label-packages-success.json in Resources */,
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"id": "woocommerce_enable_coupons",
3+
"label": "Enable coupons",
4+
"description": "Enable the use of coupon codes",
5+
"type": "checkbox",
6+
"default": "yes",
7+
"tip": "Coupons can be applied from the cart and checkout pages.",
8+
"value": "yes",
9+
"_links": {
10+
"self": [
11+
{
12+
"href": "https://jamosova3.mystagingwebsite.com/wp-json/wc/v2/settings/general/woocommerce_enable_coupons"
13+
}
14+
],
15+
"collection": [
16+
{
17+
"href": "https://jamosova3.mystagingwebsite.com/wp-json/wc/v2/settings/general"
18+
}
19+
]
20+
}
21+
}

0 commit comments

Comments
 (0)