-
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.
- Loading branch information
1 parent
0429039
commit 2084370
Showing
9 changed files
with
172 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
namespace Secucard.Connect.Product.General.Model | ||
{ | ||
using System.Runtime.Serialization; | ||
using Secucard.Connect.Product.Common.Model; | ||
|
||
[DataContract] | ||
public class User : SecuObject | ||
{ | ||
[DataMember(Name = "salutation")] | ||
public string Salutation { get; set; } | ||
|
||
[DataMember(Name = "title")] | ||
public string Title { get; set; } | ||
|
||
[DataMember(Name = "forename")] | ||
public string Forename { get; set; } | ||
|
||
[DataMember(Name = "surname")] | ||
public string Surname { get; set; } | ||
|
||
[DataMember(Name = "companyname")] | ||
public string CompanyName { get; set; } | ||
|
||
public override string ToString() | ||
{ | ||
return "User{" + | ||
", companyName='" + CompanyName + '\'' + | ||
", title='" + Title + '\'' + | ||
", salutation='" + Salutation + '\'' + | ||
", forename='" + Forename + '\'' + | ||
", surname='" + Surname + '\'' + | ||
"} " + base.ToString(); | ||
} | ||
} | ||
} |
94 changes: 94 additions & 0 deletions
94
lib/Secucard.Connect/Product/Payment/Model/PaymentTransaction.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,94 @@ | ||
namespace Secucard.Connect.Product.Payment.Model | ||
{ | ||
using System; | ||
using System.Runtime.Serialization; | ||
using Secucard.Connect.Net.Util; | ||
using Secucard.Connect.Product.Common.Model; | ||
using Secucard.Connect.Product.General.Model; | ||
|
||
[DataContract] | ||
public class PaymentTransaction : SecuObject | ||
{ | ||
[DataMember(Name = "merchant")] | ||
public Merchant Merchant { get; set; } | ||
|
||
[DataMember(Name = "trans_id")] | ||
public int TransId { get; set; } | ||
|
||
[DataMember(Name = "product_id")] | ||
public int ProductId { get; set; } | ||
|
||
[DataMember(Name = "product")] | ||
public string Product { get; set; } | ||
|
||
[DataMember(Name = "product_raw")] | ||
public string ProductRaw { get; set; } | ||
|
||
[DataMember(Name = "zahlungsmittel_id")] | ||
public int ZahlungsmittelId { get; set; } | ||
|
||
[DataMember(Name = "contract_id")] | ||
public int ContractId { get; set; } | ||
|
||
[DataMember(Name = "amount")] | ||
public int Amount { get; set; } | ||
|
||
[DataMember(Name = "currency")] | ||
public string Currency { get; set; } | ||
|
||
[DataMember(Name = "created")] | ||
public string FormattedCreated | ||
{ | ||
get { return this.Created.ToDateTimeZone(); } | ||
set { this.Created = value.ToDateTime(); } | ||
} | ||
|
||
public DateTime? Created { get; set; } | ||
|
||
[DataMember(Name = "updated")] | ||
public string FormattedUpdated | ||
{ | ||
get { return this.Updated.ToDateTimeZone(); } | ||
set { this.Updated = value.ToDateTime(); } | ||
} | ||
|
||
public DateTime? Updated { get; set; } | ||
|
||
[DataMember(Name = "description")] | ||
public string Description { get; set; } | ||
|
||
[DataMember(Name = "description_raw")] | ||
public string DescriptionRaw { get; set; } | ||
|
||
[DataMember(Name = "status")] | ||
public int Status { get; set; } | ||
|
||
[DataMember(Name = "status_text")] | ||
public string StatusText { get; set; } | ||
|
||
[DataMember(Name = "customer")] | ||
public User Customer { get; set; } | ||
|
||
public override string ToString() | ||
{ | ||
return "PaymentTransaction{" + | ||
"Merchant='" + this.Merchant + "', " + | ||
"TransId='" + this.TransId + "', " + | ||
"ProductId='" + this.ProductId + "', " + | ||
"Product='" + this.Product + "', " + | ||
"ProductRaw='" + this.ProductRaw + "', " + | ||
"ZahlungsmittelId='" + this.ZahlungsmittelId + "', " + | ||
"ContractId='" + this.ContractId + "', " + | ||
"Amount='" + this.Amount + "', " + | ||
"Currency='" + this.Currency + "', " + | ||
"FormattedCreated='" + this.FormattedCreated + "', " + | ||
"FormattedUpdated='" + this.FormattedUpdated + "', " + | ||
"Description='" + this.Description + "', " + | ||
"DescriptionRaw='" + this.DescriptionRaw + "', " + | ||
"Status='" + this.Status + "', " + | ||
"StatusText='" + this.StatusText + "', " + | ||
"Customer='" + this.Customer + "'" + | ||
"} " + base.ToString(); | ||
} | ||
} | ||
} |
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
16 changes: 16 additions & 0 deletions
16
lib/Secucard.Connect/Product/Payment/PaymentTransactionsService.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 @@ | ||
namespace Secucard.Connect.Product.Payment | ||
{ | ||
using Secucard.Connect.Client; | ||
using Secucard.Connect.Product.Payment.Model; | ||
|
||
public class PaymentTransactionsService : ProductService<PaymentTransaction> | ||
{ | ||
public static readonly ServiceMetaData<PaymentTransaction> MetaData = new ServiceMetaData<PaymentTransaction>("payment", | ||
"transactions"); | ||
|
||
protected override ServiceMetaData<PaymentTransaction> GetMetaData() | ||
{ | ||
return MetaData; | ||
} | ||
} | ||
} |
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