-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ajout de la prise en charge de l'adresse de facturation sur les legals
- Loading branch information
1 parent
73c99d0
commit 0dc6d3f
Showing
21 changed files
with
6,084 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace Sheaft.Application.Models | ||
{ | ||
public class BillingAddressDto : AddressDto | ||
{ | ||
public string Name { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using Sheaft.Domain.Enum; | ||
|
||
namespace Sheaft.Domain | ||
{ | ||
public class BillingAddress : Address | ||
{ | ||
protected BillingAddress() | ||
{ | ||
} | ||
|
||
public BillingAddress(string line1, string line2, string zipcode, string city, CountryIsoCode country, string name) : | ||
base(line1, line2, zipcode, city, country) | ||
{ | ||
Name = name; | ||
} | ||
|
||
public string Name { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
using HotChocolate.Types; | ||
using Sheaft.Application.Models; | ||
|
||
namespace Sheaft.GraphQL.Types.Inputs | ||
{ | ||
public class BillingAddressInputType : SheaftInputType<BillingAddressDto> | ||
{ | ||
protected override void Configure(IInputObjectTypeDescriptor<BillingAddressDto> descriptor) | ||
{ | ||
base.Configure(descriptor); | ||
|
||
descriptor.Name("BillingAddressInput"); | ||
|
||
descriptor | ||
.Field(c => c.Name) | ||
.Name("name") | ||
.Type<NonNullType<StringType>>(); | ||
|
||
descriptor | ||
.Field(c => c.Line1) | ||
.Name("line1") | ||
.Type<NonNullType<StringType>>(); | ||
|
||
descriptor | ||
.Field(c => c.Line2) | ||
.Name("line2"); | ||
|
||
descriptor | ||
.Field(c => c.Zipcode) | ||
.Name("zipcode") | ||
.Type<NonNullType<StringType>>(); | ||
|
||
descriptor | ||
.Field(c => c.City) | ||
.Name("city") | ||
.Type<NonNullType<StringType>>(); | ||
|
||
descriptor | ||
.Field(c => c.Country) | ||
.Name("country"); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
using HotChocolate.Types; | ||
using Sheaft.Application.Models; | ||
|
||
namespace Sheaft.GraphQL.Types.Outputs | ||
{ | ||
public class BillingAddressDtoType : SheaftOutputType<BillingAddressDto> | ||
{ | ||
protected override void Configure(IObjectTypeDescriptor<BillingAddressDto> descriptor) | ||
{ | ||
base.Configure(descriptor); | ||
|
||
descriptor.Name("BillingAddress"); | ||
|
||
descriptor | ||
.Field(c => c.Name) | ||
.Name("name"); | ||
|
||
descriptor | ||
.Field(c => c.Line1) | ||
.Name("line1"); | ||
|
||
descriptor | ||
.Field(c => c.Line2) | ||
.Name("line2"); | ||
|
||
descriptor | ||
.Field(c => c.Zipcode) | ||
.Name("zipcode"); | ||
|
||
descriptor | ||
.Field(c => c.City) | ||
.Name("city"); | ||
|
||
descriptor | ||
.Field(c => c.Country) | ||
.Name("country"); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
using HotChocolate.Types; | ||
using Sheaft.Domain; | ||
|
||
namespace Sheaft.GraphQL.Types.Outputs | ||
{ | ||
public class BillingAddressType : SheaftOutputType<BillingAddress> | ||
{ | ||
protected override void Configure(IObjectTypeDescriptor<BillingAddress> descriptor) | ||
{ | ||
base.Configure(descriptor); | ||
|
||
descriptor | ||
.Field(c => c.Name) | ||
.Name("name"); | ||
|
||
descriptor | ||
.Field(c => c.Line1) | ||
.Name("line1"); | ||
|
||
descriptor | ||
.Field(c => c.Line2) | ||
.Name("line2"); | ||
|
||
descriptor | ||
.Field(c => c.Zipcode) | ||
.Name("zipcode"); | ||
|
||
descriptor | ||
.Field(c => c.City) | ||
.Name("city"); | ||
|
||
descriptor | ||
.Field(c => c.Country) | ||
.Name("country"); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.