updated request for get reference user data

This commit is contained in:
Oleg Hasjanov 2023-10-31 12:42:40 +02:00
parent c7c8ae9bba
commit 6c7abf1123
5 changed files with 29 additions and 13 deletions

View file

@ -3,8 +3,8 @@ module Billing
REGEXP = /\A\d{2,20}\z/
MULTI_REGEXP = /(\d{2,20})/
def self.generate
result = EisBilling::GetReferenceNumber.send_request
def self.generate(owner:)
result = EisBilling::GetReferenceNumber.call(owner: owner)
JSON.parse(result.body)['reference_number']
end