Skip to content

Commit 3130c99

Browse files
Merge pull request #666 from recurly/v3-v2021-02-25-7561215547
Generated Latest Changes for v2021-02-25
2 parents 8b32739 + e3a5da0 commit 3130c99

File tree

2 files changed

+132
-25
lines changed

2 files changed

+132
-25
lines changed

openapi/api.yaml

Lines changed: 76 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -19422,16 +19422,19 @@ components:
1942219422
Integer paired with `Net Terms Type` and representing the number
1942319423
of days past the current date (for `net` Net Terms Type) or days after
1942419424
the last day of the current month (for `eom` Net Terms Type) that the
19425-
invoice will become past due. For any value, an additional 24 hours is
19425+
invoice will become past due. For `manual` collection method, an additional 24 hours is
1942619426
added to ensure the customer has the entire last day to make payment before
19427-
becoming past due. For example:
19427+
becoming past due. For example:
1942819428

1942919429
If an invoice is due `net 0`, it is due 'On Receipt' and will become past due 24 hours after it's created.
1943019430
If an invoice is due `net 30`, it will become past due at 31 days exactly.
1943119431
If an invoice is due `eom 30`, it will become past due 31 days from the last day of the current month.
1943219432

19433+
For `automatic` collection method, the additional 24 hours is not added. For example, On-Receipt is due immediately, and `net 30` will become due exactly 30 days from invoice generation, at which point Recurly will attempt collection.
1943319434
When `eom` Net Terms Type is passed, the value for `Net Terms` is restricted to `0, 15, 30, 45, 60, or 90`.
19434-
For more information please visit our docs page (https://docs.recurly.com/docs/manual-payments#section-collection-terms)
19435+
19436+
For more information on how net terms work with `manual` collection visit our docs page (https://docs.recurly.com/docs/manual-payments#section-collection-terms)
19437+
or visit (https://docs.recurly.com/docs/automatic-invoicing-terms#section-collection-terms) for information about net terms using `automatic` collection.
1943519438
minimum: 0
1943619439
default: 0
1943719440
net_terms_type:
@@ -19617,16 +19620,19 @@ components:
1961719620
Integer paired with `Net Terms Type` and representing the number
1961819621
of days past the current date (for `net` Net Terms Type) or days after
1961919622
the last day of the current month (for `eom` Net Terms Type) that the
19620-
invoice will become past due. For any value, an additional 24 hours is
19623+
invoice will become past due. For `manual` collection method, an additional 24 hours is
1962119624
added to ensure the customer has the entire last day to make payment before
19622-
becoming past due. For example:
19625+
becoming past due. For example:
1962319626

1962419627
If an invoice is due `net 0`, it is due 'On Receipt' and will become past due 24 hours after it's created.
1962519628
If an invoice is due `net 30`, it will become past due at 31 days exactly.
1962619629
If an invoice is due `eom 30`, it will become past due 31 days from the last day of the current month.
1962719630

19631+
For `automatic` collection method, the additional 24 hours is not added. For example, On-Receipt is due immediately, and `net 30` will become due exactly 30 days from invoice generation, at which point Recurly will attempt collection.
1962819632
When `eom` Net Terms Type is passed, the value for `Net Terms` is restricted to `0, 15, 30, 45, 60, or 90`.
19629-
For more information please visit our docs page (https://docs.recurly.com/docs/manual-payments#section-collection-terms)
19633+
19634+
For more information on how net terms work with `manual` collection visit our docs page (https://docs.recurly.com/docs/manual-payments#section-collection-terms)
19635+
or visit (https://docs.recurly.com/docs/automatic-invoicing-terms#section-collection-terms) for information about net terms using `automatic` collection.
1963019636
minimum: 0
1963119637
default: 0
1963219638
net_terms_type:
@@ -21733,16 +21739,19 @@ components:
2173321739
Integer paired with `Net Terms Type` and representing the number
2173421740
of days past the current date (for `net` Net Terms Type) or days after
2173521741
the last day of the current month (for `eom` Net Terms Type) that the
21736-
invoice will become past due. For any value, an additional 24 hours is
21742+
invoice will become past due. For `manual` collection method, an additional 24 hours is
2173721743
added to ensure the customer has the entire last day to make payment before
21738-
becoming past due. For example:
21744+
becoming past due. For example:
2173921745

2174021746
If an invoice is due `net 0`, it is due 'On Receipt' and will become past due 24 hours after it's created.
2174121747
If an invoice is due `net 30`, it will become past due at 31 days exactly.
2174221748
If an invoice is due `eom 30`, it will become past due 31 days from the last day of the current month.
2174321749

21750+
For `automatic` collection method, the additional 24 hours is not added. For example, On-Receipt is due immediately, and `net 30` will become due exactly 30 days from invoice generation, at which point Recurly will attempt collection.
2174421751
When `eom` Net Terms Type is passed, the value for `Net Terms` is restricted to `0, 15, 30, 45, 60, or 90`.
21745-
For more information please visit our docs page (https://docs.recurly.com/docs/manual-payments#section-collection-terms)
21752+
21753+
For more information on how net terms work with `manual` collection visit our docs page (https://docs.recurly.com/docs/manual-payments#section-collection-terms)
21754+
or visit (https://docs.recurly.com/docs/automatic-invoicing-terms#section-collection-terms) for information about net terms using `automatic` collection.
2174621755
minimum: 0
2174721756
default: 0
2174821757
net_terms_type:
@@ -22314,7 +22323,8 @@ components:
2231422323
month (for `eom` Net Terms Type) that the invoice will become past due. During a subscription
2231522324
change, it's not necessary to provide both the `Net Terms Type` and `Net Terms` parameters.
2231622325

22317-
For more information please visit our docs page (https://docs.recurly.com/docs/manual-payments#section-collection-terms)
22326+
For more information on how net terms work with `manual` collection visit our docs page (https://docs.recurly.com/docs/manual-payments#section-collection-terms)
22327+
or visit (https://docs.recurly.com/docs/automatic-invoicing-terms#section-collection-terms) for information about net terms using `automatic` collection.
2231822328
minimum: 0
2231922329
default: 0
2232022330
net_terms_type:
@@ -22527,16 +22537,19 @@ components:
2252722537
Integer paired with `Net Terms Type` and representing the number
2252822538
of days past the current date (for `net` Net Terms Type) or days after
2252922539
the last day of the current month (for `eom` Net Terms Type) that the
22530-
invoice will become past due. For any value, an additional 24 hours is
22540+
invoice will become past due. For `manual` collection method, an additional 24 hours is
2253122541
added to ensure the customer has the entire last day to make payment before
22532-
becoming past due. For example:
22542+
becoming past due. For example:
2253322543

2253422544
If an invoice is due `net 0`, it is due 'On Receipt' and will become past due 24 hours after it's created.
2253522545
If an invoice is due `net 30`, it will become past due at 31 days exactly.
2253622546
If an invoice is due `eom 30`, it will become past due 31 days from the last day of the current month.
2253722547

22548+
For `automatic` collection method, the additional 24 hours is not added. For example, On-Receipt is due immediately, and `net 30` will become due exactly 30 days from invoice generation, at which point Recurly will attempt collection.
2253822549
When `eom` Net Terms Type is passed, the value for `Net Terms` is restricted to `0, 15, 30, 45, 60, or 90`.
22539-
For more information please visit our docs page (https://docs.recurly.com/docs/manual-payments#section-collection-terms)
22550+
22551+
For more information on how net terms work with `manual` collection visit our docs page (https://docs.recurly.com/docs/manual-payments#section-collection-terms)
22552+
or visit (https://docs.recurly.com/docs/automatic-invoicing-terms#section-collection-terms) for information about net terms using `automatic` collection.
2254022553
minimum: 0
2254122554
default: 0
2254222555
net_terms_type:
@@ -22720,16 +22733,19 @@ components:
2272022733
Integer paired with `Net Terms Type` and representing the number
2272122734
of days past the current date (for `net` Net Terms Type) or days after
2272222735
the last day of the current month (for `eom` Net Terms Type) that the
22723-
invoice will become past due. For any value, an additional 24 hours is
22736+
invoice will become past due. For `manual` collection method, an additional 24 hours is
2272422737
added to ensure the customer has the entire last day to make payment before
22725-
becoming past due. For example:
22738+
becoming past due. For example:
2272622739

2272722740
If an invoice is due `net 0`, it is due 'On Receipt' and will become past due 24 hours after it's created.
2272822741
If an invoice is due `net 30`, it will become past due at 31 days exactly.
2272922742
If an invoice is due `eom 30`, it will become past due 31 days from the last day of the current month.
2273022743

22744+
For `automatic` collection method, the additional 24 hours is not added. For example, On-Receipt is due immediately, and `net 30` will become due exactly 30 days from invoice generation, at which point Recurly will attempt collection.
2273122745
When `eom` Net Terms Type is passed, the value for `Net Terms` is restricted to `0, 15, 30, 45, 60, or 90`.
22732-
For more information please visit our docs page (https://docs.recurly.com/docs/manual-payments#section-collection-terms)
22746+
22747+
For more information on how net terms work with `manual` collection visit our docs page (https://docs.recurly.com/docs/manual-payments#section-collection-terms)
22748+
or visit (https://docs.recurly.com/docs/automatic-invoicing-terms#section-collection-terms) for information about net terms using `automatic` collection.
2273322749
minimum: 0
2273422750
default: 0
2273522751
net_terms_type:
@@ -23154,6 +23170,44 @@ components:
2315423170
For all other countries this will come from the VAT Number field in the
2315523171
Billing Info.
2315623172
title: VAT Number
23173+
fraud_info:
23174+
"$ref": "#/components/schemas/TransactionFraudInfo"
23175+
TransactionFraudInfo:
23176+
type: object
23177+
title: Fraud information
23178+
readOnly: true
23179+
properties:
23180+
object:
23181+
type: string
23182+
title: Object type
23183+
readOnly: true
23184+
score:
23185+
type: integer
23186+
title: Kount score
23187+
minimum: 1
23188+
maximum: 99
23189+
decision:
23190+
title: Kount decision
23191+
maxLength: 10
23192+
"$ref": "#/components/schemas/KountDecisionEnum"
23193+
reference:
23194+
type: string
23195+
title: Kount transaction reference ID
23196+
risk_rules_triggered:
23197+
type: array
23198+
title: Risk Rules Triggered
23199+
description: A list of fraud risk rules that were triggered for the transaction.
23200+
items:
23201+
"$ref": "#/components/schemas/FraudRiskRule"
23202+
FraudRiskRule:
23203+
type: object
23204+
properties:
23205+
code:
23206+
type: string
23207+
title: The Kount rule number.
23208+
message:
23209+
type: string
23210+
title: Description of why the rule was triggered
2315723211
ExternalTransaction:
2315823212
type: object
2315923213
properties:
@@ -23457,16 +23511,19 @@ components:
2345723511
Integer paired with `Net Terms Type` and representing the number
2345823512
of days past the current date (for `net` Net Terms Type) or days after
2345923513
the last day of the current month (for `eom` Net Terms Type) that the
23460-
invoice will become past due. For any value, an additional 24 hours is
23514+
invoice will become past due. For `manual` collection method, an additional 24 hours is
2346123515
added to ensure the customer has the entire last day to make payment before
23462-
becoming past due. For example:
23516+
becoming past due. For example:
2346323517

2346423518
If an invoice is due `net 0`, it is due 'On Receipt' and will become past due 24 hours after it's created.
2346523519
If an invoice is due `net 30`, it will become past due at 31 days exactly.
2346623520
If an invoice is due `eom 30`, it will become past due 31 days from the last day of the current month.
2346723521

23522+
For `automatic` collection method, the additional 24 hours is not added. For example, On-Receipt is due immediately, and `net 30` will become due exactly 30 days from invoice generation, at which point Recurly will attempt collection.
2346823523
When `eom` Net Terms Type is passed, the value for `Net Terms` is restricted to `0, 15, 30, 45, 60, or 90`.
23469-
For more information please visit our docs page (https://docs.recurly.com/docs/manual-payments#section-collection-terms)
23524+
23525+
For more information on how net terms work with `manual` collection visit our docs page (https://docs.recurly.com/docs/manual-payments#section-collection-terms)
23526+
or visit (https://docs.recurly.com/docs/automatic-invoicing-terms#section-collection-terms) for information about net terms using `automatic` collection.
2347023527
minimum: 0
2347123528
default: 0
2347223529
net_terms_type:

recurly/resources.py

Lines changed: 56 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -700,6 +700,8 @@ class Transaction(Resource):
700700
Language code for the message
701701
cvv_check : str
702702
When processed, result from checking the CVV/CVC value on the transaction.
703+
fraud_info : TransactionFraudInfo
704+
Fraud information
703705
gateway_approval_code : str
704706
Transaction approval code from the payment gateway.
705707
gateway_message : str
@@ -776,6 +778,7 @@ class Transaction(Resource):
776778
"customer_message": str,
777779
"customer_message_locale": str,
778780
"cvv_check": str,
781+
"fraud_info": "TransactionFraudInfo",
779782
"gateway_approval_code": str,
780783
"gateway_message": str,
781784
"gateway_reference": str,
@@ -893,6 +896,47 @@ class TransactionPaymentGateway(Resource):
893896
}
894897

895898

899+
class TransactionFraudInfo(Resource):
900+
"""
901+
Attributes
902+
----------
903+
decision : str
904+
Kount decision
905+
object : str
906+
Object type
907+
reference : str
908+
Kount transaction reference ID
909+
risk_rules_triggered : :obj:`list` of :obj:`FraudRiskRule`
910+
A list of fraud risk rules that were triggered for the transaction.
911+
score : int
912+
Kount score
913+
"""
914+
915+
schema = {
916+
"decision": str,
917+
"object": str,
918+
"reference": str,
919+
"risk_rules_triggered": ["FraudRiskRule"],
920+
"score": int,
921+
}
922+
923+
924+
class FraudRiskRule(Resource):
925+
"""
926+
Attributes
927+
----------
928+
code : str
929+
The Kount rule number.
930+
message : str
931+
Description of why the rule was triggered
932+
"""
933+
934+
schema = {
935+
"code": str,
936+
"message": str,
937+
}
938+
939+
896940
class CouponRedemption(Resource):
897941
"""
898942
Attributes
@@ -1409,16 +1453,19 @@ class Invoice(Resource):
14091453
Integer paired with `Net Terms Type` and representing the number
14101454
of days past the current date (for `net` Net Terms Type) or days after
14111455
the last day of the current month (for `eom` Net Terms Type) that the
1412-
invoice will become past due. For any value, an additional 24 hours is
1456+
invoice will become past due. For `manual` collection method, an additional 24 hours is
14131457
added to ensure the customer has the entire last day to make payment before
1414-
becoming past due. For example:
1458+
becoming past due. For example:
14151459
14161460
If an invoice is due `net 0`, it is due 'On Receipt' and will become past due 24 hours after it's created.
14171461
If an invoice is due `net 30`, it will become past due at 31 days exactly.
14181462
If an invoice is due `eom 30`, it will become past due 31 days from the last day of the current month.
14191463
1464+
For `automatic` collection method, the additional 24 hours is not added. For example, On-Receipt is due immediately, and `net 30` will become due exactly 30 days from invoice generation, at which point Recurly will attempt collection.
14201465
When `eom` Net Terms Type is passed, the value for `Net Terms` is restricted to `0, 15, 30, 45, 60, or 90`.
1421-
For more information please visit our docs page (https://docs.recurly.com/docs/manual-payments#section-collection-terms)
1466+
1467+
For more information on how net terms work with `manual` collection visit our docs page (https://docs.recurly.com/docs/manual-payments#section-collection-terms)
1468+
or visit (https://docs.recurly.com/docs/automatic-invoicing-terms#section-collection-terms) for information about net terms using `automatic` collection.
14221469
net_terms_type : str
14231470
Optionally supplied string that may be either `net` or `eom` (end-of-month).
14241471
When `net`, an invoice becomes past due the specified number of `Net Terms` days from the current date.
@@ -1914,16 +1961,19 @@ class Subscription(Resource):
19141961
Integer paired with `Net Terms Type` and representing the number
19151962
of days past the current date (for `net` Net Terms Type) or days after
19161963
the last day of the current month (for `eom` Net Terms Type) that the
1917-
invoice will become past due. For any value, an additional 24 hours is
1964+
invoice will become past due. For `manual` collection method, an additional 24 hours is
19181965
added to ensure the customer has the entire last day to make payment before
1919-
becoming past due. For example:
1966+
becoming past due. For example:
19201967
19211968
If an invoice is due `net 0`, it is due 'On Receipt' and will become past due 24 hours after it's created.
19221969
If an invoice is due `net 30`, it will become past due at 31 days exactly.
19231970
If an invoice is due `eom 30`, it will become past due 31 days from the last day of the current month.
19241971
1972+
For `automatic` collection method, the additional 24 hours is not added. For example, On-Receipt is due immediately, and `net 30` will become due exactly 30 days from invoice generation, at which point Recurly will attempt collection.
19251973
When `eom` Net Terms Type is passed, the value for `Net Terms` is restricted to `0, 15, 30, 45, 60, or 90`.
1926-
For more information please visit our docs page (https://docs.recurly.com/docs/manual-payments#section-collection-terms)
1974+
1975+
For more information on how net terms work with `manual` collection visit our docs page (https://docs.recurly.com/docs/manual-payments#section-collection-terms)
1976+
or visit (https://docs.recurly.com/docs/automatic-invoicing-terms#section-collection-terms) for information about net terms using `automatic` collection.
19271977
net_terms_type : str
19281978
Optionally supplied string that may be either `net` or `eom` (end-of-month).
19291979
When `net`, an invoice becomes past due the specified number of `Net Terms` days from the current date.

0 commit comments

Comments
 (0)