Skip to content

Commit d8e905b

Browse files
false[adyen-sdk-automation] automated change
1 parent cf3054e commit d8e905b

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

lib/adyen/services/checkout/payments_api.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def initialize(client, version = DEFAULT_VERSION)
1212
super(client, version, 'Checkout')
1313
end
1414

15-
# Get the list of brands on the card
15+
# Get the brands and other details of a card
1616
def card_details(request, headers: {})
1717
endpoint = '/cardDetails'.gsub(/{.+?}/, '%s')
1818
endpoint = endpoint.gsub(%r{^/}, '')

lib/adyen/services/legalEntityManagement/pci_questionnaires_api.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,16 @@ def initialize(client, version = DEFAULT_VERSION)
1212
super(client, version, 'LegalEntityManagement')
1313
end
1414

15+
# Calculate PCI status of a legal entity
16+
def calculate_pci_status_of_legal_entity(request, id, headers: {})
17+
endpoint = '/legalEntities/{id}/pciQuestionnaires/signingRequired'.gsub(/{.+?}/, '%s')
18+
endpoint = endpoint.gsub(%r{^/}, '')
19+
endpoint = format(endpoint, id)
20+
21+
action = { method: 'post', url: endpoint }
22+
@client.call_adyen_api(@service, action, request, headers, @version)
23+
end
24+
1525
# Generate PCI questionnaire
1626
def generate_pci_questionnaire(request, id, headers: {})
1727
endpoint = '/legalEntities/{id}/pciQuestionnaires/generatePciTemplates'.gsub(/{.+?}/, '%s')

0 commit comments

Comments
 (0)