Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ServiceInvoiceResource" /> class.
 /// </summary>
 /// <param name="Id">Identificação.</param>
 /// <param name="Environment">Ambiente de Processamento (required).</param>
 /// <param name="FlowStatus">Status do processamento.</param>
 /// <param name="FlowMessage">Mensagem de processamento.</param>
 /// <param name="Provider">Prestador dos serviços.</param>
 /// <param name="Borrower">Tomador dos serviços.</param>
 /// <param name="BatchNumber">Número do lote da RPS.</param>
 /// <param name="BatchCheckNumber">Número do protocolo do lote da RPS.</param>
 /// <param name="Number">Número do NFE.</param>
 /// <param name="CheckCode">Código de Verificação da NFE.</param>
 /// <param name="Status">Status da NFE.</param>
 /// <param name="RpsType">Tipo da RPS.</param>
 /// <param name="RpsStatus">Status da RPS.</param>
 /// <param name="TaxationType">Tipo da tributação.</param>
 /// <param name="IssuedOn">Data de emissão.</param>
 /// <param name="CancelledOn">Data de cancelamento.</param>
 /// <param name="RpsSerialNumber">Número de serie da RPS.</param>
 /// <param name="RpsNumber">Número da RPS.</param>
 /// <param name="CityServiceCode">Código do servico prestado no Municipio.</param>
 /// <param name="FederalServiceCode">Código do servico prestado federal.</param>
 /// <param name="Description">Descrição do serviço no municipio.</param>
 /// <param name="ServicesAmount">Valor do serviços.</param>
 /// <param name="DeductionsAmount">Valor de deduções.</param>
 /// <param name="DiscountUnconditionedAmount">Valor do desconto incondicionado.</param>
 /// <param name="DiscountConditionedAmount">Valor do desconto condicionado.</param>
 /// <param name="BaseTaxAmount">Valor da base de calculo de impostos.</param>
 /// <param name="IssRate">Aliquota do ISS.</param>
 /// <param name="IssTaxAmount">Valor do ISS.</param>
 /// <param name="IrAmountWithheld">Valor retido do Imposto de Renda (IR).</param>
 /// <param name="PisAmountWithheld">Valor retido do PIS.</param>
 /// <param name="CofinsAmountWithheld">Valor retido do COFINS.</param>
 /// <param name="CsllAmountWithheld">Valor retido do CSLL.</param>
 /// <param name="InssAmountWithheld">Valor retido do INSS.</param>
 /// <param name="IssAmountWithheld">Valor retido do ISS.</param>
 /// <param name="OthersAmountWithheld">Valor de outras retenções.</param>
 /// <param name="AmountWithheld">Valor das retenções.</param>
 /// <param name="AmountNet">Valor líquido.</param>
 /// <param name="ApproximateTax">Tributos aproximados.</param>
 /// <param name="CreatedOn">Data de criação.</param>
 /// <param name="ModifiedOn">Data da última modificação.</param>
 public ServiceInvoiceResource(string Id = default(string), EnvironmentEnum?Environment = default(EnvironmentEnum?), FlowStatusEnum?FlowStatus = default(FlowStatusEnum?), string FlowMessage = default(string), LegalPerson Provider = default(LegalPerson), Person Borrower = default(Person), long?BatchNumber = default(long?), string BatchCheckNumber = default(string), long?Number = default(long?), string CheckCode = default(string), StatusEnum?Status = default(StatusEnum?), RpsTypeEnum?RpsType = default(RpsTypeEnum?), RpsStatusEnum?RpsStatus = default(RpsStatusEnum?), TaxationTypeEnum?TaxationType = default(TaxationTypeEnum?), DateTime?IssuedOn = default(DateTime?), DateTime?CancelledOn = default(DateTime?), string RpsSerialNumber = default(string), long?RpsNumber = default(long?), string CityServiceCode = default(string), string FederalServiceCode = default(string), string Description = default(string), double?ServicesAmount = default(double?), double?DeductionsAmount = default(double?), double?DiscountUnconditionedAmount = default(double?), double?DiscountConditionedAmount = default(double?), double?BaseTaxAmount = default(double?), double?IssRate = default(double?), double?IssTaxAmount = default(double?), double?IrAmountWithheld = default(double?), double?PisAmountWithheld = default(double?), double?CofinsAmountWithheld = default(double?), double?CsllAmountWithheld = default(double?), double?InssAmountWithheld = default(double?), double?IssAmountWithheld = default(double?), double?OthersAmountWithheld = default(double?), double?AmountWithheld = default(double?), double?AmountNet = default(double?), ServiceInvoiceApproximateTaxesResource ApproximateTax = default(ServiceInvoiceApproximateTaxesResource), DateTime?CreatedOn = default(DateTime?), DateTime?ModifiedOn = default(DateTime?))
 {
     // to ensure "Environment" is required (not null)
     if (Environment == null)
     {
         throw new InvalidDataException("Environment is a required property for ServiceInvoiceResource and cannot be null");
     }
     else
     {
         this.Environment = Environment;
     }
     this.Id                          = Id;
     this.FlowStatus                  = FlowStatus;
     this.FlowMessage                 = FlowMessage;
     this.Provider                    = Provider;
     this.Borrower                    = Borrower;
     this.BatchNumber                 = BatchNumber;
     this.BatchCheckNumber            = BatchCheckNumber;
     this.Number                      = Number;
     this.CheckCode                   = CheckCode;
     this.Status                      = Status;
     this.RpsType                     = RpsType;
     this.RpsStatus                   = RpsStatus;
     this.TaxationType                = TaxationType;
     this.IssuedOn                    = IssuedOn;
     this.CancelledOn                 = CancelledOn;
     this.RpsSerialNumber             = RpsSerialNumber;
     this.RpsNumber                   = RpsNumber;
     this.CityServiceCode             = CityServiceCode;
     this.FederalServiceCode          = FederalServiceCode;
     this.Description                 = Description;
     this.ServicesAmount              = ServicesAmount;
     this.DeductionsAmount            = DeductionsAmount;
     this.DiscountUnconditionedAmount = DiscountUnconditionedAmount;
     this.DiscountConditionedAmount   = DiscountConditionedAmount;
     this.BaseTaxAmount               = BaseTaxAmount;
     this.IssRate                     = IssRate;
     this.IssTaxAmount                = IssTaxAmount;
     this.IrAmountWithheld            = IrAmountWithheld;
     this.PisAmountWithheld           = PisAmountWithheld;
     this.CofinsAmountWithheld        = CofinsAmountWithheld;
     this.CsllAmountWithheld          = CsllAmountWithheld;
     this.InssAmountWithheld          = InssAmountWithheld;
     this.IssAmountWithheld           = IssAmountWithheld;
     this.OthersAmountWithheld        = OthersAmountWithheld;
     this.AmountWithheld              = AmountWithheld;
     this.AmountNet                   = AmountNet;
     this.ApproximateTax              = ApproximateTax;
     this.CreatedOn                   = CreatedOn;
     this.ModifiedOn                  = ModifiedOn;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ServiceInvoiceIssueMessage" /> class.
 /// </summary>
 /// <param name="Borrower">Tomador dos serviços (required).</param>
 /// <param name="CityServiceCode">Código do serviço no municipio (required).</param>
 /// <param name="FederalServiceCode">Código federal do servico (Item da lista de serviço LC 116).</param>
 /// <param name="CnaeCode">Código CNAE (somente quando necessario na cidade).</param>
 /// <param name="Description">Descrição dos serviços (required).</param>
 /// <param name="ServicesAmount">Valor do serviços (required).</param>
 /// <param name="RpsSerialNumber">Número de Serie da RPS.</param>
 /// <param name="IssuedOn">Data da emissão.</param>
 /// <param name="RpsNumber">Número da RPS.</param>
 /// <param name="TaxationType">Tipo da tributação.</param>
 /// <param name="IssRate">Aliquota do ISS.</param>
 /// <param name="IssTaxAmount">Valor do ISS.</param>
 /// <param name="DeductionsAmount">Valor de deduções.</param>
 /// <param name="DiscountUnconditionedAmount">Valor do desconto incondicionado.</param>
 /// <param name="DiscountConditionedAmount">Valor do desconto condicionado.</param>
 /// <param name="IrAmountWithheld">Valor retido do Imposto de Renda (IR).</param>
 /// <param name="PisAmountWithheld">Valor retido do PIS.</param>
 /// <param name="CofinsAmountWithheld">Valor retido do COFINS.</param>
 /// <param name="CsllAmountWithheld">Valor retido do CSLL.</param>
 /// <param name="InssAmountWithheld">Valor retido do INSS.</param>
 /// <param name="IssAmountWithheld">Valor retido do ISS.</param>
 /// <param name="OthersAmountWithheld">Valor de outras retenções.</param>
 /// <param name="ApproximateTax">Tributos aproximados.</param>
 public ServiceInvoiceIssueMessage(Borrower Borrower = default(Borrower), string CityServiceCode = default(string), string FederalServiceCode = default(string), string CnaeCode = default(string), string Description = default(string), double?ServicesAmount = default(double?), string RpsSerialNumber = default(string), DateTime?IssuedOn = default(DateTime?), long?RpsNumber = default(long?), TaxationTypeEnum?TaxationType = default(TaxationTypeEnum?), double?IssRate = default(double?), double?IssTaxAmount = default(double?), double?DeductionsAmount = default(double?), double?DiscountUnconditionedAmount = default(double?), double?DiscountConditionedAmount = default(double?), double?IrAmountWithheld = default(double?), double?PisAmountWithheld = default(double?), double?CofinsAmountWithheld = default(double?), double?CsllAmountWithheld = default(double?), double?InssAmountWithheld = default(double?), double?IssAmountWithheld = default(double?), double?OthersAmountWithheld = default(double?), ServiceInvoiceApproximateTaxesResource ApproximateTax = default(ServiceInvoiceApproximateTaxesResource))
 {
     // to ensure "Borrower" is required (not null)
     if (Borrower == null)
     {
         throw new InvalidDataException("Borrower is a required property for ServiceInvoiceIssueMessage and cannot be null");
     }
     else
     {
         this.Borrower = Borrower;
     }
     // to ensure "CityServiceCode" is required (not null)
     if (CityServiceCode == null)
     {
         throw new InvalidDataException("CityServiceCode is a required property for ServiceInvoiceIssueMessage and cannot be null");
     }
     else
     {
         this.CityServiceCode = CityServiceCode;
     }
     // to ensure "Description" is required (not null)
     if (Description == null)
     {
         throw new InvalidDataException("Description is a required property for ServiceInvoiceIssueMessage and cannot be null");
     }
     else
     {
         this.Description = Description;
     }
     // to ensure "ServicesAmount" is required (not null)
     if (ServicesAmount == null)
     {
         throw new InvalidDataException("ServicesAmount is a required property for ServiceInvoiceIssueMessage and cannot be null");
     }
     else
     {
         this.ServicesAmount = ServicesAmount;
     }
     this.FederalServiceCode          = FederalServiceCode;
     this.CnaeCode                    = CnaeCode;
     this.RpsSerialNumber             = RpsSerialNumber;
     this.IssuedOn                    = IssuedOn;
     this.RpsNumber                   = RpsNumber;
     this.TaxationType                = TaxationType;
     this.IssRate                     = IssRate;
     this.IssTaxAmount                = IssTaxAmount;
     this.DeductionsAmount            = DeductionsAmount;
     this.DiscountUnconditionedAmount = DiscountUnconditionedAmount;
     this.DiscountConditionedAmount   = DiscountConditionedAmount;
     this.IrAmountWithheld            = IrAmountWithheld;
     this.PisAmountWithheld           = PisAmountWithheld;
     this.CofinsAmountWithheld        = CofinsAmountWithheld;
     this.CsllAmountWithheld          = CsllAmountWithheld;
     this.InssAmountWithheld          = InssAmountWithheld;
     this.IssAmountWithheld           = IssAmountWithheld;
     this.OthersAmountWithheld        = OthersAmountWithheld;
     this.ApproximateTax              = ApproximateTax;
 }