[freeside-commits] branch FREESIDE_2_3_BRANCH updated. b5aceddf3c5720330e1027d46fea36f4ab06b55a
Ivan
ivan at 420.am
Tue May 8 00:38:28 PDT 2012
The branch, FREESIDE_2_3_BRANCH has been updated
via b5aceddf3c5720330e1027d46fea36f4ab06b55a (commit)
from 28c3a49c00c1c142cfbaf685b189b3f6a88c73f5 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit b5aceddf3c5720330e1027d46fea36f4ab06b55a
Author: Ivan Kohler <ivan at freeside.biz>
Date: Tue May 8 00:38:25 2012 -0700
add month, year, address info to validate_payment selfservice API call, pkg_label to list_pkgs, RT#17617
diff --git a/FS/FS/ClientAPI/MyAccount.pm b/FS/FS/ClientAPI/MyAccount.pm
index 88a5675..a07e345 100644
--- a/FS/FS/ClientAPI/MyAccount.pm
+++ b/FS/FS/ClientAPI/MyAccount.pm
@@ -980,6 +980,8 @@ sub validate_payment {
'card_type' => $card_type,
'paydate' => $p->{'year'}. '-'. $p->{'month'}. '-01',
'paydate_pretty' => $p->{'month'}. ' / '. $p->{'year'},
+ 'month' => $p->{'month'},
+ 'year' => $p->{'year'},
'payname' => $payname,
'paybatch' => $paybatch, #this doesn't actually do anything
'paycvv' => $paycvv,
@@ -1004,7 +1006,9 @@ sub store_payment {
_cache->set( 'payment_'.$p->{'session_id'}, $validate, $timeout );
+{ map { $_=>$validate->{$_} }
- qw( card_type paymask payname paydate_pretty amount )
+ qw( card_type paymask payname paydate_pretty month year amount
+ address1 address2 city state zip country
+ )
};
}
@@ -1511,6 +1515,7 @@ sub list_pkgs {
my $primary_cust_svc = $_->primary_cust_svc;
+{ $_->hash,
$_->part_pkg->hash,
+ pkg_label => $_->pkg_label,
status => $_->status,
part_svc =>
[ map $_->hashref, $_->available_part_svc ],
-----------------------------------------------------------------------
Summary of changes:
FS/FS/ClientAPI/MyAccount.pm | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
More information about the freeside-commits
mailing list