internal override bool isValid() { if (DateIssuedFrom != DateTime.MinValue) { return(true); } if (DateIssuedTo != DateTime.MinValue) { return(true); } if (DateUpdatedFrom != DateTime.MinValue) { return(true); } if (DateUpdatedTo != DateTime.MinValue) { return(true); } if (DateApprovedFrom != DateTime.MinValue) { return(true); } if (DateApprovedTo != DateTime.MinValue) { return(true); } int requiredFilterCount = OrderID.NullSafeLength() + Username.NullSafeLength() + RmaID.NullSafeLength() + InvoiceNumber.NullSafeLength() + RmaStatus.NullSafeLength() + SplitKitComponents.NullSafeLength(); if (requiredFilterCount != 0) { return(true); } throw new NetoRequestException("At least one filter is required in the GetRMA request"); }
internal override bool isValid() { if (DatePaidFrom != DateTime.MinValue) { return(true); } if (DatePaidTo != DateTime.MinValue) { return(true); } int requiredFilterCount = PaymentID.NullSafeLength() + OrderID.NullSafeLength(); if (requiredFilterCount != 0) { return(true); } throw new NetoRequestException("At least one filter is required in the GetPayment request"); }
internal override bool isValid() { if (DatePaidFrom != DateTime.MinValue) { return(true); } if (DatePaidTo != DateTime.MinValue) { return(true); } if (DateRequiredFrom != DateTime.MinValue) { return(true); } if (DateRequiredTo != DateTime.MinValue) { return(true); } if (DateInvoicedFrom != DateTime.MinValue) { return(true); } if (DateInvoicedTo != DateTime.MinValue) { return(true); } if (DatePlacedFrom != DateTime.MinValue) { return(true); } if (DatePlacedTo != DateTime.MinValue) { return(true); } if (DateUpdatedFrom != DateTime.MinValue) { return(true); } if (DateUpdatedTo != DateTime.MinValue) { return(true); } if (DateCompletedFrom != DateTime.MinValue) { return(true); } if (DateCompletedTo != DateTime.MinValue) { return(true); } if (WarehouseQuantityUpdatedFrom != DateTime.MinValue) { return(true); } if (WarehouseQuantityUpdatedTo != DateTime.MinValue) { return(true); } int requiredFilterCount = OrderID.NullSafeLength() + Username.NullSafeLength() + SKU.NullSafeLength() + Supplier.NullSafeLength() + WarehouseID.NullSafeLength() + ShippingMethod.NullSafeLength() + SalesChannel.NullSafeLength(); if (requiredFilterCount != 0) { return(true); } throw new NetoRequestException("At least one filter is required in the GetOrder request"); }