Skip to content

Commit

Permalink
false[adyen-sdk-automation] automated change
Browse files Browse the repository at this point in the history
  • Loading branch information
AdyenAutomationBot committed Dec 3, 2024
1 parent cf3054e commit d8e905b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
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
10 changes: 10 additions & 0 deletions lib/adyen/services/legalEntityManagement/pci_questionnaires_api.rb
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

0 comments on commit d8e905b

Please sign in to comment.