private void InitCreditTrackData(EntryMethod entryMethod = EntryMethod.Swipe)
 {
     creditTrackData       = new CreditTrackData();
     creditTrackData.Value =
         "%B4012002000060016^VI TEST CREDIT^251210118039000000000396?;4012002000060016=25121011803939600000?";
     creditTrackData.EntryMethod = entryMethod;
 }
示例#2
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            if (obj == this)
            {
                return(true);
            }

            return(obj is V1Tender other &&
                   ((Id == null && other.Id == null) || (Id?.Equals(other.Id) == true)) &&
                   ((Type == null && other.Type == null) || (Type?.Equals(other.Type) == true)) &&
                   ((Name == null && other.Name == null) || (Name?.Equals(other.Name) == true)) &&
                   ((EmployeeId == null && other.EmployeeId == null) || (EmployeeId?.Equals(other.EmployeeId) == true)) &&
                   ((ReceiptUrl == null && other.ReceiptUrl == null) || (ReceiptUrl?.Equals(other.ReceiptUrl) == true)) &&
                   ((CardBrand == null && other.CardBrand == null) || (CardBrand?.Equals(other.CardBrand) == true)) &&
                   ((PanSuffix == null && other.PanSuffix == null) || (PanSuffix?.Equals(other.PanSuffix) == true)) &&
                   ((EntryMethod == null && other.EntryMethod == null) || (EntryMethod?.Equals(other.EntryMethod) == true)) &&
                   ((PaymentNote == null && other.PaymentNote == null) || (PaymentNote?.Equals(other.PaymentNote) == true)) &&
                   ((TotalMoney == null && other.TotalMoney == null) || (TotalMoney?.Equals(other.TotalMoney) == true)) &&
                   ((TenderedMoney == null && other.TenderedMoney == null) || (TenderedMoney?.Equals(other.TenderedMoney) == true)) &&
                   ((TenderedAt == null && other.TenderedAt == null) || (TenderedAt?.Equals(other.TenderedAt) == true)) &&
                   ((SettledAt == null && other.SettledAt == null) || (SettledAt?.Equals(other.SettledAt) == true)) &&
                   ((ChangeBackMoney == null && other.ChangeBackMoney == null) || (ChangeBackMoney?.Equals(other.ChangeBackMoney) == true)) &&
                   ((RefundedMoney == null && other.RefundedMoney == null) || (RefundedMoney?.Equals(other.RefundedMoney) == true)) &&
                   ((IsExchange == null && other.IsExchange == null) || (IsExchange?.Equals(other.IsExchange) == true)));
        }
示例#3
0
 public static CreditTrackData DiscoverSwipe(EntryMethod entryMethod = EntryMethod.Swipe)
 {
     return(new CreditTrackData {
         Value = "%B6011000990156527^DIS TEST CARD^25121011000062111401?;6011000990156527=25121011000062111401?",
         EntryMethod = entryMethod
     });
 }
示例#4
0
 public static CreditTrackData AmexSwipe(EntryMethod entryMethod = EntryMethod.Swipe)
 {
     return(new CreditTrackData {
         Value = "%B3727 006992 51018^AMEX TEST CARD^2512990502700?;372700699251018=2512990502700?",
         EntryMethod = entryMethod
     });
 }
示例#5
0
 public static CreditTrackData MasterCardSwipe(EntryMethod entryMethod = EntryMethod.Swipe)
 {
     return(new CreditTrackData {
         Value = "%B5473500000000014^MC TEST CARD^251210199998888777766665555444433332?;5473500000000014=25121019999888877776?",
         EntryMethod = entryMethod
     });
 }
示例#6
0
 public static CreditTrackData JcbSwipe(EntryMethod entryMethod = EntryMethod.Swipe)
 {
     return(new CreditTrackData {
         Value = "%B3566007770007321^JCB TEST CARD^2512101100000000000000000064300000?;3566007770007321=25121011000000076435?",
         EntryMethod = entryMethod
     });
 }
示例#7
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            if (obj == this)
            {
                return(true);
            }

            return(obj is CardPaymentDetails other &&
                   ((Status == null && other.Status == null) || (Status?.Equals(other.Status) == true)) &&
                   ((Card == null && other.Card == null) || (Card?.Equals(other.Card) == true)) &&
                   ((EntryMethod == null && other.EntryMethod == null) || (EntryMethod?.Equals(other.EntryMethod) == true)) &&
                   ((CvvStatus == null && other.CvvStatus == null) || (CvvStatus?.Equals(other.CvvStatus) == true)) &&
                   ((AvsStatus == null && other.AvsStatus == null) || (AvsStatus?.Equals(other.AvsStatus) == true)) &&
                   ((AuthResultCode == null && other.AuthResultCode == null) || (AuthResultCode?.Equals(other.AuthResultCode) == true)) &&
                   ((ApplicationIdentifier == null && other.ApplicationIdentifier == null) || (ApplicationIdentifier?.Equals(other.ApplicationIdentifier) == true)) &&
                   ((ApplicationName == null && other.ApplicationName == null) || (ApplicationName?.Equals(other.ApplicationName) == true)) &&
                   ((ApplicationCryptogram == null && other.ApplicationCryptogram == null) || (ApplicationCryptogram?.Equals(other.ApplicationCryptogram) == true)) &&
                   ((VerificationMethod == null && other.VerificationMethod == null) || (VerificationMethod?.Equals(other.VerificationMethod) == true)) &&
                   ((VerificationResults == null && other.VerificationResults == null) || (VerificationResults?.Equals(other.VerificationResults) == true)) &&
                   ((StatementDescription == null && other.StatementDescription == null) || (StatementDescription?.Equals(other.StatementDescription) == true)) &&
                   ((DeviceDetails == null && other.DeviceDetails == null) || (DeviceDetails?.Equals(other.DeviceDetails) == true)) &&
                   ((CardPaymentTimeline == null && other.CardPaymentTimeline == null) || (CardPaymentTimeline?.Equals(other.CardPaymentTimeline) == true)) &&
                   ((RefundRequiresCardPresence == null && other.RefundRequiresCardPresence == null) || (RefundRequiresCardPresence?.Equals(other.RefundRequiresCardPresence) == true)) &&
                   ((Errors == null && other.Errors == null) || (Errors?.Equals(other.Errors) == true)));
        }
示例#8
0
 public static CreditTrackData VisaFallbackSwipe(EntryMethod entryMethod = EntryMethod.Swipe)
 {
     return(new CreditTrackData {
         Value = "%B4012002000060016^VI TEST CREDIT^251220118039000000000396?;4012002000060016=25122011803939600000?",
         EntryMethod = entryMethod
     });
 }
示例#9
0
 public static CreditTrackData MasterCard25Swipe(EntryMethod entryMethod = EntryMethod.Swipe)
 {
     return(new CreditTrackData {
         Value = "%B2223000010005798^TEST CARD/EMV BIN-2^19121010000000003840?;2223000010005798=19121010000000003840?",
         EntryMethod = entryMethod
     });
 }
示例#10
0
        public static CreditTrackData VisaCorporateSwipe(EntryMethod entryMethod = EntryMethod.Swipe)
        {
            CreditTrackData rvalue = new CreditTrackData();

            rvalue.Value       = "%B4273594425847534^VISA TEST CARD/GOOD^2512101?;4273594425847534=1712101?";
            rvalue.EntryMethod = entryMethod;
            return(rvalue);
        }
示例#11
0
        public static CreditTrackData VisaPurchasingSwipe(EntryMethod entryMethod = EntryMethod.Swipe)
        {
            CreditTrackData rvalue = new CreditTrackData();

            rvalue.Value       = "%B4484104292153662^POSINT TEST VISA P CARD^2512501032100321001000?;4484104292153662=18035010321?";
            rvalue.EntryMethod = entryMethod;
            return(rvalue);
        }
示例#12
0
        public static CreditTrackData MasterCard2Swipe(EntryMethod entryMethod = EntryMethod.Swipe)
        {
            CreditTrackData rvalue = new CreditTrackData();

            rvalue.Value       = "%B2223000010005780^TEST CARD/EMV BIN-2^25121010000000009210?;2223000010005780=25121010000000009210?";
            rvalue.EntryMethod = entryMethod;
            return(rvalue);
        }
