Skip to content

Error when Day is invalid value for CreateRecurringOrderTemplatesAutogiroAsync with AutoGiroPaymentPeriod = 0 #4

Description

@Jokab

According to the API documentation, the Day attribute is supposed to not be mandatory when AutoGiroPaymentPeriod is set to 0, i.e. a one-time deposit.

This turns out to not work as expected as I get the following warning with the SOAP request below: Value must be between 1 and 31. The external account in BFS admin is still created, but the error is a bit annoying.

Removing tem:Day altogether in the SOAP request gives the same error. Also, since Day should be able to be omitted, the property should probably nullable.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/">
   <soapenv:Header/>
   <soapenv:Body>
      <tem:CreateRecurringOrderTemplatesAutogiro>
         <tem:req>
            <tem:Credentials>
               <tem:UserName>omitted</tem:UserName>
               <tem:Password>omitted</tem:Password>
            </tem:Credentials>
            <tem:identify>omitted</tem:identify>
            <tem:Entities>
               <tem:RecurringOrderTemplateAutoGiro>
                  <tem:Account>3e639ecc-fe26-4eac-af04-e81af8427050</tem:Account>
                  <tem:CashAmount>10000</tem:CashAmount>
                  <tem:TransferReceiver>31ef2c8c-3b7b-4526-bf5c-f6f592fdf6c5</tem:TransferReceiver>
                  <tem:AutoGiroPaymentPeriod>0</tem:AutoGiroPaymentPeriod>
                  <tem:BusinessDate>2020-06-30</tem:BusinessDate>
                  <tem:Day>0</tem:Day>
               </tem:RecurringOrderTemplateAutoGiro>
            </tem:Entities>
         </tem:req>
      </tem:CreateRecurringOrderTemplatesAutogiro>
   </soapenv:Body>
</soapenv:Envelope>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions