Skip to content

Commit 19bfc16

Browse files
authored
Merge pull request #1 from gr4vy/WWW-I255/remove-unnecessary-support-approve-intent
Remove unnecessary support for approve intent
2 parents e10137a + f547af0 commit 19bfc16

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

docs/Model/TransactionRequest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
88
**currency** | **string** | A supported ISO-4217 currency code. |
99
**payment_method** | [**\Gr4vy\model\TransactionPaymentMethodRequest**](TransactionPaymentMethodRequest.md) | |
1010
**store** | **bool** | Whether or not to also try and store the payment method with us so that it can be used again for future use. This is only supported for payment methods that support this feature. | [optional] [default to false]
11-
**intent** | **string** | Defines the intent of this API call. This determines the desired initial state of the transaction. * `approve` - Captures approval for the transaction from the user but does not authorize it. This is only available to payment methods that require explicit approval, like PayPal. * `authorize` - (Default) Optionally approves and then authorizes a transaction but does not capture the funds. * `capture` - Optionally approves and then authorizes and captures the funds of the transaction. | [optional] [default to INTENT_AUTHORIZE]
11+
**intent** | **string** | Defines the intent of this API call. This determines the desired initial state of the transaction. * `authorize` - (Default) Optionally approves and then authorizes a transaction but does not capture the funds. * `capture` - Optionally approves and then authorizes and captures the funds of the transaction. | [optional] [default to INTENT_AUTHORIZE]
1212
**external_identifier** | **string** | An external identifier that can be used to match the transaction against your own records. | [optional]
1313
**environment** | **string** | Defines the environment to create this transaction in. Setting this to anything other than `production` will force Gr4vy to use the payment a service configured for that environment. | [optional]
1414

lib/model/TransactionRequest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,6 @@ public function getModelName()
194194
return self::$openAPIModelName;
195195
}
196196

197-
const INTENT_APPROVE = 'approve';
198197
const INTENT_AUTHORIZE = 'authorize';
199198
const INTENT_CAPTURE = 'capture';
200199
const ENVIRONMENT_DEVELOPMENT = 'development';
@@ -209,7 +208,6 @@ public function getModelName()
209208
public function getIntentAllowableValues()
210209
{
211210
return [
212-
self::INTENT_APPROVE,
213211
self::INTENT_AUTHORIZE,
214212
self::INTENT_CAPTURE,
215213
];
@@ -413,7 +411,7 @@ public function getIntent()
413411
/**
414412
* Sets intent
415413
*
416-
* @param string|null $intent Defines the intent of this API call. This determines the desired initial state of the transaction. * `approve` - Captures approval for the transaction from the user but does not authorize it. This is only available to payment methods that require explicit approval, like PayPal. * `authorize` - (Default) Optionally approves and then authorizes a transaction but does not capture the funds. * `capture` - Optionally approves and then authorizes and captures the funds of the transaction.
414+
* @param string|null $intent Defines the intent of this API call. This determines the desired initial state of the transaction. * `authorize` - (Default) Optionally approves and then authorizes a transaction but does not capture the funds. * `capture` - Optionally approves and then authorizes and captures the funds of the transaction.
417415
*
418416
* @return self
419417
*/

0 commit comments

Comments
 (0)