Class: Kortana::Modules::Compliance
- Inherits:
-
Object
- Object
- Kortana::Modules::Compliance
- Defined in:
- lib/kortana/modules/compliance.rb
Instance Method Summary collapse
- #create_kyb(merchant_id:, business_name:, business_type:, tax_id: nil, documents: nil) ⇒ Object
- #create_kyc(customer_id: nil, merchant_id: nil, document_type:, document_country:, document_front:, document_back: nil, selfie: nil) ⇒ Object
- #create_str(transaction_id:, reason:, evidence: nil) ⇒ Object
- #get_kyb(id) ⇒ Object
- #get_kyc(id) ⇒ Object
- #get_screening(id) ⇒ Object
-
#initialize(client) ⇒ Compliance
constructor
A new instance of Compliance.
- #screen(entity_id: nil, transaction_id: nil, first_name: nil, last_name: nil, dob: nil) ⇒ Object
Constructor Details
#initialize(client) ⇒ Compliance
Returns a new instance of Compliance.
4 5 6 |
# File 'lib/kortana/modules/compliance.rb', line 4 def initialize(client) @client = client end |
Instance Method Details
#create_kyb(merchant_id:, business_name:, business_type:, tax_id: nil, documents: nil) ⇒ Object
24 25 26 27 28 29 30 31 32 |
# File 'lib/kortana/modules/compliance.rb', line 24 def create_kyb(merchant_id:, business_name:, business_type:, tax_id: nil, documents: nil) @client.post("/compliance/kyb", { merchantId: merchant_id, businessName: business_name, businessType: business_type, taxId: tax_id, documents: documents }) end |
#create_kyc(customer_id: nil, merchant_id: nil, document_type:, document_country:, document_front:, document_back: nil, selfie: nil) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/kortana/modules/compliance.rb', line 8 def create_kyc(customer_id: nil, merchant_id: nil, document_type:, document_country:, document_front:, document_back: nil, selfie: nil) @client.post("/compliance/kyc", { customerId: customer_id, merchantId: merchant_id, documentType: document_type, documentCountry: document_country, documentFront: document_front, documentBack: document_back, selfie: selfie }) end |
#create_str(transaction_id:, reason:, evidence: nil) ⇒ Object
52 53 54 55 56 57 58 |
# File 'lib/kortana/modules/compliance.rb', line 52 def create_str(transaction_id:, reason:, evidence: nil) @client.post("/compliance/str", { transactionId: transaction_id, reason: reason, evidence: evidence }) end |
#get_kyb(id) ⇒ Object
34 35 36 |
# File 'lib/kortana/modules/compliance.rb', line 34 def get_kyb(id) @client.get("/compliance/kyb/#{id}") end |
#get_kyc(id) ⇒ Object
20 21 22 |
# File 'lib/kortana/modules/compliance.rb', line 20 def get_kyc(id) @client.get("/compliance/kyc/#{id}") end |
#get_screening(id) ⇒ Object
48 49 50 |
# File 'lib/kortana/modules/compliance.rb', line 48 def get_screening(id) @client.get("/compliance/screen/#{id}") end |
#screen(entity_id: nil, transaction_id: nil, first_name: nil, last_name: nil, dob: nil) ⇒ Object
38 39 40 41 42 43 44 45 46 |
# File 'lib/kortana/modules/compliance.rb', line 38 def screen(entity_id: nil, transaction_id: nil, first_name: nil, last_name: nil, dob: nil) @client.post("/compliance/screen", { entityId: entity_id, transactionId: transaction_id, firstName: first_name, lastName: last_name, dob: dob }) end |