Skip to content

Latest commit

 

History

History
284 lines (223 loc) · 10.3 KB

AlipayEbppInvoiceInstitutionApi.md

File metadata and controls

284 lines (223 loc) · 10.3 KB

AlipaySDKNet.OpenAPI.Api.AlipayEbppInvoiceInstitutionApi

All URIs are relative to https://openapi.alipay.com

Method HTTP request Description
Create POST /v3/alipay/ebpp/invoice/institution/create 制度新增
Delete DELETE /v3/alipay/ebpp/invoice/institution/delete 制度删除
Modify POST /v3/alipay/ebpp/invoice/institution/modify 制度编辑

Create

AlipayEbppInvoiceInstitutionCreateResponseModel Create (AlipayEbppInvoiceInstitutionCreateModel alipayEbppInvoiceInstitutionCreateModel = null)

制度新增

制度新增,包含制度下使用规则列表和发放规则列表的新增。

Example

using System.Collections.Generic;
using System.Diagnostics;
using AlipaySDKNet.OpenAPI.Api;
using AlipaySDKNet.OpenAPI.Client;
using AlipaySDKNet.OpenAPI.Model;
using AlipaySDKNet.OpenAPI.Util;
using AlipaySDKNet.OpenAPI.Util.Model;

namespace Example
{
    public class CreateExample
    {
        public static void Main()
        {
            Configuration config = new Configuration();
            config.BasePath = "https://openapi.alipay.com";
            var apiInstance = new AlipayEbppInvoiceInstitutionApi(config);

            // 设置alipayConfig参数
            AlipayConfig alipayConfig = new AlipayConfig();
            alipayConfig.AppId = "app_id";
            alipayConfig.PrivateKey = "private_key";
            // 密钥模式
            alipayConfig.AlipayPublicKey = "alipay_public_key";
            // 证书模式
            // alipayConfig.AppCertPath = "../appCertPublicKey.crt";
            // alipayConfig.AlipayPublicCertPath = "../alipayCertPublicKey_RSA2.crt";
            // alipayConfig.RootCertPath = "../alipayRootCert.crt";
            alipayConfig.EncryptKey = "encrypt_key";
            AlipayConfigUtil alipayConfigUtil = new AlipayConfigUtil(alipayConfig);
            apiInstance.Client.SetAlipayConfigUtil(alipayConfigUtil);

            var alipayEbppInvoiceInstitutionCreateModel = new AlipayEbppInvoiceInstitutionCreateModel(); // AlipayEbppInvoiceInstitutionCreateModel |  (optional) 

            try
            {
                // 制度新增
                AlipayEbppInvoiceInstitutionCreateResponseModel result = apiInstance.Create(alipayEbppInvoiceInstitutionCreateModel);
                Debug.WriteLine(result);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling AlipayEbppInvoiceInstitutionApi.Create: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

Name Type Description Notes
alipayEbppInvoiceInstitutionCreateModel AlipayEbppInvoiceInstitutionCreateModel [optional]

Return type

AlipayEbppInvoiceInstitutionCreateResponseModel

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 common response -
0 请求失败 -

[Back to top] [Back to API list] [Back to README]

Delete

AlipayEbppInvoiceInstitutionDeleteResponseModel Delete (string accountId = null, string agreementNo = null, string enterpriseId = null, string institutionId = null)

制度删除

制度删除

Example

using System.Collections.Generic;
using System.Diagnostics;
using AlipaySDKNet.OpenAPI.Api;
using AlipaySDKNet.OpenAPI.Client;
using AlipaySDKNet.OpenAPI.Model;
using AlipaySDKNet.OpenAPI.Util;
using AlipaySDKNet.OpenAPI.Util.Model;

namespace Example
{
    public class DeleteExample
    {
        public static void Main()
        {
            Configuration config = new Configuration();
            config.BasePath = "https://openapi.alipay.com";
            var apiInstance = new AlipayEbppInvoiceInstitutionApi(config);

            // 设置alipayConfig参数
            AlipayConfig alipayConfig = new AlipayConfig();
            alipayConfig.AppId = "app_id";
            alipayConfig.PrivateKey = "private_key";
            // 密钥模式
            alipayConfig.AlipayPublicKey = "alipay_public_key";
            // 证书模式
            // alipayConfig.AppCertPath = "../appCertPublicKey.crt";
            // alipayConfig.AlipayPublicCertPath = "../alipayCertPublicKey_RSA2.crt";
            // alipayConfig.RootCertPath = "../alipayRootCert.crt";
            alipayConfig.EncryptKey = "encrypt_key";
            AlipayConfigUtil alipayConfigUtil = new AlipayConfigUtil(alipayConfig);
            apiInstance.Client.SetAlipayConfigUtil(alipayConfigUtil);

            var accountId = 2088000194958956;  // string | 企业共同账户id(该字段将废弃,不建议使用,可用enterprise_id字段替换)(该字段将废弃,不建议使用,可用enterprise_id字段替换) (optional) 
            var agreementNo = 20215425001181407500;  // string | 授权签约协议号 (该字段将废弃,不建议使用,可用enterprise_id字段替换)(该字段将废弃,不建议使用,可用enterprise_id字段替换) (optional) 
            var enterpriseId = 2088123412341234;  // string | 企业id (optional) 
            var institutionId = 2022031000152617000000000001;  // string | 制度id (optional) 

            try
            {
                // 制度删除
                AlipayEbppInvoiceInstitutionDeleteResponseModel result = apiInstance.Delete(accountId, agreementNo, enterpriseId, institutionId);
                Debug.WriteLine(result);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling AlipayEbppInvoiceInstitutionApi.Delete: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

Name Type Description Notes
accountId string 企业共同账户id(该字段将废弃,不建议使用,可用enterprise_id字段替换)(该字段将废弃,不建议使用,可用enterprise_id字段替换) [optional]
agreementNo string 授权签约协议号 (该字段将废弃,不建议使用,可用enterprise_id字段替换)(该字段将废弃,不建议使用,可用enterprise_id字段替换) [optional]
enterpriseId string 企业id [optional]
institutionId string 制度id [optional]

Return type

AlipayEbppInvoiceInstitutionDeleteResponseModel

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 common response -
0 请求失败 -

[Back to top] [Back to API list] [Back to README]

Modify

AlipayEbppInvoiceInstitutionModifyResponseModel Modify (AlipayEbppInvoiceInstitutionModifyModel alipayEbppInvoiceInstitutionModifyModel = null)

制度编辑

制度编辑

Example

using System.Collections.Generic;
using System.Diagnostics;
using AlipaySDKNet.OpenAPI.Api;
using AlipaySDKNet.OpenAPI.Client;
using AlipaySDKNet.OpenAPI.Model;
using AlipaySDKNet.OpenAPI.Util;
using AlipaySDKNet.OpenAPI.Util.Model;

namespace Example
{
    public class ModifyExample
    {
        public static void Main()
        {
            Configuration config = new Configuration();
            config.BasePath = "https://openapi.alipay.com";
            var apiInstance = new AlipayEbppInvoiceInstitutionApi(config);

            // 设置alipayConfig参数
            AlipayConfig alipayConfig = new AlipayConfig();
            alipayConfig.AppId = "app_id";
            alipayConfig.PrivateKey = "private_key";
            // 密钥模式
            alipayConfig.AlipayPublicKey = "alipay_public_key";
            // 证书模式
            // alipayConfig.AppCertPath = "../appCertPublicKey.crt";
            // alipayConfig.AlipayPublicCertPath = "../alipayCertPublicKey_RSA2.crt";
            // alipayConfig.RootCertPath = "../alipayRootCert.crt";
            alipayConfig.EncryptKey = "encrypt_key";
            AlipayConfigUtil alipayConfigUtil = new AlipayConfigUtil(alipayConfig);
            apiInstance.Client.SetAlipayConfigUtil(alipayConfigUtil);

            var alipayEbppInvoiceInstitutionModifyModel = new AlipayEbppInvoiceInstitutionModifyModel(); // AlipayEbppInvoiceInstitutionModifyModel |  (optional) 

            try
            {
                // 制度编辑
                AlipayEbppInvoiceInstitutionModifyResponseModel result = apiInstance.Modify(alipayEbppInvoiceInstitutionModifyModel);
                Debug.WriteLine(result);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling AlipayEbppInvoiceInstitutionApi.Modify: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

Name Type Description Notes
alipayEbppInvoiceInstitutionModifyModel AlipayEbppInvoiceInstitutionModifyModel [optional]

Return type

AlipayEbppInvoiceInstitutionModifyResponseModel

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 common response -
0 请求失败 -

[Back to top] [Back to API list] [Back to README]