1.7. ドロップ (up)

1.7.1. Account ドロップ (up)

開発者のアカウント。メールアドレスまたは類似の情報が必要な場合は、User ドロップを参照してください。

<h2>Account organization name {{ current_account.name }}</h2>
Plan {{ current_account.bought_account_plan.name }}
Telephone {{ current_account.telephone_number }}

{{ current_account.fields_plain_text }}
{{ current_account.extra_fields_plain_text }}

{% if current_account.approval_required? %}
   <p>This account requires approval.</p>
{% endif %}

{% if current_account.credit_card_required? %}

  {% if current_account.credit_card_stored? %}
    <p>This account has credit card details stored in database.</p>
  {% else %}
    <p>Please enter your {{ 'credit card details' | link_to: urls.payment_details }}.</p>
  {% endif %}

  {% if current_account.credit_card_missing? %}
    <p>This account has no credit card details stored in database.</p>
  {% endif %}
{% endif %}

1.7.1.1. メソッド

1.7.1.1.1. errors

送付に失敗した後にこのモデルのフォームがレンダリングされると、発生したエラーを返します。

{{ account.errors.name | inline_errors }}
1.7.1.1.2. id

アカウントの ID を返します。

1.7.1.1.3. name

開発者のアカウントの組織名を返します。

1.7.1.1.4. vat_zero_text

VAT ゼロに関するテキストを返します。

1.7.1.1.5. vat_rate

VAT レートを返します。

1.7.1.1.6. unread_messages

未読メッセージ

1.7.1.1.7. latest_messages

最新のメッセージを返します。

1.7.1.1.8. bought_account_plan

アカウントが契約しているプランを返します。

1.7.1.1.9. bought_account_contract

契約アカウントを返します。

1.7.1.1.10. credit_card_display_number
1.7.1.1.11. credit_card_expiration_date
1.7.1.1.12. credit_card_required?

クレジットカード情報の入力が必要なアカウントかどうかを返します。

1.7.1.1.13. credit_card_stored?

アカウントにクレジットカード情報が保存されているかどうかを返します。

1.7.1.1.14. credit_card_missing?

アカウントにクレジットカード情報が保存されていないかどうかを返します。

1.7.1.1.15. timezone

このアカウントのタイムゾーンを返します。

1.7.1.1.17. on_trial?

アカウントがトライアル期間中であるかどうかを返します (有料の契約はすべてトライアル期間中でなければなりません)。

1.7.1.1.18. telephone_number

アカウントの電話番号を返します。

1.7.1.1.19. approval_required?

アカウントに承認が必要かどうかを返します。

1.7.1.1.20. created_at

アカウント作成 (サインアップ) の UNIX タイムスタンプを返します (例: タイムスタンプを JavaScript の日付に変換する)。

<script>
  var data = new Date({{ account.created_at }} * 1000);
</script>
1.7.1.1.21. full_address

法人住所、市区町村、および都道府県で設定されます。

1.7.1.1.22. applications

アカウントのアプリケーションを返します。

1.7.1.1.23. subscribed_services

ServiceContract ドロップによる配列を返します。

1.7.1.1.24. admin

このアカウントの管理ユーザーを返します。

1.7.1.1.25. extra_fields_plain_text

アカウントに対して定義された追加フィールドをプレーンテキストで返します。

1.7.1.1.26. fields_plain_text

アカウントに対して定義されたフィールドをプレーンテキストで返します。

1.7.1.1.27. extra_fields

このアカウントの追加フィールドだけを値と共に返します (例: すべての追加フィールドを表示する)。

{% for field in account.extra_fields %}
  {{ field.label }}: {{ field.value }}
{% endfor %}
1.7.1.1.28. fields

このアカウントのすべてのフィールドを値と共に返します (例: すべてのフィールドを表示する)。

{% for field in account.fields %}
  {{ field.label }}: {{ field.value }}
{% endfor %}
1.7.1.1.29. builtin_fields
1.7.1.1.30. multiple_applications_allowed?
1.7.1.1.31. billing_address

このアカウントの請求先住所を返します。

1.7.1.1.32. has_billing_address?

このアカウントに請求先住所が登録されているかどうかを返します。

1.7.1.1.33. can

パーミッションメソッドへのアクセス権限を付与します。

{% if account.can.be_deleted? %}
  <!-- do something -->
{% endif %}
1.7.1.1.34. edit_url
1.7.1.1.35. edit_ogone_billing_address_url
1.7.1.1.36. edit_payment_express_billing_address_url
1.7.1.1.37. edit_braintree_blue_credit_card_details_url
1.7.1.1.38. domain
1.7.1.1.39. upgraded?
1.7.1.1.40. requires_credit_card?
1.7.1.1.41. support_email
1.7.1.1.42. finance_support_email