Class: Maventa::Company
Constant Summary
collapse
- NETWORKS =
[:visma, :peppol, :nemhandel, :aisproom, :bank, :scan, :inexchange, :vismascanner, :receivables]
- STATUSES =
[:active, :pending, :error]
- SETTING_FIELDS =
[:invoice_notifications, :send_invoice_email, :address, :details, :send_invoice_print, :send_invoice_general, :logos, :email_reports, :billing_details]
Instance Method Summary
collapse
Methods inherited from Resource
#initialize
Instance Method Details
#add_user ⇒ Object
82
83
84
|
# File 'lib/maventa/company.rb', line 82
def add_user
raise "Not implemented"
end
|
#authorize_company ⇒ Object
74
75
76
|
# File 'lib/maventa/company.rb', line 74
def authorize_company
raise "Not implemented"
end
|
#create_network_registration_request ⇒ Object
7
8
9
|
# File 'lib/maventa/company.rb', line 7
def create_network_registration_request
raise "Not implemented"
end
|
#create_notification_subscription ⇒ Object
46
47
48
|
# File 'lib/maventa/company.rb', line 46
def create_notification_subscription
raise "Not implemented"
end
|
#delete_network_registration ⇒ Object
23
24
25
|
# File 'lib/maventa/company.rb', line 23
def delete_network_registration
raise "Not implemented"
end
|
#delete_notification_subscription ⇒ Object
54
55
56
|
# File 'lib/maventa/company.rb', line 54
def delete_notification_subscription
raise "Not implemented"
end
|
#link_vendor_api_key ⇒ Object
70
71
72
|
# File 'lib/maventa/company.rb', line 70
def link_vendor_api_key
raise "Not implemented"
end
|
#list_consumers ⇒ Object
42
43
44
|
# File 'lib/maventa/company.rb', line 42
def list_consumers
raise "Not implemented"
end
|
#list_network_registrations(networks: NETWORKS, statuses: STATUSES) ⇒ Object
11
12
13
14
15
16
17
|
# File 'lib/maventa/company.rb', line 11
def list_network_registrations(networks: NETWORKS, statuses: STATUSES)
params = {
network: networks.map{ |n| n.to_s.upcase},
status: statuses.map{ |s| s.to_s }
}
request(:get, "/v1/company/profiles", params:)
end
|
#list_notification_subscriptions ⇒ Object
50
51
52
|
# File 'lib/maventa/company.rb', line 50
def list_notification_subscriptions
request(:get, "/v1/company/notifications")
end
|
#list_settings(fields: SETTING_FIELDS) ⇒ Object
35
36
37
38
39
40
|
# File 'lib/maventa/company.rb', line 35
def list_settings(fields: SETTING_FIELDS)
params = {
fields: fields.map{ |f| f.to_s }
}
request(:get, "/v1/company/settings", params:)
end
|
#list_users ⇒ Object
86
87
88
|
# File 'lib/maventa/company.rb', line 86
def list_users
request(:get, "/v1/company/users")
end
|
#mark_active ⇒ Object
106
107
108
|
# File 'lib/maventa/company.rb', line 106
def mark_active
raise "Not implemented"
end
|
#remove_user ⇒ Object
98
99
100
|
# File 'lib/maventa/company.rb', line 98
def remove_user
raise "Not implemented"
end
|
#show_authorization_status ⇒ Object
78
79
80
|
# File 'lib/maventa/company.rb', line 78
def show_authorization_status
request(:get, "/v1/company/authorization")
end
|
#show_network_registration ⇒ Object
27
28
29
|
# File 'lib/maventa/company.rb', line 27
def show_network_registration
raise "Not implemented"
end
|
#show_notification_subscription ⇒ Object
58
59
60
|
# File 'lib/maventa/company.rb', line 58
def show_notification_subscription
raise "Not implemented"
end
|
#show_user ⇒ Object
90
91
92
|
# File 'lib/maventa/company.rb', line 90
def show_user
raise "Not implemented"
end
|
#unlink_vendor_api_key ⇒ Object
66
67
68
|
# File 'lib/maventa/company.rb', line 66
def unlink_vendor_api_key
raise "Not implemented"
end
|
#update_network_registration ⇒ Object
19
20
21
|
# File 'lib/maventa/company.rb', line 19
def update_network_registration
raise "Not implemented"
end
|
#update_settings ⇒ Object
31
32
33
|
# File 'lib/maventa/company.rb', line 31
def update_settings
raise "Not implemented"
end
|
#update_user ⇒ Object
94
95
96
|
# File 'lib/maventa/company.rb', line 94
def update_user
raise "Not implemented"
end
|
#update_user_role ⇒ Object
102
103
104
|
# File 'lib/maventa/company.rb', line 102
def update_user_role
raise "Not implemented"
end
|
#vendor_api_key_status ⇒ Object
62
63
64
|
# File 'lib/maventa/company.rb', line 62
def vendor_api_key_status
request(:get, "/v1/company/vendors")
end
|