Index: openacs-4/packages/sample-gateway/sql/postgresql/sample-gateway-sc-create.sql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/sample-gateway/sql/postgresql/sample-gateway-sc-create.sql,v diff -u -N --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/sample-gateway/sql/postgresql/sample-gateway-sc-create.sql 24 Apr 2006 14:58:04 -0000 1.2.2.2 @@ -0,0 +1,65 @@ +-- +-- packages/sample-gateway/sql/postgresql/sample-gateway-sc-create.sql +-- +-- @author Deds Castillo (deds@i-manila.com.ph) +-- @creation-date 2005-01-24 +-- @arch-tag: 140e6170-d72b-4066-a486-6fabc49589d8 +-- @cvs-id $Id: sample-gateway-sc-create.sql,v 1.2.2.2 2006/04/24 14:58:04 daveb Exp $ +-- + +-- This is a sample implementation of the PaymentGateway service contract + +select acs_sc_impl__new( + 'PaymentGateway', -- impl_contract_name + 'sample-gateway', -- impl_name + 'sample-gateway' -- impl_owner_name +); + + +select acs_sc_impl_alias__new( + 'PaymentGateway', -- impl_contract_name + 'sample-gateway', -- impl_name + 'Authorize', -- impl_operation_name + 'sample_gateway.Authorize', -- impl_alias + 'TCL' -- impl_pl +); + +select acs_sc_impl_alias__new( + 'PaymentGateway', -- impl_contract_name + 'sample-gateway', -- impl_name + 'ChargeCard', -- impl_operation_name + 'sample_gateway.ChargeCard', -- impl_alias + 'TCL' -- impl_pl +); + +select acs_sc_impl_alias__new( + 'PaymentGateway', -- impl_contract_name + 'sample-gateway', -- impl_name + 'Return', -- impl_operation_name + 'sample_gateway.Return', -- impl_alias + 'TCL' -- impl_pl +); + +select acs_sc_impl_alias__new( + 'PaymentGateway', -- impl_contract_name + 'sample-gateway', -- impl_name + 'Void', -- impl_operation_name + 'sample_gateway.Void', -- impl_alias + 'TCL' -- impl_pl +); + +select acs_sc_impl_alias__new( + 'PaymentGateway', -- impl_contract_name + 'sample-gateway', -- impl_name + 'Info', -- impl_operation_name + 'sample_gateway.Info', -- impl_alias + 'TCL' -- impl_pl +); + +-- Add the binding + +select acs_sc_binding__new ( + 'PaymentGateway', + 'sample-gateway' +); +