Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated Latest Changes for v2021-02-25 #319

Merged
merged 1 commit into from
Jan 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 47 additions & 7 deletions lib/recurly.d.ts

Large diffs are not rendered by default.

27 changes: 27 additions & 0 deletions lib/recurly/resources/FraudRiskRule.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/* istanbul ignore file */
/**
* This file is automatically created by Recurly's OpenAPI generation process
* and thus any edits you make by hand will be lost. If you wish to make a
* change to this file, please create a Github issue explaining the changes you
* need and we will usher them to the appropriate places.
*/
'use strict'

const Resource = require('../Resource')

/**
* FraudRiskRule
* @typedef {Object} FraudRiskRule
* @prop {string} code - The Kount rule number.
* @prop {string} message - Description of why the rule was triggered
*/
class FraudRiskRule extends Resource {
static getSchema () {
return {
code: String,
message: String
}
}
}

module.exports = FraudRiskRule
2 changes: 1 addition & 1 deletion lib/recurly/resources/Invoice.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const Resource = require('../Resource')
* @prop {boolean} hasMoreLineItems - Identifies if the invoice has more line items than are returned in `line_items`. If `has_more_line_items` is `true`, then a request needs to be made to the `list_invoice_line_items` endpoint.
* @prop {string} id - Invoice ID
* @prop {Array.<LineItem>} lineItems - Line Items
* @prop {number} netTerms - Integer paired with `Net Terms Type` and representing the number of days past the current date (for `net` Net Terms Type) or days after the last day of the current month (for `eom` Net Terms Type) that the invoice will become past due. For any value, an additional 24 hours is added to ensure the customer has the entire last day to make payment before becoming past due. For example: If an invoice is due `net 0`, it is due 'On Receipt' and will become past due 24 hours after it's created. If an invoice is due `net 30`, it will become past due at 31 days exactly. If an invoice is due `eom 30`, it will become past due 31 days from the last day of the current month. When `eom` Net Terms Type is passed, the value for `Net Terms` is restricted to `0, 15, 30, 45, 60, or 90`. For more information please visit our docs page (https://docs.recurly.com/docs/manual-payments#section-collection-terms)
* @prop {number} netTerms - Integer paired with `Net Terms Type` and representing the number of days past the current date (for `net` Net Terms Type) or days after the last day of the current month (for `eom` Net Terms Type) that the invoice will become past due. For `manual` collection method, an additional 24 hours is added to ensure the customer has the entire last day to make payment before becoming past due. For example: If an invoice is due `net 0`, it is due 'On Receipt' and will become past due 24 hours after it's created. If an invoice is due `net 30`, it will become past due at 31 days exactly. If an invoice is due `eom 30`, it will become past due 31 days from the last day of the current month. 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. When `eom` Net Terms Type is passed, the value for `Net Terms` is restricted to `0, 15, 30, 45, 60, or 90`. 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) or visit (https://docs.recurly.com/docs/automatic-invoicing-terms#section-collection-terms) for information about net terms using `automatic` collection.
* @prop {string} netTermsType - Optionally supplied string that may be either `net` or `eom` (end-of-month). When `net`, an invoice becomes past due the specified number of `Net Terms` days from the current date. When `eom` an invoice becomes past due the specified number of `Net Terms` days from the last day of the current month. This field is only available when the EOM Net Terms feature is enabled.
* @prop {string} number - If VAT taxation and the Country Invoice Sequencing feature are enabled, invoices will have country-specific invoice numbers for invoices billed to EU countries (ex: FR1001). Non-EU invoices will continue to use the site-level invoice number sequence.
* @prop {string} object - Object type
Expand Down
2 changes: 1 addition & 1 deletion lib/recurly/resources/Subscription.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const Resource = require('../Resource')
* @prop {Date} expiresAt - Expires at
* @prop {string} gatewayCode - If present, this subscription's transactions will use the payment gateway with this code.
* @prop {string} id - Subscription ID
* @prop {number} netTerms - Integer paired with `Net Terms Type` and representing the number of days past the current date (for `net` Net Terms Type) or days after the last day of the current month (for `eom` Net Terms Type) that the invoice will become past due. For any value, an additional 24 hours is added to ensure the customer has the entire last day to make payment before becoming past due. For example: If an invoice is due `net 0`, it is due 'On Receipt' and will become past due 24 hours after it's created. If an invoice is due `net 30`, it will become past due at 31 days exactly. If an invoice is due `eom 30`, it will become past due 31 days from the last day of the current month. When `eom` Net Terms Type is passed, the value for `Net Terms` is restricted to `0, 15, 30, 45, 60, or 90`. For more information please visit our docs page (https://docs.recurly.com/docs/manual-payments#section-collection-terms)
* @prop {number} netTerms - Integer paired with `Net Terms Type` and representing the number of days past the current date (for `net` Net Terms Type) or days after the last day of the current month (for `eom` Net Terms Type) that the invoice will become past due. For `manual` collection method, an additional 24 hours is added to ensure the customer has the entire last day to make payment before becoming past due. For example: If an invoice is due `net 0`, it is due 'On Receipt' and will become past due 24 hours after it's created. If an invoice is due `net 30`, it will become past due at 31 days exactly. If an invoice is due `eom 30`, it will become past due 31 days from the last day of the current month. 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. When `eom` Net Terms Type is passed, the value for `Net Terms` is restricted to `0, 15, 30, 45, 60, or 90`. 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) or visit (https://docs.recurly.com/docs/automatic-invoicing-terms#section-collection-terms) for information about net terms using `automatic` collection.
* @prop {string} netTermsType - Optionally supplied string that may be either `net` or `eom` (end-of-month). When `net`, an invoice becomes past due the specified number of `Net Terms` days from the current date. When `eom` an invoice becomes past due the specified number of `Net Terms` days from the last day of the current month. This field is only available when the EOM Net Terms feature is enabled.
* @prop {string} object - Object type
* @prop {Date} pausedAt - Null unless subscription is paused or will pause at the end of the current billing period.
Expand Down
2 changes: 2 additions & 0 deletions lib/recurly/resources/Transaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const Resource = require('../Resource')
* @prop {string} customerMessage - For declined (`success=false`) transactions, the message displayed to the customer.
* @prop {string} customerMessageLocale - Language code for the message
* @prop {string} cvvCheck - When processed, result from checking the CVV/CVC value on the transaction.
* @prop {TransactionFraudInfo} fraudInfo - Fraud information
* @prop {string} gatewayApprovalCode - Transaction approval code from the payment gateway.
* @prop {string} gatewayMessage - Transaction message from the payment gateway.
* @prop {string} gatewayReference - Transaction reference number from the payment gateway.
Expand Down Expand Up @@ -69,6 +70,7 @@ class Transaction extends Resource {
customerMessage: String,
customerMessageLocale: String,
cvvCheck: String,
fraudInfo: 'TransactionFraudInfo',
gatewayApprovalCode: String,
gatewayMessage: String,
gatewayReference: String,
Expand Down
33 changes: 33 additions & 0 deletions lib/recurly/resources/TransactionFraudInfo.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/* istanbul ignore file */
/**
* This file is automatically created by Recurly's OpenAPI generation process
* and thus any edits you make by hand will be lost. If you wish to make a
* change to this file, please create a Github issue explaining the changes you
* need and we will usher them to the appropriate places.
*/
'use strict'

const Resource = require('../Resource')

/**
* TransactionFraudInfo
* @typedef {Object} TransactionFraudInfo
* @prop {string} decision - Kount decision
* @prop {string} object - Object type
* @prop {string} reference - Kount transaction reference ID
* @prop {Array.<FraudRiskRule>} riskRulesTriggered - A list of fraud risk rules that were triggered for the transaction.
* @prop {number} score - Kount score
*/
class TransactionFraudInfo extends Resource {
static getSchema () {
return {
decision: String,
object: String,
reference: String,
riskRulesTriggered: ['FraudRiskRule'],
score: Number
}
}
}

module.exports = TransactionFraudInfo
2 changes: 2 additions & 0 deletions lib/recurly/resources/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ module.exports.Transaction = require('./Transaction')
module.exports.InvoiceMini = require('./InvoiceMini')
module.exports.AddressWithName = require('./AddressWithName')
module.exports.TransactionPaymentGateway = require('./TransactionPaymentGateway')
module.exports.TransactionFraudInfo = require('./TransactionFraudInfo')
module.exports.FraudRiskRule = require('./FraudRiskRule')
module.exports.CouponRedemption = require('./CouponRedemption')
module.exports.Coupon = require('./Coupon')
module.exports.PlanMini = require('./PlanMini')
Expand Down
Loading
Loading