Skip to content

Commit

Permalink
Add support for additional optional Address properties
Browse files Browse the repository at this point in the history
  • Loading branch information
Viincenttt committed Jul 9, 2024
1 parent 4452d76 commit afa543c
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion src/Mollie.Api/Models/AddressObject.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
namespace Mollie.Api.Models {
public record AddressObject {
/// <summary>
/// The title of the person, for example Mr. or Mrs..
/// </summary>
public string? Title { get; set; }

/// <summary>
/// The given name (first name) of the person should be at least two characters and cannot contain only numbers.
/// </summary>
public string? GivenName { get; set; }

/// <summary>
/// The given family name (surname) of the person should be at least two characters and cannot contain only numbers.
/// </summary>
public string? FamilyName { get; set; }

/// <summary>
/// The name of the organization, in case the addressee is an organization.
/// </summary>
public string? OrganizationName { get; set; }

/// <summary>
/// The card holder’s street and street number.
/// </summary>
Expand All @@ -15,6 +35,11 @@ public record AddressObject {
/// </summary>
public string? PostalCode { get; set; }

/// <summary>
/// Email address
/// </summary>
public string? Email { get; set; }

/// <summary>
/// The card holder’s city.
/// </summary>
Expand All @@ -30,4 +55,4 @@ public record AddressObject {
/// </summary>
public string? Country { get; set; }
}
}
}

0 comments on commit afa543c

Please sign in to comment.