Comments (2)
Version 1.4.4 has added support for the serialization and deserialization of custom metadata classes. You can now add metadata using the SetMetadata method on the PaymentRequest class and retrieve custom metadata classes using the GetMetadata method on the PaymentResponse class.
from mollieapi.
Another solution could be to use the Newtonsoft.Json.Linq.JObject class. This will allow you to easily read/write any values of a json object. This will also allow you to easily serialize your own custom metadata class to the MetaData property. For example:
Converting JObject to your own class:
MyCustomMetaDataClass metaData = JObject.Parse.ToObject<MyCustomMetaDataClass>();
Writing your own metadata class to a JObject:
JObject jsonObject = JObject.FromObject(metaData);
Kind regards,
Vincent
from mollieapi.
Related Issues (20)
- Add support for the new Create Capture endpoint HOT 1
- Add support for split auth capture HOT 1
- Add unit tests and documentation for the new Terminals API HOT 1
- Add support for the Billie payment method HOT 3
- Add support for the create client link endpoint HOT 6
- OrderRequest and OrderResponse are missing support for various payment method specific properties HOT 2
- Restructure folder structure to make the repository in-line with modern open-source repositories HOT 1
- Update project to .NET standard 2.0 HOT 2
- Add extension method to register all Mollie API clients using dependency injection HOT 1
- IPaymentClient should inherit from IDisposable HOT 7
- Support for get payment refund HOT 2
- Pagination on GetChargebacksListAsync HOT 3
- Wallet API support HOT 1
- GetInvoiceListAsync : Unprocessable Entity - Non-existent query parameter "include" for this API call HOT 4
- Add support for Klarna One payment method HOT 1
- UpdateCustomerAsync throws error 502 HOT 3
- Create customer throws error when using the testmode property in the request HOT 2
- Enable nullable references in Mollie.Api project
- How to set your own idempotency key? HOT 10
- Add an .editorconfig file to help maintain styling HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mollieapi.