Ruby interface for the Lokalise APIv2 that represents returned data as Ruby objects.
View the Project on GitHub lokalise/ruby-lokalise-api
@client.team_user_billing_details(team_id) # Input:
## team_id (string or integer, required)
# Output:
## Billing details resource
For example:
team_id = '1234'
details = @client.team_user_billing_details team_id
details.company # => 'Lokalise'
details.address1 # => 'Address line 1'
@client.create_team_user_billing_details(team_id, params) # Input:
## team_id (string or integer, required)
## params (hash, required):
### :billing_email (string, required)
### :country_code (string, required)
### :zip (string, required)
### :state_code (string)
### :address1 (string)
### :address2 (string)
### :city (string)
### :phone (string)
### :company (string)
### :vatnumber (string)
# Output:
## Billing details resource
For example:
team_id = '1234'
params = {
billing_email: 'ruby@example.com',
country_code: 'LV',
zip: 'LV-1111'
}
details = @client.create_team_user_billing_details team_id, params
details.zip # => 'LV-1111'
@client.update_team_user_billing_details(team_id, params) # Input:
## team_id (string or integer, required)
## params (hash, required):
### :billing_email (string, required)
### :country_code (string, required)
### :zip (string, required)
### :state_code (string)
### :address1 (string)
### :address2 (string)
### :city (string)
### :phone (string)
### :company (string)
### :vatnumber (string)
# Output:
## Billing details resource
For example:
params = {
billing_email: 'ruby@example.com',
country_code: 'LV',
zip: 'LV-1111',
address1: 'Addr line 1',
city: 'Riga'
}
details = @client.update_team_user_billing_details team_id, params
details.billing_email # => 'ruby@example.com'