André Walker > Business-CPI-0.908 > Business::CPI::Buyer

Download:
Business-CPI-0.908.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.908   Source  

NAME ^

Business::CPI::Buyer - Information about the client

VERSION ^

version 0.908

DESCRIPTION ^

This class 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 ^

email

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 class will soon be ported to use Business::CPI::Account, either becoming a role, or extending it via inheritance. So beware of backcompatibility issues. In particular, all attributes prefixed with address_* will lose the prefix and be set using the Business::CPI::Account::Address class.

AUTHOR ^

André Walker <andre@andrewalker.net>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2013 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.

syntax highlighting: