/// <summary> /// Get counterparty options. Represents 'getCounterpartyOptions' method response of 'Counterparty' model. /// Documentation: https://devcenter.novaposhta.ua/docs/services/557eb8c8a0fe4f02fc455b2d/operations/55801976a0fe4f105c087614 /// </summary> /// <param name="reference">Counterparty reference key</param> /// <returns>Counterparty options</returns> public virtual IResponseEnvelope <GetCounterpartyOptionsResponse.CounterpartyOptions> GetCounterpartyOptions(Guid reference) { var request = new GetCounterpartyOptionsRequest() { Reference = reference }; return(GetCounterpartyOptions(request)); }
/// <summary> /// Get counterparty options. Represents 'getCounterpartyOptions' method response of 'Counterparty' model. /// Documentation: https://devcenter.novaposhta.ua/docs/services/557eb8c8a0fe4f02fc455b2d/operations/55801976a0fe4f105c087614 /// </summary> /// <param name="getCounterpartyOptionsRequest">Get counterparty options request</param> /// <returns>Counterparty options</returns> public virtual IResponseEnvelope <GetCounterpartyOptionsResponse.CounterpartyOptions> GetCounterpartyOptions(GetCounterpartyOptionsRequest getCounterpartyOptionsRequest) { var request = new RequestEnvelope <GetCounterpartyOptionsRequest>(getCounterpartyOptionsRequest) { CalledMethod = "getCounterpartyOptions", ModelName = MODEL }; var response = _novaPoshtaGateway.CreateRequest <GetCounterpartyOptionsRequest, GetCounterpartyOptionsResponse>(request); return(response); }