le => './stripe-settings.json',
livemode => 0,
ignore_unknown_parameters => 1,
expand => 'all',
}) || die( Net::API::Stripe->error );
A Stripe json settings file looks lik
<Net::API::Stripe::Connect::Account::Company> object.
=head2 conf_file( [ file path ] )
Given a json configuration file, it will read the data, set the property I<conf_data> to the decoded hash and
eference, this will issue a C<DELETE> http query and return a hash reference corresponding to the json data returned by Stripe, or, in case of error, it will return undef and set the error which can b
reate those objects. For example:
my $stripe = Net::API::Stripe->new( conf_file => 'settings.json' ) | die( Net::API::Stripe->error );
my $stripe_card = $stripe->cards( create =>
{
ac
ripe List Object
=head1 SYNOPSIS
my $stripe = Net::API::Stripe->new( conf_file => 'settings.json' ) || die( Net::API::Stripe->error );
my $list = $stripe->customers( 'list' ) || die( $stripe
); }
## Does not seem to be documented in the Stripe API, although it showed up in its response json
sub transfer_group { return( shift->_set_get_scalar( 'transfer_group', @_ ) ); }
1;
__END__
=e
as part of a group.
=head2 transfer_group
Undocumented in Stripe API, but found in its response json data. See example API sample below.
=head1 API SAMPLE
{
"id": "tu_fake123456789",
r( '_field', @_ ) ); }
sub parent { return( shift->_set_get_scalar( '_parent', @_ ) ); }
sub TO_JSON
{
my $self = shift( @_ );
return( $self->can( 'as_string' ) ? $self->as_string : $self );
this object is associated
=head2 parent
Set/get the parent (caller) of this object.
=head2 TO_JSON
Returns a stringified version of this object if the method B<as_string> exists or is inherited,
jp>E<gt>
=head1 SEE ALSO
L<Net::API::Stripe>, L<Module::Generic>, L<Module::Generic::Number>, L<JSON>, L<URI>
=head1 COPYRIGHT & LICENSE
Copyright (c) 2019-2020 DEGUEST Pte. Ltd.
You can use, cop
IDs List Object
=head1 SYNOPSIS
my $stripe = Net::API::Stripe->new( conf_file => 'settings.json' ) || die( Net::API::Stripe->error );
my $list = $stripe->tax_id( 'list' ) || die( $stripe->e
reate those objects. For example:
my $stripe = Net::API::Stripe->new( conf_file => 'settings.json' ) | die( Net::API::Stripe->error );
my $stripe_bank = $stripe->bank_accounts( create =>
Stripe Invoice
=head1 SYNOPSIS
my $stripe = Net::API::Stripe->new( conf_file => './settings.json', expand => 'all' ) || die( Net::API::Stripe->error );
my $inv = $stripe->invoices( create =>
e HTTP::Promise::Headers;
use HTTP::Promise::Message;
use HTTP::Promise::Request;
use JSON;
use MIME::QuotedPrint ();
use MIME::Base64 ();
use Module::Generic::File qw( sys_tmp
sub encode_with_json;
sub expand;
sub fields;
sub file_api_uri;
sub generate_uuid;
sub get;
sub http_client;
sub http_request;
sub http_response;
sub ignore_unknown_parameters;
sub json;
sub key;
sub
} = $BROWSER unless( length( $self->{browser} ) );
$self->{encode_with_json} = 0 unless( length( $self->{encode_with_json} ) );
$self->{api_uri} = URI->new( API_BASE ) unless( length( $self->{