Skip to content

Commit e472860

Browse files
committed
Add mock response for payment gateway list without data response
1 parent 8dadba4 commit e472860

File tree

2 files changed

+110
-0
lines changed

2 files changed

+110
-0
lines changed

Networking/Networking.xcodeproj/project.pbxproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -715,6 +715,7 @@
715715
DE9D6BCC270D769C00BA6562 /* shipping-label-address-without-name-validation-success.json in Resources */ = {isa = PBXBuildFile; fileRef = DE9D6BCB270D769B00BA6562 /* shipping-label-address-without-name-validation-success.json */; };
716716
DE9DEEF5291CF1B40070AD7C /* site-plugin-without-envelope.json in Resources */ = {isa = PBXBuildFile; fileRef = DE9DEEF4291CF1B40070AD7C /* site-plugin-without-envelope.json */; };
717717
DEA6B1C4296C0F45005AA5E9 /* payment-gateway-cod-without-data.json in Resources */ = {isa = PBXBuildFile; fileRef = DEA6B1C3296C0F45005AA5E9 /* payment-gateway-cod-without-data.json */; };
718+
DEA6B1C6296C13FB005AA5E9 /* payment-gateway-list-without-data.json in Resources */ = {isa = PBXBuildFile; fileRef = DEA6B1C5296C13FB005AA5E9 /* payment-gateway-list-without-data.json */; };
718719
DEC2961C26BBE764005A056B /* ShippingLabelCustomsForm.swift in Sources */ = {isa = PBXBuildFile; fileRef = DEC2961B26BBE764005A056B /* ShippingLabelCustomsForm.swift */; };
719720
DEC51A95274CDA52009F3DF4 /* SitePluginMapper.swift in Sources */ = {isa = PBXBuildFile; fileRef = DEC51A94274CDA52009F3DF4 /* SitePluginMapper.swift */; };
720721
DEC51A97274DD962009F3DF4 /* plugin.json in Resources */ = {isa = PBXBuildFile; fileRef = DEC51A96274DD962009F3DF4 /* plugin.json */; };
@@ -1530,6 +1531,7 @@
15301531
DE9D6BCB270D769B00BA6562 /* shipping-label-address-without-name-validation-success.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = "shipping-label-address-without-name-validation-success.json"; sourceTree = "<group>"; };
15311532
DE9DEEF4291CF1B40070AD7C /* site-plugin-without-envelope.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = "site-plugin-without-envelope.json"; sourceTree = "<group>"; };
15321533
DEA6B1C3296C0F45005AA5E9 /* payment-gateway-cod-without-data.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = "payment-gateway-cod-without-data.json"; sourceTree = "<group>"; };
1534+
DEA6B1C5296C13FB005AA5E9 /* payment-gateway-list-without-data.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = "payment-gateway-list-without-data.json"; sourceTree = "<group>"; };
15331535
DEC2961B26BBE764005A056B /* ShippingLabelCustomsForm.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ShippingLabelCustomsForm.swift; sourceTree = "<group>"; };
15341536
DEC51A94274CDA52009F3DF4 /* SitePluginMapper.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SitePluginMapper.swift; sourceTree = "<group>"; };
15351537
DEC51A96274DD962009F3DF4 /* plugin.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = plugin.json; sourceTree = "<group>"; };
@@ -2135,6 +2137,7 @@
21352137
B559EBA820A0B5B100836CD4 /* Responses */ = {
21362138
isa = PBXGroup;
21372139
children = (
2140+
DEA6B1C5296C13FB005AA5E9 /* payment-gateway-list-without-data.json */,
21382141
DEA6B1C3296C0F45005AA5E9 /* payment-gateway-cod-without-data.json */,
21392142
DE42F96E296BC9A700D514C2 /* countries-without-data.json */,
21402143
DE42F96C296BC67E00D514C2 /* wc-analytics-customers-without-data.json */,
@@ -2955,6 +2958,7 @@
29552958
CE20179320E3EFA7005B4C18 /* broken-orders.json in Resources */,
29562959
D8FBFF2722D529F2006E3336 /* order-stats-v4-month.json in Resources */,
29572960
02EF1672292F0D1900D90AD6 /* load-plan-success.json in Resources */,
2961+
DEA6B1C6296C13FB005AA5E9 /* payment-gateway-list-without-data.json in Resources */,
29582962
2685C0DE263B5A4200D9EE97 /* add-on-groups.json in Resources */,
29592963
DEC51A9B274E3206009F3DF4 /* plugin-inactive.json in Resources */,
29602964
CCF48B382628AEAE0034EA83 /* shipping-label-account-settings-no-payment-methods.json in Resources */,
Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
[
2+
{
3+
"id": "bacs",
4+
"title": "Direct bank transfer",
5+
"description": "Make your payment directly into our bank account. Please use your Order ID as the payment reference. Your order will not be shipped until the funds have cleared in our account.",
6+
"order": "",
7+
"enabled": false,
8+
"method_title": "Direct bank transfer",
9+
"method_description": "Take payments in person via BACS. More commonly known as direct bank/wire transfer",
10+
"method_supports": [
11+
"products"
12+
]
13+
},
14+
{
15+
"id": "cheque",
16+
"title": "Check payments",
17+
"description": "Please send a check to Store Name, Store Street, Store Town, Store State / County, Store Postcode.",
18+
"order": "",
19+
"enabled": false,
20+
"method_title": "Check payments",
21+
"method_description": "Take payments in person via checks. This offline gateway can also be useful to test purchases.",
22+
"method_supports": [
23+
"products"
24+
]
25+
},
26+
{
27+
"id": "cod",
28+
"title": "Cash on delivery",
29+
"description": "Pay with cash upon delivery.",
30+
"order": "",
31+
"enabled": true,
32+
"method_title": "Cash on delivery",
33+
"method_description": "Have your customers pay with cash (or by other means) upon delivery.",
34+
"method_supports": [
35+
"products"
36+
],
37+
"settings": {
38+
"title": {
39+
"id": "title",
40+
"label": "Title",
41+
"description": "Payment method description that the customer will see on your checkout.",
42+
"type": "safe_text",
43+
"value": "Cash on delivery",
44+
"default": "Cash on delivery",
45+
"tip": "Payment method description that the customer will see on your checkout.",
46+
"placeholder": ""
47+
},
48+
"instructions": {
49+
"id": "instructions",
50+
"label": "Instructions",
51+
"description": "Instructions that will be added to the thank you page.",
52+
"type": "textarea",
53+
"value": "Pay with cash upon delivery.",
54+
"default": "Pay with cash upon delivery.",
55+
"tip": "Instructions that will be added to the thank you page.",
56+
"placeholder": ""
57+
},
58+
"enable_for_methods": {
59+
"id": "enable_for_methods",
60+
"label": "Enable for shipping methods",
61+
"description": "If COD is only available for certain methods, set it up here. Leave blank to enable for all methods.",
62+
"type": "multiselect",
63+
"value": "",
64+
"default": "",
65+
"tip": "If COD is only available for certain methods, set it up here. Leave blank to enable for all methods.",
66+
"placeholder": "",
67+
"options": {
68+
"Flat rate": {
69+
"flat_rate": "Any &quot;Flat rate&quot; method",
70+
"flat_rate:1": "Other locations &ndash; Flat rate (#1)"
71+
},
72+
"Free shipping": {
73+
"free_shipping": "Any &quot;Free shipping&quot; method",
74+
"free_shipping:4": "Other locations &ndash; Free shipping (#4)"
75+
},
76+
"Local pickup": {
77+
"local_pickup": "Any &quot;Local pickup&quot; method"
78+
}
79+
}
80+
},
81+
"enable_for_virtual": {
82+
"id": "enable_for_virtual",
83+
"label": "Accept COD if the order is virtual",
84+
"description": "",
85+
"type": "checkbox",
86+
"value": "yes",
87+
"default": "yes",
88+
"tip": "",
89+
"placeholder": ""
90+
}
91+
}
92+
},
93+
{
94+
"id": "paypal",
95+
"title": "PayPal",
96+
"description": "Pay via PayPal; you can pay with your credit card if you don't have a PayPal account.",
97+
"order": "",
98+
"enabled": false,
99+
"method_title": "PayPal Standard",
100+
"method_description": "PayPal Standard redirects customers to PayPal to enter their payment information.",
101+
"method_supports": [
102+
"products",
103+
"refunds"
104+
]
105+
}
106+
]

0 commit comments

Comments
 (0)