NAME
Business::CPI::Role::Buyer - Information about the client
VERSION
version 0.924
DESCRIPTION
This role holds information about the buyer in a shopping cart. The address attributes are available so that if shipping is required, the buyer's address will be passed to the gateway (if the attributes were set).
ATTRIBUTES
Buyer's e-mail, which usually is their unique identifier in the gateway.
name
Buyer's name.
address_line1
address_line2
Some gateways (such as PayPal) do not define the street address as specific separate fields (such as Street, Number, District, etc). Instead, they only accept two address lines. For our purposes, we define a lazy builder for these attributes in case they are not directly set, using the specific fields mentioned above.
address_street
Street name for shipping.
address_number
Address number for shipping.
address_district
District name.
address_complement
If any extra information is required to find the address set this field.
address_zip_code
Postal code.
address_city
City.
address_state
State.
address_country
Locale::Country code for the country. You can set using the ISO 3166-1 two-letter code, or the full name in English. It will coerce it and store the ISO 3166-1 two-letter code.
NOTE
This role will soon be ported to use Business::CPI::Role::Account, or deprecated. So beware of backcompatibility issues. In particular, all attributes prefixed with address_*
will lose the prefix and be set using Business::CPI::Role::Account::Address.
AUTHOR
André Walker <andre@andrewalker.net>
COPYRIGHT AND LICENSE
This software is copyright (c) 2015 by André Walker.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.