Skip to content
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

octo: update timezone and currency api definition #511

Merged
merged 1 commit into from
Sep 10, 2024
Merged
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions api/cover/user.proto
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ message UserData {
bool isAuth0 = 25;
bool readCostGroupCreationPopup = 26;
bool useNewCostGroupCreationUI = 27;
bool autoTimeZone = 28;
string currency = 29;
}

message MemberUserData {
Expand Down
19 changes: 19 additions & 0 deletions cover/v1/cover.proto
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,14 @@ service Cover {
};
}

// Modify user's currency
rpc UpdateUserCurrency(UpdateUserCurrencyRequest) returns (UpdateUserCurrencyResponse) {
option (google.api.http) = {
put: "/v1/me/currency"
body: "*"
};
}

// Modify attributes
rpc UpdateUserAttributes(UpdateUserAttributesRequest) returns (UpdateUserAttributesResponse) {
option (google.api.http) = {
Expand Down Expand Up @@ -1401,13 +1409,24 @@ message UpdateUserAppThemeResponse {
// Request message for UpdateUserTimezone
message UpdateUserTimezoneRequest {
string timezone = 1;
bool autoTimeZone = 2;
}

// Response message for UpdateUserTimezone
message UpdateUserTimezoneResponse {
api.cover.UserData userData = 1;
}

// Request message for UpdateUserCurrency
message UpdateUserCurrencyRequest {
string currency = 1;
}

// Response message for UpdateUserCurrency
message UpdateUserCurrencyResponse {
api.cover.UserData userData = 1;
}

// Request message for UpdateUserAttributes
message UpdateUserAttributesRequest {
repeated string attributes = 1;
Expand Down
Loading
Loading