Skip to content

Commit 3477df8

Browse files
author
Recurly Integrations
authored
Generated Latest Changes for v2021-02-25
1 parent b01f98c commit 3477df8

File tree

3 files changed

+126
-3
lines changed

3 files changed

+126
-3
lines changed

lib/recurly/resources/transaction.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ class Transaction extends RecurlyResource
3838
private $_ip_address_country;
3939
private $_ip_address_v4;
4040
private $_merchant_reason_code;
41+
private $_next_action;
4142
private $_object;
4243
private $_origin;
4344
private $_original_transaction_id;
@@ -673,6 +674,29 @@ public function setMerchantReasonCode(string $merchant_reason_code): void
673674
$this->_merchant_reason_code = $merchant_reason_code;
674675
}
675676

677+
/**
678+
* Getter method for the next_action attribute.
679+
* Next action values are used for any required customer follow-up action. Currently, this is supported for Ebanx when using Pix Automatico.
680+
*
681+
* @return ?\Recurly\Resources\TransactionNextAction
682+
*/
683+
public function getNextAction(): ?\Recurly\Resources\TransactionNextAction
684+
{
685+
return $this->_next_action;
686+
}
687+
688+
/**
689+
* Setter method for the next_action attribute.
690+
*
691+
* @param \Recurly\Resources\TransactionNextAction $next_action
692+
*
693+
* @return void
694+
*/
695+
public function setNextAction(\Recurly\Resources\TransactionNextAction $next_action): void
696+
{
697+
$this->_next_action = $next_action;
698+
}
699+
676700
/**
677701
* Getter method for the object attribute.
678702
* Object type
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
<?php
2+
/**
3+
* This file is automatically created by Recurly's OpenAPI generation process
4+
* and thus any edits you make by hand will be lost. If you wish to make a
5+
* change to this file, please create a Github issue explaining the changes you
6+
* need and we will usher them to the appropriate places.
7+
*/
8+
namespace Recurly\Resources;
9+
10+
use Recurly\RecurlyResource;
11+
12+
// phpcs:disable
13+
class TransactionNextAction extends RecurlyResource
14+
{
15+
private $_type;
16+
private $_value;
17+
18+
protected static $array_hints = [
19+
];
20+
21+
22+
/**
23+
* Getter method for the type attribute.
24+
* The type of next action required.
25+
*
26+
* @return ?string
27+
*/
28+
public function getType(): ?string
29+
{
30+
return $this->_type;
31+
}
32+
33+
/**
34+
* Setter method for the type attribute.
35+
*
36+
* @param string $type
37+
*
38+
* @return void
39+
*/
40+
public function setType(string $type): void
41+
{
42+
$this->_type = $type;
43+
}
44+
45+
/**
46+
* Getter method for the value attribute.
47+
* The value associated with the next action type.
48+
*
49+
* @return ?string
50+
*/
51+
public function getValue(): ?string
52+
{
53+
return $this->_value;
54+
}
55+
56+
/**
57+
* Setter method for the value attribute.
58+
*
59+
* @param string $value
60+
*
61+
* @return void
62+
*/
63+
public function setValue(string $value): void
64+
{
65+
$this->_value = $value;
66+
}
67+
}

openapi/api.yaml

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18373,9 +18373,11 @@ components:
1837318373
street1:
1837418374
type: string
1837518375
title: Street 1
18376+
maxLength: 50
1837618377
street2:
1837718378
type: string
1837818379
title: Street 2
18380+
maxLength: 50
1837918381
city:
1838018382
type: string
1838118383
title: City
@@ -23977,8 +23979,10 @@ components:
2397723979
gateway_code:
2397823980
type: string
2397923981
title: Gateway Code
23980-
description: If present, this subscription's transactions will use the payment
23981-
gateway with this code.
23982+
description: If present, this subscription's subsequent transactions will
23983+
use the payment gateway with this code. To select a payment gateway to
23984+
use when creating a Subscription, be sure to set the `account.billing_info.gateway_code`
23985+
as well.
2398223986
maxLength: 13
2398323987
transaction_type:
2398423988
description: An optional type designation for the payment gateway transaction
@@ -24634,6 +24638,22 @@ components:
2463424638
title: VAT Number
2463524639
fraud_info:
2463624640
"$ref": "#/components/schemas/TransactionFraudInfo"
24641+
next_action:
24642+
type: object
24643+
x-class-name: TransactionNextAction
24644+
description: Next action values are used for any required customer follow-up
24645+
action. Currently, this is supported for Ebanx when using Pix Automatico.
24646+
properties:
24647+
type:
24648+
type: string
24649+
title: Next action type
24650+
description: The type of next action required.
24651+
"$ref": "#/components/schemas/NextActionTypeEnum"
24652+
value:
24653+
type: string
24654+
title: Next action value
24655+
description: The value associated with the next action type.
24656+
title: Next action
2463724657
TransactionFraudInfo:
2463824658
type: object
2463924659
title: Fraud information
@@ -27043,9 +27063,11 @@ components:
2704327063
- credit_card
2704427064
- eft
2704527065
- google_pay
27066+
- mercadopago
2704627067
- money_order
2704727068
- other
2704827069
- paypal
27070+
- pix_automatico
2704927071
- roku
2705027072
- sepadirectdebit
2705127073
- wire_transfer
@@ -27183,6 +27205,11 @@ components:
2718327205
- scheduled
2718427206
- success
2718527207
- void
27208+
NextActionTypeEnum:
27209+
type: string
27210+
description: The type of next action required for the transaction.
27211+
enum:
27212+
- qr_code
2718627213
CvvCheckEnum:
2718727214
type: string
2718827215
enum:
@@ -27259,6 +27286,9 @@ components:
2725927286
- boleto
2726027287
- cash_app
2726127288
- upi_autopay
27289+
- pix_automatico
27290+
- mercadopago
27291+
- klarna
2726227292
CardTypeEnum:
2726327293
type: string
2726427294
enum:
@@ -27584,10 +27614,12 @@ components:
2758427614
AchTypeEnum:
2758527615
type: string
2758627616
description: The payment method type for a non-credit card based billing info.
27587-
`bacs` and `becs` are the only accepted values.
27617+
`bacs`, `becs`, `pix-automatico`, `mercadopago` are the only accepted values.
2758827618
enum:
2758927619
- bacs
2759027620
- becs
27621+
- pix-automatico
27622+
- mercadopago
2759127623
AchAccountTypeEnum:
2759227624
type: string
2759327625
description: The bank account type. (ACH only)

0 commit comments

Comments
 (0)