Skip to content

Commit

Permalink
Exposing Payment Link Expire action
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhamk67 committed Nov 21, 2024
1 parent 8c31bd1 commit 21562d7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions force-app/main/default/classes/PaymentLinkExpireAction.cls
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
public with sharing class PaymentLinkExpireAction {
global with sharing class PaymentLinkExpireAction {
@InvocableMethod(Label = 'Force Expire Link' Category = 'Payment Link' Callout = true)
public static void forceExpireLink(List<PBLForceExpire> pblForceExpireList) {
global static void forceExpireLink(List<PBLForceExpire> pblForceExpireList) {
if (pblForceExpireList == null || pblForceExpireList.isEmpty() || pblForceExpireList[0].orderSummaryId == null) {
throw new IllegalArgumentException('Required order summary Id is missing!');
}
Expand All @@ -25,7 +25,7 @@ public with sharing class PaymentLinkExpireAction {
update activePaymentLinks;
}

public class PBLForceExpire {
global class PBLForceExpire {
@InvocableVariable(Required=true)
public Id orderSummaryId;
}
Expand Down

0 comments on commit 21562d7

Please sign in to comment.