nexmo_api_specification 0.9.3 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 61c8a02911037cb52fc0fcca007104a0ff7f15f7
4
- data.tar.gz: a8a2a448b45e52a4d4b8a1fc5a08ac40f087249b
3
+ metadata.gz: 545b648b9c7d8a69b9e40890dc6dcf5c43cc3348
4
+ data.tar.gz: 40d04446387f76895e2e35b8d0b133b212cbc34a
5
5
  SHA512:
6
- metadata.gz: 5bef8ea6e02ae6af60e840638b7e5faf138c65d1f00cbf320487cdc15e444b206d5f1329a425bb1e74ae0e9ae27c275bf24c84a02e2026f2e59ac19e650b13ee
7
- data.tar.gz: 8134e30124651df91e88ea264893c8b3aed008a30d3ba1390060527373b9f745b0864a0d0d9fe54b5b2ada5af2bc79091dcd08b4a6514542d3af1f813b563fb9
6
+ metadata.gz: ebc369d67f21697d8a5bccba58d529200760793c7c2fcca383a4d89b0a25ea59496fd0a1a7ddb499a91ce2a12edfafdaee95c3348f6f3c61b1b617e4b5be415e
7
+ data.tar.gz: b3d55b74c67007aa6cc05d5d93004b734a752eae559a544eef6c10501654f6b2b6d520e2a54043bfca3b95926f1c1145ddfc8c599818a7ef1def4933cd278ac3
data/definitions/sms.yml CHANGED
@@ -24,7 +24,6 @@ paths:
24
24
  enum:
25
25
  - json
26
26
  - xml
27
- default: json
28
27
  - name: api_key
29
28
  description: Your API key
30
29
  required: true
@@ -64,6 +63,10 @@ paths:
64
63
  application/json:
65
64
  schema:
66
65
  $ref: '#/components/schemas/Message'
66
+ text/xml:
67
+ schema:
68
+ $ref: '#/components/schemas/MessageXmlWrapper'
69
+
67
70
  callbacks:
68
71
  delivery-receipt:
69
72
  '{$request.body#/callback}':
@@ -314,6 +317,8 @@ components:
314
317
  type: string
315
318
  description: The ID of the message
316
319
  example: 0A0000000123ABCD1
320
+ xml:
321
+ name: messageId
317
322
  status:
318
323
  type: string
319
324
  description: The status of the message
@@ -322,14 +327,33 @@ components:
322
327
  type: string
323
328
  description: Your remaining balance
324
329
  example: '3.14159265'
330
+ xml:
331
+ name: remainingBalance
325
332
  message-price:
326
333
  type: string
327
334
  description: The cost of the message
328
335
  example: '0.03330000'
336
+ xml:
337
+ name: messagePrice
329
338
  network:
330
339
  type: string
331
340
  description: The ID of the network of the recipient
332
341
  example: '12345'
342
+ MessageXmlWrapper:
343
+ type: object
344
+ xml:
345
+ name: mt-submission-response
346
+ properties:
347
+ messages:
348
+ type: array
349
+ items:
350
+ $ref: '#/components/schemas/Message'
351
+ properties:
352
+ count:
353
+ type: integer
354
+ example: 1
355
+ xml:
356
+ attribute: true
333
357
  DeliveryReceipt:
334
358
  type: object
335
359
  properties:
@@ -368,7 +392,7 @@ components:
368
392
  scts:
369
393
  type: string
370
394
  description: When the DLR was recieved from the carrier in the following format `YYMMDDHHMM`. For example, `2001011400` is at `2020-01-01 14:00`
371
- example: 2001011400
395
+ example: '2001011400'
372
396
  err-code:
373
397
  type: string
374
398
  description: |
@@ -407,3 +431,5 @@ x-groups:
407
431
  schema:
408
432
  application/json:
409
433
  $ref: '#/components/schemas/SMS'
434
+ text/xml:
435
+ $ref: '#/components/schemas/MessageXmlWrapper'
@@ -1,3 +1,3 @@
1
1
  module NexmoApiSpecification
2
- VERSION = '0.9.3'.freeze
2
+ VERSION = '0.10.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nexmo_api_specification
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.3
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Butler
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-02-15 00:00:00.000000000 Z
11
+ date: 2018-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler