#客户端 #REST客户端 #API客户端 # #OAuth2 #用户 #发票

fattureincloud-rs

将您的软件与意大利超过500,000家企业选择的发票云平台Fatture in Cloud连接。Fatture in Cloud API基于REST,并允许通过OAuth2协议在授权之前与用户相关数据交互。

2个稳定版本

2.0.32 2024年4月30日
2.0.29 2023年10月2日

#74 in HTTP客户端

MIT许可证

1MB
14K SLoC

Rust API客户端为fattureincloud-rs

将您的软件与意大利超过500,000家企业选择的发票云平台Fatture in Cloud连接。

Fatture in Cloud API基于REST,并允许通过OAuth2协议在授权之前与用户相关数据交互。

有关更多信息,请访问 https://www.fattureincloud.it

概览

此API客户端由OpenAPI Generator项目生成。通过使用来自远程服务器的openapi-spec,您可以轻松生成API客户端。

  • API版本:2.0.32
  • 包版本:2.0.32
  • 生成器版本:7.6.0-SNAPSHOT
  • 构建包: org.openapitools.codegen.languages.RustClientCodegen

安装

将包放入名为fattureincloud-rs的目录下,并在[dependencies]下添加以下内容到Cargo.toml

fattureincloud-rs = { path = "./fattureincloud-rs" }

API端点文档

所有URI均相对于https://api-v2.fattureincloud.it

