Skip to content

Commit

Permalink
BTA-13953: Migrate GHA Runner from MacOS-12 to Windows-2019 (#10)
Browse files Browse the repository at this point in the history
Changes:
Migrated GitHub Action Runner OS from MacOS-12 to Windows-2019 due to missing microsoft build dll. This library is required in the nuget release of transferzero dotnet sdk.
  • Loading branch information
CodeBuild committed Jan 20, 2025
1 parent f233403 commit 1edf0e2
Show file tree
Hide file tree
Showing 9 changed files with 350 additions and 10 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ For more information, please visit:
This .NET SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 1.0
- SDK version: 1.36.4
- SDK version: 1.36.5
- Build package: org.openapitools.codegen.languages.CSharpClientCodegen

<a name="frameworks-supported"></a>
Expand Down Expand Up @@ -274,6 +274,7 @@ Class | Method | HTTP request | Description
- [Model.PayoutMethodDetailsGBPBank](docs/PayoutMethodDetailsGBPBank.md)
- [Model.PayoutMethodDetailsGHSBank](docs/PayoutMethodDetailsGHSBank.md)
- [Model.PayoutMethodDetailsGHSCash](docs/PayoutMethodDetailsGHSCash.md)
- [Model.PayoutMethodDetailsGHSMobile](docs/PayoutMethodDetailsGHSMobile.md)
- [Model.PayoutMethodDetailsGNFMobile](docs/PayoutMethodDetailsGNFMobile.md)
- [Model.PayoutMethodDetailsIBAN](docs/PayoutMethodDetailsIBAN.md)
- [Model.PayoutMethodDetailsINRBank](docs/PayoutMethodDetailsINRBank.md)
Expand Down
1 change: 1 addition & 0 deletions docs/PayoutMethodDetailsGHSBank.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Name | Type | Description | Notes
**BankCode** | **string** | |
**BankAccount** | **string** | |
**BirthDate** | **DateTime?** | Date of birth of recipient | [optional]
**TransferReason** | [**PayoutMethodTransferReasonEnum**](PayoutMethodTransferReasonEnum.md) | | [optional]

[[Back to Model list]](../README.md#documentation-for-models)
[[Back to API list]](../README.md#documentation-for-api-endpoints)
Expand Down
17 changes: 17 additions & 0 deletions docs/PayoutMethodDetailsGHSMobile.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@

# TransferZero.Sdk.Model.PayoutMethodDetailsGHSMobile

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**FirstName** | **string** | |
**LastName** | **string** | |
**PhoneNumber** | **string** | |
**MobileProvider** | [**PayoutMethodMobileProviderEnum**](PayoutMethodMobileProviderEnum.md) | | [optional]
**TransferReason** | [**PayoutMethodTransferReasonEnum**](PayoutMethodTransferReasonEnum.md) | | [optional]

[[Back to Model list]](../README.md#documentation-for-models)
[[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to README]](../README.md)

112 changes: 112 additions & 0 deletions src/TransferZero.Sdk.Test/Model/PayoutMethodDetailsGHSMobileTests.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
/*
* TransferZero API
*
* Reference documentation for the TransferZero API V1
*
* OpenAPI spec version: 1.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/


using NUnit.Framework;

using System;
using System.Linq;
using System.IO;
using System.Collections.Generic;
using TransferZero.Sdk.Api;
using TransferZero.Sdk.Model;
using TransferZero.Sdk.Client;
using System.Reflection;
using Newtonsoft.Json;

namespace TransferZero.Sdk.Test
{
/// <summary>
/// Class for testing PayoutMethodDetailsGHSMobile
/// </summary>
/// <remarks>
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
[TestFixture]
public class PayoutMethodDetailsGHSMobileTests
{
// TODO uncomment below to declare an instance variable for PayoutMethodDetailsGHSMobile
//private PayoutMethodDetailsGHSMobile instance;

/// <summary>
/// Setup before each test
/// </summary>
[SetUp]
public void Init()
{
// TODO uncomment below to create an instance of PayoutMethodDetailsGHSMobile
//instance = new PayoutMethodDetailsGHSMobile();
}

/// <summary>
/// Clean up after each test
/// </summary>
[TearDown]
public void Cleanup()
{

}

/// <summary>
/// Test an instance of PayoutMethodDetailsGHSMobile
/// </summary>
[Test]
public void PayoutMethodDetailsGHSMobileInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" PayoutMethodDetailsGHSMobile
//Assert.IsInstanceOfType<PayoutMethodDetailsGHSMobile> (instance, "variable 'instance' is a PayoutMethodDetailsGHSMobile");
}


/// <summary>
/// Test the property 'FirstName'
/// </summary>
[Test]
public void FirstNameTest()
{
// TODO unit test for the property 'FirstName'
}
/// <summary>
/// Test the property 'LastName'
/// </summary>
[Test]
public void LastNameTest()
{
// TODO unit test for the property 'LastName'
}
/// <summary>
/// Test the property 'PhoneNumber'
/// </summary>
[Test]
public void PhoneNumberTest()
{
// TODO unit test for the property 'PhoneNumber'
}
/// <summary>
/// Test the property 'MobileProvider'
/// </summary>
[Test]
public void MobileProviderTest()
{
// TODO unit test for the property 'MobileProvider'
}
/// <summary>
/// Test the property 'TransferReason'
/// </summary>
[Test]
public void TransferReasonTest()
{
// TODO unit test for the property 'TransferReason'
}

}

}
8 changes: 4 additions & 4 deletions src/TransferZero.Sdk/Client/Configuration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public class Configuration : IReadableConfiguration
/// Version of the package.
/// </summary>
/// <value>Version of the package.</value>
public const string Version = "1.36.4";
public const string Version = "1.36.5";

/// <summary>
/// Identifier for ISO 8601 DateTime Format
Expand Down Expand Up @@ -126,7 +126,7 @@ static Configuration()
/// </summary>
public Configuration()
{
UserAgent = "TransferZero-SDK/.NET/1.36.4";
UserAgent = "TransferZero-SDK/.NET/1.36.5";
BasePath = "https://api-sandbox.transferzero.com/v1";
DefaultHeader = new ConcurrentDictionary<string, string>();
ApiKey = "KEY";
Expand Down Expand Up @@ -183,7 +183,7 @@ public Configuration(
string tempFolderPath = null,
string dateTimeFormat = null,
int timeout = 100000,
string userAgent = "TransferZero-SDK/.NET/1.36.4"
string userAgent = "TransferZero-SDK/.NET/1.36.5"
// ReSharper restore UnusedParameter.Local
)
{
Expand Down Expand Up @@ -390,7 +390,7 @@ public static String ToDebugReport()
report += " OS: " + System.Environment.OSVersion + "\n";
report += " .NET Framework Version: " + System.Environment.Version + "\n";
report += " Version of the API: 1.0\n";
report += " SDK Package Version: 1.36.4\n";
report += " SDK Package Version: 1.36.5\n";

return report;
}
Expand Down
20 changes: 18 additions & 2 deletions src/TransferZero.Sdk/Model/PayoutMethodDetailsGHSBank.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
namespace TransferZero.Sdk.Model
{
/// <summary>
/// &#x60;&#x60;&#x60;JSON \&quot;details\&quot;: { \&quot;first_name\&quot;: \&quot;First\&quot;, \&quot;last_name\&quot;: \&quot;Last\&quot;, \&quot;bank_code\&quot;: \&quot;030100\&quot;, \&quot;bank_account\&quot;: \&quot;123456789\&quot; } &#x60;&#x60;&#x60; The current banks supported and their bank_codes values are: - Access Bank: 280100 - Barclays Bank: 030100 - GCB Bank: 040100 - Ecobank: 130100 - First National Bank: 330100 - Heritage Bank: 370100 - Prudential Bank: 180100 - Stanbic Bank: 190100 - Standard Chartered Bank: 020100 - United Bank for Africa: 060100 - Zenith Bank: 120100
/// &#x60;&#x60;&#x60;JSON \&quot;details\&quot;: { \&quot;first_name\&quot;: \&quot;First\&quot;, \&quot;last_name\&quot;: \&quot;Last\&quot;, \&quot;bank_code\&quot;: \&quot;030100\&quot;, \&quot;bank_account\&quot;: \&quot;123456789\&quot;, \&quot;transfer_reason\&quot;: \&quot;third_party_person_account\&quot; } &#x60;&#x60;&#x60; The current banks supported and their bank_codes values are: - Access Bank: 280100 - Barclays Bank: 030100 - GCB Bank: 040100 - Ecobank: 130100 - First National Bank: 330100 - Heritage Bank: 370100 - Prudential Bank: 180100 - Stanbic Bank: 190100 - Standard Chartered Bank: 020100 - United Bank for Africa: 060100 - Zenith Bank: 120100
/// </summary>
[DataContract]
public partial class PayoutMethodDetailsGHSBank : IEquatable<PayoutMethodDetailsGHSBank>, IValidatableObject
Expand All @@ -43,13 +43,15 @@ protected PayoutMethodDetailsGHSBank() { }
/// <param name="bankCode">bankCode (required).</param>
/// <param name="bankAccount">bankAccount (required).</param>
/// <param name="birthDate">Date of birth of recipient.</param>
public PayoutMethodDetailsGHSBank(string firstName = default(string), string lastName = default(string), string bankCode = default(string), string bankAccount = default(string), DateTime? birthDate = default(DateTime?))
/// <param name="transferReason">transferReason.</param>
public PayoutMethodDetailsGHSBank(string firstName = default(string), string lastName = default(string), string bankCode = default(string), string bankAccount = default(string), DateTime? birthDate = default(DateTime?), PayoutMethodTransferReasonEnum transferReason = default(PayoutMethodTransferReasonEnum))
{
this.FirstName = firstName;
this.LastName = lastName;
this.BankCode = bankCode;
this.BankAccount = bankAccount;
this.BirthDate = birthDate;
this.TransferReason = transferReason;
}

/// <summary>
Expand Down Expand Up @@ -84,6 +86,12 @@ protected PayoutMethodDetailsGHSBank() { }
[JsonConverter(typeof(OpenAPIDateConverter))]
public DateTime? BirthDate { get; set; }

/// <summary>
/// Gets or Sets TransferReason
/// </summary>
[DataMember(Name="transfer_reason", EmitDefaultValue=false)]
public PayoutMethodTransferReasonEnum TransferReason { get; set; }

/// <summary>
/// Returns the string presentation of the object
/// </summary>
Expand All @@ -97,6 +105,7 @@ public override string ToString()
sb.Append(" BankCode: ").Append(BankCode).Append("\n");
sb.Append(" BankAccount: ").Append(BankAccount).Append("\n");
sb.Append(" BirthDate: ").Append(BirthDate).Append("\n");
sb.Append(" TransferReason: ").Append(TransferReason).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
Expand Down Expand Up @@ -155,6 +164,11 @@ public bool Equals(PayoutMethodDetailsGHSBank input)
this.BirthDate == input.BirthDate ||
(this.BirthDate != null &&
this.BirthDate.Equals(input.BirthDate))
) &&
(
this.TransferReason == input.TransferReason ||
(this.TransferReason != null &&
this.TransferReason.Equals(input.TransferReason))
);
}

Expand All @@ -177,6 +191,8 @@ public override int GetHashCode()
hashCode = hashCode * 59 + this.BankAccount.GetHashCode();
if (this.BirthDate != null)
hashCode = hashCode * 59 + this.BirthDate.GetHashCode();
if (this.TransferReason != null)
hashCode = hashCode * 59 + this.TransferReason.GetHashCode();
return hashCode;
}
}
Expand Down
Loading

0 comments on commit 1edf0e2

Please sign in to comment.