Skip to content

Commit

Permalink
Merge pull request #326 from recurly/v3-v2021-02-25-8347308694
Browse files Browse the repository at this point in the history
Generated Latest Changes for v2021-02-25
  • Loading branch information
gilv93 authored Mar 19, 2024
2 parents 7b2092e + 673794f commit b8d67e3
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 4 deletions.
12 changes: 12 additions & 0 deletions lib/recurly.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,10 @@ export declare class PaymentMethod {
* Gateway specific attributes associated with this PaymentMethod
*/
gatewayAttributes?: GatewayAttributes | null;
/**
* Represents the card network preference associated with the billing info for dual badged cards. Must be a supported card network.
*/
cardNetworkPreference?: string | null;
/**
* Billing Agreement identifier. Only present for Amazon or Paypal payment methods.
*/
Expand Down Expand Up @@ -1336,6 +1340,10 @@ export declare class ExternalSubscription {
* When the external subscription trial period ends in the external platform.
*/
trialEndsAt?: Date | null;
/**
* An indication of whether or not the external subscription was purchased in a sandbox environment.
*/
test?: boolean | null;
/**
* When the external subscription was created in Recurly.
*/
Expand Down Expand Up @@ -4125,6 +4133,10 @@ export interface BillingInfoCreate {
*/
onlineBankingPaymentType?: string | null;
cardType?: string | null;
/**
* Represents the card network preference associated with the billing info for dual badged cards. Must be a supported card network.
*/
cardNetworkPreference?: string | null;

}

Expand Down
2 changes: 2 additions & 0 deletions lib/recurly/resources/ExternalSubscription.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const Resource = require('../Resource')
* @prop {string} object - Object type
* @prop {number} quantity - An indication of the quantity of a subscribed item's quantity.
* @prop {string} state - External subscriptions can be active, canceled, expired, or past_due.
* @prop {boolean} test - An indication of whether or not the external subscription was purchased in a sandbox environment.
* @prop {Date} trialEndsAt - When the external subscription trial period ends in the external platform.
* @prop {Date} trialStartedAt - When the external subscription trial period started in the external platform.
* @prop {Date} updatedAt - When the external subscription was updated in Recurly.
Expand All @@ -49,6 +50,7 @@ class ExternalSubscription extends Resource {
object: String,
quantity: Number,
state: String,
test: Boolean,
trialEndsAt: Date,
trialStartedAt: Date,
updatedAt: Date
Expand Down
2 changes: 2 additions & 0 deletions lib/recurly/resources/PaymentMethod.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const Resource = require('../Resource')
* @typedef {Object} PaymentMethod
* @prop {string} accountType - The bank account type. Only present for ACH payment methods.
* @prop {string} billingAgreementId - Billing Agreement identifier. Only present for Amazon or Paypal payment methods.
* @prop {string} cardNetworkPreference - Represents the card network preference associated with the billing info for dual badged cards. Must be a supported card network.
* @prop {string} cardType - Visa, MasterCard, American Express, Discover, JCB, etc.
* @prop {string} ccBinCountry - The 2-letter ISO 3166-1 alpha-2 country code associated with the credit card BIN, if known by Recurly. Available on the BillingInfo object only. Available when the BIN country lookup feature is enabled.
* @prop {number} expMonth - Expiration month.
Expand All @@ -35,6 +36,7 @@ class PaymentMethod extends Resource {
return {
accountType: String,
billingAgreementId: String,
cardNetworkPreference: String,
cardType: String,
ccBinCountry: String,
expMonth: Number,
Expand Down
24 changes: 22 additions & 2 deletions openapi/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8617,8 +8617,6 @@ paths:
summary: Apply available credit to a pending or past due charge invoice
description: Apply credit payment to the outstanding balance on an existing
charge invoice from an account’s available balance from existing credit invoices.
Credit that was refunded from the invoice cannot be applied back to the invoice
as payment.
parameters:
- "$ref": "#/components/parameters/site_id"
- "$ref": "#/components/parameters/invoice_id"
Expand Down Expand Up @@ -18389,6 +18387,10 @@ components:
deprecated: true
card_type:
"$ref": "#/components/schemas/CardTypeEnum"
card_network_preference:
description: Represents the card network preference associated with the
billing info for dual badged cards. Must be a supported card network.
"$ref": "#/components/schemas/CardNetworkEnum"
BillingInfoVerify:
type: object
properties:
Expand Down Expand Up @@ -24173,6 +24175,12 @@ components:
title: Trial ends at
description: When the external subscription trial period ends in the external
platform.
test:
type: boolean
title: Test
description: An indication of whether or not the external subscription was
purchased in a sandbox environment.
default: false
created_at:
type: string
format: date-time
Expand Down Expand Up @@ -24427,6 +24435,10 @@ components:
Reference value used when the external token was created. For Braintree
the PayPal PayerID is populated in the response.
maxLength: 264
card_network_preference:
description: Represents the card network preference associated with the
billing info for dual badged cards. Must be a supported card network.
"$ref": "#/components/schemas/CardNetworkEnum"
billing_agreement_id:
type: string
description: Billing Agreement identifier. Only present for Amazon or Paypal
Expand Down Expand Up @@ -25469,6 +25481,14 @@ components:
- Unknown
- Visa
- Tarjeta Naranja
CardNetworkEnum:
type: string
enum:
- Bancontact
- CartesBancaires
- Dankort
- MasterCard
- Visa
AccountTypeEnum:
type: string
enum:
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b8d67e3

Please sign in to comment.