Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MerchantIdentifiers on Merchant Update #49

Merged
merged 2 commits into from
Feb 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/Pinch.SDK/Merchants/ManagedMerchant.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,6 @@ public class ManagedMerchant
public Compliance Compliance { get; set; }

public IEnumerable<Contact> Contacts { get; set; } = new List<Contact>();
public IEnumerable<MerchantIdentifier> MerchantIdentifiers { get; set; } = new List<MerchantIdentifier>();
}
}
1 change: 1 addition & 0 deletions src/Pinch.SDK/Merchants/Merchant.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,6 @@ public class Merchant
public Compliance Compliance { get; set; }

public IList<Contact> Contacts { get; set; } = new List<Contact>();
public IList<MerchantIdentifier> MerchantIdentifiers { get; set; } = new List<MerchantIdentifier>();
}
}
8 changes: 8 additions & 0 deletions src/Pinch.SDK/Merchants/MerchantIdentifier.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace Pinch.SDK.Merchants
{
public class MerchantIdentifier
{
public string Identifier { get; set; }
public string IdentityProvider { get; set; }
}
}
5 changes: 5 additions & 0 deletions src/Pinch.SDK/Merchants/MerchantUpdateOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,10 @@ public class MerchantUpdateOptions
/// A list of the relevant business owners or executives for this account (used for compliance and administration)
/// </summary>
public List<ContactSaveOptions> Contacts { get; set; } = new List<ContactSaveOptions>();

/// <summary>
/// Optional list of Identifiers for the Merchant in external providers.
/// </summary>
public List<ManagedMerchantIdentifierOptions> MerchantIdentifiers { get; set; } = new List<ManagedMerchantIdentifierOptions>();
}
}
Loading