@salesforce/lds-adapters-revenue-billing-batch 1.100.2

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 (29) hide show
  1. package/LICENSE.txt +82 -0
  2. package/dist/es/es2018/revenue-billing-batch.js +632 -0
  3. package/dist/types/src/generated/adapters/adapter-utils.d.ts +66 -0
  4. package/dist/types/src/generated/adapters/createInvoicesBatchScheduler.d.ts +15 -0
  5. package/dist/types/src/generated/adapters/createPaymentsBatchScheduler.d.ts +15 -0
  6. package/dist/types/src/generated/artifacts/main.d.ts +2 -0
  7. package/dist/types/src/generated/artifacts/sfdc.d.ts +3 -0
  8. package/dist/types/src/generated/resources/postCommerceInvoicingInvoiceSchedulers.d.ts +13 -0
  9. package/dist/types/src/generated/resources/postCommercePaymentsPaymentSchedulers.d.ts +13 -0
  10. package/dist/types/src/generated/types/BatchFilterCriteriaInputRepresentation.d.ts +35 -0
  11. package/dist/types/src/generated/types/BatchInvoiceSchedulerInputRepresentation.d.ts +30 -0
  12. package/dist/types/src/generated/types/BatchInvoiceSchedulerInputWrapperRepresentation.d.ts +29 -0
  13. package/dist/types/src/generated/types/BillingBatchSchedulerRepresentation.d.ts +29 -0
  14. package/dist/types/src/generated/types/InvoicesBatchSchedulerOutputRepresentation.d.ts +40 -0
  15. package/dist/types/src/generated/types/PaymentRunBatchFilterCriteriaInputRepresentation.d.ts +33 -0
  16. package/dist/types/src/generated/types/PaymentRunBatchFilterCriteriaInputRepresentations.d.ts +29 -0
  17. package/dist/types/src/generated/types/PaymentsBatchSchedulerInputRepresentation.d.ts +33 -0
  18. package/dist/types/src/generated/types/PaymentsBatchSchedulerInputWrapperRepresentation.d.ts +29 -0
  19. package/dist/types/src/generated/types/PaymentsBatchSchedulerOutputRepresentation.d.ts +40 -0
  20. package/dist/types/src/generated/types/ScheduleOptionsInputRepresentation.d.ts +47 -0
  21. package/dist/types/src/generated/types/ScheduleOptionsInputRepresentationForInvoice.d.ts +50 -0
  22. package/dist/types/src/generated/types/type-utils.d.ts +39 -0
  23. package/dist/umd/es2018/revenue-billing-batch.js +641 -0
  24. package/dist/umd/es5/revenue-billing-batch.js +648 -0
  25. package/package.json +68 -0
  26. package/sfdc/index.d.ts +1 -0
  27. package/sfdc/index.js +662 -0
  28. package/src/raml/api.raml +233 -0
  29. package/src/raml/luvio.raml +322 -0