示例#13
0
        public static CreditTrackData MasterCardPurchasingSwipe(EntryMethod entryMethod = EntryMethod.Swipe)
        {
            CreditTrackData rvalue = new CreditTrackData();

            rvalue.Value       = "%B5405059925478964^MASTERCARD TEST^25121011234567890123?;5405059925478964=18121011234567890123?";
            rvalue.EntryMethod = entryMethod;
            return(rvalue);
        }
示例#14
0
        public static CreditTrackData FuelmanSwipe(EntryMethod entryMethod = EntryMethod.Swipe)
        {
            CreditTrackData rvalue = new CreditTrackData {
                Value       = ";70764912345100003=4912?",
                EntryMethod = entryMethod
            };

            return(rvalue);
        }
示例#15
0
        public static CreditTrackData FleetOneSwipe(EntryMethod entryMethod = EntryMethod.Swipe)
        {
            CreditTrackData rvalue = new CreditTrackData {
                Value       = ";6900460430001234566=21121012203100000?",
                EntryMethod = entryMethod
            };

            return(rvalue);
        }
示例#16
0
        public static CreditTrackData VisaSwipeExpired(EntryMethod entryMethod = EntryMethod.Swipe)
        {
            CreditTrackData rvalue = new CreditTrackData {
                Value       = "%B4427802718148774^TEST CARD00000000000000000^201210100000123456780034500A000?;4427802718148774=20121010000012345678?",
                EntryMethod = entryMethod
            };

            return(rvalue);
        }
示例#17
0
        public static CreditTrackData FleetOneSwipe(EntryMethod entryMethod = EntryMethod.Swipe)
        {
            CreditTrackData rvalue = new CreditTrackData {
                Value       = "%B5014860000000126^FLEETONE TEST CARD/GOOD^25121019206100000001?;5014860000000126=16111019206100000001?",
                EntryMethod = entryMethod
            };

            return(rvalue);
        }
示例#18
0
 public bool ContainsFilterText(string filterText)
 {
     return(Name.ContainsCaseInsensitive(filterText) ||
            Title.ContainsCaseInsensitive(filterText) ||
            Category.ToString().ContainsCaseInsensitive(filterText) ||
            Description.ContainsCaseInsensitive(filterText) ||
            AssemblyFilePath.ContainsCaseInsensitive(filterText) ||
            EntryMethod.ContainsCaseInsensitive(filterText));
 }
示例#19
0
        public static CreditTrackData AmexSwipeEncrypted(EntryMethod entryMethod = EntryMethod.Swipe)
        {
            CreditTrackData rvalue = new CreditTrackData();

            rvalue.Value          = "B372700791018^AMEX TEST CARD^2512990ocSvC1w2YgC";
            rvalue.EntryMethod    = entryMethod;
            rvalue.EncryptionData = EncryptionData.Version2("/wECAQEEAoFGAgEH4gwTTDT6jRZwb3NAc2VjdXJlZXhjaGFuZ2UubmV0yp142cX/wGCVF/gVBOFEiFbZxWq0ZQeADdyMNKbOOzxu2MsHhZ+MkDQrz1KJKJVOHQyV3/mnHBWsQPdlGpVkxK0GxFrxbtIxOwViiBZb2ySajpUat6o+MunOrz7ZsYeurOJHtrpYrLEmPgVwxL3dn3Br+XS5sF2pqtG4lq5MsmgAzzKH9/llZ+FDb1e0NJX/8Nso784bBAr3dmUqagCaWSVb4fcg", "1");
            return(rvalue);
        }
示例#20
0
        public static DebitTrackData VisaReadyLinkSwipe(EntryMethod entryMethod = EntryMethod.Swipe)
        {
            DebitTrackData rvalue = new DebitTrackData
            {
                Value       = ";4110651122223331=21121010000012345678?",
                EntryMethod = entryMethod
            };

            return(rvalue);
        }
