Skip to content

Commit d296690

Browse files
committed
Added updated for yml of UpdateCustomerPaymentProfileRequest
1 parent 1a90f73 commit d296690

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

scripts/post-patches.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
#WORKING --- Remember to escape $ with \$ and replace ' with " and \ with \\ in the replacement expression
88
#Summary --- Replaces the setStartDate() method with the correct method. To be run in Git Bash or unix shell
99
#File affected - lib/net/authorize/api/contract/v1/PaymentScheduleType.php
10-
#Run in Git Bash or unix shell
10+
#Run in Git Bash or unix shell like (file permission to be set to executable:
11+
### sh post-patches.sh
1112
#Assumption - No child code blocks (curly-brace pairs) within the setStartDate method
1213
#Test file - testfile.txt
1314
#Options used:
@@ -27,13 +28,16 @@ git diff -- lib/net/authorize/api/contract/v1/PaymentScheduleType.php
2728

2829
#WORKING --- Remember to escape $ with \$ and replace ' with " and \ with \\
2930
#Summary --- Replaces the CustomerProfileInfoExType with CustomerProfileExType
30-
#Files affected - UpdateCustomerProfileRequest.php
31+
#Files affected - UpdateCustomerProfileRequest.php and UpdateCustomerProfileRequest.yml
3132
#Run in Git Bash or unix shell
3233
#Assumption - CustomerProfileInfoExType present as a whole word or at starting of a word
3334
#perl -0777 -pe 's/\bCustomerProfileInfoExType/CustomerProfileExType/gs' lib/net/authorize/api/contract/v1/testfile.txt
3435

3536
perl -0777 -i -pe 's/\bCustomerProfileInfoExType/CustomerProfileExType/gs' lib/net/authorize/api/contract/v1/UpdateCustomerProfileRequest.php
3637
git diff -- lib/net/authorize/api/contract/v1/UpdateCustomerProfileRequest.php
3738

39+
perl -0777 -i -pe 's/\bCustomerProfileInfoExType/CustomerProfileExType/gs' lib/net/authorize/api/yml/v1/UpdateCustomerProfileRequest.yml
40+
git diff -- lib/net/authorize/api/yml/v1/UpdateCustomerProfileRequest.yml
41+
3842
##References
3943
# - http://www.rexegg.com/regex-perl-one-liners.html

0 commit comments

Comments
 (0)