NAME
Business::cXML::Request::PunchOutSetup - cXML punch-out setup request payload
SYNOPSIS
use Business::cXML;
my $cxml = new Business::cXML;
my $posr = $cxml->new_request('PunchOutSetup');
$posr->checkout_url = 'https://www.example.com/welcome_back';
DESCRIPTION
Object representation of a cXML punch-out setup request.
If no Contact
information is supplied directly in the request, this module will try to infer the information (name and e-mail address) from any recognized Extrinsic
elements: e-mail is obtained from UserEmail
and name from UserFullName
, UserPrintableName
, FirstName
/LastName
, User
, UniqueUsername
or UniqueName
.
Caution: This implementation is centered around create
operations and thus doesn't implement SelectedItem
and ItemOut
.
Also supports the ReturnFrame
extrinsic required by Aquiire (Vinimaya). See "checkout_target()".
METHODS
See "COMMON METHODS" in Business::cXML::Object.
PROPERTY METHODS
See "PROPERTY METHODS" in Business::cXML::Object for how the following operate.
operation
-
Mandatory, one of:
create
(default),inspect
,edit
,source
-
Mandatory
checkout_url
-
Optional, the URL to which a subsequent form post should submit a
PunchOutOrderMessage
. checkout_target
-
Optional, "ReturnFrame" extrinsic which some buyers use to specify the target frame for the checkout POST form.
contacts[]
-
Optional, Business::cXML::Contact objects
shipto
-
Optional, Business::cXML::ShipTo object
AUTHOR
Stéphane Lavergne https://github.com/vphantom
ACKNOWLEDGEMENTS
Graph X Design Inc. https://www.gxd.ca/ sponsored this project.
COPYRIGHT & LICENSE
Copyright (c) 2017-2018 Stéphane Lavergne https://github.com/vphantom
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.