Sha256: bd0063abd177d02dc9a4ed4acf0d72be55a8a069ba2a4f0c55540483b8b804f0
Contents?: true
Size: 603 Bytes
Versions: 6
Compression:
Stored size: 603 Bytes
Contents
## Updating subscriptions ### Changing the metadata You can update the `custom_id` or the `notification_url` of a subscription. It is important to keep in mind that all the subscription charges will be updated. If you want to update only one, check [Updating charges](/docs/charge-update). ```ruby params = { id: 1009 } body = { notification_url: "http://yourdomain.com", custom_id: "my_new_id" } gerencianet = Gerencianet.new(options) puts gerencianet.update_subscription_metadata(params: params, body: body) ``` If everything goes well, the return will be: ```ruby { "code": 200 } ```
Version data entries
6 entries across 6 versions & 1 rubygems