diff --git a/lib/recurly/resources/transaction_error.rb b/lib/recurly/resources/transaction_error.rb index b259b1dc8..747f637ef 100644 --- a/lib/recurly/resources/transaction_error.rb +++ b/lib/recurly/resources/transaction_error.rb @@ -18,6 +18,10 @@ class TransactionError < Resource # @return [String] Decline code define_attribute :decline_code, String + # @!attribute fraud_info + # @return [TransactionFraudInfo] Fraud information + define_attribute :fraud_info, :TransactionFraudInfo + # @!attribute merchant_advice # @return [String] Merchant message define_attribute :merchant_advice, String diff --git a/openapi/api.yaml b/openapi/api.yaml index 79ef24e94..8a8a67841 100644 --- a/openapi/api.yaml +++ b/openapi/api.yaml @@ -956,7 +956,7 @@ paths: Alabama St.\"),\n\t\t\tCity: recurly.String(\"San Francisco\"),\n\t\t\tPostalCode: recurly.String(\"94110\"),\n\t\t\tCountry: recurly.String(\"US\"),\n\t\t\tRegion: \ recurly.String(\"CA\"),\n\t\t},\n\t\tNumber: recurly.String(\"4111111111111111\"),\n\t\tMonth: - \ recurly.String(\"12\"),\n\t\tYear: recurly.String(\"22\"),\n\t\tCvv: + \ recurly.String(\"12\"),\n\t\tYear: recurly.String(\"30\"),\n\t\tCvv: \ recurly.String(\"123\"),\n\t},\n}\n\naccount, err := client.CreateAccount(accountReq)\nif e, ok := err.(*recurly.Error); ok {\n\tif e.Type == recurly.ErrorTypeValidation {\n\t\tfmt.Printf(\"Failed validation: %v\", e)\n\t\treturn nil, err\n\t}\n\tfmt.Printf(\"Unexpected @@ -24833,6 +24833,8 @@ components: a transaction. Pass this value to Recurly.js so it can continue the challenge flow. maxLength: 22 + fraud_info: + "$ref": "#/components/schemas/TransactionFraudInfo" RelatedTypeEnum: type: string enum: