@salesforce/lds-adapters-revenue-harmonizebilling 0.1.0-dev1

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.
Files changed (26) hide show
  1. package/LICENSE.txt +82 -0
  2. package/dist/es/es2018/revenue-harmonizebilling.js +915 -0
  3. package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
  4. package/dist/es/es2018/types/src/generated/adapters/postDraftInvoices.d.ts +28 -0
  5. package/dist/es/es2018/types/src/generated/adapters/resumeBilling.d.ts +28 -0
  6. package/dist/es/es2018/types/src/generated/adapters/suspendBilling.d.ts +28 -0
  7. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +3 -0
  8. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +7 -0
  9. package/dist/es/es2018/types/src/generated/resources/postCommerceInvoicingActionsResumeBilling.d.ts +16 -0
  10. package/dist/es/es2018/types/src/generated/resources/postCommerceInvoicingActionsSuspendBilling.d.ts +16 -0
  11. package/dist/es/es2018/types/src/generated/resources/postCommerceInvoicingInvoicesCollectionActionsPost.d.ts +16 -0
  12. package/dist/es/es2018/types/src/generated/types/ErrorResponseRepresentation.d.ts +31 -0
  13. package/dist/es/es2018/types/src/generated/types/InvoiceDraftToPostedInputRepresentation.d.ts +31 -0
  14. package/dist/es/es2018/types/src/generated/types/ResumeBillingEntityInputRepresentation.d.ts +31 -0
  15. package/dist/es/es2018/types/src/generated/types/ResumeBillingInputRepresentation.d.ts +29 -0
  16. package/dist/es/es2018/types/src/generated/types/RevenueAsyncRepresentation.d.ts +39 -0
  17. package/dist/es/es2018/types/src/generated/types/SuspendBillingEntityInputRepresentation.d.ts +34 -0
  18. package/dist/es/es2018/types/src/generated/types/SuspendBillingInputRepresentation.d.ts +29 -0
  19. package/dist/es/es2018/types/src/generated/types/SuspendResumeBillingEntityOutputRepresentation.d.ts +37 -0
  20. package/dist/es/es2018/types/src/generated/types/SuspendResumeBillingOutputRepresentation.d.ts +30 -0
  21. package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
  22. package/package.json +66 -0
  23. package/sfdc/index.d.ts +1 -0
  24. package/sfdc/index.js +969 -0
  25. package/src/raml/api.raml +195 -0
  26. package/src/raml/luvio.raml +34 -0
