2166 lines
52 KiB
Go
2166 lines
52 KiB
Go
// Code generated by ent, DO NOT EDIT.
|
|
|
|
package ent
|
|
|
|
import "time"
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *AppUpdate) SetNotNilUpdatedAt(value *time.Time) *AppUpdate {
|
|
if value != nil {
|
|
return _m.SetUpdatedAt(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *AppUpdateOne) SetNotNilUpdatedAt(value *time.Time) *AppUpdateOne {
|
|
if value != nil {
|
|
return _m.SetUpdatedAt(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *AppCreate) SetNotNilUpdatedAt(value *time.Time) *AppCreate {
|
|
if value != nil {
|
|
return _m.SetUpdatedAt(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *AppUpdate) SetNotNilStatus(value *uint8) *AppUpdate {
|
|
if value != nil {
|
|
return _m.SetStatus(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *AppUpdateOne) SetNotNilStatus(value *uint8) *AppUpdateOne {
|
|
if value != nil {
|
|
return _m.SetStatus(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *AppCreate) SetNotNilStatus(value *uint8) *AppCreate {
|
|
if value != nil {
|
|
return _m.SetStatus(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *AppUpdate) SetNotNilDeletedAt(value *time.Time) *AppUpdate {
|
|
if value != nil {
|
|
return _m.SetDeletedAt(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *AppUpdateOne) SetNotNilDeletedAt(value *time.Time) *AppUpdateOne {
|
|
if value != nil {
|
|
return _m.SetDeletedAt(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *AppCreate) SetNotNilDeletedAt(value *time.Time) *AppCreate {
|
|
if value != nil {
|
|
return _m.SetDeletedAt(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *AppUpdate) SetNotNilAppKey(value *string) *AppUpdate {
|
|
if value != nil {
|
|
return _m.SetAppKey(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *AppUpdateOne) SetNotNilAppKey(value *string) *AppUpdateOne {
|
|
if value != nil {
|
|
return _m.SetAppKey(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *AppCreate) SetNotNilAppKey(value *string) *AppCreate {
|
|
if value != nil {
|
|
return _m.SetAppKey(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *AppUpdate) SetNotNilAppName(value *string) *AppUpdate {
|
|
if value != nil {
|
|
return _m.SetAppName(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *AppUpdateOne) SetNotNilAppName(value *string) *AppUpdateOne {
|
|
if value != nil {
|
|
return _m.SetAppName(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *AppCreate) SetNotNilAppName(value *string) *AppCreate {
|
|
if value != nil {
|
|
return _m.SetAppName(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *AppUpdate) SetNotNilOrderNotifyURL(value *string) *AppUpdate {
|
|
if value != nil {
|
|
return _m.SetOrderNotifyURL(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *AppUpdateOne) SetNotNilOrderNotifyURL(value *string) *AppUpdateOne {
|
|
if value != nil {
|
|
return _m.SetOrderNotifyURL(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *AppCreate) SetNotNilOrderNotifyURL(value *string) *AppCreate {
|
|
if value != nil {
|
|
return _m.SetOrderNotifyURL(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *AppUpdate) SetNotNilRefundNotifyURL(value *string) *AppUpdate {
|
|
if value != nil {
|
|
return _m.SetRefundNotifyURL(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *AppUpdateOne) SetNotNilRefundNotifyURL(value *string) *AppUpdateOne {
|
|
if value != nil {
|
|
return _m.SetRefundNotifyURL(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *AppCreate) SetNotNilRefundNotifyURL(value *string) *AppCreate {
|
|
if value != nil {
|
|
return _m.SetRefundNotifyURL(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayChannelUpdate) SetNotNilUpdatedAt(value *time.Time) *PayChannelUpdate {
|
|
if value != nil {
|
|
return _m.SetUpdatedAt(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayChannelUpdateOne) SetNotNilUpdatedAt(value *time.Time) *PayChannelUpdateOne {
|
|
if value != nil {
|
|
return _m.SetUpdatedAt(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayChannelCreate) SetNotNilUpdatedAt(value *time.Time) *PayChannelCreate {
|
|
if value != nil {
|
|
return _m.SetUpdatedAt(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayChannelUpdate) SetNotNilStatus(value *uint8) *PayChannelUpdate {
|
|
if value != nil {
|
|
return _m.SetStatus(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayChannelUpdateOne) SetNotNilStatus(value *uint8) *PayChannelUpdateOne {
|
|
if value != nil {
|
|
return _m.SetStatus(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayChannelCreate) SetNotNilStatus(value *uint8) *PayChannelCreate {
|
|
if value != nil {
|
|
return _m.SetStatus(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayChannelUpdate) SetNotNilDeletedAt(value *time.Time) *PayChannelUpdate {
|
|
if value != nil {
|
|
return _m.SetDeletedAt(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayChannelUpdateOne) SetNotNilDeletedAt(value *time.Time) *PayChannelUpdateOne {
|
|
if value != nil {
|
|
return _m.SetDeletedAt(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayChannelCreate) SetNotNilDeletedAt(value *time.Time) *PayChannelCreate {
|
|
if value != nil {
|
|
return _m.SetDeletedAt(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayChannelUpdate) SetNotNilCode(value *string) *PayChannelUpdate {
|
|
if value != nil {
|
|
return _m.SetCode(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayChannelUpdateOne) SetNotNilCode(value *string) *PayChannelUpdateOne {
|
|
if value != nil {
|
|
return _m.SetCode(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayChannelCreate) SetNotNilCode(value *string) *PayChannelCreate {
|
|
if value != nil {
|
|
return _m.SetCode(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayChannelUpdate) SetNotNilNameEn(value *string) *PayChannelUpdate {
|
|
if value != nil {
|
|
return _m.SetNameEn(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayChannelUpdateOne) SetNotNilNameEn(value *string) *PayChannelUpdateOne {
|
|
if value != nil {
|
|
return _m.SetNameEn(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayChannelCreate) SetNotNilNameEn(value *string) *PayChannelCreate {
|
|
if value != nil {
|
|
return _m.SetNameEn(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayChannelUpdate) SetNotNilNameZh(value *string) *PayChannelUpdate {
|
|
if value != nil {
|
|
return _m.SetNameZh(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayChannelUpdateOne) SetNotNilNameZh(value *string) *PayChannelUpdateOne {
|
|
if value != nil {
|
|
return _m.SetNameZh(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayChannelCreate) SetNotNilNameZh(value *string) *PayChannelCreate {
|
|
if value != nil {
|
|
return _m.SetNameZh(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayChannelUpdate) SetNotNilFreeRate(value *string) *PayChannelUpdate {
|
|
if value != nil {
|
|
return _m.SetFreeRate(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayChannelUpdateOne) SetNotNilFreeRate(value *string) *PayChannelUpdateOne {
|
|
if value != nil {
|
|
return _m.SetFreeRate(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayChannelCreate) SetNotNilFreeRate(value *string) *PayChannelCreate {
|
|
if value != nil {
|
|
return _m.SetFreeRate(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayChannelUpdate) SetNotNilAppID(value *uint64) *PayChannelUpdate {
|
|
if value != nil {
|
|
return _m.SetAppID(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayChannelUpdateOne) SetNotNilAppID(value *uint64) *PayChannelUpdateOne {
|
|
if value != nil {
|
|
return _m.SetAppID(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayChannelCreate) SetNotNilAppID(value *uint64) *PayChannelCreate {
|
|
if value != nil {
|
|
return _m.SetAppID(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayChannelUpdate) SetNotNilConfig(value *map[string]interface{}) *PayChannelUpdate {
|
|
if value != nil {
|
|
return _m.SetConfig(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayChannelUpdateOne) SetNotNilConfig(value *map[string]interface{}) *PayChannelUpdateOne {
|
|
if value != nil {
|
|
return _m.SetConfig(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayChannelCreate) SetNotNilConfig(value *map[string]interface{}) *PayChannelCreate {
|
|
if value != nil {
|
|
return _m.SetConfig(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayChannelUpdate) SetNotNilRemake(value *string) *PayChannelUpdate {
|
|
if value != nil {
|
|
return _m.SetRemake(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayChannelUpdateOne) SetNotNilRemake(value *string) *PayChannelUpdateOne {
|
|
if value != nil {
|
|
return _m.SetRemake(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayChannelCreate) SetNotNilRemake(value *string) *PayChannelCreate {
|
|
if value != nil {
|
|
return _m.SetRemake(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayChannelUpdate) SetNotNilIcon(value *uint64) *PayChannelUpdate {
|
|
if value != nil {
|
|
return _m.SetIcon(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayChannelUpdateOne) SetNotNilIcon(value *uint64) *PayChannelUpdateOne {
|
|
if value != nil {
|
|
return _m.SetIcon(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayChannelCreate) SetNotNilIcon(value *uint64) *PayChannelCreate {
|
|
if value != nil {
|
|
return _m.SetIcon(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayChannelUpdate) SetNotNilOrderTimeOut(value *string) *PayChannelUpdate {
|
|
if value != nil {
|
|
return _m.SetOrderTimeOut(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayChannelUpdateOne) SetNotNilOrderTimeOut(value *string) *PayChannelUpdateOne {
|
|
if value != nil {
|
|
return _m.SetOrderTimeOut(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayChannelCreate) SetNotNilOrderTimeOut(value *string) *PayChannelCreate {
|
|
if value != nil {
|
|
return _m.SetOrderTimeOut(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayChannelUpdate) SetNotNilSupportCurrency(value *string) *PayChannelUpdate {
|
|
if value != nil {
|
|
return _m.SetSupportCurrency(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayChannelUpdateOne) SetNotNilSupportCurrency(value *string) *PayChannelUpdateOne {
|
|
if value != nil {
|
|
return _m.SetSupportCurrency(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayChannelCreate) SetNotNilSupportCurrency(value *string) *PayChannelCreate {
|
|
if value != nil {
|
|
return _m.SetSupportCurrency(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayNotifyLogUpdate) SetNotNilUpdatedAt(value *time.Time) *PayNotifyLogUpdate {
|
|
if value != nil {
|
|
return _m.SetUpdatedAt(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayNotifyLogUpdateOne) SetNotNilUpdatedAt(value *time.Time) *PayNotifyLogUpdateOne {
|
|
if value != nil {
|
|
return _m.SetUpdatedAt(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayNotifyLogCreate) SetNotNilUpdatedAt(value *time.Time) *PayNotifyLogCreate {
|
|
if value != nil {
|
|
return _m.SetUpdatedAt(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayNotifyLogUpdate) SetNotNilStatus(value *uint8) *PayNotifyLogUpdate {
|
|
if value != nil {
|
|
return _m.SetStatus(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayNotifyLogUpdateOne) SetNotNilStatus(value *uint8) *PayNotifyLogUpdateOne {
|
|
if value != nil {
|
|
return _m.SetStatus(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayNotifyLogCreate) SetNotNilStatus(value *uint8) *PayNotifyLogCreate {
|
|
if value != nil {
|
|
return _m.SetStatus(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayNotifyLogUpdate) SetNotNilDeletedAt(value *time.Time) *PayNotifyLogUpdate {
|
|
if value != nil {
|
|
return _m.SetDeletedAt(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayNotifyLogUpdateOne) SetNotNilDeletedAt(value *time.Time) *PayNotifyLogUpdateOne {
|
|
if value != nil {
|
|
return _m.SetDeletedAt(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayNotifyLogCreate) SetNotNilDeletedAt(value *time.Time) *PayNotifyLogCreate {
|
|
if value != nil {
|
|
return _m.SetDeletedAt(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayNotifyLogUpdate) SetNotNilTaskID(value *uint64) *PayNotifyLogUpdate {
|
|
if value != nil {
|
|
return _m.SetTaskID(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayNotifyLogUpdateOne) SetNotNilTaskID(value *uint64) *PayNotifyLogUpdateOne {
|
|
if value != nil {
|
|
return _m.SetTaskID(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayNotifyLogCreate) SetNotNilTaskID(value *uint64) *PayNotifyLogCreate {
|
|
if value != nil {
|
|
return _m.SetTaskID(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayNotifyLogUpdate) SetNotNilNotifyCount(value *uint32) *PayNotifyLogUpdate {
|
|
if value != nil {
|
|
return _m.SetNotifyCount(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayNotifyLogUpdateOne) SetNotNilNotifyCount(value *uint32) *PayNotifyLogUpdateOne {
|
|
if value != nil {
|
|
return _m.SetNotifyCount(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayNotifyLogCreate) SetNotNilNotifyCount(value *uint32) *PayNotifyLogCreate {
|
|
if value != nil {
|
|
return _m.SetNotifyCount(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayNotifyLogUpdate) SetNotNilResponse(value *string) *PayNotifyLogUpdate {
|
|
if value != nil {
|
|
return _m.SetResponse(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayNotifyLogUpdateOne) SetNotNilResponse(value *string) *PayNotifyLogUpdateOne {
|
|
if value != nil {
|
|
return _m.SetResponse(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayNotifyLogCreate) SetNotNilResponse(value *string) *PayNotifyLogCreate {
|
|
if value != nil {
|
|
return _m.SetResponse(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayNotifyLogUpdate) SetNotNilNotifyStatus(value *string) *PayNotifyLogUpdate {
|
|
if value != nil {
|
|
return _m.SetNotifyStatus(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayNotifyLogUpdateOne) SetNotNilNotifyStatus(value *string) *PayNotifyLogUpdateOne {
|
|
if value != nil {
|
|
return _m.SetNotifyStatus(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayNotifyLogCreate) SetNotNilNotifyStatus(value *string) *PayNotifyLogCreate {
|
|
if value != nil {
|
|
return _m.SetNotifyStatus(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayNotifyTaskUpdate) SetNotNilUpdatedAt(value *time.Time) *PayNotifyTaskUpdate {
|
|
if value != nil {
|
|
return _m.SetUpdatedAt(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayNotifyTaskUpdateOne) SetNotNilUpdatedAt(value *time.Time) *PayNotifyTaskUpdateOne {
|
|
if value != nil {
|
|
return _m.SetUpdatedAt(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayNotifyTaskCreate) SetNotNilUpdatedAt(value *time.Time) *PayNotifyTaskCreate {
|
|
if value != nil {
|
|
return _m.SetUpdatedAt(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayNotifyTaskUpdate) SetNotNilStatus(value *uint8) *PayNotifyTaskUpdate {
|
|
if value != nil {
|
|
return _m.SetStatus(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayNotifyTaskUpdateOne) SetNotNilStatus(value *uint8) *PayNotifyTaskUpdateOne {
|
|
if value != nil {
|
|
return _m.SetStatus(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayNotifyTaskCreate) SetNotNilStatus(value *uint8) *PayNotifyTaskCreate {
|
|
if value != nil {
|
|
return _m.SetStatus(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayNotifyTaskUpdate) SetNotNilDeletedAt(value *time.Time) *PayNotifyTaskUpdate {
|
|
if value != nil {
|
|
return _m.SetDeletedAt(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayNotifyTaskUpdateOne) SetNotNilDeletedAt(value *time.Time) *PayNotifyTaskUpdateOne {
|
|
if value != nil {
|
|
return _m.SetDeletedAt(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayNotifyTaskCreate) SetNotNilDeletedAt(value *time.Time) *PayNotifyTaskCreate {
|
|
if value != nil {
|
|
return _m.SetDeletedAt(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayNotifyTaskUpdate) SetNotNilType(value *uint8) *PayNotifyTaskUpdate {
|
|
if value != nil {
|
|
return _m.SetType(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayNotifyTaskUpdateOne) SetNotNilType(value *uint8) *PayNotifyTaskUpdateOne {
|
|
if value != nil {
|
|
return _m.SetType(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayNotifyTaskCreate) SetNotNilType(value *uint8) *PayNotifyTaskCreate {
|
|
if value != nil {
|
|
return _m.SetType(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayNotifyTaskUpdate) SetNotNilDataID(value *uint64) *PayNotifyTaskUpdate {
|
|
if value != nil {
|
|
return _m.SetDataID(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayNotifyTaskUpdateOne) SetNotNilDataID(value *uint64) *PayNotifyTaskUpdateOne {
|
|
if value != nil {
|
|
return _m.SetDataID(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayNotifyTaskCreate) SetNotNilDataID(value *uint64) *PayNotifyTaskCreate {
|
|
if value != nil {
|
|
return _m.SetDataID(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayNotifyTaskUpdate) SetNotNilOrderID(value *uint64) *PayNotifyTaskUpdate {
|
|
if value != nil {
|
|
return _m.SetOrderID(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayNotifyTaskUpdateOne) SetNotNilOrderID(value *uint64) *PayNotifyTaskUpdateOne {
|
|
if value != nil {
|
|
return _m.SetOrderID(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayNotifyTaskCreate) SetNotNilOrderID(value *uint64) *PayNotifyTaskCreate {
|
|
if value != nil {
|
|
return _m.SetOrderID(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayNotifyTaskUpdate) SetNotNilAppID(value *uint64) *PayNotifyTaskUpdate {
|
|
if value != nil {
|
|
return _m.SetAppID(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayNotifyTaskUpdateOne) SetNotNilAppID(value *uint64) *PayNotifyTaskUpdateOne {
|
|
if value != nil {
|
|
return _m.SetAppID(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayNotifyTaskCreate) SetNotNilAppID(value *uint64) *PayNotifyTaskCreate {
|
|
if value != nil {
|
|
return _m.SetAppID(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayNotifyTaskUpdate) SetNotNilNotifyStatus(value *uint8) *PayNotifyTaskUpdate {
|
|
if value != nil {
|
|
return _m.SetNotifyStatus(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayNotifyTaskUpdateOne) SetNotNilNotifyStatus(value *uint8) *PayNotifyTaskUpdateOne {
|
|
if value != nil {
|
|
return _m.SetNotifyStatus(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayNotifyTaskCreate) SetNotNilNotifyStatus(value *uint8) *PayNotifyTaskCreate {
|
|
if value != nil {
|
|
return _m.SetNotifyStatus(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayNotifyTaskUpdate) SetNotNilNextNotifyTime(value *time.Time) *PayNotifyTaskUpdate {
|
|
if value != nil {
|
|
return _m.SetNextNotifyTime(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayNotifyTaskUpdateOne) SetNotNilNextNotifyTime(value *time.Time) *PayNotifyTaskUpdateOne {
|
|
if value != nil {
|
|
return _m.SetNextNotifyTime(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayNotifyTaskCreate) SetNotNilNextNotifyTime(value *time.Time) *PayNotifyTaskCreate {
|
|
if value != nil {
|
|
return _m.SetNextNotifyTime(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayNotifyTaskUpdate) SetNotNilLastExecuteTime(value *time.Time) *PayNotifyTaskUpdate {
|
|
if value != nil {
|
|
return _m.SetLastExecuteTime(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayNotifyTaskUpdateOne) SetNotNilLastExecuteTime(value *time.Time) *PayNotifyTaskUpdateOne {
|
|
if value != nil {
|
|
return _m.SetLastExecuteTime(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayNotifyTaskCreate) SetNotNilLastExecuteTime(value *time.Time) *PayNotifyTaskCreate {
|
|
if value != nil {
|
|
return _m.SetLastExecuteTime(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayNotifyTaskUpdate) SetNotNilRetryCount(value *uint32) *PayNotifyTaskUpdate {
|
|
if value != nil {
|
|
return _m.SetRetryCount(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayNotifyTaskUpdateOne) SetNotNilRetryCount(value *uint32) *PayNotifyTaskUpdateOne {
|
|
if value != nil {
|
|
return _m.SetRetryCount(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayNotifyTaskCreate) SetNotNilRetryCount(value *uint32) *PayNotifyTaskCreate {
|
|
if value != nil {
|
|
return _m.SetRetryCount(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayNotifyTaskUpdate) SetNotNilMaxRetryCount(value *uint32) *PayNotifyTaskUpdate {
|
|
if value != nil {
|
|
return _m.SetMaxRetryCount(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayNotifyTaskUpdateOne) SetNotNilMaxRetryCount(value *uint32) *PayNotifyTaskUpdateOne {
|
|
if value != nil {
|
|
return _m.SetMaxRetryCount(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayNotifyTaskCreate) SetNotNilMaxRetryCount(value *uint32) *PayNotifyTaskCreate {
|
|
if value != nil {
|
|
return _m.SetMaxRetryCount(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayNotifyTaskUpdate) SetNotNilNotifyURL(value *string) *PayNotifyTaskUpdate {
|
|
if value != nil {
|
|
return _m.SetNotifyURL(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayNotifyTaskUpdateOne) SetNotNilNotifyURL(value *string) *PayNotifyTaskUpdateOne {
|
|
if value != nil {
|
|
return _m.SetNotifyURL(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayNotifyTaskCreate) SetNotNilNotifyURL(value *string) *PayNotifyTaskCreate {
|
|
if value != nil {
|
|
return _m.SetNotifyURL(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderUpdate) SetNotNilUpdatedAt(value *time.Time) *PayOrderUpdate {
|
|
if value != nil {
|
|
return _m.SetUpdatedAt(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderUpdateOne) SetNotNilUpdatedAt(value *time.Time) *PayOrderUpdateOne {
|
|
if value != nil {
|
|
return _m.SetUpdatedAt(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderCreate) SetNotNilUpdatedAt(value *time.Time) *PayOrderCreate {
|
|
if value != nil {
|
|
return _m.SetUpdatedAt(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderUpdate) SetNotNilStatus(value *uint8) *PayOrderUpdate {
|
|
if value != nil {
|
|
return _m.SetStatus(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderUpdateOne) SetNotNilStatus(value *uint8) *PayOrderUpdateOne {
|
|
if value != nil {
|
|
return _m.SetStatus(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderCreate) SetNotNilStatus(value *uint8) *PayOrderCreate {
|
|
if value != nil {
|
|
return _m.SetStatus(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderUpdate) SetNotNilDeletedAt(value *time.Time) *PayOrderUpdate {
|
|
if value != nil {
|
|
return _m.SetDeletedAt(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderUpdateOne) SetNotNilDeletedAt(value *time.Time) *PayOrderUpdateOne {
|
|
if value != nil {
|
|
return _m.SetDeletedAt(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderCreate) SetNotNilDeletedAt(value *time.Time) *PayOrderCreate {
|
|
if value != nil {
|
|
return _m.SetDeletedAt(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderUpdate) SetNotNilChannelID(value *uint64) *PayOrderUpdate {
|
|
if value != nil {
|
|
return _m.SetChannelID(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderUpdateOne) SetNotNilChannelID(value *uint64) *PayOrderUpdateOne {
|
|
if value != nil {
|
|
return _m.SetChannelID(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderCreate) SetNotNilChannelID(value *uint64) *PayOrderCreate {
|
|
if value != nil {
|
|
return _m.SetChannelID(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderUpdate) SetNotNilUserID(value *uint64) *PayOrderUpdate {
|
|
if value != nil {
|
|
return _m.SetUserID(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderUpdateOne) SetNotNilUserID(value *uint64) *PayOrderUpdateOne {
|
|
if value != nil {
|
|
return _m.SetUserID(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderCreate) SetNotNilUserID(value *uint64) *PayOrderCreate {
|
|
if value != nil {
|
|
return _m.SetUserID(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderUpdate) SetNotNilSubject(value *string) *PayOrderUpdate {
|
|
if value != nil {
|
|
return _m.SetSubject(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderUpdateOne) SetNotNilSubject(value *string) *PayOrderUpdateOne {
|
|
if value != nil {
|
|
return _m.SetSubject(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderCreate) SetNotNilSubject(value *string) *PayOrderCreate {
|
|
if value != nil {
|
|
return _m.SetSubject(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderUpdate) SetNotNilBody(value *string) *PayOrderUpdate {
|
|
if value != nil {
|
|
return _m.SetBody(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderUpdateOne) SetNotNilBody(value *string) *PayOrderUpdateOne {
|
|
if value != nil {
|
|
return _m.SetBody(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderCreate) SetNotNilBody(value *string) *PayOrderCreate {
|
|
if value != nil {
|
|
return _m.SetBody(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderUpdate) SetNotNilNotifyURL(value *string) *PayOrderUpdate {
|
|
if value != nil {
|
|
return _m.SetNotifyURL(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderUpdateOne) SetNotNilNotifyURL(value *string) *PayOrderUpdateOne {
|
|
if value != nil {
|
|
return _m.SetNotifyURL(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderCreate) SetNotNilNotifyURL(value *string) *PayOrderCreate {
|
|
if value != nil {
|
|
return _m.SetNotifyURL(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderUpdate) SetNotNilAmount(value *uint64) *PayOrderUpdate {
|
|
if value != nil {
|
|
return _m.SetAmount(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderUpdateOne) SetNotNilAmount(value *uint64) *PayOrderUpdateOne {
|
|
if value != nil {
|
|
return _m.SetAmount(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderCreate) SetNotNilAmount(value *uint64) *PayOrderCreate {
|
|
if value != nil {
|
|
return _m.SetAmount(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderUpdate) SetNotNilPaySource(value *string) *PayOrderUpdate {
|
|
if value != nil {
|
|
return _m.SetPaySource(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderUpdateOne) SetNotNilPaySource(value *string) *PayOrderUpdateOne {
|
|
if value != nil {
|
|
return _m.SetPaySource(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderCreate) SetNotNilPaySource(value *string) *PayOrderCreate {
|
|
if value != nil {
|
|
return _m.SetPaySource(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderUpdate) SetNotNilChannelFeeRate(value *string) *PayOrderUpdate {
|
|
if value != nil {
|
|
return _m.SetChannelFeeRate(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderUpdateOne) SetNotNilChannelFeeRate(value *string) *PayOrderUpdateOne {
|
|
if value != nil {
|
|
return _m.SetChannelFeeRate(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderCreate) SetNotNilChannelFeeRate(value *string) *PayOrderCreate {
|
|
if value != nil {
|
|
return _m.SetChannelFeeRate(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderUpdate) SetNotNilChannelFee(value *uint64) *PayOrderUpdate {
|
|
if value != nil {
|
|
return _m.SetChannelFee(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderUpdateOne) SetNotNilChannelFee(value *uint64) *PayOrderUpdateOne {
|
|
if value != nil {
|
|
return _m.SetChannelFee(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderCreate) SetNotNilChannelFee(value *uint64) *PayOrderCreate {
|
|
if value != nil {
|
|
return _m.SetChannelFee(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderUpdate) SetNotNilOrderStatus(value *string) *PayOrderUpdate {
|
|
if value != nil {
|
|
return _m.SetOrderStatus(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderUpdateOne) SetNotNilOrderStatus(value *string) *PayOrderUpdateOne {
|
|
if value != nil {
|
|
return _m.SetOrderStatus(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderCreate) SetNotNilOrderStatus(value *string) *PayOrderCreate {
|
|
if value != nil {
|
|
return _m.SetOrderStatus(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderUpdate) SetNotNilUserIP(value *string) *PayOrderUpdate {
|
|
if value != nil {
|
|
return _m.SetUserIP(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderUpdateOne) SetNotNilUserIP(value *string) *PayOrderUpdateOne {
|
|
if value != nil {
|
|
return _m.SetUserIP(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderCreate) SetNotNilUserIP(value *string) *PayOrderCreate {
|
|
if value != nil {
|
|
return _m.SetUserIP(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderUpdate) SetNotNilExpireTime(value *time.Time) *PayOrderUpdate {
|
|
if value != nil {
|
|
return _m.SetExpireTime(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderUpdateOne) SetNotNilExpireTime(value *time.Time) *PayOrderUpdateOne {
|
|
if value != nil {
|
|
return _m.SetExpireTime(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderCreate) SetNotNilExpireTime(value *time.Time) *PayOrderCreate {
|
|
if value != nil {
|
|
return _m.SetExpireTime(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderUpdate) SetNotNilPayNo(value *string) *PayOrderUpdate {
|
|
if value != nil {
|
|
return _m.SetPayNo(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderUpdateOne) SetNotNilPayNo(value *string) *PayOrderUpdateOne {
|
|
if value != nil {
|
|
return _m.SetPayNo(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderCreate) SetNotNilPayNo(value *string) *PayOrderCreate {
|
|
if value != nil {
|
|
return _m.SetPayNo(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderUpdate) SetNotNilSuccessTime(value *time.Time) *PayOrderUpdate {
|
|
if value != nil {
|
|
return _m.SetSuccessTime(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderUpdateOne) SetNotNilSuccessTime(value *time.Time) *PayOrderUpdateOne {
|
|
if value != nil {
|
|
return _m.SetSuccessTime(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderCreate) SetNotNilSuccessTime(value *time.Time) *PayOrderCreate {
|
|
if value != nil {
|
|
return _m.SetSuccessTime(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderUpdate) SetNotNilExtensionID(value *uint64) *PayOrderUpdate {
|
|
if value != nil {
|
|
return _m.SetExtensionID(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderUpdateOne) SetNotNilExtensionID(value *uint64) *PayOrderUpdateOne {
|
|
if value != nil {
|
|
return _m.SetExtensionID(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderCreate) SetNotNilExtensionID(value *uint64) *PayOrderCreate {
|
|
if value != nil {
|
|
return _m.SetExtensionID(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderUpdate) SetNotNilTransactionID(value *string) *PayOrderUpdate {
|
|
if value != nil {
|
|
return _m.SetTransactionID(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderUpdateOne) SetNotNilTransactionID(value *string) *PayOrderUpdateOne {
|
|
if value != nil {
|
|
return _m.SetTransactionID(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderCreate) SetNotNilTransactionID(value *string) *PayOrderCreate {
|
|
if value != nil {
|
|
return _m.SetTransactionID(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderUpdate) SetNotNilCurrency(value *string) *PayOrderUpdate {
|
|
if value != nil {
|
|
return _m.SetCurrency(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderUpdateOne) SetNotNilCurrency(value *string) *PayOrderUpdateOne {
|
|
if value != nil {
|
|
return _m.SetCurrency(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderCreate) SetNotNilCurrency(value *string) *PayOrderCreate {
|
|
if value != nil {
|
|
return _m.SetCurrency(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderUpdate) SetNotNilRefundPrice(value *uint64) *PayOrderUpdate {
|
|
if value != nil {
|
|
return _m.SetRefundPrice(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderUpdateOne) SetNotNilRefundPrice(value *uint64) *PayOrderUpdateOne {
|
|
if value != nil {
|
|
return _m.SetRefundPrice(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderCreate) SetNotNilRefundPrice(value *uint64) *PayOrderCreate {
|
|
if value != nil {
|
|
return _m.SetRefundPrice(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderUpdate) SetNotNilChannelOrderNo(value *string) *PayOrderUpdate {
|
|
if value != nil {
|
|
return _m.SetChannelOrderNo(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderUpdateOne) SetNotNilChannelOrderNo(value *string) *PayOrderUpdateOne {
|
|
if value != nil {
|
|
return _m.SetChannelOrderNo(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderCreate) SetNotNilChannelOrderNo(value *string) *PayOrderCreate {
|
|
if value != nil {
|
|
return _m.SetChannelOrderNo(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderUpdate) SetNotNilChannelUserID(value *string) *PayOrderUpdate {
|
|
if value != nil {
|
|
return _m.SetChannelUserID(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderUpdateOne) SetNotNilChannelUserID(value *string) *PayOrderUpdateOne {
|
|
if value != nil {
|
|
return _m.SetChannelUserID(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderCreate) SetNotNilChannelUserID(value *string) *PayOrderCreate {
|
|
if value != nil {
|
|
return _m.SetChannelUserID(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderExtensionUpdate) SetNotNilUpdatedAt(value *time.Time) *PayOrderExtensionUpdate {
|
|
if value != nil {
|
|
return _m.SetUpdatedAt(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderExtensionUpdateOne) SetNotNilUpdatedAt(value *time.Time) *PayOrderExtensionUpdateOne {
|
|
if value != nil {
|
|
return _m.SetUpdatedAt(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderExtensionCreate) SetNotNilUpdatedAt(value *time.Time) *PayOrderExtensionCreate {
|
|
if value != nil {
|
|
return _m.SetUpdatedAt(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderExtensionUpdate) SetNotNilStatus(value *uint8) *PayOrderExtensionUpdate {
|
|
if value != nil {
|
|
return _m.SetStatus(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderExtensionUpdateOne) SetNotNilStatus(value *uint8) *PayOrderExtensionUpdateOne {
|
|
if value != nil {
|
|
return _m.SetStatus(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderExtensionCreate) SetNotNilStatus(value *uint8) *PayOrderExtensionCreate {
|
|
if value != nil {
|
|
return _m.SetStatus(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderExtensionUpdate) SetNotNilDeletedAt(value *time.Time) *PayOrderExtensionUpdate {
|
|
if value != nil {
|
|
return _m.SetDeletedAt(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderExtensionUpdateOne) SetNotNilDeletedAt(value *time.Time) *PayOrderExtensionUpdateOne {
|
|
if value != nil {
|
|
return _m.SetDeletedAt(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderExtensionCreate) SetNotNilDeletedAt(value *time.Time) *PayOrderExtensionCreate {
|
|
if value != nil {
|
|
return _m.SetDeletedAt(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderExtensionUpdate) SetNotNilOrderID(value *uint64) *PayOrderExtensionUpdate {
|
|
if value != nil {
|
|
return _m.SetOrderID(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderExtensionUpdateOne) SetNotNilOrderID(value *uint64) *PayOrderExtensionUpdateOne {
|
|
if value != nil {
|
|
return _m.SetOrderID(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderExtensionCreate) SetNotNilOrderID(value *uint64) *PayOrderExtensionCreate {
|
|
if value != nil {
|
|
return _m.SetOrderID(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderExtensionUpdate) SetNotNilChannelID(value *uint64) *PayOrderExtensionUpdate {
|
|
if value != nil {
|
|
return _m.SetChannelID(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderExtensionUpdateOne) SetNotNilChannelID(value *uint64) *PayOrderExtensionUpdateOne {
|
|
if value != nil {
|
|
return _m.SetChannelID(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderExtensionCreate) SetNotNilChannelID(value *uint64) *PayOrderExtensionCreate {
|
|
if value != nil {
|
|
return _m.SetChannelID(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderExtensionUpdate) SetNotNilChannelExtras(value *map[string]interface{}) *PayOrderExtensionUpdate {
|
|
if value != nil {
|
|
return _m.SetChannelExtras(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderExtensionUpdateOne) SetNotNilChannelExtras(value *map[string]interface{}) *PayOrderExtensionUpdateOne {
|
|
if value != nil {
|
|
return _m.SetChannelExtras(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderExtensionCreate) SetNotNilChannelExtras(value *map[string]interface{}) *PayOrderExtensionCreate {
|
|
if value != nil {
|
|
return _m.SetChannelExtras(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderExtensionUpdate) SetNotNilChannelErrorCode(value *string) *PayOrderExtensionUpdate {
|
|
if value != nil {
|
|
return _m.SetChannelErrorCode(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderExtensionUpdateOne) SetNotNilChannelErrorCode(value *string) *PayOrderExtensionUpdateOne {
|
|
if value != nil {
|
|
return _m.SetChannelErrorCode(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderExtensionCreate) SetNotNilChannelErrorCode(value *string) *PayOrderExtensionCreate {
|
|
if value != nil {
|
|
return _m.SetChannelErrorCode(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderExtensionUpdate) SetNotNilChannelErrorMsg(value *string) *PayOrderExtensionUpdate {
|
|
if value != nil {
|
|
return _m.SetChannelErrorMsg(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderExtensionUpdateOne) SetNotNilChannelErrorMsg(value *string) *PayOrderExtensionUpdateOne {
|
|
if value != nil {
|
|
return _m.SetChannelErrorMsg(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderExtensionCreate) SetNotNilChannelErrorMsg(value *string) *PayOrderExtensionCreate {
|
|
if value != nil {
|
|
return _m.SetChannelErrorMsg(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderExtensionUpdate) SetNotNilChannelNotifyData(value *string) *PayOrderExtensionUpdate {
|
|
if value != nil {
|
|
return _m.SetChannelNotifyData(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderExtensionUpdateOne) SetNotNilChannelNotifyData(value *string) *PayOrderExtensionUpdateOne {
|
|
if value != nil {
|
|
return _m.SetChannelNotifyData(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayOrderExtensionCreate) SetNotNilChannelNotifyData(value *string) *PayOrderExtensionCreate {
|
|
if value != nil {
|
|
return _m.SetChannelNotifyData(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayRefundUpdate) SetNotNilUpdatedAt(value *time.Time) *PayRefundUpdate {
|
|
if value != nil {
|
|
return _m.SetUpdatedAt(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayRefundUpdateOne) SetNotNilUpdatedAt(value *time.Time) *PayRefundUpdateOne {
|
|
if value != nil {
|
|
return _m.SetUpdatedAt(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayRefundCreate) SetNotNilUpdatedAt(value *time.Time) *PayRefundCreate {
|
|
if value != nil {
|
|
return _m.SetUpdatedAt(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayRefundUpdate) SetNotNilStatus(value *uint8) *PayRefundUpdate {
|
|
if value != nil {
|
|
return _m.SetStatus(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayRefundUpdateOne) SetNotNilStatus(value *uint8) *PayRefundUpdateOne {
|
|
if value != nil {
|
|
return _m.SetStatus(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayRefundCreate) SetNotNilStatus(value *uint8) *PayRefundCreate {
|
|
if value != nil {
|
|
return _m.SetStatus(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayRefundUpdate) SetNotNilDeletedAt(value *time.Time) *PayRefundUpdate {
|
|
if value != nil {
|
|
return _m.SetDeletedAt(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayRefundUpdateOne) SetNotNilDeletedAt(value *time.Time) *PayRefundUpdateOne {
|
|
if value != nil {
|
|
return _m.SetDeletedAt(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayRefundCreate) SetNotNilDeletedAt(value *time.Time) *PayRefundCreate {
|
|
if value != nil {
|
|
return _m.SetDeletedAt(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayRefundUpdate) SetNotNilChannelID(value *uint64) *PayRefundUpdate {
|
|
if value != nil {
|
|
return _m.SetChannelID(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayRefundUpdateOne) SetNotNilChannelID(value *uint64) *PayRefundUpdateOne {
|
|
if value != nil {
|
|
return _m.SetChannelID(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayRefundCreate) SetNotNilChannelID(value *uint64) *PayRefundCreate {
|
|
if value != nil {
|
|
return _m.SetChannelID(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayRefundUpdate) SetNotNilUserID(value *uint64) *PayRefundUpdate {
|
|
if value != nil {
|
|
return _m.SetUserID(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayRefundUpdateOne) SetNotNilUserID(value *uint64) *PayRefundUpdateOne {
|
|
if value != nil {
|
|
return _m.SetUserID(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayRefundCreate) SetNotNilUserID(value *uint64) *PayRefundCreate {
|
|
if value != nil {
|
|
return _m.SetUserID(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayRefundUpdate) SetNotNilOrderID(value *uint64) *PayRefundUpdate {
|
|
if value != nil {
|
|
return _m.SetOrderID(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayRefundUpdateOne) SetNotNilOrderID(value *uint64) *PayRefundUpdateOne {
|
|
if value != nil {
|
|
return _m.SetOrderID(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayRefundCreate) SetNotNilOrderID(value *uint64) *PayRefundCreate {
|
|
if value != nil {
|
|
return _m.SetOrderID(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayRefundUpdate) SetNotNilNotifyURL(value *string) *PayRefundUpdate {
|
|
if value != nil {
|
|
return _m.SetNotifyURL(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayRefundUpdateOne) SetNotNilNotifyURL(value *string) *PayRefundUpdateOne {
|
|
if value != nil {
|
|
return _m.SetNotifyURL(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayRefundCreate) SetNotNilNotifyURL(value *string) *PayRefundCreate {
|
|
if value != nil {
|
|
return _m.SetNotifyURL(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayRefundUpdate) SetNotNilRefundStatus(value *uint8) *PayRefundUpdate {
|
|
if value != nil {
|
|
return _m.SetRefundStatus(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayRefundUpdateOne) SetNotNilRefundStatus(value *uint8) *PayRefundUpdateOne {
|
|
if value != nil {
|
|
return _m.SetRefundStatus(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayRefundCreate) SetNotNilRefundStatus(value *uint8) *PayRefundCreate {
|
|
if value != nil {
|
|
return _m.SetRefundStatus(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayRefundUpdate) SetNotNilRefundAmount(value *uint64) *PayRefundUpdate {
|
|
if value != nil {
|
|
return _m.SetRefundAmount(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayRefundUpdateOne) SetNotNilRefundAmount(value *uint64) *PayRefundUpdateOne {
|
|
if value != nil {
|
|
return _m.SetRefundAmount(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayRefundCreate) SetNotNilRefundAmount(value *uint64) *PayRefundCreate {
|
|
if value != nil {
|
|
return _m.SetRefundAmount(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayRefundUpdate) SetNotNilPayAmount(value *uint64) *PayRefundUpdate {
|
|
if value != nil {
|
|
return _m.SetPayAmount(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayRefundUpdateOne) SetNotNilPayAmount(value *uint64) *PayRefundUpdateOne {
|
|
if value != nil {
|
|
return _m.SetPayAmount(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayRefundCreate) SetNotNilPayAmount(value *uint64) *PayRefundCreate {
|
|
if value != nil {
|
|
return _m.SetPayAmount(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayRefundUpdate) SetNotNilRefundNo(value *string) *PayRefundUpdate {
|
|
if value != nil {
|
|
return _m.SetRefundNo(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayRefundUpdateOne) SetNotNilRefundNo(value *string) *PayRefundUpdateOne {
|
|
if value != nil {
|
|
return _m.SetRefundNo(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayRefundCreate) SetNotNilRefundNo(value *string) *PayRefundCreate {
|
|
if value != nil {
|
|
return _m.SetRefundNo(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayRefundUpdate) SetNotNilRefundReason(value *string) *PayRefundUpdate {
|
|
if value != nil {
|
|
return _m.SetRefundReason(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayRefundUpdateOne) SetNotNilRefundReason(value *string) *PayRefundUpdateOne {
|
|
if value != nil {
|
|
return _m.SetRefundReason(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayRefundCreate) SetNotNilRefundReason(value *string) *PayRefundCreate {
|
|
if value != nil {
|
|
return _m.SetRefundReason(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayRefundUpdate) SetNotNilUserIP(value *string) *PayRefundUpdate {
|
|
if value != nil {
|
|
return _m.SetUserIP(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayRefundUpdateOne) SetNotNilUserIP(value *string) *PayRefundUpdateOne {
|
|
if value != nil {
|
|
return _m.SetUserIP(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayRefundCreate) SetNotNilUserIP(value *string) *PayRefundCreate {
|
|
if value != nil {
|
|
return _m.SetUserIP(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayRefundUpdate) SetNotNilChannelRefundNo(value *string) *PayRefundUpdate {
|
|
if value != nil {
|
|
return _m.SetChannelRefundNo(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayRefundUpdateOne) SetNotNilChannelRefundNo(value *string) *PayRefundUpdateOne {
|
|
if value != nil {
|
|
return _m.SetChannelRefundNo(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayRefundCreate) SetNotNilChannelRefundNo(value *string) *PayRefundCreate {
|
|
if value != nil {
|
|
return _m.SetChannelRefundNo(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayRefundUpdate) SetNotNilRefundTime(value *time.Time) *PayRefundUpdate {
|
|
if value != nil {
|
|
return _m.SetRefundTime(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayRefundUpdateOne) SetNotNilRefundTime(value *time.Time) *PayRefundUpdateOne {
|
|
if value != nil {
|
|
return _m.SetRefundTime(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayRefundCreate) SetNotNilRefundTime(value *time.Time) *PayRefundCreate {
|
|
if value != nil {
|
|
return _m.SetRefundTime(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayRefundUpdate) SetNotNilChannelErrorCode(value *string) *PayRefundUpdate {
|
|
if value != nil {
|
|
return _m.SetChannelErrorCode(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayRefundUpdateOne) SetNotNilChannelErrorCode(value *string) *PayRefundUpdateOne {
|
|
if value != nil {
|
|
return _m.SetChannelErrorCode(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayRefundCreate) SetNotNilChannelErrorCode(value *string) *PayRefundCreate {
|
|
if value != nil {
|
|
return _m.SetChannelErrorCode(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayRefundUpdate) SetNotNilChannelErrorMsg(value *string) *PayRefundUpdate {
|
|
if value != nil {
|
|
return _m.SetChannelErrorMsg(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayRefundUpdateOne) SetNotNilChannelErrorMsg(value *string) *PayRefundUpdateOne {
|
|
if value != nil {
|
|
return _m.SetChannelErrorMsg(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayRefundCreate) SetNotNilChannelErrorMsg(value *string) *PayRefundCreate {
|
|
if value != nil {
|
|
return _m.SetChannelErrorMsg(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayRefundUpdate) SetNotNilChannelNotifyData(value *string) *PayRefundUpdate {
|
|
if value != nil {
|
|
return _m.SetChannelNotifyData(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayRefundUpdateOne) SetNotNilChannelNotifyData(value *string) *PayRefundUpdateOne {
|
|
if value != nil {
|
|
return _m.SetChannelNotifyData(*value)
|
|
}
|
|
return _m
|
|
}
|
|
|
|
// set field if value's pointer is not nil.
|
|
func (_m *PayRefundCreate) SetNotNilChannelNotifyData(value *string) *PayRefundCreate {
|
|
if value != nil {
|
|
return _m.SetChannelNotifyData(*value)
|
|
}
|
|
return _m
|
|
}
|