示例#1
0
 public override string GetHeaderRecord() => Join(
     GetStrField(1, DivisionHeader),
     GetStrField(3, 911),
     GetNmbField(10, PaymentAgency.ConsigneeCode),
     GetStrField(40, Company.Kana),
     GetStrField(4, DueAt.ToString("MMdd")),
     GetStrField(62, Dummy()));
示例#2
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

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

            return(obj is Dispute other &&
                   ((DisputeId == null && other.DisputeId == null) || (DisputeId?.Equals(other.DisputeId) == true)) &&
                   ((AmountMoney == null && other.AmountMoney == null) || (AmountMoney?.Equals(other.AmountMoney) == true)) &&
                   ((Reason == null && other.Reason == null) || (Reason?.Equals(other.Reason) == true)) &&
                   ((State == null && other.State == null) || (State?.Equals(other.State) == true)) &&
                   ((DueAt == null && other.DueAt == null) || (DueAt?.Equals(other.DueAt) == true)) &&
                   ((DisputedPayment == null && other.DisputedPayment == null) || (DisputedPayment?.Equals(other.DisputedPayment) == true)) &&
                   ((EvidenceIds == null && other.EvidenceIds == null) || (EvidenceIds?.Equals(other.EvidenceIds) == true)) &&
                   ((CardBrand == null && other.CardBrand == null) || (CardBrand?.Equals(other.CardBrand) == true)) &&
                   ((CreatedAt == null && other.CreatedAt == null) || (CreatedAt?.Equals(other.CreatedAt) == true)) &&
                   ((UpdatedAt == null && other.UpdatedAt == null) || (UpdatedAt?.Equals(other.UpdatedAt) == true)) &&
                   ((BrandDisputeId == null && other.BrandDisputeId == null) || (BrandDisputeId?.Equals(other.BrandDisputeId) == true)) &&
                   ((ReportedDate == null && other.ReportedDate == null) || (ReportedDate?.Equals(other.ReportedDate) == true)) &&
                   ((Version == null && other.Version == null) || (Version?.Equals(other.Version) == true)) &&
                   ((LocationId == null && other.LocationId == null) || (LocationId?.Equals(other.LocationId) == true)));
        }
示例#3
0
 public override string GetHeaderRecord() => Join(
     DivisionHeader,
     911,
     PaymentAgency.ConsigneeCode, /* 右6桁 */
     "0000",
     Company.Kana,
     DueAt.ToString("MMdd"),
     Dummy());
示例#4
0
 public override string GetHeaderRecord() => Join(
     GetStrField(1, DivisionHeader),
     GetStrField(2, 91),
     GetStrField(1, 0),
     GetNmbField(10, PaymentAgency.ConsigneeCode),
     GetStrField(40, Company.Kana),
     GetStrField(4, DueAt.ToString("MMdd")),
     GetNmbField(4, PaymentAgency.BankCode),
     GetStrField(15, PaymentAgency.BankName),
     GetNmbField(3, PaymentAgency.BranchCode),
     GetStrField(15, PaymentAgency.BranchName),
     GetStrField(1, PaymentAgency.AccountTypeId),
     GetNmbField(7, PaymentAgency.AccountNumber),
     GetStrField(17, Dummy()));
示例#5
0
 public override string GetHeaderRecord() => Join(
     DivisionHeader,
     91,
     0,
     PaymentAgency.ConsigneeCode,
     Company.Kana,
     DueAt.ToString("MMdd"),
     PaymentAgency.BankCode,
     PaymentAgency.BankName,
     PaymentAgency.BranchCode,
     PaymentAgency.BranchName,
     PaymentAgency.AccountTypeId,
     PaymentAgency.AccountNumber,
     Dummy());
示例#6
0
        public override int GetHashCode()
        {
            int hashCode = 1993475725;

            if (DisputeId != null)
            {
                hashCode += DisputeId.GetHashCode();
            }

            if (AmountMoney != null)
            {
                hashCode += AmountMoney.GetHashCode();
            }

            if (Reason != null)
            {
                hashCode += Reason.GetHashCode();
            }

            if (State != null)
            {
                hashCode += State.GetHashCode();
            }

            if (DueAt != null)
            {
                hashCode += DueAt.GetHashCode();
            }

            if (DisputedPayment != null)
            {
                hashCode += DisputedPayment.GetHashCode();
            }

            if (EvidenceIds != null)
            {
                hashCode += EvidenceIds.GetHashCode();
            }

            if (CardBrand != null)
            {
                hashCode += CardBrand.GetHashCode();
            }

            if (CreatedAt != null)
            {
                hashCode += CreatedAt.GetHashCode();
            }

            if (UpdatedAt != null)
            {
                hashCode += UpdatedAt.GetHashCode();
            }

            if (BrandDisputeId != null)
            {
                hashCode += BrandDisputeId.GetHashCode();
            }

            if (ReportedDate != null)
            {
                hashCode += ReportedDate.GetHashCode();
            }

            if (Version != null)
            {
                hashCode += Version.GetHashCode();
            }

            if (LocationId != null)
            {
                hashCode += LocationId.GetHashCode();
            }

            return(hashCode);
        }