Skip to content

Commit deb6cbe

Browse files
authored
Merge branch 'develop' into master
2 parents 8fd8802 + 7fd93b9 commit deb6cbe

File tree

92 files changed

+1134
-943
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+1134
-943
lines changed

BunqSdk.Samples/AttachmentPublicSample.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ public void Run()
2424
{ApiClient.HEADER_ATTACHMENT_DESCRIPTION, DESCRIPTION_TEST_JPG_ATTACHMENT}
2525
};
2626
var requestBytes = File.ReadAllBytes(PATH_ATTACHMENT_IN);
27-
var uuid = AttachmentPublic.Create(apiContext, requestBytes, customHeaders);
28-
var responseBytes = AttachmentPublicContent.List(apiContext, uuid);
27+
var uuid = AttachmentPublic.Create(apiContext, requestBytes, customHeaders).Value;
28+
var responseBytes = AttachmentPublicContent.List(apiContext, uuid).Value;
2929
var fileOut = new FileInfo(PATH_ATTACHMENT_OUT);
3030
fileOut.Directory.Create();
3131
File.WriteAllBytes(fileOut.FullName, responseBytes);

BunqSdk.Samples/CustomerStatementExportSample.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,18 +52,18 @@ public void Run()
5252
{CustomerStatementExport.FIELD_DATE_END, dateEnd.ToString(FORMAT_DATE_STATEMENT)},
5353
};
5454

55-
var userId = User.List(apiContext)[INDEX_FIRST].UserCompany.Id;
55+
var userId = User.List(apiContext).Value[INDEX_FIRST].UserCompany.Id;
5656

5757
if (userId != null)
5858
{
5959
var userIdInt = (int) userId;
60-
var monetaryAccountId = MonetaryAccountBank.List(apiContext, userIdInt)[INDEX_FIRST].Id;
60+
var monetaryAccountId = MonetaryAccountBank.List(apiContext, userIdInt).Value[INDEX_FIRST].Id;
6161

6262
if (monetaryAccountId != null)
6363
{
6464
var monetaryAccountIdInt = (int) monetaryAccountId;
6565
var customerStatementId = CustomerStatementExport.Create(apiContext, customerStatementMap,
66-
userIdInt, monetaryAccountIdInt);
66+
userIdInt, monetaryAccountIdInt).Value;
6767

6868
CustomerStatementExport.Delete(apiContext, userIdInt, monetaryAccountIdInt, customerStatementId);
6969
}

BunqSdk.Samples/MonetaryAccountSample.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public class MonetaryAccountSample : ISample
1313
public void Run()
1414
{
1515
var apiContext = ApiContext.Restore();
16-
var monetaryAccount = MonetaryAccount.Get(apiContext, USER_ITEM_ID, MONETARY_ACCOUNT_ITEM_ID);
16+
var monetaryAccount = MonetaryAccount.Get(apiContext, USER_ITEM_ID, MONETARY_ACCOUNT_ITEM_ID).Value;
1717
Console.WriteLine(monetaryAccount.MonetaryAccountBank);
1818
}
1919
}

BunqSdk.Samples/PaymentBatchSample.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public void Run()
4040
};
4141

4242
var paymentBatchId = PaymentBatch.Create(apiContext, paymentBatchMap, USER_ITEM_ID,
43-
MONETARY_ACCOUNT_ITEM_ID);
43+
MONETARY_ACCOUNT_ITEM_ID).Value;
4444

4545
Console.WriteLine(PaymentBatch.Get(apiContext, USER_ITEM_ID, MONETARY_ACCOUNT_ITEM_ID, paymentBatchId));
4646
}

BunqSdk.Samples/PaymentListSample.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public class PaymentListSample : ISample
1313
public void Run()
1414
{
1515
var apiContext = ApiContext.Restore();
16-
var paymentList = Payment.List(apiContext, USER_ITEM_ID, MONETARY_ACCOUNT_ITEM_ID);
16+
var paymentList = Payment.List(apiContext, USER_ITEM_ID, MONETARY_ACCOUNT_ITEM_ID).Value;
1717

1818
foreach (var payment in paymentList)
1919
{

BunqSdk.Samples/PaymentSample.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ public void Run()
3030
{Payment.FIELD_DESCRIPTION, PAYMENT_DESCRIPTION}
3131
};
3232

33-
var paymentId = Payment.Create(apiContext, paymentMap, USER_ITEM_ID,
34-
MONETARY_ACCOUNT_ITEM_ID);
33+
var paymentId = Payment.Create(apiContext, paymentMap, USER_ITEM_ID, MONETARY_ACCOUNT_ITEM_ID).Value;
3534

3635
Console.WriteLine(Payment.Get(apiContext, USER_ITEM_ID, MONETARY_ACCOUNT_ITEM_ID, paymentId));
3736
}

