Skip to content

Commit d8396e7

Browse files
authored
Merge branch 'main' into dependabot/nuget/src/Org.OpenAPITools.Test/xunit-2.9.3
2 parents 53fe26a + 43b71da commit d8396e7

47 files changed

Lines changed: 874 additions & 369 deletions

File tree

Some content is hidden

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

.github/workflows/codeql.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

.gitignore

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -360,11 +360,3 @@ MigrationBackup/
360360

361361
# Fody - auto-generated XML schema
362362
FodyWeavers.xsd
363-
364-
config.json
365-
bin/
366-
obj/
367-
.vs/
368-
.user
369-
.suo
370-
*.pdb

.openapi-generator/FILES

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,10 +179,12 @@ docs/TransactionDetailResponseSplitsInner.md
179179
docs/TransactionDetailResponseTenderInfo.md
180180
docs/TransactionPaymentResponse.md
181181
docs/TransactionPaymentResponseAchTenderInfo.md
182+
docs/TransactionPaymentResponseAchTenderInfoCommissionType.md
182183
docs/TransactionPaymentResponseBillingContact.md
183184
docs/TransactionPaymentResponseBillingContactAddress.md
184185
docs/TransactionPaymentResponseBillingContactName.md
185186
docs/TransactionPaymentResponseCcTenderInfo.md
187+
docs/TransactionPaymentResponseRefundOrigin.md
186188
docs/TransactionPaymentResponseRefundTransactions.md
187189
docs/TransactionPaymentResponseRefundTransactionsDataInner.md
188190
docs/TransactionPaymentResponseTransactionEntitySplitResponsesInner.md
@@ -203,6 +205,8 @@ docs/VerifyBankAccountRequestBankAccountEntity.md
203205
docs/VerifyBankAccountResponse.md
204206
docs/VerifyBankAccountResponseHttpResponse.md
205207
git_push.sh
208+
src/Org.OpenAPITools.Test/Model/TransactionPaymentResponseAchTenderInfoCommissionTypeTests.cs
209+
src/Org.OpenAPITools.Test/Model/TransactionPaymentResponseRefundOriginTests.cs
206210
src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj
207211
src/Org.OpenAPITools/Api/SecureEmbeddedPremiumFinanceApi.cs
208212
src/Org.OpenAPITools/Api/SecureEmbeddedPremiumFinanceEndorsementsApi.cs
@@ -397,10 +401,12 @@ src/Org.OpenAPITools/Model/TransactionDetailResponseSplitsInner.cs
397401
src/Org.OpenAPITools/Model/TransactionDetailResponseTenderInfo.cs
398402
src/Org.OpenAPITools/Model/TransactionPaymentResponse.cs
399403
src/Org.OpenAPITools/Model/TransactionPaymentResponseAchTenderInfo.cs
404+
src/Org.OpenAPITools/Model/TransactionPaymentResponseAchTenderInfoCommissionType.cs
400405
src/Org.OpenAPITools/Model/TransactionPaymentResponseBillingContact.cs
401406
src/Org.OpenAPITools/Model/TransactionPaymentResponseBillingContactAddress.cs
402407
src/Org.OpenAPITools/Model/TransactionPaymentResponseBillingContactName.cs
403408
src/Org.OpenAPITools/Model/TransactionPaymentResponseCcTenderInfo.cs
409+
src/Org.OpenAPITools/Model/TransactionPaymentResponseRefundOrigin.cs
404410
src/Org.OpenAPITools/Model/TransactionPaymentResponseRefundTransactions.cs
405411
src/Org.OpenAPITools/Model/TransactionPaymentResponseRefundTransactionsDataInner.cs
406412
src/Org.OpenAPITools/Model/TransactionPaymentResponseTransactionEntitySplitResponsesInner.cs

