Skip to content

Commit 3e93d3f

Browse files
authored
Merge pull request #781 from recurly/v3-v2021-02-25-5813158059
Generated Latest Changes for v2021-02-25 (action_result)
2 parents f8ccb66 + 091806e commit 3e93d3f

File tree

4 files changed

+68
-6
lines changed

4 files changed

+68
-6
lines changed

lib/recurly/resources/gateway_attributes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class GatewayAttributes extends RecurlyResource
2020

2121
/**
2222
* Getter method for the account_reference attribute.
23-
* Used by Adyen gateways. The Shopper Reference value used when the external token was created.
23+
* Used by Adyen and Braintree gateways. For Adyen the Shopper Reference value used when the external token was created. For Braintree the PayPal PayerID is populated in the response.
2424
*
2525
* @return ?string
2626
*/

lib/recurly/resources/subscription.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
class Subscription extends RecurlyResource
1414
{
1515
private $_account;
16+
private $_action_result;
1617
private $_activated_at;
1718
private $_active_invoice_id;
1819
private $_add_ons;
@@ -96,6 +97,29 @@ public function setAccount(\Recurly\Resources\AccountMini $account): void
9697
$this->_account = $account;
9798
}
9899

100+
/**
101+
* Getter method for the action_result attribute.
102+
* Action result params to be used in Recurly-JS to complete a payment when using asynchronous payment methods, e.g., Boleto, iDEAL and Sofort.
103+
*
104+
* @return ?object
105+
*/
106+
public function getActionResult(): ?object
107+
{
108+
return $this->_action_result;
109+
}
110+
111+
/**
112+
* Setter method for the action_result attribute.
113+
*
114+
* @param object $action_result
115+
*
116+
* @return void
117+
*/
118+
public function setActionResult(object $action_result): void
119+
{
120+
$this->_action_result = $action_result;
121+
}
122+
99123
/**
100124
* Getter method for the activated_at attribute.
101125
* Activated at

lib/recurly/resources/transaction.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
class Transaction extends RecurlyResource
1414
{
1515
private $_account;
16+
private $_action_result;
1617
private $_amount;
1718
private $_avs_check;
1819
private $_backup_payment_method_used;
@@ -79,6 +80,29 @@ public function setAccount(\Recurly\Resources\AccountMini $account): void
7980
$this->_account = $account;
8081
}
8182

83+
/**
84+
* Getter method for the action_result attribute.
85+
* Action result params to be used in Recurly-JS to complete a payment when using asynchronous payment methods, e.g., Boleto, iDEAL and Sofort.
86+
*
87+
* @return ?object
88+
*/
89+
public function getActionResult(): ?object
90+
{
91+
return $this->_action_result;
92+
}
93+
94+
/**
95+
* Setter method for the action_result attribute.
96+
*
97+
* @param object $action_result
98+
*
99+
* @return void
100+
*/
101+
public function setActionResult(object $action_result): void
102+
{
103+
$this->_action_result = $action_result;
104+
}
105+
82106
/**
83107
* Getter method for the amount attribute.
84108
* Total transaction amount sent to the payment gateway.

openapi/api.yaml

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18204,9 +18204,10 @@ components:
1820418204
properties:
1820518205
account_reference:
1820618206
type: string
18207-
description: Used by Adyen gateways. The Shopper Reference value used
18208-
when the external token was created. Must be used in conjunction with
18209-
gateway_token and gateway_code.
18207+
description: Used by Adyen and Braintree gateways. For Adyen the Shopper
18208+
Reference value used when the external token was created. Must be
18209+
used in conjunction with gateway_token and gateway_code. For Braintree
18210+
the PayPal PayerID is populated in the response.
1821018211
maxLength: 264
1821118212
amazon_billing_agreement_id:
1821218213
type: string
@@ -21712,6 +21713,12 @@ components:
2171221713
format: date-time
2171321714
description: When the subscription was converted from a gift card.
2171421715
title: Converted at
21716+
action_result:
21717+
type: object
21718+
description: Action result params to be used in Recurly-JS to complete a
21719+
payment when using asynchronous payment methods, e.g., Boleto, iDEAL and
21720+
Sofort.
21721+
title: Action result
2171521722
SubscriptionAddOn:
2171621723
type: object
2171721724
title: Subscription Add-on
@@ -23027,6 +23034,12 @@ components:
2302723034
format: date-time
2302823035
title: Collected at, or if not collected yet, the time the transaction was
2302923036
created.
23037+
action_result:
23038+
type: object
23039+
description: Action result params to be used in Recurly-JS to complete a
23040+
payment when using asynchronous payment methods, e.g., Boleto, iDEAL and
23041+
Sofort.
23042+
title: Action result
2303023043
ExternalTransaction:
2303123044
type: object
2303223045
properties:
@@ -24149,8 +24162,9 @@ components:
2414924162
properties:
2415024163
account_reference:
2415124164
type: string
24152-
description: Used by Adyen gateways. The Shopper Reference value used
24153-
when the external token was created.
24165+
description: Used by Adyen and Braintree gateways. For Adyen the Shopper
24166+
Reference value used when the external token was created. For Braintree
24167+
the PayPal PayerID is populated in the response.
2415424168
maxLength: 264
2415524169
billing_agreement_id:
2415624170
type: string

0 commit comments

Comments
 (0)