Skip to content

Commit

Permalink
Merge pull request #803 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 6b33edb + 9ae12ec commit a58515e
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 2 deletions.
24 changes: 24 additions & 0 deletions lib/recurly/resources/external_subscription.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class ExternalSubscription extends RecurlyResource
private $_object;
private $_quantity;
private $_state;
private $_test;
private $_trial_ends_at;
private $_trial_started_at;
private $_updated_at;
Expand Down Expand Up @@ -380,6 +381,29 @@ public function setState(string $state): void
$this->_state = $state;
}

/**
* Getter method for the test attribute.
* An indication of whether or not the external subscription was purchased in a sandbox environment.
*
* @return ?bool
*/
public function getTest(): ?bool
{
return $this->_test;
}

/**
* Setter method for the test attribute.
*
* @param bool $test
*
* @return void
*/
public function setTest(bool $test): void
{
$this->_test = $test;
}

/**
* Getter method for the trial_ends_at attribute.
* When the external subscription trial period ends in the external platform.
Expand Down
24 changes: 24 additions & 0 deletions lib/recurly/resources/payment_method.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class PaymentMethod extends RecurlyResource
{
private $_account_type;
private $_billing_agreement_id;
private $_card_network_preference;
private $_card_type;
private $_cc_bin_country;
private $_exp_month;
Expand Down Expand Up @@ -80,6 +81,29 @@ public function setBillingAgreementId(string $billing_agreement_id): void
$this->_billing_agreement_id = $billing_agreement_id;
}

/**
* Getter method for the card_network_preference attribute.
* Represents the card network preference associated with the billing info for dual badged cards. Must be a supported card network.
*
* @return ?string
*/
public function getCardNetworkPreference(): ?string
{
return $this->_card_network_preference;
}

/**
* Setter method for the card_network_preference attribute.
*
* @param string $card_network_preference
*
* @return void
*/
public function setCardNetworkPreference(string $card_network_preference): void
{
$this->_card_network_preference = $card_network_preference;
}

/**
* Getter method for the card_type attribute.
* Visa, MasterCard, American Express, Discover, JCB, etc.
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

0 comments on commit a58515e

Please sign in to comment.