Skip to content

Commit 8f45ad0

Browse files
committed
make options parameter optional
1 parent a007492 commit 8f45ad0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Wrappers/InvoiceWrapper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public async Task<Invoice> CancelAsync(string id, Dictionary<string, object> que
7070
return invoice;
7171
}
7272

73-
public async Task SendByEmailAsync(string id, Dictionary<string, object> data)
73+
public async Task SendByEmailAsync(string id, Dictionary<string, object> data = null)
7474
{
7575
var response = await client.PostAsync(Router.SendByEmail(id), new StringContent(JsonConvert.SerializeObject(data), Encoding.UTF8, "application/json"));
7676
if (!response.IsSuccessStatusCode)

Wrappers/ReceiptWrapper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public async Task CreateGlobalInvoiceAsync(string id, Dictionary<string, object>
9090
}
9191
}
9292

93-
public async Task SendByEmailAsync(string id, Dictionary<string, object> data)
93+
public async Task SendByEmailAsync(string id, Dictionary<string, object> data = null)
9494
{
9595
var response = await client.PostAsync(Router.SendReceiptByEmail(id), new StringContent(JsonConvert.SerializeObject(data), Encoding.UTF8, "application/json"));
9696
if (!response.IsSuccessStatusCode)

Wrappers/RetentionWrapper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public async Task<Invoice> CancelAsync(string id)
7070
return customer;
7171
}
7272

73-
public async Task SendByEmailAsync(string id, Dictionary<string, object> data)
73+
public async Task SendByEmailAsync(string id, Dictionary<string, object> data = null)
7474
{
7575
var response = await client.PostAsync(Router.SendRetentionByEmail(id), new StringContent(JsonConvert.SerializeObject(data), Encoding.UTF8, "application/json"));
7676
if (!response.IsSuccessStatusCode)

0 commit comments

Comments
 (0)