diff --git a/services/goldplan/api_merchants.go b/services/goldplan/api_merchants.go index fc419d3..7961325 100644 --- a/services/goldplan/api_merchants.go +++ b/services/goldplan/api_merchants.go @@ -4,7 +4,7 @@ // // 特约商户点金计划管理API // -// API version: 0.2.3 +// API version: 0.3.3 // Code generated by WechatPay APIv3 Generator based on [OpenAPI Generator](https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/goldplan/api_merchants_example_test.go b/services/goldplan/api_merchants_example_test.go index fcfd31e..47e3ef8 100644 --- a/services/goldplan/api_merchants_example_test.go +++ b/services/goldplan/api_merchants_example_test.go @@ -4,7 +4,7 @@ // // 特约商户点金计划管理API // -// API version: 0.2.3 +// API version: 0.3.3 // Code generated by WechatPay APIv3 Generator based on [OpenAPI Generator](https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/goldplan/api_status.go b/services/goldplan/api_status.go index 8d8c3f3..2322282 100644 --- a/services/goldplan/api_status.go +++ b/services/goldplan/api_status.go @@ -4,7 +4,7 @@ // // 特约商户点金计划管理API // -// API version: 0.2.3 +// API version: 0.3.3 // Code generated by WechatPay APIv3 Generator based on [OpenAPI Generator](https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/goldplan/api_status_example_test.go b/services/goldplan/api_status_example_test.go index db9ed84..c0d14cf 100644 --- a/services/goldplan/api_status_example_test.go +++ b/services/goldplan/api_status_example_test.go @@ -4,7 +4,7 @@ // // 特约商户点金计划管理API // -// API version: 0.2.3 +// API version: 0.3.3 // Code generated by WechatPay APIv3 Generator based on [OpenAPI Generator](https://openapi-generator.tech); DO NOT EDIT. @@ -90,8 +90,9 @@ func ExampleStatusApiService_ChangeGoldPlanStatus() { svc := goldplan.StatusApiService{Client: client} resp, result, err := svc.ChangeGoldPlanStatus(ctx, goldplan.ChangeGoldPlanStatusRequest{ - SubMchid: core.String("1900000109"), - OperationType: goldplan.OPERATIONTYPE_OPEN.Ptr(), + SubMchid: core.String("1900000109"), + OperationType: goldplan.OPERATIONTYPE_OPEN.Ptr(), + OperationPayScene: goldplan.OPERATIONPAYSCENE_JSAPI_AND_MINIPROGRAM.Ptr(), }, ) diff --git a/services/goldplan/models.go b/services/goldplan/models.go index e065ac0..8bd7ebb 100644 --- a/services/goldplan/models.go +++ b/services/goldplan/models.go @@ -4,7 +4,7 @@ // // 特约商户点金计划管理API // -// API version: 0.2.3 +// API version: 0.3.3 // Code generated by WechatPay APIv3 Generator based on [OpenAPI Generator](https://openapi-generator.tech); DO NOT EDIT. @@ -115,6 +115,8 @@ type ChangeGoldPlanStatusRequest struct { SubMchid *string `json:"sub_mchid"` // 开通或关闭点金计划的动作,枚举值: OPEN:表示开通点金计划 CLOSE:表示关闭点金计划 OperationType *OperationType `json:"operation_type"` + // 支付场景,指定开通点金计划的支付场景。如果未指定,则默认全部打开 + OperationPayScene *OperationPayScene `json:"operation_pay_scene,omitempty"` } func (o ChangeGoldPlanStatusRequest) MarshalJSON() ([]byte, error) { @@ -129,6 +131,10 @@ func (o ChangeGoldPlanStatusRequest) MarshalJSON() ([]byte, error) { return nil, fmt.Errorf("field `OperationType` is required and must be specified in ChangeGoldPlanStatusRequest") } toSerialize["operation_type"] = o.OperationType + + if o.OperationPayScene != nil { + toSerialize["operation_pay_scene"] = o.OperationPayScene + } return json.Marshal(toSerialize) } @@ -141,9 +147,15 @@ func (o ChangeGoldPlanStatusRequest) String() string { } if o.OperationType == nil { - ret += "OperationType:" + ret += "OperationType:, " } else { - ret += fmt.Sprintf("OperationType:%v", *o.OperationType) + ret += fmt.Sprintf("OperationType:%v, ", *o.OperationType) + } + + if o.OperationPayScene == nil { + ret += "OperationPayScene:" + } else { + ret += fmt.Sprintf("OperationPayScene:%v", *o.OperationPayScene) } return fmt.Sprintf("ChangeGoldPlanStatusRequest{%s}", ret) @@ -162,6 +174,11 @@ func (o ChangeGoldPlanStatusRequest) Clone() *ChangeGoldPlanStatusRequest { *ret.OperationType = *o.OperationType } + if o.OperationPayScene != nil { + ret.OperationPayScene = new(OperationPayScene) + *ret.OperationPayScene = *o.OperationPayScene + } + return &ret } @@ -341,6 +358,20 @@ func (o OpenAdvertisingShowRequest) Clone() *OpenAdvertisingShowRequest { return &ret } +// OperationPayScene +type OperationPayScene string + +func (e OperationPayScene) Ptr() *OperationPayScene { + return &e +} + +// Enums of OperationPayScene +const ( + OPERATIONPAYSCENE_JSAPI_AND_MINIPROGRAM OperationPayScene = "JSAPI_AND_MINIPROGRAM" + OPERATIONPAYSCENE_JSAPI OperationPayScene = "JSAPI" + OPERATIONPAYSCENE_MINIPROGRAM OperationPayScene = "MINIPROGRAM" +) + // OperationType type OperationType string