示例#21
0
        public static CreditTrackData FleetWideSwipe(EntryMethod entryMethod = EntryMethod.Swipe)
        {
            CreditTrackData rvalue = new CreditTrackData
            {
                Value       = ";70768512345200000=99120?",
                EntryMethod = entryMethod
            };

            return(rvalue);
        }
示例#22
0
 public static CreditTrackData MasterCardSwipeEncrypted(EntryMethod entryMethod = EntryMethod.Swipe)
 {
     return(new CreditTrackData {
         Value = "<E1052711%B5473501000000014^MC TEST CARD^251200000000000000000000000000000000?|GVEY/MKaKXuqqjKRRueIdCHPPoj1gMccgNOtHC41ymz7bIvyJJVdD3LW8BbwvwoenI+|+++++++C4cI2zjMp|11;5473501000000014=25120000000000000000?|8XqYkQGMdGeiIsgM0pzdCbEGUDP|+++++++C4cI2zjMp|00|||/wECAQECAoFGAgEH2wYcShV78RZwb3NAc2VjdXJlZXhjaGFuZ2UubmV0PX50qfj4dt0lu9oFBESQQNkpoxEVpCW3ZKmoIV3T93zphPS3XKP4+DiVlM8VIOOmAuRrpzxNi0TN/DWXWSjUC8m/PI2dACGdl/hVJ/imfqIs68wYDnp8j0ZfgvM26MlnDbTVRrSx68Nzj2QAgpBCHcaBb/FZm9T7pfMr2Mlh2YcAt6gGG1i2bJgiEJn8IiSDX5M2ybzqRT86PCbKle/XCTwFFe1X|>",
         EntryMethod = entryMethod,
         EncryptionData = new EncryptionData {
             Version = "01"
         }
     });
 }
示例#23
0
        public static CreditTrackData VoyagerFleetSwipe(EntryMethod entryMethod = EntryMethod.Swipe)
        {
            CreditTrackData rvalue = new CreditTrackData
            {
                Value       = "%07088869008250005064^VOYAGER TEST ACCT THREE  ^2512110000000000000?;7088869008250005064=25121100000000000?",
                EntryMethod = entryMethod
            };

            return(rvalue);
        }
示例#24
0
 public static CreditTrackData VisaSwipeEncrypted(EntryMethod entryMethod = EntryMethod.Swipe)
 {
     return(new CreditTrackData {
         Value = "<E1050711%B4012001000000016^VI TEST CREDIT^251200000000000000000000?|LO04K0WFOmdkDz0um+GwUkILL8ZZOP6Zc4rCpZ9+kg2T3JBT4AEOilWTI|+++++++Dbbn04ekG|11;4012001000000016=25120000000000000000?|1u2F/aEhbdoPixyAPGyIDv3gBfF|+++++++Dbbn04ekG|00|||/wECAQECAoFGAgEH2wYcShV78RZwb3NAc2VjdXJlZXhjaGFuZ2UubmV0PX50qfj4dt0lu9oFBESQQNkpoxEVpCW3ZKmoIV3T93zphPS3XKP4+DiVlM8VIOOmAuRrpzxNi0TN/DWXWSjUC8m/PI2dACGdl/hVJ/imfqIs68wYDnp8j0ZfgvM26MlnDbTVRrSx68Nzj2QAgpBCHcaBb/FZm9T7pfMr2Mlh2YcAt6gGG1i2bJgiEJn8IiSDX5M2ybzqRT86PCbKle/XCTwFFe1X|>;",
         EntryMethod = entryMethod,
         EncryptionData = new EncryptionData {
             Version = "01"
         }
     });
 }
示例#25
0
 public static CreditTrackData DiscoverSwipeEncrypted(EntryMethod entryMethod = EntryMethod.Swipe)
 {
     return(new CreditTrackData {
         Value = "&lt;E1049711%B6011000000006527^DIS TEST CARD^25120000000000000000?|nqtDvLuS4VHJd1FymxBxihO5g/ZDqlHyTf8fQpjBwkk95cc6PG9V|+++++++C+LdWXLpP|11;6011000000006527=25120000000000000000?|8VfZvczP6iBqRis2XFypmktaipa|+++++++C+LdWXLpP|00|||/wECAQECAoFGAgEH2wYcShV78RZwb3NAc2VjdXJlZXhjaGFuZ2UubmV0PX50qfj4dt0lu9oFBESQQNkpoxEVpCW3ZKmoIV3T93zphPS3XKP4+DiVlM8VIOOmAuRrpzxNi0TN/DWXWSjUC8m/PI2dACGdl/hVJ/imfqIs68wYDnp8j0ZfgvM26MlnDbTVRrSx68Nzj2QAgpBCHcaBb/FZm9T7pfMr2Mlh2YcAt6gGG1i2bJgiEJn8IiSDX5M2ybzqRT86PCbKle/XCTwFFe1X|&gt;",
         EntryMethod = entryMethod,
         EncryptionData = new EncryptionData {
             Version = "01"
         }
     });
 }
示例#26
0
        public static CreditTrackData VisaFleetSwipe(EntryMethod entryMethod = EntryMethod.Swipe)
        {
            CreditTrackData rvalue = new CreditTrackData {
                Value       = "%B4485536666666663^VISA TEST CARD/GOOD^25121019206100000001?;4485536666666663=16111019206100000001?",
                EntryMethod = entryMethod
            };

            return(rvalue);
            //CreditTrackData rvalue = new CreditTrackData();
            //rvalue.Value = "%B4484630000000126^VISA TEST CARD/GOOD^25121019206100000001?;4484630000000126=16111019206100000001?";
            //rvalue.EntryMethod = entryMethod;
            //return rvalue;
        }
示例#27
0
        public static CreditTrackData VisaSwipe(EntryMethod entryMethod = EntryMethod.Swipe)
        {
            CreditTrackData rvalue = new CreditTrackData {
                Value       = "%B4012002000060016^VI TEST CREDIT^251210118039000000000396?;4012002000060016=25121011803939600000?",
                EntryMethod = entryMethod
            };

            return(rvalue);
            //return new CreditTrackData {
            //    Value = "%B4012002000060016^VI TEST CREDIT^251210118039000000000396?;4012002000060016=25121011803939600000?",
            //    EntryMethod = entryMethod
            //};
        }
示例#28
0
        public static CreditTrackData MasterCardSwipe(EntryMethod entryMethod = EntryMethod.Swipe)
        {
            CreditTrackData rvalue = new CreditTrackData {
                Value       = "%B5506740000004316^MC TEST CARD^251210199998888777766665555444433332?;5506740000004316=25121019999888877776?",
                EntryMethod = entryMethod
            };

            return(rvalue);
            //return new CreditTrackData {
            //    Value = "%B5473500000000014^MC TEST CARD^251210199998888777766665555444433332?;5473500000000014=25121019999888877776?",
            //    EntryMethod = entryMethod
            //};
        }
示例#29
0
        public static CreditTrackData DiscoverSwipe(EntryMethod entryMethod = EntryMethod.Swipe)
        {
            CreditTrackData creditTrackData = new CreditTrackData {
                Value       = "%B6011000990156527^DIS TEST CARD^25121011000062111401?;6011000990156527=25121011000062111401?",
                EntryMethod = entryMethod
            };

            return(creditTrackData);
            //return new CreditTrackData {
            //    Value = "%B6011000990156527^DIS TEST CARD^25121011000062111401?;6011000990156527=25121011000062111401?",
            //    EntryMethod = entryMethod
            //};
        }
示例#30
0
        public static CreditTrackData VisaSwipe(EntryMethod entryMethod = EntryMethod.Swipe)
        {
            CreditTrackData rvalue = new CreditTrackData {
                //Value = "%B4012002000060016^VI TEST CREDIT^251210118039000000000396?;4012002000060016=25121011803939600000?",
                Value       = "%B4427802718148774^TEST CARD00000000000000000^281210100000123456780034500A000?;4427802718148774=28121010000012345678?",
                EntryMethod = entryMethod
            };

            return(rvalue);
            //return new CreditTrackData {
            //    Value = "%B4012002000060016^VI TEST CREDIT^251210118039000000000396?;4012002000060016=25121011803939600000?",
            //    EntryMethod = entryMethod
            //};
        }