You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/recurly/resources/subscription.php
+24
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,7 @@ class Subscription extends RecurlyResource
21
21
private$_auto_renew;
22
22
private$_bank_account_authorized_at;
23
23
private$_billing_info_id;
24
+
private$_business_entity_id;
24
25
private$_canceled_at;
25
26
private$_collection_method;
26
27
private$_converted_at;
@@ -281,6 +282,29 @@ public function setBillingInfoId(string $billing_info_id): void
281
282
$this->_billing_info_id = $billing_info_id;
282
283
}
283
284
285
+
/**
286
+
* Getter method for the business_entity_id attribute.
287
+
* The ID of the business entity associated with the subscription. This will be `null` if the subscription relies on resolving the business entity during renewal.
288
+
*
289
+
* @return ?string
290
+
*/
291
+
publicfunctiongetBusinessEntityId(): ?string
292
+
{
293
+
return$this->_business_entity_id;
294
+
}
295
+
296
+
/**
297
+
* Setter method for the business_entity_id attribute.
Copy file name to clipboardExpand all lines: lib/recurly/resources/transaction.php
+57
Original file line number
Diff line number
Diff line change
@@ -33,9 +33,11 @@ class Transaction extends RecurlyResource
33
33
private$_gateway_response_time;
34
34
private$_gateway_response_values;
35
35
private$_id;
36
+
private$_indicator;
36
37
private$_invoice;
37
38
private$_ip_address_country;
38
39
private$_ip_address_v4;
40
+
private$_merchant_reason_code;
39
41
private$_object;
40
42
private$_origin;
41
43
private$_original_transaction_id;
@@ -542,6 +544,29 @@ public function setId(string $id): void
542
544
$this->_id = $id;
543
545
}
544
546
547
+
/**
548
+
* Getter method for the indicator attribute.
549
+
* Must be sent for one-time transactions in order to provide context on which entity is submitting the transaction to ensure proper fraud checks are observed, such as 3DS. If the customer is in session, send `customer`. If this is a merchant initiated one-time transaction, send `merchant`.
@@ -616,6 +641,38 @@ public function setIpAddressV4(string $ip_address_v4): void
616
641
$this->_ip_address_v4 = $ip_address_v4;
617
642
}
618
643
644
+
/**
645
+
* Getter method for the merchant_reason_code attribute.
646
+
* This conditional parameter is useful for merchants in specific industries who need to submit one-time Merchant Initiated transactions in specific cases.
647
+
Not all gateways support these methods, but will support a generic one-time Merchant Initiated transaction.
648
+
Only use this if the initiator value is "merchant". Otherwise, it will be ignored.
649
+
- Incremental: Send `incremental` with an additional purchase if the original authorization amount is not sufficient to cover the costs of your service or product. For example, if the customer adds goods or services or there are additional expenses.
650
+
- No Show: Send `no_show` if you charge customers a fee due to an agreed-upon cancellation policy in your industry.
651
+
- Resubmission: Send `resubmission` if you need to attempt collection on a declined transaction. You may also use the force collection behavior which has the same effect.
652
+
- Service Extension: Send `service_extension` if you are in a service industry and the customer has increased/extended their service in some way. For example: adding a day onto a car rental agreement.
653
+
- Split Shipment: Send `split_shipment` if you sell physical product and need to split up a shipment into multiple transactions when the customer is no longer in session.
654
+
- Top Up: Send `top_up` if you process one-time transactions based on a pre-arranged agreement with your customer where there is a pre-arranged account balance that needs maintaining. For example, if the customer has agreed to maintain an account balance of 30.00 and their current balance is 20.00, the MIT amount would be at least 10.00 to meet that 30.00 threshold.
655
+
656
+
*
657
+
* @return ?string
658
+
*/
659
+
publicfunctiongetMerchantReasonCode(): ?string
660
+
{
661
+
return$this->_merchant_reason_code;
662
+
}
663
+
664
+
/**
665
+
* Setter method for the merchant_reason_code attribute.
0 commit comments