You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: openapi/api.yaml
+76-19Lines changed: 76 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -19422,16 +19422,19 @@ components:
19422
19422
Integer paired with `Net Terms Type` and representing the number
19423
19423
of days past the current date (for `net` Net Terms Type) or days after
19424
19424
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
19426
19426
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:
19428
19428
19429
19429
If an invoice is due `net 0`, it is due 'On Receipt' and will become past due 24 hours after it's created.
19430
19430
If an invoice is due `net 30`, it will become past due at 31 days exactly.
19431
19431
If an invoice is due `eom 30`, it will become past due 31 days from the last day of the current month.
19432
19432
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.
19433
19434
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.
19435
19438
minimum: 0
19436
19439
default: 0
19437
19440
net_terms_type:
@@ -19617,16 +19620,19 @@ components:
19617
19620
Integer paired with `Net Terms Type` and representing the number
19618
19621
of days past the current date (for `net` Net Terms Type) or days after
19619
19622
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
19621
19624
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:
19623
19626
19624
19627
If an invoice is due `net 0`, it is due 'On Receipt' and will become past due 24 hours after it's created.
19625
19628
If an invoice is due `net 30`, it will become past due at 31 days exactly.
19626
19629
If an invoice is due `eom 30`, it will become past due 31 days from the last day of the current month.
19627
19630
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.
19628
19632
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.
19630
19636
minimum: 0
19631
19637
default: 0
19632
19638
net_terms_type:
@@ -21733,16 +21739,19 @@ components:
21733
21739
Integer paired with `Net Terms Type` and representing the number
21734
21740
of days past the current date (for `net` Net Terms Type) or days after
21735
21741
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
21737
21743
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:
21739
21745
21740
21746
If an invoice is due `net 0`, it is due 'On Receipt' and will become past due 24 hours after it's created.
21741
21747
If an invoice is due `net 30`, it will become past due at 31 days exactly.
21742
21748
If an invoice is due `eom 30`, it will become past due 31 days from the last day of the current month.
21743
21749
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.
21744
21751
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.
21746
21755
minimum: 0
21747
21756
default: 0
21748
21757
net_terms_type:
@@ -22314,7 +22323,8 @@ components:
22314
22323
month (for `eom` Net Terms Type) that the invoice will become past due. During a subscription
22315
22324
change, it's not necessary to provide both the `Net Terms Type` and `Net Terms` parameters.
22316
22325
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.
22318
22328
minimum: 0
22319
22329
default: 0
22320
22330
net_terms_type:
@@ -22527,16 +22537,19 @@ components:
22527
22537
Integer paired with `Net Terms Type` and representing the number
22528
22538
of days past the current date (for `net` Net Terms Type) or days after
22529
22539
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
22531
22541
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:
22533
22543
22534
22544
If an invoice is due `net 0`, it is due 'On Receipt' and will become past due 24 hours after it's created.
22535
22545
If an invoice is due `net 30`, it will become past due at 31 days exactly.
22536
22546
If an invoice is due `eom 30`, it will become past due 31 days from the last day of the current month.
22537
22547
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.
22538
22549
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.
22540
22553
minimum: 0
22541
22554
default: 0
22542
22555
net_terms_type:
@@ -22720,16 +22733,19 @@ components:
22720
22733
Integer paired with `Net Terms Type` and representing the number
22721
22734
of days past the current date (for `net` Net Terms Type) or days after
22722
22735
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
22724
22737
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:
22726
22739
22727
22740
If an invoice is due `net 0`, it is due 'On Receipt' and will become past due 24 hours after it's created.
22728
22741
If an invoice is due `net 30`, it will become past due at 31 days exactly.
22729
22742
If an invoice is due `eom 30`, it will become past due 31 days from the last day of the current month.
22730
22743
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.
22731
22745
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.
22733
22749
minimum: 0
22734
22750
default: 0
22735
22751
net_terms_type:
@@ -23154,6 +23170,44 @@ components:
23154
23170
For all other countries this will come from the VAT Number field in the
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
23157
23211
ExternalTransaction:
23158
23212
type: object
23159
23213
properties:
@@ -23457,16 +23511,19 @@ components:
23457
23511
Integer paired with `Net Terms Type` and representing the number
23458
23512
of days past the current date (for `net` Net Terms Type) or days after
23459
23513
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
23461
23515
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:
23463
23517
23464
23518
If an invoice is due `net 0`, it is due 'On Receipt' and will become past due 24 hours after it's created.
23465
23519
If an invoice is due `net 30`, it will become past due at 31 days exactly.
23466
23520
If an invoice is due `eom 30`, it will become past due 31 days from the last day of the current month.
23467
23521
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.
23468
23523
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.
Copy file name to clipboardExpand all lines: recurly/resources.py
+56-6Lines changed: 56 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -700,6 +700,8 @@ class Transaction(Resource):
700
700
Language code for the message
701
701
cvv_check : str
702
702
When processed, result from checking the CVV/CVC value on the transaction.
703
+
fraud_info : TransactionFraudInfo
704
+
Fraud information
703
705
gateway_approval_code : str
704
706
Transaction approval code from the payment gateway.
705
707
gateway_message : str
@@ -776,6 +778,7 @@ class Transaction(Resource):
776
778
"customer_message": str,
777
779
"customer_message_locale": str,
778
780
"cvv_check": str,
781
+
"fraud_info": "TransactionFraudInfo",
779
782
"gateway_approval_code": str,
780
783
"gateway_message": str,
781
784
"gateway_reference": str,
@@ -893,6 +896,47 @@ class TransactionPaymentGateway(Resource):
893
896
}
894
897
895
898
899
+
classTransactionFraudInfo(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
+
classFraudRiskRule(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
+
896
940
classCouponRedemption(Resource):
897
941
"""
898
942
Attributes
@@ -1409,16 +1453,19 @@ class Invoice(Resource):
1409
1453
Integer paired with `Net Terms Type` and representing the number
1410
1454
of days past the current date (for `net` Net Terms Type) or days after
1411
1455
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
1413
1457
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:
1415
1459
1416
1460
If an invoice is due `net 0`, it is due 'On Receipt' and will become past due 24 hours after it's created.
1417
1461
If an invoice is due `net 30`, it will become past due at 31 days exactly.
1418
1462
If an invoice is due `eom 30`, it will become past due 31 days from the last day of the current month.
1419
1463
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.
1420
1465
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.
1422
1469
net_terms_type : str
1423
1470
Optionally supplied string that may be either `net` or `eom` (end-of-month).
1424
1471
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):
1914
1961
Integer paired with `Net Terms Type` and representing the number
1915
1962
of days past the current date (for `net` Net Terms Type) or days after
1916
1963
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
1918
1965
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:
1920
1967
1921
1968
If an invoice is due `net 0`, it is due 'On Receipt' and will become past due 24 hours after it's created.
1922
1969
If an invoice is due `net 30`, it will become past due at 31 days exactly.
1923
1970
If an invoice is due `eom 30`, it will become past due 31 days from the last day of the current month.
1924
1971
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.
1925
1973
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.
1927
1977
net_terms_type : str
1928
1978
Optionally supplied string that may be either `net` or `eom` (end-of-month).
1929
1979
When `net`, an invoice becomes past due the specified number of `Net Terms` days from the current date.
0 commit comments