#api-client #client #economy #api-bindings #api-version

sbanken

Rust sbanken API客户端

3个版本

0.0.1-alpha.32021年11月7日
0.0.1-alpha.22020年3月4日
0.0.1-alpha.12020年1月7日

#53 in #api-version

AGPL-3.0

120KB
2K SLoC

Rust sbanken API客户端

未提供描述(由Openapi Generator生成 https://github.com/openapitools/openapi-generator

概述

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

  • API版本:2.0
  • 包版本:0.0.1-alpha.2
  • 构建包:org.openapitools.codegen.languages.RustClientCodegen

安装

将包放在您的项目文件夹下的名为sbanken的目录中,并在Cargo.toml中的[dependencies]下添加以下内容:

sbanken = { path = "./sbanken" }

API端点文档

所有URI均相对于 https://https://publicapi.sbanken.no/apibeta

方法 HTTP请求 描述
AccountsApi accounts_list GET /api/v2/Accounts 列出账户。
AccountsApi accounts_read GET /api/v2/Accounts/{accountId} 读取账户
CardsApi cards_list GET /api/v2/Cards 列出卡。
CustomersApi customers_read GET /api/v2/Customers 获取客户数据
EfakturaApi efaktura_list GET /api/v2/Efaktura 列出eFakturas。
EfakturaApi efaktura_list_new GET /api/v2/Efaktura/new 列出尚未由客户处理的eFakturas。这些被视为“新的”。
EfakturaApi efaktura_pay POST /api/v2/Efaktura 支付eFaktura。
EfakturaApi efaktura_read GET /api/v2/Efaktura/{eFakturaId} 读取eFaktura。
MailboxApi mailbox_count_archive_message GET /api/v2/Mailbox/archive/count 统计存档中的消息数量
MailboxApi mailbox_count_inbox_message GET /api/v2/Mailbox/inbox/count 统计收件箱中的消息数量
MailboxApi mailbox_delete_archive DELETE /api/v2/Mailbox/archive/{id} 从存档中删除一条消息
MailboxApi mailbox_delete_inbox DELETE /api/v2/Mailbox/inbox/{id} 从您的收件箱中删除一条消息
MailboxApi mailbox_list_archive GET /api/v2/Mailbox/archive 列出存档中的消息
MailboxApi mailbox_list_inbox GET /api/v2/Mailbox/inbox 列出收件箱中的消息
MailboxApi mailbox_move_to_archive PUT /api/v2/Mailbox/inbox/{id}/move 将一条消息从您的收件箱移至存档
MailboxApi mailbox_move_to_inbox PUT /api/v2/Mailbox/archive/{id}/move 将一条消息从您的存档移至收件箱
MailboxApi mailbox_read_archive GET /api/v2/Mailbox/archive/{id} 阅读存档中的消息。
MailboxApi mailbox_read_archive_attachment GET /api/v2/Mailbox/archive/{messageId}/attachment/{attachmentId} 阅读存档消息的附件。
MailboxApi mailbox_read_inbox GET /api/v2/Mailbox/inbox/{id} 阅读收件箱中的消息
MailboxApi mailbox_read_inbox_attachment GET /api/v2/Mailbox/inbox/{messageId}/attachment/{attachmentId} 阅读收件箱消息的附件。
MailboxApi mailbox_set_read_status_archive PUT /api/v2/Mailbox/archive/{id}/readstatus 将存档中消息的已读/未读状态设置为指定值
MailboxApi mailbox_set_read_status_inbox PUT /api/v2/Mailbox/inbox/{id}/readstatus 将收件箱中消息的已读/未读状态设置为指定值
PaymentsApi payments_list GET /api/v2/Payments/{accountId} 列出支付。这些支付等待处理。支付在到期日处理。
PaymentsApi payments_read GET /api/v2/Payments/{accountId}/{paymentId} 读取一条支付。
StandingOrdersApi standing_orders_list_standing_orders GET /api/v2/StandingOrders/{accountId} 列出重复转账和支付的定期订单。
TransactionsApi transactions_list GET /api/v2/Transactions/{accountId} 获取交易
TransactionsApi transactions_list_archive GET /api/v2/Transactions/archive/{accountId} 获取带有transactionId的归档交易(挪威语:bokført)
TransfersApi transfers_create POST /api/v2/Transfers 此操作在两个账户之间执行转账。

模型文档说明

要获取crate生成的文档的访问权限,请使用

cargo doc --open

作者

依赖关系

~4–15MB
~235K SLoC