@@ -0,0 +1,195 @@
1
+ #%RAML 1.0
2
+ securedBy:
3
+ - OAuth2
4
+ title: Salesforce Connect API
5
+ version: '63.0'
6
+ mediaType: application/json
7
+ protocols:
8
+ - https
9
+ baseUri: /services/data/v66.0
10
+ securitySchemes:
11
+ OAuth2:
12
+ type: OAuth 2.0
13
+ settings:
14
+ authorizationUri: https://example.com/oauth/authorize
15
+ accessTokenUri: ''
16
+ authorizationGrants:
17
+ - implicit
18
+ annotationTypes:
19
+ oas-readOnly:
20
+ type: boolean
21
+ allowedTargets: TypeDeclaration
22
+ oas-collectionFormat:
23
+ type: string
24
+ oas-body-name:
25
+ type: string
26
+ allowedTargets: TypeDeclaration
27
+ types:
28
+ InvoiceDraftToPostedInputRepresentation:
29
+ description: Connect API representation for Invoice Draft to Posted api
30
+ type: object
31
+ properties:
32
+ correlationId:
33
+ description: Correlation ID
34
+ type: string
35
+ required: false # TODO handrolled W-13817376
36
+ invoiceIds:
37
+ description: List of draft invoices to be posted.
38
+ type: array
39
+ items:
40
+ type: string
41
+ RevenueAsyncRepresentation: #TODO handrolled W-13817376
42
+ description: Connect API representation of an async service result
43
+ type: object
44
+ properties:
45
+ errors:
46
+ description: List of errors
47
+ type: array
48
+ items:
49
+ type: ErrorResponseRepresentation
50
+ requestIdentifier:
51
+ description: Unique request identifier that can be used to poll async request
52
+ type: string
53
+ statusURL:
54
+ description: a StatusURL for tracking this operation
55
+ required: false # TODO handrolled W-13817376
56
+ type: string
57
+ success:
58
+ description: Flag indicating the overall enqueue status
59
+ type: boolean
60
+
61
+ ErrorResponseRepresentation:
62
+ description: Error response representation
63
+ type: object
64
+ properties:
65
+ errorCode:
66
+ description: Error Code
67
+ type: string
68
+ message:
69
+ description: Message stating the reason for error, if any
70
+ type: string
71
+
72
+ ResumeBillingEntityInputRepresentation:
73
+ description: Input representation for resume billing operation for Entity.
74
+ type: object
75
+ properties:
76
+ referenceId:
77
+ description: Entity Id to be resumed for Billing.
78
+ type: string
79
+ resumeDate:
80
+ description: The date on which billing is resumed.
81
+ type: string
82
+
83
+ ResumeBillingInputRepresentation:
84
+ description: Input representation for resume billing operation.
85
+ type: object
86
+ properties:
87
+ referenceIds:
88
+ description: List of input representation to be resumed for Billing.
89
+ type: array
90
+ items:
91
+ type: ResumeBillingEntityInputRepresentation
92
+
93
+ SuspendBillingEntityInputRepresentation:
94
+ description: Input representation for suspend billing operation for entity.
95
+ type: object
96
+ properties:
97
+ referenceId:
98
+ description: Entity Id to be suspended for Billing.
99
+ type: string
100
+ resumeDate:
101
+ description: The date till which Account/BSG is suspended for Billing.
102
+ type: string
103
+ suspendDate:
104
+ description: The date from which Account/BSG is suspended for Billing.
105
+ type: string
106
+
107
+ SuspendBillingInputRepresentation:
108
+ description: Input representation for suspend billing operation.
109
+ type: object
110
+ properties:
111
+ referenceIds:
112
+ description: Input representation of entity Ids to be suspended for Billing.
113
+ type: array
114
+ items:
115
+ type: SuspendBillingEntityInputRepresentation
116
+
117
+ SuspendResumeBillingEntityOutputRepresentation:
118
+ description: Connect API representation for suspend/resume billing output response.
119
+ type: object
120
+ properties:
121
+ errorCode:
122
+ description: Error Code of the error thrown.
123
+ type: string
124
+ errorMessage:
125
+ description: Error Message of the error thrown.
126
+ type: string
127
+ isSuccess:
128
+ description: Suspend Billing processing status.
129
+ type: boolean
130
+ referenceId:
131
+ description: Entity Id for which suspend billing is called.
132
+ type: string
133
+
134
+ SuspendResumeBillingOutputRepresentation:
135
+ description: Output representation of the list of Account/BSGs which are suspended/resumed
136
+ for billing.
137
+ type: object
138
+ properties:
139
+ result:
140
+ description: Response detail of the entities for which suspend/resume billing
141
+ is initiated.
142
+ type: array
143
+ items:
144
+ type: SuspendResumeBillingEntityOutputRepresentation
145
+
146
+ /commerce:
147
+ /invoicing:
148
+ /actions:
149
+ /resume-billing:
150
+ post:
151
+ displayName: postResumeBilling
152
+ description: Resume billing for accounts or BSGs
153
+ responses:
154
+ '200':
155
+ description: Success
156
+ body:
157
+ application/json:
158
+ type: SuspendResumeBillingOutputRepresentation
159
+ body:
160
+ application/json:
161
+ type: ResumeBillingInputRepresentation
162
+ #required: false
163
+ (oas-body-name): inputRequest
164
+ /suspend-billing:
165
+ post:
166
+ displayName: postSuspendBilling
167
+ description: Hold/suspend the billing for accounts or BSGs
168
+ responses:
169
+ '200':
170
+ description: Success
171
+ body:
172
+ application/json:
173
+ type: SuspendResumeBillingOutputRepresentation
174
+ body:
175
+ application/json:
176
+ type: SuspendBillingInputRepresentation
177
+ #required: false
178
+ (oas-body-name): inputRequest
179
+ /invoices:
180
+ /collection/actions:
181
+ /post:
182
+ post:
183
+ displayName: postInvoiceDraftToPosted
184
+ description: Post a Draft Invoice
185
+ responses:
186
+ '200':
187
+ description: Success
188
+ body:
189
+ application/json:
190
+ type: RevenueAsyncRepresentation
191
+ body:
192
+ application/json:
193
+ type: InvoiceDraftToPostedInputRepresentation
194
+ #required: false # TODO handrolled W-13817376
195
+ (oas-body-name): inputRequest
@@ -0,0 +1,34 @@
1
+ #%RAML 1.0 Overlay
2
+ extends: ./api.raml
3
+
4
+ uses:
5
+ luvio: luvio://annotations.raml
6
+
7
+ (luvio.keyPrefix): 'HarmonizeBilling'
8
+
9
+ types:
10
+ RevenueAsyncRepresentation:
11
+ (luvio.ttl): 1000
12
+ SuspendResumeBillingOutputRepresentation:
13
+ (luvio.ttl): 1000
14
+
15
+ /commerce:
16
+ /invoicing:
17
+ /invoices:
18
+ /collection/actions:
19
+ /post:
20
+ post:
21
+ (luvio.method): get
22
+ (luvio.adapter):
23
+ name: postDraftInvoices
24
+ /actions:
25
+ /resume-billing:
26
+ post:
27
+ (luvio.method): get
28
+ (luvio.adapter):
29
+ name: resumeBilling
30
+ /suspend-billing:
31
+ post:
32
+ (luvio.method): get
33
+ (luvio.adapter):
34
+ name: suspendBilling