|
| 1 | +--- |
| 2 | +name: meshStack Payment Method |
| 3 | +supportedPlatforms: |
| 4 | + - meshstack |
| 5 | +description: | |
| 6 | + Creates a new meshStack Payment Method for a Workspace |
| 7 | +--- |
| 8 | +# meshStack Payment Method Building Block |
| 9 | + |
| 10 | +This Terraform module creates a payment method for a specific workspace in meshStack. |
| 11 | + |
| 12 | +## Features |
| 13 | +- Create payment methods with configurable budgets |
| 14 | +- Optional expiration dates |
| 15 | +- Flexible tagging support |
| 16 | + |
| 17 | +## Usage |
| 18 | + |
| 19 | +```hcl |
| 20 | +module "payment_method" { |
| 21 | + source = "./modules/meshstack/payment-method/buildingblock" |
| 22 | +
|
| 23 | + payment_method_name = "dev-team-budget" |
| 24 | + workspace_id = "workspace-abc123" |
| 25 | + amount = 10000 |
| 26 | + expiration_date = "2025-12-31T23:59:59Z" |
| 27 | +
|
| 28 | + tags = { |
| 29 | + team = ["development"] |
| 30 | + environment = ["production"] |
| 31 | + } |
| 32 | +} |
| 33 | +``` |
| 34 | + |
| 35 | +## Requirements |
| 36 | + |
| 37 | +| Name | Version | |
| 38 | +|------|---------| |
| 39 | +| terraform | >= 1.0 | |
| 40 | +| meshstack | ~> 0.14.0 | |
| 41 | + |
| 42 | +## Inputs |
| 43 | + |
| 44 | +| Name | Description | Type | Default | Required | |
| 45 | +|------|-------------|------|---------|----------| |
| 46 | +| payment_method_name | Name of the payment method | string | "default-payment-method" | no | |
| 47 | +| workspace_id | The ID of the workspace to which this payment method will be assigned | string | n/a | yes | |
| 48 | +| amount | The budget amount for this payment method | number | n/a | yes | |
| 49 | +| expiration_date | The expiration date in RFC3339 format (e.g., '2025-12-31T23:59:59Z') | string | null | no | |
| 50 | +| tags | Additional tags to apply to the payment method | map(list(string)) | {} | no | |
| 51 | + |
| 52 | +## Outputs |
| 53 | + |
| 54 | +| Name | Description | |
| 55 | +|------|-------------| |
| 56 | +| payment_method_name | The name of the payment method | |
| 57 | +| workspace_id | The workspace ID associated with this payment method | |
| 58 | +| amount | The budget amount for this payment method | |
| 59 | + |
| 60 | +<!-- BEGIN_TF_DOCS --> |
| 61 | +## Requirements |
| 62 | + |
| 63 | +| Name | Version | |
| 64 | +|------|---------| |
| 65 | +| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0 | |
| 66 | +| <a name="requirement_meshstack"></a> [meshstack](#requirement\_meshstack) | ~> 0.14.0 | |
| 67 | + |
| 68 | +## Modules |
| 69 | + |
| 70 | +No modules. |
| 71 | + |
| 72 | +## Resources |
| 73 | + |
| 74 | +| Name | Type | |
| 75 | +|------|------| |
| 76 | +| [meshstack_payment_method.payment_method](https://registry.terraform.io/providers/meshcloud/meshstack/latest/docs/resources/payment_method) | resource | |
| 77 | + |
| 78 | +## Inputs |
| 79 | + |
| 80 | +| Name | Description | Type | Default | Required | |
| 81 | +|------|-------------|------|---------|:--------:| |
| 82 | +| <a name="input_amount"></a> [amount](#input\_amount) | The budget amount for this payment method | `number` | n/a | yes | |
| 83 | +| <a name="input_expiration_date"></a> [expiration\_date](#input\_expiration\_date) | The expiration date of the payment method in RFC3339 format (e.g., '2025-12-31') | `string` | `null` | no | |
| 84 | +| <a name="input_payment_method_name"></a> [payment\_method\_name](#input\_payment\_method\_name) | Name of the payment method | `string` | `"default-payment-method"` | no | |
| 85 | +| <a name="input_tags"></a> [tags](#input\_tags) | Additional tags to apply to the payment method | `map(list(string))` | `{}` | no | |
| 86 | +| <a name="input_workspace_id"></a> [workspace\_id](#input\_workspace\_id) | The ID of the workspace to which this payment method will be assigned | `string` | n/a | yes | |
| 87 | + |
| 88 | +## Outputs |
| 89 | + |
| 90 | +| Name | Description | |
| 91 | +|------|-------------| |
| 92 | +| <a name="output_amount"></a> [amount](#output\_amount) | The budget amount for this payment method | |
| 93 | +| <a name="output_payment_method_name"></a> [payment\_method\_name](#output\_payment\_method\_name) | The name of the payment method | |
| 94 | +| <a name="output_workspace_id"></a> [workspace\_id](#output\_workspace\_id) | The workspace ID associated with this payment method | |
| 95 | +<!-- END_TF_DOCS --> |
0 commit comments