@@ -0,0 +1,233 @@
1
+ #%RAML 1.0
2
+ securedBy:
3
+ - OAuth2
4
+ title: Salesforce Connect API
5
+ version: '56.0'
6
+ mediaType: application/json
7
+ protocols:
8
+ - https
9
+ baseUri: /services/data/v58.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
+ BatchFilterCriteriaInputRepresentation:
29
+ description: Common elements of Billing Batch Filter Criteria Input Representation
30
+ discriminator: criteriaSequence # TODO hand rolled. W-9275787
31
+ type: object
32
+ properties:
33
+ criteriaSequence:
34
+ description: Sequence number for the criteria
35
+ type: integer
36
+ operation:
37
+ description: Operation to be performed
38
+ type: string
39
+ enum:
40
+ - Equals
41
+ value:
42
+ description: Value to be compared
43
+ type: string
44
+ BillingBatchSchedulerRepresentation:
45
+ description: Billing Batch Scheduler Output Representation
46
+ type: object
47
+ properties:
48
+ id:
49
+ description: Billing Batch Scheduler Id
50
+ type: string
51
+
52
+ PaymentsBatchSchedulerInputWrapperRepresentation: # TODO Hand-rolled W-8334626
53
+ description: Wrapper for payment batch scheduler input representation
54
+ type: object
55
+ properties:
56
+ PaymentsBatchSchedulerInput:
57
+ type: PaymentsBatchSchedulerInputRepresentation
58
+ description: Payments Batch Scheduler Input Representation
59
+ PaymentRunBatchFilterCriteriaInputRepresentation:
60
+ description: Billing Batch Filter Criteria Input Representation
61
+ type: BatchFilterCriteriaInputRepresentation
62
+ properties:
63
+ fieldName:
64
+ description: Field Name
65
+ type: string
66
+ enum:
67
+ - PaymentRunMatchingValue
68
+ objectName:
69
+ description: Object Name
70
+ type: string
71
+ enum:
72
+ - PaymentScheduleItem
73
+ PaymentRunBatchFilterCriteriaInputRepresentations:
74
+ description: Batch Payments Filter Criteria Input Representations
75
+ type: object
76
+ properties:
77
+ filterCriteria:
78
+ description: List of filter criteria line items
79
+ type: array
80
+ items:
81
+ type: object
82
+ PaymentsBatchSchedulerInputRepresentation:
83
+ description: Payments Batch Scheduler Input Representation
84
+ type: ScheduleOptionsInputRepresentation
85
+ properties:
86
+ criteriaMatchType:
87
+ description: Filter Criteria Match Type
88
+ required: false # TODO handrolled W-9314597
89
+ type: string
90
+ enum:
91
+ - MatchAny
92
+ - MatchNone
93
+ filterCriteria:
94
+ description: List of filter criteria line items
95
+ required: false # TODO handrolled W-9314597
96
+ type: array
97
+ items:
98
+ type: object
99
+ PaymentsBatchSchedulerOutputRepresentation:
100
+ description: Payments Batch Scheduler Output Representation
101
+ type: object
102
+ properties:
103
+ billingBatchScheduler:
104
+ description: Billing Batch Scheduler Details
105
+ type: BillingBatchSchedulerRepresentation
106
+ ScheduleOptionsInputRepresentation:
107
+ description: Batch Scheduler Options Input Representation
108
+ discriminator: schedulerName # TODO hand rolled. W-9275787
109
+ type: object
110
+ properties:
111
+ endDate:
112
+ description: Batch Job End Date
113
+ required: false # TODO handrolled W-9314597
114
+ type: string
115
+ frequencyCadence:
116
+ description: Frequency Cadence for the Batch Job
117
+ type: string
118
+ enum:
119
+ - Daily
120
+ - Monthly
121
+ - Once
122
+ preferredTime:
123
+ description: Batch Job Preferred Run Time
124
+ type: string
125
+ recursEveryMonthOnDay:
126
+ description: Batch Job Recurrence Day for Monthly Frequency Option
127
+ required: false # TODO handrolled W-9314597
128
+ type: string
129
+ schedulerName:
130
+ description: Name of the batch scheduler
131
+ type: string
132
+ startDate:
133
+ description: Batch Job Start Date
134
+ type: string
135
+ status:
136
+ description: Scheduler Status for the Batch Job
137
+ type: string
138
+ enum:
139
+ - Active
140
+ - Canceled
141
+ - Draft
142
+ - Inactive
143
+ ScheduleOptionsInputRepresentationForInvoice:
144
+ description: Batch Scheduler Options Input Representation
145
+ discriminator: schedulerName # TODO hand rolled. W-9275787
146
+ type: object
147
+ properties:
148
+ endDate:
149
+ description: Batch Job End Date
150
+ required: false # TODO handrolled W-9314597
151
+ type: string
152
+ frequencyCadence:
153
+ description: Frequency Cadence for the Batch Job
154
+ type: string
155
+ enum:
156
+ - Daily
157
+ - Monthly
158
+ - Once
159
+ preferredTime:
160
+ description: Batch Job Preferred Run Time
161
+ type: string
162
+ schedulerName:
163
+ description: Name of the batch scheduler
164
+ type: string
165
+ startDate:
166
+ description: Batch Job Start Date
167
+ type: string
168
+ status:
169
+ description: Scheduler Status for the Batch Job
170
+ type: string
171
+ enum:
172
+ - Active
173
+ - Canceled
174
+ - Draft
175
+ - Inactive
176
+ timezone:
177
+ description: Preferred Time Zone of the invoice Scheduler
178
+ type: string
179
+ frequencyCadenceOptions:
180
+ description: Frequency Cadence Options for Invoice Scheduler
181
+ type: object
182
+ InvoicesBatchSchedulerOutputRepresentation:
183
+ description: Invoices Batch Scheduler Output Representation
184
+ type: object
185
+ properties:
186
+ billingBatchScheduler:
187
+ description: Billing Batch Scheduler Details
188
+ type: BillingBatchSchedulerRepresentation
189
+ BatchInvoiceSchedulerInputWrapperRepresentation:
190
+ description: Wrapper for invoice batch scheduler input representation
191
+ type: object
192
+ properties:
193
+ BatchInvoiceSchedulerInput:
194
+ type: BatchInvoiceSchedulerInputRepresentation
195
+ description: Invoices Batch Scheduler Input Representation
196
+ BatchInvoiceSchedulerInputRepresentation:
197
+ description: Invoices Batch Scheduler Input Representation
198
+ type: ScheduleOptionsInputRepresentationForInvoice
199
+ properties:
200
+ filterCriteria:
201
+ description: List of filter criteria line items
202
+ type: array
203
+ required: false # TODO handrolled W-9314597
204
+ items:
205
+ type: object
206
+ /commerce/payments/payment-schedulers:
207
+ post:
208
+ description: Create Payments Batch Job Scheduler
209
+ responses:
210
+ '200':
211
+ description: Success
212
+ body:
213
+ application/json:
214
+ type: PaymentsBatchSchedulerOutputRepresentation
215
+ body:
216
+ application/json:
217
+ type: PaymentsBatchSchedulerInputWrapperRepresentation
218
+ #required: false # TODO handrolled W-9314597
219
+ (oas-body-name): PaymentsBatchSchedulerInput
220
+ /commerce/invoicing/invoice-schedulers:
221
+ post:
222
+ description: Create Invoices Batch Job Scheduler
223
+ responses:
224
+ '200':
225
+ description: Success
226
+ body:
227
+ application/json:
228
+ type: InvoicesBatchSchedulerOutputRepresentation
229
+ body:
230
+ application/json:
231
+ type: BatchInvoiceSchedulerInputWrapperRepresentation
232
+ #required: false # TODO handrolled W-9314597
233
+ (oas-body-name): BatchInvoiceSchedulerInput
@@ -0,0 +1,322 @@
1
+ #%RAML 1.0 Overlay
2
+ extends: ./api.raml
3
+
4
+ uses:
5
+ luvio: luvio://annotations.raml
6
+
7
+ (luvio.keyPrefix): 'BillingBatch'
8
+
9
+ types:
10
+ PaymentsBatchSchedulerOutputRepresentation:
11
+ (luvio.ttl): 1000
12
+ (luvio.opaque): true
13
+ (luvio.key):
14
+ billingBatchSchedulerId: billingBatchScheduler.id
15
+ InvoicesBatchSchedulerOutputRepresentation:
16
+ (luvio.ttl): 1000
17
+ (luvio.opaque): true
18
+ (luvio.key):
19
+ billingBatchSchedulerId: billingBatchScheduler.id
20
+
21
+ /commerce/payments/payment-schedulers:
22
+ post:
23
+ (luvio.adapter):
24
+ name: createPaymentsBatchScheduler
25
+ tests:
26
+ validConfigs:
27
+ - |
28
+ { "PaymentsBatchSchedulerInput":
29
+ {
30
+ "schedulerName": "Batch Scheduler",
31
+ "startDate": "2021-05-11",
32
+ "endDate": "2021-05-15",
33
+ "preferredTime": "10:00 AM",
34
+ "frequencyCadence": "Monthly",
35
+ "recursEveryMonthOnDay": "28",
36
+ "criteriaMatchType": "MatchAny",
37
+ "criteriaExpression": "1 OR 2",
38
+ "status" : "Active",
39
+ "filterCriteria":
40
+ [
41
+ {
42
+ "objectName": "PaymentScheduleItem",
43
+ "fieldName": "PaymentRunMatchingValue",
44
+ "operation": "Equals",
45
+ "value": "Batch1",
46
+ "criteriaSequence": 1
47
+ },
48
+ {
49
+ "objectName": "PaymentScheduleItem",
50
+ "fieldName": "PaymentRunMatchingValue",
51
+ "operation": "Equals",
52
+ "value": "Batch2",
53
+ "criteriaSequence": 2
54
+ }
55
+ ]
56
+ }
57
+ }
58
+ - |
59
+ { "PaymentsBatchSchedulerInput":
60
+ {
61
+ "schedulerName": "Batch Scheduler",
62
+ "startDate": "2021-05-11",
63
+ "endDate": "2021-05-15",
64
+ "preferredTime": "10:00 AM",
65
+ "frequencyCadence": "Daily",
66
+ "criteriaMatchType": "MatchAny",
67
+ "criteriaExpression": "1 OR 2",
68
+ "status": "Active",
69
+ "filterCriteria": []
70
+ }
71
+ }
72
+ invalidConfigs:
73
+ - |
74
+ {
75
+ "schedulerName": "Batch Scheduler"
76
+ }
77
+ - |
78
+ {
79
+ "schedulerName": "Batch Scheduler",
80
+ "startDate": "2021-05-11",
81
+ "endDate": "2021-05-15",
82
+ "preferredTime": "10:00 AM",
83
+ "frequencyCadence": "Daily",
84
+ "criteriaMatchType": "MatchAny",
85
+ "criteriaExpression": "1 OR 2",
86
+ "status": "Draft",
87
+ "filterCriteria": []
88
+ }
89
+ - |
90
+ { "PaymentsBatchSchedulerInput":
91
+ {
92
+ "schedulerName": "Batch Scheduler"
93
+ }
94
+ }
95
+ /commerce/invoicing/invoice-schedulers:
96
+ post:
97
+ (luvio.adapter):
98
+ name: createInvoicesBatchScheduler
99
+ tests:
100
+ validConfigs:
101
+ - |
102
+ { "BatchInvoiceSchedulerInput":
103
+ {
104
+ "schedulerName": "Invoice Batch Scheduler",
105
+ "startDate": "2021-05-11",
106
+ "endDate": "2021-05-15",
107
+ "preferredTime": "10:00 AM",
108
+ "frequencyCadence": "Monthly",
109
+ "timezone": "America/Los_Angeles",
110
+ "status" : "Active",
111
+ "frequencyCadenceOptions": {
112
+ "recurringSubType": "Every",
113
+ "recursOn": "First",
114
+ "recursOnDay": "Monday"
115
+ },
116
+ "filterCriteria":
117
+ [
118
+ {
119
+ "objectName": "BillingSchedule",
120
+ "fieldName": "Currency_Iso_code",
121
+ "operation": "Equals",
122
+ "value": "USD",
123
+ "criteriaSequence": 1
124
+ },
125
+ {
126
+ "objectName": "BillingSchedule",
127
+ "fieldName": "InvoiceRunBatch",
128
+ "operation": "Equals",
129
+ "value": "Batch1",
130
+ "criteriaSequence": 2
131
+ }
132
+ ]
133
+ }
134
+ }
135
+ - |
136
+ { "BatchInvoiceSchedulerInput":
137
+ {
138
+ "schedulerName": "Invoice Batch Scheduler",
139
+ "startDate": "2021-05-11",
140
+ "endDate": "2021-05-15",
141
+ "preferredTime": "10:00 AM",
142
+ "frequencyCadence": "Monthly",
143
+ "timezone": "America/Los_Angeles",
144
+ "status" : "Active",
145
+ "frequencyCadenceOptions": {
146
+ "recurringSubType": "SpecificDate",
147
+ "recursOnDate": "21"
148
+ },
149
+ "filterCriteria":
150
+ [
151
+ {
152
+ "objectName": "BillingSchedule",
153
+ "fieldName": "Currency_Iso_code",
154
+ "operation": "Equals",
155
+ "value": "USD",
156
+ "criteriaSequence": 1
157
+ },
158
+ {
159
+ "objectName": "BillingSchedule",
160
+ "fieldName": "InvoiceRunBatch",
161
+ "operation": "Equals",
162
+ "value": "Batch1",
163
+ "criteriaSequence": 2
164
+ }
165
+ ]
166
+ }
167
+ }
168
+ - |
169
+ { "BatchInvoiceSchedulerInput":
170
+ {
171
+ "schedulerName": "Invoice Batch Scheduler",
172
+ "startDate": "2021-05-11",
173
+ "endDate": "2021-05-15",
174
+ "preferredTime": "10:00 AM",
175
+ "frequencyCadence": "Daily",
176
+ "timezone": "America/Los_Angeles",
177
+ "status" : "Active",
178
+ "frequencyCadenceOptions": {
179
+ },
180
+ "filterCriteria":
181
+ [
182
+ {
183
+ "objectName": "BillingSchedule",
184
+ "fieldName": "Currency_Iso_code",
185
+ "operation": "Equals",
186
+ "value": "USD",
187
+ "criteriaSequence": 1
188
+ },
189
+ {
190
+ "objectName": "BillingSchedule",
191
+ "fieldName": "InvoiceRunBatch",
192
+ "operation": "Equals",
193
+ "value": "Batch1",
194
+ "criteriaSequence": 2
195
+ }
196
+ ]
197
+ }
198
+ }
199
+ - |
200
+ { "BatchInvoiceSchedulerInput":
201
+ {
202
+ "schedulerName": "Invoice Batch Scheduler",
203
+ "startDate": "2021-05-11",
204
+ "preferredTime": "10:00 AM",
205
+ "frequencyCadence": "Once",
206
+ "timezone": "America/Los_Angeles",
207
+ "status" : "Active",
208
+ "frequencyCadenceOptions": {
209
+ },
210
+ "filterCriteria":
211
+ [
212
+ {
213
+ "objectName": "BillingSchedule",
214
+ "fieldName": "Currency_Iso_code",
215
+ "operation": "Equals",
216
+ "value": "USD",
217
+ "criteriaSequence": 1
218
+ },
219
+ {
220
+ "objectName": "BillingSchedule",
221
+ "fieldName": "InvoiceRunBatch",
222
+ "operation": "Equals",
223
+ "value": "Batch1",
224
+ "criteriaSequence": 2
225
+ }
226
+ ]
227
+ }
228
+ }
229
+ - |
230
+ { "BatchInvoiceSchedulerInput":
231
+ {
232
+ "schedulerName": "Invoice Batch Scheduler",
233
+ "startDate": "2021-05-11",
234
+ "endDate": "2021-05-15",
235
+ "preferredTime": "10:00 AM",
236
+ "frequencyCadence": "Weekly",
237
+ "timezone": "America/Los_Angeles",
238
+ "status" : "Active",
239
+ "frequencyCadenceOptions": {
240
+ "recursOnDay": "Monday"
241
+ },
242
+ "filterCriteria":
243
+ [
244
+ {
245
+ "objectName": "BillingSchedule",
246
+ "fieldName": "Currency_Iso_code",
247
+ "operation": "Equals",
248
+ "value": "USD",
249
+ "criteriaSequence": 1
250
+ },
251
+ {
252
+ "objectName": "BillingSchedule",
253
+ "fieldName": "InvoiceRunBatch",
254
+ "operation": "Equals",
255
+ "value": "Batch1",
256
+ "criteriaSequence": 2
257
+ }
258
+ ]
259
+ }
260
+ }
261
+ - |
262
+ { "BatchInvoiceSchedulerInput":
263
+ {
264
+ "schedulerName": "Invoice Batch Scheduler",
265
+ "startDate": "2021-05-11",
266
+ "endDate": "2021-05-15",
267
+ "preferredTime": "10:00 AM",
268
+ "frequencyCadence": "Monthly",
269
+ "timezone": "America/Los_Angeles",
270
+ "status" : "Active",
271
+ "frequencyCadenceOptions": {
272
+ "recurringSubType": "Every",
273
+ "recursOn": "First",
274
+ "recursOnDay": "Monday"
275
+ },
276
+ "filterCriteria": []
277
+ }
278
+ }
279
+ invalidConfigs:
280
+ - |
281
+ {
282
+ "schedulerName": "Batch Scheduler"
283
+ }
284
+ - |
285
+ {
286
+ "schedulerName": "Batch Scheduler",
287
+ "startDate": "2021-05-11",
288
+ "endDate": "2021-05-15",
289
+ "preferredTime": "10:00 AM",
290
+ "frequencyCadence": "Daily",
291
+ "timezone": "America/Los_Angeles",
292
+ "status" : "Draft",
293
+ "frequencyCadenceOptions": {
294
+ "recurringSubType": "Every",
295
+ "recursOn": "First",
296
+ "recursOnDay": "Monday"
297
+ },
298
+ "filterCriteria": []
299
+ }
300
+ - |
301
+ {
302
+ "schedulerName": "Batch Scheduler",
303
+ "startDate": "2021-05-11",
304
+ "endDate": "2021-05-15",
305
+ "preferredTime": "10:00 AM",
306
+ "frequencyCadence": "Daily",
307
+ "timezone": "America/Los_Angeles",
308
+ "status" : "Draft",
309
+ "frequencyCadenceOptions": {
310
+ "recurringSubType": "Every",
311
+ "recursOn": "First",
312
+ "recursOnDate": "21",
313
+ "recursOnDay": "Monday"
314
+ },
315
+ "filterCriteria": []
316
+ }
317
+ - |
318
+ { "BatchInvoiceSchedulerInput":
319
+ {
320
+ "schedulerName": "Batch Scheduler"
321
+ }
322
+ }