GetRatePlanResult constructor

const GetRatePlanResult({
  1. required String apiproduct,
  2. required String billingPeriod,
  3. required List<GoogleCloudApigeeV1RateRangeResponse> consumptionPricingRates,
  4. required String consumptionPricingType,
  5. required String createdAt,
  6. required String currencyCode,
  7. required String description,
  8. required String displayName,
  9. required String endTime,
  10. required int fixedFeeFrequency,
  11. required GoogleTypeMoneyResponse fixedRecurringFee,
  12. required String lastModifiedAt,
  13. required String name,
  14. required String paymentFundingModel,
  15. required List<GoogleCloudApigeeV1RevenueShareRangeResponse> revenueShareRates,
  16. required String revenueShareType,
  17. required GoogleTypeMoneyResponse setupFee,
  18. required String startTime,
  19. required String state,
})

Creates a new GetRatePlanResult. apiproduct Name of the API product that the rate plan is associated with. billingPeriod Frequency at which the customer will be billed. consumptionPricingRates API call volume ranges and the fees charged when the total number of API calls is within a given range. The method used to calculate the final fee depends on the selected pricing model. For example, if the pricing model is STAIRSTEP and the ranges are defined as follows: { "start": 1, "end": 100, "fee": 75 }, { "start": 101, "end": 200, "fee": 100 }, } Then the following fees would be charged based on the total number of API calls (assuming the currency selected is USD): * 1 call costs $75 * 50 calls cost $75 * 150 calls cost $100 The number of API calls cannot exceed 200. consumptionPricingType Pricing model used for consumption-based charges. createdAt Time that the rate plan was created in milliseconds since epoch. currencyCode Currency to be used for billing. Consists of a three-letter code as defined by the ISO 4217 standard. description Description of the rate plan. displayName Display name of the rate plan. endTime Time when the rate plan will expire in milliseconds since epoch. Set to 0 or null to indicate that the rate plan should never expire. fixedFeeFrequency Frequency at which the fixed fee is charged. fixedRecurringFee Fixed amount that is charged at a defined interval and billed in advance of use of the API product. The fee will be prorated for the first billing period. lastModifiedAt Time the rate plan was last modified in milliseconds since epoch. name Name of the rate plan. paymentFundingModel DEPRECATED: This field is no longer supported and will eventually be removed when Apigee Hybrid 1.5/1.6 is no longer supported. Instead, use the billingType field inside DeveloperMonetizationConfig resource. Flag that specifies the billing account type, prepaid or postpaid. revenueShareRates Details of the revenue sharing model. revenueShareType Method used to calculate the revenue that is shared with developers. setupFee Initial, one-time fee paid when purchasing the API product. startTime Time when the rate plan becomes active in milliseconds since epoch. state Current state of the rate plan (draft or published).

Implementation

const GetRatePlanResult({
  required this.apiproduct,
  required this.billingPeriod,
  required this.consumptionPricingRates,
  required this.consumptionPricingType,
  required this.createdAt,
  required this.currencyCode,
  required this.description,
  required this.displayName,
  required this.endTime,
  required this.fixedFeeFrequency,
  required this.fixedRecurringFee,
  required this.lastModifiedAt,
  required this.name,
  required this.paymentFundingModel,
  required this.revenueShareRates,
  required this.revenueShareType,
  required this.setupFee,
  required this.startTime,
  required this.state,
});