| 1 | package Business::GoCardless::BillingRequestTemplate; | ||
| 2 | |||
| 3 | =head1 NAME | ||
| 4 | |||
| 5 | Business::GoCardless::BillingRequestTemplate | ||
| 6 | |||
| 7 | =head1 DESCRIPTION | ||
| 8 | |||
| 9 | A class for a gocardless billing request template, extends L<Business::GoCardless::Resource> | ||
| 10 | |||
| 11 | A Billing Request Template provides a reusable C<authorisation_url> that | ||
| 12 | creates a new L<Business::GoCardless::BillingRequest> each time it is visited | ||
| 13 | |||
| 14 | =cut | ||
| 15 | |||
| 16 | 5 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 17 | 5 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 18 | |||
| 19 | 5 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 20 | 5 | extends 'Business::GoCardless::Resource'; | |
| 21 | |||
| 22 | =head1 ATTRIBUTES | ||
| 23 | |||
| 24 | authorisation_url | ||
| 25 | created_at | ||
| 26 | id | ||
| 27 | mandate_request_constraints | ||
| 28 | mandate_request_currency | ||
| 29 | mandate_request_description | ||
| 30 | mandate_request_metadata | ||
| 31 | mandate_request_scheme | ||
| 32 | mandate_request_verify | ||
| 33 | metadata | ||
| 34 | name | ||
| 35 | payment_request_amount | ||
| 36 | payment_request_currency | ||
| 37 | payment_request_description | ||
| 38 | payment_request_metadata | ||
| 39 | payment_request_scheme | ||
| 40 | redirect_uri | ||
| 41 | updated_at | ||
| 42 | |||
| 43 | =cut | ||
| 44 | |||
| 45 | 5 | has [ qw/ | |
| 46 | authorisation_url | ||
| 47 | created_at | ||
| 48 | id | ||
| 49 | mandate_request_constraints | ||
| 50 | mandate_request_currency | ||
| 51 | mandate_request_description | ||
| 52 | mandate_request_metadata | ||
| 53 | mandate_request_scheme | ||
| 54 | mandate_request_verify | ||
| 55 | metadata | ||
| 56 | name | ||
| 57 | payment_request_amount | ||
| 58 | payment_request_currency | ||
| 59 | payment_request_description | ||
| 60 | payment_request_metadata | ||
| 61 | payment_request_scheme | ||
| 62 | redirect_uri | ||
| 63 | updated_at | ||
| 64 | / ] => ( | ||
| 65 | is => 'rw', | ||
| 66 | ); | ||
| 67 | |||
| 68 | =head1 Operations on a billing request template | ||
| 69 | |||
| 70 | =head2 update | ||
| 71 | |||
| 72 | Update the template, this affects all future billing requests created from it: | ||
| 73 | |||
| 74 | $Template->update( name => 'New name' ); | ||
| 75 | |||
| 76 | =cut | ||
| 77 | |||
| 78 | 2 | ▶ | sub update { shift->_update( @_ ); } |
|
Subroutine
update: called CC=1 SCAR=0.0
Pod
documented
| |||
| 79 | |||
| 80 | =head1 AUTHOR | ||
| 81 | |||
| 82 | Lee Johnson - C<lee@payprop.com> | ||
| 83 | |||
| 84 | This library is free software; you can redistribute it and/or modify it under | ||
| 85 | the same terms as Perl itself. If you would like to contribute documentation, | ||
| 86 | features, bug fixes, or anything else then please raise an issue / pull request: | ||
| 87 | |||
| 88 | https://github.com/payprop/business-gocardless | ||
| 89 | |||
| 90 | =cut | ||
| 91 | |||
| 92 | 5 | 1; | |
| 93 | |||
| 94 | # vim: ts=4:sw=4:et | ||