use WebService::Fastly::Object::BillingAddressApi;
Note
All URIs are relative to https://api.fastly.com
Method | HTTP request | Description |
---|---|---|
add_billing_addr | POST /customer/{customer_id}/billing_address | Add a billing address to a customer |
delete_billing_addr | DELETE /customer/{customer_id}/billing_address | Delete a billing address |
get_billing_addr | GET /customer/{customer_id}/billing_address | Get a billing address |
update_billing_addr | PATCH /customer/{customer_id}/billing_address | Update a billing address |
BillingAddressResponse add_billing_addr(customer_id => $customer_id, billing_address_request => $billing_address_request)
Add a billing address to a customer
Add a billing address to a customer.
use Data::Dumper;
use WebService::Fastly::BillingAddressApi;
my $api_instance = WebService::Fastly::BillingAddressApi->new(
# Configure API key authorization: token
api_key => {'Fastly-Key' => 'YOUR_API_KEY'},
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#api_key_prefix => {'Fastly-Key' => 'Bearer'},
);
my $customer_id = "customer_id_example"; # string | Alphanumeric string identifying the customer.
my $billing_address_request = WebService::Fastly::Object::BillingAddressRequest->new(); # BillingAddressRequest | Billing address
eval {
my $result = $api_instance->add_billing_addr(customer_id => $customer_id, billing_address_request => $billing_address_request);
print Dumper($result);
};
if ($@) {
warn "Exception when calling BillingAddressApi->add_billing_addr: $@\n";
}
Name | Type | Description | Notes |
---|---|---|---|
customer_id | string | Alphanumeric string identifying the customer. | |
billing_address_request | BillingAddressRequest | Billing address | [optional] |
- Content-Type: application/vnd.api+json
- Accept: application/vnd.api+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete_billing_addr(customer_id => $customer_id)
Delete a billing address
Delete a customer's billing address.
use Data::Dumper;
use WebService::Fastly::BillingAddressApi;
my $api_instance = WebService::Fastly::BillingAddressApi->new(
# Configure API key authorization: token
api_key => {'Fastly-Key' => 'YOUR_API_KEY'},
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#api_key_prefix => {'Fastly-Key' => 'Bearer'},
);
my $customer_id = "customer_id_example"; # string | Alphanumeric string identifying the customer.
eval {
$api_instance->delete_billing_addr(customer_id => $customer_id);
};
if ($@) {
warn "Exception when calling BillingAddressApi->delete_billing_addr: $@\n";
}
Name | Type | Description | Notes |
---|---|---|---|
customer_id | string | Alphanumeric string identifying the customer. |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BillingAddressResponse get_billing_addr(customer_id => $customer_id)
Get a billing address
Get a customer's billing address.
use Data::Dumper;
use WebService::Fastly::BillingAddressApi;
my $api_instance = WebService::Fastly::BillingAddressApi->new(
# Configure API key authorization: token
api_key => {'Fastly-Key' => 'YOUR_API_KEY'},
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#api_key_prefix => {'Fastly-Key' => 'Bearer'},
);
my $customer_id = "customer_id_example"; # string | Alphanumeric string identifying the customer.
eval {
my $result = $api_instance->get_billing_addr(customer_id => $customer_id);
print Dumper($result);
};
if ($@) {
warn "Exception when calling BillingAddressApi->get_billing_addr: $@\n";
}
Name | Type | Description | Notes |
---|---|---|---|
customer_id | string | Alphanumeric string identifying the customer. |
- Content-Type: Not defined
- Accept: application/vnd.api+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BillingAddressResponse update_billing_addr(customer_id => $customer_id, update_billing_address_request => $update_billing_address_request)
Update a billing address
Update a customer's billing address. You may update only part of the customer's billing address.
use Data::Dumper;
use WebService::Fastly::BillingAddressApi;
my $api_instance = WebService::Fastly::BillingAddressApi->new(
# Configure API key authorization: token
api_key => {'Fastly-Key' => 'YOUR_API_KEY'},
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#api_key_prefix => {'Fastly-Key' => 'Bearer'},
);
my $customer_id = "customer_id_example"; # string | Alphanumeric string identifying the customer.
my $update_billing_address_request = WebService::Fastly::Object::UpdateBillingAddressRequest->new(); # UpdateBillingAddressRequest | One or more billing address attributes
eval {
my $result = $api_instance->update_billing_addr(customer_id => $customer_id, update_billing_address_request => $update_billing_address_request);
print Dumper($result);
};
if ($@) {
warn "Exception when calling BillingAddressApi->update_billing_addr: $@\n";
}
Name | Type | Description | Notes |
---|---|---|---|
customer_id | string | Alphanumeric string identifying the customer. | |
update_billing_address_request | UpdateBillingAddressRequest | One or more billing address attributes | [optional] |
- Content-Type: application/vnd.api+json
- Accept: application/vnd.api+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]