Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
added eppn to the registration record
ij committed Aug 8, 2022
1 parent c299f2c commit 8228720
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions lib/sf/reg_registration.rb
@@ -53,10 +53,10 @@ def create_from_registration
attrs['payment_reference_id__c'] = payment.pnref
attrs['bank_authorization_code__c'] = payment.authcode
end
if sf_reg_id = Sf.client.create!('RegRegistration__c', attrs)
if (sf_reg_id = Sf.client.create!('RegRegistration__c', attrs))
registration.reg_items.each do |reg_item|
# TODO: rescue and rollback
reg_item.save if reg_item.sf_reg_item_id = Sf::RegItem.create_for(reg_item, sf_reg_id)
reg_item.save if (reg_item.sf_reg_item_id = Sf::RegItem.create_for(reg_item, sf_reg_id))
end
end
sf_reg_id
@@ -109,7 +109,8 @@ def registration_mapping
'reference_id' => 'reference_id__c',
'balance' => 'balance__c',
'from_ip_address' => 'ip_address__c',
'sf_reg_event_id' => 'reg_event_id__c'
'sf_reg_event_id' => 'reg_event_id__c',
'eppn' => 'eppn__c'
}
end

2 changes: 1 addition & 1 deletion lib/sf/version.rb
@@ -1,3 +1,3 @@
module Sf
VERSION = "0.1.69"
VERSION = "0.1.70"
end

0 comments on commit 8228720

Please sign in to comment.