Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/adyen/services/checkout/payments_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def initialize(client, version = DEFAULT_VERSION)
super(client, version, 'Checkout')
end

# Get the list of brands on the card
# Get the brands and other details of a card
def card_details(request, headers: {})
endpoint = '/cardDetails'.gsub(/{.+?}/, '%s')
endpoint = endpoint.gsub(%r{^/}, '')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@ def initialize(client, version = DEFAULT_VERSION)
super(client, version, 'LegalEntityManagement')
end

# Calculate PCI status of a legal entity
def calculate_pci_status_of_legal_entity(request, id, headers: {})
endpoint = '/legalEntities/{id}/pciQuestionnaires/signingRequired'.gsub(/{.+?}/, '%s')
endpoint = endpoint.gsub(%r{^/}, '')
endpoint = format(endpoint, id)

action = { method: 'post', url: endpoint }
@client.call_adyen_api(@service, action, request, headers, @version)
end

# Generate PCI questionnaire
def generate_pci_questionnaire(request, id, headers: {})
endpoint = '/legalEntities/{id}/pciQuestionnaires/generatePciTemplates'.gsub(/{.+?}/, '%s')
Expand Down
Loading