Skip to content

Commit c8b471f

Browse files
committed
push fixes for merge field
1 parent 23c61e3 commit c8b471f

File tree

2 files changed

+43
-1
lines changed

2 files changed

+43
-1
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
using Newtonsoft.Json;
2+
3+
namespace MailChimp.Net.Core.Responses;
4+
5+
public class AddressResponse
6+
{
7+
/// <summary>
8+
/// Gets or sets the address 1.
9+
/// </summary>
10+
[JsonProperty("addr1")]
11+
public string Address1 { get; set; }
12+
13+
/// <summary>
14+
/// Gets or sets the address 2.
15+
/// </summary>
16+
[JsonProperty("addr2")]
17+
public string Address2 { get; set; }
18+
19+
/// <summary>
20+
/// Gets or sets the city.
21+
/// </summary>
22+
[JsonProperty("city")]
23+
public string City { get; set; }
24+
25+
/// <summary>
26+
/// Gets or sets the state.
27+
/// </summary>
28+
[JsonProperty("state")]
29+
public string State { get; set; }
30+
31+
/// <summary>
32+
/// Gets or sets the zip.
33+
/// </summary>
34+
[JsonProperty("zip")]
35+
public string Zip { get; set; }
36+
37+
/// <summary>
38+
/// Gets or sets the country.
39+
/// </summary>
40+
[JsonProperty("country")]
41+
public string Country { get; set; }
42+
}

MailChimp.Net/Core/Responses/MergeFields.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public class MergeFields
1111
public string LastName { get; set; }
1212

1313
[JsonProperty("ADDRESS")]
14-
public string Address { get; set; }
14+
public AddressResponse Address { get; set; }
1515

1616
[JsonProperty("PHONE")]
1717
public string Phone { get; set; }

0 commit comments

Comments
 (0)