@@ -31,38 +31,21 @@ await client.SendAsync(
31
31
{
32
32
Message = new ContentMessage
33
33
{
34
- Content = new ElementalContent
34
+ To = new UserRecipient { Email = " email@example.com" },
35
+ Content = new ElementalContentSugar
35
36
{
36
- Version = " version" ,
37
- Brand = null ,
38
- Elements = new List <object >()
37
+ Title = " Welcome!" ,
38
+ Body = " Thanks for signing up, {{name}}" ,
39
+ },
40
+ Data = new Dictionary <string , object >() { { " name" , " Peter Parker" } },
41
+ Routing = new Routing
42
+ {
43
+ Method = RoutingMethod .Single ,
44
+ Channels = new List <
45
+ OneOf < RoutingStrategyChannel , RoutingStrategyProvider , string >
46
+ > ()
39
47
{
40
- new ElementalTextNode
41
- {
42
- Content = " content" ,
43
- Align = TextAlign .Left ,
44
- TextStyle = null ,
45
- Color = null ,
46
- Bold = null ,
47
- Italic = null ,
48
- Strikethrough = null ,
49
- Underline = null ,
50
- Locales = null ,
51
- Format = null ,
52
- },
53
- new ElementalTextNode
54
- {
55
- Content = " content" ,
56
- Align = TextAlign .Left ,
57
- TextStyle = null ,
58
- Color = null ,
59
- Bold = null ,
60
- Italic = null ,
61
- Strikethrough = null ,
62
- Underline = null ,
63
- Locales = null ,
64
- Format = null ,
65
- },
48
+ " email" ,
66
49
},
67
50
},
68
51
},
@@ -1017,7 +1000,18 @@ await client.Brands.ReplaceAsync(
1017
1000
1018
1001
``` csharp
1019
1002
await client .Bulk .CreateJobAsync (
1020
- new BulkCreateJobParams { Message = new InboundBulkMessage { Message = null } }
1003
+ new BulkCreateJobParams
1004
+ {
1005
+ Message = new InboundBulkMessage
1006
+ {
1007
+ Brand = null ,
1008
+ Data = null ,
1009
+ Event = null ,
1010
+ Locale = null ,
1011
+ Override = null ,
1012
+ Message = null ,
1013
+ },
1014
+ }
1021
1015
);
1022
1016
```
1023
1017
</dd >
@@ -1465,7 +1459,7 @@ await client.Lists.GetAsync("list_id");
1465
1459
</dl >
1466
1460
</details >
1467
1461
1468
- <details ><summary ><code >client.Lists.<a href =" /src/Courier.Client/Lists/ListsClient.cs " >UpdateAsync</a >(listId, ListPutParams { ... }) -> List </code ></summary >
1462
+ <details ><summary ><code >client.Lists.<a href =" /src/Courier.Client/Lists/ListsClient.cs " >UpdateAsync</a >(listId, ListPutParams { ... })</code ></summary >
1469
1463
<dl >
1470
1464
<dd >
1471
1465
@@ -1581,7 +1575,7 @@ await client.Lists.DeleteAsync("list_id");
1581
1575
</dl >
1582
1576
</details >
1583
1577
1584
- <details ><summary ><code >client.Lists.<a href =" /src/Courier.Client/Lists/ListsClient.cs " >RestoreAsync</a >(listId)</code ></summary >
1578
+ <details ><summary ><code >client.Lists.<a href =" /src/Courier.Client/Lists/ListsClient.cs " >RestoreAsync</a >(listId, RestoreListRequest { ... } )</code ></summary >
1585
1579
<dl >
1586
1580
<dd >
1587
1581
@@ -1608,7 +1602,7 @@ Restore a previously deleted list.
1608
1602
<dd >
1609
1603
1610
1604
``` csharp
1611
- await client .Lists .RestoreAsync (" list_id" );
1605
+ await client .Lists .RestoreAsync (" list_id" , new RestoreListRequest () );
1612
1606
```
1613
1607
</dd >
1614
1608
</dl >
@@ -1625,6 +1619,14 @@ await client.Lists.RestoreAsync("list_id");
1625
1619
1626
1620
** listId:** ` string ` — A unique identifier representing the list you wish to retrieve.
1627
1621
1622
+ </dd >
1623
+ </dl >
1624
+
1625
+ <dl >
1626
+ <dd >
1627
+
1628
+ ** request:** ` RestoreListRequest `
1629
+
1628
1630
</dd >
1629
1631
</dl >
1630
1632
</dd >
@@ -2032,7 +2034,7 @@ await client.Messages.ListAsync(new ListMessagesRequest());
2032
2034
</dl >
2033
2035
</details >
2034
2036
2035
- <details ><summary ><code >client.Messages.<a href =" /src/Courier.Client/Messages/MessagesClient.cs " >GetAsync</a >(messageId) -> MessageDetails </code ></summary >
2037
+ <details ><summary ><code >client.Messages.<a href =" /src/Courier.Client/Messages/MessagesClient.cs " >GetAsync</a >(messageId) -> MessageDetailsExtended </code ></summary >
2036
2038
<dl >
2037
2039
<dd >
2038
2040
@@ -2717,9 +2719,9 @@ await client.Profiles.CreateAsync(
2717
2719
<dl >
2718
2720
<dd >
2719
2721
2720
- When using ` PUT ` , be sure to include all the key-value pairs required by the recipient's profile.
2721
- Any key-value pairs that exist in the profile but fail to be included in the ` PUT ` request will be
2722
- removed from the profile. Remember, a ` PUT ` update is a full replacement of the data. For partial updates,
2722
+ When using ` PUT ` , be sure to include all the key-value pairs required by the recipient's profile.
2723
+ Any key-value pairs that exist in the profile but fail to be included in the ` PUT ` request will be
2724
+ removed from the profile. Remember, a ` PUT ` update is a full replacement of the data. For partial updates,
2723
2725
use the [ Patch] ( https://www.courier.com/docs/reference/profiles/patch/ ) request.
2724
2726
</dd >
2725
2727
</dl >
@@ -2782,7 +2784,7 @@ await client.Profiles.ReplaceAsync(
2782
2784
</dl >
2783
2785
</details >
2784
2786
2785
- <details ><summary ><code >client.Profiles.<a href =" /src/Courier.Client/Profiles/ProfilesClient.cs " >MergeProfileAsync</a >(userId, IEnumerable< UserProfilePatch > { ... })</code ></summary >
2787
+ <details ><summary ><code >client.Profiles.<a href =" /src/Courier.Client/Profiles/ProfilesClient.cs " >MergeProfileAsync</a >(userId, ProfileUpdateRequest { ... })</code ></summary >
2786
2788
<dl >
2787
2789
<dd >
2788
2790
@@ -2797,19 +2799,22 @@ await client.Profiles.ReplaceAsync(
2797
2799
``` csharp
2798
2800
await client .Profiles .MergeProfileAsync (
2799
2801
" user_id" ,
2800
- new List < UserProfilePatch >()
2802
+ new ProfileUpdateRequest
2801
2803
{
2802
- new UserProfilePatch
2803
- {
2804
- Op = " op" ,
2805
- Path = " path" ,
2806
- Value = " value" ,
2807
- },
2808
- new UserProfilePatch
2804
+ Patch = new List <UserProfilePatch >()
2809
2805
{
2810
- Op = " op" ,
2811
- Path = " path" ,
2812
- Value = " value" ,
2806
+ new UserProfilePatch
2807
+ {
2808
+ Op = " op" ,
2809
+ Path = " path" ,
2810
+ Value = " value" ,
2811
+ },
2812
+ new UserProfilePatch
2813
+ {
2814
+ Op = " op" ,
2815
+ Path = " path" ,
2816
+ Value = " value" ,
2817
+ },
2813
2818
},
2814
2819
}
2815
2820
);
@@ -2835,7 +2840,7 @@ await client.Profiles.MergeProfileAsync(
2835
2840
<dl >
2836
2841
<dd >
2837
2842
2838
- ** request:** ` IEnumerable<UserProfilePatch> `
2843
+ ** request:** ` ProfileUpdateRequest `
2839
2844
2840
2845
</dd >
2841
2846
</dl >
@@ -3481,6 +3486,102 @@ await client.Tenants.RemoveDefaultPreferencesForTopicAsync("tenant_id", "topic_i
3481
3486
</dl >
3482
3487
3483
3488
3489
+ </dd >
3490
+ </dl >
3491
+ </details >
3492
+
3493
+ <details ><summary ><code >client.Tenants.<a href =" /src/Courier.Client/Tenants/TenantsClient.cs " >GetTemplateByTenantAsync</a >(tenantId, templateId) -> GetTemplateByTenantResponse</code ></summary >
3494
+ <dl >
3495
+ <dd >
3496
+
3497
+ #### 🔌 Usage
3498
+
3499
+ <dl >
3500
+ <dd >
3501
+
3502
+ <dl >
3503
+ <dd >
3504
+
3505
+ ``` csharp
3506
+ await client .Tenants .GetTemplateByTenantAsync (" tenant_id" , " template_id" );
3507
+ ```
3508
+ </dd >
3509
+ </dl >
3510
+ </dd >
3511
+ </dl >
3512
+
3513
+ #### ⚙️ Parameters
3514
+
3515
+ <dl >
3516
+ <dd >
3517
+
3518
+ <dl >
3519
+ <dd >
3520
+
3521
+ ** tenantId:** ` string ` — Id of the tenant for which to retrieve the template.
3522
+
3523
+ </dd >
3524
+ </dl >
3525
+
3526
+ <dl >
3527
+ <dd >
3528
+
3529
+ ** templateId:** ` string ` — Id of the template to be retrieved.
3530
+
3531
+ </dd >
3532
+ </dl >
3533
+ </dd >
3534
+ </dl >
3535
+
3536
+
3537
+ </dd >
3538
+ </dl >
3539
+ </details >
3540
+
3541
+ <details ><summary ><code >client.Tenants.<a href =" /src/Courier.Client/Tenants/TenantsClient.cs " >GetTemplateListByTenantAsync</a >(tenantId, GetTemplateListByTenantParams { ... }) -> ListTemplatesByTenantResponse</code ></summary >
3542
+ <dl >
3543
+ <dd >
3544
+
3545
+ #### 🔌 Usage
3546
+
3547
+ <dl >
3548
+ <dd >
3549
+
3550
+ <dl >
3551
+ <dd >
3552
+
3553
+ ``` csharp
3554
+ await client .Tenants .GetTemplateListByTenantAsync (" tenant_id" , new GetTemplateListByTenantParams ());
3555
+ ```
3556
+ </dd >
3557
+ </dl >
3558
+ </dd >
3559
+ </dl >
3560
+
3561
+ #### ⚙️ Parameters
3562
+
3563
+ <dl >
3564
+ <dd >
3565
+
3566
+ <dl >
3567
+ <dd >
3568
+
3569
+ ** tenantId:** ` string ` — Id of the tenant for which to retrieve the templates.
3570
+
3571
+ </dd >
3572
+ </dl >
3573
+
3574
+ <dl >
3575
+ <dd >
3576
+
3577
+ ** request:** ` GetTemplateListByTenantParams `
3578
+
3579
+ </dd >
3580
+ </dl >
3581
+ </dd >
3582
+ </dl >
3583
+
3584
+
3484
3585
</dd >
3485
3586
</dl >
3486
3587
</details >
@@ -3852,8 +3953,8 @@ await client.Users.Preferences.UpdateAsync(
3852
3953
3853
3954
This endpoint is used to add a user to
3854
3955
multiple tenants in one call.
3855
- A custom profile can also be supplied for each tenant.
3856
- This profile will be merged with the user's main
3956
+ A custom profile can also be supplied for each tenant.
3957
+ This profile will be merged with the user's main
3857
3958
profile when sending to the user with that tenant.
3858
3959
</dd >
3859
3960
</dl >
@@ -3940,8 +4041,8 @@ await client.Users.Tenants.AddMultpleAsync(
3940
4041
3941
4042
This endpoint is used to add a single tenant.
3942
4043
3943
- A custom profile can also be supplied with the tenant.
3944
- This profile will be merged with the user's main profile
4044
+ A custom profile can also be supplied with the tenant.
4045
+ This profile will be merged with the user's main profile
3945
4046
when sending to the user with that tenant.
3946
4047
</dd >
3947
4048
</dl >
0 commit comments