-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added new Cxml model * Added and updated models for OCI. * Fixed deserialization errors. * Fixed bug that cookie was immediately deleted after logging in with a session cookie. This was already fixed in the JCL the same way, but we never copied that fix to the GCL until now. * Fixed attribute formatting. * Removed unneeded empty line. * Added namespace to all lang properties. --------- Co-authored-by: Alex van den Berg <[email protected]>
- Loading branch information
1 parent
d374602
commit 5e073df
Showing
45 changed files
with
670 additions
and
4 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
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
13 changes: 13 additions & 0 deletions
13
GeeksCoreLibrary/Modules/OpenCatalogInterface/Models/AccountingModel.cs
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,13 @@ | ||
using System.Xml.Serialization; | ||
|
||
namespace GeeksCoreLibrary.Modules.OpenCatalogInterface.Models; | ||
|
||
[XmlRoot(ElementName = "Accounting")] | ||
public class AccountingModel | ||
{ | ||
[XmlElement(ElementName = "Segment")] | ||
public SegmentModel Segment { get; set; } | ||
|
||
[XmlAttribute(AttributeName = "name")] | ||
public string Name { get; set; } | ||
} |
25 changes: 25 additions & 0 deletions
25
GeeksCoreLibrary/Modules/OpenCatalogInterface/Models/AddressModel.cs
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,25 @@ | ||
using System.Xml.Serialization; | ||
|
||
namespace GeeksCoreLibrary.Modules.OpenCatalogInterface.Models; | ||
|
||
[XmlRoot(ElementName = "Address")] | ||
public class AddressModel | ||
{ | ||
[XmlElement(ElementName = "Name")] | ||
public NameModel Name { get; set; } | ||
|
||
[XmlElement(ElementName = "PostalAddress")] | ||
public PostalAddressModel PostalAddress { get; set; } | ||
|
||
[XmlElement(ElementName = "Email")] | ||
public string Email { get; set; } | ||
|
||
[XmlElement(ElementName = "Phone")] | ||
public PhoneModel Phone { get; set; } | ||
|
||
[XmlAttribute(AttributeName = "isoCountryCode")] | ||
public string IsoCountryCode { get; set; } | ||
|
||
[XmlAttribute(AttributeName = "addressID")] | ||
public string AddressId { get; set; } | ||
} |
10 changes: 10 additions & 0 deletions
10
GeeksCoreLibrary/Modules/OpenCatalogInterface/Models/BillToModel.cs
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,10 @@ | ||
using System.Xml.Serialization; | ||
|
||
namespace GeeksCoreLibrary.Modules.OpenCatalogInterface.Models; | ||
|
||
[XmlRoot(ElementName="BillTo")] | ||
public class BillToModel | ||
{ | ||
[XmlElement(ElementName="Address")] | ||
public AddressModel Address { get; set; } | ||
} |
10 changes: 10 additions & 0 deletions
10
GeeksCoreLibrary/Modules/OpenCatalogInterface/Models/ChargeModel.cs
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,10 @@ | ||
using System.Xml.Serialization; | ||
|
||
namespace GeeksCoreLibrary.Modules.OpenCatalogInterface.Models; | ||
|
||
[XmlRoot(ElementName="Charge")] | ||
public class ChargeModel | ||
{ | ||
[XmlElement(ElementName="Money")] | ||
public MoneyModel Money { get; set; } | ||
} |
10 changes: 10 additions & 0 deletions
10
GeeksCoreLibrary/Modules/OpenCatalogInterface/Models/ClassificationModel.cs
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,10 @@ | ||
using System.Xml.Serialization; | ||
|
||
namespace GeeksCoreLibrary.Modules.OpenCatalogInterface.Models; | ||
|
||
[XmlRoot(ElementName = "Classification")] | ||
public class ClassificationModel | ||
{ | ||
[XmlAttribute(AttributeName = "domain")] | ||
public string Domain { get; set; } | ||
} |
10 changes: 10 additions & 0 deletions
10
GeeksCoreLibrary/Modules/OpenCatalogInterface/Models/Comments.cs
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,10 @@ | ||
using System.Xml.Serialization; | ||
|
||
namespace GeeksCoreLibrary.Modules.OpenCatalogInterface.Models; | ||
|
||
[XmlRoot(ElementName = "Comments")] | ||
public class Comments | ||
{ | ||
[XmlAttribute(AttributeName = "lang", Namespace = "http://www.w3.org/XML/1998/namespace")] | ||
public string Lang { get; set; } | ||
} |
22 changes: 22 additions & 0 deletions
22
GeeksCoreLibrary/Modules/OpenCatalogInterface/Models/ContactModel.cs
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,22 @@ | ||
using System.Xml.Serialization; | ||
|
||
namespace GeeksCoreLibrary.Modules.OpenCatalogInterface.Models; | ||
|
||
[XmlRoot(ElementName = "Contact")] | ||
public class ContactModel | ||
{ | ||
[XmlElement(ElementName = "Name")] | ||
public NameModel Name { get; set; } | ||
|
||
[XmlElement(ElementName = "Email")] | ||
public string Email { get; set; } | ||
|
||
[XmlElement(ElementName = "Phone")] | ||
public PhoneModel Phone { get; set; } | ||
|
||
[XmlAttribute(AttributeName = "role")] | ||
public string Role { get; set; } | ||
|
||
[XmlText] | ||
public string Text { get; set; } | ||
} |
10 changes: 10 additions & 0 deletions
10
GeeksCoreLibrary/Modules/OpenCatalogInterface/Models/CountryCodeModel.cs
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,10 @@ | ||
using System.Xml.Serialization; | ||
|
||
namespace GeeksCoreLibrary.Modules.OpenCatalogInterface.Models; | ||
|
||
[XmlRoot(ElementName = "CountryCode")] | ||
public class CountryCodeModel | ||
{ | ||
[XmlAttribute(AttributeName = "isoCountryCode")] | ||
public string IsoCountryCode { get; set; } | ||
} |
13 changes: 13 additions & 0 deletions
13
GeeksCoreLibrary/Modules/OpenCatalogInterface/Models/CountryModel.cs
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,13 @@ | ||
using System.Xml.Serialization; | ||
|
||
namespace GeeksCoreLibrary.Modules.OpenCatalogInterface.Models; | ||
|
||
[XmlRoot(ElementName = "Country")] | ||
public class CountryModel | ||
{ | ||
[XmlAttribute(AttributeName = "isoCountryCode")] | ||
public string IsoCountryCode { get; set; } | ||
|
||
[XmlText] | ||
public string Value { get; set; } | ||
} |
16 changes: 16 additions & 0 deletions
16
GeeksCoreLibrary/Modules/OpenCatalogInterface/Models/CredentialModel.cs
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,16 @@ | ||
using System.Xml.Serialization; | ||
|
||
namespace GeeksCoreLibrary.Modules.OpenCatalogInterface.Models; | ||
|
||
[XmlRoot(ElementName = "Credential")] | ||
public class CredentialModel | ||
{ | ||
[XmlElement(ElementName = "Identity")] | ||
public string Identity { get; set; } | ||
|
||
[XmlAttribute(AttributeName = "domain")] | ||
public string Domain { get; set; } | ||
|
||
[XmlElement(ElementName = "SharedSecret")] | ||
public string SharedSecret { get; set; } | ||
} |
25 changes: 25 additions & 0 deletions
25
GeeksCoreLibrary/Modules/OpenCatalogInterface/Models/CxmlModel.cs
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,25 @@ | ||
using System.Xml.Serialization; | ||
|
||
namespace GeeksCoreLibrary.Modules.OpenCatalogInterface.Models; | ||
|
||
[XmlRoot(ElementName = "cXML")] | ||
public class CxmlModel | ||
{ | ||
[XmlAttribute(AttributeName = "version")] | ||
public string Version { get; set; } | ||
|
||
[XmlAttribute(AttributeName = "payloadID")] | ||
public string PayloadId { get; set; } | ||
|
||
[XmlAttribute(AttributeName = "timestamp")] | ||
public string Timestamp { get; set; } | ||
|
||
[XmlAttribute(AttributeName = "lang", Namespace = "http://www.w3.org/XML/1998/namespace")] | ||
public string Lang { get; set; } | ||
|
||
[XmlElement(ElementName = "Header")] | ||
public HeaderModel Header { get; set; } | ||
|
||
[XmlElement(ElementName = "Request")] | ||
public RequestModel Request { get; set; } | ||
} |
13 changes: 13 additions & 0 deletions
13
GeeksCoreLibrary/Modules/OpenCatalogInterface/Models/CxmlPunchOutResponseModel.cs
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,13 @@ | ||
using System.Xml.Serialization; | ||
|
||
namespace GeeksCoreLibrary.Modules.OpenCatalogInterface.Models; | ||
|
||
[XmlRoot(ElementName = "Response")] | ||
public class CxmlPunchOutResponseModel | ||
{ | ||
[XmlElement(ElementName = "Status")] | ||
public CxmlPunchOutStatusModel Status { get; set; } = new(); | ||
|
||
[XmlElement(ElementName = "PunchOutSetupResponse")] | ||
public PunchOutSetupResponseModel PunchOutSetupResponse { get; set; } = new(); | ||
} |
22 changes: 22 additions & 0 deletions
22
GeeksCoreLibrary/Modules/OpenCatalogInterface/Models/CxmlPunchOutSetupResponseModel.cs
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,22 @@ | ||
using System.Xml.Serialization; | ||
|
||
namespace GeeksCoreLibrary.Modules.OpenCatalogInterface.Models; | ||
|
||
[XmlRoot(ElementName = "cXML")] | ||
public class CxmlPunchOutSetupResponseModel | ||
{ | ||
[XmlElement(ElementName = "Response")] | ||
public CxmlPunchOutResponseModel Response { get; set; } = new(); | ||
|
||
[XmlAttribute(AttributeName = "version")] | ||
public string Version { get; set; } | ||
|
||
[XmlAttribute(AttributeName = "lang", Namespace = "http://www.w3.org/XML/1998/namespace")] | ||
public string Lang { get; set; } | ||
|
||
[XmlAttribute(AttributeName = "payloadID")] | ||
public string PayloadId { get; set; } | ||
|
||
[XmlAttribute(AttributeName = "timestamp")] | ||
public string Timestamp { get; set; } | ||
} |
10 changes: 10 additions & 0 deletions
10
GeeksCoreLibrary/Modules/OpenCatalogInterface/Models/CxmlPunchOutStartPageModel.cs
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,10 @@ | ||
using System.Xml.Serialization; | ||
|
||
namespace GeeksCoreLibrary.Modules.OpenCatalogInterface.Models; | ||
|
||
[XmlRoot(ElementName = "StartPage")] | ||
public class CxmlPunchOutStartPageModel | ||
{ | ||
[XmlElement(ElementName = "URL")] | ||
public string Url { get; set; } | ||
} |
16 changes: 16 additions & 0 deletions
16
GeeksCoreLibrary/Modules/OpenCatalogInterface/Models/CxmlPunchOutStatusModel.cs
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,16 @@ | ||
using System.Xml.Serialization; | ||
|
||
namespace GeeksCoreLibrary.Modules.OpenCatalogInterface.Models; | ||
|
||
[XmlRoot(ElementName = "Status")] | ||
public class CxmlPunchOutStatusModel | ||
{ | ||
[XmlAttribute(AttributeName = "code")] | ||
public string Code { get; set; } | ||
|
||
[XmlAttribute(AttributeName = "text")] | ||
public string Text { get; set; } | ||
|
||
[XmlText] | ||
public string InnerText { get; set; } | ||
} |
13 changes: 13 additions & 0 deletions
13
GeeksCoreLibrary/Modules/OpenCatalogInterface/Models/DescriptionModel.cs
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,13 @@ | ||
using System.Xml.Serialization; | ||
|
||
namespace GeeksCoreLibrary.Modules.OpenCatalogInterface.Models; | ||
|
||
[XmlRoot(ElementName = "Description")] | ||
public class DescriptionModel | ||
{ | ||
[XmlAttribute(AttributeName = "lang", Namespace = "http://www.w3.org/XML/1998/namespace")] | ||
public string Lang { get; set; } | ||
|
||
[XmlText] | ||
public string Value { get; set; } | ||
} |
13 changes: 13 additions & 0 deletions
13
GeeksCoreLibrary/Modules/OpenCatalogInterface/Models/DistributionModel.cs
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,13 @@ | ||
using System.Xml.Serialization; | ||
|
||
namespace GeeksCoreLibrary.Modules.OpenCatalogInterface.Models; | ||
|
||
[XmlRoot(ElementName="Distribution")] | ||
public class DistributionModel | ||
{ | ||
[XmlElement(ElementName="Accounting")] | ||
public AccountingModel Accounting { get; set; } | ||
|
||
[XmlElement(ElementName="Charge")] | ||
public ChargeModel Charge { get; set; } | ||
} |
13 changes: 13 additions & 0 deletions
13
GeeksCoreLibrary/Modules/OpenCatalogInterface/Models/EmailModel.cs
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,13 @@ | ||
using System.Xml.Serialization; | ||
|
||
namespace GeeksCoreLibrary.Modules.OpenCatalogInterface.Models; | ||
|
||
[XmlRoot(ElementName = "Email")] | ||
public class EmailModel | ||
{ | ||
[XmlAttribute(AttributeName = "name")] | ||
public string Name { get; set; } | ||
|
||
[XmlText] | ||
public string Value { get; set; } | ||
} |
13 changes: 13 additions & 0 deletions
13
GeeksCoreLibrary/Modules/OpenCatalogInterface/Models/ExtrinsicModel.cs
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,13 @@ | ||
using System.Xml.Serialization; | ||
|
||
namespace GeeksCoreLibrary.Modules.OpenCatalogInterface.Models; | ||
|
||
[XmlRoot(ElementName = "Extrinsic")] | ||
public class ExtrinsicModel | ||
{ | ||
[XmlAttribute(AttributeName = "name")] | ||
public string Name { get; set; } | ||
|
||
[XmlText] | ||
public string Value { get; set; } | ||
} |
10 changes: 10 additions & 0 deletions
10
GeeksCoreLibrary/Modules/OpenCatalogInterface/Models/FromModel.cs
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,10 @@ | ||
using System.Xml.Serialization; | ||
|
||
namespace GeeksCoreLibrary.Modules.OpenCatalogInterface.Models; | ||
|
||
[XmlRoot(ElementName="From")] | ||
public class FromModel | ||
{ | ||
[XmlElement(ElementName="Credential")] | ||
public CredentialModel Credential { get; set; } | ||
} |
16 changes: 16 additions & 0 deletions
16
GeeksCoreLibrary/Modules/OpenCatalogInterface/Models/HeaderModel.cs
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,16 @@ | ||
using System.Xml.Serialization; | ||
|
||
namespace GeeksCoreLibrary.Modules.OpenCatalogInterface.Models; | ||
|
||
[XmlRoot(ElementName="Header")] | ||
public class HeaderModel | ||
{ | ||
[XmlElement(ElementName="From")] | ||
public FromModel From { get; set; } | ||
|
||
[XmlElement(ElementName="To")] | ||
public ToModel To { get; set; } | ||
|
||
[XmlElement(ElementName="Sender")] | ||
public SenderModel Sender { get; set; } | ||
} |
Oops, something went wrong.