Skip to content

Commit a2bb3b4

Browse files
horghclaude
andcommitted
Fix CreditCard component documentation
* Added guidance to send last four digits for last_digits field * Fixed YARD link syntax for instance attribute references * Fixed SafeKey capitalization Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 476cefa commit a2bb3b4

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

lib/minfraud/components/credit_card.rb

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ class CreditCard < Base
1414
# @return [String, nil]
1515
attr_accessor :issuer_id_number
1616

17-
# The last two or four digits of the credit card number.
17+
# The last two or four digits of the credit card number. In most cases,
18+
# you should send the last four digits for +last_digits+.
1819
#
1920
# @see https://dev.maxmind.com/minfraud/api-documentation/requests?lang=en#schema--request--credit-card__last_digits
2021
#
@@ -42,7 +43,7 @@ class CreditCard < Base
4243
attr_accessor :bank_phone_number
4344

4445
# The two character ISO 3166-1 alpha-2 country code where the issuer of
45-
# the card is located. This may be passed instead of {::issuer_id_number}
46+
# the card is located. This may be passed instead of {#issuer_id_number}
4647
# if you do not wish to pass partial account numbers, or if your payment
4748
# processor does not provide them.
4849
#
@@ -74,7 +75,7 @@ class CreditCard < Base
7475
# @return [String, nil]
7576
attr_accessor :cvv_result
7677

77-
# Whether the outcome of 3-D Secure verification (e.g. Safekey,
78+
# Whether the outcome of 3-D Secure verification (e.g. SafeKey,
7879
# SecureCode, Verified by Visa) was successful. +true+ if customer
7980
# verification was successful, or +false+ if the customer failed
8081
# verification. If 3-D Secure verification was not used, was unavailable,
@@ -86,7 +87,7 @@ class CreditCard < Base
8687

8788
# Get the last digits of the credit card number.
8889
#
89-
# @deprecated Use {::last_digits} instead.
90+
# @deprecated Use {#last_digits} instead.
9091
#
9192
# @return [String, nil]
9293
def last_4_digits
@@ -95,7 +96,7 @@ def last_4_digits
9596

9697
# Set the last digits of the credit card number.
9798
#
98-
# @deprecated Use {::last_digits} instead.
99+
# @deprecated Use {#last_digits} instead.
99100
#
100101
# @return [String, nil]
101102
def last_4_digits=(last4)

0 commit comments

Comments
 (0)