Skip to content

Update scopes enum #320

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 20, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions FortnoxSDK/Auth/Scope.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,22 @@ namespace Fortnox.SDK.Auth;
/// to the user in the consent screen, and the access token issued to the
/// connection will be limited to the scopes granted.
///
/// See https://developer.fortnox.se/general/scopes/
/// See https://www.fortnox.se/developer/guides-and-good-to-know/scopes
/// </summary>
public enum Scope
{
[EnumMember(Value = "archive")]
Archive,
[EnumMember(Value = "article")]
Article,
[Obsolete("Not listed in https://developer.fortnox.se/general/scopes/")]
[Obsolete("Not listed in https://www.fortnox.se/developer/guides-and-good-to-know/scopes")]
[EnumMember(Value = "assets")]
Assets,
[EnumMember(Value = "bookkeeping")]
Bookkeeping,
[EnumMember(Value = "companyinformation")]
CompanyInformation,
[Obsolete("Not listed in https://developer.fortnox.se/general/scopes/")]
[Obsolete("Not listed in https://www.fortnox.se/developer/guides-and-good-to-know/scopes")]
[EnumMember(Value = "companylogo")]
CompanyLogo,
[EnumMember(Value = "connectfile")]
Expand All @@ -38,15 +38,14 @@ public enum Scope
Currency,
[EnumMember(Value = "customer")]
Customer,
[Obsolete("Not listed in https://developer.fortnox.se/general/scopes/")]
[Obsolete("Not listed in https://www.fortnox.se/developer/guides-and-good-to-know/scopes")]
[EnumMember(Value = "deletevoucher")]
DeleteVoucher,
[EnumMember(Value = "inbox")]
Inbox,
[EnumMember(Value = "invoice")]
Invoice,
[Obsolete("Not listed in https://developer.fortnox.se/general/scopes/")]
[EnumMember(Value = "noxfinanceinvoice")]
[EnumMember(Value = "noxfinansinvoice")]
NoxFinanceInvoice,
[EnumMember(Value = "offer")]
Offer,
Expand All @@ -70,10 +69,12 @@ public enum Scope
Supplier,
[EnumMember(Value = "supplierinvoice")]
SupplierInvoice,
[Obsolete("Not listed in https://developer.fortnox.se/general/scopes/")]
[EnumMember(Value = "timereporting")]
TimeReporting,
[Obsolete("Not listed in https://www.fortnox.se/developer/guides-and-good-to-know/scopes")]
[EnumMember(Value = "warehouse")]
Warehouse,
[Obsolete("Not listed in https://developer.fortnox.se/general/scopes/")]
[Obsolete("Not listed in https://www.fortnox.se/developer/guides-and-good-to-know/scopes")]
[EnumMember(Value = "warehousecustomdocument")]
WarehouseCustomDocument
}
Loading