Org.OpenAPITools.sln

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
22
# Visual Studio 2012
33
VisualStudioVersion = 12.0.0.0
44
MinimumVisualStudioVersion = 10.0.0.1
5-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Org.OpenAPITools", "src\Org.OpenAPITools\Org.OpenAPITools.csproj", "{35DB7A2B-B3CE-45EB-8154-0DC2F428B933}"
5+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Org.OpenAPITools", "src\Org.OpenAPITools\Org.OpenAPITools.csproj", "{1BE73509-E859-4031-9BC0-2C7BB6737CF3}"
66
EndProject
77
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Org.OpenAPITools.Test", "src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}"
88
EndProject
@@ -12,10 +12,10 @@ Global
1212
Release|Any CPU = Release|Any CPU
1313
EndGlobalSection
1414
GlobalSection(ProjectConfigurationPlatforms) = postSolution
15-
{35DB7A2B-B3CE-45EB-8154-0DC2F428B933}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
16-
{35DB7A2B-B3CE-45EB-8154-0DC2F428B933}.Debug|Any CPU.Build.0 = Debug|Any CPU
17-
{35DB7A2B-B3CE-45EB-8154-0DC2F428B933}.Release|Any CPU.ActiveCfg = Release|Any CPU
18-
{35DB7A2B-B3CE-45EB-8154-0DC2F428B933}.Release|Any CPU.Build.0 = Release|Any CPU
15+
{1BE73509-E859-4031-9BC0-2C7BB6737CF3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
16+
{1BE73509-E859-4031-9BC0-2C7BB6737CF3}.Debug|Any CPU.Build.0 = Debug|Any CPU
17+
{1BE73509-E859-4031-9BC0-2C7BB6737CF3}.Release|Any CPU.ActiveCfg = Release|Any CPU
18+
{1BE73509-E859-4031-9BC0-2C7BB6737CF3}.Release|Any CPU.Build.0 = Release|Any CPU
1919
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
2020
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU
2121
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU

README.md

Lines changed: 25 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ using Org.OpenAPITools.Model;
8585
Find it by searching **"what's my IP"** in Google or visiting [https://www.whatsmyip.org](https://www.whatsmyip.org).
8686

8787
* Contact AndDone support to ensure your origin IP is registered.
88-
* Email: [support@anddone.com](mailto:support@anddone.com)
88+
* Email: [integrations@anddone.com](mailto:integrations@anddone.com)
8989

9090
3. **Optional: Create a Configuration File:**
9191
Rename `config.example.json` to `config.json` and fill it with your values:
@@ -106,6 +106,9 @@ using Org.OpenAPITools.Model;
106106
Here’s a minimal working example to call the **Secure Create Payment Intent API**:
107107

108108
```csharp
109+
using System;
110+
using Newtonsoft.Json;
111+
using Newtonsoft.Json.Linq;
109112
using Org.OpenAPITools.Api;
110113
using Org.OpenAPITools.Client;
111114
using Org.OpenAPITools.Model;
@@ -120,29 +123,33 @@ var apiInstance = new SecurePaymentIntentApi(config);
120123
// Required headers
121124
string xApiKey = "YOUR_API_KEY";
122125
string xAppKey = "YOUR_APP_KEY";
123-
string xVersion = "2.3";
126+
float xVersion = 2.3F;
124127
string origin = "YOUR_ORIGIN";
125128

126-
var request = new PaymentIntentRequest
127-
{
128-
SaveForFuture = true,
129-
Amount = 10000,
130-
Title = "YOUR UNIQUE TITLE",
131-
ShortDescription = "shortDescription",
132-
PaymentDescription = "paymentDescription",
133-
InvoiceNumber = "dotnet",
134-
ExpiresIn = "300000",
135-
Intent = new PaymentIntentRequestIntent
136-
{
137-
PaymentTypes = new List<string> { "CreditCard", "ACH" }
129+
var request = @"{
130+
""saveForFuture"": true,
131+
""amount"": 10000,
132+
""title"": ""test title 001a"",
133+
""shortDescription"": ""shortDescription"",
134+
""paymentDescription"": ""paymentDescription"",
135+
""invoiceNumber"": ""postman"",
136+
""expiresIn"": ""300000"",
137+
""intent"": {
138+
""paymentTypes"": [
139+
""CreditCard"",
140+
""ACH""
141+
]
138142
},
139-
EnablePremiumFinance = true,
140-
AdditionalDetailsPreference = "NoAdditionalDetails"
141-
};
143+
""enablePremiumFinance"": true,
144+
""splits"": null,
145+
""additionalDetailsPreference"": ""NoAdditionalDetails""
146+
}";
147+
JObject data = JObject.Parse(request);
148+
PaymentIntentRequest postBody = JsonConvert.DeserializeObject<PaymentIntentRequest>(data.ToString());
142149

143150
try
144151
{
145-
var response = apiInstance.SecurePaymentintentsPost(xApiKey, xAppKey, xVersion, origin, request);
152+
var response = apiInstance.SecurePaymentintentsPost(xApiKey, xAppKey, xVersion, origin, postBody);
146153
Console.WriteLine(response);
147154
}
148155
catch (ApiException e)
@@ -437,4 +444,3 @@ Authentication is handled via API keys in HTTP headers:
437444

438445
* **API Environments:** Use UAT for testing; switch to Production only after validation.
439446
* **Issues:** Report bugs or request features via the [GitHub Issues](https://github.com/anddone-kit/AndDone-SecureAPI-ClientLibrary-DotNet/issues) page.
440-

0 commit comments

Comments
 (0)