-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcalculated_subscription_modification.go
77 lines (58 loc) · 2.02 KB
/
calculated_subscription_modification.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
77
// 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 (
"context"
"github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// CalculatedSubscriptionModification Generic Response
//
// swagger:model CalculatedSubscriptionModification
type CalculatedSubscriptionModification struct {
// charge amount
ChargeAmount float32 `json:"chargeAmount,omitempty"`
// charge tax
ChargeTax float32 `json:"chargeTax,omitempty"`
// charge total
ChargeTotal float32 `json:"chargeTotal,omitempty"`
// next renewal amount
NextRenewalAmount float32 `json:"nextRenewalAmount,omitempty"`
// next renewal date
NextRenewalDate int64 `json:"nextRenewalDate,omitempty"`
// next renewal discount
NextRenewalDiscount float32 `json:"nextRenewalDiscount,omitempty"`
// next renewal tax
NextRenewalTax float32 `json:"nextRenewalTax,omitempty"`
// next renewal total
NextRenewalTotal float32 `json:"nextRenewalTotal,omitempty"`
// setup amount
SetupAmount float32 `json:"setupAmount,omitempty"`
// setup discount
SetupDiscount float32 `json:"setupDiscount,omitempty"`
}
// Validate validates this calculated subscription modification
func (m *CalculatedSubscriptionModification) Validate(formats strfmt.Registry) error {
return nil
}
// ContextValidate validates this calculated subscription modification based on context it is used
func (m *CalculatedSubscriptionModification) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
func (m *CalculatedSubscriptionModification) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *CalculatedSubscriptionModification) UnmarshalBinary(b []byte) error {
var res CalculatedSubscriptionModification
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}