Skip to content

Commit

Permalink
VCST-1277: add currency code to Contact (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
ksavosteev authored Jun 6, 2024
1 parent 72a7189 commit 62a4c6c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ protected ContactCommand()
public string PhotoUrl { get; set; }
public string TimeZone { get; set; }
public string DefaultLanguage { get; set; }
public string CurrencyCode { get; set; }
public string LastName { get; set; }
public string MiddleName { get; set; }
public string FirstName { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ public ContactType(

Field(x => x.Contact.About);

Field(x => x.Contact.DefaultLanguage, nullable: true);
Field(x => x.Contact.CurrencyCode, nullable: true);

Field<DateGraphType>("birthDate",
resolve: context =>
context.Source.Contact.BirthDate.HasValue ? context.Source.Contact.BirthDate.Value.Date : null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ protected InputContactBaseType()
Field<StringGraphType>(nameof(Contact.PhotoUrl));
Field<StringGraphType>(nameof(Contact.TimeZone));
Field<StringGraphType>(nameof(Contact.DefaultLanguage));
Field<StringGraphType>(nameof(Contact.CurrencyCode));
Field<StringGraphType>(nameof(Contact.About));
Field<ListGraphType<StringGraphType>>(nameof(Contact.Organizations));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
<PackageReference Include="VirtoCommerce.CoreModule.Core" Version="3.800.0" />
<PackageReference Include="VirtoCommerce.CustomerModule.Core" Version="3.801.0" />
<PackageReference Include="VirtoCommerce.CustomerModule.Core" Version="3.809.0" />
<PackageReference Include="VirtoCommerce.ExperienceApiModule.Core" Version="3.800.0" />
<PackageReference Include="VirtoCommerce.ExperienceApiModule.XOrder" Version="3.800.0" />
<PackageReference Include="VirtoCommerce.MarketingModule.Core" Version="3.800.0" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<platformVersion>3.800.0</platformVersion>
<dependencies>
<dependency id="VirtoCommerce.Core" version="3.800.0" />
<dependency id="VirtoCommerce.Customer" version="3.801.0" />
<dependency id="VirtoCommerce.Customer" version="3.809.0" />
<dependency id="VirtoCommerce.ExperienceApi" version="3.800.0" />
<dependency id="VirtoCommerce.Marketing" version="3.800.0" />
<dependency id="VirtoCommerce.Notifications" version="3.800.0" />
Expand Down

0 comments on commit 62a4c6c

Please sign in to comment.