| 1 | package Business::TrueLayer::Address; | ||
| 2 | |||
| 3 | =head1 NAME | ||
| 4 | |||
| 5 | Business::TrueLayer::Address - class representing an address | ||
| 6 | as used in the TrueLayer v3 API. | ||
| 7 | |||
| 8 | https://docs.truelayer.com/docs/merchant-accounts-1 | ||
| 9 | |||
| 10 | =head1 SYNOPSIS | ||
| 11 | |||
| 12 | my $Address = Business::TrueLayer::Address->new( | ||
| 13 | type => ... | ||
| 14 | ); | ||
| 15 | |||
| 16 | =cut | ||
| 17 | |||
| 18 | 6 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 19 | 6 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 20 | 6 | ▶ | use feature qw/ signatures postderef /; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 21 | |||
| 22 | 6 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 23 | 6 | ▶ | no warnings qw/ experimental::signatures experimental::postderef /; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 24 | |||
| 25 | =head1 ATTRIBUTES | ||
| 26 | |||
| 27 | =over | ||
| 28 | |||
| 29 | =item address_line1 (Str) | ||
| 30 | |||
| 31 | =item city (Str) | ||
| 32 | |||
| 33 | =item state (Str) | ||
| 34 | |||
| 35 | =item zip (Str) | ||
| 36 | |||
| 37 | =item country_code (Str) | ||
| 38 | |||
| 39 | =back | ||
| 40 | |||
| 41 | =cut | ||
| 42 | |||
| 43 | 6 | has [ qw/ address_line1 city state zip country_code / ] => ( | |
| 44 | is => 'ro', | ||
| 45 | isa => 'Str', | ||
| 46 | required => 1, | ||
| 47 | ); | ||
| 48 | |||
| 49 | =head1 METHODS | ||
| 50 | |||
| 51 | None yet. | ||
| 52 | |||
| 53 | =head1 SEE ALSO | ||
| 54 | |||
| 55 | =cut | ||
| 56 | |||
| 57 | 6 | 1; | |