方法 HTTP请求 描述
ArchiveApi create_archive_document POST /c/{company_id}/archive 创建归档文档
ArchiveApi delete_archive_document DELETE /c/{company_id}/archive/{document_id} 删除归档文档
ArchiveApi get_archive_document GET /c/{company_id}/archive/{document_id} 获取归档文档
ArchiveApi list_archive_documents GET /c/{company_id}/archive 列出归档文档
ArchiveApi modify_archive_document PUT /c/{company_id}/archive/{document_id} 修改归档文档
ArchiveApi upload_archive_document_attachment POST /c/{公司ID}/archive/attachment 上传存档文档附件
CashbookApi create_cashbook_entry POST /c/{公司ID}/cashbook 创建现金账条目
CashbookApi delete_cashbook_entry DELETE /c/{公司ID}/cashbook/{文档ID} 删除现金账条目
CashbookApi get_cashbook_entry GET /c/{公司ID}/cashbook/{文档ID} 获取现金账条目
CashbookApi list_cashbook_entries GET /c/{公司ID}/cashbook 列出现金账条目
CashbookApi modify_cashbook_entry PUT /c/{公司ID}/cashbook/{文档ID} 修改现金账条目
ClientsApi create_client POST /c/{公司ID}/entities/clients 创建客户
ClientsApi delete_client DELETE /c/{公司ID}/entities/clients/{客户ID} 删除客户
ClientsApi get_client GET /c/{公司ID}/entities/clients/{客户ID} 获取客户
ClientsApi list_clients GET /c/{公司ID}/entities/clients 列出客户
ClientsApi modify_client PUT /c/{公司ID}/entities/clients/{客户ID} 修改客户
CompaniesApi get_company_info GET /c/{公司ID}/company/info 获取公司信息
CompaniesApi get_company_plan_usage GET /c/{公司ID}/company/plan_usage 获取公司计划使用情况
EmailsApi list_emails GET /c/{公司ID}/emails 列出电子邮件
InfoApi list_archive_categories GET /c/{公司ID}/info/archive_categories 列出存档类别
InfoApi list_cities GET /info/cities 列出城市
InfoApi list_cost_centers GET /c/{公司ID}/info/cost_centers 列出成本中心
InfoApi list_countries GET /info/countries 列出国家
InfoApi list_currencies GET /info/currencies 列出货币
InfoApi list_delivery_notes_default_causals GET /info/dn_causals 列出送货单默认原因
InfoApi list_detailed_countries GET /info/detailed_countries 列出详细国家
InfoApi list_languages GET /info/languages 列出语言
InfoApi list_payment_accounts GET /c/{公司ID}/info/payment_accounts 列出支付账户
InfoApi list_payment_methods GET /c/{公司ID}/info/payment_methods 列出支付方式
InfoApi list_product_categories GET /c/{公司ID}/info/product_categories 列出产品类别
InfoApi list_received_document_categories GET /c/{公司ID}/info/received_document_categories 列出收到的文档类别
InfoApi list_revenue_centers GET /c/{公司ID}/info/revenue_centers 列出收入中心
InfoApi list_templates GET /info/templates 列出模板
InfoApi list_units_of_measure GET /info/measures 列出计量单位
InfoApi list_vat_types GET /c/{公司ID}/info/vat_types 列出增值税类型
IssuedDocumentsApi create_issued_document POST /c/{公司ID}/issued_documents 创建已发行文件
IssuedDocumentsApi delete_issued_document DELETE /c/{公司ID}/issued_documents/{文档ID} 删除已发行文件
IssuedDocumentsApi delete_issued_document_attachment DELETE /c/{公司ID}/issued_documents/{文档ID}/attachment 删除已发行文件附件
IssuedDocumentsApi get_email_data GET /c/{公司ID}/issued_documents/{文档ID}/email 获取电子邮件数据
IssuedDocumentsApi get_existing_issued_document_totals POST /c/{公司ID}/issued_documents/{文档ID}/totals 获取现有的已发行文件总计
IssuedDocumentsApi get_issued_document GET /c/{公司ID}/issued_documents/{文档ID} 获取已发行文件
IssuedDocumentsApi get_issued_document_pre_create_info GET /c/{公司ID}/issued_documents/info 获取已发行文件预创建信息
IssuedDocumentsApi get_new_issued_document_totals POST /c/{公司ID}/issued_documents/totals 获取新的已发行文件总计
IssuedDocumentsApi join_issued_documents GET /c/{公司ID}/issued_documents/join 合并已发行文件
IssuedDocumentsApi list_issued_documents GET /c/{公司ID}/issued_documents 列出已发行文件
IssuedDocumentsApi modify_issued_document PUT /c/{公司ID}/issued_documents/{文档ID} 修改已发行文件
IssuedDocumentsApi schedule_email POST /c/{公司ID}/issued_documents/{文档ID}/email 安排电子邮件
IssuedDocumentsApi transform_issued_document GET /c/{company_id}/issued_documents/transform 转换已发行文件
IssuedDocumentsApi upload_issued_document_attachment POST /c/{company_id}/issued_documents/attachment 上传已发行文件附件
IssuedEInvoicesApi get_e_invoice_rejection_reason GET /c/{company_id}/issued_documents/{document_id}/e_invoice/error_reason 获取电子发票拒绝原因
IssuedEInvoicesApi get_e_invoice_xml GET /c/{company_id}/issued_documents/{document_id}/e_invoice/xml 获取电子发票XML
IssuedEInvoicesApi send_e_invoice POST /c/{company_id}/issued_documents/{document_id}/e_invoice/send 发送电子发票
IssuedEInvoicesApi verify_e_invoice_xml GET /c/{company_id}/issued_documents/{document_id}/e_invoice/xml_verify 验证电子发票XML
ProductsApi create_product POST /c/{company_id}/products 创建产品
ProductsApi delete_product DELETE /c/{company_id}/products/{product_id} 删除产品
ProductsApi get_product GET /c/{company_id}/products/{product_id} 获取产品
ProductsApi list_products GET /c/{company_id}/products 产品列表
ProductsApi modify_product PUT /c/{company_id}/products/{product_id} 修改产品
ReceiptsApi create_receipt POST /c/{company_id}/receipts 创建收据
ReceiptsApi delete_receipt DELETE /c/{company_id}/receipts/{document_id} 删除收据
ReceiptsApi get_receipt GET /c/{company_id}/receipts/{document_id} 获取收据
ReceiptsApi get_receipt_pre_create_info GET /c/{company_id}/receipts/info 获取收据预创建信息
ReceiptsApi get_receipts_monthly_totals GET /c/{company_id}/receipts/monthly_totals 获取收据月度总计
ReceiptsApi list_receipts GET /c/{company_id}/receipts 收据列表
ReceiptsApi modify_receipt PUT /c/{company_id}/receipts/{document_id} 修改收据
ReceivedDocumentsApi create_received_document POST /c/{company_id}/received_documents 创建收到的文件
ReceivedDocumentsApi delete_received_document DELETE /c/{company_id}/received_documents/{document_id} 删除收到的文件
ReceivedDocumentsApi delete_received_document_attachment DELETE /c/{company_id}/received_documents/{document_id}/attachment 删除收到的文件附件
ReceivedDocumentsApi get_existing_received_document_totals POST /c/{company_id}/received_documents/{document_id}/totals 获取现有收到的文件总计
ReceivedDocumentsApi get_new_received_document_totals POST /c/{company_id}/received_documents/totals 获取新的收到的文件总计
ReceivedDocumentsApi get_received_document GET /c/{company_id}/received_documents/{document_id} 获取收到的文件
ReceivedDocumentsApi get_received_document_pre_create_info GET /c/{company_id}/received_documents/info 获取收到的文件预创建信息
ReceivedDocumentsApi list_received_documents GET /c/{company_id}/received_documents 收到的文件列表
ReceivedDocumentsApi modify_received_document PUT /c/{company_id}/received_documents/{document_id} 修改收到的文件
ReceivedDocumentsApi upload_received_document_attachment POST /c/{company_id}/received_documents/attachment 上传收到的文件附件
SettingsApi create_payment_account POST /c/{company_id}/settings/payment_accounts 创建支付账户
SettingsApi create_payment_method POST /c/{company_id}/settings/payment_methods 创建支付方式
SettingsApi create_vat_type POST /c/{company_id}/settings/vat_types 创建增值税类型
SettingsApi delete_payment_account DELETE /c/{company_id}/settings/payment_accounts/{payment_account_id} 删除支付账户
SettingsApi delete_payment_method DELETE /c/{company_id}/settings/payment_methods/{payment_method_id} 删除支付方式
SettingsApi delete_vat_type DELETE /c/{company_id}/settings/vat_types/{vat_type_id} 删除增值税类型
SettingsApi get_payment_account GET /c/{company_id}/settings/payment_accounts/{payment_account_id} 获取支付账户
SettingsApi get_payment_method GET /c/{company_id}/settings/payment_methods/{payment_method_id} 获取支付方式
SettingsApi get_vat_type GET /c/{company_id}/settings/vat_types/{vat_type_id} 获取增值税类型
SettingsApi modify_payment_account PUT /c/{company_id}/settings/payment_accounts/{payment_account_id} 修改付款账户
SettingsApi modify_payment_method PUT /c/{company_id}/settings/payment_methods/{payment_method_id} 修改付款方式
SettingsApi modify_vat_type PUT /c/{company_id}/settings/vat_types/{vat_type_id} 修改增值税类型
供应商API create_supplier POST /c/{company_id}/entities/suppliers 创建供应商
供应商API delete_supplier DELETE /c/{company_id}/entities/suppliers/{supplier_id} 删除供应商
供应商API get_supplier GET /c/{company_id}/entities/suppliers/{supplier_id} 获取供应商
供应商API list_suppliers GET /c/{company_id}/entities/suppliers 列出供应商
供应商API modify_supplier PUT /c/{company_id}/entities/suppliers/{supplier_id} 修改供应商
税项API create_f24 POST /c/{company_id}/taxes 创建F24
税项API delete_f24 DELETE /c/{company_id}/taxes/{document_id} 删除F24
税项API delete_f24_attachment DELETE /c/{company_id}/taxes/{document_id}/attachment 删除F24附件
税项API get_f24 GET /c/{company_id}/taxes/{document_id} 获取F24
税项API list_f24 GET /c/{company_id}/taxes 列出F24
税项API modify_f24 PUT /c/{company_id}/taxes/{document_id} 修改F24
税项API upload_f24_attachment POST /c/{company_id}/taxes/attachment 上传F24附件
用户API get_user_info GET /user/info 获取用户信息
用户API list_user_companies GET /user/companies 列出用户公司
WebhooksAPI create_webhooks_subscription POST /c/{company_id}/subscriptions 创建Webhooks订阅
WebhooksAPI delete_webhooks_subscription DELETE /c/{company_id}/subscriptions/{subscription_id} 删除Webhooks订阅
WebhooksAPI get_webhooks_subscription GET /c/{company_id}/subscriptions/{subscription_id} 获取Webhooks订阅
WebhooksAPI list_webhooks_subscriptions GET /c/{company_id}/subscriptions 列出Webhooks订阅
WebhooksAPI modify_webhooks_subscription PUT /c/{company_id}/subscriptions/{subscription_id} 修改Webhooks订阅

模型文档

要获取生成的文档,请使用

cargo doc --open

作者

[email protected]

依赖关系

~7-22MB
~306K SLoC