nordlet 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/nordlet/account/client.rb +260 -0
- data/lib/nordlet/account/types/post_v1account_consent_accept_request.rb +13 -0
- data/lib/nordlet/account/types/post_v1account_consent_accept_response.rb +23 -0
- data/lib/nordlet/account/types/post_v1account_delete_request.rb +11 -0
- data/lib/nordlet/account/types/post_v1account_delete_response.rb +11 -0
- data/lib/nordlet/account/types/post_v1account_email_change_request_request.rb +13 -0
- data/lib/nordlet/account/types/post_v1account_email_change_request_request_locale.rb +15 -0
- data/lib/nordlet/account/types/post_v1account_email_change_request_response.rb +11 -0
- data/lib/nordlet/account/types/post_v1account_export_request.rb +9 -0
- data/lib/nordlet/account/types/post_v1account_export_response.rb +25 -0
- data/lib/nordlet/account/types/post_v1account_export_response_audit_entries_item.rb +21 -0
- data/lib/nordlet/account/types/post_v1account_export_response_billing.rb +19 -0
- data/lib/nordlet/account/types/post_v1account_export_response_consent.rb +23 -0
- data/lib/nordlet/account/types/post_v1account_export_response_credit_transactions_item.rb +21 -0
- data/lib/nordlet/account/types/post_v1account_export_response_memberships_item.rb +17 -0
- data/lib/nordlet/account/types/post_v1account_export_response_sessions_item.rb +19 -0
- data/lib/nordlet/account/types/post_v1account_export_response_user.rb +21 -0
- data/lib/nordlet/account/types/post_v1account_invites_accept_request.rb +4 -0
- data/lib/nordlet/account/types/post_v1account_login_link_request_request.rb +4 -0
- data/lib/nordlet/account/types/post_v1account_me_response.rb +2 -0
- data/lib/nordlet/account/types/post_v1account_me_response_consent.rb +23 -0
- data/lib/nordlet/account/types/post_v1account_profile_update_request.rb +11 -0
- data/lib/nordlet/account/types/post_v1account_profile_update_response.rb +15 -0
- data/lib/nordlet/account/types/post_v1account_sessions_list_request.rb +9 -0
- data/lib/nordlet/account/types/post_v1account_sessions_list_response.rb +11 -0
- data/lib/nordlet/account/types/post_v1account_sessions_list_response_rows_item.rb +19 -0
- data/lib/nordlet/account/types/post_v1account_sessions_revoke_others_request.rb +9 -0
- data/lib/nordlet/account/types/post_v1account_sessions_revoke_others_response.rb +11 -0
- data/lib/nordlet/account/types/post_v1account_sessions_revoke_request.rb +11 -0
- data/lib/nordlet/account/types/post_v1account_sessions_revoke_response.rb +11 -0
- data/lib/nordlet/hr/client.rb +68 -0
- data/lib/nordlet/hr/types/post_v1hr_employees_anonymize_request.rb +11 -0
- data/lib/nordlet/hr/types/post_v1hr_employees_anonymize_response.rb +49 -0
- data/lib/nordlet/hr/types/post_v1hr_employees_anonymize_response_address.rb +17 -0
- data/lib/nordlet/hr/types/post_v1hr_employees_anonymize_response_status.rb +14 -0
- data/lib/nordlet/hr/types/post_v1hr_employees_delete_request.rb +11 -0
- data/lib/nordlet/hr/types/post_v1hr_employees_delete_response.rb +11 -0
- data/lib/nordlet/partners/client.rb +36 -0
- data/lib/nordlet/partners/types/post_v1partners_anonymize_request.rb +11 -0
- data/lib/nordlet/partners/types/post_v1partners_anonymize_response.rb +13 -0
- data/lib/nordlet/version.rb +1 -1
- data/lib/nordlet.rb +34 -0
- data/reference.md +597 -0
- metadata +35 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d91dbbbcc44bd3470a2831236b9076f78d569493f01249bd1398afe76a8f149c
|
|
4
|
+
data.tar.gz: 5588b63602649a30c9c77360eb92a85803f8e8aae6feaa68be784e68b8739bfe
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 491c672f419e1c15517e72a63116a6483b2baccc250390e5b1624b12d1a6716cc5f171734db22845e38ea6bcbf6002712943c2b8ad82fbc3e12b70f2be1f25cf
|
|
7
|
+
data.tar.gz: ed5a4452f7b2fde5118fd6a54c41a7e2d0d057c799425c0fb56b31a65f4cea92e9fe2fd0bbb74d31867e7dd89c774a2b252b4c1f116eb305f2f96ee6974bb485
|
|
@@ -745,6 +745,266 @@ module Nordlet
|
|
|
745
745
|
raise error_class.new(response.body, code: code)
|
|
746
746
|
end
|
|
747
747
|
end
|
|
748
|
+
|
|
749
|
+
# @param request_options [Hash]
|
|
750
|
+
# @param params [Nordlet::Account::Types::PostV1AccountConsentAcceptRequest]
|
|
751
|
+
# @option request_options [String] :base_url
|
|
752
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
753
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
754
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
755
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
756
|
+
#
|
|
757
|
+
# @return [Nordlet::Account::Types::PostV1AccountConsentAcceptResponse]
|
|
758
|
+
def post_v1account_consent_accept(request_options: {}, **params)
|
|
759
|
+
params = Nordlet::Internal::Types::Utils.normalize_keys(params)
|
|
760
|
+
request = Nordlet::Internal::JSON::Request.new(
|
|
761
|
+
base_url: request_options[:base_url],
|
|
762
|
+
method: "POST",
|
|
763
|
+
path: "v1/account/consent/accept",
|
|
764
|
+
body: Nordlet::Account::Types::PostV1AccountConsentAcceptRequest.new(params).to_h,
|
|
765
|
+
request_options: request_options
|
|
766
|
+
)
|
|
767
|
+
begin
|
|
768
|
+
response = @client.send(request)
|
|
769
|
+
rescue Net::HTTPRequestTimeout
|
|
770
|
+
raise Nordlet::Errors::TimeoutError
|
|
771
|
+
end
|
|
772
|
+
code = response.code.to_i
|
|
773
|
+
if code.between?(200, 299)
|
|
774
|
+
Nordlet::Account::Types::PostV1AccountConsentAcceptResponse.load(response.body)
|
|
775
|
+
else
|
|
776
|
+
error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
|
|
777
|
+
raise error_class.new(response.body, code: code)
|
|
778
|
+
end
|
|
779
|
+
end
|
|
780
|
+
|
|
781
|
+
# @param request_options [Hash]
|
|
782
|
+
# @param params [Nordlet::Account::Types::PostV1AccountProfileUpdateRequest]
|
|
783
|
+
# @option request_options [String] :base_url
|
|
784
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
785
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
786
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
787
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
788
|
+
#
|
|
789
|
+
# @return [Nordlet::Account::Types::PostV1AccountProfileUpdateResponse]
|
|
790
|
+
def post_v1account_profile_update(request_options: {}, **params)
|
|
791
|
+
params = Nordlet::Internal::Types::Utils.normalize_keys(params)
|
|
792
|
+
request = Nordlet::Internal::JSON::Request.new(
|
|
793
|
+
base_url: request_options[:base_url],
|
|
794
|
+
method: "POST",
|
|
795
|
+
path: "v1/account/profile/update",
|
|
796
|
+
body: Nordlet::Account::Types::PostV1AccountProfileUpdateRequest.new(params).to_h,
|
|
797
|
+
request_options: request_options
|
|
798
|
+
)
|
|
799
|
+
begin
|
|
800
|
+
response = @client.send(request)
|
|
801
|
+
rescue Net::HTTPRequestTimeout
|
|
802
|
+
raise Nordlet::Errors::TimeoutError
|
|
803
|
+
end
|
|
804
|
+
code = response.code.to_i
|
|
805
|
+
if code.between?(200, 299)
|
|
806
|
+
Nordlet::Account::Types::PostV1AccountProfileUpdateResponse.load(response.body)
|
|
807
|
+
else
|
|
808
|
+
error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
|
|
809
|
+
raise error_class.new(response.body, code: code)
|
|
810
|
+
end
|
|
811
|
+
end
|
|
812
|
+
|
|
813
|
+
# @param request_options [Hash]
|
|
814
|
+
# @param params [Nordlet::Account::Types::PostV1AccountEmailChangeRequestRequest]
|
|
815
|
+
# @option request_options [String] :base_url
|
|
816
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
817
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
818
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
819
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
820
|
+
#
|
|
821
|
+
# @return [Nordlet::Account::Types::PostV1AccountEmailChangeRequestResponse]
|
|
822
|
+
def post_v1account_email_change_request(request_options: {}, **params)
|
|
823
|
+
params = Nordlet::Internal::Types::Utils.normalize_keys(params)
|
|
824
|
+
request = Nordlet::Internal::JSON::Request.new(
|
|
825
|
+
base_url: request_options[:base_url],
|
|
826
|
+
method: "POST",
|
|
827
|
+
path: "v1/account/email/change-request",
|
|
828
|
+
body: Nordlet::Account::Types::PostV1AccountEmailChangeRequestRequest.new(params).to_h,
|
|
829
|
+
request_options: request_options
|
|
830
|
+
)
|
|
831
|
+
begin
|
|
832
|
+
response = @client.send(request)
|
|
833
|
+
rescue Net::HTTPRequestTimeout
|
|
834
|
+
raise Nordlet::Errors::TimeoutError
|
|
835
|
+
end
|
|
836
|
+
code = response.code.to_i
|
|
837
|
+
if code.between?(200, 299)
|
|
838
|
+
Nordlet::Account::Types::PostV1AccountEmailChangeRequestResponse.load(response.body)
|
|
839
|
+
else
|
|
840
|
+
error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
|
|
841
|
+
raise error_class.new(response.body, code: code)
|
|
842
|
+
end
|
|
843
|
+
end
|
|
844
|
+
|
|
845
|
+
# @param request_options [Hash]
|
|
846
|
+
# @param params [Nordlet::Account::Types::PostV1AccountSessionsListRequest]
|
|
847
|
+
# @option request_options [String] :base_url
|
|
848
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
849
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
850
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
851
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
852
|
+
#
|
|
853
|
+
# @return [Nordlet::Account::Types::PostV1AccountSessionsListResponse]
|
|
854
|
+
def post_v1account_sessions_list(request_options: {}, **params)
|
|
855
|
+
params = Nordlet::Internal::Types::Utils.normalize_keys(params)
|
|
856
|
+
request = Nordlet::Internal::JSON::Request.new(
|
|
857
|
+
base_url: request_options[:base_url],
|
|
858
|
+
method: "POST",
|
|
859
|
+
path: "v1/account/sessions/list",
|
|
860
|
+
body: Nordlet::Account::Types::PostV1AccountSessionsListRequest.new(params).to_h,
|
|
861
|
+
request_options: request_options
|
|
862
|
+
)
|
|
863
|
+
begin
|
|
864
|
+
response = @client.send(request)
|
|
865
|
+
rescue Net::HTTPRequestTimeout
|
|
866
|
+
raise Nordlet::Errors::TimeoutError
|
|
867
|
+
end
|
|
868
|
+
code = response.code.to_i
|
|
869
|
+
if code.between?(200, 299)
|
|
870
|
+
Nordlet::Account::Types::PostV1AccountSessionsListResponse.load(response.body)
|
|
871
|
+
else
|
|
872
|
+
error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
|
|
873
|
+
raise error_class.new(response.body, code: code)
|
|
874
|
+
end
|
|
875
|
+
end
|
|
876
|
+
|
|
877
|
+
# @param request_options [Hash]
|
|
878
|
+
# @param params [Nordlet::Account::Types::PostV1AccountSessionsRevokeRequest]
|
|
879
|
+
# @option request_options [String] :base_url
|
|
880
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
881
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
882
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
883
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
884
|
+
#
|
|
885
|
+
# @return [Nordlet::Account::Types::PostV1AccountSessionsRevokeResponse]
|
|
886
|
+
def post_v1account_sessions_revoke(request_options: {}, **params)
|
|
887
|
+
params = Nordlet::Internal::Types::Utils.normalize_keys(params)
|
|
888
|
+
request = Nordlet::Internal::JSON::Request.new(
|
|
889
|
+
base_url: request_options[:base_url],
|
|
890
|
+
method: "POST",
|
|
891
|
+
path: "v1/account/sessions/revoke",
|
|
892
|
+
body: Nordlet::Account::Types::PostV1AccountSessionsRevokeRequest.new(params).to_h,
|
|
893
|
+
request_options: request_options
|
|
894
|
+
)
|
|
895
|
+
begin
|
|
896
|
+
response = @client.send(request)
|
|
897
|
+
rescue Net::HTTPRequestTimeout
|
|
898
|
+
raise Nordlet::Errors::TimeoutError
|
|
899
|
+
end
|
|
900
|
+
code = response.code.to_i
|
|
901
|
+
if code.between?(200, 299)
|
|
902
|
+
Nordlet::Account::Types::PostV1AccountSessionsRevokeResponse.load(response.body)
|
|
903
|
+
else
|
|
904
|
+
error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
|
|
905
|
+
raise error_class.new(response.body, code: code)
|
|
906
|
+
end
|
|
907
|
+
end
|
|
908
|
+
|
|
909
|
+
# @param request_options [Hash]
|
|
910
|
+
# @param params [Nordlet::Account::Types::PostV1AccountSessionsRevokeOthersRequest]
|
|
911
|
+
# @option request_options [String] :base_url
|
|
912
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
913
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
914
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
915
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
916
|
+
#
|
|
917
|
+
# @return [Nordlet::Account::Types::PostV1AccountSessionsRevokeOthersResponse]
|
|
918
|
+
def post_v1account_sessions_revoke_others(request_options: {}, **params)
|
|
919
|
+
params = Nordlet::Internal::Types::Utils.normalize_keys(params)
|
|
920
|
+
request = Nordlet::Internal::JSON::Request.new(
|
|
921
|
+
base_url: request_options[:base_url],
|
|
922
|
+
method: "POST",
|
|
923
|
+
path: "v1/account/sessions/revoke-others",
|
|
924
|
+
body: Nordlet::Account::Types::PostV1AccountSessionsRevokeOthersRequest.new(params).to_h,
|
|
925
|
+
request_options: request_options
|
|
926
|
+
)
|
|
927
|
+
begin
|
|
928
|
+
response = @client.send(request)
|
|
929
|
+
rescue Net::HTTPRequestTimeout
|
|
930
|
+
raise Nordlet::Errors::TimeoutError
|
|
931
|
+
end
|
|
932
|
+
code = response.code.to_i
|
|
933
|
+
if code.between?(200, 299)
|
|
934
|
+
Nordlet::Account::Types::PostV1AccountSessionsRevokeOthersResponse.load(response.body)
|
|
935
|
+
else
|
|
936
|
+
error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
|
|
937
|
+
raise error_class.new(response.body, code: code)
|
|
938
|
+
end
|
|
939
|
+
end
|
|
940
|
+
|
|
941
|
+
# @param request_options [Hash]
|
|
942
|
+
# @param params [Nordlet::Account::Types::PostV1AccountExportRequest]
|
|
943
|
+
# @option request_options [String] :base_url
|
|
944
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
945
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
946
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
947
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
948
|
+
#
|
|
949
|
+
# @return [Nordlet::Account::Types::PostV1AccountExportResponse]
|
|
950
|
+
def download_everything_nordlet_stores_about_the_signed_in_user(request_options: {}, **params)
|
|
951
|
+
params = Nordlet::Internal::Types::Utils.normalize_keys(params)
|
|
952
|
+
request = Nordlet::Internal::JSON::Request.new(
|
|
953
|
+
base_url: request_options[:base_url],
|
|
954
|
+
method: "POST",
|
|
955
|
+
path: "v1/account/export",
|
|
956
|
+
body: Nordlet::Account::Types::PostV1AccountExportRequest.new(params).to_h,
|
|
957
|
+
request_options: request_options
|
|
958
|
+
)
|
|
959
|
+
begin
|
|
960
|
+
response = @client.send(request)
|
|
961
|
+
rescue Net::HTTPRequestTimeout
|
|
962
|
+
raise Nordlet::Errors::TimeoutError
|
|
963
|
+
end
|
|
964
|
+
code = response.code.to_i
|
|
965
|
+
if code.between?(200, 299)
|
|
966
|
+
Nordlet::Account::Types::PostV1AccountExportResponse.load(response.body)
|
|
967
|
+
else
|
|
968
|
+
error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
|
|
969
|
+
raise error_class.new(response.body, code: code)
|
|
970
|
+
end
|
|
971
|
+
end
|
|
972
|
+
|
|
973
|
+
# Removes the user: sessions, sign-in links, memberships and pending invitations are deleted at once; the email
|
|
974
|
+
# and name are replaced by an anonymous placeholder immediately and the remaining row is removed after 30 days.
|
|
975
|
+
# Refused while the user still owns or pays for a company that is not deleted.
|
|
976
|
+
#
|
|
977
|
+
# @param request_options [Hash]
|
|
978
|
+
# @param params [Nordlet::Account::Types::PostV1AccountDeleteRequest]
|
|
979
|
+
# @option request_options [String] :base_url
|
|
980
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
981
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
982
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
983
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
984
|
+
#
|
|
985
|
+
# @return [Nordlet::Account::Types::PostV1AccountDeleteResponse]
|
|
986
|
+
def delete_the_signed_in_user_account(request_options: {}, **params)
|
|
987
|
+
params = Nordlet::Internal::Types::Utils.normalize_keys(params)
|
|
988
|
+
request = Nordlet::Internal::JSON::Request.new(
|
|
989
|
+
base_url: request_options[:base_url],
|
|
990
|
+
method: "POST",
|
|
991
|
+
path: "v1/account/delete",
|
|
992
|
+
body: Nordlet::Account::Types::PostV1AccountDeleteRequest.new(params).to_h,
|
|
993
|
+
request_options: request_options
|
|
994
|
+
)
|
|
995
|
+
begin
|
|
996
|
+
response = @client.send(request)
|
|
997
|
+
rescue Net::HTTPRequestTimeout
|
|
998
|
+
raise Nordlet::Errors::TimeoutError
|
|
999
|
+
end
|
|
1000
|
+
code = response.code.to_i
|
|
1001
|
+
if code.between?(200, 299)
|
|
1002
|
+
Nordlet::Account::Types::PostV1AccountDeleteResponse.load(response.body)
|
|
1003
|
+
else
|
|
1004
|
+
error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
|
|
1005
|
+
raise error_class.new(response.body, code: code)
|
|
1006
|
+
end
|
|
1007
|
+
end
|
|
748
1008
|
end
|
|
749
1009
|
end
|
|
750
1010
|
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Account
|
|
5
|
+
module Types
|
|
6
|
+
class PostV1AccountConsentAcceptRequest < Internal::Types::Model
|
|
7
|
+
field :accept_terms, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "acceptTerms"
|
|
8
|
+
|
|
9
|
+
field :accept_dpa, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "acceptDpa"
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Account
|
|
5
|
+
module Types
|
|
6
|
+
class PostV1AccountConsentAcceptResponse < Internal::Types::Model
|
|
7
|
+
field :terms_version, -> { String }, optional: false, nullable: true, api_name: "termsVersion"
|
|
8
|
+
|
|
9
|
+
field :terms_accepted_at, -> { String }, optional: false, nullable: true, api_name: "termsAcceptedAt"
|
|
10
|
+
|
|
11
|
+
field :dpa_version, -> { String }, optional: false, nullable: true, api_name: "dpaVersion"
|
|
12
|
+
|
|
13
|
+
field :dpa_accepted_at, -> { String }, optional: false, nullable: true, api_name: "dpaAcceptedAt"
|
|
14
|
+
|
|
15
|
+
field :current_terms_version, -> { String }, optional: false, nullable: false, api_name: "currentTermsVersion"
|
|
16
|
+
|
|
17
|
+
field :current_dpa_version, -> { String }, optional: false, nullable: false, api_name: "currentDpaVersion"
|
|
18
|
+
|
|
19
|
+
field :required, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Account
|
|
5
|
+
module Types
|
|
6
|
+
class PostV1AccountDeleteRequest < Internal::Types::Model
|
|
7
|
+
field :confirm_email, -> { String }, optional: false, nullable: false, api_name: "confirmEmail"
|
|
8
|
+
end
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Account
|
|
5
|
+
module Types
|
|
6
|
+
class PostV1AccountEmailChangeRequestRequest < Internal::Types::Model
|
|
7
|
+
field :new_email, -> { String }, optional: false, nullable: false, api_name: "newEmail"
|
|
8
|
+
|
|
9
|
+
field :locale, -> { Nordlet::Account::Types::PostV1AccountEmailChangeRequestRequestLocale }, optional: true, nullable: false
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Account
|
|
5
|
+
module Types
|
|
6
|
+
class PostV1AccountEmailChangeRequestResponse < Internal::Types::Model
|
|
7
|
+
field :sent, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
8
|
+
end
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Account
|
|
5
|
+
module Types
|
|
6
|
+
class PostV1AccountExportResponse < Internal::Types::Model
|
|
7
|
+
field :generated_at, -> { String }, optional: false, nullable: false, api_name: "generatedAt"
|
|
8
|
+
|
|
9
|
+
field :user, -> { Nordlet::Account::Types::PostV1AccountExportResponseUser }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :consent, -> { Nordlet::Account::Types::PostV1AccountExportResponseConsent }, optional: false, nullable: false
|
|
12
|
+
|
|
13
|
+
field :memberships, -> { Internal::Types::Array[Nordlet::Account::Types::PostV1AccountExportResponseMembershipsItem] }, optional: false, nullable: false
|
|
14
|
+
|
|
15
|
+
field :sessions, -> { Internal::Types::Array[Nordlet::Account::Types::PostV1AccountExportResponseSessionsItem] }, optional: false, nullable: false
|
|
16
|
+
|
|
17
|
+
field :billing, -> { Nordlet::Account::Types::PostV1AccountExportResponseBilling }, optional: false, nullable: true
|
|
18
|
+
|
|
19
|
+
field :credit_transactions, -> { Internal::Types::Array[Nordlet::Account::Types::PostV1AccountExportResponseCreditTransactionsItem] }, optional: false, nullable: false, api_name: "creditTransactions"
|
|
20
|
+
|
|
21
|
+
field :audit_entries, -> { Internal::Types::Array[Nordlet::Account::Types::PostV1AccountExportResponseAuditEntriesItem] }, optional: false, nullable: false, api_name: "auditEntries"
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Account
|
|
5
|
+
module Types
|
|
6
|
+
class PostV1AccountExportResponseAuditEntriesItem < Internal::Types::Model
|
|
7
|
+
field :id, -> { Integer }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :company_id, -> { String }, optional: false, nullable: false, api_name: "companyId"
|
|
10
|
+
|
|
11
|
+
field :action, -> { String }, optional: false, nullable: false
|
|
12
|
+
|
|
13
|
+
field :entity, -> { String }, optional: false, nullable: false
|
|
14
|
+
|
|
15
|
+
field :entity_id, -> { String }, optional: false, nullable: true, api_name: "entityId"
|
|
16
|
+
|
|
17
|
+
field :created_at, -> { String }, optional: false, nullable: false, api_name: "createdAt"
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Account
|
|
5
|
+
module Types
|
|
6
|
+
class PostV1AccountExportResponseBilling < Internal::Types::Model
|
|
7
|
+
field :status, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :plan, -> { String }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :balance_cents, -> { Integer }, optional: false, nullable: false, api_name: "balanceCents"
|
|
12
|
+
|
|
13
|
+
field :trial_ends_at, -> { String }, optional: false, nullable: true, api_name: "trialEndsAt"
|
|
14
|
+
|
|
15
|
+
field :first_top_up_at, -> { String }, optional: false, nullable: true, api_name: "firstTopUpAt"
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Account
|
|
5
|
+
module Types
|
|
6
|
+
class PostV1AccountExportResponseConsent < Internal::Types::Model
|
|
7
|
+
field :terms_version, -> { String }, optional: false, nullable: true, api_name: "termsVersion"
|
|
8
|
+
|
|
9
|
+
field :terms_accepted_at, -> { String }, optional: false, nullable: true, api_name: "termsAcceptedAt"
|
|
10
|
+
|
|
11
|
+
field :dpa_version, -> { String }, optional: false, nullable: true, api_name: "dpaVersion"
|
|
12
|
+
|
|
13
|
+
field :dpa_accepted_at, -> { String }, optional: false, nullable: true, api_name: "dpaAcceptedAt"
|
|
14
|
+
|
|
15
|
+
field :current_terms_version, -> { String }, optional: false, nullable: false, api_name: "currentTermsVersion"
|
|
16
|
+
|
|
17
|
+
field :current_dpa_version, -> { String }, optional: false, nullable: false, api_name: "currentDpaVersion"
|
|
18
|
+
|
|
19
|
+
field :required, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Account
|
|
5
|
+
module Types
|
|
6
|
+
class PostV1AccountExportResponseCreditTransactionsItem < Internal::Types::Model
|
|
7
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :type, -> { String }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :amount_cents, -> { Integer }, optional: false, nullable: false, api_name: "amountCents"
|
|
12
|
+
|
|
13
|
+
field :balance_after_cents, -> { Integer }, optional: false, nullable: false, api_name: "balanceAfterCents"
|
|
14
|
+
|
|
15
|
+
field :description, -> { String }, optional: false, nullable: false
|
|
16
|
+
|
|
17
|
+
field :created_at, -> { String }, optional: false, nullable: false, api_name: "createdAt"
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Account
|
|
5
|
+
module Types
|
|
6
|
+
class PostV1AccountExportResponseMembershipsItem < Internal::Types::Model
|
|
7
|
+
field :company_id, -> { String }, optional: false, nullable: false, api_name: "companyId"
|
|
8
|
+
|
|
9
|
+
field :company_name, -> { String }, optional: false, nullable: false, api_name: "companyName"
|
|
10
|
+
|
|
11
|
+
field :role, -> { String }, optional: false, nullable: false
|
|
12
|
+
|
|
13
|
+
field :since, -> { String }, optional: false, nullable: false
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Account
|
|
5
|
+
module Types
|
|
6
|
+
class PostV1AccountExportResponseSessionsItem < Internal::Types::Model
|
|
7
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :company_id, -> { String }, optional: false, nullable: true, api_name: "companyId"
|
|
10
|
+
|
|
11
|
+
field :created_at, -> { String }, optional: false, nullable: false, api_name: "createdAt"
|
|
12
|
+
|
|
13
|
+
field :expires_at, -> { String }, optional: false, nullable: false, api_name: "expiresAt"
|
|
14
|
+
|
|
15
|
+
field :current, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Account
|
|
5
|
+
module Types
|
|
6
|
+
class PostV1AccountExportResponseUser < Internal::Types::Model
|
|
7
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :email, -> { String }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :name, -> { String }, optional: false, nullable: true
|
|
12
|
+
|
|
13
|
+
field :locale, -> { String }, optional: false, nullable: false
|
|
14
|
+
|
|
15
|
+
field :plan, -> { String }, optional: false, nullable: false
|
|
16
|
+
|
|
17
|
+
field :created_at, -> { String }, optional: false, nullable: false, api_name: "createdAt"
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -9,6 +9,10 @@ module Nordlet
|
|
|
9
9
|
field :name, -> { String }, optional: true, nullable: false
|
|
10
10
|
|
|
11
11
|
field :locale, -> { Nordlet::Account::Types::PostV1AccountInvitesAcceptRequestLocale }, optional: true, nullable: false
|
|
12
|
+
|
|
13
|
+
field :accept_terms, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "acceptTerms"
|
|
14
|
+
|
|
15
|
+
field :accept_dpa, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "acceptDpa"
|
|
12
16
|
end
|
|
13
17
|
end
|
|
14
18
|
end
|
|
@@ -7,6 +7,10 @@ module Nordlet
|
|
|
7
7
|
field :email, -> { String }, optional: false, nullable: false
|
|
8
8
|
|
|
9
9
|
field :locale, -> { Nordlet::Account::Types::PostV1AccountLoginLinkRequestRequestLocale }, optional: true, nullable: false
|
|
10
|
+
|
|
11
|
+
field :accept_terms, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "acceptTerms"
|
|
12
|
+
|
|
13
|
+
field :accept_dpa, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "acceptDpa"
|
|
10
14
|
end
|
|
11
15
|
end
|
|
12
16
|
end
|
|
@@ -14,6 +14,8 @@ module Nordlet
|
|
|
14
14
|
|
|
15
15
|
field :billing, -> { Nordlet::Account::Types::PostV1AccountMeResponseBilling }, optional: false, nullable: false
|
|
16
16
|
|
|
17
|
+
field :consent, -> { Nordlet::Account::Types::PostV1AccountMeResponseConsent }, optional: false, nullable: false
|
|
18
|
+
|
|
17
19
|
field :companies, -> { Internal::Types::Array[Nordlet::Account::Types::PostV1AccountMeResponseCompaniesItem] }, optional: false, nullable: false
|
|
18
20
|
end
|
|
19
21
|
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Account
|
|
5
|
+
module Types
|
|
6
|
+
class PostV1AccountMeResponseConsent < Internal::Types::Model
|
|
7
|
+
field :terms_version, -> { String }, optional: false, nullable: true, api_name: "termsVersion"
|
|
8
|
+
|
|
9
|
+
field :terms_accepted_at, -> { String }, optional: false, nullable: true, api_name: "termsAcceptedAt"
|
|
10
|
+
|
|
11
|
+
field :dpa_version, -> { String }, optional: false, nullable: true, api_name: "dpaVersion"
|
|
12
|
+
|
|
13
|
+
field :dpa_accepted_at, -> { String }, optional: false, nullable: true, api_name: "dpaAcceptedAt"
|
|
14
|
+
|
|
15
|
+
field :current_terms_version, -> { String }, optional: false, nullable: false, api_name: "currentTermsVersion"
|
|
16
|
+
|
|
17
|
+
field :current_dpa_version, -> { String }, optional: false, nullable: false, api_name: "currentDpaVersion"
|
|
18
|
+
|
|
19
|
+
field :required, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Account
|
|
5
|
+
module Types
|
|
6
|
+
class PostV1AccountProfileUpdateResponse < Internal::Types::Model
|
|
7
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :email, -> { String }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :name, -> { String }, optional: false, nullable: true
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|