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 (gateway_attributes on PaymentMethod) #306

Merged
merged 1 commit into from
May 22, 2023
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
24 changes: 24 additions & 0 deletions lib/recurly.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,10 @@ export declare class PaymentMethod {
* An identifier for a specific payment gateway.
*/
gatewayCode?: string | null;
/**
* Gateway specific attributes associated with this PaymentMethod
*/
gatewayAttributes?: GatewayAttributes | null;
/**
* Billing Agreement identifier. Only present for Amazon or Paypal payment methods.
*/
Expand Down Expand Up @@ -403,6 +407,14 @@ export declare class PaymentMethod {

}

export declare class GatewayAttributes {
/**
* Used by Adyen gateways. The Shopper Reference value used when the external token was created.
*/
accountReference?: string | null;

}

export declare class FraudInfo {
/**
* Kount score
Expand Down Expand Up @@ -3775,6 +3787,10 @@ export interface BillingInfoCreate {
* An identifier for a specific payment gateway. Must be used in conjunction with `gateway_token`.
*/
gatewayCode?: string | null;
/**
* Additional attributes to send to the gateway.
*/
gatewayAttributes?: GatewayAttributes | null;
/**
* Amazon billing agreement ID
*/
Expand Down Expand Up @@ -3851,6 +3867,14 @@ export interface BillingInfoCreate {

}

export interface GatewayAttributes {
/**
* Used by Adyen gateways. The Shopper Reference value used when the external token was created. Must be used in conjunction with gateway_token and gateway_code.
*/
accountReference?: string | null;

}

export interface CustomField {
/**
* Fields must be created in the UI before values can be assigned to them.
Expand Down
25 changes: 25 additions & 0 deletions lib/recurly/resources/GatewayAttributes.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/* 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')

/**
* GatewayAttributes
* @typedef {Object} GatewayAttributes
* @prop {string} accountReference - Used by Adyen gateways. The Shopper Reference value used when the external token was created.
*/
class GatewayAttributes extends Resource {
static getSchema () {
return {
accountReference: String
}
}
}

module.exports = GatewayAttributes
2 changes: 2 additions & 0 deletions lib/recurly/resources/PaymentMethod.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const Resource = require('../Resource')
* @prop {number} expMonth - Expiration month.
* @prop {number} expYear - Expiration year.
* @prop {string} firstSix - Credit card number's first six digits.
* @prop {GatewayAttributes} gatewayAttributes - Gateway specific attributes associated with this PaymentMethod
* @prop {string} gatewayCode - An identifier for a specific payment gateway.
* @prop {string} gatewayToken - A token used in place of a credit card in order to perform transactions.
* @prop {string} lastFour - Credit card number's last four digits. Will refer to bank account if payment method is ACH.
Expand All @@ -39,6 +40,7 @@ class PaymentMethod extends Resource {
expMonth: Number,
expYear: Number,
firstSix: String,
gatewayAttributes: 'GatewayAttributes',
gatewayCode: String,
gatewayToken: String,
lastFour: String,
Expand Down
1 change: 1 addition & 0 deletions lib/recurly/resources/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ module.exports.ShippingAddress = require('./ShippingAddress')
module.exports.ExternalAccount = require('./ExternalAccount')
module.exports.BillingInfo = require('./BillingInfo')
module.exports.PaymentMethod = require('./PaymentMethod')
module.exports.GatewayAttributes = require('./GatewayAttributes')
module.exports.FraudInfo = require('./FraudInfo')
module.exports.BillingInfoUpdatedBy = require('./BillingInfoUpdatedBy')
module.exports.CustomField = require('./CustomField')
Expand Down
21 changes: 21 additions & 0 deletions openapi/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17853,6 +17853,17 @@ components:
title: An identifier for a specific payment gateway. Must be used in conjunction
with `gateway_token`.
maxLength: 12
gateway_attributes:
type: object
description: Additional attributes to send to the gateway.
x-class-name: GatewayAttributes
properties:
account_reference:
type: string
description: Used by Adyen gateways. The Shopper Reference value used
when the external token was created. Must be used in conjunction with
gateway_token and gateway_code.
maxLength: 264
amazon_billing_agreement_id:
type: string
title: Amazon billing agreement ID
Expand Down Expand Up @@ -23606,6 +23617,16 @@ components:
type: string
description: An identifier for a specific payment gateway.
maxLength: 13
gateway_attributes:
type: object
description: Gateway specific attributes associated with this PaymentMethod
x-class-name: GatewayAttributes
properties:
account_reference:
type: string
description: Used by Adyen gateways. The Shopper Reference value used
when the external token was created.
maxLength: 264
billing_agreement_id:
type: string
description: Billing Agreement identifier. Only present for Amazon or Paypal
Expand Down