Skip to content

Commit

Permalink
Merge pull request #765 from recurly/v3-v2019-10-10-1684788284
Browse files Browse the repository at this point in the history
Generated Latest Changes for v2019-10-10 (gateway_attributes on PaymentMethod)
  • Loading branch information
gilv93 authored May 22, 2023
2 parents 7e33694 + e1ad1f8 commit 0d094a9
Show file tree
Hide file tree
Showing 3 changed files with 90 additions and 0 deletions.
43 changes: 43 additions & 0 deletions lib/recurly/resources/gateway_attributes.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?php
/**
* 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.
*/
namespace Recurly\Resources;

use Recurly\RecurlyResource;

// phpcs:disable
class GatewayAttributes extends RecurlyResource
{
private $_account_reference;

protected static $array_hints = [
];


/**
* Getter method for the account_reference attribute.
* Used by Adyen gateways. The Shopper Reference value used when the external token was created.
*
* @return ?string
*/
public function getAccountReference(): ?string
{
return $this->_account_reference;
}

/**
* Setter method for the account_reference attribute.
*
* @param string $account_reference
*
* @return void
*/
public function setAccountReference(string $account_reference): void
{
$this->_account_reference = $account_reference;
}
}
24 changes: 24 additions & 0 deletions lib/recurly/resources/payment_method.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class PaymentMethod extends RecurlyResource
private $_exp_month;
private $_exp_year;
private $_first_six;
private $_gateway_attributes;
private $_gateway_code;
private $_gateway_token;
private $_last_four;
Expand Down Expand Up @@ -193,6 +194,29 @@ public function setFirstSix(string $first_six): void
$this->_first_six = $first_six;
}

/**
* Getter method for the gateway_attributes attribute.
* Gateway specific attributes associated with this PaymentMethod
*
* @return ?\Recurly\Resources\GatewayAttributes
*/
public function getGatewayAttributes(): ?\Recurly\Resources\GatewayAttributes
{
return $this->_gateway_attributes;
}

/**
* Setter method for the gateway_attributes attribute.
*
* @param \Recurly\Resources\GatewayAttributes $gateway_attributes
*
* @return void
*/
public function setGatewayAttributes(\Recurly\Resources\GatewayAttributes $gateway_attributes): void
{
$this->_gateway_attributes = $gateway_attributes;
}

/**
* Getter method for the gateway_code attribute.
* An identifier for a specific payment gateway.
Expand Down
23 changes: 23 additions & 0 deletions openapi/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16645,6 +16645,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 @@ -21470,6 +21481,7 @@ components:
- force_collect
- refunded_externally
- chargeback
- external_recovery
currency:
type: string
title: Currency
Expand Down Expand Up @@ -22185,6 +22197,7 @@ components:
object:
type: string
enum:
- bacs
- credit_card
- paypal
- amazon
Expand Down Expand Up @@ -22255,6 +22268,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

0 comments on commit 0d094a9

Please sign in to comment.