BunqSdk.Samples/RequestSample.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public void Run()
2828
{RequestInquiry.FIELD_DESCRIPTION, REQUEST_DESCRIPTION},
2929
{RequestInquiry.FIELD_ALLOW_BUNQME, true}
3030
};
31-
var requestId = RequestInquiry.Create(apiContext, requestMap, USER_ITEM_ID, MONETARY_ACCOUNT_ITEM_ID);
31+
var requestId = RequestInquiry.Create(apiContext, requestMap, USER_ITEM_ID, MONETARY_ACCOUNT_ITEM_ID).Value;
3232
Console.WriteLine(RequestInquiry.Get(apiContext, USER_ITEM_ID, MONETARY_ACCOUNT_ITEM_ID, requestId));
3333

3434
var requestUpdateMap = new Dictionary<string, object> {{RequestInquiry.FIELD_STATUS, STATUS_REVOKED}};

BunqSdk.Samples/UserListSample.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public class UserListSample : ISample
1010
public void Run()
1111
{
1212
var apiContext = ApiContext.Restore();
13-
var users = User.List(apiContext);
13+
var users = User.List(apiContext).Value;
1414

1515
apiContext.Save();
1616

BunqSdk.Tests/Model/Generated/AttachmentPublicTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ public void TestAttachmentUploadAndRetrieval()
4242
{ApiClient.HEADER_ATTACHMENT_DESCRIPTION, ATTACHMENT_DESCRIPTION}
4343
};
4444

45-
var attachmentUuid = AttachmentPublic.Create(API_CONTEXT, fileContentBytes, customHeaders);
46-
var responseBytes = AttachmentPublicContent.List(API_CONTEXT, attachmentUuid);
45+
var attachmentUuid = AttachmentPublic.Create(API_CONTEXT, fileContentBytes, customHeaders).Value;
46+
var responseBytes = AttachmentPublicContent.List(API_CONTEXT, attachmentUuid).Value;
4747

4848
Assert.Equal(fileContentBytes, responseBytes);
4949
}

BunqSdk.Tests/Model/Generated/AvatarTest.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,11 @@ public void TestCreateAvatarAndRetrieval()
4444
{
4545
{Avatar.FIELD_ATTACHMENT_PUBLIC_UUID, attachmentUuid}
4646
};
47-
var avatarUuid = Avatar.Create(API_CONTEXT, avatarMap);
47+
var avatarUuid = Avatar.Create(API_CONTEXT, avatarMap).Value;
4848

49-
var attachmentUuidFromAvatar = Avatar.Get(API_CONTEXT, avatarUuid).Image[INDEX_FIRST].AttachmentPublicUuid;
50-
var revievedFileContentByte = AttachmentPublicContent.List(API_CONTEXT, attachmentUuidFromAvatar);
49+
var attachmentUuidFromAvatar = Avatar.Get(API_CONTEXT, avatarUuid).Value
50+
.Image[INDEX_FIRST].AttachmentPublicUuid;
51+
var revievedFileContentByte = AttachmentPublicContent.List(API_CONTEXT, attachmentUuidFromAvatar).Value;
5152

5253
Assert.Equal(attachmentUuid, attachmentUuidFromAvatar);
5354
Assert.Equal(fileContentByte, revievedFileContentByte);
@@ -61,7 +62,7 @@ private static string UploadAvatarAndGetUuid(byte[] fileContentByte)
6162
{ApiClient.HEADER_CONTENT_TYPE, CONTEN_TYPE},
6263
};
6364

64-
return AttachmentPublic.Create(API_CONTEXT, fileContentByte, customHeaders);
65+
return AttachmentPublic.Create(API_CONTEXT, fileContentByte, customHeaders).Value;
6566
}
6667
}
6768
}

0 commit comments

Comments
 (0)