Git Product home page Git Product logo

e-arsiv-fatura-dotnet-standart's Introduction

Bu paket Fatih Kadir Akın'ın hazırlamış olduğu fatura paketinin C# dili .NET Framework 4.8 ile yazılmış versiyonudur.

C# .NET Framework e-Arşiv Fatura Oluşturma


Table of Contents

Hakkında

e-Arşiv Portal'a httpclient üzerinden bağlanma, fatura oluşturma, imzalama, indirme ve görüntüleme işlemleri yapılabilecek .net Framework 4.8 ile yazılmış library uygulamasıdır.

Başlangıç

Library uygulamasını indirip (clone) isteğinize göre düzenlemeler yapabilir, derleyebilir ardından oluşan DLL dosyasını projenize başvuru olarak ekleyerek kullanabilirsiniz. Ya da direk çözüm dosyanıza direk proje olarak ekleyerek çalışabilirsiniz.

Ayarlar

Başvuru olarak eklenen proje de kullanılmak istenen dosyaya aşağıdaki satırları ekleyin.

using BFY.Fatura;
using BFY.Fatura.Configuration;
using BFY.Fatura.Models;

Kullanmak istediğiniz Fonksiyon içinde aşağıdaki şekilde bir configuration nesnesi üretip kendi bilgilerinizin girişini yapın

var configuration = FaturaServiceConfigurationFactory.Create();
configuration.ServiceType = ServiceType.Prod;
configuration.Username = "";
configuration.Password = "";

Aşağıdaki şekilde bir servis nesnesi üretin

FaturaService faturaService = new(configuration);

Bir token alın

faturaService.GetToken().Wait();

Artık diğer fonksiyonları kullabilirsiniz.

Kullanım

Fatura Oluşturma : InvoiceDetailsModel tipinden fatura nesnenizi üretin ve bilgilerinizi girin.

var response = faturaService.CreateInvoice(nesne, false).GetAwaiter().GetResult();

Fatura listesini getirme :

var faturalar = faturaService.GetAllInvoicesByDateRange(DateTime.Now, DateTime.Now).GetAwaiter().GetResult();

Tek bir fatura için HTML görüntüleme :

var html = faturaService.GetInvoiceHTML(item.ettn).GetAwaiter().GetResult();

Lisans

MIT


☢️ BU PAKET VERGİYE TABİ OLAN MALİ VERİ OLUŞTURUR. BU PAKET NEDENİYLE OLUŞABİLECEK SORUNLARDAN BU PAKET SORUMLU TUTULAMAZ, RİSK KULLANANA AİTTİR. RİSKLİ GÖRÜYORSANIZ KULLANMAYINIZ.

e-arsiv-fatura-dotnet-standart's People

Contributors

danshaya avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.