Module: Portal1C::Rest
Constant Summary
Constants included from Connection
Instance Method Summary collapse
- #billing_report(body) ⇒ Object
- #check_industry_by_login(login_list) ⇒ Object
- #check_industry_by_reg_num(reg_number_list) ⇒ Object
- #check_industry_by_subscriber_code(subscriber_code_list) ⇒ Object
- #check_its_by_login(login_list) ⇒ Object
- #check_its_by_reg_num(reg_number_list) ⇒ Object
- #check_its_by_subscriber_code(subscriber_code_list) ⇒ Object
- #client_program_access_by_login(login:) ⇒ Object
- #client_program_access_by_reg_number(reg_number:) ⇒ Object
- #get_billing_report(report_id) ⇒ Object
- #get_nomencluture_by_reg_numbers(reg_number_list) ⇒ Object
- #program_versions(cursor:, nick:) ⇒ Object
- #programs ⇒ Object
- #subscriber(body) ⇒ Object
Methods included from Request
Methods included from Connection
Instance Method Details
#billing_report(body) ⇒ Object
39 40 41 42 43 44 45 |
# File 'lib/portal_1c/rest.rb', line 39 def billing_report(body) post( 'api/rest/public/option/billing-report', self, body ) end |
#check_industry_by_login(login_list) ⇒ Object
70 71 72 73 74 75 76 |
# File 'lib/portal_1c/rest.rb', line 70 def check_industry_by_login(login_list) post( 'api/rest/public/industry/checkByLogin', self, { loginList: login_list } ) end |
#check_industry_by_reg_num(reg_number_list) ⇒ Object
62 63 64 65 66 67 68 |
# File 'lib/portal_1c/rest.rb', line 62 def check_industry_by_reg_num(reg_number_list) post( 'api/rest/public/industry/checkByRegNum', self, { regNumberList: reg_number_list } ) end |
#check_industry_by_subscriber_code(subscriber_code_list) ⇒ Object
54 55 56 57 58 59 60 |
# File 'lib/portal_1c/rest.rb', line 54 def check_industry_by_subscriber_code(subscriber_code_list) post( 'api/rest/public/industry/checkIndustryBySubscriberCode', self, { subscriberCodeList: subscriber_code_list } ) end |
#check_its_by_login(login_list) ⇒ Object
23 24 25 26 27 28 29 |
# File 'lib/portal_1c/rest.rb', line 23 def check_its_by_login(login_list) post( 'api/rest/public/subscription/checkItsByLogin', self, { loginList: login_list } ) end |
#check_its_by_reg_num(reg_number_list) ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/portal_1c/rest.rb', line 15 def check_its_by_reg_num(reg_number_list) post( 'api/rest/public/subscription/checkItsByRegNum', self, { regNumberList: reg_number_list } ) end |
#check_its_by_subscriber_code(subscriber_code_list) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/portal_1c/rest.rb', line 7 def check_its_by_subscriber_code(subscriber_code_list) post( 'api/rest/public/subscription/checkItsBySubscriberCode', self, { subscriberCodeList: subscriber_code_list } ) end |
#client_program_access_by_login(login:) ⇒ Object
109 110 111 112 113 114 115 |
# File 'lib/portal_1c/rest.rb', line 109 def client_program_access_by_login(login:) post( 'api/client-program-access/search/login', self, { login: login } ) end |
#client_program_access_by_reg_number(reg_number:) ⇒ Object
101 102 103 104 105 106 107 |
# File 'lib/portal_1c/rest.rb', line 101 def client_program_access_by_reg_number(reg_number:) post( 'api/client-program-access/search/reg-number', self, { regNumber: reg_number } ) end |
#get_billing_report(report_id) ⇒ Object
47 48 49 50 51 52 |
# File 'lib/portal_1c/rest.rb', line 47 def get_billing_report(report_id) get( "api/rest/public/option/billing-report/#{report_id}", self ) end |
#get_nomencluture_by_reg_numbers(reg_number_list) ⇒ Object
93 94 95 96 97 98 99 |
# File 'lib/portal_1c/rest.rb', line 93 def get_nomencluture_by_reg_numbers(reg_number_list) post( 'api/nomenclature/getByRegNumbers', self, reg_number_list ) end |
#program_versions(cursor:, nick:) ⇒ Object
78 79 80 81 82 83 84 |
# File 'lib/portal_1c/rest.rb', line 78 def program_versions(cursor:, nick:) post( 'api/program-versions', self, { cursor: cursor, nick: nick } ) end |
#programs ⇒ Object
86 87 88 89 90 91 |
# File 'lib/portal_1c/rest.rb', line 86 def programs get( 'api/programs', self ) end |
#subscriber(body) ⇒ Object
31 32 33 34 35 36 37 |
# File 'lib/portal_1c/rest.rb', line 31 def subscriber(body) post( 'api/rest/public/subscriber', self, body ) end |