# VoucherifySdk::EarningRuleProportionalCustomerMetadata ## Properties | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **type** | **String** | Defines how the points will be added to the loyalty card.PROPORTIONAL adds points based on a pre-defined ratio. | [default to 'PROPORTIONAL'] | | **calculation_type** | **String** | CUSTOMER_METADATA: Customer Metadata (X points for every Y in metadata attribute, defined in the property key under the customer.metadata object) | [default to 'CUSTOMER_METADATA'] | | **customer** | [**EarningRuleProportionalCustomerMetadataCustomer**](EarningRuleProportionalCustomerMetadataCustomer.md) | | |