/
sales_force_opportunity.go
76 lines (57 loc) · 2.57 KB
/
sales_force_opportunity.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
// Code generated by go-swagger; DO NOT EDIT.
package models
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// SalesForceOpportunity sales force opportunity
//
// swagger:model SalesForceOpportunity
type SalesForceOpportunity struct {
// The monthly provision for the accountant of the monthly price (percentage)
AccountantMonthlyProvision float64 `json:"accountantMonthlyProvision,omitempty"`
// The initial provision for the accountant of the startup price (percentage)
AccountantStartupProvision float64 `json:"accountantStartupProvision,omitempty"`
// A nested map of all active sales modules. The key in the outer map is the sales module, whilest the inner map contains the different pricing types for the given sales module. A pricing type could be PER_USE(10).
AllPrices map[string]map[string]float64 `json:"allPrices,omitempty"`
// The monthly list price per user.
ListPriceCategory1UserService float64 `json:"listPriceCategory1UserService,omitempty"`
// The startup list price per user.
ListPriceCategory1UserStartup float64 `json:"listPriceCategory1UserStartup,omitempty"`
// The number of users included for free in the purchased module.
NoOfUsersIncluded int32 `json:"noOfUsersIncluded,omitempty"`
// The number of users prepaid when creating the company.
NoOfUsersPrepaid int32 `json:"noOfUsersPrepaid,omitempty"`
// The total startup price for additional services.
SumAdditionalServices float64 `json:"sumAdditionalServices,omitempty"`
// The monthly price for the company.
SumService float64 `json:"sumService,omitempty"`
// The total price per monthly price for users of category 1.
SumServiceCategory1Users float64 `json:"sumServiceCategory1Users,omitempty"`
// The startup price for the company.
SumStartup float64 `json:"sumStartup,omitempty"`
// The total startup price for users of category 1.
SumStartupCategory1Users float64 `json:"sumStartupCategory1Users,omitempty"`
}
// Validate validates this sales force opportunity
func (m *SalesForceOpportunity) Validate(formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
func (m *SalesForceOpportunity) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *SalesForceOpportunity) UnmarshalBinary(b []byte) error {
var res SalesForceOpportunity
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}